/* ==========================================================================
   Gravitas Trust House — site styles

   Shared across every page. Tokens mirror the product app's dark-mode values
   so the site and the product read as one brand; if the app's tokens change,
   change them here too.
   ========================================================================== */

:root{
  --ink:#f0efec;
  --paper:#101113;
  --paper-raised:#17191c;
  --rule:#2b2d31;
  --muted:#a6aaae;
  --gold:#b98d47;
  --gold-light:#e6c17a;

  --faint:#7d8288;
  --rule-faint:#212328;

  --measure: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  background:var(--paper);
  color:var(--ink);
  font-family:'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

::selection{ background:var(--gold); color:#14100c; }

a{ color:inherit; }

h1,h2,h3,h4{
  font-family:'Roboto Slab', Georgia, serif;
  font-weight:700;
  line-height:1.15;
  letter-spacing:-0.01em;
  margin:0;
}

@media (prefers-reduced-motion: reduce){
  *{
    animation-duration:0.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.001ms !important;
  }
}

/* Keyboard users get a visible focus ring; mouse users don't. */
:focus-visible{
  outline:2px solid var(--gold-light);
  outline-offset:3px;
  border-radius:2px;
}

.wrap{
  width:100%;
  max-width:var(--measure);
  margin:0 auto;
  padding-left:var(--pad);
  padding-right:var(--pad);
}

/* Lets keyboard and screen-reader users jump the nav. */
.skip{
  position:absolute; left:-9999px;
  background:var(--gold); color:#14100c;
  padding:10px 16px; border-radius:0 0 8px 0;
  font-weight:500; z-index:99;
}
.skip:focus{ left:0; top:0; }

/* ---------- ambient ---------- */
.grid-field{
  position:fixed; inset:0;
  background-image: radial-gradient(circle, rgba(240,239,236,0.05) 1px, transparent 1px);
  background-size:34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 25%, transparent 78%);
  pointer-events:none;
  z-index:0;
}
.ember{
  position:fixed;
  top:-10%; right:-6%;
  width:min(60vw,760px); height:min(60vw,760px);
  background: radial-gradient(circle, rgba(185,141,71,0.20) 0%, rgba(185,141,71,0.07) 40%, transparent 70%);
  filter: blur(34px);
  pointer-events:none;
  z-index:0;
  animation: emberPulse 8s ease-in-out infinite;
}
@keyframes emberPulse{
  0%,100%{ opacity:.75; transform:scale(1); }
  50%{ opacity:1; transform:scale(1.04); }
}

/* ---------- nav ---------- */
.nav{
  position:relative; z-index:3;
  border-bottom:1px solid var(--rule-faint);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:20px;
  padding-top:20px; padding-bottom:20px;
}
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; flex:none; }
.brand svg{ display:block; flex:none; }
.brand-text{ display:flex; flex-direction:column; line-height:1.05; }
.brand-name{
  font-family:'Roboto Slab', Georgia, serif;
  font-size:15px; font-weight:700; letter-spacing:0.16em;
}
.brand-sub{
  font-size:9.5px; font-weight:500; letter-spacing:0.28em;
  color:var(--muted); margin-top:3px;
}

.nav-links{ display:flex; align-items:center; gap:4px; }
.nav-link{
  font-size:14px; font-weight:400;
  color:var(--muted); text-decoration:none;
  padding:8px 14px; border-radius:999px;
  transition:color .18s ease, background .18s ease;
}
.nav-link:hover{ color:var(--ink); background:rgba(240,239,236,0.04); }
.nav-link[aria-current="page"]{ color:var(--ink); font-weight:500; }

.nav-cta{
  font-family:'Roboto', sans-serif;
  font-size:13.5px; font-weight:500;
  color:var(--ink);
  background:transparent;
  border:1px solid var(--rule);
  padding:9px 18px; border-radius:999px;
  cursor:pointer; text-decoration:none;
  transition:border-color .2s ease, background .2s ease;
  white-space:nowrap;
}
.nav-cta:hover{ border-color:var(--gold); background:rgba(185,141,71,0.10); }

.nav-toggle{
  display:none;
  background:transparent; border:1px solid var(--rule);
  color:var(--ink); border-radius:8px;
  width:38px; height:38px; cursor:pointer;
  align-items:center; justify-content:center;
}

/* ---------- page shell ---------- */
main{ position:relative; z-index:2; flex:1; }

.section{ padding-top:clamp(56px,7vw,96px); padding-bottom:clamp(56px,7vw,96px); }
.section + .section{ border-top:1px solid var(--rule-faint); }

.eyebrow{
  font-family:'Roboto Mono', ui-monospace, monospace;
  font-size:11px; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--gold-light);
  margin:0 0 14px;
}

h1{ font-size:clamp(36px,5vw,62px); }
h2{ font-size:clamp(26px,3.2vw,38px); }
h3{ font-size:19px; }

.lead{
  font-size:clamp(17px,1.5vw,19px);
  color:var(--muted);
  max-width:62ch;
  margin:18px 0 0;
}
.lead strong{ color:var(--ink); font-weight:500; }

p{ margin:0 0 16px; }
p:last-child{ margin-bottom:0; }

/* ---------- badges ---------- */
.badges{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:26px; }
.badge{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'Roboto Mono', ui-monospace, monospace;
  font-size:11px; letter-spacing:0.07em;
  color:var(--muted);
  border:1px solid var(--rule);
  background:rgba(240,239,236,0.02);
  padding:6px 12px; border-radius:999px;
}
.dot{
  width:6px; height:6px; border-radius:50%;
  background:var(--gold-light);
  box-shadow:0 0 8px 1px var(--gold-light);
  animation:dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse{ 0%,100%{opacity:1;} 50%{opacity:.35;} }

/* ---------- hero ---------- */
.hero{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,0.9fr);
  gap:40px; align-items:center;
  padding-top:clamp(40px,5vw,72px);
  padding-bottom:clamp(48px,6vw,88px);
}
.visual{ position:relative; height:min(52vh,440px); min-height:320px; }
#datafield{ position:absolute; inset:0; width:100%; height:100%; }
.tag{
  position:absolute;
  font-family:'Roboto Mono', ui-monospace, monospace;
  font-size:11px; letter-spacing:0.05em;
  color:var(--muted); opacity:.8; white-space:nowrap;
  animation:tagFloat 6s ease-in-out infinite;
}
.tag span{ color:var(--gold-light); }
.tag.t1{ top:6%; left:0; animation-delay:0s; }
.tag.t2{ bottom:16%; right:0; animation-delay:1.4s; }
.tag.t3{ bottom:2%; left:12%; animation-delay:2.8s; }
@keyframes tagFloat{
  0%,100%{ transform:translateY(0); opacity:.8; }
  50%{ transform:translateY(-7px); opacity:.45; }
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:9px;
  font-family:'Roboto', sans-serif;
  font-weight:500; font-size:14.5px;
  padding:13px 24px; border-radius:999px;
  border:none; cursor:pointer; text-decoration:none;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .2s ease;
}
.btn-primary{ background:var(--gold-light); color:#14100c; }
.btn-primary:hover{ box-shadow:0 0 24px rgba(230,193,122,0.28); transform:translateY(-1px); }
.btn-ghost{ background:transparent; color:var(--ink); border:1px solid var(--rule); }
.btn-ghost:hover{ border-color:var(--gold); background:rgba(185,141,71,0.08); }
.btn svg{ transition:transform .18s ease; }
.btn:hover svg{ transform:translateX(3px); }

.actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:32px; }

/* ---------- cards ---------- */
.grid{ display:grid; gap:18px; margin-top:40px; }
.grid-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.grid-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }

.card{
  background:var(--paper-raised);
  border:1px solid var(--rule);
  border-radius:14px;
  padding:24px;
}
.card h3{ margin-bottom:10px; }
.card p{ color:var(--muted); font-size:14.5px; margin:0; }
.card-num{
  font-family:'Roboto Mono', ui-monospace, monospace;
  font-size:11px; letter-spacing:0.12em;
  color:var(--gold); margin-bottom:12px;
}

/* ---------- definition rows ---------- */
.rows{ margin-top:40px; border-top:1px solid var(--rule-faint); }
.row{
  display:grid;
  grid-template-columns: minmax(0,240px) minmax(0,1fr);
  gap:28px;
  padding:26px 0;
  border-bottom:1px solid var(--rule-faint);
}
.row h3{ font-size:17px; }
.row-note{ color:var(--muted); font-size:14.5px; }
.row-note strong{ color:var(--ink); font-weight:500; }

/* ---------- callout ---------- */
.callout{
  margin-top:36px;
  border:1px solid var(--rule);
  border-left:3px solid var(--gold);
  background:var(--paper-raised);
  border-radius:0 12px 12px 0;
  padding:20px 24px;
}
.callout p{ color:var(--muted); font-size:14.5px; }
.callout strong{ color:var(--ink); font-weight:500; }

/* ---------- access form ---------- */
.access-form{ display:flex; flex-wrap:wrap; gap:12px; max-width:520px; margin-top:28px; }
.access-input{
  flex:1 1 240px;
  background:transparent; border:none;
  border-bottom:1px solid var(--rule);
  color:var(--ink);
  font-family:'Roboto', sans-serif; font-size:15px;
  padding:12px 4px; outline:none;
  transition:border-color .2s ease;
}
.access-input::placeholder{ color:var(--faint); }
.access-input:focus{ border-color:var(--gold); }
.access-note{
  font-family:'Roboto Mono', ui-monospace, monospace;
  font-size:12px; color:var(--faint);
  margin-top:14px; letter-spacing:0.02em;
}
.access-note.confirmed{ color:var(--gold-light); }
.access-note.errored{ color:#d98a7a; }

/* ---------- footer ---------- */
.foot{
  position:relative; z-index:2;
  border-top:1px solid var(--rule-faint);
  margin-top:auto;
}
.foot-inner{
  display:flex; flex-wrap:wrap; gap:14px;
  justify-content:space-between; align-items:center;
  padding-top:20px; padding-bottom:20px;
  font-family:'Roboto Mono', ui-monospace, monospace;
  font-size:11px; letter-spacing:0.07em;
  color:var(--faint);
}
.foot-links{ display:flex; flex-wrap:wrap; gap:18px; }
.foot-links a{ color:var(--faint); text-decoration:none; }
.foot-links a:hover{ color:var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px){
  .hero{ grid-template-columns:1fr; }
  .visual{ order:-1; height:260px; min-height:240px; }
  /* At this width the lattice fills the box, so the floating annotations sit
     on top of the cells and clip at the edge. The copy below says the same
     thing — drop them rather than crowd the visual. */
  .tag{ display:none; }
  .grid-3, .grid-2{ grid-template-columns:1fr; }
  .row{ grid-template-columns:1fr; gap:10px; }

  .nav-toggle{ display:inline-flex; }
  .nav-links{
    display:none;
    position:absolute; left:0; right:0; top:100%;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--paper-raised);
    border-bottom:1px solid var(--rule);
    padding:8px var(--pad) 16px;
    z-index:4;
  }
  .nav-links.open{ display:flex; }
  .nav-link{ padding:12px 0; border-radius:0; }
  .nav-inner{ position:relative; flex-wrap:wrap; }
}
