/* =============================================================
   DUNKELKAMMER — premium static site
   Style: Aurora Glow — dark/cream alternating sections, soft blurred
   gradient orbs, thin geometric type, single lime accent, corner-fold cards.
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mx { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --my { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg:        #0c0c0d;   /* carbon black */
  --bg-2:      #17181a;   /* carbon, one step up */
  --bg-3:      #1f2123;   /* card on dark */
  --cream:     #edf0f2;   /* Casper-tinted near-white — light section bg */
  --cream-2:   #dfe4e7;   /* card on light sections */

  --ink-dark:        #f6f7f8;              /* white text on dark bg */
  --ink-dark-mute:   rgba(246,247,248,.64);
  --ink-dark-dim:    rgba(246,247,248,.42);
  --line-dark:       rgba(246,247,248,.14);
  --line-dark-soft:  rgba(246,247,248,.07);

  --ink-cream:       #141517;              /* carbon-black text on light bg */
  --ink-cream-mute:  rgba(20,21,23,.64);
  --ink-cream-dim:   rgba(20,21,23,.42);
  --line-cream:      rgba(20,21,23,.14);
  --line-cream-soft: rgba(20,21,23,.07);

  /* Active theme — redefined inside .section-light */
  --ink:       var(--ink-dark);
  --ink-mute:  var(--ink-dark-mute);
  --ink-dim:   var(--ink-dark-dim);
  --line:      var(--line-dark);
  --line-soft: var(--line-dark-soft);

  --accent:    #ffffff;   /* pure white — brand accent, never changes */
  --accent-ink: #131415;  /* carbon-black text/icon colour on top of white */
  --accent-visible: var(--accent); /* focus/interaction rings: white on dark, dark on light (see .section-light) */

  --orb-1: #838d93;  /* dove grey */
  --orb-2: #aebfc8;  /* Casper blue-grey */
  --orb-3: #565e63;  /* deep cool charcoal */
  --orb-4: #1a1c1e;  /* carbon base */

  --display: "Urbanist", "Inter", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 84px;
  --container: 1360px;
}

/* Light-section theming: redeclare the semantic tokens locally.
   --accent stays pure white everywhere (brand requirement), but focus/interaction
   rings need a dark variant on light backgrounds or they vanish — --accent-visible
   supplies that per-theme contrast colour without touching the white brand accent. */
.section-light {
  background: var(--cream);
  --ink: var(--ink-cream);
  --ink-mute: var(--ink-cream-mute);
  --ink-dim: var(--ink-cream-dim);
  --line: var(--line-cream);
  --line-soft: var(--line-cream-soft);
  --accent-visible: var(--ink-cream);
  color: var(--ink);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  text-wrap: balance; line-height: 1.04; letter-spacing: -0.01em;
  font-family: var(--display); font-weight: 300;
}
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.2rem; background: var(--accent); color: var(--accent-ink);
  border-radius: 4px; font-weight: 600; font-size: .9rem;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.4rem; }
@media (min-width: 720px) { .container { padding-inline: 2.4rem; } }
@media (min-width: 1280px) { .container { padding-inline: 3.6rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.kicker {
  font-size: .95rem; color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: .6em;
}
.kicker::before { content: "—"; color: var(--ink-dim); }

/* =============================================================
   4. Typography
   ============================================================= */
.h-display {
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  font-weight: 300;
  line-height: 1.02;
  text-wrap: balance;
}
.h-xl { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 300; line-height: 1.05; }
.h-lg { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 300; }
.h-md { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 400; }

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 62ch;
  font-weight: 300;
}

em { font-style: normal; color: inherit; font-family: inherit; font-weight: 500; }

.em-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}

.fold-mark {
  display: inline-block; width: .55em; height: .55em; margin-left: .18em;
  background:
    linear-gradient(135deg, transparent 50%, var(--ink) 50%);
  vertical-align: super;
  opacity: .85;
}

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.6rem;
  font-family: var(--display); font-size: .96rem; font-weight: 400;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), border-color .35s, background .35s, color .35s;
}
.btn:hover { transform: translateY(-3px); border-color: var(--accent-visible); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-primary { background: #ffffff; border-color: #ffffff; color: #111214; }
.btn-primary:hover, .btn-primary:focus-visible, .btn-primary:active {
  background: #ffffff; border-color: #ffffff; color: #111214;
  box-shadow: 0 20px 40px -14px rgba(0,0,0,.45);
}
.btn-ghost { color: var(--ink); }
.btn-pill {
  display: inline-flex; align-items: center; gap: .8rem;
  padding: .5rem .5rem .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
}
.btn-pill .play-dot {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; flex: none; transition: background .4s, color .4s, transform .5s var(--ease-soft);
}
.btn-pill .play-dot svg { width: 14px; height: 14px; margin-left: 2px; }
.btn-pill:hover .play-dot { background: var(--accent); color: var(--accent-ink); transform: scale(1.08); }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner { display: inline-flex; align-items: center; justify-content: center; gap: inherit; will-change: transform; transition: transform .8s var(--ease-soft); }

/* Nav */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
  color: var(--ink-dark);
}
.nav.is-scrolled {
  background: rgba(12, 12, 13, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand { font-family: var(--display); font-weight: 500; font-size: 1.25rem; letter-spacing: -.01em; display: flex; align-items: center; gap: .5rem; }
.nav-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px 2px rgba(255,255,255,.7); }
.nav-links { display: none; align-items: center; gap: 1.9rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link { position: relative; padding: .3rem 0; font-size: .95rem; color: var(--ink-dark-mute); transition: color .3s; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-link:hover { color: var(--ink-dark); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--ink-dark); }
.nav-cta { display: none; }
@media (min-width: 960px) { .nav-cta { display: inline-flex; } }

/* Nav dropdown (desktop) */
.nav-item-dropdown { position: relative; display: flex; align-items: center; gap: .2rem; }
.nav-item-caret {
  width: 22px; height: 22px; display: grid; place-items: center; flex: none;
  color: var(--ink-dark-dim); transition: transform .35s var(--ease-soft), color .3s;
  border-radius: 50%;
}
.nav-item-caret:hover, .nav-item-caret:focus-visible { color: var(--ink-dark); }
.nav-item-caret svg { width: 9px; height: 9px; }
.nav-item-dropdown[data-open="true"] .nav-item-caret { transform: rotate(180deg); color: var(--accent); }
.nav-dropdown-panel {
  position: absolute; top: calc(100% + 16px); left: 50%; z-index: 110;
  transform: translateX(-50%) translateY(-8px);
  min-width: 232px; padding: .5rem; border-radius: 12px;
  background: rgba(12, 12, 13, .94); border: 1px solid var(--line-dark);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 70px -18px rgba(0,0,0,.65);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-out);
}
.nav-item-dropdown[data-open="true"] .nav-dropdown-panel { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown-panel a {
  display: block; padding: .7rem .9rem; border-radius: 8px;
  font-size: .92rem; color: var(--ink-dark-mute); white-space: nowrap;
  transition: background .25s, color .25s;
}
.nav-dropdown-panel a:hover, .nav-dropdown-panel a:focus-visible { background: rgba(255,255,255,.08); color: var(--ink-dark); }

.nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; gap: 5px;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink-dark); transition: transform .35s var(--ease-soft), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg); color: var(--ink-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
  padding: calc(var(--nav-h) + 1.5rem) 1.4rem 2.5rem;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile > a { font-family: var(--display); font-size: clamp(1.4rem, 6vw, 2.1rem); font-weight: 300; }
.nav-mobile .nav-mobile-meta { margin-top: .8rem; font-size: .82rem; color: var(--ink-dark-dim); text-align: center; }

/* Mobile nav accordion groups */
.nav-mobile-group { display: flex; flex-direction: column; align-items: center; width: 100%; }
.nav-mobile-group-head { display: flex; align-items: center; gap: .6rem; }
.nav-mobile-group-head a { font-family: var(--display); font-size: clamp(1.4rem, 6vw, 2.1rem); font-weight: 300; }
.nav-mobile-caret {
  width: 30px; height: 30px; display: grid; place-items: center; flex: none;
  color: var(--ink-dark-dim); transition: transform .35s var(--ease-soft), color .3s;
}
.nav-mobile-caret svg { width: 13px; height: 13px; }
.nav-mobile-group[data-open="true"] .nav-mobile-caret { transform: rotate(180deg); color: var(--accent); }
.nav-mobile-sub {
  max-height: 0; overflow: hidden; width: 100%;
  transition: max-height .5s var(--ease-soft), margin-top .5s var(--ease-soft);
}
.nav-mobile-group[data-open="true"] .nav-mobile-sub { max-height: 420px; margin-top: .7rem; }
.nav-mobile-sub-inner { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding-bottom: .3rem; }
.nav-mobile-sub-inner a {
  font-family: var(--sans); font-size: 1.05rem; font-weight: 400; color: var(--ink-dark-mute);
  padding: .5rem 0; transition: color .3s;
}
.nav-mobile-sub-inner a:hover, .nav-mobile-sub-inner a:focus-visible { color: var(--accent); }

/* Cursor */
.cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; display: none; opacity: 0; transition: opacity .25s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px; background: #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.28); }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px; border-radius: 50%;
  border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.22), inset 0 0 0 1px rgba(0,0,0,.22);
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out);
}
.cursor.is-interactive .cursor-ring { width: 56px; height: 56px; margin: -28px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* Cards */
.card { position: relative; }
.has-tilt { --rx: 0deg; --ry: 0deg; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .55s var(--ease-soft); }
.has-tilt:hover { transition-duration: .15s; }

.has-halo { position: relative; isolation: isolate; }
.has-halo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 65%);
  opacity: 0; transition: opacity .35s;
}
.has-halo:hover::before { opacity: 1; }

/* Corner fold */
.corner-fold {
  position: absolute; top: 0; right: 0; width: 26px; height: 26px;
  background: linear-gradient(135deg, transparent 50%, var(--cream) 50%);
}
.corner-fold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,.18) 50%);
}

/* Isometric icon */
.iso-icon { width: 52px; height: 52px; color: var(--ink); opacity: .82; }
.iso-icon svg { width: 100%; height: 100%; }

/* Form fields */
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 1.5rem 1rem .6rem; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font-family: var(--sans); font-size: 1rem;
  border-radius: 8px; transition: border-color .3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent-visible); outline: none; }
.field label {
  position: absolute; left: 1rem; top: 1.5rem;
  pointer-events: none; transition: all .25s var(--ease-out); color: var(--ink-dim);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: .5rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute);
}

.cta-form { transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft); }
.cta-form.is-sent { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.cta-submit { position: relative; }
.cta-form-spinner, .cta-form-check { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after { content: ""; width: 18px; height: 18px; border: 1.5px solid rgba(19,20,21,.25); border-top-color: var(--accent-ink); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-success {
  margin-top: 1.4rem; padding: 1.2rem 1.4rem; border: 1px solid var(--ink-dim);
  border-radius: 10px; opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity .6s var(--ease-out), max-height .6s var(--ease-soft), padding .6s var(--ease-soft), margin .6s var(--ease-soft);
}
.cta-success.is-visible { opacity: 1; max-height: 200px; }

/* =============================================================
   6. Sections
   ============================================================= */

/* Orb (aurora glow decoration) */
.orb-field { position: absolute; inset: 0; z-index: -4; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .8;
  background:
    radial-gradient(circle at 35% 30%, var(--orb-1), transparent 60%),
    radial-gradient(circle at 65% 70%, var(--orb-2), transparent 55%),
    radial-gradient(circle at 50% 50%, var(--orb-3), transparent 65%);
  animation: orbDrift 26s ease-in-out infinite;
}
.orb--hero { width: min(64vw, 820px); height: min(64vw, 820px); top: -14%; right: -12%; }
.orb--sm { width: 60vw; height: 60vw; max-width: 640px; max-height: 640px; top: 10%; right: -18%; opacity: .6; }
@keyframes orbDrift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-3%, 3%) scale(1.06); }
}
.orb-grain { position: absolute; inset: 0; pointer-events: none; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: var(--nav-h); overflow: clip; isolation: isolate;
}
.hero-bg-video {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; overflow: hidden;
}
.hero-bg-video video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-bg-fade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12,12,13,.55) 0%, rgba(12,12,13,.68) 55%, rgba(12,12,13,.94) 100%),
    linear-gradient(90deg, rgba(12,12,13,.82) 0%, rgba(12,12,13,.35) 35%, rgba(12,12,13,.35) 65%, rgba(12,12,13,.82) 100%),
    radial-gradient(120% 90% at 50% 50%, transparent 30%, rgba(12,12,13,.68) 100%);
}
/* Portrait/narrow viewports crop the (landscape) video tighter via object-fit:cover,
   so the letterforms dominate the frame — darken further to keep hero text legible. */
@media (max-width: 719px) {
  .hero-bg-fade {
    background:
      linear-gradient(180deg, rgba(12,12,13,.72) 0%, rgba(12,12,13,.8) 55%, rgba(12,12,13,.95) 100%),
      radial-gradient(140% 100% at 50% 45%, transparent 8%, rgba(12,12,13,.8) 100%);
  }
}
.hero-content { position: relative; padding-block: 3rem; }
.hero-title { margin-top: 1.2rem; max-width: 15ch; font-size: clamp(2.2rem, 6.2vw, 4.6rem); font-weight: 700; }
.hero-sub { margin-top: 1.6rem; }
.hero-foot { margin-top: 2.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.hero-scroll { position: absolute; left: 50%; bottom: 2.4rem; transform: translateX(-50%); display: none; }
@media (min-width: 720px) { .hero-scroll { display: flex; flex-direction: column; align-items: center; gap: .6rem; } }
.hero-scroll-line { width: 1px; height: 40px; background: linear-gradient(var(--ink-dark-dim), transparent); animation: scrollLine 2.2s ease-in-out infinite; }
@keyframes scrollLine { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* Manifesto */
.manifesto { padding-block: clamp(4.5rem, 9vw, 8rem); }
.manifesto-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .manifesto-grid { grid-template-columns: .7fr 2fr auto; gap: 3rem; align-items: start; } }
.manifesto-num { font-size: .92rem; color: var(--ink-dim); }
.manifesto p { font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.42; color: var(--ink-mute); font-weight: 300; }
.manifesto p strong { color: var(--ink); font-weight: 500; }
.manifesto-link {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  font-size: 1rem; padding-bottom: .2rem; border-bottom: 1px solid var(--line);
  transition: border-color .3s, gap .3s;
}
.manifesto-link:hover { border-color: var(--ink); gap: .8rem; }

/* Capabilities */
.capabilities { padding-block: clamp(1rem, 4vw, 3rem) clamp(4.5rem, 9vw, 8rem); }
.capabilities-grid { display: grid; gap: 1.6rem; margin-top: 2.4rem; }
@media (min-width: 720px) { .capabilities-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; } }
@media (min-width: 1280px) { .capabilities-grid { grid-template-columns: repeat(3, 1fr); } }
.capability-card {
  display: flex; flex-direction: column;
  padding: clamp(2rem, 3vw, 2.8rem);
  border-radius: 6px; background: rgba(20,21,23,.045); border: 1px solid var(--line);
}
.capability-card .iso-icon { margin-bottom: 2.2rem; flex: none; }
.capability-card h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.3; }
.capability-card p { margin-top: 1.2rem; color: var(--ink-mute); font-size: 1rem; line-height: 1.75; }
.capability-card p b { color: var(--ink); font-weight: 600; }
.capability-card .arrow { color: var(--ink-dim); }
.capability-card-image {
  margin-top: 2rem; aspect-ratio: 16 / 10; border-radius: 4px;
  background: rgba(20,21,23,.06); border: 1px solid var(--line);
  flex: none;
}

/* Service rows (Services page) */
.service-row {
  display: grid; gap: 1.2rem; padding-block: 2.6rem;
  border-top: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .service-row { grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; } }
.service-row-head { display: flex; flex-direction: column; gap: .6rem; }
.service-row-head h2 { max-width: 14ch; }
.service-row-body p { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--ink-mute); max-width: 60ch; }
.service-row-body p b { color: var(--ink); font-weight: 600; }
.service-row-body { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.service-row-body .manifesto-link { font-size: .95rem; }

/* Stats */
.stats { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); overflow: clip; isolation: isolate; }
.stats .lede { margin-top: 1rem; }
.stats-list { margin-top: 3rem; display: grid; gap: 0; border-top: 1px solid var(--line-dark-soft); }
.stat-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.4rem;
  padding-block: 1.6rem; border-bottom: 1px solid var(--line-dark-soft);
}
.stat-num { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 300; color: var(--ink-dark); line-height: 1; }
.stat-label { font-size: 1rem; color: var(--ink-dark-mute); text-align: right; }

/* Work carousel */
.work { position: relative; padding-block: clamp(4rem, 8vw, 7rem); overflow: clip; }
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.work-carousel { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .5rem; scrollbar-width: none; }
.work-carousel::-webkit-scrollbar { display: none; }
.work-card {
  position: relative; flex: 0 0 auto; width: min(78vw, 420px); aspect-ratio: 4/5;
  border-radius: 6px; overflow: hidden; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.4rem; color: #fff;
}
@media (min-width: 720px) { .work-card { width: min(42vw, 440px); } }
@media (min-width: 1280px) { .work-card { width: 400px; } }
.work-card-tag { position: relative; z-index: 1; font-size: .78rem; letter-spacing: .01em; color: rgba(255,255,255,.85); }
.work-card-title { position: relative; z-index: 1; margin-top: auto; font-family: var(--display); font-size: 1.7rem; font-weight: 400; }
.work-card-desc { position: relative; z-index: 1; margin-top: .3rem; font-size: .92rem; color: rgba(255,255,255,.8); }
.work-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-soft); }
.work-card:hover img { transform: scale(1.06); }
.work-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.05) 55%); z-index: 0; }
.work-card .corner-fold { background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,.9) 50%); }
.work-tones .work-card:nth-child(1) { background: linear-gradient(150deg, #7d868c, #202224); }
.work-tones .work-card:nth-child(2) { background: linear-gradient(150deg, #565e63, #17181a); }
.work-tones .work-card:nth-child(3) { background: linear-gradient(150deg, #aebfc8, #4b5257); }
.work-tones .work-card:nth-child(4) { background: linear-gradient(150deg, #4c5459, #121314); }
.work-tones .work-card:nth-child(5) { background: linear-gradient(150deg, #97a3a9, #333a3e); }
.work-tones .work-card:nth-child(6) { background: linear-gradient(150deg, #6c757a, #1a1c1e); }
.work-tones .work-card:nth-child(7) { background: linear-gradient(150deg, #8b959b, #2b2f32); }

.work-dots { display: flex; justify-content: center; gap: .55rem; margin-top: 2rem; }
.work-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-dark); transition: background .35s, width .35s; }
.work-dot.is-active { background: var(--accent); width: 22px; border-radius: 4px; }
.work-foot { margin-top: 1.6rem; font-size: .92rem; color: var(--ink-dark-dim); }

/* Availability strip */
.availability { padding-block: 1.8rem; border-top: 1px solid var(--line-dark-soft); border-bottom: 1px solid var(--line-dark-soft); }
.availability-inner { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; font-size: .94rem; color: var(--ink-dark-mute); }
.availability .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 0 rgba(255,255,255,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 70% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* Contact */
.contact { padding-block: clamp(4.5rem, 9vw, 8rem); }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.contact-email {
  font-family: var(--display); font-weight: 300; font-size: clamp(1.7rem, 4.4vw, 2.8rem);
  display: inline-block; position: relative; word-break: break-word;
}
.contact-email::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.1em; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.contact-email:hover::after { transform: scaleX(1); transform-origin: left; }
.contact-list { margin-top: 2rem; display: grid; gap: 1rem; }
.contact-list-item { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.contact-list-item .label { font-size: .84rem; color: var(--ink-dim); }
.contact-list-item .value { font-size: 1rem; transition: color .3s; }
.contact-list-item a:hover .value { color: var(--ink); text-decoration: underline; }
.contact-form-wrap { padding: 2rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(20,21,23,.04); }
.contact-form { display: grid; gap: 1.1rem; }

/* Footer */
.footer { padding-block: clamp(3.5rem, 6vw, 5rem) 2.2rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-bottom: 2.4rem; border-bottom: 1px solid var(--line); }
.footer-mark { width: 34px; height: 34px; color: var(--ink); opacity: .85; }
.footer-talk { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.footer-talk .h-xl { font-weight: 300; }
.footer-social-list { display: grid; gap: .6rem; text-align: right; }
.footer-social-list a { font-size: 1rem; color: var(--ink-mute); transition: color .3s; }
.footer-social-list a:hover { color: var(--ink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem 2.2rem; padding-top: 1.8rem; }
.footer-nav a { font-size: .95rem; color: var(--ink-mute); transition: color .3s; }
.footer-nav a:hover { color: var(--ink); }
.footer-legal { margin-top: 1.6rem; font-size: .8rem; color: var(--ink-dim); }

/* Page hero (category pages) */
.page-hero { position: relative; min-height: 58svh; display: flex; align-items: flex-end; padding-top: var(--nav-h); overflow: clip; isolation: isolate; }
.page-hero-content { padding-block: 3rem 3.4rem; }
.page-hero-back { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ink-dark-mute); margin-bottom: 1.6rem; }
.page-hero-back:hover { color: var(--ink-dark); }
.page-hero h1 { margin-top: .8rem; max-width: 18ch; }
.page-hero .lede { margin-top: 1.2rem; }

/* Gallery — graphic design masonry */
.gallery { padding-block: clamp(3rem, 6vw, 5rem); }
.masonry { columns: 1; column-gap: 1.2rem; }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.masonry-item {
  break-inside: avoid; margin-bottom: 1.2rem; border-radius: 6px; overflow: hidden;
  position: relative; border: 1px solid var(--line-dark); cursor: zoom-in;
}
.masonry-item img { width: 100%; transition: transform .8s var(--ease-soft), filter .5s; }
.masonry-item:hover img { transform: scale(1.06); filter: saturate(1.1) brightness(1.03); }
.masonry-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem 1rem;
  background: linear-gradient(0deg, rgba(12,12,13,.85), transparent);
  font-size: .82rem; color: var(--ink-dark-mute);
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s;
}
.masonry-item:hover .cap { opacity: 1; transform: none; }

/* Video grid */
.video-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; padding-block: clamp(3rem, 6vw, 5rem); }
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-card {
  position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-dark);
  background: rgba(246,247,248,.045); aspect-ratio: 16/9;
}
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card-poster {
  position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.1), transparent 60%), var(--bg-3);
  transition: background .4s;
}
.video-card-poster:hover { background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.18), transparent 60%), var(--bg-3); }
.video-card-index { position: absolute; top: .9rem; left: 1rem; font-size: .76rem; color: var(--ink-dark-dim); }
.play-ring {
  width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line-dark);
  display: grid; place-items: center; transition: transform .5s var(--ease-soft), border-color .35s, background .35s;
}
.video-card-poster:hover .play-ring { transform: scale(1.1); border-color: var(--accent); background: var(--accent); }
.play-ring svg { width: 18px; height: 18px; margin-left: 3px; color: var(--ink-dark); }
.video-card-poster:hover .play-ring svg { color: var(--accent-ink); }
.video-card.is-loaded .video-card-poster { display: none; }

/* Case study — UI Design long showcase */
.case-showcase { padding-block: clamp(3rem, 6vw, 5rem); }
.case-frame {
  position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-dark);
  max-height: 78vh; cursor: zoom-in;
}
.case-frame img { width: 100%; display: block; }
.case-frame::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, transparent 18%);
}
.case-frame-hint {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 2;
  font-size: .84rem; padding: .7rem 1.2rem; border-radius: 999px;
  background: rgba(12,12,13,.72); border: 1px solid var(--line-dark); color: var(--ink-dark);
  backdrop-filter: blur(8px);
}

/* Audio player */
.audio-player {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 95;
  display: flex; flex-direction: row-reverse; align-items: center; gap: .7rem;
}
.audio-toggle {
  width: 50px; height: 50px; border-radius: 50%; flex: none;
  border: 1px solid var(--line-dark); background: rgba(12,12,13,.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center; position: relative;
  transition: border-color .35s, transform .5s var(--ease-soft), background .35s;
}
.audio-toggle:hover { border-color: var(--accent); transform: scale(1.07); }
.audio-toggle .audio-icon-play { width: 16px; height: 16px; display: grid; place-items: center; }
.audio-toggle .audio-icon-play svg { width: 100%; height: 100%; color: var(--ink-dark); }
.audio-toggle .audio-bars { display: none; align-items: flex-end; gap: 3px; height: 16px; }
.audio-toggle .audio-bars i { display: block; width: 3px; border-radius: 2px; background: var(--accent); animation: audioBar 1s ease-in-out infinite; }
.audio-toggle .audio-bars i:nth-child(1) { height: 40%; animation-delay: -0.9s; }
.audio-toggle .audio-bars i:nth-child(2) { height: 100%; animation-delay: -0.5s; }
.audio-toggle .audio-bars i:nth-child(3) { height: 65%; animation-delay: -0.2s; }
.audio-toggle .audio-bars i:nth-child(4) { height: 85%; animation-delay: -0.7s; }
@keyframes audioBar { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.audio-toggle[aria-pressed="true"] .audio-icon-play { display: none; }
.audio-toggle[aria-pressed="true"] .audio-bars { display: flex; }
.audio-toggle[aria-pressed="false"] .audio-bars { display: none; }
.audio-label {
  font-size: .82rem; color: var(--ink-dark-dim); opacity: 0; transform: translateX(6px);
  transition: opacity .35s, transform .35s; pointer-events: none;
}
.audio-player:hover .audio-label { opacity: 1; transform: none; }
@media (max-width: 719px) { .audio-label { display: none; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9998; display: grid; place-items: center;
  background: rgba(6,6,7,.94); opacity: 0; pointer-events: none; transition: opacity .4s var(--ease-out);
  padding: 2rem;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 6px; }
.lightbox-close { position: absolute; top: 1.6rem; right: 1.8rem; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; color: var(--ink-dark); }
.lightbox-close:hover { border-color: var(--accent); }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-split] { opacity: 1; transform: none; }

/* =============================================================
   9. Reduced motion — only truly intrusive effects gated
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll-line { animation: none; }
  .availability .pulse { animation: none; }
  .audio-toggle .audio-bars i { animation: none; transform: scaleY(.7); }
  .orb { animation: none; }
}
