/* ==========================================================================
   Nojani — styles
   ========================================================================== */

:root {
  --bg: #f4f2ec;
  --bg-2: #eae7df;
  --ink: #0e141b;
  --ink-2: #3a424b;
  --muted: #6f757c;
  --line: rgba(14, 20, 27, 0.12);

  --dark: #0b1118;
  --dark-2: #131b24;
  --on-dark: #ecedea;
  --on-dark-2: #9aa3ad;
  --line-dark: rgba(236, 237, 234, 0.12);

  /* brand — from the Nojani Group logo */
  --teal: #0a8fcb;         /* on light */
  --teal-bright: #03b4f1;  /* on dark — matches the logo foil */
  --teal-deep: #06729f;    /* hover fills with white text */
  --gold: #b08a3e;         /* logo gold on light */
  --gold-bright: #d6ac63;  /* logo gold on dark */

  --accent: var(--teal);
  --accent-2: var(--gold);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
::selection { background: var(--teal-deep); color: #fff; }

/* dark surfaces get the brighter brand tones */
[data-theme="dark"],
.hero__frame { --accent: var(--teal-bright); --accent-2: var(--gold-bright); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent-2);
  border-radius: 1px;
}

.display {
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.display em { letter-spacing: -0.01em; }

/* Buttons & links ----------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s;
}
.btn:hover { background: var(--teal-deep); color: #fff; }
.btn:active { transform: scale(0.98); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--light { background: var(--on-dark); color: var(--dark); }

.link {
  display: inline-flex;
  gap: 8px;
  font-weight: 500;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ease), color 0.3s;
}
.link:hover { color: var(--accent); background-size: 0 1px; background-position: 100% 100%; }
.link span { transition: transform 0.4s var(--ease); }
.link:hover span { transform: translateX(4px); }

/* Nav ------------------------------------------------------------------ */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  color: var(--ink);
  transition: color 0.4s var(--ease);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-dark { color: var(--on-dark); }
.nav.is-dark::before { background: color-mix(in srgb, var(--dark) 72%, transparent); border-color: var(--line-dark); }
.nav.is-dark .nav__cta { background: var(--on-dark); color: var(--dark); }
.nav.is-dark .nav__cta:hover { background: var(--teal-bright); color: var(--dark); }

.nav__inner {
  position: relative;
  height: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo { display: inline-flex; align-items: center; }
.logo__svg { height: 34px; width: auto; overflow: visible; }
.lg-ink { fill: currentColor; }
.lg-teal { fill: var(--teal); transition: fill 0.4s var(--ease); }
.lg-gold { fill: var(--gold); transition: fill 0.4s var(--ease); }
.lg-muted { fill: var(--muted); transition: fill 0.4s var(--ease); }
.nav.is-dark .lg-teal, .footer .lg-teal { fill: var(--teal-bright); }
.nav.is-dark .lg-gold { fill: var(--gold-bright); }
.nav.is-dark .lg-muted, .footer .lg-muted { fill: var(--on-dark-2); }

.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; }
.nav__links a { position: relative; opacity: 0.75; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 1; }

.nav__toggle { display: none; }

.menu { display: none; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: grid;
    place-content: center;
    gap: 6px;
    margin-left: auto;
    width: 44px; height: 44px;
    border: 0; background: none;
    cursor: pointer;
  }
  .nav__toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: var(--bg);
    padding: calc(var(--nav-h) + 32px) var(--gutter) 32px;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.6s var(--ease);
  }
  .menu.is-open { clip-path: inset(0 0 0 0); }
  .menu nav { display: flex; flex-direction: column; }
  .menu a {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.03em;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  :root { --nav-h: 64px; }
  .logo__svg { height: 30px; }
  body.menu-open .nav { color: var(--ink); }
  body.menu-open .nav::before { opacity: 0; }
  body.menu-open .nav .lg-teal { fill: var(--teal); }
  body.menu-open .nav .lg-gold { fill: var(--gold); }
  body.menu-open .nav .lg-muted { fill: var(--muted); }
}

/* Hero ----------------------------------------------------------------- */

.hero { position: relative; height: 380vh; }
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + clamp(28px, 6vh, 72px));
  will-change: transform, opacity;
}

.hero__eyebrow { flex-wrap: wrap; row-gap: 6px; color: var(--ink-2); }
.hero__eyebrow::before { display: none; }
.hero__eyebrow i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-2); }

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 48px;
  align-items: end;
}

.hero__title {
  font-size: clamp(44px, 7.6vw, 124px);
  line-height: 0.94;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.hero__title em { letter-spacing: -0.015em; color: var(--accent); }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .ln > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1.2s var(--ease) forwards;
}
.hero__title .ln:nth-child(2) > span { animation-delay: 0.1s; }

.hero__lede {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 34ch;
  opacity: 0;
  animation: fade 1s var(--ease) 0.5s forwards;
}
.hero__eyebrow { opacity: 0; animation: fade 1s var(--ease) 0.3s forwards; }

@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hero__frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--dark);
  color: var(--on-dark);
  clip-path: inset(60% var(--gutter) 3% var(--gutter) round 18px);
  will-change: clip-path;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 55%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 55%, #000 30%, transparent 100%);
  opacity: 0.6;
}

.hero__svg {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: min(1100px, 92vw);
  height: auto;
  max-height: 78%;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  overflow: visible;
  will-change: transform;
}

/* drawing strokes */
.hero__svg .nb { fill: none; stroke: var(--on-dark-2); stroke-width: 0.8; opacity: 0.55; }
.hero__svg .ground { stroke: var(--on-dark-2); stroke-width: 1; fill: none; }
.hero__svg .old rect { fill: none; stroke: var(--on-dark-2); stroke-width: 1; }
.hero__svg .old .win { stroke-width: 0.8; opacity: 0.7; }
.hero__svg .draw { fill: none; stroke: var(--on-dark); stroke-width: 1.2; stroke-linecap: square; }
.hero__svg .draw.fine { stroke-width: 0.7; stroke: var(--on-dark-2); }
.hero__svg .draw.acc { stroke: var(--accent-2); stroke-width: 1.4; }
.hero__svg .glow { fill: var(--accent); }
.hero__svg .dim { stroke: var(--on-dark-2); stroke-width: 0.8; fill: none; stroke-dasharray: 3 4; }
.hero__svg .lbl { fill: var(--on-dark-2); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }
.hero__svg .debris { fill: var(--on-dark-2); }

.hero__hud {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--on-dark-2);
  font-size: 11px;
}
.hero__hud--tl { top: calc(var(--nav-h) + 20px); left: var(--gutter); }
.hero__hud--br { right: var(--gutter); bottom: 28px; align-items: flex-end; }
.hud__phase { color: var(--on-dark); font-size: 12px; }
.hud__bar { width: 160px; height: 1px; background: var(--line-dark); position: relative; }
.hud__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  color: var(--on-dark-2);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 28px;
  background: linear-gradient(var(--on-dark-2), transparent);
  animation: drip 1.8s var(--ease) infinite;
  transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 860px) {
  .hero__row { grid-template-columns: 1fr; gap: 20px; }
  .hero__hud--tl { display: none; }
  .hud__bar { width: 110px; }
  .hero__svg { width: 165vw; max-width: none; max-height: none; bottom: 12%; }
}

/* Statement ------------------------------------------------------------ */

.statement { padding: clamp(120px, 20vh, 220px) 0; }
.statement__text {
  font-size: clamp(30px, 4.2vw, 64px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 22ch;
  max-width: min(100%, 1180px);
  text-wrap: pretty;
}
.statement__text .w { opacity: 0.14; transition: opacity 0.25s linear; }
.statement__text .w.on { opacity: 1; }
.statement__text em .w.on { color: var(--accent); }

/* Services (horizontal) ------------------------------------------------ */

.services {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
}
.services__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 5vh, 56px);
}
.services .eyebrow { color: var(--on-dark-2); margin: 0; }
.services__head { display: flex; align-items: center; justify-content: space-between; padding-top: var(--nav-h); }
.services__meter { display: flex; align-items: center; gap: 6px; color: var(--on-dark-2); }
.services__meter #svcCount { color: var(--on-dark); }
.services__bar { width: 120px; height: 1px; margin-left: 14px; background: var(--line-dark); position: relative; }
.services__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.services__track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  padding-inline: var(--gutter);
  width: max-content;
  will-change: transform;
}

.svc-intro {
  width: min(560px, 80vw);
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: clamp(20px, 4vw, 80px);
}
.svc-intro p { color: var(--on-dark-2); max-width: 42ch; margin-top: 32px; }

.svc {
  flex: none;
  width: clamp(300px, 32vw, 460px);
  min-height: min(560px, 64vh);
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: var(--dark-2);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.svc:hover { border-color: rgba(236, 235, 230, 0.28); }
.svc__top { display: flex; justify-content: space-between; color: var(--on-dark-2); }
.svc__art {
  width: 100%;
  height: auto;
  max-height: 140px;
  margin: 28px 0 auto;
  fill: none;
  stroke: var(--on-dark-2);
  stroke-width: 1.2;
}
.svc__art .a { stroke: var(--accent); }
.svc__art .f { fill: var(--accent); stroke: none; }
.svc__art .dash { stroke-dasharray: 2 4; }
.svc h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin: 28px 0 14px; }
.svc p { color: var(--on-dark-2); font-size: 15px; }
.svc ul { margin-top: 22px; border-top: 1px solid var(--line-dark); }
.svc li { font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); display: flex; justify-content: space-between; }
.svc li::after { content: "+"; color: var(--on-dark-2); }

@media (max-width: 860px) {
  .services__sticky { position: static; height: auto; padding: 96px 0; }
  .services__head { padding-top: 0; }
  .services__meter { display: none; }
  .services__track { flex-direction: column; width: auto; transform: none !important; }
  .svc-intro, .svc { width: 100%; min-height: 0; }
  .svc-intro { padding: 0 0 16px; }
}

/* Approach -------------------------------------------------------------- */

.approach { padding: clamp(110px, 18vh, 200px) 0; }
.approach__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 120px); }
.approach__pin { position: sticky; top: calc(var(--nav-h) + 48px); }
.approach__index { display: flex; align-items: flex-end; gap: 20px; margin-top: clamp(40px, 10vh, 120px); }
.approach__num {
  font-size: clamp(96px, 14vw, 220px);
  line-height: 0.8;
  font-weight: 400;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  display: inline-block;
}
.approach__num.flip { animation: flip 0.6s var(--ease); }
@keyframes flip { from { transform: translateY(18%); opacity: 0; } to { transform: none; opacity: 1; } }
.approach__rail { flex: 1; height: 1px; background: var(--line); position: relative; margin-bottom: 12px; max-width: 200px; }
.approach__rail i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  column-gap: 24px;
  padding: clamp(40px, 9vh, 88px) 0;
  border-bottom: 1px solid var(--line);
  opacity: 0.3;
  transition: opacity 0.6s var(--ease);
}
.step.is-active { opacity: 1; }
.step__k { color: var(--muted); padding-top: 12px; grid-row: span 2; }
.step h3 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 500; letter-spacing: -0.035em; line-height: 1; margin-bottom: 18px; }
.step p { color: var(--ink-2); max-width: 46ch; }

@media (max-width: 860px) {
  .approach__grid { grid-template-columns: 1fr; }
  .approach__pin { position: static; }
  .approach__index { display: none; }
  .step { grid-template-columns: 40px 1fr; }
}

/* Numbers -------------------------------------------------------------- */

.numbers { background: var(--dark); color: var(--on-dark); padding: clamp(80px, 14vh, 140px) 0; }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.stat { padding: 32px 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.stat__n { font-size: clamp(48px, 6vw, 96px); font-weight: 400; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__n b { font-weight: 400; }
.stat__l { color: var(--on-dark-2); font-size: 14px; max-width: 22ch; }

@media (max-width: 860px) {
  .numbers__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat { padding-bottom: 32px; }
}

/* Sectors -------------------------------------------------------------- */

.sectors { padding: clamp(110px, 18vh, 200px) 0; }
.section-head { margin-bottom: clamp(48px, 8vh, 96px); }

.rows { border-top: 1px solid var(--ink); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1.2fr) minmax(0, 1fr) 40px;
  gap: 24px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
  isolation: isolate;
}
.row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  background: var(--ink);
  z-index: -1;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.5s var(--ease);
}
.row__i { color: var(--muted); transition: color 0.4s; }
.row__t { font-size: clamp(24px, 3vw, 44px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; transition: color 0.4s, transform 0.5s var(--ease); }
.row__d { color: var(--muted); font-size: 15px; transition: color 0.4s; }
.row__a { font-size: 22px; justify-self: end; transition: transform 0.5s var(--ease), color 0.4s; }

@media (hover: hover) {
  .row:hover::before { transform: scaleY(1); transform-origin: 50% 0; }
  .row:hover .row__t { color: var(--bg); transform: translateX(10px); }
  .row:hover .row__d { color: var(--on-dark-2); }
  .row:hover .row__i { color: var(--teal-bright); }
  .row:hover .row__a { color: var(--teal-bright); transform: rotate(-45deg); }
}

@media (max-width: 860px) {
  .row { grid-template-columns: 36px 1fr; row-gap: 8px; }
  .row__d { grid-column: 2; }
  .row__a { display: none; }
}

/* Network -------------------------------------------------------------- */

.network { padding: 0 0 clamp(110px, 18vh, 200px); overflow: hidden; }
.network__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 6vw, 120px);
  align-items: end;
  padding-top: clamp(80px, 12vh, 140px);
  border-top: 1px solid var(--line);
}
.network__body p { color: var(--ink-2); margin-bottom: 18px; max-width: 44ch; }
.network__body .link { margin-top: 12px; }

.marquee { margin-top: clamp(72px, 12vh, 140px); display: grid; gap: 14px; }
.marquee__row { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 56s; }
.marquee__set { display: flex; gap: 14px; padding-right: 14px; }
.marquee__set span {
  white-space: nowrap;
  font-size: clamp(22px, 2.6vw, 38px);
  letter-spacing: -0.03em;
  font-weight: 500;
  padding: 14px 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.marquee__row--rev .marquee__set span { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--ink-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 860px) {
  .network__grid { grid-template-columns: 1fr; }
}

/* Contact -------------------------------------------------------------- */

.contact { background: var(--dark); color: var(--on-dark); padding: clamp(110px, 18vh, 200px) 0; }
.contact .eyebrow { color: var(--on-dark-2); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 140px); }
.contact__title { font-size: clamp(36px, 4.4vw, 68px); line-height: 1.02; font-weight: 500; letter-spacing: -0.035em; }
.contact__title em { color: var(--accent); }
.contact__meta { margin-top: 56px; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.contact__meta div { display: grid; grid-template-columns: 100px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.contact__meta dt { color: var(--on-dark-2); padding-top: 3px; }
.contact__meta a { transition: color 0.2s; }
.contact__meta a:hover { color: var(--accent); }

.form { display: grid; gap: 28px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: grid; gap: 6px; }
.field > span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--on-dark-2); }
.field input,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  padding: 10px 0 12px;
  font-size: 18px;
  border-radius: 0;
  resize: vertical;
  transition: border-color 0.3s;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--on-dark); }
.field.is-invalid input { border-color: var(--accent); }

.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--on-dark-2); margin-bottom: 12px; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 14px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.chips label:hover span { border-color: var(--on-dark-2); }
.chips input:checked + span { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form__status { color: var(--on-dark-2); }

@media (max-width: 860px) {
  .contact__grid, .form__row { grid-template-columns: 1fr; }
}

/* Footer --------------------------------------------------------------- */

.footer { background: var(--dark); color: var(--on-dark); padding: 40px 0 28px; border-top: 1px solid var(--line-dark); overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 40px 0 0; }
.footer__tag { color: var(--on-dark-2); max-width: 32ch; }
.footer__cols nav { display: grid; gap: 8px; align-content: start; font-size: 15px; }
.footer__cols nav p { color: var(--on-dark-2); margin-bottom: 8px; }
.footer__cols nav a { opacity: 0.85; transition: opacity 0.2s, color 0.2s; justify-self: start; }
.footer__cols nav a:hover { opacity: 1; color: var(--accent); }

.footer__mark { margin: clamp(60px, 12vh, 140px) 0 32px; }
.fword { display: block; width: 100%; height: auto; fill: var(--on-dark); }
.fword .fp { transform-box: fill-box; will-change: transform; }

.footer__base { display: flex; justify-content: space-between; color: var(--on-dark-2); border-top: 1px solid var(--line-dark); padding-top: 20px; }
.footer__base a:hover { color: var(--on-dark); }

@media (max-width: 860px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:first-child { grid-column: 1 / -1; }
}

/* Reveal --------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__row { animation: none; }
}
