/* ============================================================
   motionbybogi - design system
   Palette: warm near-black, bone ink, amber accent
   Type: Clash Display / Satoshi / JetBrains Mono / Instrument Serif
   ============================================================ */

:root {
  --bg: #0C0A07;
  --bg-2: #100D09;
  --bg-3: #15110B;
  --ink: #EFE7D8;
  --ink-dim: rgba(239, 231, 216, 0.62);
  --ink-faint: rgba(239, 231, 216, 0.38);
  --amber: #FFB454;
  --amber-deep: #E8871E;
  --amber-glow: rgba(255, 180, 84, 0.16);
  --hairline: rgba(239, 231, 216, 0.10);
  --hairline-amber: rgba(255, 180, 84, 0.22);
  --font-display: "Clash Display", "Arial Narrow", sans-serif;
  --font-body: "Satoshi", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
  --font-serif: "Instrument Serif", Georgia, serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-smooth: cubic-bezier(0.65, 0.05, 0, 1);
}

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

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: #171003; }

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

/* On devices with a fine pointer we hide the native cursor (custom cursor takes over).
   Activated players are excluded: the embedded player gets the native cursor. */
@media (hover: hover) and (pointer: fine) {
  body.cursor-on, body.cursor-on a, body.cursor-on button { cursor: none; }
  body.cursor-on .frame-video.is-playing, body.cursor-on .frame-video.is-playing * { cursor: auto; }
}

/* ---------- utility type ---------- */

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.accent { color: var(--amber); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-narrow { max-width: 900px; }

/* ============================================================
   LOADER
   ============================================================ */

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.loader-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.01em;
  color: var(--ink);
  opacity: 0;
}

.loader-word em { font-family: var(--font-serif); font-style: italic; color: var(--amber); padding: 0 0.06em; }

.loader-line {
  display: block;
  width: 140px;
  height: 1px;
  background: var(--hairline);
  overflow: hidden;
}

.loader-line-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ============================================================
   CURSOR
   ============================================================ */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  opacity: 0;
}

.cursor-dot {
  width: 5px; height: 5px;
  background: var(--amber);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 30px; height: 30px;
  border: 1px solid rgba(255, 180, 84, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), border-color 0.35s;
}

.cursor-ring.is-hover {
  width: 52px; height: 52px;
  border-color: rgba(255, 180, 84, 0.9);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   GRAIN
   ============================================================ */

.grain {
  position: fixed;
  inset: -100px;
  z-index: 900;
  pointer-events: none;
  opacity: 0.5;
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(3) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-30px, 20px); }
  66% { transform: translate(25px, -35px); }
  100% { transform: translate(0, 0); }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 42px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
}

.btn-label { position: relative; z-index: 2; transition: color 0.4s var(--ease-out); }

.btn-fill {
  position: absolute;
  inset: -2px;
  z-index: 1;
  background: var(--amber);
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform 0.5s var(--ease-smooth);
}

.btn:hover .btn-fill { transform: translateY(0); }

.btn-primary {
  background: var(--amber);
  color: #171003;
  box-shadow: 0 0 0 1px var(--amber), 0 8px 40px -8px rgba(255, 180, 84, 0.45);
}

.btn-primary .btn-fill { background: var(--ink); }
.btn-primary:hover .btn-label { color: #171003; }

.btn-ghost {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline-amber);
}

.btn-ghost:hover .btn-label { color: #171003; }

.section-cta { display: flex; justify-content: center; margin-top: clamp(48px, 7vw, 80px); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: clamp(70px, 9vw, 120px);
}

.hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100svh;
  z-index: 0;
}

.ember-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100svh;
  z-index: 1;
  pointer-events: none;
}

.hero-vignette {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100svh;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(90% 62% at 50% 34%, rgba(12, 10, 7, 0.6) 0%, rgba(12, 10, 7, 0.22) 55%, transparent 75%),
    radial-gradient(120% 90% at 50% 110%, rgba(12, 10, 7, 0.9) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(12, 10, 7, 0.35), transparent 30%, transparent 70%, var(--bg) 100%);
}

.hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(24px, 3.5vw, 40px) var(--gutter);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.01em;
}

.wordmark em { font-family: var(--font-serif); font-style: italic; color: var(--amber); padding: 0 0.05em; }

.hero-top-link {
  color: var(--ink);
  padding: 10px 0;
  position: relative;
}

.hero-top-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 6px;
  width: 100%; height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s var(--ease-smooth);
}

.hero-top-link:hover::after { transform: scaleX(1); transform-origin: left center; }

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(30px, 5vh, 70px) var(--gutter) 0;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-h1 { max-width: 17.5em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  padding: 11px 22px;
  border: 1px solid var(--hairline-amber);
  border-radius: 100px;
  background: rgba(16, 13, 9, 0.72);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px -10px rgba(0, 0, 0, 0.7);
  margin-bottom: clamp(20px, 3vw, 34px);
}

.eyebrow-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px 2px rgba(255, 180, 84, 0.45);
  animation: rec-blink 1.6s ease-in-out infinite;
}

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.hero-h1 .serif { font-weight: 400; letter-spacing: 0; }

.h1-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.h1-line-inner { display: inline-block; will-change: transform; }

.hero-vsl {
  position: relative;
  z-index: 2;
  margin-top: clamp(36px, 5vh, 64px);
}

.hero-vsl-cta { margin-top: clamp(36px, 5vw, 56px); }

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee {
  position: relative;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--bg-2);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  will-change: transform;
}

.marquee-track span {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

.marquee-track i {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--amber);
  font-size: 15px;
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */

.section { position: relative; padding: clamp(90px, 13vw, 170px) 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(44px, 6.5vw, 90px);
}

.section-head-center { align-items: center; text-align: center; }

.section-num {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--amber);
}

.section-num::after {
  content: "";
  flex: 0 0 64px;
  height: 1px;
  background: var(--hairline-amber);
}

.section-head-center .section-num { justify-content: center; }
.section-head-center .section-num::before {
  content: "";
  flex: 0 0 64px;
  height: 1px;
  background: var(--hairline-amber);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.section-title .split-line { display: block; overflow: hidden; }
.section-title .split-line-inner { display: inline-block; }

/* ============================================================
   FRAMES (video placeholders)
   ============================================================ */

.frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(255, 180, 84, 0.05), transparent 60%),
    linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.frame-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}

.frame-label { color: var(--ink-faint); letter-spacing: 0.14em; max-width: 42ch; line-height: 1.9; }

.rec-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px 2px rgba(255, 180, 84, 0.5);
  animation: rec-blink 1.6s ease-in-out infinite;
}

@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.corner {
  position: absolute;
  width: 14px; height: 14px;
  z-index: 3;
  opacity: 0.9;
}

.corner::before, .corner::after {
  content: "";
  position: absolute;
  background: var(--amber);
}

.corner::before { width: 100%; height: 1px; }
.corner::after { width: 1px; height: 100%; }

.c-tl { top: 10px; left: 10px; }
.c-tr { top: 10px; right: 10px; transform: rotate(90deg); }
.c-br { bottom: 10px; right: 10px; transform: rotate(180deg); }
.c-bl { bottom: 10px; left: 10px; transform: rotate(270deg); }

.frame-glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(320px 320px at var(--gx, 50%) var(--gy, 50%), rgba(255, 210, 150, 0.08), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
}

.frame:hover .frame-glare { opacity: 1; }

.frame-vsl {
  max-width: 960px;
  margin: 0 auto;
  box-shadow: inset 0 1px 0 rgba(255, 180, 84, 0.16), 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

/* Frames holding a real embedded player */
.frame-video {
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s;
}

.frame-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

/* Facade: poster + play ring shown until the visitor starts the video.
   A normal page element, so smooth scrolling and the custom cursor
   keep working over it; the real player loads on click with autoplay. */
.video-facade {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.45s var(--ease-out);
}

.facade-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.video-facade .play-ring {
  position: relative;
  z-index: 2;
  background: rgba(12, 10, 7, 0.55);
  backdrop-filter: blur(4px);
  transition: border-color 0.4s, transform 0.4s var(--ease-out), background 0.4s;
}

.frame-video:hover .video-facade .play-ring {
  border-color: var(--amber);
  transform: scale(1.08);
  background: rgba(12, 10, 7, 0.75);
}

.frame-video.is-playing .video-facade {
  opacity: 0;
  pointer-events: none;
}

@media (hover: hover) {
  .frame-video:hover {
    transform: translateY(-6px) scale(1.012);
    border-color: rgba(255, 180, 84, 0.45);
    box-shadow:
      0 24px 60px -18px rgba(0, 0, 0, 0.85),
      0 0 0 1px rgba(255, 180, 84, 0.12),
      0 10px 50px -12px rgba(255, 180, 84, 0.22);
  }
}

.play-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border: 1px solid var(--hairline-amber);
  border-radius: 50%;
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}

.play-ring::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(255, 180, 84, 0.35);
  animation: ring-pulse 2.6s var(--ease-out) infinite;
}

@keyframes ring-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

.play-tri {
  width: 0; height: 0;
  border-left: 14px solid var(--amber);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}

.frame-vsl:hover .play-ring { border-color: var(--amber); transform: scale(1.07); }

/* ============================================================
   CLIENT WORK
   ============================================================ */

.clientwork { background: var(--bg-2); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.client-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}

.client-tag {
  display: inline-block;
  color: var(--amber);
  margin-bottom: 16px;
  padding: 7px 14px;
  border: 1px solid var(--hairline-amber);
  border-radius: 100px;
}

/* ============================================================
   MY WORK
   ============================================================ */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

/* Three videos: two large on top, the third centered beneath at the same size */
.work-grid > :nth-child(3) {
  grid-column: 1 / -1;
  width: calc(50% - clamp(10px, 1.5vw, 20px));
  margin: 0 auto;
}

.work-grid .frame-label { font-size: 10px; }

.more-work {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 44px);
}

.more-work-link {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(19px, 2.2vw, 26px);
  color: var(--ink-dim);
  transition: color 0.35s;
}

.more-work-link .serif { color: var(--amber); font-size: 1.15em; }

.more-work-tail { letter-spacing: -0.005em; }

.more-work-link .arrow {
  width: 13px; height: 13px;
  align-self: center;
  color: var(--amber);
  transition: transform 0.4s var(--ease-out);
}

.more-work-link:hover { color: var(--ink); }
.more-work-link:hover .arrow { transform: translate(3px, -3px); }

/* ============================================================
   PROCESS
   ============================================================ */

.process { background: var(--bg); }

.steps-list {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--hairline);
}

.step-row {
  display: grid;
  grid-template-columns: clamp(110px, 16vw, 220px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(30px, 4.5vw, 54px) 0;
  border-top: 1px solid var(--hairline);
  transition: background 0.4s;
}

.step-big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(64px, 9vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 180, 84, 0.45);
  transition: color 0.45s, -webkit-text-stroke-color 0.45s;
}

@media (hover: hover) {
  .step-row:hover .step-big { color: var(--amber); -webkit-text-stroke-color: var(--amber); }
  .step-row:hover .step-title { color: var(--amber); }
}

.step-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.005em;
  margin-bottom: 12px;
  transition: color 0.35s;
}

.step-body { color: var(--ink-dim); max-width: 52ch; font-size: clamp(15px, 1.3vw, 17px); }

.process-outro {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: -0.005em;
  margin-top: clamp(40px, 6vw, 64px);
}

.process-outro .serif { font-size: 1.1em; }

/* ============================================================
   FAQ
   ============================================================ */

.faq { background: var(--bg-2); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.faq-list { display: flex; flex-direction: column; counter-reset: faq; }

.faq-q-text::before {
  counter-increment: faq;
  content: "0" counter(faq);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-right: 18px;
  position: relative;
  top: -0.55em;
}

.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item:first-child { border-top: 1px solid var(--hairline); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3vw, 32px) 4px;
  text-align: left;
  transition: padding-left 0.4s var(--ease-out);
}

.faq-q:hover { padding-left: 14px; }

.faq-q-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: 0;
  transition: color 0.3s;
}

.faq-item.is-open .faq-q-text { color: var(--amber); }

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border: 1px solid var(--hairline-amber);
  border-radius: 50%;
}

.faq-icon span {
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1px;
  background: var(--amber);
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--ease-smooth);
}

.faq-icon span:last-child { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-icon span:last-child { transform: translate(-50%, -50%) rotate(0deg); }

.faq-a { overflow: hidden; height: 0; }

.faq-a-inner { padding: 4px 4px clamp(26px, 3vw, 36px); }
.faq-a-inner p { color: var(--ink-dim); max-width: 62ch; }

/* ============================================================
   BOOK
   ============================================================ */

.book { overflow: hidden; }

.book-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 180, 84, 0.09), transparent 70%);
  pointer-events: none;
}

.cal-shell {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: clamp(10px, 2vw, 24px);
  min-height: 620px;
}

.cal-shell::before, .cal-shell::after {
  content: "";
  position: absolute;
  width: 15px; height: 15px;
  border-color: var(--amber);
  border-style: solid;
  opacity: 0.85;
}

.cal-shell::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; border-top-left-radius: 3px; }
.cal-shell::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; border-bottom-right-radius: 3px; }

#my-cal-inline { width: 100%; min-height: 600px; overflow: auto; }

.cal-fallback { text-align: center; margin-top: 18px; }
.cal-fallback a { color: var(--amber); border-bottom: 1px solid var(--hairline-amber); padding-bottom: 2px; transition: border-color 0.3s; }
.cal-fallback a:hover { border-color: var(--amber); }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  margin-bottom: clamp(70px, 9vw, 120px);
}

.footer-id { display: flex; align-items: center; gap: clamp(24px, 3.5vw, 44px); }

.portrait-wrap {
  position: relative;
  flex: 0 0 auto;
  width: clamp(120px, 16vw, 190px);
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline-amber);
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.04);
  transition: transform 0.8s var(--ease-out), filter 0.6s;
}

.portrait-wrap:hover .portrait { transform: scale(1.045); filter: saturate(1) contrast(1.04); }

.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.footer-role { max-width: 30ch; line-height: 1.8; }

.footer-socials-label { color: var(--amber); margin-bottom: 22px; }

.social-list { display: flex; flex-direction: column; }

.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 24px);
  transition: padding-left 0.4s var(--ease-out), color 0.3s;
}

.social-list li:first-child .social-link { border-top: 1px solid var(--hairline); }

.social-link:hover { padding-left: 14px; color: var(--amber); }

.social-link .arrow {
  width: 13px; height: 13px;
  color: var(--amber);
  transition: transform 0.4s var(--ease-out);
}

.social-link:hover .arrow { transform: translate(3px, -3px); }

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.wordmark-big {
  font-size: clamp(44px, 9vw, 130px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  opacity: 0.92;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-guide-link { position: relative; color: var(--ink-dim); transition: color 0.3s; }
.footer-guide-link:hover { color: var(--amber); }

/* ============================================================
   REVEAL DEFAULTS (JS enhances; these are safe no-JS states)
   ============================================================ */

/* Elements start visible; JS sets initial hidden states only when it runs.
   This keeps the page fully readable without JavaScript. */

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .client-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid > :nth-child(3) { grid-column: auto; width: 100%; margin: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero-h1 { font-size: clamp(30px, 8.4vw, 44px); }
  /* On narrow screens the desktop line breaks fight the natural wrap;
     let the headline flow as one block instead. */
  .hero-h1 .h1-line { display: inline; overflow: visible; padding-bottom: 0; margin-bottom: 0; }
  .hero-h1 .h1-line-inner { display: inline; }
  .hero-coord { display: none; }
  .footer-id { flex-direction: column; align-items: flex-start; }
  .btn { padding: 15px 34px; }
  .hero-vignette {
    background:
      linear-gradient(to bottom, rgba(12, 10, 7, 0.6), rgba(12, 10, 7, 0.42) 45%, var(--bg) 100%);
  }
  .cal-shell { min-height: 480px; padding: 8px; }
  #my-cal-inline { min-height: 464px; }
  .step-row { grid-template-columns: 84px 1fr; gap: 16px; align-items: start; }
  .step-big { font-size: 52px; padding-top: 6px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .grain { animation: none; }
  .scroll-line { animation: none; }
}
