/* ============================================================
   MT DEVELOPMENT — ATELIER EDITION
   Midnight architecture. Tungsten & screen-light.
   ============================================================ */

:root {
  /* palette */
  --ink-0: #05080f;        /* deepest night */
  --ink-1: #070b14;        /* page ground */
  --ink-2: #0c1322;        /* raised panel */
  --ink-3: #121b2e;        /* hover panel */
  --ivory: #ede9df;        /* moonlight text */
  --ivory-dim: #b8b4a9;    /* secondary text */
  --muted: #7d8496;        /* tertiary / captions */
  --amber: #e8a33d;        /* tungsten lamp */
  --amber-soft: #f0bc6e;
  --cyan: #7fb4c9;         /* screen light */
  --line: rgba(237, 233, 223, 0.09);
  --line-strong: rgba(237, 233, 223, 0.18);

  /* type */
  --f-display: "Marcellus", serif;
  --f-italic: "Cormorant", serif;
  --f-body: "Jost", sans-serif;
  --f-mono: "JetBrains Mono", monospace;

  /* scale */
  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.89rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1: clamp(1.25rem, 1.16rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.56rem, 1.4rem + 0.8vw, 2rem);
  --step-3: clamp(1.95rem, 1.66rem + 1.45vw, 2.66rem);
  --step-4: clamp(2.44rem, 1.96rem + 2.4vw, 3.55rem);
  --step-5: clamp(3.05rem, 2.29rem + 3.8vw, 4.73rem);
  --step-6: clamp(3.5rem, 2.4rem + 5.5vw, 6.3rem);

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --measure: 34rem;

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --dur: 0.9s;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--ink-1);
  color: var(--ivory);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: var(--step-0);
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(232, 163, 61, 0.85); color: var(--ink-0); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

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

/* subtle film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(4%, -7%); }
  60% { transform: translate(-3%, -3%); }
  80% { transform: translate(5%, 6%); }
}

/* ---------- typography helpers ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.italic-note {
  font-family: var(--f-italic);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--amber);
  opacity: 0.65;
  flex: none;
}
.lede {
  color: var(--ivory-dim);
  max-width: var(--measure);
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.55;
}

/* ---------- layout ---------- */
.wrap {
  width: min(1240px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.section {
  padding-block: clamp(5rem, 12vh, 9rem);
  position: relative;
}
.section-head {
  display: grid;
  gap: 1.4rem;
  margin-bottom: clamp(2.8rem, 6vw, 4.5rem);
  max-width: 46rem;
}
.section-head h2 { font-size: var(--step-4); }

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 3000;
  background: var(--amber);
  color: var(--ink-0);
  padding: 0.7rem 1.2rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background 0.5s, box-shadow 0.5s;
}
.site-header.scrolled {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.brand .logo-img {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 3px;
  display: block;
  transition: transform 0.4s var(--ease-out), filter 0.4s;
}
.brand:hover .logo-img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 12px rgba(232, 163, 61, 0.35));
}
.brand .monogram {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--amber);
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.brand:hover .monogram { border-color: var(--amber); transform: rotate(45deg); }
.brand:hover .monogram span { display: inline-block; transform: rotate(-45deg); transition: transform 0.4s var(--ease-out); }
.brand .monogram span { transition: transform 0.4s var(--ease-out); }
.brand .wordmark {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory);
}
.brand .wordmark em {
  font-style: normal;
  color: var(--muted);
}
@media (max-width: 560px) {
  .brand .wordmark em { display: none; }
}
[id] { scroll-margin-top: 6.5rem; }

.main-nav { display: flex; align-items: center; gap: 2.2rem; }
.main-nav a.nav-link {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.3s;
}
.main-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.main-nav a.nav-link:hover { color: var(--ivory); }
.main-nav a.nav-link:hover::after,
.main-nav a.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.main-nav a.nav-link[aria-current="page"] { color: var(--amber); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--line-strong);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
  transition: color 0.45s, border-color 0.45s;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}
.btn:hover { color: var(--ink-0); border-color: var(--amber); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform 0.4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--solid {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink-0);
}
.btn--solid::before { background: var(--ivory); }
.btn--sm { padding: 0.7rem 1.2rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0.6rem;
  z-index: 1200;
}
.nav-toggle span {
  width: 26px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: rgba(5, 8, 15, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 1100;
  }
  .nav-open .main-nav { opacity: 1; pointer-events: auto; }
  .main-nav a.nav-link { font-size: 1rem; letter-spacing: 0.3em; }
  .main-nav .btn { margin-top: 1rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- header tools + language switcher ---------- */
.header-tools {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.7rem);
}
.lang-switch { position: relative; }
.lang-current {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ivory-dim);
  background: rgba(12, 19, 34, 0.45);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.lang-current:hover { border-color: var(--amber); color: var(--ivory); }
.lang-flag { display: inline-flex; align-items: center; }
.lang-flag svg {
  display: block;
  width: 1.2rem;
  height: 0.8rem;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.lang-menu .lang-flag svg { width: 1.35rem; height: 0.9rem; }
.lang-caret { font-size: 0.55rem; transition: transform 0.3s var(--ease-out); }
.lang-switch.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 10.5rem;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  background: rgba(7, 11, 20, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
  z-index: 1300;
}
.lang-switch.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  font-family: var(--f-body);
  font-size: 0.88rem;
  color: var(--ivory-dim);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-menu li:hover { background: rgba(232, 163, 61, 0.12); color: var(--ivory); }
.lang-menu li[aria-selected="true"] { color: var(--amber); }
.nav-toggle { position: relative; z-index: 1200; }
@media (max-width: 400px) {
  .lang-current .lang-code { display: none; }
  .lang-current { padding: 0.5rem 0.55rem; }
}

/* ---------- scene canvas (site-wide backdrop) ---------- */
#constellation {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
/* blue depth veil: blur + tint that intensify toward the bottom of the viewport */
.scene-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(27, 58, 143, 0) 0%,
    rgba(27, 58, 143, 0.07) 40%,
    rgba(24, 50, 128, 0.16) 70%,
    rgba(20, 42, 110, 0.30) 100%
  );
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.25) 38%, rgba(0, 0, 0, 0.7) 68%, #000 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.25) 38%, rgba(0, 0, 0, 0.7) 68%, #000 100%);
  opacity: 1;
  transition: opacity 1.4s ease;
}
.introing .scene-veil { opacity: 0; transition: none; }
@media (max-width: 700px) {
  .scene-veil { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}
main, .site-footer { position: relative; z-index: 1; }

/* ---------- cinematic intro state ---------- */
body.introing { overflow: hidden; }
.introing .site-header {
  opacity: 0 !important;
  pointer-events: none;
  transition: none !important;
}
/* Hold hero pieces at their pre-reveal pose while the intro plays; when the
   class drops they transition to their .in state with their own delays. */
.introing .hero-content .reveal {
  opacity: 0 !important;
  transform: translateY(2.2rem) !important;
  transition: none !important;
}
.introing .hero-content .reveal-line > span {
  transform: translateY(110%) !important;
  transition: none !important;
}
.introing .scroll-cue { opacity: 0 !important; transition: none !important; }
.introing .hero::after { opacity: 0; }
.hero::after { transition: opacity 1.2s ease; }
.site-header { transition: opacity 0.9s ease, background 0.5s, box-shadow 0.5s; }
.scroll-cue { transition: opacity 0.9s ease; }

.skip-hint {
  position: fixed;
  right: 1.4rem;
  bottom: 1.3rem;
  z-index: 2500;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.55rem 0.95rem;
  background: rgba(7, 11, 20, 0.55);
  opacity: 0;
  pointer-events: none;
}
.introing .skip-hint { animation: hint-in 0.8s 1.4s ease forwards; }
@keyframes hint-in { to { opacity: 1; } }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  position: relative;
}
.hero::after {
  /* vignette to seat the type */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(5, 8, 15, 0.72) 0%, rgba(5, 8, 15, 0.35) 38%, transparent 60%),
    radial-gradient(120% 90% at 30% 45%, transparent 40%, rgba(5, 8, 15, 0.55) 100%),
    linear-gradient(to top, var(--ink-1) 0%, transparent 22%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
  padding-block: 8rem 6rem;
  max-width: 52rem;
}
.hero h1 {
  font-size: var(--step-5);
}
.hero h1 .accent {
  color: var(--amber-soft);
}
.hero .lede { font-size: var(--step-1); }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.6rem; }

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue .line {
  width: 1px;
  height: 3.4rem;
  background: linear-gradient(var(--amber), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--ivory), transparent);
  animation: cue-drop 2.2s var(--ease-out) infinite;
}
@keyframes cue-drop {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}
@media (max-width: 640px) {
  .scroll-cue { display: none; }
}

/* ---------- manifesto ---------- */
.manifesto {
  padding-block: clamp(6rem, 16vh, 11rem);
}
.manifesto p {
  font-family: var(--f-display);
  font-size: var(--step-4);
  line-height: 1.28;
  max-width: 22ch;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}
.manifesto .word { color: rgba(237, 233, 223, 0.22); transition: color 0.3s linear; }
.manifesto .word.lit { color: var(--ivory); }
.manifesto .word.gold { transition: color 0.3s linear; }
.manifesto .word.gold.lit { color: var(--amber-soft); }

/* ---------- works ---------- */
.work-grid {
  display: grid;
  gap: clamp(3rem, 7vw, 5.5rem);
}
.work-card {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: end;
}
.work-card:nth-child(even) { grid-template-columns: 1fr 1.35fr; }
.work-card:nth-child(even) .work-media { order: 2; }
.work-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--ink-2);
}
.work-media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
  filter: saturate(0.92);
  will-change: transform;
}
.work-card a:hover .work-media img,
.work-card a:focus-visible .work-media img {
  transform: scale(1.04);
  filter: saturate(1.05);
}
.work-media .live-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6fce8f;
  background: rgba(7, 11, 20, 0.72);
  border: 1px solid rgba(111, 206, 143, 0.4);
  padding: 0.35rem 0.7rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}
.work-media .frame {
  position: absolute;
  inset: 0.9rem;
  border: 1px solid rgba(237, 233, 223, 0.25);
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.5s, transform 0.7s var(--ease-out);
  pointer-events: none;
}
.work-card a:hover .frame { opacity: 1; transform: scale(1); }
.work-info { display: grid; gap: 0.9rem; padding-bottom: 0.4rem; }
.work-info .index {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--muted);
}
.work-info h3 { font-size: var(--step-3); font-family: var(--f-display); font-weight: 400; }
.work-info .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.work-info .tag {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
}
.work-info .outcome {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--amber-soft);
}
.work-info p.desc { color: var(--ivory-dim); max-width: 30rem; }
@media (max-width: 780px) {
  .work-card, .work-card:nth-child(even) { grid-template-columns: 1fr; align-items: start; }
  .work-card:nth-child(even) .work-media { order: 0; }
}

/* ---------- services / commissions ---------- */
.commissions { border-top: 1px solid var(--line); }
.commission-list { border-bottom: 1px solid var(--line); }
.commission {
  border-top: 1px solid var(--line);
  transition: background 0.5s;
}
.commission summary {
  list-style: none;
  display: grid;
  grid-template-columns: 4.5rem 1fr auto auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.9rem 0.75rem;
  cursor: pointer;
}
.commission summary::-webkit-details-marker { display: none; }
.commission .no {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.commission h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--step-2);
  transition: color 0.4s;
}
.commission .price {
  font-family: var(--f-mono);
  font-size: var(--step-1);
  color: var(--amber);
  letter-spacing: 0.04em;
}
.commission .chevron {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  align-self: center;
  transition: transform 0.5s var(--ease-out), border-color 0.4s;
  color: var(--muted);
  font-size: 0.9rem;
}
.commission[open] .chevron { transform: rotate(45deg); border-color: var(--amber); color: var(--amber); }
.commission:hover { background: rgba(18, 27, 46, 0.45); }
.commission:hover h3 { color: var(--amber-soft); }
.commission-body {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding: 0 0.75rem 2.2rem;
}
.commission-body > div { max-width: 42rem; display: grid; gap: 1.1rem; }
.commission-body p { color: var(--ivory-dim); }
.commission-body ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.commission-body li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  color: var(--ivory-dim);
  font-size: var(--step--1);
  font-family: var(--f-mono);
  letter-spacing: 0.03em;
}
.commission-body li::before {
  content: "—";
  color: var(--amber);
  flex: none;
}
.commission .flag {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-0);
  background: var(--amber);
  padding: 0.3rem 0.6rem;
  margin-left: 0.9rem;
  vertical-align: middle;
  display: inline-block;
  transform: translateY(-0.4em);
}
@media (max-width: 720px) {
  .commission summary { grid-template-columns: 2.5rem 1fr auto; }
  .commission .chevron { display: none; }
  .commission-body { grid-template-columns: 1fr; padding-left: 0.75rem; }
}

/* ---------- process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.process-step {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  padding-top: 2rem;
  position: relative;
}
.process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.process-step::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--amber);
  transform: rotate(45deg);
}
.process-step .no {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  color: var(--amber);
}
.process-step h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); }
.process-step p { color: var(--ivory-dim); font-size: var(--step--1); line-height: 1.7; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- measures / stats ---------- */
.measures {
  border-block: 1px solid var(--line);
  background: linear-gradient(rgba(12, 19, 34, 0.5), rgba(12, 19, 34, 0.5));
}
.measure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.measure {
  padding: clamp(2rem, 4vw, 3.2rem) 1.5rem;
  display: grid;
  gap: 0.6rem;
  border-left: 1px solid var(--line);
}
.measure:first-child { border-left: none; }
.measure .value {
  font-family: var(--f-display);
  font-size: var(--step-5);
  line-height: 1;
  color: var(--ivory);
}
.measure .value .unit { font-size: 0.45em; color: var(--amber); margin-left: 0.1em; }
.measure .label {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
}
@media (max-width: 860px) {
  .measure-grid { grid-template-columns: repeat(2, 1fr); }
  .measure:nth-child(3) { border-left: none; }
  .measure { border-top: 1px solid var(--line); }
  .measure:nth-child(-n+2) { border-top: none; }
}
@media (max-width: 480px) {
  .measure-grid { grid-template-columns: 1fr; }
  .measure { border-left: none !important; border-top: 1px solid var(--line) !important; }
  .measure:first-child { border-top: none !important; }
}

/* ---------- final CTA ---------- */
.finale {
  text-align: center;
  padding-block: clamp(7rem, 18vh, 12rem);
  position: relative;
  overflow: clip;
}
.finale::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 60% at 50% 115%, rgba(232, 163, 61, 0.16), transparent 70%);
  pointer-events: none;
}
.finale .eyebrow { justify-content: center; }
.finale .eyebrow::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--amber);
  opacity: 0.65;
  flex: none;
}
.finale h2 {
  font-size: var(--step-5);
  max-width: 16ch;
  margin: 1.6rem auto 1.2rem;
}
.finale .italic-note {
  color: var(--ivory-dim);
  font-size: var(--step-1);
  display: block;
  margin-bottom: 2.6rem;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 2.2rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
}
.footer-grid .brand .wordmark { color: var(--ivory-dim); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-nav a {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--amber); }
.footer-meta {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.footer-meta a { color: var(--ivory-dim); }
.footer-meta a:hover { color: var(--amber); }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding-top: clamp(9rem, 20vh, 13rem);
  padding-bottom: clamp(3rem, 7vh, 5rem);
  display: grid;
  gap: 1.6rem;
}
.page-hero h1 { font-size: var(--step-5); max-width: 14ch; }
.page-hero .lede { font-size: var(--step-1); }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about-figure {
  position: sticky;
  top: 7rem;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 70% 20%, rgba(127, 180, 201, 0.12), transparent 60%),
    radial-gradient(70% 70% at 25% 85%, rgba(232, 163, 61, 0.14), transparent 65%),
    var(--ink-2);
}
/* logo variant — swaps the placeholder tile for the real brand mark */
.about-figure.has-logo {
  aspect-ratio: 1 / 1;
  border: none;
  background: none;
  overflow: visible;
}
.about-figure.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, 0.7);
}
.about-figure .big-monogram {
  font-family: var(--f-display);
  font-size: clamp(6rem, 14vw, 11rem);
  color: var(--ivory);
  line-height: 1;
  position: relative;
}
.about-figure .big-monogram::after {
  content: "EST. MMXXVI";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -2.2rem;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--muted);
  white-space: nowrap;
}
.prose { display: grid; gap: 1.3rem; max-width: 40rem; }
.prose p { color: var(--ivory-dim); }
.prose p strong { color: var(--ivory); font-weight: 400; }
.prose h2, .prose h3 { font-family: var(--f-display); font-weight: 400; margin-top: 1.2rem; }
.prose h2 { font-size: var(--step-3); }
.prose h3 { font-size: var(--step-2); }

.principles { display: grid; gap: 0; margin-top: 1rem; border-top: 1px solid var(--line); }
.principle {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1.2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.principle .no { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--amber); padding-top: 0.4rem; }
.principle h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-1); margin-bottom: 0.4rem; }
.principle p { color: var(--ivory-dim); font-size: var(--step--1); line-height: 1.7; }

.toolbelt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.toolbelt span {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  border: 1px solid var(--line);
  color: var(--ivory-dim);
  padding: 0.5rem 0.9rem;
  transition: border-color 0.3s, color 0.3s;
}
.toolbelt span:hover { border-color: var(--amber); color: var(--amber-soft); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { position: static; max-width: 24rem; }
}

/* ---------- why page ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.compare-col { padding: clamp(1.6rem, 4vw, 3rem); display: grid; gap: 1.4rem; align-content: start; }
.compare-col + .compare-col { border-left: 1px solid var(--line); }
.compare-col.highlight {
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(232, 163, 61, 0.08), transparent 70%),
    var(--ink-2);
}
.compare-col h3 {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare-col.highlight h3 { color: var(--amber); }
.compare-col ul { list-style: none; display: grid; gap: 1rem; }
.compare-col li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  color: var(--ivory-dim);
  line-height: 1.6;
}
.compare-col li::before { content: "✕"; color: var(--muted); font-size: 0.75em; flex: none; }
.compare-col.highlight li::before { content: "◆"; color: var(--amber); }
.compare-col.highlight li { color: var(--ivory); font-weight: 300; }
@media (max-width: 760px) {
  .compare { grid-template-columns: 1fr; }
  .compare-col + .compare-col { border-left: none; border-top: 1px solid var(--line); }
}

.vows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.vow { background: var(--ink-1); padding: clamp(1.6rem, 3.5vw, 2.6rem); display: grid; gap: 0.9rem; align-content: start; transition: background 0.5s; }
.vow:hover { background: var(--ink-2); }
.vow .glyph { font-size: 1.3rem; color: var(--amber); font-family: var(--f-display); }
.vow h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-1); }
.vow p { color: var(--ivory-dim); font-size: var(--step--1); line-height: 1.7; }
@media (max-width: 860px) { .vows { grid-template-columns: 1fr; } }

.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.testimonial {
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: grid;
  gap: 1.5rem;
  align-content: space-between;
  position: relative;
}
.testimonial::before {
  content: "“";
  font-family: var(--f-display);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--amber);
  opacity: 0.8;
}
.testimonial blockquote {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ivory);
}
.testimonial figcaption {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.testimonial figcaption strong { color: var(--amber); display: block; margin-bottom: 0.3rem; font-weight: 500; }
@media (max-width: 760px) { .testimonials { grid-template-columns: 1fr; } }

/* ---------- portfolio page ---------- */
.folio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.2rem) clamp(1.5rem, 3vw, 2.5rem);
}
.folio-card { display: grid; gap: 1.1rem; }
.folio-card .work-media { aspect-ratio: 3 / 2; }
.folio-card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.folio-card h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); }
.folio-card .sector {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.folio-card .desc { color: var(--ivory-dim); font-size: var(--step--1); line-height: 1.7; max-width: 34rem; }
.folio-card .result {
  font-family: var(--f-italic);
  font-style: italic;
  color: var(--amber-soft);
  font-size: var(--step-0);
}
@media (max-width: 760px) { .folio-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-aside { display: grid; gap: 2rem; position: sticky; top: 7rem; }
.contact-aside .channel { display: grid; gap: 0.4rem; }
.contact-aside .channel .label {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-aside .channel a, .contact-aside .channel .val {
  font-family: var(--f-display);
  font-size: var(--step-1);
  color: var(--ivory);
  transition: color 0.3s;
  width: fit-content;
}
.contact-aside .channel a:hover { color: var(--amber); }
.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  border: 1px solid var(--line);
  padding: 0.75rem 1.1rem;
  width: fit-content;
}
.availability .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6fce8f;
  box-shadow: 0 0 0 0 rgba(111, 206, 143, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(111, 206, 143, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(111, 206, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 206, 143, 0); }
}

.contact-form { display: grid; gap: 1.7rem; position: relative; }
.field { display: grid; gap: 0.55rem; position: relative; }
.field label {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ivory);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: var(--step-1);
  padding: 0.55rem 0 0.8rem;
  border-radius: 0;
  transition: border-color 0.4s;
  width: 100%;
}
.field select { cursor: pointer; appearance: none; }
.field select option { background: var(--ink-2); color: var(--ivory); }
.field .select-wrap { position: relative; }
.field .select-wrap::after {
  content: "▾";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-60%);
  color: var(--amber);
  pointer-events: none;
  font-size: 0.85rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--amber);
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field .error-msg {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: #e07a5f;
  min-height: 1em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s;
}
.field.invalid .error-msg { opacity: 1; transform: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #e07a5f; }
/* ---------- service picker (contact) ---------- */
.service-field { border: none; margin: 0; padding: 0; }
.service-legend {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.service-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
@media (max-width: 560px) { .service-picks { grid-template-columns: 1fr; } }
.service-pick {
  --pick: var(--amber);
  --pick-rgb: 232, 163, 61;
  position: relative;
  display: block;
  border: 1px solid var(--line-strong);
  padding: 1rem 1.15rem 1rem 1.35rem;
  cursor: pointer;
  overflow: hidden;
  background: rgba(12, 19, 34, 0.35);
  transition: border-color 0.3s, background 0.3s, transform 0.25s var(--ease-out), box-shadow 0.3s;
}
.service-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.service-pick::before {
  /* coloured spine */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--pick);
  opacity: 0.55;
  transition: opacity 0.3s, width 0.3s var(--ease-out);
}
.service-pick::after {
  /* sheen sweep on hover */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(var(--pick-rgb), 0.13), transparent);
  transform: skewX(-12deg);
  transition: left 0.6s var(--ease-out);
  pointer-events: none;
}
.service-pick:hover {
  border-color: rgba(var(--pick-rgb), 0.65);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -14px rgba(var(--pick-rgb), 0.35);
}
.service-pick:hover::after { left: 115%; }
.service-pick:hover::before { opacity: 1; }
.pick-inner {
  display: grid;
  gap: 0.3rem;
  position: relative;
}
.pick-name {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: var(--step-0);
  color: var(--ivory);
  line-height: 1.3;
}
.pick-price {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pick);
}
.pick-inner::after {
  /* check mark, revealed when selected */
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--f-mono);
  font-size: 0.95rem;
  color: var(--pick);
  opacity: 0;
  transform: scale(0.4) rotate(-30deg);
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
}
.service-pick:has(input:checked) {
  border-color: var(--pick);
  background: rgba(var(--pick-rgb), 0.1);
  animation: pick-pop 0.35s var(--ease-out);
}
.service-pick:has(input:checked)::before { opacity: 1; width: 5px; }
.service-pick:has(input:checked) .pick-inner::after { opacity: 1; transform: none; }
.service-pick:has(input:focus-visible) {
  outline: 2px solid var(--pick);
  outline-offset: 3px;
}
@keyframes pick-pop {
  0% { transform: scale(0.965); }
  60% { transform: scale(1.015); }
  100% { transform: scale(1); }
}
.pick-cyan { --pick: var(--cyan); --pick-rgb: 127, 180, 201; }
.pick-duo {
  --pick: var(--amber-soft);
  --pick-rgb: 200, 172, 120;
}
.pick-duo::before {
  background: linear-gradient(var(--amber), var(--cyan));
}
.pick-muted { --pick: var(--ivory-dim); --pick-rgb: 184, 180, 169; }
@media (prefers-reduced-motion: reduce) {
  .service-pick, .service-pick::after, .service-pick::before, .pick-inner::after { transition: none; animation: none !important; }
}

/* whatsapp link under the phone number */
.channel .wa-link {
  font-family: var(--f-mono) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.12em;
  color: #6fce8f !important;
  margin-top: 0.2rem;
}
.channel .wa-link:hover { color: var(--amber) !important; }

/* returning-client discount note under the price ledger */
.loyalty-note {
  margin-top: 1.6rem;
  font-family: var(--f-italic);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--amber-soft);
  max-width: 44rem;
}
.loyalty-note span { color: var(--amber); font-style: normal; font-size: 0.7em; vertical-align: 0.15em; margin-right: 0.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.7rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-foot { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.form-note { font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.12em; color: var(--muted); }

.form-success {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.2rem;
  text-align: center;
  background: var(--ink-1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s;
  z-index: 5;
}
.form-success.show { opacity: 1; pointer-events: auto; }
.form-success svg { width: 74px; height: 74px; }
.form-success .ring {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  stroke-dasharray: 232;
  stroke-dashoffset: 232;
}
.form-success .tick {
  fill: none;
  stroke: var(--ivory);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}
.form-success.show .ring { animation: draw 1.1s var(--ease-out) forwards; }
.form-success.show .tick { animation: draw 0.7s 0.7s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); }
.form-success p { color: var(--ivory-dim); max-width: 26rem; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
}

/* ---------- guide page ---------- */
.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.guide-toc a {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.55rem 1rem;
  color: var(--ivory-dim);
  transition: border-color 0.3s, color 0.3s;
}
.guide-toc a:hover { border-color: var(--amber); color: var(--amber-soft); }
.guide-section { border-top: 1px solid var(--line); padding-block: clamp(3rem, 7vh, 4.5rem); }
.guide-section .guide-inner {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) 2.4fr;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.guide-section h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--step-2);
  position: sticky;
  top: 7rem;
  align-self: start;
}
.guide-section h2 .gno {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  color: var(--amber);
  margin-bottom: 0.7rem;
}
.guide-body { display: grid; gap: 1.2rem; max-width: 44rem; }
.guide-body p, .guide-body li { color: var(--ivory-dim); }
.guide-body strong { color: var(--ivory); font-weight: 400; }
.guide-body ul { display: grid; gap: 0.7rem; list-style: none; }
.guide-body ul li { position: relative; padding-left: 1.5em; }
.guide-body ul li::before { content: "◆"; color: var(--amber); font-size: 0.6em; position: absolute; left: 0; top: 0.55em; }
.guide-body ol { display: grid; gap: 0.7rem; padding-left: 1.2rem; }
.guide-body ol li { color: var(--ivory-dim); padding-left: 0.4rem; }
.guide-body ol li::marker { font-family: var(--f-mono); color: var(--amber); font-size: 0.85em; }
.guide-body pre {
  background: var(--ink-0);
  border: 1px solid var(--line);
  padding: 1.4rem 1.6rem;
  overflow-x: auto;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--ivory-dim);
}
.guide-body pre .c { color: var(--muted); }
.guide-body pre .a { color: var(--amber-soft); }
.guide-body code {
  font-family: var(--f-mono);
  font-size: 0.85em;
  color: var(--amber-soft);
  background: rgba(232, 163, 61, 0.08);
  padding: 0.1em 0.4em;
}
.guide-body pre code { background: none; padding: 0; color: inherit; }
@media (max-width: 760px) {
  .guide-section .guide-inner { grid-template-columns: 1fr; }
  .guide-section h2 { position: static; }
}

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(2.2rem);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-line {
  overflow: hidden;
  display: block;
  /* room for descenders (g, y, j) inside the reveal mask */
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}
.reveal-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal-line.in > span { transform: none; }

/* ---------- view transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) {
  animation: vt-out 0.35s ease both;
}
::view-transition-new(root) {
  animation: vt-in 0.5s 0.1s var(--ease-out) both;
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-line > span { opacity: 1; transform: none; }
  .manifesto .word { color: var(--ivory); }
  body::after { animation: none; }
}
