/* ─────────────────────────────────────────────────────────────
   pnwrf — public marketing surface
   tokens lifted directly from agent-dashboard.html / studio-backend.html
   ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --black:    #080808;
  --ink:      #0e0e0e;
  --s1:       #121212;
  --s2:       #171717;
  --s3:       #1e1e1e;
  --gold:     #b8975a;
  --gold-l:   #d4b06a;
  --gold-d:   #6b5630;
  --warm:     #ede8e0;
  --w80:      rgba(237,232,224,.80);
  --w60:      rgba(237,232,224,.60);
  --w40:      rgba(237,232,224,.40);
  --w20:      rgba(237,232,224,.20);
  --w10:      rgba(237,232,224,.10);
  --w08:      rgba(237,232,224,.08);
  --green:    #4a9b6f;
  --amber:    #9b8a4a;
  --red:      #9b4a4a;
  --dim:      #252020;

  --ease:     cubic-bezier(.16,1,.3,1);
  --ease-q:   cubic-bezier(.25,.46,.45,.94);
  --maxw:     1360px;
  --pad:      72px;
  --pad-m:    24px;
  --nav-h:    72px;
}

html, body {
  background: var(--black);
  color: var(--warm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* fine grain — same as siblings */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
}

button, a {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

img { display: block; max-width: 100%; }

/* ─── shared utilities ─── */
.wrap     { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.serif    { font-family: 'Cormorant', serif; font-style: italic; font-weight: 300; }
.mono     { font-family: 'JetBrains Mono', monospace; letter-spacing: .25em; text-transform: lowercase; }
.eyebrow  { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .4em; color: var(--gold); text-transform: lowercase; }
.gold     { color: var(--gold); }
.lower    { text-transform: lowercase; }
.muted    { color: var(--w40); }

/* ═══════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 var(--pad);
  background: rgba(8,8,8,.72);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(37,32,32,.6);
  z-index: 100;
  transition: background .3s var(--ease);
}
.nav-brand {
  font-family: 'Cormorant', serif; font-style: italic; font-weight: 300;
  font-size: 16px; letter-spacing: .34em;
  color: var(--warm);
}
.nav-brand em { color: var(--gold); font-style: normal; font-weight: 400; }
.nav-links {
  display: flex; align-items: center; gap: 36px;
  margin-left: auto; margin-right: 36px;
}
.nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 300; letter-spacing: .24em;
  color: var(--w60);
  text-transform: lowercase;
  padding: 6px 0;
  position: relative;
  transition: color .25s var(--ease);
  min-height: 44px;
  display: inline-flex; align-items: center;
}
.nav-link:hover { color: var(--warm); }
.nav-link.on { color: var(--warm); }
.nav-link.on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 12px;
  height: 1px; background: var(--gold);
}
.nav-cta {
  padding: 12px 22px;
  background: var(--gold);
  color: var(--black);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: .28em;
  text-transform: lowercase;
  transition: background .25s var(--ease);
  min-height: 44px;
  display: inline-flex; align-items: center;
}
.nav-cta:hover { background: var(--gold-l); }

/* mobile menu toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  align-items: center; justify-content: center;
  color: var(--warm);
}
.nav-toggle span {
  display: block; width: 22px; height: 1px;
  background: var(--warm); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; right: 0;
  height: 1px; background: var(--warm);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }

/* mobile sheet */
.sheet {
  position: fixed; inset: 0;
  background: rgba(8,8,8,.97);
  backdrop-filter: blur(28px);
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: 28px var(--pad-m);
  animation: sheet-in .35s var(--ease);
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
.sheet.on { display: flex; }
.sheet-head {
  display: flex; align-items: center;
  margin-bottom: 56px;
}
.sheet-close {
  width: 44px; height: 44px;
  margin-left: auto;
  font-size: 22px; color: var(--w60);
  display: inline-flex; align-items: center; justify-content: center;
}
.sheet-link {
  display: block;
  padding: 18px 0;
  font-family: 'Cormorant', serif; font-style: italic;
  font-size: 36px; color: var(--warm);
  border-bottom: 1px solid var(--dim);
  transition: color .25s var(--ease);
}
.sheet-link:hover, .sheet-link:active { color: var(--gold); }
.sheet-link.on { color: var(--gold); }
.sheet-cta {
  margin-top: auto;
  padding: 22px 28px;
  background: var(--gold);
  color: var(--black);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .28em;
  text-transform: lowercase;
  text-align: center;
}
.sheet-meta {
  margin-top: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: .25em;
  color: var(--w40);
  text-transform: lowercase;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.foot {
  margin-top: 96px;
  padding: 64px var(--pad) 36px;
  border-top: 1px solid var(--dim);
  background: rgba(8,8,8,.6);
}
.foot-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.foot-brand {
  font-family: 'Cormorant', serif; font-style: italic;
  font-size: 28px; color: var(--warm);
  letter-spacing: .2em;
  margin-bottom: 18px;
}
.foot-brand em { color: var(--gold); font-style: normal; }
.foot-line {
  font-family: 'Cormorant', serif; font-style: italic;
  font-size: 18px; color: var(--w60);
  line-height: 1.4;
  max-width: 320px;
}
.foot-h {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px; letter-spacing: .32em;
  color: var(--gold-d);
  text-transform: lowercase;
  margin-bottom: 22px;
}
.foot-link {
  display: block;
  padding: 8px 0;
  font-family: 'DM Sans', sans-serif; font-weight: 300;
  font-size: 12px; color: var(--w60);
  text-transform: lowercase;
  transition: color .2s var(--ease);
}
.foot-link:hover { color: var(--gold); }
.foot-bot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--dim);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px; letter-spacing: .22em;
  color: var(--w20);
  text-transform: lowercase;
}

/* ═══════════════════════════════════════════════════════
   COMMON PIECES
   ═══════════════════════════════════════════════════════ */
.section {
  padding: 96px var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}

.sec-head {
  display: flex; align-items: baseline; gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.sec-title {
  font-family: 'Cormorant', serif; font-style: italic; font-weight: 300;
  font-size: clamp(38px, 4.5vw, 56px);
  line-height: .95;
  letter-spacing: -.015em;
  color: var(--warm);
}
.sec-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .3em;
  color: var(--w40);
  text-transform: lowercase;
}

/* primary button */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 14px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .28em;
  text-transform: lowercase;
  border: 1px solid var(--dim);
  color: var(--warm);
  background: transparent;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn.primary { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn.primary:hover { background: var(--gold-l); border-color: var(--gold-l); color: var(--black); }
.btn.lg { padding: 18px 40px; font-size: 11px; letter-spacing: .3em; }
.btn .arr {
  display: inline-block; width: 22px; height: 1px;
  background: currentColor;
  transition: width .3s var(--ease);
}
.btn:hover .arr { width: 38px; }

/* tile base — echoes agent-dashboard motif */
.tile {
  position: relative;
  overflow: hidden;
  background: var(--s1);
  border: 1px solid var(--dim);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
  cursor: pointer;
}
.tile:hover { border-color: var(--gold-d); transform: translateY(-3px); }
.tile-img {
  position: relative;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.tile-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,.92) 0%, rgba(8,8,8,.32) 50%, rgba(8,8,8,.05) 100%);
}
.tile-pulse {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.tile-pulse.on { opacity: 1; }
.tile-body {
  padding: 22px 24px 26px;
  position: relative;
}
.tile-eye {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px; letter-spacing: .28em;
  color: var(--gold);
  text-transform: lowercase;
  margin-bottom: 8px;
}
.tile-title {
  font-family: 'Cormorant', serif; font-style: italic; font-weight: 300;
  font-size: 24px; line-height: 1.1;
  color: var(--warm);
  margin-bottom: 10px;
}
.tile-meta {
  display: flex; flex-wrap: wrap;
  gap: 8px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: .18em;
  color: var(--w40);
  text-transform: lowercase;
}
.tile-meta .g { color: var(--gold); }
.tile-frame-dots { display: flex; gap: 4px; margin-bottom: 14px; }
.tile-frame-dot { width: 14px; height: 1px; background: var(--w20); transition: background .4s; }
.tile-frame-dot.on { background: var(--gold); }

/* hero shell */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg-layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 2.2s var(--ease);
}
.hero-bg-layer.on { opacity: 1; }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(8,8,8,.55) 0%, rgba(8,8,8,.32) 35%, rgba(8,8,8,.94) 100%);
}
.hero-body {
  position: relative; z-index: 2;
  padding: 0 var(--pad) 96px;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
}
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .5em;
  color: var(--gold);
  text-transform: lowercase;
  margin-bottom: 28px;
}
.hero-title {
  font-family: 'Cormorant', serif; font-weight: 300;
  font-style: italic;
  font-size: clamp(48px, 7.5vw, 116px);
  line-height: .92;
  letter-spacing: -.02em;
  color: var(--warm);
  margin-bottom: 28px;
  max-width: 12ch;
}
.hero-sub {
  font-family: 'Cormorant', serif; font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--w80);
  line-height: 1.4;
  max-width: 38ch;
  margin-bottom: 44px;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-frame-strip {
  position: absolute; bottom: 28px; left: var(--pad); right: var(--pad);
  z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: .28em;
  color: var(--w40);
  text-transform: lowercase;
}
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 22px; height: 1px; background: var(--w20); transition: background .4s; }
.hero-dot.on { background: var(--gold); }

/* form pieces */
.f { display: flex; flex-direction: column; gap: 7px; }
.fl { font-family: 'JetBrains Mono', monospace; font-size: 8px; letter-spacing: .22em; color: var(--w40); text-transform: lowercase; }
.fi, .fs, textarea.fi {
  background: var(--s2);
  border: 1px solid var(--dim);
  color: var(--warm);
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 300;
  outline: none;
  transition: border-color .2s var(--ease);
  min-height: 48px;
  width: 100%;
}
.fi:focus, .fs:focus, textarea.fi:focus { border-color: var(--gold); }
.fi::placeholder { color: var(--w20); }
textarea.fi { min-height: 120px; resize: vertical; line-height: 1.5; }

/* eye-in animation */
.ease-in {
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.ease-in.on { opacity: 1; transform: translateY(0); }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tile-pulse-anim {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --pad: 24px; }
  .nav { padding: 0 var(--pad); }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .section { padding: 72px var(--pad); }
  .hero-frame-strip { left: var(--pad); right: var(--pad); }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-body { padding-bottom: 72px; }
  .sec-head { gap: 12px; }
}
