/* ===========================================================
   ODDYSIAN — Explore Further
   v3 — editorial / structural / dark
   Type: Instrument Serif (display) · Space Mono (system) · Inter (body)
=========================================================== */

/* ---------- self-hosted type (no third-party request) ---------- */
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/space-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/space-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --bg:          #0a0a0c;
  --bg-2:        #0e0e11;
  --surface:     #131317;
  --ink:         #f4efe4;
  --ink-2:       #b9b4a8;
  --muted:       #85817a;
  --gold:        #d9a960;
  --gold-2:      #9e8050;
  --navy:        #33456f;
  --rule:        rgba(244, 239, 228, 0.11);
  --rule-2:      rgba(244, 239, 228, 0.26);

  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:     cubic-bezier(0.65, 0, 0.35, 1);
  --gut:         clamp(20px, 4vw, 64px);
  --max:         1440px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* =====================================================
   AMBIENT FIELD — fixed grid + drifting glow, present the
   whole way down the page, behind every section
===================================================== */
.bgfx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bgfx-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 86px 86px;
  opacity: .4;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 18%, #000 35%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 18%, #000 35%, transparent 92%);
}
.bgfx-glow {
  position: absolute;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .17;
  will-change: transform;
}
.bgfx-glow--gold {
  top: -12%;
  left: -12%;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  animation: bgfxDrift1 46s var(--ease-io) infinite alternate;
}
.bgfx-glow--navy {
  bottom: -16%;
  right: -12%;
  width: 66vmax;
  height: 66vmax;
  background: radial-gradient(circle, var(--navy), transparent 70%);
  opacity: .22;
  animation: bgfxDrift2 54s var(--ease-io) infinite alternate;
}
.bgfx-glow--gold2 {
  top: 32%;
  right: 6%;
  width: 42vmax;
  height: 42vmax;
  opacity: .1;
  background: radial-gradient(circle, var(--gold-2), transparent 70%);
  animation: bgfxDrift3 60s var(--ease-io) infinite alternate;
}
@keyframes bgfxDrift1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(7vw, 9vh, 0) scale(1.14); }
}
@keyframes bgfxDrift2 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-8vw, -6vh, 0) scale(1.08); }
}
@keyframes bgfxDrift3 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-6vw, 8vh, 0) scale(0.92); }
}
@media (prefers-reduced-motion: reduce) {
  .bgfx-glow { animation: none; }
}

body.is-locked { overflow: hidden; }

h1, h2, h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: #0a0a0c; }

/* ---------- system type ---------- */
.mono {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
}


/* =====================================================
   CURSOR
===================================================== */
.cursor, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 300;
  border-radius: 50%;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .3s ease;
}
body.cursor-live .cursor, body.cursor-live .cursor-ring { opacity: 1; }
.cursor {
  width: 6px; height: 6px;
  background: var(--ink);
  margin: -3px 0 0 -3px;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(244,239,228,0.45);
  margin: -17px 0 0 -17px;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), border-color .3s var(--ease);
}
body.cursor-live .cursor-ring.is-big {
  width: 62px; height: 62px;
  margin: -31px 0 0 -31px;
  border-color: var(--gold);
}
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
}

/* =====================================================
   STAR RAIL — scroll position, brand-shaped
===================================================== */
.rail {
  position: fixed;
  right: 26px;
  top: 16vh;
  bottom: 16vh;
  width: 14px;
  z-index: 110;
  display: none;
  pointer-events: none;
}
@media (min-width: 1100px) { .rail { display: block; } }

.rail-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(var(--rule), var(--rule-2), var(--rule));
}
.rail-star {
  position: absolute;
  left: 50%;
  top: 0;
  width: 13px; height: 13px;
  margin-left: -6.5px;
  margin-top: -6.5px;
  fill: var(--gold);
  will-change: transform;
  filter: drop-shadow(0 0 6px rgba(217,169,96,.55));
}

/* =====================================================
   LOGO INTRO — the comet flies the ring, the mark
   resolves, then the lockup becomes the header logo
===================================================== */
/* Hidden until JS arms it: no script, no overlay, no blank page. */
.intro {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: var(--bg);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
}
.intro.is-armed { opacity: 1; pointer-events: auto; }
.intro.is-clearing { transition: opacity .55s var(--ease) .25s; opacity: 0; }

/* starfield */
.intro-sky { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.intro.is-armed .intro-sky { opacity: 1; }
.intro-sky span {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
  animation: twinkle 3.4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.6); }
  50%      { opacity: var(--tw, .5); transform: scale(1); }
}
.intro-sky span.is-lit {
  animation: none;
  opacity: 1;
  background: var(--gold);
  transform: scale(3.2);
  box-shadow: 0 0 10px 3px rgba(217,169,96,.7), 0 0 28px 9px rgba(217,169,96,.3);
  transition: opacity .9s var(--ease), transform .9s var(--ease), box-shadow 1.1s var(--ease);
}

.intro-core { position: relative; display: grid; place-items: center; will-change: transform; }

.intro-stage { position: relative; width: 150px; height: 150px; }
.intro-stage svg, .intro-stage img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ring drawn in the comet's wake */
.intro-ring path {
  stroke: rgba(244, 239, 228, 0.5);
  stroke-width: 1.25;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.intro.is-flying .intro-ring path {
  transition: stroke-dashoffset 1500ms cubic-bezier(0.45, 0, 0.25, 1);
  stroke-dashoffset: 0;
}
.intro.is-resolving .intro-ring path { transition: opacity .5s ease; opacity: 0; }

/* the comet — travels the identical path via CSS motion path */
.comet {
  position: absolute;
  left: 0; top: 0;
  width: 9px; height: 9px;
  offset-path: path("M 119.2 44 A 54 54 0 1 1 30.8 106 A 54 54 0 1 1 119.2 44");
  offset-distance: 0%;
  offset-rotate: auto;
  offset-anchor: 50% 50%;
  opacity: 0;
}
.comet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 10px 3px rgba(217,169,96,.75);
}
/* tail, trailing behind the head */
.comet i {
  position: absolute;
  right: 50%;
  top: 50%;
  width: 46px; height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(270deg, rgba(217,169,96,.85), rgba(217,169,96,0));
  border-radius: 2px;
}
.intro.is-flying .comet {
  opacity: 1;
  transition: opacity .25s ease;
  animation: fly 1500ms cubic-bezier(0.45, 0, 0.25, 1) forwards;
}
@keyframes fly { to { offset-distance: 100%; } }
.intro.is-resolving .comet { opacity: 0; transition: opacity .4s ease; }

/* wireframe of the real mark, revealed as the comet lands */
.intro-ghost path {
  fill: none;
  stroke: rgba(244, 239, 228, 0.55);
  stroke-width: 70;   /* inside the trace's 0.1 scale -> ~3px */
  opacity: 0;
  transition: opacity .55s ease;
}
.intro.is-resolving .intro-ghost path { opacity: 1; }
.intro.is-painted  .intro-ghost path { opacity: 0; transition: opacity .7s ease .25s; }

/* solid mark wiped in along the comet's vector */
.intro-solid {
  clip-path: polygon(-40% 120%, -40% 120%, -10% 150%, -10% 150%);
}
.intro.is-painted .intro-solid {
  transition: clip-path 1s var(--ease-io);
  clip-path: polygon(-40% 120%, 140% -60%, 170% -30%, -10% 150%);
}

/* flare where the comet comes to rest — the logo's own star */
.intro-flash {
  position: absolute;
  top: 20%; right: 12%;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,235,200,.95), rgba(217,169,96,0) 70%);
  opacity: 0;
  transform: scale(.2);
}
.intro.is-flared .intro-flash { animation: flash .9s var(--ease) forwards; }
@keyframes flash {
  0%   { opacity: 0; transform: scale(.2); }
  30%  { opacity: 1; transform: scale(1.6); }
  100% { opacity: 0; transform: scale(3); }
}

.intro-word {
  margin-top: 26px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.intro-word img { height: 16px; width: auto; display: block; }
.intro.is-named .intro-word { opacity: 1; transform: none; }
/* the wordmark drops away first so the mark alone flies to the header */
.intro.is-handing .intro-word { opacity: 0; transform: translateY(-6px); transition: opacity .3s ease; }

/* FLIP hand-off to the header logo */
.intro.is-handing .intro-core {
  transition: transform 900ms cubic-bezier(0.65, 0, 0.25, 1);
}
.intro.is-handing .intro-stage { transition: none; }

.intro-skip {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: "Space Mono", monospace;
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transition: opacity .5s ease, color .3s;
  padding: 10px 16px;
}
.intro.is-armed .intro-skip { opacity: 1; transition-delay: .9s; }
.intro-skip:hover { color: var(--ink); }

/* header logo stays hidden until the intro hands it over */
body.intro-running .brand { opacity: 0; }

@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* =====================================================
   HEADER
===================================================== */
.head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
}
.head.is-stuck {
  background: rgba(10,10,12,.72);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--rule);
}

.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gut);
  max-width: var(--max);
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 27px; height: 27px; display: block; }
.brand-word { height: 14px; width: auto; display: block; }

.head-nav { display: none; gap: 34px; align-items: center; }
@media (min-width: 900px) { .head-nav { display: flex; } }

.head-nav a {
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 7px;
  transition: color .3s var(--ease);
}
.head-nav a i {
  font-style: normal;
  font-size: 0.56rem;
  color: var(--gold-2);
  transition: color .3s var(--ease);
}
.head-nav a:hover, .head-nav a.on { color: var(--ink); }
.head-nav a.on i { color: var(--gold); }

.head-right { display: flex; align-items: center; gap: 14px; }

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #12100b;
  background: var(--gold);
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 13px; height: 13px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-line {
  background: none;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-2);
}
.btn-line::before { display: none; }
.btn-line:hover { color: var(--gold); border-bottom-color: var(--gold); }

.mag { display: inline-block; will-change: transform; }

/* =====================================================
   MENU (mobile)
===================================================== */
.burger {
  width: 40px; height: 40px;
  display: grid;
  place-content: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--rule-2);
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 17px; height: 1px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .25s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
@media (min-width: 900px) { .burger { display: none; } }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 115;
  background: var(--bg);
  padding: 96px var(--gut) var(--gut);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
}
.sheet.is-open { clip-path: inset(0 0 0 0); }
.sheet-nav { display: flex; flex-direction: column; }
.sheet-nav a {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 11vw, 3.4rem);
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.sheet-nav a span { font-family: "Space Mono", monospace; font-size: .62rem; color: var(--gold-2); letter-spacing: .16em; }
.sheet-foot { display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 900px) { .sheet { display: none; } }

/* =====================================================
   MASKED TEXT REVEAL
===================================================== */
/* padding/negative-margin pair gives descenders room inside the mask
   without changing the line rhythm */
.rise {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.rise > span {
  display: block;
  transition: transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
/* hidden start states apply only when JS is running, so a no-JS
   visitor (or a crawler) gets the full page instead of a blank one */
.js .rise > span { transform: translateY(105%); }
.is-in .rise > span, .rise.is-in > span { transform: translateY(0); }

.fade {
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .fade { opacity: 0; transform: translateY(14px); }
.fade.is-in, .is-in .fade { opacity: 1; transform: none; }

.rule-draw {
  height: 1px;
  background: var(--rule);
  transform-origin: 0 50%;
  transition: transform 1.1s var(--ease);
}
.js .rule-draw { transform: scaleX(0); }
.rule-draw.is-in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .rise > span { transform: none; }
  .fade { opacity: 1; transform: none; }
  .rule-draw { transform: scaleX(1); }
  .intro { display: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =====================================================
   HERO
===================================================== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 0 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: end;
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; }
}

.hero h1 {
  font-size: clamp(2.7rem, 6.6vw, 6rem);
  max-width: 15ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 10px;
}
.hero-meta div { display: flex; flex-direction: column; gap: 3px; }
.hero-meta strong {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: .92rem;
  color: var(--ink-2);
  letter-spacing: 0;
  text-transform: none;
}

.hero-lead {
  max-width: 46ch;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  color: var(--ink-2);
  margin-top: 34px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin: 42px 0 0;
}

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(32px, 5vh, 64px);
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.scroll-hint { display: flex; align-items: center; gap: 10px; }
.scroll-hint i {
  font-style: normal;
  width: 1px; height: 26px;
  background: linear-gradient(var(--gold), transparent);
  animation: drop 2.2s var(--ease-io) infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: 0 0; }
  45% { transform: scaleY(1); transform-origin: 0 0; }
  55% { transform: scaleY(1); transform-origin: 0 100%; }
  100% { transform: scaleY(0); transform-origin: 0 100%; }
}

/* =====================================================
   MARQUEE
===================================================== */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  gap: 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
  flex-shrink: 0;
  will-change: transform;
}
.marquee-track span {
  font-family: "Instrument Serif", serif;
  font-size: 1.5rem;
  color: var(--ink);
  opacity: .62;
}
.marquee-track i {
  font-style: normal;
  color: var(--gold);
  font-size: .7rem;
}

/* =====================================================
   SECTION FRAME
===================================================== */
.sec { padding: clamp(88px, 13vh, 168px) 0; position: relative; }

.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: clamp(48px, 7vh, 88px);
}
@media (min-width: 900px) {
  .sec-head { grid-template-columns: 180px minmax(0, 1fr); gap: 40px; }
}
.sec-index { display: flex; flex-direction: column; gap: 8px; }
.sec-index .bar { width: 34px; height: 1px; background: var(--gold); }
.sec-head h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); max-width: 17ch; }
.sec-head .sub { max-width: 50ch; margin-top: 18px; color: var(--muted); }

/* =====================================================
   SERVICES — indexed rows
===================================================== */
.rows { border-top: 1px solid var(--rule); }

.row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  isolation: isolate;
  transition: padding-left .5s var(--ease);
}
@media (min-width: 900px) {
  .row {
    grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1.5fr) 140px;
    gap: 32px;
    padding: 34px 0;
    align-items: center;
  }
  .row:hover { padding-left: 22px; }
}
.row::before {
  content: "";
  position: absolute;
  inset: 0 -22px;
  background: var(--surface);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .5s var(--ease);
  z-index: -1;
}
.row:hover::before { transform: scaleY(1); }

.row-n { font-family: "Space Mono", monospace; font-size: .68rem; color: var(--gold-2); letter-spacing: .16em; transition: color .4s; }
.row:hover .row-n { color: var(--gold); }

.row h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.row p { color: var(--muted); font-size: .95rem; max-width: 46ch; }

.row-tag {
  font-family: "Space Mono", monospace;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
}
@media (min-width: 900px) { .row-tag { justify-self: end; } }
.row-tag svg { width: 12px; height: 12px; color: var(--gold); opacity: 0; transform: translateX(-6px); transition: all .4s var(--ease); }
.row:hover .row-tag svg { opacity: 1; transform: translateX(0); }

/* =====================================================
   WORK — case blocks
===================================================== */
.case {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: clamp(44px, 7vh, 80px) 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 1000px) {
  .case { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 72px; }
}

.case-id { display: flex; flex-direction: column; gap: 18px; }
.case-id h3 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.case-loc { color: var(--muted); font-size: .9rem; }

.case-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 12px;
}
@media (min-width: 900px) {
  .case-stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}
.stat { background: var(--bg); padding: 18px 16px; }
.stat b {
  display: block;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 7px; font-size: .74rem; color: var(--muted); line-height: 1.45; }

.case-body { display: flex; flex-direction: column; gap: 26px; }
.case-block h4 {
  font-family: "Space Mono", monospace;
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 14px;
  font-weight: 400;
}
.case-block ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.case-block li {
  position: relative;
  padding-left: 22px;
  font-size: .95rem;
  color: var(--ink-2);
}
.case-block li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 9px; height: 1px;
  background: var(--gold);
}

.case-state {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Mono", monospace;
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--rule-2);
  padding: 9px 14px;
  align-self: flex-start;
}
.case-state i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(217,169,96,.5);
  animation: ping 2.4s var(--ease-io) infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(217,169,96,.5); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(217,169,96,0); }
}

.note {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: .84rem;
  color: var(--muted);
  max-width: 78ch;
}

/* =====================================================
   PROCESS
===================================================== */
.steps { display: grid; grid-template-columns: 1fr; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { position: relative; padding: 34px 26px 34px 0; border-top: 1px solid var(--rule); }
@media (min-width: 820px) { .step { padding: 40px 26px 0 0; } }
.step-n { font-family: "Space Mono", monospace; font-size: .64rem; letter-spacing: .18em; color: var(--gold); margin-bottom: 18px; }
.step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .92rem; }
.step::after {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(1);
  transform-origin: 0 50%;
  transition: transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .step::after { transform: scaleX(0); }
.js .steps.is-in .step::after { transform: scaleX(1); }

/* =====================================================
   CONTACT
===================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: start; }
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 80px; }
  /* pin the address block so the long form doesn't leave a void beside it */
  .contact-grid > div:first-child { position: sticky; top: 118px; }
}

.big-mail {
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.5rem, 3.6vw, 2.7rem);
  color: var(--ink);
  display: inline-block;
  position: relative;
  line-height: 1.2;
  word-break: break-word;
}
.big-mail::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .6s var(--ease);
}
.big-mail:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.meta-list { margin-top: 40px; display: flex; flex-direction: column; }
.meta-list div {
  display: flex;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  font-size: .92rem;
  color: var(--ink-2);
}
.meta-list div span:first-child { min-width: 104px; }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; position: relative; }
.field label {
  font-family: "Space Mono", monospace;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-2);
  padding: 11px 0;
  border-radius: 0;
  transition: border-color .4s var(--ease);
}
.field textarea { resize: vertical; min-height: 74px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.field select option { background: var(--bg); color: var(--ink); }
.form .btn { justify-content: center; width: 100%; margin-top: 6px; }
.form-note { font-size: .76rem; color: var(--muted); }
.form-note.is-ok { color: var(--gold); }
.form-note.is-err { color: #d97b6a; }
.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.btn[disabled] { opacity: .55; cursor: default; pointer-events: none; }

/* =====================================================
   FOOTER
===================================================== */
.foot { border-top: 1px solid var(--rule); padding: clamp(48px,7vh,88px) 0 34px; }
.foot-mark { display: flex; align-items: center; gap: 16px; margin-bottom: 44px; }
.foot-mark img.m { width: 40px; height: 40px; }
.foot-mark img.w { height: 22px; width: auto; }

.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 26px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.foot-grid div { display: flex; flex-direction: column; gap: 7px; }
.foot-grid a { color: var(--ink-2); font-size: .9rem; transition: color .3s; }
.foot-grid a:hover { color: var(--gold); }
.foot-grid p { color: var(--ink-2); font-size: .9rem; }
