/* ==========================================================================
   Rōnin — homepage v4. Few, big moments: intro cut, particle logo,
   scroll-filled type, horizontal work gallery.
   ========================================================================== */

:root {
  --ink: #0c0c0c;
  --ink-2: #141313;
  --paper: #eee4d3;
  --paper-2: #e3d6c2;
  --accent: #8f1f1f;
  --red: #d8392e;
  --muted-d: #8e8a83;
  --muted-l: #5f5c56;
  --line-l: rgba(12, 12, 12, .16);
  --line-d: rgba(238, 228, 211, .14);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --serif: Georgia, "Times New Roman", serif;
  --pad: clamp(18px, 4vw, 64px);
}

html { scroll-behavior: auto; }
body.x {
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
}
.x ::selection { background: var(--red); color: var(--paper); }
.x-wrap { width: calc(100vw - var(--pad) * 2); max-width: 1680px; margin-inline: auto; }
.x-label {
  margin: 0;
  font: 500 11px/1.3 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- Header (themes itself to the section below) ---------- */
.x .site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: transparent !important;
  backdrop-filter: none;
  border-bottom: 0 !important;
  transition: color .4s ease, transform .5s var(--ease);
}
.x .site-header .shell { width: calc(100vw - var(--pad) * 2); max-width: 1680px; }
.x .site-header[data-on="dark"],
.x .site-header[data-on="red"] { color: var(--paper); }
.x .site-header[data-on="dark"] .nav-contact,
.x .site-header[data-on="red"] .nav-contact { border-color: var(--paper); }
.x .site-header[data-on="dark"] .lang-switch,
.x .site-header[data-on="red"] .lang-switch { border-color: rgba(238, 228, 211, .4); }
.x .site-header[data-on="dark"] .site-nav a::after,
.x .site-header[data-on="red"] .site-nav a::after { background: var(--paper); }
.x .site-header.is-hidden { transform: translateY(-110%); }
.x .site-header .brand-wordmark { color: inherit; }

/* ---------- Intro: the cut ---------- */
.x-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}
.x-intro i {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: var(--ink);
  transition: transform 1s var(--ease-io);
}
.x-intro i:first-child { top: 0; }
.x-intro i:nth-child(2) { bottom: 0; }
.x-intro b {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent, var(--red) 15%, #ff6a55 50%, var(--red) 85%, transparent);
  box-shadow: 0 0 24px rgba(255, 80, 60, .8);
  transform: scaleX(0);
  transition: transform .55s var(--ease-io), opacity .4s ease;
}
.x-intro span {
  position: absolute;
  left: 50%;
  top: calc(50% - 46px);
  transform: translateX(-50%);
  font: 400 15px var(--serif);
  letter-spacing: .5em;
  color: var(--paper);
  opacity: 0;
  transition: opacity .4s ease;
}
.x-intro.s1 span { opacity: 1; }
.x-intro.s2 b { transform: scaleX(1); }
.x-intro.s3 span { opacity: 0; }
.x-intro.s3 i:first-child { transform: translateY(-101%); }
.x-intro.s3 i:nth-child(2) { transform: translateY(101%); }
.x-intro.s3 b { opacity: 0; }
.x-intro.done { display: none; }

/* ---------- Cursor ring ---------- */
.x-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 900;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  border: 1px solid #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  display: grid;
  place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s ease, opacity .3s ease;
  opacity: 0;
}
.x-cursor.on { opacity: 1; }
.x-cursor em {
  font: 500 10px var(--mono);
  font-style: normal;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #000;
  opacity: 0;
  transition: opacity .2s ease;
}
.x-cursor.big { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: #fff; }
.x-cursor.big em { opacity: 1; }
@media (hover: none), (pointer: coarse) { .x-cursor { display: none; } }

/* ---------- HERO ---------- */
.x-hero {
  position: relative;
  min-height: max(100svh, 700px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.x-hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.x-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(60% 70% at 72% 45%, rgba(143, 31, 31, .2), transparent 70%),
    linear-gradient(180deg, transparent 55%, rgba(12, 12, 12, .75));
}
.x-hero-top,
.x-hero-bottom { position: relative; z-index: 2; }
.x-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 112px;
  color: var(--muted-d);
}
.x-status { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); }
.x-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ecf6e;
  box-shadow: 0 0 0 4px rgba(62, 207, 110, .18);
  animation: x-pulse 2s ease-in-out infinite;
}
@keyframes x-pulse { 50% { box-shadow: 0 0 0 9px rgba(62, 207, 110, 0); } }
.x-hero-bottom {
  margin-top: auto;
  padding-bottom: 46px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 40px;
  align-items: end;
}
.x-h1 {
  margin: 0;
  font-size: clamp(64px, 11.2vw, 208px);
  line-height: .84;
  letter-spacing: -.065em;
  font-weight: 700;
}
.x-h1 .ln { display: block; overflow: hidden; padding: 0 .05em .06em; margin: 0 -.05em -.06em; }
.x-h1 .ln > span { display: inline-block; }
.x-h1 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.055em;
  color: var(--red);
}
.x-hero-side p { margin: 0 0 26px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: #cfc7b9; }
.x-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.x-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  translate: var(--mx, 0) var(--my, 0);
  transition: color .45s var(--ease), border-color .45s ease, translate .4s var(--ease);
  cursor: pointer;
  background: transparent;
  color: inherit;
}
.x-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: currentColor;
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.x-btn-solid { background: var(--red); border-color: var(--red); color: #fff; }
.x-btn-solid::before { background: var(--paper); }
.x-btn:hover::before { transform: none; }
.x-btn:hover { color: var(--ink); }
.x-hero .x-btn:not(.x-btn-solid):hover { color: var(--ink); }
.x-btn span { transition: transform .45s var(--ease); }
.x-btn:hover span { transform: translate(3px, -3px); }

.x-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted-d);
}
.x-scroll i { width: 1px; height: 44px; background: rgba(238, 228, 211, .2); overflow: hidden; position: relative; }
.x-scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 1px;
  height: 100%;
  background: var(--paper);
  animation: x-drop 1.8s var(--ease-io) infinite;
}
@keyframes x-drop { to { top: 100%; } }

/* hero entrance (after intro) */
.x-js .x-h1 .ln > span { transform: translateY(105%); }
.x-js .x-hero-top, .x-js .x-hero-side, .x-js .x-scroll { opacity: 0; }
.x-ready .x-h1 .ln > span { transform: none; transition: transform 1.2s var(--ease); }
.x-ready .x-h1 .ln:nth-child(2) > span { transition-delay: .08s; }
.x-ready .x-h1 .ln:nth-child(3) > span { transition-delay: .16s; }
.x-ready .x-hero-top, .x-ready .x-hero-side, .x-ready .x-scroll { opacity: 1; transition: opacity 1s ease .5s; }

/* ---------- Statement ---------- */
.x-statement {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(110px, 16vw, 230px) 0;
}
.x-statement .x-label { color: var(--muted-d); margin-bottom: 40px; }
.x-statement p.x-big {
  margin: 0;
  max-width: 1500px;
  font-size: clamp(34px, 5.4vw, 98px);
  line-height: 1.02;
  letter-spacing: -.05em;
  font-weight: 600;
}
.x-big .w { color: rgba(238, 228, 211, .14); transition: color .35s ease; }
.x-big .w.on { color: var(--paper); }
.x-big .w.k.on { color: var(--red); }

/* ---------- Numbers ---------- */
.x-numbers { padding: clamp(100px, 12vw, 180px) 0; }
.x-numbers-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 100px);
}
.x-h2 {
  margin: 18px 0 0;
  font-size: clamp(44px, 6.4vw, 118px);
  line-height: .9;
  letter-spacing: -.06em;
  font-weight: 700;
}
.x-h2 em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.05em; color: var(--accent); }
.x-numbers-head > p { margin: 0; max-width: 520px; justify-self: end; font-size: 19px; line-height: 1.55; color: #3f3d39; }
.x-num-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.x-num { padding: 26px 24px 0 0; }
.x-num + .x-num { padding-left: 24px; border-left: 1px solid var(--line-l); }
.x-num strong {
  display: block;
  font-size: clamp(56px, 7.4vw, 136px);
  line-height: .9;
  letter-spacing: -.07em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.x-num span { display: block; margin-top: 14px; max-width: 260px; color: var(--muted-l); font-size: 15px; }

/* ---------- Disciplines: type fills on scroll ---------- */
.x-disc { padding: 0 0 clamp(100px, 12vw, 180px); }
.x-disc-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px);
  gap: 40px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line-l);
}
.x-disc-row:last-of-type { border-bottom: 1px solid var(--line-l); }
.x-word {
  position: relative;
  margin: 0;
  font-size: clamp(76px, 15.5vw, 300px);
  line-height: .86;
  letter-spacing: -.07em;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(12, 12, 12, .35);
  white-space: nowrap;
}
.x-word::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--ink);
  -webkit-text-stroke: 0;
  clip-path: inset(-10% calc(100% - var(--p, 0) * 100%) -10% 0);
}
.x-word.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.055em; }
.x-word.serif::after { color: var(--accent); }
.x-disc-row .x-label { color: var(--accent); margin-bottom: 12px; }
.x-disc-row p { margin: 0; color: #45433f; font-size: 16px; line-height: 1.55; }
.x-ai {
  display: flex;
  align-items: baseline;
  gap: 28px;
  margin-top: 34px;
  padding: 28px 32px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
}
.x-ai b { font: italic 400 46px/1 var(--serif); color: var(--red); white-space: nowrap; }
.x-ai p { margin: 0; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: #d6d1c7; }

/* ---------- Work: horizontal gallery ---------- */
.x-work { position: relative; background: var(--ink); color: var(--paper); }
.x-work-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.x-track { display: flex; gap: clamp(28px, 4vw, 72px); padding: 0 var(--pad); will-change: transform; }
.x-panel { flex: 0 0 auto; width: min(1180px, 84vw); height: min(78vh, 760px); position: relative; }
.x-panel-intro { width: min(760px, 70vw); display: flex; flex-direction: column; justify-content: center; }
.x-panel-intro .x-h2 { font-size: clamp(56px, 8.6vw, 160px); }
.x-panel-intro p { margin: 28px 0 0; max-width: 460px; color: var(--muted-d); font-size: 17px; }
.x-hint { margin-top: 40px !important; display: flex; align-items: center; gap: 14px; color: var(--paper) !important; }
.x-hint i { display: inline-block; width: 64px; height: 1px; background: var(--paper); position: relative; }
.x-hint i::after { content: ""; position: absolute; right: 0; top: -4px; width: 9px; height: 9px; border-top: 1px solid var(--paper); border-right: 1px solid var(--paper); transform: rotate(45deg); }

.x-case {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(22px, 2.4vw, 36px);
  background: var(--ink-2);
  border: 1px solid var(--line-d);
  border-radius: 6px;
}
.x-shots { position: relative; min-height: 0; }
.x-shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  background: #000;
}
.x-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease); }
.x-case:hover .x-shot img { transform: scale(1.035); }
.x-shot-a { left: 0; top: 0; width: 86%; aspect-ratio: 16 / 10; }
.x-shot-b { right: 0; bottom: 0; width: 62%; aspect-ratio: 16 / 10; }
.x-case-info { display: flex; flex-direction: column; min-width: 0; }
.x-case-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted-d); padding-bottom: 16px; border-bottom: 1px solid var(--line-d); }
.x-case h3 { margin: 22px 0 6px; font-size: clamp(42px, 4.6vw, 86px); line-height: .92; letter-spacing: -.06em; font-weight: 700; }
.x-case .x-kicker { margin: 0 0 18px; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 28px); color: var(--red); }
.x-case-info > p { margin: 0; color: #cfc7b9; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.55; }
.x-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: auto 0 22px; padding-top: 24px; }
.x-facts div { border-top: 1px solid var(--line-d); padding-top: 12px; }
.x-facts strong { display: block; font-size: clamp(24px, 2.2vw, 38px); letter-spacing: -.05em; line-height: 1; }
.x-facts span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted-d); }
.x-case .x-btn { align-self: flex-start; }

.x-case-type {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 3vw, 52px);
  background: var(--accent);
  border-radius: 6px;
}
.x-case-type .x-case-meta { border-color: rgba(238, 228, 211, .3); color: #f0c9c3; }
.x-type-big { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.x-type-big > div { min-width: 0; }
.x-type-big strong { display: block; font-size: clamp(54px, 6.6vw, 132px); line-height: .85; letter-spacing: -.065em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.x-type-big span { display: block; margin-top: 12px; color: #f3d7d2; font-size: 16px; }
.x-case-type h3 { margin: 0 0 10px; font-size: clamp(32px, 3.4vw, 58px); letter-spacing: -.05em; line-height: .95; }
.x-case-type p { margin: 0; max-width: 640px; color: #f3d7d2; }

.x-panel-cta { width: min(820px, 76vw); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.x-panel-cta .x-h2 { font-size: clamp(56px, 8vw, 150px); margin-bottom: 36px; }

.x-progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 34px; height: 1px; background: var(--line-d); }
.x-progress i { position: absolute; inset: 0; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--wp, 0)); }

/* ---------- Services ---------- */
.x-services { padding: clamp(100px, 12vw, 180px) 0; }
.x-services .x-numbers-head { margin-bottom: 48px; }
.x-svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.x-svc li { position: relative; border-bottom: 1px solid var(--line-l); overflow: hidden; isolation: isolate; }
.x-svc a {
  display: grid;
  grid-template-columns: 80px 1fr minmax(240px, 420px) 40px;
  gap: 24px;
  align-items: center;
  padding: clamp(18px, 2vw, 30px) 0;
  color: inherit;
  text-decoration: none;
  transition: color .45s var(--ease), padding .55s var(--ease);
}
.x-svc li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.x-svc li:hover::before { transform: none; }
.x-svc li:hover a { color: var(--paper); padding-left: 24px; padding-right: 24px; }
.x-svc .n { font: 500 11px var(--mono); letter-spacing: .1em; color: var(--accent); }
.x-svc li:hover .n { color: var(--red); }
.x-svc h3 { margin: 0; font-size: clamp(30px, 4vw, 72px); line-height: 1; letter-spacing: -.055em; font-weight: 650; }
.x-svc p { margin: 0; color: var(--muted-l); font-size: 15px; transition: color .45s ease; }
.x-svc li:hover p { color: #bdb8ae; }
.x-svc .ar { font-size: 26px; color: var(--red); transform: translateX(-12px); opacity: 0; transition: transform .5s var(--ease), opacity .3s ease; }
.x-svc li:hover .ar { opacity: 1; transform: none; }

/* ---------- Audience ---------- */
.x-aud { background: var(--paper-2); padding: clamp(80px, 9vw, 130px) 0; }
.x-aud ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.x-aud li { padding-top: 24px; }
.x-aud h3 { margin: 0 0 10px; font-size: clamp(22px, 2.1vw, 32px); letter-spacing: -.04em; }
.x-aud li p { margin: 0; color: #4d4a45; }

/* ---------- Process ---------- */
.x-proc { padding: clamp(100px, 12vw, 170px) 0; }
.x-steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; position: relative; }
.x-steps::before, .x-steps::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-l); }
.x-steps::after { height: 2px; top: 6px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }
.x-steps li { position: relative; padding-top: 42px; }
.x-steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--line-l); transition: background-color .4s ease, box-shadow .4s ease; z-index: 1; }
.x-steps li.on::before { background: var(--accent); box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px rgba(143, 31, 31, .4); }
.x-steps .x-label { color: var(--accent); margin-bottom: 14px; }
.x-steps h3 { margin: 0 0 10px; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.04em; }
.x-steps p { margin: 0; color: #54514b; font-size: 15px; }

/* ---------- Contact ---------- */
.x-contact { background: var(--accent); color: var(--paper); padding: clamp(110px, 13vw, 190px) 0 clamp(90px, 10vw, 140px); position: relative; overflow: hidden; }
.x-contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px circle at var(--cx, 20%) var(--cy, 30%), rgba(255, 110, 90, .22), transparent 60%); pointer-events: none; }
.x-contact-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 120px); align-items: end; }
.x-contact .x-h2 { font-size: clamp(72px, 11vw, 210px); }
.x-contact .x-h2 em { color: var(--paper); }
.x-contact-intro .x-label { color: #f0c9c3; }
.x-contact-intro > p { margin: 30px 0 0; max-width: 520px; font-size: 19px; color: #f3d7d2; }
.x .contact-form { border-top-color: rgba(238, 228, 211, .5); }
.x .contact-form .x-btn { margin-top: 10px; background: var(--paper); color: var(--ink); border-color: var(--paper); }
.x .contact-form .x-btn::before { background: var(--ink); }
.x .contact-form .x-btn:hover { color: var(--paper); }

/* ---------- Footer ---------- */
.x .site-footer { padding: 0 0 36px; }
.x-foot-word {
  display: block;
  padding-top: 6vw;
  margin-bottom: 3vw;
  text-align: center;
  font-family: var(--serif);
  font-size: 24.5vw;
  line-height: .78;
  letter-spacing: -.01em;
  color: var(--paper);
  white-space: nowrap;
  user-select: none;
}
.x-foot-word span { color: var(--red); }
.x .site-footer .shell { width: calc(100vw - var(--pad) * 2); max-width: 1680px; }

/* ---------- Reveal ---------- */
.x-js .rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.x-js .rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .x-svc a { grid-template-columns: 56px 1fr 30px; }
  .x-svc p { grid-column: 2; grid-row: 2; }
  .x-svc .ar { grid-row: 1; grid-column: 3; }
}

@media (max-width: 900px) {
  .x-hero-bottom { grid-template-columns: 1fr; gap: 28px; padding-bottom: 92px; }
  .x-numbers-head, .x-contact-grid { grid-template-columns: 1fr; }
  .x-numbers-head > p { justify-self: start; }
  .x-num-grid { grid-template-columns: 1fr 1fr; }
  .x-num:nth-child(3) { border-left: 0; padding-left: 0; }
  .x-num:nth-child(n+3) { padding-top: 34px; }
  .x-disc-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .x-ai { flex-direction: column; gap: 10px; }

  /* gallery becomes a vertical stack */
  .x-work { padding: 100px 0 60px; }
  .x-work-sticky { position: static; height: auto; display: block; }
  .x-track { flex-direction: column; transform: none !important; gap: 28px; }
  .x-panel, .x-panel-intro, .x-panel-cta { width: 100%; height: auto; }
  .x-case { grid-template-columns: 1fr; }
  .x-shots { aspect-ratio: 16 / 12; }
  .x-case-type { min-height: 520px; }
  .x-progress { display: none; }

  .x-aud ul { grid-template-columns: 1fr 1fr; }
  .x-aud li { padding-bottom: 24px; }
  .x-steps { grid-template-columns: 1fr; padding-left: 38px; gap: 32px; }
  .x-steps::before, .x-steps::after { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .x-steps::after { left: 6px; width: 2px; transform-origin: 50% 0; transform: scaleY(var(--sp, 0)); }
  .x-steps li { padding-top: 0; }
  .x-steps li::before { left: -38px; top: 4px; }
}

@media (max-width: 760px) {
  .x-hero-top { padding-top: 92px; flex-direction: column; gap: 8px; }
  .x-h1 { font-size: clamp(58px, 18vw, 120px); }
  .x-scroll { display: none; }
  .x-num-grid { grid-template-columns: 1fr; }
  .x-num, .x-num + .x-num { padding: 22px 0; border-left: 0; }
  .x-num + .x-num { border-top: 1px solid var(--line-l); }
  .x-facts { grid-template-columns: 1fr 1fr 1fr; }
  .x-type-big { grid-template-columns: 1fr; }
  .x-aud ul { grid-template-columns: 1fr; }
  .x-aud li + li { border-top: 1px solid var(--line-l); }
  .x-svc li:hover a { padding-left: 0; padding-right: 0; }
  .x-svc li:hover::before { transform: translateY(101%); }
  .x-svc li:hover a { color: inherit; }
  .x-svc li:hover p { color: var(--muted-l); }
  .x-contact .x-h2 { font-size: clamp(60px, 19vw, 110px); }
}

@media (prefers-reduced-motion: reduce) {
  .x-intro { display: none; }
  .x-js .rv, .x-js .x-h1 .ln > span, .x-js .x-hero-top, .x-js .x-hero-side, .x-js .x-scroll { opacity: 1 !important; transform: none !important; }
  .x-word::after { clip-path: none; }
  .x-big .w { color: var(--paper); }
  .x-status::before, .x-scroll i::after { animation: none; }
}

/* intro safety net: if JS never runs, the curtain hides itself */
.x-intro { display: none; }
.x-js .x-intro { display: block; animation: x-failsafe 0s 4s forwards; }
.x-js .x-intro.done { display: none; }
@keyframes x-failsafe { to { visibility: hidden; } }

@media (max-width: 760px) {
  .x .site-nav { color: var(--ink); }
  .x .site-nav .nav-contact { border-color: var(--ink) !important; }
}

/* header gets a quiet backdrop once scrolled, tinted to the section below */
.x .site-header.is-scrolled { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.x .site-header.is-scrolled[data-on="light"] { background: rgba(238, 228, 211, .82) !important; }
.x .site-header.is-scrolled[data-on="dark"] { background: rgba(12, 12, 12, .55) !important; }
.x .site-header.is-scrolled[data-on="red"] { background: rgba(143, 31, 31, .7) !important; }

/* ---------- Fit: good starting points vs. what we avoid ---------- */
.x-fit { background: var(--ink); color: var(--paper); padding: clamp(100px, 12vw, 180px) 0; }
.x-fit .x-label { color: var(--muted-d); }
.x-fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); margin-top: 56px; }
.x-fit h3 { margin: 0 0 18px; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.045em; }
.x-fit ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-d); }
.x-fit li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-d);
  font-size: clamp(16px, 1.3vw, 19px);
  color: #d6d1c7;
  transition: color .3s ease, padding-left .45s var(--ease);
}
.x-fit li:hover { color: var(--paper); padding-left: 8px; }
.x-fit li::before { font-family: var(--mono); font-size: 14px; padding-top: 3px; }
.x-fit .yes li::before { content: "→"; color: #3ecf6e; }
.x-fit .no li::before { content: "×"; color: var(--red); font-size: 18px; padding-top: 0; }

/* ---------- Form extras ---------- */
.x .contact-form select {
  width: 100%;
  min-height: 46px;
  padding: 8px 0 12px;
  background: transparent;
  color: var(--paper);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .46);
  border-radius: 0;
  font: inherit;
}
.x .contact-form select option { color: #111; }
.x-mail {
  display: inline-block;
  margin-top: 34px;
  font-size: clamp(22px, 2.4vw, 38px);
  letter-spacing: -.03em;
  color: var(--paper);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.x-mail:hover { background-size: 0 1px; background-position: 100% 100%; }

@media (max-width: 900px) {
  .x-fit-grid { grid-template-columns: 1fr; }
}
.x-disc-long .x-word { font-size: clamp(60px, 11.5vw, 220px); }
