/* ============================================================================
   AMYAR GHAFFARY — Portfolio · 2026
   File: Amyar.portfolio.css
   Style: calm editorial · cinematic dark · subtle 3D scroll · Apple-leaning
   Font: Bai Jamjuree (local first, Google Fonts as fallback link in HTML)
   ============================================================================ */

/* ----- 0. FONT FACES — local files first, Google Fonts (loaded in HTML) is the
   automatic fallback if any of these 404. If your server folder is named
   something other than /fonts/Bai_Jamjuree/, change FONT_PATH below. */
@font-face {
  font-family: "Bai Jamjuree";
  font-weight: 200;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Bai_Jamjuree/BaiJamjuree-ExtraLight.woff2") format("woff2"),
       url("/fonts/Bai_Jamjuree/BaiJamjuree-ExtraLight.ttf") format("truetype");
}
@font-face {
  font-family: "Bai Jamjuree";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Bai_Jamjuree/BaiJamjuree-Light.woff2") format("woff2"),
       url("/fonts/Bai_Jamjuree/BaiJamjuree-Light.ttf") format("truetype");
}
@font-face {
  font-family: "Bai Jamjuree";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Bai_Jamjuree/BaiJamjuree-Regular.woff2") format("woff2"),
       url("/fonts/Bai_Jamjuree/BaiJamjuree-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Bai Jamjuree";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Bai_Jamjuree/BaiJamjuree-Medium.woff2") format("woff2"),
       url("/fonts/Bai_Jamjuree/BaiJamjuree-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Bai Jamjuree";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Bai_Jamjuree/BaiJamjuree-SemiBold.woff2") format("woff2"),
       url("/fonts/Bai_Jamjuree/BaiJamjuree-SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "Bai Jamjuree";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Bai_Jamjuree/BaiJamjuree-Bold.woff2") format("woff2"),
       url("/fonts/Bai_Jamjuree/BaiJamjuree-Bold.ttf") format("truetype");
}

/* ============================================================================
   1. TOKENS
   ============================================================================ */
:root {
  /* Color */
  --bg:           #0a0a0a;
  --bg-2:         #111111;
  --bg-3:         #161616;
  --ink:          #f3f4f6;
  --ink-2:        #d6d6d6;
  --ink-3:        #9a9a9a;
  --ink-4:        #6e6e6e;
  --line:         rgba(255, 255, 255, 0.085);
  --line-2:       rgba(255, 255, 255, 0.16);
  --accent:       #f3f4f6;
  --accent-warm:  #d6b483;
  --accent-cool:  #a8b8d6;
  --live:         #80f59a;

  /* Type */
  --sans:   "Bai Jamjuree", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif:  "Newsreader", "Times New Roman", Georgia, serif;
  --mono:   ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale */
  --container: 1320px;
  --gutter:    clamp(20px, 4vw, 56px);
  --radius:    14px;
  --radius-lg: 22px;

  /* ============================================================
     SPACING SCALE — use these instead of hard-coded px values.
     Keeps vertical rhythm and card paddings consistent everywhere.
     ============================================================ */
  --space-1:  4px;     /* hairline gaps, dot bullets             */
  --space-2:  8px;     /* tight gaps inside chips / inline rows  */
  --space-3:  12px;    /* card inner item gaps                   */
  --space-4:  16px;    /* paragraph spacing, default grid gap    */
  --space-5:  20px;    /* sub-sections inside a card             */
  --space-6:  24px;    /* card padding (small)                   */
  --space-7:  32px;    /* card padding (regular)                 */
  --space-8:  44px;    /* large block spacing                    */
  --space-9:  64px;    /* small section break                    */
  --space-10: 96px;    /* full section break                     */
  --space-11: 140px;   /* hero / chapter break                   */

  /* Standard card baseline — used by stock + maya + future cards */
  --card-pad:        clamp(24px, 3vw, 36px);
  --card-foot-gap:   var(--space-6);

  /* Motion */
  --ease:        cubic-bezier(.2, .7, .15, 1);
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --dur-fast:    .25s;
  --dur:         .55s;
  --dur-slow:    .9s;
}

/* ============================================================================
   CARD UTILITY — every "card with a footer link" should use this pattern so
   CTAs sit on the same baseline regardless of label wrapping above them.

     <article class="card-vstack">
       <header> ... </header>
       <div class="card-body"> ... </div>      <- can grow
       <a class="card-foot"> ... </a>          <- always pinned to bottom
     </article>
   ============================================================================ */
.card-vstack {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-vstack > .card-foot {
  margin-top: auto;
  padding-top: var(--card-foot-gap);
}

/* ============================================================================
   RESPONSIVE UTILITIES — add to any element to control its visibility.
   ============================================================================ */
@media (max-width: 900px) {
  .hide-on-mobile { display: none !important; }
}
@media (min-width: 901px) {
  .show-on-mobile-only { display: none !important; }
}

/* ============================================================================
   2. RESET + BASE
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, p { margin: 0; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 10px 14px; z-index: 1000;
}
.skip:focus { left: 12px; top: 12px; }

::selection { background: rgba(243, 244, 246, 0.22); color: var(--ink); }

/* Subtle film grain across body */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.06;
  background-image:
    radial-gradient(rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

/* ============================================================================
   3. CHROME / NAV
   ============================================================================ */
.chrome {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.chrome.is-scrolled { background: rgba(10, 10, 10, 0.82); }

.chrome-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--ink);
}
.chrome-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 8px;
}
.chrome-word { white-space: nowrap; }

.chrome-nav {
  display: inline-flex; justify-content: center; gap: 6px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
}
.chrome-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-3);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.chrome-nav a:hover { color: var(--ink); background: rgba(255,255,255,0.05); }

.chrome-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.chrome-cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-1px); }
.cta-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 12px rgba(128, 245, 154, 0.6);
}

/* Scroll progress */
.scroll-progress {
  position: fixed; left: 0; top: 0; right: 0;
  height: 2px;
  z-index: 101;
  pointer-events: none;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent-cool));
  transition: width 0.1s linear;
}

/* ============================================================================
   4. HERO
   ============================================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(110px, 14vh, 160px) var(--gutter) 60px;
  isolation: isolate;
  overflow: hidden;
}

.hero-particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
}

.hero-grain {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(214,180,131,0.07), transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(168,184,214,0.06), transparent 55%);
}

.hero-glow {
  position: absolute;
  width: 800px; height: 800px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.07), transparent 60%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 32px;
}
.hero-eyebrow .bullet {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink-4); align-self: center;
}

.hero-monogram {
  position: relative;
  width: clamp(78px, 9vw, 116px);
  height: clamp(78px, 9vw, 116px);
  margin: 0 auto 28px;
  display: grid; place-items: center;
  color: var(--ink);
  z-index: 1;
}
.hero-monogram svg { width: 56%; height: 56%; }
.hero-monogram .ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transform: translate(-50%, -50%);
}
.hero-monogram .r1 { width: 100%; height: 100%; border-color: rgba(255,255,255,0.16); }
.hero-monogram .r2 { width: 140%; height: 140%; border-color: rgba(255,255,255,0.10); border-style: dashed; }
.hero-monogram .r3 { width: 200%; height: 200%; border-color: rgba(255,255,255,0.05); }

.hero-name {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.94;
  font-size: clamp(56px, 12vw, 196px);
  display: grid;
  gap: clamp(2px, 0.4vw, 8px);
  margin-bottom: 30px;
}
.hero-name .word {
  display: inline-flex; justify-content: center; gap: 0.04em;
}
.hero-name .word span {
  display: inline-block;
  transform: translateY(40%);
  opacity: 0;
  animation: heroLetter 1.1s var(--ease-out) forwards;
}
.hero-name .w1 span:nth-child(1) { animation-delay: 0.08s; }
.hero-name .w1 span:nth-child(2) { animation-delay: 0.12s; }
.hero-name .w1 span:nth-child(3) { animation-delay: 0.16s; }
.hero-name .w1 span:nth-child(4) { animation-delay: 0.20s; }
.hero-name .w1 span:nth-child(5) { animation-delay: 0.24s; }
.hero-name .w2 span:nth-child(1) { animation-delay: 0.32s; }
.hero-name .w2 span:nth-child(2) { animation-delay: 0.36s; }
.hero-name .w2 span:nth-child(3) { animation-delay: 0.40s; }
.hero-name .w2 span:nth-child(4) { animation-delay: 0.44s; }
.hero-name .w2 span:nth-child(5) { animation-delay: 0.48s; }
.hero-name .w2 span:nth-child(6) { animation-delay: 0.52s; }
.hero-name .w2 span:nth-child(7) { animation-delay: 0.56s; }
.hero-name .w2 span:nth-child(8) { animation-delay: 0.60s; }

@keyframes heroLetter {
  0%   { transform: translateY(40%); opacity: 0; filter: blur(8px); }
  100% { transform: translateY(0); opacity: 1; filter: blur(0); }
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2.4vw, 28px);
  color: var(--ink-2);
  max-width: 720px;
  margin: 0 auto 14px;
  opacity: 0;
  animation: heroFade 1s var(--ease-out) 0.85s forwards;
}
.hero-sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--ink-3);
  max-width: 680px;
  margin: 0 auto;
  opacity: 0;
  animation: heroFade 1s var(--ease-out) 1.05s forwards;
}
.hero-sub span { color: var(--ink-2); font-weight: 600; }
@keyframes heroFade { to { opacity: 1; } }

/* Hero corners */
.hero-corner {
  position: absolute;
  bottom: 36px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  line-height: 1.7;
  opacity: 0;
  animation: heroFade 1s var(--ease-out) 1.3s forwards;
}
.hero-corner.bl { left: var(--gutter); text-align: left; }
.hero-corner.br { right: var(--gutter); text-align: right; }
.hc-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 8px;
}
.hero-corner a {
  position: relative;
  color: var(--ink-3);
  transition: color var(--dur-fast) var(--ease);
}
.hero-corner a:hover { color: var(--ink); }
.hero-corner a::before {
  content: "";
  position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--ink);
  transition: width var(--dur) var(--ease);
}
.hero-corner.br a::before { left: auto; right: 0; }
.hero-corner a:hover::before { width: 100%; }

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0;
  animation: heroFade 1s var(--ease-out) 1.5s forwards;
}
.hero-scroll svg { animation: scrollBounce 1.8s ease-in-out infinite; }
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(6px); opacity: 1; }
}

@media (max-width: 900px) {
  .hero-corner { display: none; }
}

/* ============================================================================
   5. TICKER
   ============================================================================ */
.ticker {
  position: relative;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0));
  overflow: hidden;
  padding: 14px 0;
}
.ticker-track {
  display: inline-flex;
  gap: 36px;
  white-space: nowrap;
  animation: tickerRoll 38s linear infinite;
  padding-inline: 18px;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ticker-item .star {
  width: 12px; height: 12px;
  fill: var(--ink-4);
  margin-left: 24px;
}
@keyframes tickerRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================================
   6. STATS STRIP
   ============================================================================ */
.stats {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.stats-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 56px) clamp(18px, 2.5vw, 36px);
  border-left: 1px solid var(--line);
  position: relative;
  min-height: 180px;
}
.stat:first-child { border-left: 0; }
.stat .n {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex; align-items: baseline;
}
.stat .n .plus { color: var(--accent-warm); margin-left: 2px; }
.stat .n .unit { font-size: 0.42em; color: var(--ink-3); margin-left: var(--space-2); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.stat .k {
  margin-top: var(--space-3);
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink-2);
  max-width: 280px;
  line-height: 1.4;
}
.stat .src {
  /* push the source-line to the bottom of every cell so they align horizontally
     across the strip even when the body labels are different lengths */
  margin-top: auto;
  padding-top: var(--space-3);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Responsive: 5 → 3 → 2 → 1, with consistent border rules so the cells
   never show a stray dangling left-border. */
@media (max-width: 1280px) {
  .stats-inner { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3n+1) { border-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr; }
  .stat { border-left: 0; }
  .stat:not(:first-child) { border-top: 1px solid var(--line); }
}

/* ============================================================================
   7. SECTION SHELL
   ============================================================================ */
.section {
  position: relative;
  padding: clamp(80px, 12vh, 160px) 0;
  border-bottom: 1px solid var(--line);
}
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section-head {
  max-width: 880px;
  margin: 0 auto clamp(48px, 7vw, 96px);
  text-align: center;
}
.section-head .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  margin-bottom: 22px;
}
.section-head .kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 10px rgba(128, 245, 154, 0.6);
}
.section-title {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.02;
  font-size: clamp(36px, 5.5vw, 78px);
  color: var(--ink);
  will-change: transform;
}
.section-sub {
  margin-top: 22px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 720px;
  margin-inline: auto;
}

/* Reveal — used by JS IntersectionObserver */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   8. ABOUT
   ============================================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #1b1b1b, #0c0c0c);
  border: 1px solid var(--line);
  margin: 0;
}
.about-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.04) saturate(0.95);
  transition: transform 1.6s var(--ease-out);
}
.about-portrait:hover img { transform: scale(1.04); }
.about-portrait img.broken { display: none; }
.about-portrait.no-image::before {
  content: "PORTRAIT";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
}
.portrait-meta {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(10px);
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
}
.live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 12px rgba(128, 245, 154, 0.6);
  animation: livePulse 2.2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.85); opacity: 0.6; }
}

.about-body .lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 20px;
}
.about-body p {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.about-body p.muted { color: var(--ink-3); }

.about-tags {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.about-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.about-tag i {
  font-style: italic;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-4);
  letter-spacing: 0.02em;
  padding-right: 8px;
  border-right: 1px solid var(--line);
  line-height: 1;
}
.about-tag > span {
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1;
}
.about-tag:hover {
  border-color: var(--ink-3);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 420px; margin: 0 auto; }
}

/* ============================================================================
   9. SERVICES
   ============================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.service-card {
  position: relative;
  grid-column: span 4;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0));
  display: flex; flex-direction: column;
  min-height: 320px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  overflow: hidden;
  isolation: isolate;
}
/* Featured spans 8 so row 1 totals 12 cols (8 + 4), matching row 2 (4 + 4 + 4). */
.service-card.featured { grid-column: span 8; }
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink-3);
  background: rgba(255,255,255,0.025);
}
.service-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.06), transparent 40%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
  z-index: -1;
}
.service-card:hover::after { opacity: 1; }

.sv-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sv-icon {
  margin-top: 24px;
  width: 44px; height: 44px;
  color: var(--ink);
}
.sv-icon svg { width: 100%; height: 100%; }
.sv-name {
  margin-top: 28px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sv-desc {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
}
.sv-meta {
  margin-top: auto;
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sv-meta em { font-style: normal; color: var(--ink-2); margin-left: 4px; }

.sv-strip {
  position: absolute; left: 28px; right: 28px; bottom: -1px;
  height: 4px;
  display: flex; gap: 4px;
  pointer-events: none;
}
.sv-strip div {
  flex: 1; height: 100%;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent-cool));
  opacity: 0.6;
}

@media (max-width: 1050px) {
  .service-card, .service-card.featured { grid-column: span 6; }
}
@media (max-width: 640px) {
  .service-card, .service-card.featured { grid-column: span 12; min-height: 260px; }
}

/* ============================================================================
   10. FEATURED PROJECT
   ============================================================================ */
/* Wrapper for multiple featured-cards — gap between cards in the list */
.featured-list {
  display: grid;
  gap: clamp(20px, 2.5vw, 36px);
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  column-gap: clamp(28px, 4vw, 64px);
  row-gap: clamp(18px, 2vw, 32px);
  align-items: start;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at top right, rgba(214,180,131,0.05), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
}

/* Card title row — spans both columns at the top */
.ft-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.012em;
  line-height: 1;
  color: var(--ink);
}
.ft-title .num {
  font-family: var(--mono);
  font-size: 0.46em;
  color: var(--accent-warm);
  letter-spacing: 0.1em;
  font-weight: 500;
  padding-right: var(--space-3);
  border-right: 1px solid var(--line);
}
.ft-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.ft-meta > div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}
.ft-meta .k {
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-4);
}
.ft-meta .v {
  text-align: right; color: var(--ink-2);
  font-family: var(--sans); font-size: 14px;
  letter-spacing: 0; text-transform: none;
}
.ft-body h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--ink);
}
.ft-list {
  display: grid; gap: 14px;
}
.ft-list li {
  position: relative;
  padding-left: 22px;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.ft-list li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 10px; height: 1px;
  background: var(--accent-warm);
}
.ft-list strong { color: var(--ink); font-weight: 600; }

.ft-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ft-shot {
  position: relative;
  aspect-ratio: 4 / 5;       /* all four tiles share one ratio for clean alignment */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #1a1a1a, #0a0a0a);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ft-shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.ft-shot:hover { border-color: var(--ink-3); }
.ft-shot:hover img { transform: scale(1.05); }
/* Hide the broken <img> entirely — alt text was rendering on top of the placeholder. */
.ft-shot img.broken { display: none; }
.ft-shot.no-image {
  display: grid;
  place-items: center;
}
.ft-shot.no-image::before {
  content: attr(data-fallback);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  text-align: center;
  padding: 14px;
}
.ft-shot-label {
  position: absolute; left: 10px; bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
  z-index: 1;
}

@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
}

/* ============================================================================
   11. GALLERY
   ============================================================================ */
.gallery-filter {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: 48px;
}
.gf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.gf-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.gf-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.gf-count {
  font-family: var(--mono);
  font-size: 10.5px;
  opacity: 0.55;
  letter-spacing: 0;
}

/* ----- Slideshow stage (replaces the old grid layout) ----- */
.gallery-stage {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 14px;
  align-items: center;
}
.gs-viewport {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg);
  /* fade-out the edges of the slideshow so slides feel like they enter/exit */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image:
    linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.gs-track {
  --visible: 3;            /* slides visible at once */
  --gap: 14px;
  display: flex;
  gap: var(--gap);
  list-style: none;
  margin: 0; padding: 0;
  transition: transform 0.75s var(--ease-out);
  will-change: transform;
}
@media (max-width: 980px) { .gs-track { --visible: 2; } }
@media (max-width: 620px) { .gs-track { --visible: 1; } }

/* Each slide takes 1/visible of the viewport, minus gap */
.gs-track .g-item {
  flex: 0 0 calc((100% - (var(--visible) - 1) * var(--gap)) / var(--visible));
  margin: 0;
  list-style: none;
  position: relative;
  opacity: 0.55;
  transform: scale(0.94);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.gs-track .g-item.is-active,
.gs-track .g-item.is-neighbour {
  opacity: 1;
  transform: scale(1);
}
.gs-track .g-item.is-hidden { display: none; }

/* All slides share a consistent height inside the carousel.
   The .t-* classes still describe original aspect ratio (used by JS for
   art-direction hints), but every slide renders at a fixed slot height. */
.gs-track .g-frame {
  position: relative;
  height: clamp(280px, 36vh, 460px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #181818, #0a0a0a);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.gs-track .g-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out), filter var(--dur) var(--ease);
  filter: saturate(0.95) contrast(1.02);
}
.gs-track .g-item:hover .g-frame {
  border-color: var(--ink-3);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.8);
}
.gs-track .g-item:hover .g-frame img { transform: scale(1.06); }

.gs-track .g-item figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  text-align: center;
}

/* Empty-state caption when the image file isn't on the server yet */
.gs-track .g-frame.is-empty { display: grid; place-items: center; }
.gs-track .g-frame.is-empty::after {
  content: attr(data-fallback);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  text-align: center;
  padding: 16px;
}
.gs-track .g-frame img.broken { display: none; }

/* Prev / next arrows */
.gs-nav {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
  z-index: 2;
}
.gs-nav:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: scale(1.06);
}
.gs-nav:active { transform: scale(0.96); }
@media (max-width: 620px) {
  .gallery-stage { grid-template-columns: 1fr; }
  .gs-nav { display: none; }
}

/* Slideshow meta — counter, progress, play/pause */
.gallery-meta {
  margin-top: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}
.gs-counter {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.gs-counter .cur { color: var(--ink); font-weight: 500; }
.gs-counter .sep { color: var(--ink-4); margin: 0 2px; }
.gs-counter .total { color: var(--ink-4); }

.gs-progress {
  height: 2px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.gs-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent-cool));
  transition: width 100ms linear;
}

.gs-play {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.gs-play:hover { color: var(--ink); border-color: var(--ink-3); }
.gs-play .play-icons {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  position: relative;
}
.gs-play .play-icons svg { position: absolute; }
.gs-play .i-play  { opacity: 0; transition: opacity var(--dur-fast); }
.gs-play .i-pause { opacity: 1; transition: opacity var(--dur-fast); }
.gs-play[aria-pressed="true"] .i-play  { opacity: 1; }
.gs-play[aria-pressed="true"] .i-pause { opacity: 0; }

/* ============================================================================
   12. STOCK CARDS
   ============================================================================ */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .stock-grid { grid-template-columns: 1fr; } }

.stock-card {
  position: relative;
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at top right, rgba(168,184,214,0.06), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
  /* Column flex so .sc-cta (card-foot) pins to bottom — keeps CTAs aligned
     across cards regardless of how their figure labels wrap. */
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.stock-card:hover { transform: translateY(-3px); border-color: var(--ink-3); }
.sc-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-7); }
.sc-platform {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sc-platform-note {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-4);
  margin-left: 6px;
}
.sc-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sc-figures {
  /* auto-fit so cards adapt to 2 or 3 figures without restructure */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
}
.sc-fig {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  /* min-height ensures all figures in a row match even if one label wraps */
  min-height: 110px;
}
.sc-val {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sc-val .cents { font-size: 0.5em; color: var(--ink-3); margin-left: 1px; }
.sc-lab {
  /* push label to bottom of fig box so all labels align horizontally */
  margin-top: auto;
  padding-top: var(--space-3);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.4;
}
/* The CTA carries the .card-foot class so margin-top: auto applies via the
   .card-vstack utility — pinning it to the bottom of every stock card. */
.sc-cta {
  display: inline-flex; align-self: flex-start; align-items: center; gap: var(--space-2);
  /* pin to bottom of the column-flex stock-card so CTAs align across cards */
  margin-top: auto;
  padding-top: var(--card-foot-gap);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  transition: color var(--dur-fast);
}
.sc-cta > span:first-child {
  border-bottom: 1px solid var(--line-2);
  padding-bottom: var(--space-1);
  transition: border-color var(--dur-fast);
}
.sc-cta:hover > span:first-child { border-color: var(--ink); }
.sc-cta:hover { border-color: var(--ink); }
.stock-foot {
  margin-top: var(--space-6);
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

/* ============================================================================
   13. FILMS / MUSIC GRID
   ============================================================================ */
.film-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.film-card {
  grid-column: span 4;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.film-card.featured { grid-column: span 12; }
.film-card:hover { transform: translateY(-4px); border-color: var(--ink-3); }
@media (max-width: 900px) {
  .film-card, .film-card.featured { grid-column: span 12; }
}

.film-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(214,180,131,0.18), transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(168,184,214,0.16), transparent 55%),
    linear-gradient(180deg, #1a1a1a, #0c0c0c);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.film-thumb.has-yt { background-image: var(--yt-img), linear-gradient(180deg, #1a1a1a, #0c0c0c); }
.film-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}
.film-tag, .film-dur {
  position: absolute; top: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(8px);
  padding: 5px 9px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  z-index: 2;
}
.film-tag { left: 12px; }
.film-dur { right: 12px; }
.film-play {
  position: absolute;
  left: 50%; top: 50%;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(10,10,10,0.4);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
  z-index: 2;
}
.film-play::after {
  content: "";
  width: 0; height: 0;
  margin-left: 4px;
  border-left: 14px solid var(--ink);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.film-card:hover .film-play {
  background: var(--ink);
  transform: scale(1.08);
}
.film-card:hover .film-play::after { border-left-color: var(--bg); }

.film-body { padding: 18px 20px 22px; }
.film-body h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.film-body p {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-3);
}

/* ============================================================================
   14. MAYA — Custom GPT card
   ============================================================================ */
.maya-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(214,180,131,0.06), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0));
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.maya-card:hover { transform: translateY(-4px); border-color: var(--ink-3); }
.maya-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(214,180,131,0.4), transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(168,184,214,0.32), transparent 55%),
    #161616;
  overflow: hidden;
}
.maya-cover img { width: 100%; height: 100%; object-fit: cover; }
.maya-cover img.broken { display: none; }
.maya-cover.no-image img { display: none; }
.maya-glyph {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(120px, 14vw, 220px);
  color: rgba(255,255,255,0.92);
  text-shadow: 0 12px 60px rgba(0,0,0,0.5);
}
.maya-cover img + .maya-glyph { display: none; }
.maya-cover.no-image .maya-glyph { display: grid; }

.maya-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.maya-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.maya-body h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.maya-body p {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 560px;
}
.maya-meta {
  margin-top: 22px;
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.maya-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }
.maya-cta {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  align-self: flex-start;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 6px;
  transition: border-color var(--dur-fast);
}
.maya-card:hover .maya-cta { border-color: var(--ink); }
.maya-cta em { font-style: normal; }

@media (max-width: 880px) { .maya-card { grid-template-columns: 1fr; } }

/* ============================================================================
   15. WRITING — long-form rows
   ============================================================================ */
.writing-list {
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
.writing-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-fast) var(--ease), padding var(--dur) var(--ease);
}
.writing-row:hover { background: rgba(255,255,255,0.02); padding-inline: 20px; }
.wr-idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.08em;
}
.wr-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: color var(--dur-fast);
}
.wr-sub {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wr-arr {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--ink-3);
  transition: transform var(--dur-fast), color var(--dur-fast);
}
.writing-row:hover .wr-arr { color: var(--ink); transform: translateX(4px) translateY(-4px); }

.writing-all {
  margin-top: 32px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition: border-color var(--dur-fast);
}
.writing-all:hover { border-color: var(--ink); }

/* ============================================================================
   16. TOOLS
   ============================================================================ */
.tools-wrap {
  margin-top: 28px;
  display: grid; gap: 14px;
  overflow: hidden;
}
.tools-row { overflow: hidden; }
.tools-track {
  display: inline-flex;
  gap: 12px;
  white-space: nowrap;
  animation: toolsRoll 50s linear infinite;
  padding-inline: 8px;
}
.tools-row.reverse .tools-track { animation-direction: reverse; }
.tool-pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-2);
  background: var(--bg-2);
}
.tool-pill i {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
}
@keyframes toolsRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================================
   17. TIMELINE
   ============================================================================ */
.timeline {
  position: relative;
  display: grid;
  gap: 22px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: clamp(120px, 14vw, 200px);
  top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.tl-item {
  display: grid;
  grid-template-columns: clamp(120px, 14vw, 200px) 1fr;
  gap: 28px;
  padding: 20px 0;
  position: relative;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: clamp(120px, 14vw, 200px);
  top: 28px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink-3);
  transform: translateX(-5px);
}
.tl-year {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-right: 24px;
}
.tl-body {
  padding-left: 22px;
}
.tl-role {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -0.005em;
  color: var(--ink);
}
.tl-where {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tl-desc {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 640px;
}
.tl-tag {
  margin-top: 14px;
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .timeline::before { left: 14px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; padding-left: 36px; }
  .tl-item::before { left: 14px; top: 26px; }
  .tl-body { padding-left: 0; }
}

/* ============================================================================
   18. CONTACT + FOOTER
   ============================================================================ */
.contact {
  padding-top: clamp(80px, 14vh, 180px);
  padding-bottom: 40px;
  text-align: center;
}
.contact-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.contact-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.contact-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(48px, 8vw, 124px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.contact-lede {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--ink-3);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.65;
}
.contact-channels {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cc-row {
  display: block;
  padding: 24px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0));
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cc-row:hover { transform: translateY(-3px); border-color: var(--ink-3); }
.cc-k {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.cc-v {
  margin-top: 12px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink);
}
.cc-v span { color: var(--ink-3); font-weight: 400; }

.contact-cta-row {
  margin-top: 36px;
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: transform var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast);
}
.btn em { font-style: normal; }
.btn.primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}
.btn.primary:hover { transform: translateY(-2px); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn.ghost:hover { border-color: var(--ink); }

.footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
}
.footer-brand { color: var(--ink-2); }
.footer-center { text-align: center; }
.footer-right { text-align: right; font-family: var(--mono); }

@media (max-width: 760px) {
  .contact-channels { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer-right, .footer-center { text-align: center; }
}

/* ============================================================================
   19. BACK TO TOP
   ============================================================================ */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(10,10,10,0.7);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  display: grid; place-items: center;
  color: var(--ink);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--dur), transform var(--dur), background var(--dur-fast), border-color var(--dur-fast);
}
.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-top:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ============================================================================
   20. SCROLL-DRIVEN 3D — modern browsers (Chromium-based)
   Falls back gracefully — JS reveal still works elsewhere.
   ============================================================================ */
@supports (animation-timeline: view()) {
  /* Section heads — gentle parallax in */
  .section-title {
    animation: titleRise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  @keyframes titleRise {
    from { transform: translateY(60px) rotateX(8deg); opacity: 0; }
    to   { transform: translateY(0)    rotateX(0);    opacity: 1; }
  }

  /* Service cards — staggered 3D lift */
  .service-card {
    animation: cardLift linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
  }
  @keyframes cardLift {
    from { transform: translateY(60px) rotateX(10deg); opacity: 0; }
    to   { transform: translateY(0)    rotateX(0);    opacity: 1; }
  }

  /* Gallery stage — animate the whole carousel as one block instead of
     per-item, since items now live in a horizontal track. */
  .gallery-stage {
    animation: cardLift linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
  }

  /* Film cards */
  .film-card {
    animation: cardLift linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
  }

  /* Stat numbers — slight scale on enter */
  .stat {
    animation: statIn linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  @keyframes statIn {
    from { transform: translateY(20px); opacity: 0.2; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  /* Stock + Featured + Maya cards */
  .stock-card, .featured-card, .maya-card {
    animation: cardLift linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }

  /* Writing rows — slide in from a touch left */
  .writing-row {
    animation: rowIn linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 18%;
  }
  @keyframes rowIn {
    from { transform: translateX(-14px); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
  }

  /* Timeline items */
  .tl-item {
    animation: rowIn linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 18%;
  }

  /* Hero name — subtle scroll-driven scale-down + fade */
  .hero-name {
    animation: heroNameScroll linear;
    animation-timeline: view();
    animation-range: exit 0% exit 100%;
  }
  @keyframes heroNameScroll {
    from { transform: scale(1)    translateY(0);   opacity: 1; }
    to   { transform: scale(0.86) translateY(-40px); opacity: 0.2; }
  }
}

/* ============================================================================
   21. REDUCED MOTION
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-name .word span { transform: none; opacity: 1; filter: none; }
  .hero-tagline, .hero-sub, .hero-corner, .hero-scroll { opacity: 1; }
}

/* ============================================================================
   22. RESPONSIVE CHROME
   ============================================================================ */
@media (max-width: 1100px) {
  .chrome-cta { display: none; }
}
@media (max-width: 880px) {
  .chrome { grid-template-columns: auto 1fr; gap: 14px; }
  .chrome-nav {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-top: 6px;
    border-top: 1px solid var(--line);
    margin-top: 6px;
    scrollbar-width: none;
  }
  .chrome-nav::-webkit-scrollbar { display: none; }
}
