/* ==========================================================================
   Stetson Design + Build
   Brand: Satoshi · Gold #D4AF37 · Black #0F0F0F · Earth #8C5F2E · Light #E5E5E5
   ========================================================================== */

@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/Satoshi-Variable.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --gold:        #D4AF37;
  --gold-soft:   #E3C766;
  --earth:       #8C5F2E;
  --black:       #0F0F0F;
  --light:       #E5E5E5;

  --bg:          #0F0F0F;
  --bg-2:        #141414;
  --bg-3:        #1A1A1A;
  --line:        rgba(229,229,229,.10);
  --line-2:      rgba(229,229,229,.16);
  --txt:         #E5E5E5;
  --txt-dim:     rgba(229,229,229,.62);
  --txt-faint:   rgba(229,229,229,.56);
  /* Gold for TEXT: bright on dark; darkened on light where #D4AF37 fails contrast */
  --gold-text:   #D4AF37;
  --err:         #E08078;
  --nav-bg:      rgba(15,15,15,.72);
  --nav-bg-solid: rgba(15,15,15,.9);
  --grid-line:   rgba(229,229,229,.028);

  --wrap:        1220px;
  --gutter:      clamp(1.25rem, 4vw, 2.5rem);
  --sec-y:       clamp(5rem, 11vw, 9.5rem);
  --r:           2px;

  --ease:        cubic-bezier(.22,.61,.36,1);
  --nav-h:       76px;
}

/* ── Light theme (user toggle) ─────────────────────────── */
:root[data-theme="light"] {
  color-scheme: light;
  --bg:          #FAFAF8;
  --bg-2:        #F1F0EB;
  --bg-3:        #E9E7E0;
  --line:        rgba(15,15,15,.12);
  --line-2:      rgba(15,15,15,.20);
  --txt:         #0F0F0F;
  --txt-dim:     rgba(15,15,15,.72);
  --txt-faint:   rgba(15,15,15,.58);
  --gold-text:   #7A6017;  /* 5.2:1 on light bg; brand gold fails contrast as text on white */
  --err:         #B3261E;
  --nav-bg:      rgba(250,250,248,.80);
  --nav-bg-solid: rgba(250,250,248,.92);
  --grid-line:   rgba(15,15,15,.045);
}
:root[data-theme="light"] .hero-glow { opacity: .5; }
:root[data-theme="light"] .btn-primary::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
/* Same rules, user-toggled (data attribute set by the Calm motion button) */
:root[data-motion="reduce"] { scroll-behavior: auto; }
:root[data-motion="reduce"] *,
:root[data-motion="reduce"] *::before,
:root[data-motion="reduce"] *::after {
  animation-duration: .01ms !important;
  transition-duration: .01ms !important;
}
:root[data-motion="reduce"] .reveal,
:root[data-motion="reduce"] .io {
  opacity: 1 !important; transform: none !important; animation: none !important;
}
:root[data-motion="reduce"] h1 em::after { transform: scaleX(1); animation: none; }
:root[data-motion="reduce"] .dot { animation: none; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-variant-ligatures: common-ligatures;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--black);
  padding: .75rem 1.25rem; font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -.02em; line-height: 1.25; }

h1 em {
  font-style: normal;
  color: var(--gold-text);
  position: relative;
  display: inline-block;
}
h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  animation: sweep 1.1s var(--ease) 1.05s forwards;
}
@keyframes sweep { to { transform: scaleX(1); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--gold-text);
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(212,175,55,.55);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(212,175,55,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}

.sec-tag {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--txt-faint);
  margin-bottom: 1.15rem;
}
.sec-sub {
  color: var(--txt-dim);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  --pad: 1rem 1.9rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: var(--pad);
  font-weight: 600; font-size: .95rem; letter-spacing: -.01em;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), background .3s var(--ease),
              color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  transform: translateX(-110%);
  transition: transform .65s var(--ease);
}
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-primary:hover::after { transform: translateX(110%); }

.btn-ghost { border-color: var(--line-2); color: var(--txt); }
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-text);
  background: rgba(212,175,55,.06);
  transform: translateY(-2px);
}
.btn-full { width: 100%; }

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: var(--nav-bg-solid); }

.nav-in {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 2rem;
}

.brand { display: flex; align-items: center; gap: .8rem; margin-right: auto; }
.brand-mark {
  height: 30px; width: auto;
  color: var(--txt);   /* dark theme: reversed light letterforms; light theme: standard black */
  transition: transform .4s var(--ease);
}
.brand:hover .brand-mark { transform: scale(1.04); }
.brand-text { display: none; flex-direction: column; line-height: 1.1; }
.bt-1 {
  font-size: .95rem; font-weight: 700; color: var(--gold-text);
  letter-spacing: .13em; text-transform: uppercase;
}
.bt-2 {
  font-size: .62rem; font-weight: 500; color: var(--txt-faint);
  letter-spacing: .17em; text-transform: uppercase;
}
@media (min-width: 480px) {
  .brand-text { display: flex; }
  .brand { padding-left: .1rem; border-left: 1px solid transparent; }
}

.nav-links { display: none; gap: 2.1rem; }
.nav-links a {
  font-size: .89rem; font-weight: 500; color: var(--txt-dim);
  position: relative; padding: .3rem 0;
  transition: color .28s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .34s var(--ease);
}
.nav-links a:hover { color: var(--txt); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  display: none; align-items: center; gap: .55rem;
  font-size: .88rem; font-weight: 600; color: var(--gold-text);
  padding: .6rem 1.15rem;
  border: 1px solid rgba(212,175,55,.32);
  border-radius: var(--r);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav-cta svg { width: 15px; height: 15px; }
.nav-cta:hover { background: rgba(212,175,55,.1); border-color: var(--gold); }

@media (min-width: 900px) {
  .nav-links, .nav-cta { display: flex; }
  .burger { display: none !important; }
}

/* Accessibility toggles (theme + motion) */
.nav-tools { display: flex; gap: .5rem; }
.a11y-toggle {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--line-2); border-radius: var(--r);
  cursor: pointer; color: var(--txt-dim);
  transition: color .28s var(--ease), border-color .28s var(--ease);
}
.a11y-toggle:hover { color: var(--txt); border-color: var(--txt-faint); }
.a11y-toggle[aria-pressed="true"] { color: var(--gold-text); border-color: var(--gold); }
.a11y-toggle svg { width: 19px; height: 19px; }
.a11y-toggle .icon-on, .a11y-toggle[aria-pressed="true"] .icon-off { display: none; }
.a11y-toggle[aria-pressed="true"] .icon-on { display: block; }

.burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 9px;
  background: none; border: 1px solid var(--line-2); border-radius: var(--r);
  cursor: pointer;
}
.burger span {
  display: block; height: 1.5px; width: 100%; background: var(--txt);
  transition: transform .32s var(--ease), opacity .22s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: .5rem var(--gutter) 1.25rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500; color: var(--txt-dim);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mm-call {
  margin-top: 1rem; padding: .95rem !important;
  background: var(--gold); color: var(--black) !important;
  font-weight: 700 !important; text-align: center; border-radius: var(--r);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(4.5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 78% 62% at 32% 42%, #000 12%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 32% 42%, #000 12%, transparent 76%);
  pointer-events: none;
}
.hero-glow {
  position: absolute; top: -22%; right: -12%;
  width: min(760px, 82vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(212,175,55,.13), rgba(212,175,55,.04) 42%, transparent 68%);
  filter: blur(46px);
  pointer-events: none;
}
.hero-in { position: relative; }

.lede {
  margin-top: 1.9rem;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: var(--txt-dim);
  max-width: 60ch;
  text-wrap: pretty;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: .9rem;
  margin-top: 2.6rem;
}

.hero-trust {
  list-style: none; padding: 0;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  display: grid; gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
@media (min-width: 620px) { .hero-trust { grid-template-columns: repeat(3, 1fr); } }
.hero-trust li {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1.35rem 1.5rem;
  background: var(--bg);
}
.hero-trust strong {
  font-size: .95rem; font-weight: 700; color: var(--gold-text);
  letter-spacing: -.01em;
}
.hero-trust span { font-size: .84rem; color: var(--txt-faint); }

/* ── Sections ──────────────────────────────────────────── */
.section { padding: var(--sec-y) 0; position: relative; }
.sec-head { max-width: 66ch; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .sec-sub { margin-inline: auto; }
.sec-head h2 + .sec-sub { margin-top: 1.4rem; }

/* ── Service cards ─────────────────────────────────────── */
.cards {
  display: grid; gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  padding: clamp(1.9rem, 3vw, 2.5rem);
  background: var(--bg);
  transition: background .4s var(--ease);
  isolation: isolate;
}
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(212,175,55,.075), transparent 58%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.card:hover { background: var(--bg-2); }
.card:hover::before { opacity: 1; }
.card::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--gold);
  transform: scaleY(0); transform-origin: top;
  transition: transform .45s var(--ease);
}
.card:hover::after { transform: scaleY(1); }

.card-no {
  display: block;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  color: var(--gold-text);
  margin-bottom: 1.15rem;
}
.card h3 { margin-bottom: .8rem; }
.card:hover h3 { color: var(--gold-text); transition: color .35s var(--ease); }
.card p { font-size: .93rem; color: var(--txt-dim); text-wrap: pretty; }
.card.feature::after { transform: scaleY(1); }

/* ── Approach ──────────────────────────────────────────── */
.approach { background: var(--bg-2); border-block: 1px solid var(--line); }
.split { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: start; }
@media (min-width: 940px) {
  .split { grid-template-columns: 0.92fr 1.08fr; gap: clamp(3rem, 7vw, 6rem); }
  .split-l { position: sticky; top: calc(var(--nav-h) + 3rem); }
}
.split-l h2 { margin-bottom: 1.5rem; }
.split-l .btn { margin-top: 2.2rem; }

.split-r { list-style: none; padding: 0; display: grid; gap: 0; }
.split-r li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.4rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
}
.split-r li:last-child { border-bottom: 1px solid var(--line); }
.pt-no {
  grid-row: span 2;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  color: var(--gold-text);
  padding-top: .35rem;
}
.split-r h3 { margin-bottom: .6rem; }
.split-r p { font-size: .93rem; color: var(--txt-dim); text-wrap: pretty; }

/* ── Areas ─────────────────────────────────────────────── */
.area-grid {
  display: grid; gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 780px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }

.area {
  text-align: center;
  padding: clamp(2.2rem, 4vw, 3rem) clamp(1.4rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s var(--ease);
}
.area:hover {
  border-color: rgba(212,175,55,.4);
  background: var(--bg-3);
  transform: translateY(-4px);
}
.area-cross {
  width: 34px; height: 34px;
  margin: 0 auto 1.5rem;
  color: var(--earth);
  transition: transform .55s var(--ease);
}
.area:hover .area-cross { transform: rotate(90deg); }
.area h3 { margin-bottom: .7rem; }
.area p { font-size: .91rem; color: var(--txt-dim); }

.areas-note {
  text-align: center;
  margin-top: 2.6rem;
  font-size: .92rem;
  color: var(--txt-faint);
}

/* ── Work / portfolio ──────────────────────────────────── */
.work-grid {
  display: grid; gap: clamp(1.2rem, 2.5vw, 2rem);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }

.work-card { display: flex; flex-direction: column; gap: .9rem; }
.work-cover {
  display: block; padding: 0; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  background: var(--bg-2);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.work-cover:hover { border-color: rgba(212,175,55,.45); transform: translateY(-3px); }
.work-cover img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.work-cover:hover img { transform: scale(1.03); }
.work-label h3 { font-size: 1.05rem; }
.work-label span { font-size: .82rem; color: var(--txt-faint); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,10,10,.94);
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1400px, 88vw); max-height: 90vh; margin: 0; }
.lightbox img {
  max-width: 100%; max-height: 82vh;
  object-fit: contain; border-radius: var(--r);
}
.lightbox figcaption {
  margin-top: .8rem; text-align: center;
  font-size: .9rem; color: rgba(229,229,229,.75);
}
.lb-close, .lb-prev, .lb-next {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  background: rgba(229,229,229,.08);
  border: 1px solid rgba(229,229,229,.2); border-radius: var(--r);
  color: #E5E5E5; font-size: 1.25rem; cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(212,175,55,.18); border-color: var(--gold);
}
.lb-close { position: absolute; top: 1rem; right: 1rem; }
@media (max-width: 640px) {
  .lightbox { flex-direction: column; }
  .lb-prev, .lb-next { position: fixed; bottom: 1rem; }
  .lb-prev { left: 1rem; } .lb-next { right: 1rem; }
}

/* ── Contact ───────────────────────────────────────────── */
.contact { border-top: 1px solid var(--line); background: var(--bg-2); }
.contact-grid { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: start; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1fr 1.15fr; } }
.contact-l h2 { margin-bottom: 1.5rem; }

.contact-list { list-style: none; padding: 0; margin-top: 2.6rem; display: grid; gap: 0; }
.contact-list li {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
  font-size: .93rem;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.cl-label {
  font-size: .7rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--txt-faint);
}
.contact-list a { color: var(--gold-text); transition: opacity .25s var(--ease); }
.contact-list a:hover { opacity: .75; text-decoration: underline; text-underline-offset: 3px; }

/* Form */
form { display: grid; gap: 1.15rem; }
.row { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .55rem; }
.field label {
  font-size: .74rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--txt-faint);
}
.field label span { color: var(--gold); }

input, select, textarea {
  width: 100%;
  padding: .9rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-size: .95rem;
  transition: border-color .28s var(--ease), background .28s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--txt-faint); opacity: .8; }
input:hover, select:hover, textarea:hover { border-color: rgba(229,229,229,.28); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-3);
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 11px;
  padding-right: 2.5rem;
  cursor: pointer;
}
select option { background: var(--bg-3); color: var(--txt); }

input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--err);
  background: rgba(192,69,59,.05);
}

/* Honeypot — hidden from humans, visible to naive bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.form-note { font-size: .85rem; color: var(--txt-faint); text-align: center; }
.form-note a { color: var(--gold-text); }
.form-status { font-size: .9rem; text-align: center; min-height: 1.2em; }
.form-status.ok    { color: var(--gold-text); }
.form-status.error { color: var(--err); }

button[disabled] { opacity: .55; cursor: not-allowed; }

/* ── Footer ────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-in {
  display: grid; gap: 2.2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}
@media (min-width: 860px) {
  .footer-in { grid-template-columns: 1.3fr 1.4fr auto; align-items: start; gap: 3rem; }
}
.f-brand { display: flex; flex-direction: column; gap: .5rem; }
.f-name { font-weight: 700; color: var(--gold-text); letter-spacing: -.01em; }
.f-tag { font-size: .88rem; color: var(--txt-faint); }
.f-meta { display: flex; flex-direction: column; gap: .45rem; font-size: .84rem; color: var(--txt-faint); }
.f-links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .89rem; }
.f-links a { color: var(--txt-dim); transition: color .28s var(--ease); }
.f-links a:hover { color: var(--gold-text); }

.f-legal {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem 2rem;
  font-size: .8rem; color: var(--txt-faint);
}

/* ── Reveal on scroll ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise .95s var(--ease) forwards;
}
.d1 { animation-delay: .09s; }
.d2 { animation-delay: .19s; }
.d3 { animation-delay: .29s; }
.d4 { animation-delay: .39s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.io {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.io.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .io { opacity: 1 !important; transform: none !important; animation: none !important; }
  h1 em::after { transform: scaleX(1); animation: none; }
}
