/* ============================================================
   KLEXIA — design system
   Theme: obsidian dark, bone text, acid accent. One theme, locked.
   Type: Clash Display (display) / General Sans (body)
   ============================================================ */

:root {
  --bg: #0b0b0c;
  --bg-2: #101012;
  --bg-3: #151518;
  --line: rgba(234, 234, 226, 0.1);
  --line-strong: rgba(234, 234, 226, 0.22);
  --text: #eceae3;
  --text-dim: #a3a29a;
  --text-faint: #6d6c66;
  --accent: #c8f14f;
  --accent-ink: #131503;
  --radius: 14px;
  --nav-h: 72px;
  --pad: clamp(20px, 4vw, 64px);
  --font-display: 'Clash Display', 'Helvetica Neue', sans-serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0.05, 0, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* horizontal overflow (marquee, hover shifts) is clipped on main, not body:
   overflow-x: clip on body breaks painting of fixed/in-flow layers in Safari */
main { overflow-x: clip; }

::selection { background: var(--accent); color: var(--accent-ink); }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- grain overlay (fixed, non-scrolling) ---------- */
.grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: clamp(20px, 4vw, 48px);
}
.loader__brand {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.02em;
  overflow: hidden;
}
.loader__brand span { display: inline-block; transform: translateY(110%); }
.loader__count {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(64px, 14vw, 200px); line-height: 0.85;
  letter-spacing: -0.04em; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.loader__bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  transform-origin: left center; transform: scaleX(0);
  background: var(--accent);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: transform 0.5s var(--ease-out), background 0.4s ease;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-scrolled { background: rgba(11, 11, 12, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__inner {
  width: 100%; max-width: 1440px; margin: 0 auto;
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  letter-spacing: 0.01em; display: flex; align-items: center; gap: 10px;
}
.nav__logo svg { display: block; }
.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-size: 14px; font-weight: 500; color: var(--text-dim);
  transition: color 0.25s ease; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right center;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 14px; white-space: nowrap;
  padding: 13px 24px; border-radius: 999px;
  background: var(--text); color: #111;
  transition: background 0.3s ease, color 0.3s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.98); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--ghost {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--text); }
.btn--lg { font-size: 16px; padding: 18px 34px; }
.btn__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.nav__burger { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(28px, 5vh, 64px); padding-top: var(--nav-h);
  overflow: clip;
}
.hero .wrap { width: 100%; }
.hero__media {
  position: absolute; inset: 0; z-index: -1;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(11,11,12,0.5) 0%, rgba(11,11,12,0.12) 40%, rgba(11,11,12,0.8) 100%);
}
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
}
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(52px, 9.5vw, 148px);
  line-height: 0.96; letter-spacing: -0.03em;
  text-transform: none;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; will-change: transform; }
.hero__title em {
  font-style: italic; font-weight: 400;
  line-height: 1.1; padding-bottom: 0.06em;
}
.hero__foot {
  margin-top: clamp(28px, 4vh, 48px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.hero__sub {
  max-width: 44ch; color: var(--text-dim); font-size: clamp(15px, 1.3vw, 18px);
}
.hero__cta { display: flex; gap: 14px; flex-shrink: 0; }

/* ---------- manifesto ---------- */
.manifesto { padding: clamp(120px, 18vh, 220px) 0; }
.manifesto__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 4.6vw, 68px); line-height: 1.12; letter-spacing: -0.02em;
  max-width: 20ch;
}
.manifesto__text .w { color: var(--text-faint); transition: color 0.2s linear; }
.manifesto__text .w.is-on { color: var(--text); }
.manifesto__text .w.acc.is-on { color: var(--accent); }

/* ---------- services (index list + hover preview) ---------- */
.services { padding-bottom: clamp(80px, 12vh, 160px); }
.services__head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 28px;
}
.services__head h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(15px, 1.2vw, 18px); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim);
}
.services__count { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }

.svc { border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  padding: clamp(28px, 4.2vh, 48px) 0;
  cursor: pointer; position: relative;
}
.svc__name {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 5vw, 72px); letter-spacing: -0.02em; line-height: 1.02;
  transition: transform 0.5s var(--ease-out), color 0.3s ease;
}
.svc__row:hover .svc__name { transform: translateX(18px); }
.svc__meta { display: flex; align-items: center; gap: 18px; color: var(--text-dim); font-size: 14px; }
.svc__arrow {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background 0.3s ease, color 0.3s ease, transform 0.5s var(--ease-out);
}
.svc__row:hover .svc__arrow { background: var(--accent); color: var(--accent-ink); transform: rotate(45deg); }
.svc__body {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px;
  overflow: hidden; height: 0; opacity: 0;
}
.svc__desc { color: var(--text-dim); max-width: 52ch; padding-bottom: 40px; }
.svc__desc p { margin-bottom: 18px; font-size: 15.5px; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc__tags li {
  font-size: 12.5px; font-weight: 500; color: var(--text-dim);
  padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
}
.svc__img { padding-bottom: 40px; }
.svc__img img { border-radius: var(--radius); aspect-ratio: 16/10; object-fit: cover; width: 100%; }

/* floating hover preview */
.svc-preview {
  position: fixed; z-index: 70; top: 0; left: 0;
  width: min(340px, 26vw); aspect-ratio: 4/5; border-radius: var(--radius);
  overflow: hidden; pointer-events: none;
  opacity: 0; transform: scale(0.9);
  will-change: transform;
}
.svc-preview img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.35s ease;
}
.svc-preview img.is-active { opacity: 1; }

/* ---------- marquee ---------- */
.marquee {
  padding: clamp(56px, 9vh, 110px) 0; overflow: clip;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.marquee__track { display: flex; gap: 0; width: max-content; will-change: transform; }
.marquee__item {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(44px, 7vw, 110px); letter-spacing: -0.02em; line-height: 1;
  white-space: nowrap; padding-right: 0.6em;
  color: transparent; -webkit-text-stroke: 1px var(--text-faint);
}
.marquee__item.fill { color: var(--text); -webkit-text-stroke: 0; }
.marquee__item .dot { color: var(--accent); -webkit-text-stroke: 0; }

/* ---------- process (pinned steps) ---------- */
.process { position: relative; padding: clamp(100px, 14vh, 180px) 0 0; }
.process__head h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px, 5.4vw, 84px); letter-spacing: -0.025em; line-height: 1;
  max-width: 14ch;
}
.process__head p { color: var(--text-dim); max-width: 46ch; margin-top: 20px; }
.process__steps { margin-top: clamp(48px, 8vh, 96px); }
.pstep {
  position: sticky; top: var(--nav-h);
  background: var(--bg);
  border-top: 1px solid var(--line-strong);
  padding: clamp(28px, 4vh, 44px) 0 clamp(56px, 9vh, 110px);
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 64px);
  align-items: start;
}
.pstep__no {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  padding-top: 10px; min-width: 40px;
}
.pstep__name {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 4.4vw, 64px); letter-spacing: -0.02em; line-height: 1.05;
}
.pstep__desc { color: var(--text-dim); max-width: 38ch; font-size: 15.5px; padding-top: 10px; }

/* ---------- pricing ---------- */
.pricing { padding: clamp(110px, 16vh, 200px) 0 clamp(80px, 12vh, 140px); }
.pricing__head { max-width: 62ch; }
.pricing__head h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px, 5.4vw, 84px); letter-spacing: -0.025em; line-height: 1;
}
.pricing__head p { color: var(--text-dim); margin-top: 20px; max-width: 52ch; }
.pricing__grid {
  margin-top: clamp(44px, 7vh, 80px);
  display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 18px; align-items: stretch;
}
.plan {
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(26px, 3vw, 40px);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 0;
  background: var(--bg-2);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s ease;
}
.plan:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line-strong); }
.plan--featured {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: none;
}
.plan--featured:hover { box-shadow: 0 30px 80px -20px rgba(200, 241, 79, 0.25); }
.plan__name { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.plan__for { font-size: 14px; margin-top: 6px; opacity: 0.65; }
.plan__price { margin-top: 30px; font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 3.4vw, 48px); letter-spacing: -0.02em; line-height: 1; }
.plan__price small { font-size: 0.42em; font-family: var(--font-body); font-weight: 500; letter-spacing: 0; opacity: 0.65; }
.plan__unit { font-size: 13px; margin-top: 8px; opacity: 0.6; }
.plan__list { margin-top: 28px; display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan--featured .plan__list { border-color: rgba(19, 21, 3, 0.2); }
.plan__list li { font-size: 14.5px; display: flex; gap: 10px; align-items: baseline; }
.plan__list li::before { content: ""; width: 12px; height: 2px; background: currentColor; flex-shrink: 0; transform: translateY(-4px); opacity: 0.55; }
.plan__cta { margin-top: auto; padding-top: 32px; }
.plan--featured .btn { background: var(--accent-ink); color: var(--accent); }
.pricing__note { margin-top: 26px; color: var(--text-faint); font-size: 13.5px; max-width: 60ch; }

/* ---------- team ---------- */
.team { padding: clamp(100px, 14vh, 180px) 0; border-top: 1px solid var(--line); }
.team__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.team__head h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px, 5vw, 76px); letter-spacing: -0.025em; line-height: 1;
}
.team__head p { color: var(--text-dim); margin-top: 20px; max-width: 38ch; }
.team__people { display: grid; gap: 14px; }
.person {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.5s var(--ease-out);
}
.person:hover { transform: translateX(10px); }
.person__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.015em; }
.person__role { color: var(--text-dim); font-size: 14.5px; margin-top: 6px; max-width: 44ch; }
.person__mark {
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--accent);
}

/* ---------- contact ---------- */
.contact {
  position: relative; padding: clamp(130px, 20vh, 260px) 0;
  border-top: 1px solid var(--line);
  overflow: clip;
}
.contact__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(56px, 11vw, 190px); letter-spacing: -0.035em; line-height: 0.95;
}
.contact__title .line { display: block; overflow: hidden; }
.contact__title .line > span { display: inline-block; }
.contact__row {
  margin-top: clamp(36px, 6vh, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.contact__mail {
  font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 28px); font-weight: 500;
  color: var(--text-dim); transition: color 0.3s ease;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 4px;
}
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 34px; }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-faint);
}
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--text-dim); transition: color 0.25s ease; }
.footer__links a:hover { color: var(--text); }

/* ---------- reveal helpers ---------- */
.reveal { opacity: 0; transform: translateY(36px); }
.reveal-img { clip-path: inset(0 0 100% 0); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__burger {
    display: grid; place-items: center; width: 44px; height: 44px;
    border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong);
  }
  .svc-preview { display: none; }
  .svc__body { grid-template-columns: 1fr; gap: 0; }
  .pricing__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .pstep { grid-template-columns: auto 1fr; }
  .pstep__desc { grid-column: 2; }
}

@media (max-width: 767px) {
  :root { --nav-h: 62px; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__cta { flex-wrap: wrap; }
  .svc__row { grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
  .svc__arrow { width: 38px; height: 38px; }
  .person { grid-template-columns: 1fr; }
  .person__mark { order: -1; }
  .contact__row { flex-direction: column; align-items: flex-start; }
}

/* mobile menu */
.mmenu {
  position: fixed; inset: 0; z-index: 95; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--pad); padding-bottom: 48px;
  transform: translateY(-100%); visibility: hidden;
}
.mmenu__links { display: grid; gap: 6px; margin-bottom: 40px; }
.mmenu__links a {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px, 9vw, 64px); letter-spacing: -0.02em; line-height: 1.15;
}
.mmenu__close {
  position: absolute; top: 14px; right: var(--pad);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal-img { clip-path: none; }
  .loader { display: none; }
  .hero__title .line > span { transform: none !important; }
}

/* ============================================================
   polish layer
   ============================================================ */

/* thin scrollbar */
html { scrollbar-width: thin; scrollbar-color: #26262b transparent; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #26262b; border-radius: 5px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #34343a; }

/* scroll progress hairline */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 92;
  background: var(--accent); transform: scaleX(0); transform-origin: left center;
  pointer-events: none;
}

/* service row index + sweep line */
.svc__row { grid-template-columns: auto 1fr auto; }
.svc__idx {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
  padding-right: clamp(14px, 2vw, 28px); transform: translateY(0.5em);
  transition: color 0.3s ease;
}
.svc__row:hover .svc__idx { color: var(--accent); }
.svc__row::after {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left center;
  transition: transform 0.7s var(--ease-out);
}
.svc__row:hover::after { transform: scaleX(1); }

/* accordion images: grayscale until hover */
.svc__img img { filter: grayscale(1) contrast(1.05); transition: filter 0.6s ease; }
.svc:hover .svc__img img { filter: none; }

/* hover preview: room for inner parallax */
.svc-preview { will-change: transform; }
.svc-preview img { width: 112%; height: 112%; left: -6%; top: -6%; }

/* ghost typography layers */
.manifesto { position: relative; overflow: clip; }
.manifesto__ghost {
  position: absolute; top: 50%; right: -4%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(160px, 26vw, 380px); line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(234, 234, 226, 0.055);
  pointer-events: none; user-select: none;
}
.manifesto .wrap { position: relative; }

.pstep { overflow: clip; }
.pstep__ghost {
  position: absolute; right: 2%; bottom: -0.12em;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(140px, 24vh, 300px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(234, 234, 226, 0.05);
  pointer-events: none; user-select: none;
}
.pstep { position: sticky; }
.pstep > *:not(.pstep__ghost) { position: relative; }

.contact__ghost {
  position: absolute; top: 8%; left: 0; width: 100%; overflow: clip;
  pointer-events: none; user-select: none;
}
.contact__ghost span {
  display: inline-block; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(120px, 18vw, 300px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(234, 234, 226, 0.045);
}

@media (max-width: 767px) {
  .manifesto__ghost, .pstep__ghost, .contact__ghost { display: none; }
  .svc__idx { display: none; }
  .svc__row { grid-template-columns: 1fr auto; }
}

/* ============================================================
   jewellery page
   ============================================================ */

.jw-hero { position: relative; height: 160vh; }
.jw-hero__sticky {
  position: sticky; top: 0; height: 100dvh; overflow: clip;
  display: flex; align-items: flex-end;
}
.jw-hero__img {
  position: absolute; inset: 0; z-index: -1;
}
.jw-hero__img img, .jw-hero__img video {
  width: 100%; height: 100%; object-fit: cover; transform-origin: center 40%;
}
.jw-hero__vid { position: absolute; inset: 0; }
.jw-hero__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.45) 0%, rgba(11,11,12,0.05) 45%, rgba(11,11,12,0.85) 100%);
}
.jw-hero__content { width: 100%; padding-bottom: clamp(32px, 6vh, 72px); }
.jw-hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(48px, 9vw, 140px); line-height: 0.98; letter-spacing: -0.03em;
}
.jw-hero__title .line { display: block; overflow: hidden; }
.jw-hero__title .line > span { display: inline-block; }
.jw-hero__title em { font-style: italic; font-weight: 400; line-height: 1.1; }
.jw-hero__sub { color: var(--text-dim); max-width: 46ch; margin-top: 22px; }

.jw-intro { padding: clamp(110px, 16vh, 200px) 0; }
.jw-intro p {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 3.8vw, 54px); line-height: 1.15; letter-spacing: -0.02em;
  max-width: 24ch;
}
.jw-intro p .acc { color: var(--accent); }

/* sticky image stack */
.jw-stack { position: relative; }
.jw-card {
  position: sticky; top: 0; height: 100dvh; overflow: clip;
  display: flex; align-items: flex-end;
}
.jw-card__img { position: absolute; inset: 0; z-index: -1; }
.jw-card__img img { width: 100%; height: 100%; object-fit: cover; }
.jw-card__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.2) 0%, rgba(11,11,12,0.05) 50%, rgba(11,11,12,0.75) 100%);
}
.jw-card__label {
  width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding-bottom: clamp(28px, 5vh, 56px);
}
.jw-card__name {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 5.5vw, 84px); letter-spacing: -0.025em; line-height: 1;
}
.jw-card__note { color: var(--text-dim); font-size: 15px; max-width: 34ch; text-align: right; }

/* horizontal strip */
.jw-strip { position: relative; overflow: clip; }
.jw-strip__track {
  display: flex; gap: clamp(16px, 2vw, 32px); align-items: center;
  height: 100dvh; padding: 0 var(--pad); width: max-content;
}
.jw-strip__item { flex-shrink: 0; width: clamp(300px, 34vw, 560px); }
.jw-strip__item img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius);
}
.jw-strip__item.wide { width: clamp(420px, 52vw, 860px); }
.jw-strip__item.wide img { aspect-ratio: 16/10; }
.jw-strip__cap { margin-top: 14px; color: var(--text-dim); font-size: 14px; }

/* rates + cta */
.jw-rates { padding: clamp(100px, 15vh, 190px) 0; }
.jw-rates__row {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--line); padding-top: 36px;
}
.jw-rate { min-width: 180px; }
.jw-rate__price {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -0.02em;
}
.jw-rate__price small { font-size: 0.42em; font-family: var(--font-body); opacity: 0.6; }
.jw-rate__label { color: var(--text-dim); font-size: 14px; margin-top: 6px; }

.jw-cta { padding: clamp(110px, 18vh, 220px) 0; border-top: 1px solid var(--line); }
.jw-cta h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(44px, 8vw, 130px); letter-spacing: -0.03em; line-height: 0.98;
}
.jw-cta .btn { margin-top: 40px; }

@media (max-width: 767px) {
  .jw-card__label { flex-direction: column; align-items: flex-start; gap: 10px; }
  .jw-card__note { text-align: left; }
  .jw-strip__track { height: auto; flex-direction: column; width: 100%; padding: 60px var(--pad); align-items: stretch; }
  .jw-strip__item, .jw-strip__item.wide { width: 100%; }
}
.svc-preview img { transform: translateX(var(--pshift, 0px)); }

/* ============================================================
   ai page
   ============================================================ */

.ai-hero { position: relative; height: 100dvh; overflow: clip; display: flex; align-items: flex-end; }
.ai-hero__img { position: absolute; inset: 0; z-index: -1; }
.ai-hero__img img {
  width: 100%; height: 112%; object-fit: cover; transform-origin: center 30%;
}
.ai-hero__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.5) 0%, rgba(11,11,12,0.08) 42%, rgba(11,11,12,0.88) 100%);
}
.ai-hero__content { width: 100%; padding-bottom: clamp(32px, 6vh, 72px); }
.ai-hero__eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--text-dim); margin-bottom: 22px;
}
.ai-hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(48px, 9vw, 140px); line-height: 0.98; letter-spacing: -0.03em;
}
.ai-hero__title .line { display: block; overflow: hidden; }
.ai-hero__title .line > span { display: inline-block; }
.ai-hero__title em { font-style: italic; font-weight: 400; line-height: 1.1; color: var(--accent); }
.ai-hero__sub { color: var(--text-dim); max-width: 48ch; margin-top: 22px; }

.ai-intro { padding: clamp(110px, 16vh, 200px) 0; }
.ai-intro p {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 3.8vw, 54px); line-height: 1.15; letter-spacing: -0.02em;
  max-width: 26ch;
}
.ai-intro p .acc { color: var(--accent); }

/* chapters */
.ai-ch { padding: clamp(50px, 8vh, 110px) 0; }
.ai-ch__grid {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 90px);
  align-items: center;
}
.ai-ch--flip .ai-ch__media { order: 2; }
.ai-ch--flip .ai-ch__text { order: 1; }
.ai-ch__media { border-radius: var(--radius); overflow: clip; }
.ai-ch__media img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.ai-ch__idx {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em;
  color: var(--accent); display: block; margin-bottom: 14px;
}
.ai-ch__name {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 4.6vw, 68px); letter-spacing: -0.025em; line-height: 1;
}
.ai-ch__desc { color: var(--text-dim); margin-top: 18px; max-width: 40ch; }
.ai-ch__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ai-ch__tags li {
  font-size: 12.5px; color: var(--text-dim);
  border: 1px solid var(--line-strong); border-radius: 100px; padding: 6px 14px;
}

/* principles */
.ai-prin { padding: clamp(110px, 16vh, 210px) 0; border-top: 1px solid var(--line); }
.ai-prin__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 90px); align-items: start; }
.ai-prin__title {
  position: sticky; top: calc(var(--nav-h) + 6vh);
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 6.5vw, 104px); letter-spacing: -0.03em; line-height: 0.98;
}
.ai-prin__list { counter-reset: prin; }
.ai-prin__item {
  counter-increment: prin;
  position: relative; padding: clamp(28px, 4.5vh, 48px) 0 clamp(28px, 4.5vh, 48px) 64px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(17px, 1.7vw, 22px); line-height: 1.5;
  color: var(--text-faint); transition: color 0.5s ease;
}
.ai-prin__item:first-child { border-top: 1px solid var(--line); }
.ai-prin__item strong { font-weight: 600; color: inherit; transition: color 0.5s ease; }
.ai-prin__item::before {
  content: "0" counter(prin);
  position: absolute; left: 0; top: clamp(32px, 5vh, 52px);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em;
  color: var(--text-faint); transition: color 0.5s ease;
}
.ai-prin__item.is-lit { color: var(--text-dim); }
.ai-prin__item.is-lit strong { color: var(--text); }
.ai-prin__item.is-lit::before { color: var(--accent); }

/* corridor band */
.ai-band { position: relative; height: clamp(380px, 72vh, 760px); overflow: clip; display: flex; align-items: flex-end; }
.ai-band img {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 124%; object-fit: cover; top: -12%;
}
.ai-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.1) 50%, rgba(11,11,12,0.7) 100%);
}
.ai-band__cap {
  width: 100%; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em;
  color: var(--text-dim); padding-bottom: 34px;
}

/* cta */
.ai-cta { padding: clamp(110px, 18vh, 220px) 0; border-top: 1px solid var(--line); }
.ai-cta h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(44px, 8vw, 130px); letter-spacing: -0.03em; line-height: 0.98;
}
.ai-cta .btn { margin-top: 40px; }
.ai-cta__note { color: var(--text-dim); font-size: 14px; margin-top: 26px; }
.ai-cta__link { text-decoration: underline; text-underline-offset: 3px; }
.ai-cta__link:hover { color: var(--text); }

@media (max-width: 767px) {
  .ai-ch__grid { grid-template-columns: 1fr; gap: 22px; }
  .ai-ch--flip .ai-ch__media { order: 0; }
  .ai-ch--flip .ai-ch__text { order: 1; }
  .ai-prin__grid { grid-template-columns: 1fr; }
  .ai-prin__title { position: static; margin-bottom: 12px; }
  .ai-prin__item { padding-left: 48px; }
}
