/* Ivaraa Studio — site styles
   Tokens, fonts and motion follow ivaraa/brand/BRAND.md (palette, the dot, the aa).
   Scene (reel) styles live in scenes.css. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; src: url(../assets/fonts/BricolageGrotesque-800.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; src: url(../assets/fonts/Inter-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; src: url(../assets/fonts/Inter-700.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; src: url(../assets/fonts/JetBrainsMono-400.woff2) format("woff2"); font-display: swap; }
/* Metric-matched fallbacks: the system font takes the web font's box until it loads, so text does not reflow (CLS). */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%; }
@font-face { font-family: "Bricolage Fallback"; src: local("Arial"); size-adjust: 102%; ascent-override: 93%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "JetBrains Mono Fallback"; src: local("Consolas"), local("Courier New"); size-adjust: 98%; ascent-override: 102%; descent-override: 30%; line-gap-override: 0%; }

:root {
  /* brand palette */
  --ink: #0B0A09;
  --coal: #17130F;
  --line: #2A241E;
  --cream: #F4EDE4;
  --ash: #9A8F84;
  --ember: #FF5A1F;
  --amber: #FFB03A;
  --iris: #8B7CFF;

  /* derived */
  --ink-2: #110F0D;
  --line-2: #3a322a;
  --cream-2: #cfc6bb;
  --ember-grad: linear-gradient(135deg, #FFB03A 0%, #FF5A1F 100%);
  --dot-fill: radial-gradient(circle at 42% 40%, #FFCB80 0%, #FFB03A 40%, #FF5A1F 100%);
  --dot-glow: 0 0 40px 8px rgba(255, 90, 31, .45);
  --dot-glow-sm: 0 0 14px 2px rgba(255, 90, 31, .55);

  --f-display: "Bricolage Grotesque", "Bricolage Fallback", "Inter", system-ui, sans-serif;
  --f-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* motion language */
  --ivaraa-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ivaraa-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ivaraa-inout: cubic-bezier(0.83, 0, 0.17, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --radius: 18px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font-family: var(--f-body); font-size: 17px; line-height: 1.45; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ember); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; border-radius: 6px; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 14px; background: var(--cream); color: var(--ink); border-radius: 8px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.display, .h2, .hero-h1, .contact-title, .card-title h3, .step h3, .lb-info h3, .success-title {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; line-height: .95;
}
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Film grain, ~4% */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Logo (SVG from brand/logo.svg; never retyped in a font) ---------- */
.logo { display: block; height: auto; overflow: visible; }
.logo-ivar { fill: var(--cream); }
.logo-aa { fill: url(#ivEmber); }
.logo-dot { fill: url(#ivDot); }
.logo-glow { filter: drop-shadow(0 0 6px rgba(255, 90, 31, .75)); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: color .24s var(--ivaraa-out), box-shadow .24s;
}
.btn-inner { display: inline-flex; align-items: center; gap: 12px; pointer-events: none; }
.btn-primary { background: var(--cream); color: var(--ink); }
.btn .arrow { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform .24s var(--ivaraa-out); }
.btn-ghost { color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(244, 237, 228, .02); backdrop-filter: blur(8px); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ash); }
.btn-ghost .play { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); }
.btn-ghost .play svg { width: 9px; height: 9px; margin-left: 2px; fill: var(--ink); }
.btn-sm { padding: 11px 18px; font-size: 14px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }
.section { padding: clamp(96px, 14vw, 180px) 0; }
.marker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ash); }
.marker::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background .3s, box-shadow .3s; }
.marker.is-current::before { background: var(--dot-fill); box-shadow: var(--dot-glow-sm); }
.marker b { color: var(--cream-2); font-weight: 400; }
.h2 { font-size: clamp(38px, 5.3vw, 86px); margin: 22px 0 0; }
.h2 em { color: var(--ash); }
.lede { font-size: clamp(17px, 1.45vw, 20px); color: var(--cream-2); max-width: 46ch; margin: 24px 0 0; }
.section-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 0; } }

/* word-mask reveal helpers */
.split-line { display: inline-block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; vertical-align: top; }
.split-line > span { display: inline-block; will-change: transform; }

.contact-title em { background: var(--ember-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-title em .split-line > span { background: var(--ember-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Work layout: 2 wide + 3 tall ---------- */
.work-row { margin: clamp(56px, 7vw, 96px) 0 26px; }
.work-tall { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.work-tall .card { grid-column: auto; }
.work-note b { color: var(--cream-2); font-weight: 400; }
.card-badge.is-studio { background: rgba(255, 90, 31, .18); color: #ffd2bd; box-shadow: inset 0 0 0 1px rgba(255, 90, 31, .45); }
@media (max-width: 760px) {
  .work-tall { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .work-tall::-webkit-scrollbar { display: none; }
  .work-tall .card { flex: none; width: 70vw; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
}
/* ---------- Work ---------- */
.work-note { font-size: 14px; color: var(--ash); max-width: 52ch; margin: 18px 0 0; }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.card { position: relative; grid-column: span 4; display: block; }
.card.is-wide { grid-column: span 6; }
.card-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--coal); box-shadow: inset 0 0 0 1px var(--line); aspect-ratio: 9 / 16; transform: translateZ(0); }
.card.is-wide .card-media { aspect-ratio: 16 / 9; }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ivaraa-out), opacity .4s; }
.card-media video { opacity: 0; }
.card.is-previewing .card-media video { opacity: 1; }
.card:hover .card-media img, .card:hover .card-media video { transform: scale(1.035); }
.card-badge, .card-ratio { position: absolute; top: 14px; z-index: 2; padding: 6px 10px; border-radius: 999px; background: rgba(11, 10, 9, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-2); }
.card-badge { left: 14px; }
.card-ratio { right: 14px; }
.card-play { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink); transform: scale(0); transition: transform .4s var(--ivaraa-out); }
.card-play svg { width: 12px; height: 12px; margin-left: 2px; fill: currentColor; }
.card:hover .card-play, .card:focus-visible .card-play { transform: scale(1); }
html.has-cursor .card:hover .card-play { transform: scale(0); }
.card:focus-visible { outline: none; }
.card:focus-visible .card-media { box-shadow: inset 0 0 0 2px var(--ember); }
.card:focus-visible .card-play { background: var(--ember); }
.card-body { padding: 18px 4px 0; }
.card-title { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card-title h3 { margin: 0; font-size: 26px; }
.card-title span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ash); white-space: nowrap; }
.card-body p { margin: 8px 0 0; color: var(--cream-2); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.tags li { list-style: none; font-family: var(--f-mono); font-size: 11px; color: var(--cream-2); padding: 5px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
@media (max-width: 1000px) { .card { grid-column: span 6; } .card.is-wide { grid-column: span 12; } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; gap: 36px; } .card, .card.is-wide { grid-column: auto; } .card-title { flex-direction: column; gap: 4px; } .card-title h3 { font-size: 22px; } .card-body p { font-size: 14px; } .tags li:nth-child(n+3) { display: none; } .card-badge { left: 8px; top: 8px; font-size: 9.5px; padding: 5px 8px; } .card-ratio { display: none; } }
/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px); }
.lb.is-open { display: flex; }
.lb-bg { position: absolute; inset: 0; background: rgba(11, 10, 9, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.lb-inner { position: relative; display: flex; gap: clamp(20px, 3vw, 48px); align-items: center; max-width: 1300px; width: 100%; max-height: 100%; justify-content: center; }
.lb-video { max-height: calc(100svh - 120px); max-width: 100%; border-radius: 14px; background: #000; box-shadow: 0 0 0 1px var(--line), 0 30px 120px -20px rgba(255, 90, 31, .3); }
.lb.is-tall .lb-video { height: calc(100svh - 120px); width: auto; }
.lb.is-wide .lb-video { width: min(100%, 1100px); height: auto; }
.lb-info { max-width: 320px; }
.lb-info h3 { font-size: 36px; margin: 14px 0 8px; }
.lb-info p { color: var(--cream-2); margin: 0; }
.lb-close { position: absolute; top: 18px; right: 18px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(244, 237, 228, .08); }
.lb-close:hover { background: var(--cream); color: var(--ink); }
.lb-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; }
.lb.is-wide .lb-inner { flex-direction: column; align-items: flex-start; }
.lb.is-wide .lb-info { max-width: 900px; }
@media (max-width: 760px) { .lb-inner { flex-direction: column; } .lb.is-tall .lb-video { height: auto; width: 100%; max-height: 70svh; object-fit: contain; } .lb-info h3 { font-size: 26px; } .lb-info { max-width: none; } }
/* ---------- Process ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 56px; }
.steps-line { position: absolute; left: 0; right: 0; top: 14px; height: 1px; background: var(--line); }
.steps-line b { position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--cream-2); transform-origin: 0 50%; transform: scaleX(0); }
.steps-dot { position: absolute; top: 14px; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--dot-fill); box-shadow: var(--dot-glow-sm); z-index: 2; }
.step { position: relative; }
.step::before { content: ""; position: absolute; top: -48px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .3s, background .3s; }
.step.is-lit::before { background: var(--cream-2); box-shadow: none; }
.step-n { font-family: var(--f-mono); font-size: 12px; color: var(--ash); letter-spacing: .08em; }
.step h3 { font-size: clamp(26px, 2.3vw, 34px); margin: 14px 0 12px; }
.step p { color: var(--cream-2); margin: 0; font-size: 16px; max-width: 30ch; }
.ratios { display: flex; gap: 8px; align-items: flex-end; margin-top: 18px; }
.ratios i { display: block; box-shadow: inset 0 0 0 1.5px var(--cream-2); border-radius: 4px; }
.ratios i:nth-child(1) { width: 48px; height: 27px; } .ratios i:nth-child(2) { width: 22px; height: 39px; } .ratios i:nth-child(3) { width: 32px; height: 32px; }
.process-note { margin-top: 56px; padding: 22px 26px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); color: var(--cream-2); font-size: 15.5px; background: var(--coal); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 44px; padding-top: 0; padding-left: 40px; }
  .steps-line { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps-line b { width: 1px; height: 100%; transform-origin: 50% 0; transform: scaleY(0); }
  .steps-dot { left: 6px; top: 0; margin: -8px 0 0 -8px; }
  .step::before { top: 4px; left: -40px; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-art { position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: radial-gradient(70% 70% at 50% 60%, rgba(255, 90, 31, .16) 0%, transparent 70%), var(--coal); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; margin: 0; }
.about-art .logo { width: 62%; }
.about-art .rings { position: absolute; inset: 0; }
.about-art .rings i { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid var(--line); transform: translate(-50%, -50%); animation: ringOut 6s linear infinite; }
.about-art .rings i:nth-child(2) { animation-delay: -2s; } .about-art .rings i:nth-child(3) { animation-delay: -4s; }
@keyframes ringOut { from { width: 20%; height: 20%; opacity: 1; } to { width: 120%; height: 120%; opacity: 0; } }
.about-art figcaption { position: absolute; left: 22px; bottom: 20px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ash); }
.about-copy p { font-size: clamp(19px, 1.8vw, 25px); line-height: 1.4; color: var(--cream-2); margin: 0 0 22px; }
.about-copy p strong { color: var(--cream); font-weight: 700; }
.about-copy .sig { display: flex; gap: 14px; align-items: center; margin-top: 30px; font-size: 15px; color: var(--ash); line-height: 1.35; }
.about-copy .sig b { color: var(--cream); font-size: 17px; }
.about-copy .sig i { width: 44px; height: 44px; border-radius: 50%; background: var(--coal); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; font-style: normal; font-family: var(--f-display); font-weight: 800; color: var(--cream); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about-art { aspect-ratio: 16 / 10; } .about-art .logo { width: 52%; } }
/* ---------- Contact / footer ---------- */
.contact { padding: clamp(72px, 10vw, 140px) 0 0; overflow: hidden; }
.contact-glow { position: absolute; left: 50%; bottom: -30vw; width: 90vw; height: 60vw; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 90, 31, .32), transparent); filter: blur(40px); pointer-events: none; }
.contact-title { font-size: clamp(48px, 8.6vw, 148px); margin: 26px 0 0; }
.contact-row { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; margin-top: 56px; }
.mail { font-size: clamp(22px, 3vw, 44px); letter-spacing: -0.02em; display: inline-flex; gap: 14px; align-items: center; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ivaraa-out), color .2s; padding-bottom: 4px; overflow-wrap: anywhere; }
.mail:hover { background-size: 100% 2px; }
.mail svg { width: .7em; height: .7em; stroke: currentColor; stroke-width: 2; fill: none; flex: none; }
.footer { position: relative; margin-top: clamp(80px, 12vw, 160px); border-top: 1px solid var(--line); padding: 28px 0 34px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; font-size: 14px; color: var(--ash); }
.footer .logo { width: 104px; }
.socials { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.socials a { padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--cream-2); transition: box-shadow .2s, color .2s; }
.socials a:hover { box-shadow: inset 0 0 0 1px var(--ash); color: var(--cream); }
.footer-r { text-align: right; }
.footer-big { margin: 30px 0 0; padding-bottom: clamp(24px, 4vw, 56px); }
.footer-big .logo { width: 100%; }
@media (max-width: 760px) { .footer { grid-template-columns: 1fr; text-align: center; justify-items: center; } .footer-r { text-align: center; } }

/* ---------- Reveal defaults (JS animates) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(32px); }
html.js.is-reduced [data-reveal] { opacity: 1; transform: none; }
/* ---------- Lightbox: sound fallback ---------- */
.lb-media { position: relative; display: flex; justify-content: center; max-width: 100%; }
.lb-sound {
  position: absolute; top: 14px; right: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; background: var(--ember-grad); color: #140903; font: 700 14px/1 var(--f-body);
  box-shadow: 0 8px 30px rgba(255, 90, 31, .35); opacity: 0; transform: translateY(-6px) scale(.96); pointer-events: none;
  transition: opacity .35s ease, transform .45s var(--ivaraa-out);
}
.lb-sound-dot { width: 8px; height: 8px; border-radius: 50%; background: #140903; animation: soundPulse 1.2s ease-in-out infinite; }
.lb.needs-sound .lb-sound { opacity: 1; transform: none; pointer-events: auto; }
@keyframes soundPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .5; } }
.lb-badge.is-studio::before { background: var(--dot-fill); box-shadow: var(--dot-glow-sm); }

.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; }
.form-intro { margin: 0 0 6px; color: var(--cream-2); font-size: 16px; max-width: 52ch; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-2); }
.field .opt { color: var(--ash); text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--cream); background: var(--coal); border: 0; border-radius: 14px;
  padding: 15px 16px; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: #6f665d; }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--ash); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ember); background: #1b1611; }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #ff7a6b; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ash); border-bottom: 2px solid var(--ash); transform: rotate(45deg); pointer-events: none; }
.field select { padding-right: 44px; cursor: pointer; }
.field select option { background: var(--coal); color: var(--cream); }
.field-err { margin: 0; min-height: 0; font-size: 13.5px; color: #ff9d90; display: none; }
.field-err.is-on { display: block; }
.field-err.is-on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ff7a6b; margin-right: 8px; vertical-align: 2px; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.form-submit[disabled] { opacity: .6; pointer-events: none; }
.form-status { margin: 0; font-size: 14.5px; color: var(--cream-2); max-width: 46ch; }
.form-status.is-error { color: #ff9d90; }
.form-status a { text-decoration: underline; text-underline-offset: 3px; }

.form-success { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: radial-gradient(80% 70% at 50% 120%, rgba(255, 90, 31, .22), transparent 70%), var(--coal); box-shadow: inset 0 0 0 1px var(--line); }
.form-success:focus { outline: none; }
.success-dot { position: relative; width: 60px; height: 90px; margin-bottom: 18px; }
.success-dot i { position: absolute; left: 50%; bottom: 0; width: 60px; height: 2px; margin-left: -30px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.success-dot b { position: absolute; left: 50%; bottom: 2px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--dot-fill); box-shadow: var(--dot-glow); transform-origin: 50% 100%; }
.success-title { font-size: clamp(34px, 4vw, 56px); margin: 0; }
.success-msg { color: var(--cream-2); font-size: 17px; margin: 14px 0 22px; max-width: 48ch; }

.contact-aside { display: grid; gap: 16px; align-content: start; padding-top: 4px; }
.mail { font-size: clamp(22px, 2.4vw, 34px); }
.copy { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; color: var(--cream-2); transition: box-shadow .2s, color .2s, background .2s; }
.copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.copy:hover { box-shadow: inset 0 0 0 1px var(--ash); color: var(--cream); }
.copy.is-done { background: rgba(255, 90, 31, .14); box-shadow: inset 0 0 0 1px rgba(255, 90, 31, .5); color: var(--cream); }
.aside-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; color: var(--cream-2); font-size: 15.5px; }
.aside-list li { position: relative; padding-left: 20px; }
.aside-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }

.footer { margin-top: clamp(80px, 11vw, 150px); }
.socials { align-items: center; }
.reel-link { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--cream); font-size: 14px; transition: box-shadow .2s; }
.reel-link:hover { box-shadow: inset 0 0 0 1px var(--ember); }
.reel-link-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot-fill); box-shadow: var(--dot-glow-sm); }

/* ---------- No horizontal scroll, ever ---------- */
html, body { overflow-x: clip; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}
.contact-aside .mail { justify-self: start; }
.lb[hidden] { display: none !important; }
.h2 em, .contact-title em { font-style: normal; }

/* =====================================================================
   Film site (scroll scrubs the launch film): loader, header, film stage, captions, rail, cursor, liquid fill
   ===================================================================== */
.btn-ember { background: var(--ember); color: var(--ink); --fx-bg: var(--cream); --fx-fg: var(--ink); }
.btn-ember .arrow { width: 13px; height: 13px; }

/* ---------- Loader = the film's end card, then the logo docks into the header ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--ink); overflow: hidden; }
.loader-stage { position: absolute; inset: 0; overflow: hidden; }
.loader-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.loader-tag { position: absolute; left: var(--gutter); bottom: 26px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ash); opacity: 0; transition: opacity .6s; }
.loader.is-in .loader-tag { opacity: 1; }
html.no-loader .loader, html.no-js .loader { display: none; }
.logo-fly { position: fixed; left: 0; top: 0; z-index: 210; height: auto; transform-origin: 0 0; pointer-events: none; will-change: transform; overflow: visible; }
html.is-loading .nav-logo, html.is-loading .nav-tag { visibility: hidden; }
html.is-loading .nav-links > *, html.is-loading .nav-cta-m, html.is-loading .menu-btn { opacity: 0; }

/* ---------- Header ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70; display: flex; align-items: center; gap: 10px;
  padding: 20px var(--gutter); border-bottom: 1px solid transparent;
  transition: padding .45s var(--ivaraa-out), background .4s, border-color .4s;
}
.nav.is-scrolled { padding-top: 11px; padding-bottom: 11px; }
html:not(.in-film) .nav.is-scrolled { background: rgba(11, 10, 9, .74); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
html.menu-open .nav { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-logo { display: block; border-radius: 6px; }
.nav-logo .logo { width: 112px; transition: width .45s var(--ivaraa-out); }
.nav.is-scrolled .nav-logo .logo { width: 96px; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  font-size: 14px; line-height: 1.2; color: var(--cream-2); white-space: nowrap; overflow: hidden; isolation: isolate; transition: color .25s, box-shadow .25s;
}
.nav-work { color: var(--cream); font-weight: 700; padding: 8px 9px 8px 16px; margin: 0 6px; box-shadow: inset 0 0 0 1.5px rgba(244, 237, 228, .42); }
.nav-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: var(--ember); color: var(--ink); font: 700 11.5px/1 var(--f-body); letter-spacing: 0; }
.nav-cta { margin-left: 4px; padding: 12px 20px; font-size: 14.5px; box-shadow: 0 6px 26px -8px rgba(255, 90, 31, .7); }
.nav-cta-m, .menu-btn { display: none; }
.menu-btn { position: relative; align-items: center; padding: 10px 14px; border-radius: 999px; font-size: 14px; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(244, 237, 228, .3); overflow: hidden; isolation: isolate; }
.menu-btn .btn-inner { gap: 10px; }
.menu-lines { position: relative; width: 16px; height: 10px; display: block; }
.menu-lines i { position: absolute; left: 0; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ivaraa-out), top .45s var(--ivaraa-out); }
.menu-lines i:first-child { top: 1px; } .menu-lines i:last-child { top: 7.5px; }
html.menu-open .menu-lines i:first-child { top: 4.25px; transform: rotate(45deg); }
html.menu-open .menu-lines i:last-child { top: 4.25px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta-m, .menu-btn { display: inline-flex; }
  .nav-cta-m { padding: 10px 15px; font-size: 13.5px; }
  .nav { padding-top: 14px; padding-bottom: 14px; }
  .nav-logo .logo, .nav.is-scrolled .nav-logo .logo { width: 92px; }
  html.menu-open .nav-cta-m { opacity: 0; pointer-events: none; }
}
@media (max-width: 380px) { .menu-lab { display: none; } .menu-btn { padding: 10px 12px; } }

/* the header reads over every film frame: ink lockup + links over the ember / cream frames */
html.nav-ember .nav-logo, html.nav-cream .nav-logo { --lg-ivar: var(--ink); }
html.nav-ember .nav-logo { --lg-aa: var(--ink); --lg-dot: var(--ink); }
html.nav-ember .nav-link, html.nav-cream .nav-link, html.nav-ember .menu-btn, html.nav-cream .menu-btn { color: var(--ink); }
html.nav-ember .nav-work, html.nav-cream .nav-work, html.nav-ember .menu-btn, html.nav-cream .menu-btn { box-shadow: inset 0 0 0 1.5px rgba(11, 10, 9, .5); }
html.nav-ember .nav-count { background: var(--ink); color: var(--ember); }
html.nav-ember .nav [data-fx], html.nav-cream .nav [data-fx] { --fx-bg: var(--ink); --fx-fg: var(--cream); }
html.nav-ember .nav .btn-ember { background: var(--ink); color: var(--cream); box-shadow: none; }
html.nav-ember .nav .btn-ember, html.nav-cream .nav .btn-ember { --fx-bg: var(--cream); --fx-fg: var(--ink); }
html.nav-ember .rail-track, html.nav-cream .rail-track { background: rgba(11, 10, 9, .25); }
html.nav-ember .rail-fill, html.nav-cream .rail-fill { background: rgba(11, 10, 9, .7); }
html.nav-ember .rail-tick, html.nav-cream .rail-tick { background: rgba(11, 10, 9, .6); }
html.nav-ember .rail-label, html.nav-cream .rail-label { color: rgba(11, 10, 9, .75); }
html.nav-ember .rail-dot { background: var(--ink); box-shadow: none; }
html.menu-open .nav-logo { --lg-ivar: var(--cream); --lg-aa: url(#ivEmber); --lg-dot: url(#ivDot); }
html.menu-open .menu-btn { color: var(--cream); box-shadow: inset 0 0 0 1px rgba(244, 237, 228, .3); }

/* ---------- Mobile menu: full-screen overlay, items rise in ---------- */
.menu { position: fixed; inset: 0; z-index: 65; background: var(--ink); display: flex; flex-direction: column; justify-content: center; padding: 96px var(--gutter) calc(32px + env(safe-area-inset-bottom)); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu::before { content: ""; position: absolute; left: 50%; bottom: -30vh; width: 120vw; height: 70vh; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 90, 31, .18), transparent); pointer-events: none; }
.menu-nav { position: relative; display: grid; gap: 4px; }
.menu-item { display: flex; align-items: baseline; gap: 14px; padding: 6px 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(38px, 11vw, 64px); line-height: 1.04; letter-spacing: -0.03em; color: var(--cream-2);
  opacity: 0; transform: translateY(46px); transition: opacity .45s, transform .75s var(--ivaraa-out), color .2s; }
.menu.is-open .menu-item { opacity: 1; transform: none; }
.menu.is-open .menu-item:nth-child(2) { transition-delay: .05s; } .menu.is-open .menu-item:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu-item:nth-child(4) { transition-delay: .15s; } .menu.is-open .menu-item:nth-child(5) { transition-delay: .2s; }
.menu-n { font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .08em; color: var(--ash); transform: translateY(-1.4em); }
.menu-item.is-key { color: var(--cream); }
.menu-count { display: inline-grid; place-items: center; margin-left: 10px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--ember); color: var(--ink); font: 700 15px/1 var(--f-body); letter-spacing: 0; vertical-align: middle; transform: translateY(-.25em); }
.menu-item.is-cta { margin-top: 26px; justify-content: space-between; align-items: center; padding: 20px 26px; border-radius: 999px; background: var(--ember); color: var(--ink); font-size: clamp(26px, 7vw, 34px); }
.menu-item.is-cta .arrow { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }
.menu-foot { position: relative; margin: 28px 0 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--ash); opacity: 0; transition: opacity .5s .3s; }
.menu.is-open .menu-foot { opacity: 1; }

/* ---------- The film: one sticky full-viewport stage, scrubbed by scroll ---------- */
.film { position: relative; background: var(--ink); }
.film-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.film-track { position: relative; }
/* the film plays stop by stop while the page is held at the top (js/site.js -> stepper) */
html.film-lock, html.film-lock body { overflow: hidden; overscroll-behavior: none; }
html.film-lock .film-stage { touch-action: none; }
.film-stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: var(--ink); isolation: isolate; }
.film-layers { position: absolute; inset: 0; }
.film-layer { position: absolute; inset: 0; overflow: hidden; visibility: hidden; contain: strict; }
.film-layer.is-on { visibility: visible; }
.film-layer.is-warm { visibility: visible; opacity: .003; }
.film-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.film-anchor { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
html.no-js .film-track { height: auto; }
html.no-js .film-stage { position: relative; height: auto; }
html.no-js .film-layers, html.no-js .scroll-hint, html.no-js .cap[data-cap="s03"], html.no-js .cap[data-cap="s04"], html.no-js .cap[data-cap="s05"], html.no-js .cap[data-cap="s06"] { display: none; }
html.no-js .film-text { position: static !important; width: auto; height: auto; margin: 0; clip: auto; white-space: normal; padding: 140px var(--gutter) 20px; max-width: var(--maxw); }
html.no-js .film-text h1 { font: 800 clamp(56px, 10vw, 150px)/.92 var(--f-display); letter-spacing: -0.03em; margin: 0 0 24px; }
html.no-js .film-text h2 { font: 800 clamp(30px, 4vw, 54px)/1 var(--f-display); letter-spacing: -0.03em; margin: 48px 0 12px; }
html.no-js .film-text p { color: var(--cream-2); max-width: 52ch; }
html.no-js .film-caps { position: relative; }
html.no-js .cap { position: relative; opacity: 1; visibility: visible; padding: 24px 0; }

/* website copy inside the film frames */
.film-caps { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cap { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(30px, 6.5vh, 66px); opacity: 0; visibility: hidden; color: var(--cream-2); }
.cap.is-on { visibility: visible; }
.cap.is-on a, .cap.is-on button { pointer-events: auto; }
.cap p { max-width: 36ch; margin: 0; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.45; text-shadow: 0 1px 18px rgba(11, 10, 9, .8); }
.cap .chip { display: inline-block; margin-top: 14px; padding: 6px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ash); background: rgba(11, 10, 9, .55); }
.cap-center { text-align: center; } .cap-center p { margin: 0 auto; }
.cap-hero { padding-bottom: clamp(64px, 9vh, 92px); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 28px; }
.hero-left { max-width: 46ch; }
.hero-sub { color: var(--cream-2); font-size: clamp(15px, 1.25vw, 18px); margin: 14px 0 0; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 28px; }
.svc-caps { list-style: none; margin: 0; padding: 0; position: relative; min-height: 4.6em; max-width: 40ch; }
.svc-caps li { position: absolute; left: 0; bottom: 0; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.45; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .45s var(--ivaraa-out); }
.svc-caps li.is-on { opacity: 1; transform: none; }
.svc-caps li b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cap.on-light, .cap.on-light p { color: #2a211a; text-shadow: none; }
@media (max-width: 560px) {
  .hero-ctas, .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-left .marker b { display: none; }
  .cap-hero { padding-bottom: 74px; }
  .cap p { max-width: none; }
}
html.no-js .svc-caps li, html.static-film .svc-caps li { position: static; opacity: 1; transform: none; margin-top: 16px; }
html.no-js .svc-caps li b, html.static-film .svc-caps li b { position: static; width: auto; height: auto; clip: auto; display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -0.03em; line-height: 1; color: var(--cream); margin-bottom: 4px; }
html.no-js .svc-caps, html.static-film .svc-caps { min-height: 0; max-width: 60ch; }

/* scroll hint: fades for good after the first scroll */
.scroll-hint { position: absolute; left: 50%; bottom: 18px; z-index: 4; display: flex; align-items: center; gap: 10px; transform: translateX(-50%); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); opacity: 0; transition: opacity .6s; pointer-events: none; white-space: nowrap; }
.scroll-hint.is-on { opacity: 1; }
.scroll-hint-pill { position: relative; width: 18px; height: 28px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); }
.scroll-hint-pill i { position: absolute; left: 50%; top: 5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--dot-fill); box-shadow: var(--dot-glow-sm); animation: hintDrop 1.7s var(--ivaraa-inout) infinite; }
@keyframes hintDrop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 60% { transform: translateY(12px); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* reduced motion / no GSAP: the film becomes a column of still frames with their copy */
html.static-film .film-track { height: auto; }
html.static-film .film-stage { position: relative; height: auto; overflow: visible; }
html.static-film .film-layers { position: relative; }
html.static-film .film-layer { position: relative; height: 100vh; height: 100svh; visibility: visible; }
html.static-film .film-caps, html.static-film .scroll-hint { display: none; }
html.static-film .film-layer .cap { opacity: 1; visibility: visible; z-index: 3; }
html.static-film .film-layer .cap a { pointer-events: auto; }
html.static-film .film-layer[data-scene="s02"] { height: auto; min-height: 100svh; }
html.static-film .film-layer[data-scene="s02"] .film-canvas { display: none; }
html.static-film .film-layer[data-scene="s02"] .cap { position: relative; padding: 140px 0 80px; color: var(--cream-2); }

/* ---------- Scroll progress: the dot travels a thin rail; ticks mark the scenes ---------- */
.rail { position: fixed; right: 26px; top: 50%; z-index: 80; height: 38vh; width: 1px; transform: translateY(-50%); transition: opacity .5s; pointer-events: none; }
.rail-track { position: absolute; inset: 0; background: rgba(244, 237, 228, .16); }
.rail-fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: rgba(244, 237, 228, .62); transform-origin: 50% 0; transform: scaleY(0); }
.rail-tick { position: absolute; left: -4px; width: 9px; height: 1px; background: rgba(244, 237, 228, .45); }
.rail-dot { position: absolute; left: -5px; top: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--dot-fill); box-shadow: var(--dot-glow-sm); will-change: transform; }
.rail-label { position: absolute; right: 18px; top: -7px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ash); white-space: nowrap; will-change: transform; opacity: 0; transition: color .3s, opacity .5s; }
.rail.is-moving .rail-label { opacity: 1; transition: color .3s, opacity .2s; }
html.past-film .rail, html.is-loading .rail, html.static-film .rail { opacity: 0; }
@media (max-width: 760px) {
  .rail { left: 0; right: 0; top: 0; width: auto; height: 2px; transform: none; z-index: 75; }
  .rail-fill { transform-origin: 0 50%; transform: scaleX(0); }
  .rail-tick { left: auto; top: 0; width: 1px; height: 4px; }
  .rail-dot { top: -4px; left: -4px; width: 9px; height: 9px; }
  .rail-label { display: none; }
}

/* ---------- Cursor: the dot. It melts into what it touches instead of growing ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor-dot { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--dot-fill); box-shadow: 0 0 30px 4px rgba(255, 90, 31, .45);
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .2s; }
.cursor.is-melt .cursor-dot, .cursor.is-play .cursor-dot, .cursor.is-text .cursor-dot { transform: scale(0); opacity: 0; transition: transform .2s cubic-bezier(.55, 0, .75, .25), opacity .2s .05s; }
.cursor.is-down .cursor-dot { transform: scale(.72); }
.cursor-play { position: absolute; left: -7px; top: -17px; height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px 0 14px; border-radius: 999px;
  background: var(--ember); color: var(--ink); font: 700 13px/1 var(--f-body); letter-spacing: -0.01em; white-space: nowrap;
  clip-path: circle(0px at 7px 17px); transition: clip-path .32s cubic-bezier(.55, 0, .75, .25); }
.cursor.is-play .cursor-play { clip-path: circle(110px at 7px 17px); transition: clip-path .45s var(--ivaraa-out); }
.cursor-play svg { width: 9px; height: 11px; fill: currentColor; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor [data-work] { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: auto; }

/* ---------- Liquid fill: the dot dissolves into a control and floods it from the entry point ---------- */
[data-fx] { position: relative; overflow: hidden; isolation: isolate; }
.fx-fill {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: inherit; padding: inherit; border-radius: inherit;
  background: var(--fx-bg, var(--ember)); color: var(--fx-fg, var(--ink)); white-space: nowrap; pointer-events: none;
  clip-path: circle(var(--fr, 0px) at var(--fx, 50%) var(--fy, 50%));
}
.fx-fill .nav-count { background: var(--ink); color: var(--ember); }
.fx-fill .arrow { stroke: currentColor; }
.fx-fill .reel-link-dot { background: var(--ink); box-shadow: none; }
html:not(.js) [data-fx]:hover, html:not(.js) [data-fx]:focus-visible { background: var(--ember); color: var(--ink); }
[data-fx]:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.btn-primary { --fx-bg: var(--ember); --fx-fg: var(--ink); }

/* ---------- Section markers: the dot lands on the current section ---------- */
.marker.is-current::before { animation: markerLand .7s var(--ivaraa-out); }
@keyframes markerLand { 0% { transform: translateY(-14px) scale(.6); } 55% { transform: translateY(0) scaleX(1.3) scaleY(.75); } 100% { transform: none; } }

/* In-copy internal links + footer navigation */
.in-link { color: var(--cream); text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s; }
.in-link:hover, .in-link:focus-visible { color: var(--ember); }
.footer-nav { order: 5; grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-nav a { color: var(--ash); padding: 6px 2px; transition: color .2s; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--cream); }

/* Hero hint: arrow keys on desktop, swipe on touch */
.hint-touch { display: none; }
.scroll-hint kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; margin: 0 1px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); font: inherit; color: var(--cream-2); }
@media (hover: none), (pointer: coarse) { .hint-keys { display: none; } .hint-touch { display: inline; } }

/* Header tagline beside the logo: "with double aa", the aa in the logo's ember gradient */
.nav-tag { margin: 6px auto 0 12px; padding-left: 12px; border-left: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 10.5px; line-height: 1; letter-spacing: .1em; text-transform: lowercase; color: var(--ash); white-space: nowrap; transition: color .3s, border-color .3s; }
.nav-tag b { font-weight: 700; background: var(--ember-grad); -webkit-background-clip: text; background-clip: text; color: transparent; transition: background .3s; }
html.nav-ember .nav-tag, html.nav-cream .nav-tag { color: rgba(11, 10, 9, .7); border-left-color: rgba(11, 10, 9, .3); }
html.nav-ember .nav-tag b, html.nav-cream .nav-tag b { background: none; color: var(--ink); }
html.menu-open .nav-tag { color: var(--ash); border-left-color: var(--line-2); }
html.menu-open .nav-tag b { background: var(--ember-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 560px) { .nav-tag { display: none; } .nav-logo { margin-right: auto; } }

/* Contact: more ways to connect */
.aside-find { display: block; margin-top: 30px; }
.aside-links { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.aside-links a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); color: var(--cream); font-weight: 700; font-size: 15px; transition: box-shadow .2s, color .2s; }
.aside-links a span { color: var(--ash); font-weight: 400; font-family: var(--f-mono); font-size: 12.5px; overflow-wrap: anywhere; text-align: right; }
.aside-links a:hover, .aside-links a:focus-visible { box-shadow: inset 0 0 0 1px var(--ember); color: var(--ember); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq-item { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: var(--coal); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: clamp(16px, 1.6vw, 19px); color: var(--cream); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--ember); font-size: 22px; line-height: 1; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--ember); outline-offset: -2px; border-radius: 16px; }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--cream-2); max-width: 62ch; }
