/* =====================================================================
   Samurai Labs — Ink & Vermilion design system
   Register: brand. Strategy: committed dark. Single accent (vermilion).
   Tokens mirror DESIGN.md. Hex is source of truth; OKLCH noted in comments.
   ===================================================================== */

:root {
  /* Canvas & surfaces */
  --bg:          #0B0D11;   /* oklch(.16 .006 265) sumi ink */
  --bg-elevated: #10131A;   /* alt bands */
  --surface:     #14171D;   /* panels */
  --surface-2:   #1E222A;   /* hover / logo tiles */
  --hairline:    #262B34;   /* 1px borders */
  --line:        #3A414D;   /* stronger borders / neutral frames */

  /* Ink */
  --ink:         #EAECEF;
  --ink-strong:  #F7F8FA;
  --ink-muted:   #A8ADB7;
  --ink-faint:   #868C97;   /* small labels/captions; >=4.5:1 on bg and surfaces */

  /* Accent — vermilion / hanko red (tuned so white button text hits >=4.5:1) */
  --accent:       #DA3328;
  --accent-hover: #C22B21;
  --accent-press: #A8261D;
  --accent-text:  #F5603F;   /* inline accent text/links on --bg (>=4.5:1) */
  --on-accent:    #FFFFFF;
  --accent-wash:  rgba(218, 51, 40, 0.14);
  --accent-glow:  rgba(218, 51, 40, 0.35);

  /* Typography */
  --font-display: "Clash Display", "Switzer", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Switzer", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-display-xl: clamp(2.75rem, 5.5vw, 5.25rem);
  --fs-display-l:  clamp(2rem, 4vw, 3.25rem);
  --fs-h3:         clamp(1.35rem, 2.2vw, 1.75rem);
  --fs-body-lg:    1.125rem;
  --fs-body:       1rem;
  --fs-small:      0.875rem;
  --fs-label:      0.75rem;

  /* Spacing (4px base) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;
  --section-pad: clamp(4rem, 8vw, 8rem);
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Radius */
  --r-pill: 999px;
  --r-sm: 6px;
  --r-xs: 3px;

  /* Elevation */
  --shadow-panel: 0 1px 0 rgba(255,255,255,.03) inset, 0 24px 48px -28px rgba(0,0,0,.8);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-hover: 200ms;
  --dur-reveal: 400ms;
  --dur-hero: 700ms;

  /* z-index scale */
  --z-raised: 10;
  --z-sticky: 100;
  --z-nav: 200;
  --z-backdrop: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-loader: 900;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.samurai {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.samurai img { max-width: 100%; display: block; }
.samurai a { color: inherit; text-decoration: none; }
.samurai ::selection { background: var(--accent); color: var(--on-accent); }
.samurai a:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 3px; }

/* ---------- Typography ---------- */
.samurai h1, .samurai h2, .samurai h3, .samurai h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink-strong);
  text-wrap: balance;
  margin: 0;
}
.samurai p { margin: 0; text-wrap: pretty; }
.display-xl { font-size: var(--fs-display-xl); line-height: 1.02; }
.display-l  { font-size: var(--fs-display-l); line-height: 1.06; }
.h3         { font-size: var(--fs-h3); line-height: 1.15; }
.lead { font-size: var(--fs-body-lg); line-height: 1.65; color: var(--ink-muted); max-width: 60ch; }
.prose { max-width: 68ch; color: var(--ink-muted); }
.mono-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Highlight marker (drawn on scroll; visible by default) */
.mark {
  background: linear-gradient(var(--accent), var(--accent)) no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  color: var(--ink-strong);
  padding: 0 0.14em;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
/* reveal-marker is visible by default; the animate pass sets 0% at runtime then draws to 100% */
.mark.reveal-marker { background-size: 100% 100%; }
.mark.reveal-marker.is-drawing { transition: background-size 650ms var(--ease-out-expo); }
.text-accent { color: var(--accent-text); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1360px; }
.container-narrow { max-width: 860px; }
.section { padding-block: var(--section-pad); position: relative; }
.section--elevated { background: var(--bg-elevated); }
.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-body);
  padding: 0.85em 1.4em; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--dur-hover) var(--ease-out-quart),
              border-color var(--dur-hover) var(--ease-out-quart),
              transform var(--dur-hover) var(--ease-out-quart),
              color var(--dur-hover) var(--ease-out-quart);
  will-change: transform;
}
.btn:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-primary:active { background: var(--accent-press); transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink-strong); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-muted); transform: translateY(-2px); }
.btn .arrow { transition: transform var(--dur-hover) var(--ease-out-quart); }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* ---------- Build scene + scattered clip-art decorations ---------- */
.hero-illus { margin-bottom: clamp(2rem, 5vw, 3.5rem); border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--hairline); background: var(--bg); line-height: 0; }
.hero-illus img { width: 100%; height: auto; display: block; }
.clip-deco { position: absolute; z-index: 0; pointer-events: none; opacity: 0.5;
  width: clamp(78px, 8vw, 120px); height: auto; filter: drop-shadow(0 0 1px rgba(0,0,0,.4)); }
.clip-deco img { width: 100%; height: auto; }
.section > .container { position: relative; z-index: 1; }
@media (max-width: 1320px) { .clip-deco { display: none; } }

/* ---------- Framed line-art box (the pushowl-frame move, in our palette) ---------- */
.framed {
  position: relative; display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: var(--r-xs);
  padding: clamp(1rem, 3vw, 2rem); color: var(--ink-muted);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(225,54,44,.05), transparent 60%);
}
.framed.framed--accent { border-color: var(--accent); }
.framed .line-art { width: 100%; height: auto; color: var(--ink-muted); }
.framed .line-art path, .framed .line-art circle { vector-effect: non-scaling-stroke; }

/* ---------- Logo marquee ---------- */
.marquee { --gap: clamp(2.5rem, 6vw, 5rem); position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: var(--gap); width: max-content; align-items: center;
  animation: marquee-scroll var(--marquee-dur, 44s) linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; height: 50px; }
.marquee__item img {
  max-height: 100%; width: auto; max-width: 190px; object-fit: contain;
  opacity: 0.62; transition: opacity var(--dur-hover) var(--ease-out-quart);
}
.marquee__item:hover img { opacity: 1; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* ---------- Work cases (asymmetric rows, not identical grid) ---------- */
.work-case {
  display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--hairline);
}
.work-case:last-child { border-bottom: 1px solid var(--hairline); }
@media (min-width: 860px) {
  .work-case { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .work-case:nth-child(even) .work-case__media { order: 2; }
}
.work-case__media {
  position: relative; border: 1px solid var(--hairline); border-radius: var(--r-sm);
  background: var(--surface); aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center;
}
.work-case__logo { max-height: 44px; max-width: 62%; opacity: .95; }
.work-case__shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.work-case__name { font-family: var(--font-display); font-size: var(--fs-h3); }
.work-case__desc { color: var(--ink-muted); margin-top: var(--sp-3); max-width: 52ch; }
.metric-row { display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 3vw, 2.25rem); margin-top: var(--sp-5); }
.metric { display: flex; flex-direction: column; gap: 2px; }
.metric__value { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--ink-strong); }
.metric__value .unit { color: var(--accent-text); }
.metric__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Sub-page hero + case-study detail ---------- */
.subhero { padding-top: calc(72px + clamp(3rem, 7vw, 6rem)); padding-bottom: clamp(2rem, 5vw, 4rem); }
.subhero .display-xl { max-width: 18ch; }
.case-points { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.case-point h4 { font-family: var(--font-mono); font-size: var(--fs-label); text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent-text); margin: 0 0 4px; }
.case-point p { color: var(--ink-muted); max-width: 60ch; margin: 0; }
.case-tag { display: inline-block; font-family: var(--font-mono); font-size: var(--fs-label);
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint);
  border: 1px solid var(--hairline); border-radius: var(--r-pill); padding: 4px 12px; margin-bottom: var(--sp-3); }
.saas-panel { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: clamp(1.5rem, 4vw, 2.5rem); }
.saas-panel img { max-height: 60px; max-width: 70%; width: auto; }

/* ---------- Product rows ---------- */
.product-list { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-sm); overflow: hidden; }
.product { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1rem,3vw,2rem); align-items: center;
  padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--bg); transition: background var(--dur-hover) var(--ease-out-quart); }
.product:hover { background: var(--surface); }
.product__logo { height: 30px; width: auto; max-width: 150px; object-fit: contain; }
.product__desc { color: var(--ink-muted); }
.product__desc b { color: var(--ink); font-weight: 600; }
.product__link { color: var(--ink-faint); font-family: var(--font-mono); font-size: var(--fs-small); white-space: nowrap; }
.product:hover .product__link { color: var(--accent-text); }
@media (max-width: 640px) { .product { grid-template-columns: 1fr; gap: var(--sp-3); } .product__link { justify-self: start; } }

/* ---------- Capability list (editorial, not icon-card grid) ---------- */
.cap-list { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.cap { display: grid; grid-template-columns: 3ch 1fr; gap: clamp(1rem,4vw,3rem); align-items: baseline;
  padding-block: clamp(1.5rem,3vw,2.25rem); border-bottom: 1px solid var(--hairline); }
.cap__idx { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--accent-text); }
.cap__body { display: grid; gap: var(--sp-2); }
@media (min-width: 820px) { .cap__body { grid-template-columns: 22ch 1fr; gap: clamp(1.5rem,4vw,3rem); } }
.cap__title { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--ink-strong); }
.cap__text { color: var(--ink-muted); max-width: 56ch; }

/* ---------- Contact "PING US" ---------- */
.ping { text-align: center; }
.ping__eyebrow { font-family: var(--font-body); font-size: clamp(1.25rem,3vw,2rem); color: var(--ink-muted); font-weight: 500; }
.ping__word { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.04em;
  font-size: clamp(3.5rem, 16vw, 12rem); line-height: 0.9; color: var(--ink-strong);
  display: flex; justify-content: center; flex-wrap: wrap; }
.ping__char { display: inline-block; }
.ping__paren { color: var(--ink-faint); font-weight: 400; }
.ping .ping__start {
  display: inline-flex; align-items: center; gap: .7em; margin-top: clamp(1.5rem,4vw,2.5rem);
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 1.15rem;
  padding: 1em 1.8em; border-radius: var(--r-pill);
  box-shadow: 0 14px 40px -14px var(--accent-glow);
  transition: background var(--dur-hover) var(--ease-out-quart), transform var(--dur-hover) var(--ease-out-quart);
}
.ping .ping__start:hover { background: var(--accent-hover); transform: translateY(-2px); }
.ping .ping__start .mono-label { color: var(--on-accent) !important; }
.ping__start .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--on-accent);
  box-shadow: 0 0 0 5px rgba(255,255,255,.22); }
.ping__waves { position: absolute; inset: 0; pointer-events: none; opacity: .5; }

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  display: grid; place-items: center; background: var(--bg);
}
#loader .loader__logo { width: min(260px, 60vw); height: auto; color: var(--ink-strong); }
#loader.is-done { pointer-events: none; }
body.samurai.is-loading { overflow: hidden; }
/* the draw + wipe are orchestrated in JS; if JS/reduced-motion, loader is removed instantly */

/* ---------- Reveal (base visible; JS sets from-state) ---------- */
[data-reveal] { will-change: transform, opacity; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--hairline); padding-block: clamp(3rem,6vw,5rem) 2rem; }
.footer-grid { display: grid; gap: clamp(2rem,5vw,3rem); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-col h4 { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-small); color: var(--ink); margin-bottom: var(--sp-4); letter-spacing: 0.02em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.footer-col a { color: var(--ink-muted); font-size: var(--fs-small); transition: color var(--dur-hover); }
.footer-col a:hover { color: var(--ink-strong); }
.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--hairline); border-radius: var(--r-pill); color: var(--ink-muted); transition: all var(--dur-hover) var(--ease-out-quart); }
.footer-social a:hover { color: var(--ink-strong); border-color: var(--line); transform: translateY(-2px); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: center;
  margin-top: clamp(2.5rem,5vw,4rem); padding-top: var(--sp-5); border-top: 1px solid var(--hairline);
  color: var(--ink-faint); font-size: var(--fs-small); }

/* ---------- Sticky CTA ---------- */
.sticky-cta { position: fixed; right: clamp(1rem,3vw,1.5rem); bottom: clamp(1rem,3vw,1.5rem); z-index: var(--z-sticky); }
.sticky-cta .btn { box-shadow: 0 10px 30px -10px var(--accent-glow); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden;
  padding-top: calc(72px + clamp(2rem, 6vw, 4.5rem)); padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.12fr 0.88fr; } }
.hero__copy > * + * { margin-top: clamp(1rem, 2.4vw, 1.5rem); }
.hero__title { margin-top: 0.75rem; max-width: 16ch; }
.hero__lead { max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art { display: flex; gap: clamp(0.9rem, 2vw, 1.5rem); justify-content: center; align-items: stretch; }
.hero__frame { flex: 1 1 0; min-height: clamp(230px, 34vw, 350px); }
.hero__frame--2 { margin-top: clamp(2rem, 6vw, 4rem); }
.line-art-img { width: auto; height: clamp(150px, 22vw, 240px); opacity: 0.92; }
@media (max-width: 560px) { .hero__frame--2 { display: none; } }

/* Prompt bar */
.prompt-bar { margin-top: clamp(1.5rem, 4vw, 2.25rem); border: 1px solid var(--hairline);
  border-radius: var(--r-sm); background: var(--surface); padding: clamp(1rem, 2.5vw, 1.35rem); }
.prompt-bar__hint { display: block; margin-bottom: 0.6rem; }
.prompt-bar__row { display: flex; align-items: center; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }
.prompt-bar__text { font-family: var(--font-mono); font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--ink); display: flex; align-items: center; min-height: 1.7em; flex: 1 1 58%; }
.prompt-bar__cursor { display: inline-block; width: 2px; height: 1.15em; background: var(--accent);
  margin-left: 4px; animation: caret-blink 1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.prompt-bar__go { white-space: nowrap; }
@media (max-width: 560px) { .prompt-bar__go { width: 100%; justify-content: center; } }

/* Marquee section label */
.marquee-section .mono-label { color: var(--ink-faint); }

/* Work case extras */
.work-case__badge { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--ink-muted); }
.work-case__media .work-case__badge { padding: 0.5em 0.9em; border: 1px solid var(--hairline); border-radius: var(--r-pill); }
.metric-note { margin-top: clamp(1.5rem, 3vw, 2rem); color: var(--ink-faint); }

/* Why section */
.why-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .why-grid { grid-template-columns: 1.3fr 0.7fr; } }
.why-copy > * + * { margin-top: clamp(1rem, 2.4vw, 1.5rem); }
.why-points { list-style: none; padding: 0; margin: clamp(0.5rem, 2vw, 1rem) 0 0; display: grid; gap: clamp(0.85rem, 2vw, 1.15rem); }
.why-points li { color: var(--ink-muted); padding-left: 1.6rem; position: relative; max-width: 58ch; }
.why-points li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px;
  background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
.why-points b { color: var(--ink); font-weight: 600; }
.why-crest .framed { aspect-ratio: 1; }
.why-crest .line-art { color: var(--ink-muted); width: 66%; height: auto; }

/* Ping / contact */
.ping-section { position: relative; overflow: hidden; padding-block: clamp(5rem, 12vw, 9rem); }
.ping .container { display: grid; justify-items: center; text-align: center; }
.ping__eyebrow { margin-bottom: clamp(0.5rem, 2vw, 1rem); }
.ping__chars { display: inline-flex; }
.ping__contactline { margin-top: clamp(1rem, 3vw, 1.5rem); color: var(--ink-muted); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--hairline); margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  text-align: left; background: none; border: none; cursor: pointer; color: var(--ink-strong);
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-body-lg);
  padding: clamp(1.1rem, 2.5vw, 1.45rem) 0; transition: color var(--dur-hover); }
.faq-q:hover { color: var(--accent-text); }
.faq-q:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.faq-mark { font-family: var(--font-mono); font-size: 1.4rem; line-height: 1; color: var(--accent-text);
  transition: transform 0.3s var(--ease-out-quart); flex: 0 0 auto; }
.faq-item.open .faq-mark { transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.35s var(--ease-out-quart); }
.faq-a p { color: var(--ink-muted); padding-bottom: clamp(1.1rem, 2.5vw, 1.45rem); max-width: 66ch; }

/* Loader: logo draws, its spark expands to fill and dissolves to reveal the page.
   GSAP orchestrates; CSS keeps a no-JS failsafe so the loader never traps the page. */
#loader { overflow: hidden; }
.loader__stage { display: grid; place-items: center; gap: 1.1rem; position: relative; z-index: 2; }
.loader__word { height: auto; filter: brightness(0) invert(1); opacity: 0; }
.loader__glow { position: absolute; top: 50%; left: 50%; width: 46vmax; height: 46vmax;
  transform: translate(-50%, -50%) scale(0.2); border-radius: 50%; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 62%); }
.loader__spark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0);
  opacity: 0; z-index: 3; line-height: 0; pointer-events: none;
  filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.55)); }
.ldr path, .ldr circle { stroke-dasharray: 260; stroke-dashoffset: 260; animation: ldr-draw 1s var(--ease-out-expo) forwards; }
@keyframes ldr-draw { to { stroke-dashoffset: 0; } }
#loader { animation: loader-failsafe 0s linear 3.6s forwards; }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
#loader.is-done { opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s; }
@media (prefers-reduced-motion: reduce) {
  .ldr path, .ldr circle { stroke-dashoffset: 0; animation: none; }
  .loader__word { opacity: 1; animation: none; }
  .loader__spark { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: none; }
}

/* ---------- Nav (dark override, scoped so other pages are untouched) ---------- */
body.samurai { margin-top: 0; --nav-text: var(--ink-muted); --nav-border: var(--hairline); }
body.samurai .samurai-nav {
  background: transparent; border-bottom: 1px solid transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none; height: 72px;
  transition: background .3s var(--ease-out-quart), border-color .3s var(--ease-out-quart);
}
body.samurai .samurai-nav.scrolled {
  background: rgba(11, 13, 17, 0.72);
  backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid var(--hairline); box-shadow: none;
}
body.samurai .samurai-nav__logo-img { height: 30px; filter: brightness(0) invert(1); }
body.samurai .samurai-nav__link {
  color: var(--ink-muted); font-family: var(--font-body); font-weight: 500;
  border-radius: var(--r-pill);
}
body.samurai .samurai-nav__link:hover { color: var(--ink-strong); background: rgba(255,255,255,.05); }
body.samurai .samurai-nav__link.active { color: var(--ink-strong); background: transparent; }
body.samurai .samurai-nav__link.active::after { background: var(--accent); left: 1rem; right: 1rem; }
body.samurai .samurai-nav__cta-btn {
  background: var(--accent); color: var(--on-accent); border-radius: var(--r-pill);
  font-family: var(--font-body); box-shadow: none;
}
body.samurai .samurai-nav__cta-btn:hover { background: var(--accent-hover); box-shadow: 0 8px 24px -12px var(--accent-glow); }
body.samurai .samurai-nav__mobile-line { background: var(--ink); }
body.samurai .samurai-nav__mobile-btn:hover { background: rgba(255,255,255,.05); }
body.samurai .samurai-nav__mobile-menu { background: rgba(16,19,26,.98); border-left: 1px solid var(--hairline); }
body.samurai .samurai-nav__mobile-title,
body.samurai .samurai-nav__close-icon { color: var(--ink-strong); }
body.samurai .samurai-nav__close-icon { font-family: var(--font-body); }
body.samurai .samurai-nav__mobile-link { color: var(--ink); }
body.samurai .samurai-nav__mobile-link:hover,
body.samurai .samurai-nav__mobile-link.active { color: var(--ink-strong); background: rgba(255,255,255,.05); }
body.samurai .samurai-nav__mobile-header,
body.samurai .samurai-nav__mobile-cta { border-color: var(--hairline); }
body.samurai .samurai-nav__mobile-cta-btn { background: var(--accent); color: var(--on-accent); }
body.samurai .samurai-nav__mobile-close:hover,
body.samurai .samurai-nav__mobile-btn:hover { background: rgba(255,255,255,.06); }

/* ---------- Forms ---------- */
.samurai input, .samurai textarea, .samurai select {
  width: 100%; background: var(--surface); border: 1px solid var(--hairline); color: var(--ink);
  border-radius: var(--r-sm); padding: 0.85em 1em; font: inherit; font-size: var(--fs-body);
  transition: border-color var(--dur-hover) var(--ease-out-quart), box-shadow var(--dur-hover) var(--ease-out-quart);
}
.samurai input::placeholder, .samurai textarea::placeholder { color: var(--ink-faint); }
.samurai input:focus, .samurai textarea:focus, .samurai select:focus {
  outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-wash);
}
.samurai textarea { min-height: 140px; resize: vertical; }
.field { display: grid; gap: 6px; }
.field label { color: var(--ink-muted); font-size: var(--fs-small); }
.form-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sm);
  padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: var(--sp-4); }

/* ---------- Team / about ---------- */
.team-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.team-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sm); overflow: hidden; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(0.25); }
.team-card__body { padding: clamp(1rem, 3vw, 1.5rem); }
.team-card__role { color: var(--accent-text); font-family: var(--font-mono); font-size: var(--fs-label);
  text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Simple link list (sitemap) ---------- */
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.link-list a { color: var(--ink-muted); transition: color var(--dur-hover); }
.link-list a:hover { color: var(--accent-text); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .mark.reveal-marker { background-size: 100% 100% !important; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
