/* ==========================================================================
   faiseltajiran.com — design system
   Archivo (display, variable wght/wdth) · Instrument Serif (accent italics)
   JetBrains Mono (data labels) · GSAP + Lenis motion engine
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-var-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-var.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0a0a0a;
  --ink-2: #121212;
  --ink-3: #1a1a1a;
  --paper: #f0ece3;
  --paper-2: #e7e2d6;
  --text: #ece9e2;
  --muted: #97918a;
  --muted-dark: #6f6a62;
  --accent: #00d98e;
  --prose: #cfccc5;
  --prose-paper: #2c2a26;
  --line: rgba(236, 233, 226, 0.14);
  --line-strong: rgba(236, 233, 226, 0.28);
  --line-paper: rgba(10, 10, 10, 0.16);

  --font-display: 'Archivo', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-exp: cubic-bezier(0.87, 0, 0.13, 1);
}

/* Light theme: base inverts to paper, editorial sections invert to ink */
html[data-theme="light"] {
  --ink: #f0ece3;
  --ink-2: #e7e2d6;
  --ink-3: #ddd7c8;
  --paper: #0f0f0e;
  --paper-2: #1a1a18;
  --text: #16140f;
  --muted: #6f6a62;
  --muted-dark: #97918a;
  --prose: #3a372f;
  --prose-paper: #cfccc5;
  --line: rgba(10, 10, 10, 0.15);
  --line-strong: rgba(10, 10, 10, 0.32);
  --line-paper: rgba(236, 233, 226, 0.16);
}
html[data-theme="light"] .grain { opacity: 0.035; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--accent); color: var(--ink); }

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
sup { font-size: 0.5em; }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.container { width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 var(--gutter); }
.u-link { border-bottom: 1px solid var(--accent); transition: color .3s; }
.u-link:hover { color: var(--accent); }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Grain ---------- */
.grain { position: fixed; inset: -100%; z-index: 2000; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); } 75% { transform: translate(-3%, -3%); } 100% { transform: translate(2%, 2%); }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1900; background: var(--ink);
  display: flex; align-items: flex-end; justify-content: flex-start;
}
.preloader__inner { width: 100%; padding: var(--gutter); }
.preloader__name {
  font-weight: 800; font-stretch: 118%; letter-spacing: -0.02em;
  font-size: clamp(38px, 9vw, 140px); line-height: 0.95; overflow: hidden;
}
.preloader__meta {
  display: flex; justify-content: space-between; color: var(--muted);
  margin-top: 18px;
}
.preloader__count { color: var(--accent); font-size: 13px; }
.preloader__bar { height: 1px; background: var(--line); margin-top: 12px; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------- Page transition ---------- */
.transition { position: fixed; inset: 0; z-index: 1800; pointer-events: none; visibility: hidden; }
.transition.is-active { visibility: visible; pointer-events: all; }
.transition__panel { position: absolute; inset: 0; background: var(--ink-2); transform: translateY(101%); border-top: 1px solid var(--line-strong); }
.transition__label {
  position: absolute; left: var(--gutter); bottom: var(--gutter);
  color: var(--muted); opacity: 0; font-size: 12px;
}

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 1700; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
body.cursor-on .cursor { opacity: 1; }
.cursor__dot {
  position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: var(--accent); border-radius: 50%;
}
.cursor__ring {
  position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  transition: transform 0.35s var(--ease-out), opacity 0.3s, border-color 0.3s;
}
.cursor__label {
  position: absolute; transform: translate(-50%, -50%) scale(0);
  background: var(--accent); color: var(--ink); border-radius: 999px;
  padding: 10px 16px; font-size: 10px; font-weight: 700;
  transition: transform 0.35s var(--ease-out);
  white-space: nowrap;
}
body.cursor-view .cursor__label { transform: translate(-50%, -50%) scale(1); }
body.cursor-view .cursor__ring, body.cursor-view .cursor__dot { opacity: 0; }
body.cursor-link .cursor__ring { transform: scale(1.6); border-color: var(--accent); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  mix-blend-mode: difference; color: #fff;
}
.nav__brand { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; }
.nav__links { display: flex; gap: clamp(14px, 2.4vw, 36px); }
.nav__links a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.75; transition: opacity 0.3s;
}
.nav__links a:hover { opacity: 1; }
.nav__aux { display: flex; gap: 28px; align-items: center; color: #fff; opacity: 0.75; font-size: 10px; }
.nav__status { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot--live { background: #00d98e; box-shadow: 0 0 12px #00d98e90; animation: pulse 2s infinite; }

.theme-toggle {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid currentColor; position: relative; overflow: hidden;
  flex: none; opacity: 0.85; transition: opacity .3s, transform .5s var(--ease-out);
}
.theme-toggle::after {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
.theme-toggle:hover { opacity: 1; transform: rotate(180deg); }
@keyframes pulse { 50% { opacity: 0.4; } }
@media (max-width: 900px) { .nav__aux .nav__status { display: none; } }
@media (max-width: 640px) {
  .nav__links { gap: 12px; }
  .nav__links a { font-size: 9px; letter-spacing: 0.08em; }
  .nav__aux .nav__clock { display: none; }
  .nav__aux { gap: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: clip; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__frame { position: relative; z-index: 2; padding-bottom: clamp(28px, 5vh, 72px); }
.hero__eyebrow { color: var(--muted); margin-bottom: clamp(16px, 2.5vh, 32px); font-size: 11px; }
.hero__title {
  font-weight: 800; font-stretch: 121%;
  font-size: clamp(44px, 14.5vw, 244px);
  line-height: 0.86; letter-spacing: -0.025em;
  text-transform: uppercase;
}
.hero__line { display: block; overflow: hidden; }
.hero__line--indent { margin-left: clamp(10px, 8vw, 160px); color: var(--accent); }
.hero__lower {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 48px; margin-top: clamp(28px, 5vh, 64px); flex-wrap: wrap;
}
.hero__sub { max-width: 520px; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.45; color: var(--text); }
.hero__sub em { color: var(--accent); font-size: 1.12em; }
.hero__stats { list-style: none; display: grid; grid-template-columns: repeat(2, auto); gap: 18px 44px; }
.hero__stats li { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 10px; }
.hero__stats strong {
  font-family: var(--font-display); font-weight: 800; font-stretch: 115%;
  font-size: clamp(28px, 3vw, 44px); line-height: 1; color: var(--text); letter-spacing: -0.02em;
}
.hero__scroll {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: var(--gutter); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); font-size: 9px;
}
.hero__scroll i { width: 1px; height: 44px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; inset: 0; background: var(--accent); animation: scrolldrip 1.8s var(--ease-exp) infinite; }
@keyframes scrolldrip { 0% { transform: translateY(-100%);} 60% { transform: translateY(0);} 100% { transform: translateY(100%);} }
@media (max-width: 900px) { .hero__scroll { display: none; } }

/* ---------- Marquee band ---------- */
.band { border-block: 1px solid var(--line); padding: clamp(14px, 2vh, 24px) 0; overflow: clip; }
.band__track { display: flex; white-space: nowrap; will-change: transform; }
.band__track span {
  font-weight: 800; font-stretch: 122%; text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(28px, 4.6vw, 72px); line-height: 1; padding-right: 0.6em;
  -webkit-text-stroke: 1px var(--line-strong); color: transparent;
}
.band__track i { font-style: normal; color: var(--accent); -webkit-text-stroke: 0; padding: 0 0.35em; font-size: 0.5em; vertical-align: 0.25em; }

/* ---------- Backers strip ---------- */
.backers { border-bottom: 1px solid var(--line); }
.backers__inner {
  display: flex; align-items: center; gap: clamp(24px, 4vw, 72px);
  padding-top: clamp(22px, 3.5vh, 40px); padding-bottom: clamp(22px, 3.5vh, 40px);
  flex-wrap: wrap;
}
.backers__label { color: var(--muted); font-size: 10px; flex: none; }
.backers__list {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: clamp(18px, 2.6vw, 44px); flex: 1; justify-content: space-between;
}
.backer {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--muted); transition: color 0.35s;
}
.backer:hover { color: var(--text); }
.backer__icon { width: 22px; height: 22px; flex: none; }
.backer .mono { font-size: 9px; line-height: 1.5; letter-spacing: 0.12em; }
.backer .mono b { color: var(--text); font-weight: 500; }
.case-backers { display: flex; flex-wrap: wrap; gap: clamp(18px, 2.6vw, 44px); }
.case-backers .backer { border: 1px solid var(--line); border-radius: 8px; padding: 18px 22px; }
.case-backers .backer:hover { border-color: var(--case-hue, var(--accent)); }

/* ---------- Section head ---------- */
.section-head { padding-top: clamp(80px, 14vh, 160px); margin-bottom: clamp(40px, 7vh, 96px); }
.section-head__eyebrow { color: var(--accent); margin-bottom: 24px; }
.section-head__title {
  font-weight: 800; font-stretch: 118%; text-transform: uppercase;
  font-size: clamp(40px, 7.2vw, 118px); line-height: 0.92; letter-spacing: -0.02em;
}
.section-head__title em { text-transform: none; font-size: 0.96em; }
.section-head__note { max-width: 460px; color: var(--muted); margin-top: 28px; font-size: 15px; }

/* ---------- Work ---------- */
.work { position: relative; padding-bottom: clamp(60px, 10vh, 140px); }
.work__list { list-style: none; border-top: 1px solid var(--line); }
.work__group {
  color: var(--muted); font-size: 10px; letter-spacing: 0.2em;
  padding: clamp(34px, 6vh, 64px) 0 14px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.work__group::before { content: ''; width: 8px; height: 8px; background: var(--accent); }
.work__list > .work__group:first-child { padding-top: 6px; }
.work__row {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center;
  gap: clamp(12px, 3vw, 48px);
  padding: clamp(18px, 3.2vh, 34px) 0;
  border-bottom: 1px solid var(--line);
  position: relative; transition: padding 0.45s var(--ease-out);
}
.work__row::after {
  content: ''; position: absolute; inset: 0 -12px;
  background: color-mix(in srgb, var(--row-hue, var(--accent)) 7%, var(--ink-2));
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s var(--ease-out); z-index: -1;
}
.work__row:hover::after { transform: scaleY(1); }
.work__row:hover { padding-left: clamp(8px, 1.5vw, 24px); }
.work__nr { color: var(--muted); font-size: 12px; transition: color 0.35s; }
.work__title {
  font-weight: 800; font-stretch: 116%; text-transform: uppercase; letter-spacing: -0.02em;
  font-size: clamp(30px, 5.4vw, 84px); line-height: 1;
  transition: color 0.35s;
}
.work__row:hover .work__title, .work__row:hover .work__nr { color: var(--row-hue, var(--accent)); }
.work__meta { display: flex; gap: clamp(10px, 2vw, 28px); align-items: center; color: var(--muted); font-size: 10px; text-align: right; }
.work__meta span:first-child { max-width: 180px; }
.chip {
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px;
  font-size: 9px; letter-spacing: 0.12em; color: var(--text); white-space: nowrap;
}
.chip--live { border-color: #3dff8860; color: #3dff88; }
.chip--dim { color: var(--muted); }
@media (max-width: 760px) {
  .work__row { grid-template-columns: 44px 1fr; }
  .work__meta { grid-column: 2; justify-content: flex-start; text-align: left; flex-wrap: wrap; gap: 8px; }
}
.work__ps { color: var(--muted); margin-top: 40px; font-size: 10px; }

/* Peek preview card */
.peek {
  position: fixed; top: 0; left: 0; z-index: 900;
  width: min(340px, 26vw); aspect-ratio: 4 / 3; border-radius: 6px;
  pointer-events: none; opacity: 0; overflow: hidden;
  background:
    radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--peek-hue, #00d98e) 28%, transparent), transparent 60%),
    var(--ink-3);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.peek__art { width: 62%; color: var(--peek-hue, var(--accent)); }
.peek__svg { width: 100%; height: auto; aspect-ratio: 1; }
.peek__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top; opacity: 0;
}
.peek.has-img .peek__img { opacity: 1; }
.peek.has-img .peek__art { opacity: 0; }
.peek.has-img .peek__tag { background: rgba(10,10,10,0.72); padding: 6px 10px; border-radius: 4px; }
.peek__tag {
  position: absolute; left: 14px; bottom: 12px; color: var(--text);
  font-size: 9px; opacity: 0.8;
}
@media (max-width: 900px) { .peek { display: none; } }

/* ---------- Paper sections ---------- */
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper ::selection { background: var(--ink); color: var(--paper); }
.section--paper .section-head__eyebrow { color: var(--accent); }
.section--paper .section-head__note { color: var(--muted-dark); }

/* About */
.about { padding-bottom: clamp(70px, 12vh, 150px); }
.about .section-head__eyebrow { padding-top: clamp(80px, 14vh, 160px); display: block; }
.about__statement {
  font-weight: 640; font-stretch: 108%;
  font-size: clamp(28px, 4.6vw, 74px); line-height: 1.06; letter-spacing: -0.02em;
  max-width: 20ch; margin: clamp(28px, 5vh, 56px) 0 clamp(40px, 8vh, 90px);
}
.about__statement .w { opacity: 0.14; display: inline-block; }
.about__layout {
  display: grid; grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(28px, 5vw, 90px); align-items: end;
  margin-bottom: clamp(40px, 8vh, 90px);
}
.about__layout .about__statement { margin-bottom: 0; }
.about__media { position: relative; max-width: 360px; justify-self: end; }
.about__media img {
  border-radius: 6px; width: 100%;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: top;
  filter: grayscale(1) contrast(1.06);
  transition: filter 0.7s var(--ease-out);
}
.about__media:hover img { filter: grayscale(0) contrast(1); }
.about__media figcaption { color: var(--muted-dark); margin-top: 12px; font-size: 9px; }
@media (max-width: 860px) {
  .about__layout { grid-template-columns: 1fr; align-items: start; }
  .about__media { justify-self: start; max-width: 320px; }
}
.about__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 72px); max-width: 1100px; }
.about__col p { font-size: clamp(15px, 1.25vw, 19px); line-height: 1.55; color: var(--prose-paper); }

/* Capabilities accordion */
.caps { padding-bottom: clamp(80px, 14vh, 170px); }
.acc { border-top: 1px solid var(--line-paper); }
.acc__item { border-bottom: 1px solid var(--line-paper); }
.acc__item summary {
  list-style: none; display: grid; grid-template-columns: 90px 1fr 40px; align-items: center;
  gap: 24px; padding: clamp(20px, 3vh, 32px) 0; cursor: pointer;
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__nr { color: var(--muted-dark); font-size: 11px; }
.acc__name {
  font-weight: 780; font-stretch: 114%; text-transform: uppercase; letter-spacing: -0.015em;
  font-size: clamp(22px, 3.4vw, 52px); line-height: 1;
}
.acc__toggle { position: relative; width: 22px; height: 22px; justify-self: end; }
.acc__toggle::before, .acc__toggle::after {
  content: ''; position: absolute; inset: 50% auto auto 0; width: 100%; height: 2px;
  background: var(--ink); transition: transform 0.4s var(--ease-out);
}
.acc__toggle::after { transform: rotate(90deg); }
.acc__item[open] .acc__toggle::after { transform: rotate(0deg); }
.acc__body { overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0 clamp(24px, 4vh, 40px) calc(90px + 24px); }
.tags span {
  border: 1px solid var(--line-paper); border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  padding: 9px 15px; color: var(--prose-paper); background: transparent;
  transition: background .3s, color .3s, border-color .3s;
}
.tags span:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 760px) {
  .acc__item summary { grid-template-columns: 52px 1fr 28px; }
  .tags { padding-left: 0; }
}

/* ---------- Patents (horizontal) ---------- */
.patents { position: relative; }
.patents__pin { overflow: clip; padding-bottom: clamp(60px, 10vh, 120px); }
.patents__head { margin-bottom: clamp(36px, 6vh, 72px); }
.patents__track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  padding: 0 var(--gutter);
  width: max-content;
}
@media (max-width: 760px) {
  .patents__track {
    width: auto; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; padding-bottom: 16px;
  }
  .patents__track .pcard { scroll-snap-align: start; width: 82vw; }
}
.pcard {
  width: clamp(300px, 30vw, 430px); flex: none;
  border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(22px, 2.6vw, 36px);
  min-height: clamp(260px, 30vh, 330px);
  display: flex; flex-direction: column; gap: 16px;
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  transition: border-color .35s, transform .35s var(--ease-out);
}
.pcard:hover { border-color: var(--accent); transform: translateY(-6px); }
.pcard__nr { color: var(--accent); font-size: 11px; }
.pcard h3 {
  font-weight: 760; font-stretch: 112%; text-transform: uppercase;
  font-size: clamp(20px, 2vw, 30px); line-height: 1.04; letter-spacing: -0.015em;
}
.pcard p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.pcard__date { margin-top: auto; color: var(--muted); font-size: 10px; border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- Experience ---------- */
.xp { padding-bottom: clamp(70px, 12vh, 150px); }
.xp__list { list-style: none; border-top: 1px solid var(--line); }
.xp__item {
  display: grid; grid-template-columns: minmax(150px, 260px) 1fr;
  gap: clamp(16px, 4vw, 64px);
  padding: clamp(24px, 4vh, 44px) 0; border-bottom: 1px solid var(--line);
}
.xp__when { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 11px; }
.xp__what h3 { font-weight: 740; font-stretch: 112%; font-size: clamp(19px, 2.1vw, 30px); letter-spacing: -0.01em; margin-bottom: 10px; }
.xp__what p { color: var(--muted); max-width: 760px; font-size: 15px; }
.xp__edu { display: flex; flex-wrap: wrap; gap: 12px 36px; color: var(--muted); padding-top: 28px; font-size: 10px; }
@media (max-width: 700px) { .xp__item { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); padding-bottom: clamp(50px, 8vh, 100px); }
.contact .section-head__eyebrow { padding-top: clamp(70px, 12vh, 140px); display: block; }
.contact__big { display: block; margin: clamp(20px, 4vh, 40px) 0 clamp(40px, 7vh, 80px); }
.contact__big span {
  display: block;
  font-weight: 800; font-stretch: 122%; text-transform: uppercase;
  font-size: clamp(56px, 13.5vw, 230px); line-height: 0.9; letter-spacing: -0.025em;
  transition: color 0.4s, -webkit-text-stroke 0.4s;
}
.contact__big:hover span { color: transparent; -webkit-text-stroke: 2px var(--accent); }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.contact__card {
  border: 1px solid var(--line); border-radius: 8px; padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .35s, background .35s;
}
.contact__card:hover { border-color: var(--accent); background: var(--ink-2); }
.contact__card .mono { color: var(--muted); font-size: 9px; }
.contact__card strong { font-weight: 640; font-size: clamp(15px, 1.3vw, 19px); letter-spacing: -0.01em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 10px; }
.footer__inner a { color: var(--text); border-bottom: 1px solid var(--line-strong); }

/* ==========================================================================
   Case-study pages
   ========================================================================== */
.case-hero { position: relative; padding-top: calc(var(--nav-h) + clamp(40px, 8vh, 110px)); overflow: clip; }
.case-hero__motif {
  position: absolute; right: calc(-1 * clamp(20px, 6vw, 120px)); top: var(--nav-h);
  width: clamp(280px, 38vw, 640px); opacity: 0.16; color: var(--case-hue, var(--accent));
  pointer-events: none;
}
.case-hero__motif svg { width: 100%; height: auto; aspect-ratio: 1; }
.case-hero__crumb { display: inline-flex; gap: 10px; color: var(--muted); margin-bottom: clamp(24px, 4vh, 48px); font-size: 11px; }
.case-hero__crumb a { color: var(--text); }
.case-hero__crumb a:hover { color: var(--accent); }
.case-hero__nr { color: var(--case-hue, var(--accent)); margin-bottom: 18px; font-size: 12px; }
.case-hero__title {
  font-weight: 800; font-stretch: 120%; text-transform: uppercase;
  font-size: clamp(38px, 9.2vw, 160px); line-height: 0.9; letter-spacing: -0.025em;
}
.case-hero__tagline {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 2.6vw, 40px);
  color: var(--muted); margin-top: clamp(20px, 3.5vh, 40px); max-width: 26ch; line-height: 1.25;
}
.case-hero__tagline em, .case-hero__tagline b { color: var(--case-hue, var(--accent)); font-weight: 400; font-style: italic; }

.case-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border-block: 1px solid var(--line); margin-top: clamp(40px, 7vh, 90px);
}
.case-meta > div { padding: 22px clamp(14px, 1.6vw, 26px); border-right: 1px solid var(--line); }
.case-meta > div:last-child { border-right: 0; }
.case-meta .mono { color: var(--muted); font-size: 9px; display: block; margin-bottom: 8px; }
.case-meta strong { font-weight: 640; font-size: 15px; letter-spacing: -0.01em; line-height: 1.3; display: block; }

.case-section { padding-top: clamp(70px, 11vh, 140px); }
.case-section:last-of-type { padding-bottom: clamp(80px, 12vh, 150px); }
.case-section__label { color: var(--case-hue, var(--accent)); margin-bottom: 26px; }
.case-section__title {
  font-weight: 780; font-stretch: 115%; text-transform: uppercase;
  font-size: clamp(30px, 4.6vw, 68px); line-height: 0.95; letter-spacing: -0.02em; margin-bottom: clamp(24px, 4vh, 44px);
}
.case-prose { max-width: 780px; display: grid; gap: 18px; }
.case-prose p { font-size: clamp(15px, 1.35vw, 19px); line-height: 1.6; color: var(--prose); }
.case-prose strong { color: var(--text); }
.case-prose em { color: var(--case-hue, var(--accent)); }

.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.case-card {
  border: 1px solid var(--line); border-radius: 8px; padding: clamp(20px, 2.2vw, 30px);
  display: flex; flex-direction: column; gap: 12px; background: var(--ink-2);
  transition: border-color .35s, transform .35s var(--ease-out);
}
.case-card:hover { border-color: var(--case-hue, var(--accent)); transform: translateY(-4px); }
.case-card .mono { color: var(--case-hue, var(--accent)); font-size: 9px; }
.case-card h3 { font-weight: 720; font-stretch: 110%; font-size: clamp(17px, 1.6vw, 23px); letter-spacing: -0.01em; line-height: 1.15; }
.case-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.case-card code { font-family: var(--font-mono); font-size: 0.85em; color: var(--text); background: var(--ink-3); border-radius: 4px; padding: 1px 6px; }

/* Case media / screens */
.case-media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.case-media figure {
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--ink-2); margin: 0;
}
.case-media figure.wide { grid-column: 1 / -1; }
.case-media img { width: 100%; height: auto; display: block; }
.case-media figcaption {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding: 12px 16px; border-top: 1px solid var(--line);
}
@media (max-width: 700px) { .case-media { grid-template-columns: 1fr; } }

.case-signals { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.case-signal { border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.case-signal strong {
  display: block; font-weight: 800; font-stretch: 118%; letter-spacing: -0.02em;
  font-size: clamp(30px, 3.6vw, 54px); line-height: 1; color: var(--case-hue, var(--accent)); margin-bottom: 10px;
}
.case-signal span { color: var(--muted); font-size: 10px; }

.case-stack { display: flex; flex-wrap: wrap; gap: 10px; max-width: 1000px; }
.case-stack span {
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  padding: 9px 15px; color: var(--muted);
  transition: color .3s, border-color .3s;
}
.case-stack span:hover { color: var(--text); border-color: var(--case-hue, var(--accent)); }

.case-next { border-top: 1px solid var(--line); margin-top: clamp(80px, 12vh, 150px); }
.case-next a { display: block; padding: clamp(50px, 9vh, 110px) 0; }
.case-next .mono { color: var(--muted); display: block; margin-bottom: 16px; }
.case-next__title {
  font-weight: 800; font-stretch: 120%; text-transform: uppercase;
  font-size: clamp(44px, 9vw, 150px); line-height: 0.9; letter-spacing: -0.025em;
  transition: color .4s;
}
.case-next a:hover .case-next__title { color: var(--next-hue, var(--accent)); }

/* ---------- Variant switcher ---------- */
.vswitch {
  position: fixed; bottom: 18px; left: 18px; z-index: 1500;
  display: flex; gap: 4px; border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  backdrop-filter: blur(10px); border-radius: 999px; padding: 5px;
}
.vswitch a { font-size: 10px; padding: 7px 13px; border-radius: 999px; color: var(--muted); transition: color .3s; }
.vswitch a:hover { color: var(--text); }
.vswitch a.on { background: var(--accent); color: #05231a; }

/* ---------- Reveal defaults (JS enhances) ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); }
[data-split] .split-line { overflow: clip; }
[data-split] .split-line > div { will-change: transform; }
html.no-motion [data-reveal] { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll, .preloader { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ---------- Neon glow pass (case pages) ---------- */
body[data-page="case"] .case-section__label,
body[data-page="case"] .case-hero__nr {
  text-shadow: 0 0 14px color-mix(in srgb, var(--case-hue, var(--accent)) 55%, transparent);
}
body[data-page="case"] .case-signal strong {
  text-shadow: 0 0 20px color-mix(in srgb, var(--case-hue, var(--accent)) 50%, transparent);
}
body[data-page="case"] .case-card:hover {
  box-shadow: 0 0 30px color-mix(in srgb, var(--case-hue, var(--accent)) 16%, transparent), 0 18px 44px rgba(0,0,0,0.45);
}
body[data-page="case"] .case-next a:hover .case-next__title {
  text-shadow: 0 0 28px color-mix(in srgb, var(--next-hue, var(--accent)) 45%, transparent);
}
body[data-page="case"] .u-link:hover,
body[data-page="case"] .case-hero__crumb a:hover {
  text-shadow: 0 0 12px color-mix(in srgb, var(--case-hue, var(--accent)) 55%, transparent);
}
