/* ==========================================================================
   Cywinski Digital — Homepage 2026 · "Sapphire Codex"
   Midnight sapphire + champagne gold · geometric round display (Poppins)
   Scoped to the homepage only (index.html) so it does not touch the shared
   css/style.css used by the other pages.
   ========================================================================== */

:root {
  --bg:       #0A1633;
  --bg-2:     #0C1B3E;
  --panel:    #0F2148;
  --panel-2:  #132A57;
  --ink:      #F5EFE1;
  --soft:     #C7CFE2;
  --muted:    #8790A9;
  --line:     rgba(201,169,97,.24);
  --line-2:   rgba(201,169,97,.42);
  --line-cool:rgba(255,255,255,.08);

  --gold:     #C9A961;
  --gold-lt:  #E7D19A;
  --gold-dp:  #A8863F;
  --grad-gold: linear-gradient(135deg, #E7D19A, #C9A961 55%, #A8863F);

  --sans:  'Montserrat', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  /* Display: geometric round sans — perfect-circle bowls + straight stems */
  --serif: 'Poppins', 'Futura', 'Century Gothic', 'Avenir Next', 'Avenir', 'Trebuchet MS', sans-serif;

  --container: 1160px;
  --shadow: 0 30px 60px -28px rgba(0,0,0,.6);
  --shadow-lg: 0 50px 100px -40px rgba(0,0,0,.75);
  --glow-gold: 0 16px 40px -14px rgba(201,169,97,.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--soft); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.005em; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

.eyebrow { font-family: var(--sans); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .28em; display: inline-flex; align-items: center; gap: .9em; color: var(--gold); }
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold); display: inline-block; opacity: .8; }
.gold-text { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn { display: inline-flex; align-items: center; gap: .6em; font-family: var(--sans); font-weight: 700; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; padding: 1.05em 1.9em; border-radius: 2px; cursor: pointer; border: 1px solid transparent; transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.btn-primary { background: var(--grad-gold); color: #12142A; box-shadow: var(--glow-gold); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -16px rgba(201,169,97,.7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--gold-lt); }
.btn .arw { transition: transform .18s ease; }
.btn:hover .arw { transform: translateX(3px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 3px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(10,22,51,.72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .25s ease, background .25s ease; }
header.site.scrolled { border-bottom-color: var(--line); background: rgba(10,22,51,.9); }
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.brand { display: flex; align-items: center; gap: .8em; }
.mark { width: 44px; height: 44px; border-radius: 3px; color: #12142A; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; background: var(--grad-gold); position: relative; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; letter-spacing: .01em; color: var(--ink); }
.brand-sub { font-family: var(--sans); font-size: .58rem; text-transform: uppercase; letter-spacing: .24em; color: var(--muted); display: block; line-height: 1; margin-top: 3px; font-weight: 600; }
nav.primary { display: flex; align-items: center; gap: 2.2rem; }
nav.primary a.link { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--soft); position: relative; }
nav.primary a.link:hover { color: var(--gold-lt); }
nav.primary a.link::after { content:""; position: absolute; left: 0; bottom: -7px; height: 1px; width: 0; background: var(--gold); transition: width .25s ease; }
nav.primary a.link:hover::after { width: 100%; }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-glow { position: absolute; inset: -30% -10% auto -10%; height: 150%; z-index: 0; pointer-events: none; filter: blur(14px); opacity: .6;
  background: radial-gradient(32% 42% at 82% 4%, rgba(201,169,97,.32), transparent 62%), radial-gradient(30% 40% at 96% 55%, rgba(90,120,200,.22), transparent 60%), radial-gradient(40% 46% at 60% 100%, rgba(201,169,97,.12), transparent 62%);
  animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-2%, 1.5%, 0) scale(1.05); } }
.hero::after { content:""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .04; background-image: radial-gradient(rgba(245,239,225,.9) 1px, transparent 1px); background-size: 3px 3px; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 3.5rem; align-items: center; padding: 5.5rem 0 5rem; }
.hero h1 { font-size: clamp(3rem, 6.6vw, 5.6rem); font-weight: 500; line-height: 1.02; }
.hero h1 em { font-style: italic; }
.hero-lede { color: var(--soft); font-size: 1.16rem; max-width: 35ch; margin-top: 1.7rem; }
.hero-rule { width: 64px; height: 1px; background: var(--gold); margin: 2rem 0 0; opacity: .7; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.trust { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.trust div strong { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; display: block; letter-spacing: 0; color: var(--ink); }
.trust div span { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* Hero visual — gold-framed */
.hero-art { position: relative; height: 440px; }
.card-float { position: absolute; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); overflow: hidden; }
.card-float::after { content:""; position: absolute; inset: 0; border-radius: 6px; border: 1px solid rgba(231,209,154,.18); margin: 5px; pointer-events: none; }
.browser { top: 8px; left: 0; width: 100%; }
.browser .bar { display: flex; align-items: center; gap: 6px; padding: 12px 15px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); }
.browser .bar i { width: 8px; height: 8px; border-radius: 50%; display: block; background: var(--line-2); }
.browser .bar .url { margin-left: 10px; font-size: .66rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.browser .shot { padding: 22px; }
.browser .shot .kick { font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.browser .shot h4 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: .35rem 0 .8rem; line-height: 1.06; color: var(--ink); }
.browser .shot .route { display: grid; gap: 9px; }
.browser .shot .stop { display: flex; align-items: center; gap: 11px; }
.browser .shot .stop b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #12142A; font-size: .68rem; font-weight: 800; flex: none; background: var(--grad-gold); }
.browser .shot .stop i { height: 7px; border-radius: 4px; background: rgba(255,255,255,.08); flex: 1; font-style: normal; }
.browser .shot .stop span { font-size: .62rem; color: var(--muted); font-weight: 700; }
.phone { bottom: -24px; right: -16px; width: 150px; border-radius: 24px; padding: 7px; background: #05091A; border: 1px solid var(--line-2); }
.phone .screen { border-radius: 18px; overflow: hidden; background: var(--panel); padding: 16px 13px; }
.phone .screen .cap { font-size: .52rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); font-weight: 800; }
.phone .screen .big { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 3px 0 12px; color: var(--ink); }
.phone .screen .item { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid var(--line-cool); }
.phone .screen .item b { width: 20px; height: 20px; border-radius: 50%; display: block; flex: none; background: var(--grad-gold); }
.phone .screen .item i { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); flex: 1; font-style: normal; }

/* Sections */
section { padding: 6.5rem 0; }
.sec-head { max-width: 60ch; }
.sec-head h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 500; margin: 1.1rem 0 0; }
.sec-head p.sub { color: var(--muted); font-size: 1.1rem; margin-top: 1.1rem; }
.band-2 { background: var(--bg-2); }

/* Promise trio */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.2rem; }
.promise { padding: 2.4rem 2rem; border-radius: 4px; background: var(--panel); border: 1px solid var(--line-cool); position: relative; overflow: hidden; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.promise::before { content:""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad-gold); opacity: .8; }
.promise:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.promise .ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--line-2); margin-bottom: 1.2rem; }
.promise .ic svg { width: 22px; height: 22px; }
.promise h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: .5rem; }
.promise p { color: var(--muted); font-size: .98rem; }

/* Services */
.svc { display: grid; grid-template-columns: 78px 1fr auto; align-items: baseline; gap: 1.6rem; padding: 2.4rem 0; border-top: 1px solid var(--line); transition: padding-left .22s ease; }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc:hover { padding-left: 14px; }
.svc .idx { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 2rem; color: var(--gold); line-height: 1; }
.svc h3 { font-size: 1.8rem; font-weight: 600; margin-bottom: .4rem; }
.svc p { color: var(--muted); max-width: 58ch; }
.svc .go { align-self: center; font-family: var(--sans); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; white-space: nowrap; color: var(--gold); }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; margin-top: 3.2rem; }
.work { border: 1px solid var(--line-cool); border-radius: 6px; overflow: hidden; background: var(--panel); display: flex; flex-direction: column; transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.work.feature { grid-column: span 2; flex-direction: row; }
.work.feature .media { width: 52%; aspect-ratio: auto; }
.work.feature .body { width: 48%; justify-content: center; }
.work .media { aspect-ratio: 16/10; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.work .media img { width: 100%; height: 100%; object-fit: cover; }
.work .media .noshot { width: 100%; height: 100%; min-height: 190px; display: grid; place-items: center; text-align: center; padding: 1.5rem; background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.work .media .noshot .n { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.work .media .noshot .s { font-size: .62rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); font-weight: 800; margin-top: .6rem; }
.work.feature .media { border-bottom: none; border-right: 1px solid var(--line); }
.work .badge { position: absolute; top: 15px; left: 15px; z-index: 2; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: .5em .9em; border-radius: 2px; background: rgba(10,22,51,.82); color: var(--gold-lt); border: 1px solid var(--line-2); backdrop-filter: blur(6px); display: inline-flex; align-items: center; gap: .5em; }
.work .badge.live::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-lt); display: inline-block; box-shadow: 0 0 0 3px rgba(231,209,154,.25); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(231,209,154,0); } }
.work .body { padding: 1.8rem 1.9rem 2rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.work .kick { font-size: .66rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); font-weight: 800; }
.work h3 { font-size: 1.6rem; font-weight: 600; }
.work.feature h3 { font-size: 2.3rem; font-weight: 500; }
.work p { color: var(--muted); font-size: .97rem; }
.work .tech { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.work .tech span { font-size: .72rem; color: var(--soft); font-weight: 500; background: rgba(255,255,255,.04); border: 1px solid var(--line-cool); padding: .32em .85em; border-radius: 999px; }
.work .foot { margin-top: auto; padding-top: 1.2rem; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.work .foot a { font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; display: inline-flex; align-items: center; gap: .45em; color: var(--gold-lt); }
.work .foot a.muted { color: var(--soft); }

/* ChartGone flagship — CSS render (until a real screenshot is dropped in) */
.shot-cg { width: 100%; height: 100%; min-height: 310px; background: linear-gradient(160deg, #10254f, #0a1836); position: relative; padding: 24px; }
.shot-cg .topbar { display: flex; justify-content: space-between; align-items: center; }
.shot-cg .topbar .lg { font-family: var(--serif); font-weight: 600; letter-spacing: 0; color: var(--gold-lt); font-size: 1.05rem; }
.shot-cg .topbar .pill { font-size: .58rem; font-weight: 800; color: #12142A; background: var(--grad-gold); padding: .34em .8em; border-radius: 999px; letter-spacing: .06em; }
.shot-cg .rt { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 6px; padding: 15px; margin-top: 16px; }
.shot-cg .rt .rh { font-size: .6rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 800; }
.shot-cg .stop { display: flex; align-items: center; gap: 11px; padding: 8px 0; border-top: 1px solid var(--line-cool); }
.shot-cg .stop:first-of-type { border-top: none; }
.shot-cg .stop b { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; color: #12142A; font-size: .7rem; font-weight: 800; flex: none; background: var(--grad-gold); }
.shot-cg .stop i { height: 7px; border-radius: 4px; background: rgba(255,255,255,.08); flex: 1; }
.shot-cg .stop u { font-size: .62rem; color: var(--muted); font-weight: 700; text-decoration: none; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 3.2rem; }
.step { padding: 0 1.8rem; border-left: 1px solid var(--line); }
.step:first-child { padding-left: 0; border-left: none; }
.step .no { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 2.8rem; color: var(--gold); line-height: 1; }
.step h3 { font-size: 1.35rem; font-weight: 600; margin: 1rem 0 .5rem; }
.step p { color: var(--muted); font-size: .93rem; }

/* About */
.about-inner { display: grid; grid-template-columns: .82fr 1.18fr; gap: 4rem; align-items: center; }
.portrait { aspect-ratio: 4/5; border-radius: 6px; position: relative; overflow: hidden; display: grid; place-items: center; background: linear-gradient(155deg, #12285a, #0a1734); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.portrait::after { content:""; position: absolute; inset: 12px; border: 1px solid var(--line); border-radius: 3px; pointer-events: none; }
.portrait .medallion { width: 132px; height: 132px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font-family: var(--serif); font-weight: 500; font-size: 3.2rem; color: var(--gold-lt); }
.portrait .tag { position: absolute; bottom: 20px; left: 20px; right: 20px; font-size: .72rem; color: var(--soft); font-weight: 500; letter-spacing: .06em; border-top: 1px solid var(--line); padding-top: 13px; text-align: center; }
.about-copy h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 500; }
.about-copy .quote { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.5rem; margin: 1.5rem 0; line-height: 1.45; color: var(--ink); }
.about-copy .quote em { font-style: italic; color: var(--gold-lt); }
.about-copy p { color: var(--muted); margin-bottom: 1rem; }
.sig { font-family: var(--serif); font-style: italic; font-size: 1.6rem; margin-top: 1rem; color: var(--gold-lt); }

/* CTA */
.cta { text-align: center; position: relative; overflow: hidden; background: var(--bg-2); }
.cta .mesh2 { position: absolute; inset: 0; z-index: 0; opacity: .8; pointer-events: none; filter: blur(10px);
  background: radial-gradient(32% 55% at 18% 15%, rgba(201,169,97,.4), transparent 60%), radial-gradient(30% 55% at 85% 85%, rgba(90,120,200,.22), transparent 60%); }
.cta::after { content:""; position: absolute; inset: 22px; border: 1px solid var(--line); pointer-events: none; }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 500; max-width: 17ch; margin: 1.1rem auto 0; }
.cta .sub { color: var(--soft); max-width: 46ch; margin: 1.2rem auto 0; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.cta .channels { display: flex; gap: 2.8rem; justify-content: center; flex-wrap: wrap; margin-top: 2.8rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.cta .channels .l { font-size: .62rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; color: var(--gold); }
.cta .channels .v { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--ink); margin-top: 3px; }

/* Footer */
footer.site { background: #070E22; color: var(--muted); padding: 3rem 0; border-top: 1px solid var(--line); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.2rem; }
.foot-inner .fb { display: flex; align-items: center; gap: .7em; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.foot-inner nav { display: flex; gap: 1.8rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.foot-inner nav a:hover { color: var(--gold-lt); }
.foot-meta { margin-top: 1.6rem; font-size: .76rem; color: #5D6684; letter-spacing: .04em; }

/* ==========================================================================
   Contact form (home #contact)
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 3rem; margin-top: 3.2rem; text-align: left; align-items: start; }
.form-card { background: var(--panel); border: 1px solid var(--line-cool); border-radius: 6px; padding: 2.2rem; position: relative; overflow: hidden; }
.form-card::before { content:""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad-gold); opacity: .8; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.15rem; }
.field label { font-size: .62rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; color: var(--gold); }
.field label .opt { color: var(--muted); font-weight: 600; letter-spacing: .1em; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: .98rem; color: var(--ink); background: rgba(255,255,255,.03);
  border: 1px solid var(--line); border-radius: 3px; padding: .85em .95em; width: 100%; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.field input::placeholder, .field textarea::placeholder { color: #6E768C; }
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,97,.18); background: rgba(255,255,255,.05); }
.field select { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 2.4em; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23C9A961' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; }
.field select option { color: #12142A; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; margin-top: .3rem; }
.form-actions .btn[disabled] { opacity: .6; cursor: default; transform: none; }
.form-privacy { font-size: .78rem; color: var(--muted); }
.form-note { font-size: .9rem; margin-top: 1.1rem; min-height: 1.2em; font-weight: 600; }
.form-note.ok { color: #7FD6A0; }
.form-note.err { color: #E39A88; }
.contact-aside { padding-top: .4rem; }
.contact-aside .lead { color: var(--soft); font-size: 1.02rem; margin-bottom: 1.6rem; }
.contact-aside .channel { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.contact-aside .channel:first-of-type { border-top: none; padding-top: 0; }
.contact-aside .channel .l { font-size: .62rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; color: var(--gold); }
.contact-aside .channel .v { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--ink); margin-top: 4px; }
.contact-aside .channel .v a:hover { color: var(--gold-lt); }
.contact-aside .channel .meta { font-size: .82rem; color: var(--muted); margin-top: 3px; }

/* ==========================================================================
   Project library page
   ========================================================================== */
.lib-hero { position: relative; overflow: hidden; }
.lib-hero .hero-glow { height: 130%; }
.lib-hero-inner { position: relative; z-index: 1; padding: 5rem 0 1rem; max-width: 60ch; }
.lib-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 500; margin-top: 1.2rem; }
.lib-hero .lede { color: var(--soft); font-size: 1.16rem; margin-top: 1.4rem; max-width: 52ch; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2.4rem 0 .5rem; }
.filter-chip { font-family: var(--sans); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--soft); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: .62em 1.25em; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.filter-chip:hover { color: var(--gold-lt); border-color: var(--gold); }
.filter-chip.active { background: var(--grad-gold); color: #12142A; border-color: transparent; }
.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 2.4rem; }
.lib-grid .work .media img { transition: transform .5s cubic-bezier(.2,.6,.2,1); }
.lib-grid .work:hover .media img { transform: scale(1.045); }
.lib-grid .work.feature { grid-column: span 3; }
.work.is-hidden { display: none; }
.lib-empty { color: var(--muted); padding: 2rem 0; }
.lib-grid .work .body h3 a:hover, .lib-grid .work .media a:hover { color: inherit; }

/* ==========================================================================
   Project detail / case study (project.html)
   ========================================================================== */
.pd { padding: 3rem 0 5.5rem; }
.pd-back { display: inline-flex; align-items: center; gap: .5em; font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; color: var(--gold); margin-bottom: 2.4rem; }
.pd-back:hover { color: var(--gold-lt); }
.pd-kicker { font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); font-weight: 800; }
.pd-title { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 500; margin-top: .8rem; }
.pd-summary { color: var(--soft); font-size: 1.2rem; margin-top: 1.3rem; max-width: 62ch; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.pd-meta .l { font-size: .6rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); font-weight: 800; }
.pd-meta .v { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; color: var(--ink); margin-top: 4px; }
.pd-actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.pd-figure { margin: 3.2rem 0; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--panel-2); box-shadow: var(--shadow-lg); position: relative; }
.pd-figure::after { content:""; position: absolute; inset: 0; border-radius: 8px; border: 1px solid rgba(231,209,154,.16); margin: 6px; pointer-events: none; }
.pd-figure img { width: 100%; display: block; }
.pd-body { display: grid; gap: 2.8rem; max-width: 68ch; }
.pd-section h2 { font-size: 1.55rem; font-weight: 600; margin-bottom: .9rem; }
.pd-section p { color: var(--soft); font-size: 1.06rem; }
.pd-build { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.pd-build li { position: relative; padding-left: 1.9rem; color: var(--soft); }
.pd-build li::before { content:""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--grad-gold); }
.pd-tech { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.pd-tech span { font-size: .74rem; color: var(--soft); font-weight: 500; background: rgba(255,255,255,.04); border: 1px solid var(--line-cool); padding: .32em .85em; border-radius: 999px; }
.pd-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: .6rem; }
.pd-gallery img { width: 100%; border: 1px solid var(--line); border-radius: 6px; }
.pd-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.pd-nav a { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--soft); max-width: 46%; }
.pd-nav a:hover { color: var(--gold-lt); }
.pd-nav a .dir { display: block; font-size: .62rem; color: var(--gold); letter-spacing: .16em; margin-bottom: 4px; }
.pd-nav a.nx { text-align: right; margin-left: auto; }
.pd-missing { text-align: center; padding: 5rem 0; }

/* ==========================================================================
   About page
   ========================================================================== */
.about-hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.22fr .78fr; gap: 3.5rem; align-items: center; padding: 5rem 0 4rem; }
.about-hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 500; margin-top: 1.1rem; }
.about-lede { color: var(--soft); font-size: 1.18rem; margin-top: 1.3rem; max-width: 46ch; }
.about-hero p.body { color: var(--muted); margin-top: 1rem; max-width: 52ch; }
.about-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.9rem; }
.about-points { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 0; }
.about-points li { display: grid; grid-template-columns: auto 1fr; column-gap: 1em; align-items: baseline; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.about-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-gold); align-self: center; }
.about-points strong { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.about-points span { grid-column: 2; color: var(--muted); font-size: .95rem; margin-top: 2px; }
/* Circular gold-ringed portrait with a soft glow + gentle hover lift */
.about-photo { position: relative; width: 300px; max-width: 78%; margin: 0 auto; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.about-photo::before { content: ""; position: absolute; inset: -16%; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(201,169,97,.34), transparent 66%); filter: blur(20px); }
.about-photo::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--line-2); z-index: 2; pointer-events: none; }
.about-photo img { position: relative; z-index: 1; width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover;
  padding: 3px; background: var(--grad-gold); box-shadow: var(--shadow-lg); filter: saturate(.92) contrast(1.03);
  transition: transform .55s cubic-bezier(.2,.6,.2,1), filter .55s ease, box-shadow .55s ease; }
.about-photo:hover img { transform: scale(1.035); filter: saturate(1.06) contrast(1.06); box-shadow: 0 28px 60px -20px rgba(201,169,97,.5); }
@media (prefers-reduced-motion: reduce) {
  .about-photo img { transition: none; }
  .about-photo:hover img { transform: none; }
}
.about-note { margin-top: 1.4rem; background: var(--panel); border: 1px solid var(--line-cool); border-radius: 6px; padding: 1.5rem 1.6rem; position: relative; overflow: hidden; }
.about-note::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad-gold); }
.about-note .l { font-size: .62rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; color: var(--gold); }
.about-note p { color: var(--soft); margin-top: .5rem; font-size: .98rem; }
.about-dl { margin: 0; }
.about-dl div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.about-dl div:first-child { border-top: none; padding-top: 0; }
.about-dl dt { font-size: .62rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); font-weight: 800; }
.about-dl dd { margin: 4px 0 0; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; color: var(--ink); }

@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; gap: 2.6rem; padding: 3.5rem 0; }
}

/* ==========================================================================
   App landing pages (apps/*/index.html)
   ========================================================================== */
.app-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; padding: 5rem 0 4rem; }
.app-hero-grid h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 500; margin-top: 1rem; }
.app-tagline { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.4rem; color: var(--gold-lt); margin-top: 1rem; }
.app-lede { color: var(--soft); font-size: 1.12rem; margin-top: 1.1rem; max-width: 48ch; }
.app-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.app-marks { list-style: none; padding: 0; margin: 2.3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.app-marks li { border-top: 1px solid var(--line); padding-top: .9rem; }
.app-marks strong { display: block; font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.app-marks span { font-size: .82rem; color: var(--muted); }
.app-phone { justify-self: center; width: 260px; max-width: 78%; border-radius: 34px; padding: 10px; background: #05091A; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.app-phone img { width: 100%; display: block; border-radius: 26px; }
.app-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 3rem; }
.app-shot { background: var(--panel); border: 1px solid var(--line-cool); border-radius: 10px; padding: 1rem 1rem 0; }
.app-shot .frame { border-radius: 20px; padding: 8px; background: #05091A; border: 1px solid var(--line-2); }
.app-shot img { width: 100%; display: block; border-radius: 13px; }
.app-shot figcaption { color: var(--muted); font-size: .86rem; padding: 1rem .3rem 1.2rem; }
.info-card { background: var(--panel); border: 1px solid var(--line-cool); border-radius: 8px; padding: 2.4rem; position: relative; overflow: hidden; max-width: 760px; }
.info-card::before { content:""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad-gold); }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 1.8rem; display: grid; gap: 1rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: var(--soft); }
.check-list li::before { content:""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--grad-gold); }
.check-list strong { color: var(--ink); font-weight: 600; }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.support-card { display: block; background: var(--panel); border: 1px solid var(--line-cool); border-radius: 8px; padding: 1.7rem; transition: transform .2s ease, border-color .2s ease; }
.support-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.support-card .l { font-size: .62rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); font-weight: 800; }
.support-card strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); margin: .45rem 0; }
.support-card span { color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  .app-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 0; }
  .app-shots { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .app-marks { grid-template-columns: 1fr; gap: 0; }
  .app-marks li { padding: .9rem 0; }
}
.app-shots.single { max-width: 360px; margin-left: auto; margin-right: auto; grid-template-columns: 1fr; }

/* How-to steps + FAQ (Subscription Radar and similar) */
.howto-steps { list-style: none; counter-reset: step; padding: 0; margin: 3rem 0 0; display: grid; gap: 1.3rem; max-width: 800px; }
.howto-steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start; padding: 1.6rem; background: var(--panel); border: 1px solid var(--line-cool); border-radius: 8px; }
.howto-steps li::before { content: counter(step); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: #12142A; width: 40px; height: 40px; border-radius: 50%; background: var(--grad-gold); display: grid; place-items: center; }
.howto-steps h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .35rem; }
.howto-steps p { color: var(--muted); font-size: .96rem; }
.howto-steps strong { color: var(--ink); }
.faq { max-width: 800px; margin-top: 3rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.3rem 0; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.5rem; font-weight: 300; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--soft); padding: 0 0 1.4rem; margin: 0; max-width: 70ch; }
.faq a { color: var(--gold-lt); }
.faq a:hover { text-decoration: underline; }

/* ==========================================================================
   Apps showcase page (apps.html)
   ========================================================================== */
.app-row { display: grid; grid-template-columns: .78fr 1.22fr; gap: 3.2rem; align-items: center; padding: 3.6rem 0; border-top: 1px solid var(--line); }
.app-row:first-of-type { border-top: none; padding-top: 1.5rem; }
.app-row-media { display: flex; justify-content: center; }
.app-row.rev .app-row-media { order: 2; }
.app-row .kick { font-size: .66rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); font-weight: 800; }
.app-row h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 500; margin-top: .7rem; }
.app-row .tagline { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--gold-lt); font-size: 1.2rem; margin-top: .7rem; }
.app-row .desc { color: var(--soft); font-size: 1.04rem; margin-top: 1rem; max-width: 56ch; }
.app-row .tech { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.app-row .tech span { font-size: .74rem; color: var(--soft); font-weight: 500; background: rgba(255,255,255,.04); border: 1px solid var(--line-cool); padding: .32em .85em; border-radius: 999px; }
.app-row .links { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.7rem; }
.app-row .wip { display: inline-flex; align-items: center; gap: .5em; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-lt); border: 1px solid var(--line-2); border-radius: 999px; padding: .42em .9em; margin-bottom: .9rem; }
.app-row .wip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; }
/* Honest empty state for apps with no screenshot yet (never a fake mockup) */
.app-noshot { width: 260px; max-width: 78%; aspect-ratio: 9 / 17; border-radius: 34px; border: 1px solid var(--line-2); background: linear-gradient(160deg, var(--panel-2), var(--panel)); display: grid; place-items: center; text-align: center; padding: 2rem; box-shadow: var(--shadow-lg); position: relative; }
.app-noshot::after { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); border-radius: 26px; pointer-events: none; }
.app-noshot .n { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--ink); }
.app-noshot .s { font-size: .64rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); font-weight: 800; margin-top: .9rem; }
@media (max-width: 900px) {
  .app-row { grid-template-columns: 1fr; gap: 2.2rem; padding: 2.8rem 0; }
  .app-row.rev .app-row-media { order: 0; }
}

/* ==========================================================================
   Document pages (privacy notes, user guides)
   ========================================================================== */
.doc { padding: 3rem 0 5rem; }
.doc-back { display: inline-flex; align-items: center; gap: .5em; font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; color: var(--gold); margin-bottom: 2rem; }
.doc-back:hover { color: var(--gold-lt); }
.doc-head { max-width: 72ch; }
.doc-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 500; margin-top: 1rem; }
.doc-head .lede { color: var(--soft); font-size: 1.15rem; margin-top: 1.2rem; }
.doc-updated { color: var(--muted); font-size: .88rem; margin-top: 1.1rem; }
.doc-body { max-width: 74ch; margin-top: 2.6rem; }
.doc-body > section { padding-top: 2.2rem; margin-top: 2.2rem; border-top: 1px solid var(--line); }
.doc-body > section:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.doc-body h2 { font-size: 1.5rem; font-weight: 600; margin: 0 0 .9rem; }
.doc-body h3 { font-size: 1.2rem; font-weight: 600; margin: 1.8rem 0 .6rem; }
.doc-body p { color: var(--soft); margin-bottom: 1rem; line-height: 1.7; }
.doc-body ul, .doc-body ol { color: var(--soft); padding-left: 1.3rem; margin: 0 0 1.2rem; display: grid; gap: .55rem; line-height: 1.6; }
.doc-body li { padding-left: .25rem; }
.doc-body a { color: var(--gold-lt); }
.doc-body a:hover { text-decoration: underline; }
.doc-body strong { color: var(--ink); }
.doc-body .muted { color: var(--muted); font-size: .92rem; }
.doc-callout { background: var(--panel); border: 1px solid var(--line-cool); border-radius: 8px; padding: 1.5rem 1.7rem; position: relative; overflow: hidden; margin: 1.5rem 0; }
.doc-callout::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad-gold); }

@media (max-width: 680px) {
  .pd-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
  .lib-grid .work.feature { grid-column: span 2; }
}
@media (max-width: 680px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .lib-grid { grid-template-columns: 1fr; }
  .lib-grid .work.feature { grid-column: span 1; }
}

.rv { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 0 4.5rem; }
  .hero-art { height: 350px; max-width: 420px; }
  .about-inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .work.feature { flex-direction: column; } .work.feature .media, .work.feature .body { width: 100%; } .work.feature .media { aspect-ratio: 16/10; border-right: none; border-bottom: 1px solid var(--line); } .work.feature h3 { font-size: 1.8rem; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; } .step:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  nav.primary { display: none; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 3px; background: transparent; gap: 4px; cursor: pointer; }
  .nav-toggle span { width: 18px; height: 1.5px; background: var(--gold); display: block; }
  section { padding: 4.5rem 0; }
  .promise-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; } .work.feature { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; } .step { border-left: none; padding-left: 0; }
  .svc { grid-template-columns: 50px 1fr; } .svc .go { grid-column: 2; }
}

/* Mobile nav open state */
@media (max-width: 680px) {
  header.site.nav-open nav.primary {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem;
    position: absolute; top: 82px; left: 0; right: 0;
    background: rgba(10,22,51,.98); border-top: 1px solid var(--line);
    padding: 1.4rem 28px 1.8rem; box-shadow: var(--shadow);
  }
  header.site.nav-open nav.primary .btn { width: 100%; justify-content: center; }
  header.site.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  header.site.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  header.site.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .nav-toggle span { transition: transform .2s ease, opacity .2s ease; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .rv { opacity: 1; transform: none; }
}
