:root {
  --bg: #eeebe4;
  --surface: #ffffff;
  --ink: #121212;
  --muted: #666660;
  --accent: #c43d28;
  --accent-2: #e8a04a;
  --accent-soft: rgba(196, 61, 40, 0.14);
  --accent-glow: rgba(232, 160, 74, 0.42);
  --line: rgba(18, 18, 18, 0.12);
  --line-strong: rgba(18, 18, 18, 0.22);
  --inverse: #121212;
  --inverse-text: #eeebe4;
  --sans: "Onest", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Floating plaques — Gorilla Glass / device frames (screenshots only) */
  --plaque-radius: 20px;
  --plaque-radius-sm: 14px;
  --plaque-border: 1px solid rgba(255, 255, 255, 0.32);
  --plaque-bg: #161614;
  /* Specular edge + refractive rim (inset) — stronger glass bezel */
  --plaque-edge:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 1px 0 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 1px rgba(0, 0, 0, 0.38),
    inset -1px 0 0 rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  --plaque-edge-lift:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    inset 1px 0 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 1px rgba(0, 0, 0, 0.4),
    inset -1px 0 0 rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  /* Contact + deep ambient float (warm, matches cream page) */
  --plaque-shadow:
    var(--plaque-edge),
    0 1px 2px rgba(40, 34, 24, 0.16),
    0 8px 18px rgba(40, 34, 24, 0.1),
    0 22px 44px rgba(40, 34, 24, 0.14),
    0 48px 96px rgba(40, 34, 24, 0.18);
  --plaque-shadow-lift:
    var(--plaque-edge-lift),
    0 2px 4px rgba(40, 34, 24, 0.18),
    0 12px 26px rgba(40, 34, 24, 0.12),
    0 32px 64px rgba(40, 34, 24, 0.16),
    0 60px 120px rgba(40, 34, 24, 0.22);
  --plaque-lift: -6px;
  --plaque-sheen: linear-gradient(
    122deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.07) 16%,
    rgba(255, 255, 255, 0.02) 34%,
    transparent 52%
  );
  --plaque-sheen-hover: linear-gradient(
    136deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 18%,
    rgba(255, 255, 255, 0.02) 36%,
    transparent 54%
  );
  --plaque-transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
  --plaque-ty: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --sheen-x: 48%;
  --sheen-y: 28%;
  /* Soft editorial chips / tags — light frost, not full-site glass */
  --chip-radius: 10px;
  --chip-bg: rgba(255, 255, 255, 0.55);
  --chip-border: 1px solid rgba(18, 18, 18, 0.1);
  --chip-ink: var(--ink);
  --chip-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 1px 2px rgba(40, 34, 24, 0.04);
  --chip-sheen: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28) 0%,
    transparent 70%
  );
  /* Scroll “camera” on case plaques (driven by JS) */
  --cam-rx: 0deg;
  --cam-scale: 1;
  --cam-elev: 0;

  /* Stacking tokens */
  --z-header: 1000;
  --z-skip-link: 1100;
  --z-progress: 1101;
  --z-mobile-menu: 1200;
  --z-lightbox: 1300;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/onest-cyrillic-ext.woff2") format("woff2");
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
}

@view-transition {
  navigation: auto;
}
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.wrap {
  /* Editorial content column — avoid ultrawide lonely voids */
  width: min(calc(100% - 40px), 1180px);
  margin: 0 auto;
}
@media (min-width: 900px) {
  .wrap {
    width: min(calc(100% - 56px), 1180px);
  }
}
@media (min-width: 1400px) {
  .wrap {
    width: min(calc(100% - 72px), 1200px);
  }
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 70% 45% at 8% -5%,
      rgba(255, 255, 255, 0.72),
      transparent 60%
    ),
    radial-gradient(
      ellipse 55% 40% at 100% 8%,
      rgba(210, 198, 168, 0.22),
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 35% at 70% 100%,
      rgba(180, 190, 170, 0.1),
      transparent 60%
    );
}
.progress-bar {
  position: fixed;
  z-index: var(--z-progress);
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left;
  pointer-events: none;
}
.skip-link {
  position: absolute;
  z-index: var(--z-skip-link);
  top: -100%;
  left: 16px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--inverse-text);
  font-weight: 700;
}
.skip-link:focus {
  top: 16px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    gap 0.25s var(--ease),
    transform 0.35s var(--ease);
}
.link-arrow:hover {
  gap: 12px;
}
.hero-scroll,
.header-cta,
.case-link {
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

/* Header — sticky frosted glass */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  background: rgba(238, 235, 228, 0.72);
  backdrop-filter: saturate(1.15) blur(14px);
  -webkit-backdrop-filter: saturate(1.15) blur(14px);
  box-shadow: none;
  transition:
    transform 0.4s var(--ease),
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.header.is-scrolled {
  background: rgba(238, 235, 228, 0.88);
  border-bottom-color: var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 6px 20px rgba(40, 34, 24, 0.05);
}
.header.is-hidden {
  transform: translateY(-100%);
}
.header.is-hidden:focus-within {
  transform: translateY(0);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.mark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  font-size: 15px;
  font-weight: 500;
}
.nav > a {
  position: relative;
  display: inline-block;
  overflow: hidden;
  line-height: 1.4;
  transition: color 0.2s ease;
}
.nav > a::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  font-weight: 600;
}
.nav > a > span {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.nav > a::before,
.nav > a > span {
  will-change: transform;
}
.nav > a:hover > span {
  transform: translateY(-100%);
}
.nav > a::before {
  transform: translateY(0);
  transition: transform 0.35s var(--ease);
}
.nav > a:hover::before {
  transform: translateY(-100%);
}
.nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav > a.is-active::after,
.nav > a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-item--dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"] {
  font-weight: 600;
}
.nav-caret {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-top: -2px;
  border: 0;
  background: transparent;
  font-size: 0;
  line-height: 0;
  color: transparent;
  transition: transform 0.2s ease;
}
.nav-caret::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  color: var(--ink);
  transform: rotate(45deg);
  opacity: 0.7;
}
.nav-dropdown-toggle[aria-expanded="true"] .nav-caret,
.nav-item--dropdown.is-open .nav-caret {
  transform: rotate(180deg);
}
.nav-dropdown {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 10px);
  left: 50%;
  width: 220px;
  padding: 10px 0;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 0;
  background: var(--bg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.nav-item--dropdown.is-open .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
@media (hover: hover) and (pointer: fine) {
  .nav-item--dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .nav-item--dropdown:hover .nav-caret {
    transform: rotate(180deg);
  }
}
.nav-dropdown a {
  position: relative;
  display: block;
  padding: 11px 16px 11px 16px;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
  transition:
    background 0.18s ease,
    padding-left 0.18s ease,
    color 0.18s ease;
}
.nav-dropdown a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%) scale(0);
  opacity: 0;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  padding-left: 20px;
  background: rgba(18, 18, 18, 0.045);
  outline: none;
}
.nav-dropdown a:hover::before,
.nav-dropdown a:focus-visible::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}
.nav-dropdown a[aria-current="page"] {
  padding-left: 20px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
}
.nav-dropdown a[aria-current="page"]::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}
.header-cta {
  justify-self: end;
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease), border-color 0.35s ease;
}
.header-cta:hover {
  color: var(--inverse-text);
  border-color: var(--accent);
  opacity: 1;
}
.menu-button,
.mobile-menu {
  display: none;
}

/* Hero — cream editorial stage; glass only on the copy panel (option 3) */
.hero {
  position: relative;
  min-height: min(62vh, 580px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(165deg, #f2efe8 0%, #eeebe4 42%, #e6e1d6 100%);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.hero-stage {
  position: relative;
  z-index: 2;
  display: block;
  padding: clamp(64px, 8vh, 84px) 0 clamp(48px, 6vh, 68px);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 34rem;
  padding: clamp(22px, 3vw, 34px) clamp(22px, 3.2vw, 40px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 252, 246, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(40, 34, 24, 0.05),
    0 1px 2px rgba(40, 34, 24, 0.05),
    0 14px 40px rgba(40, 34, 24, 0.09);
  backdrop-filter: saturate(1.12) blur(22px);
  -webkit-backdrop-filter: saturate(1.12) blur(22px);
  pointer-events: none;
  --depth-x: 0px;
  --depth-y: 0px;
}
.hero-content a {
  pointer-events: auto;
}
.hero-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.06) 38%,
    transparent 62%
  );
  pointer-events: none;
}
.hero-mark {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: clamp(140px, 18vw, 240px);
  aspect-ratio: 1;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  opacity: 0.92;
}
.hero-mark > * {
  min-width: 0;
  min-height: 0;
}
.hero-mark-letter {
  position: relative;
  z-index: 1;
  font-size: clamp(120px, 16vw, 200px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.85;
  color: rgba(18, 18, 18, 0.82);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35),
    0 22px 50px rgba(18, 18, 18, 0.16);
  transform-origin: center center;
  will-change: transform;
}
.hero-mark-dot {
  position: absolute;
  right: 18%;
  bottom: 22%;
  z-index: 2;
  width: clamp(12px, 1.4vw, 18px);
  height: clamp(12px, 1.4vw, 18px);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(196, 61, 40, 0.35);
  /* без transform:scale — иначе конфликт с translate родителя и «прыжки» */
  animation: mark-dot 2.8s ease-in-out infinite;
}
@keyframes mark-dot {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(196, 61, 40, 0.3);
  }
  50% {
    opacity: 0.88;
    box-shadow: 0 0 0 10px rgba(196, 61, 40, 0);
  }
}
@media (max-width: 560px) {
  .hero-mark {
    width: clamp(100px, 34vw, 140px);
  }
  .hero-mark-letter {
    font-size: clamp(84px, 30vw, 120px);
  }
}
.hero-eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-eyebrow span {
  color: var(--accent);
}
.hero-title {
  margin: 0;
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
}
@media (min-width: 1600px) {
  .hero-title {
    font-size: clamp(96px, 7vw, 128px);
  }
}
.hero-lead {
  margin: 20px 0 0;
  max-width: 32ch;
  color: var(--ink);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.45;
  opacity: 0.78;
}
.hero-scroll {
  display: inline-block;
  margin-top: 28px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
  transition: color 0.2s ease;
}
.hero-scroll:hover {
  color: var(--accent);
}

.hero-hud {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  --depth-x: 0px;
  --depth-y: 0px;
  transform: translate3d(var(--depth-x), var(--depth-y), 0);
  will-change: transform;
}
.hero-hud-corners::before,
.hero-hud-corners::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--accent);
  opacity: 0.75;
}
.hero-hud-corners::before {
  top: 14px;
  left: 14px;
  border-right: 0;
  border-bottom: 0;
}
.hero-hud-corners::after {
  right: 14px;
  bottom: 14px;
  border-left: 0;
  border-top: 0;
}
.hero-hud::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(18, 18, 18, 0.28);
  border-left: 0;
  border-bottom: 0;
}
.hero-hud::after {
  content: "";
  position: absolute;
  bottom: 14px;
  left: 14px;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(18, 18, 18, 0.28);
  border-right: 0;
  border-top: 0;
}
.hero-hud-meta,
.hero-hud-clock {
  position: absolute;
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-hud-meta {
  top: 18px;
  left: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
}
.hero-hud-meta span:last-child {
  /* Darker than --accent so 11px label clears AA on cream */
  color: #a82d1e;
}
.hero-hud-clock {
  right: 42px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  text-align: right;
  color: var(--ink);
}
.hero-hud-clock small {
  color: var(--muted);
  font-size: 10px;
}
@media (max-width: 720px) {
  .hero {
    min-height: min(78vh, 620px);
  }
  .hero-stage {
    padding-top: clamp(88px, 12vh, 120px);
  }
  .hero-hud-meta {
    left: 36px;
    right: 36px;
  }
}

/* Tech strip */
.tech-strip {
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  white-space: nowrap;
}
.tech-strip-track {
  display: inline-flex;
  align-items: center;
  animation: marquee 40s linear infinite;
}
.tech-strip-track span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tech-strip-track span::after {
  content: "";
  width: 3px;
  height: 3px;
  background: var(--accent);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Sections — one tight header cluster (not title↔CTA across a void) */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  margin-bottom: 40px;
  max-width: 42rem;
  align-items: center;
}
.index {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  grid-column: 1;
  grid-row: 1;
}
.index::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
  transform: translateY(-1px);
}
.section-head h2,
.process h2,
.about h2,
.contact h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}
.section-head h2 {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 4px;
}
.section-note {
  grid-column: 1 / -1;
  grid-row: 3;
  max-width: 42ch;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
  justify-self: start;
}
.section-cta {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    color 0.35s var(--ease),
    border-color 0.35s ease,
    transform 0.35s var(--ease),
    box-shadow 0.35s ease;
}
.section-cta:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 14px 36px var(--accent-soft);
}
.section-head:not(:has(.section-cta)) .index {
  grid-column: 1 / -1;
}

/* Work section — cases follow section head directly */
.work {
  padding: 72px 0 40px;
}

/* Floating plaques — shared Gorilla Glass frames for screenshot / mockup */
.case-stage,
.concept-visual,
.portfolio-item .shot-zoom,
.article-cover,
.case-shots figure {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--plaque-radius);
  border: var(--plaque-border);
  background: var(--plaque-bg);
  box-shadow: var(--plaque-shadow);
  transition: var(--plaque-transition);
}
/* 3D scroll camera only — no pointer tilt / hover lift (those twitch) */
.case-stage,
.concept-visual,
.portfolio-item .shot-zoom {
  transform: translateY(var(--plaque-ty)) scale(var(--cam-scale))
    rotateX(var(--cam-rx));
}
/* Deeper ambient while camera is still “approaching” */
.case .case-stage {
  box-shadow:
    var(--plaque-edge),
    0 1px 2px rgba(40, 34, 24, calc(0.14 + 0.1 * var(--cam-elev))),
    0 6px 14px rgba(40, 34, 24, calc(0.08 + 0.1 * var(--cam-elev))),
    0 calc(18px + 28px * var(--cam-elev)) calc(36px + 40px * var(--cam-elev))
      rgba(40, 34, 24, calc(0.12 + 0.14 * var(--cam-elev))),
    0 calc(42px + 40px * var(--cam-elev)) calc(84px + 60px * var(--cam-elev))
      rgba(40, 34, 24, calc(0.16 + 0.16 * var(--cam-elev)));
}
.case .case-stage:hover,
.case .case-stage:focus-visible {
  box-shadow:
    var(--plaque-edge-lift),
    0 2px 4px rgba(40, 34, 24, calc(0.16 + 0.08 * var(--cam-elev))),
    0 10px 22px rgba(40, 34, 24, calc(0.1 + 0.08 * var(--cam-elev))),
    0 calc(28px + 24px * var(--cam-elev)) calc(56px + 36px * var(--cam-elev))
      rgba(40, 34, 24, calc(0.14 + 0.12 * var(--cam-elev))),
    0 calc(56px + 32px * var(--cam-elev)) calc(112px + 48px * var(--cam-elev))
      rgba(40, 34, 24, calc(0.2 + 0.12 * var(--cam-elev)));
}
/* Glossy sheen — glass plaque surface, keeps screenshots readable */
.case-stage::after,
.concept-visual::after,
.portfolio-item .shot-zoom::after,
.article-cover::after,
.case-shots figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: var(--plaque-sheen);
  opacity: 0.72;
  transition: background 0.45s var(--ease), opacity 0.45s var(--ease);
}
/* Pointer-driven sheen highlight on interactive plaques */
.case-stage::after,
.concept-visual::after,
.portfolio-item .shot-zoom::after {
  background:
    radial-gradient(
      120% 90% at var(--sheen-x) var(--sheen-y),
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.06) 22%,
      rgba(255, 255, 255, 0.02) 42%,
      transparent 58%
    ),
    var(--plaque-sheen);
}
.article-cover,
.case-shots figure {
  background: var(--surface);
  border-color: rgba(18, 18, 18, 0.1);
}
@media (hover: hover) and (pointer: fine) {
  .case:has(.case-stage):not(:has(.swiper)),
  .portfolio-item:has(.shot-zoom) {
    perspective: 960px;
    perspective-origin: 50% 42%;
  }
  .case-stage,
  .concept-visual,
  .portfolio-item .shot-zoom {
    /* JS sheen only — avoid CSS transition fighting rAF */
    transition: box-shadow 0.45s var(--ease);
  }
}
@media (hover: hover) {
  a.case-stage:hover,
  button.case-stage:hover,
  button.case-stage:focus-visible,
  .concept:hover .concept-visual,
  .portfolio-item .shot-zoom:hover,
  .portfolio-item .shot-zoom:focus-visible {
    /* Stable hover: shadow + sheen only — no translateY lift */
    box-shadow: var(--plaque-shadow-lift);
  }
  a.case-stage:hover::after,
  button.case-stage:hover::after,
  button.case-stage:focus-visible::after,
  .concept:hover .concept-visual::after,
  .portfolio-item .shot-zoom:hover::after,
  .portfolio-item .shot-zoom:focus-visible::after {
    background:
      radial-gradient(
        120% 90% at var(--sheen-x) var(--sheen-y),
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.07) 24%,
        rgba(255, 255, 255, 0.02) 44%,
        transparent 60%
      ),
      var(--plaque-sheen-hover);
    opacity: 0.85;
  }
}

/* Cases — each as one chapter composition (header + stage + details) */
.case {
  margin: 24px 0 32px;
  padding: clamp(22px, 2.8vw, 36px);
  scroll-margin-top: 88px;
  overflow-anchor: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 40px rgba(40, 34, 24, 0.04);
}
.case:first-of-type {
  margin-top: 8px;
}
.case-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  max-width: 36rem;
}
.case-meta > div:not(.case-actions) {
  display: grid;
  gap: 4px;
}
.case-meta > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  order: -1;
}
.progress {
  color: var(--ink) !important;
  font-weight: 600;
  text-align: left;
}
.case-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 18px;
  margin-top: 4px;
}
.case-actions .progress {
  margin: 0;
}
.case-link {
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
}
.case-link:hover {
  opacity: 0.55;
}
.case-meta h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.case-meta div > span {
  color: var(--muted);
  font-size: 16px;
}

.case-stage {
  display: block;
  max-width: 860px;
  margin-inline: auto;
  overflow: hidden;
}
.case-chrome {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(
      180deg,
      rgba(88, 86, 78, 0.62) 0%,
      rgba(42, 41, 37, 0.94) 40%,
      rgba(24, 23, 21, 0.99) 100%
    ),
    #22211e;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.42);
}
.case-chrome-dark {
  background:
    linear-gradient(
      180deg,
      rgba(48, 46, 42, 0.5) 0%,
      rgba(24, 23, 21, 0.95) 48%,
      rgba(16, 15, 14, 0.99) 100%
    ),
    #141413;
}
.case-chrome span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7a7872;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.case-chrome b {
  margin-left: 8px;
  color: rgba(238, 235, 228, 0.58);
  font-size: 12px;
  font-weight: 500;
}
.case-shot {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #111;
}
.case-shot picture,
.case-shot img {
  display: block;
  width: 100%;
}
.case-shot img {
  height: auto;
  max-height: 400px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s var(--ease);
}
@media (hover: hover) {
  a.case-stage:hover .case-shot img,
  button.case-stage:hover .case-shot img {
    transform: scale(1.04) translate3d(0, -1.8%, 0);
  }
}

.case-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.case-gallery-item {
  margin: 0;
}
.case-gallery-item figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.case-gallery .case-shot img {
  aspect-ratio: 16 / 10;
}

.case-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 28px;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  /* Full chapter width — calm footer band of the same card */
  max-width: none;
}
.case-details div {
  display: grid;
  gap: 8px;
}
.case-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.case-details dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
.work-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
  padding: 28px 0 8px;
  border-top: 1px solid var(--line-strong);
}
.work-cta p {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.concept-grid--teaser {
  margin-top: 4px;
}
.concept-grid--teaser .shot-zoom {
  display: block;
  width: 100%;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.concept-grid--teaser .concept-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top center;
}

/* Concepts — one band: header + stage share the same measure */
.concepts {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.concepts-band {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.concepts-band .section-head {
  margin-bottom: 8px;
}
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
}
@media (max-width: 1100px) {
  .concept-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.concept {
  display: grid;
  gap: 14px;
}
.concept-visual {
  margin: 0;
  overflow: hidden;
}
.concept-visual picture,
.concept-visual img {
  display: block;
  width: 100%;
}
.concept-visual img {
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.65s var(--ease);
}
@media (hover: hover) {
  .concept.is-visible:hover .concept-visual img {
    transform: scale(1.03);
  }
}
.concept-meta h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.concept-meta p {
  margin: 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Carousel — stage height fixed, captions fade only */
.case-swiper,
.concepts-swiper {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 8px;
  margin-inline: auto;
  padding: 20px 12px 16px;
  max-width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-anchor: none;
  /* Wheel/trackpad over the grey stage advances slides */
  overscroll-behavior: contain;
  /* Let Swiper own horizontal gestures; vertical wheel is handled in JS */
  touch-action: pan-y;
}
.concepts-swiper {
  margin-top: 4px;
  padding: 24px 16px 18px;
  border-radius: 20px;
}
.case-swiper .swiper-wrapper,
.concepts-swiper .swiper-wrapper {
  align-items: stretch;
}
.case-swiper .swiper-slide,
.concepts-swiper .swiper-slide {
  /* Width comes from Swiper slidesPerView (loop-stable); no CSS auto widths */
  height: auto;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  /* Coverflow owns transform; keep neighbors readable */
  opacity: 1;
  filter: none;
  backface-visibility: hidden;
}
.concepts-swiper .swiper-slide {
  gap: 12px;
}
.case-swiper .swiper-slide-active,
.concepts-swiper .swiper-slide-active {
  z-index: 2;
}
/* Captions: fade only — fixed box so bottom never jumps */
.concepts-swiper .swiper-slide .concept-meta,
.case-swiper .swiper-slide figcaption {
  flex: 0 0 auto;
  transition: opacity 0.28s var(--ease);
}
.case-swiper .swiper-slide figcaption {
  min-height: 2.7em;
  margin-top: 12px;
}
.concepts-swiper .swiper-slide .concept-meta {
  min-height: 5.6rem;
}
.concepts-swiper .swiper-slide .concept-meta h3 {
  font-size: clamp(18px, 1.6vw, 22px);
}
.concepts-swiper .swiper-slide .concept-meta p {
  font-size: 14px;
}
.concepts-swiper .swiper-slide:not(.swiper-slide-active) .concept-meta,
.case-swiper .swiper-slide:not(.swiper-slide-active) figcaption {
  opacity: 0;
  pointer-events: none;
}
.concepts-swiper .swiper-slide-active .concept-meta,
.case-swiper .swiper-slide-active figcaption {
  opacity: 1;
}
/* Plaques inside Swiper: Swiper owns transform — no local 3D / camera */
.case-swiper .case-stage,
.concepts-swiper .concept-visual {
  transform: none !important;
  --cam-rx: 0deg;
  --cam-scale: 1;
  --cam-elev: 0;
  --plaque-ty: 0px;
}
/*
 * Gestures must reach the stage: chrome / sheen / captions don’t steal
 * pointer or wheel. Zoom still opens via click on the plaque button.
 */
.case-swiper .case-chrome,
.case-swiper .case-shot,
.case-swiper .case-shot picture,
.case-swiper .case-shot img,
.concepts-swiper .concept-visual img,
.case-swiper .case-stage::after,
.concepts-swiper .shot-zoom::after {
  pointer-events: none;
}
.case-swiper .case-stage,
.concepts-swiper .shot-zoom {
  touch-action: pan-y;
  -webkit-user-drag: none;
  user-select: none;
}
.case-swiper .case-stage {
  max-width: none;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.concepts-swiper .concept-visual {
  flex: 0 0 auto;
  margin: 0;
  width: 100%;
}
.concepts-swiper .concept-visual .shot-zoom {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  padding: 0;
  cursor: zoom-in;
  transform: none !important;
}
.concepts-swiper .concept-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
/* Equalize landscape vs device plaques so wrapper height stays put */
.case-swiper .case-shot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  height: clamp(260px, 38vw, 340px);
  min-height: 0;
}
.case-swiper .case-shot picture {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
}
.case-swiper .case-shot img {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: top center;
}
.case-shot--device {
  display: grid;
  place-items: start center;
  background: #111;
}
.case-shot--device img {
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
  max-height: 480px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}
.case-swiper .case-shot--device {
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-swiper .case-shot--device picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.case-swiper .case-shot--device img {
  width: auto;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  aspect-ratio: 9 / 16;
}
.case-auto .case-swiper,
.case-vag .case-swiper {
  margin-top: 4px;
}

/* Subtle editorial dots — orientation only, no arrows */
.swiper-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  padding: 10px 0 2px;
  position: relative;
  z-index: 3;
}
.swiper-dot {
  position: relative;
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid rgba(18, 18, 18, 0.28);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s var(--ease);
}
/* Expand hit target while keeping the visual dot small */
.swiper-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}
.swiper-dot:hover {
  border-color: rgba(18, 18, 18, 0.55);
}
.swiper-dot:focus-visible {
  border-color: rgba(18, 18, 18, 0.55);
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}
.swiper-dot.is-active {
  background: var(--ink);
  border-color: var(--ink);
  transform: scale(1.15);
}

@media (max-width: 720px) {
  .case {
    padding: 18px 14px 20px;
    border-radius: 16px;
  }
  .case-swiper,
  .concepts-swiper {
    margin-top: 8px;
    padding: 10px 0 12px;
    max-width: none;
    overflow: hidden;
  }
  .case-swiper .case-shot {
    height: clamp(200px, 58vw, 280px);
  }
  .case-swiper .case-shot--device img {
    max-height: 100%;
  }
}

.carousel {
  position: relative;
}
.carousel-controls {
  position: absolute;
  top: -68px;
  right: 0;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.carousel-controls button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.carousel-controls button:hover {
  background: var(--ink);
  color: var(--inverse-text);
  border-color: var(--ink);
}
.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.carousel-dot {
  position: relative;
  width: 36px;
  height: 3px;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--line-strong);
  cursor: pointer;
}
.carousel-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
}
.carousel-dot.is-active::after {
  animation: carousel-fill var(--progress-ms, 4200ms) linear forwards;
}
.carousel.is-paused .carousel-dot.is-active::after {
  animation-play-state: paused;
}
@keyframes carousel-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@media (max-width: 720px) {
  .carousel-controls {
    position: static;
    justify-content: flex-end;
    margin-bottom: 14px;
  }
}

/* Zoom / lightbox */
.shot-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}
button.case-stage {
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}
.case-stage .case-chrome {
  display: flex;
}
.case-stage .case-shot {
  display: block;
}
.shot-zoom .zoom-hint,
.case-stage .zoom-hint {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  background: rgba(18, 18, 18, 0.82);
  color: var(--inverse-text);
  font-size: 13px;
  font-weight: 600;
  /* Always faintly visible on touch; full on hover/focus for pointer devices */
  opacity: 0.62;
  transition: opacity 0.25s ease;
  /*
   * Hint is decorative for hit-testing: pointer-events none so wheel /
   * light swipe work over the corner. Zoom opens on plaque click.
   * swiper-no-swiping stays on the chip as a belt-and-suspenders guard.
   */
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .shot-zoom .zoom-hint,
  .case-stage .zoom-hint {
    opacity: 0;
  }
  .case-stage:hover .zoom-hint,
  .concept-visual:hover .zoom-hint,
  .shot-zoom:hover .zoom-hint,
  .shot-zoom:focus-visible .zoom-hint {
    opacity: 1;
  }
}
.shot-zoom:focus-visible,
button.case-stage:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.shot-zoom:focus-visible .zoom-hint,
.case-stage:focus-visible .zoom-hint {
  opacity: 1;
}

.lightbox {
  position: fixed;
  z-index: var(--z-lightbox);
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(14, 14, 13, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lightbox[hidden] {
  display: none;
}
.lightbox button[hidden] {
  display: none;
}
.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(96vw, 1500px);
  max-height: 100%;
  margin: 0;
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  transition:
    opacity 0.34s var(--ease),
    transform 0.34s var(--ease);
}
.lightbox.is-open figure {
  opacity: 1;
  transform: none;
}
.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  background: #fff;
}
.lightbox figcaption {
  color: rgba(238, 235, 228, 0.8);
  font-size: 15px;
}
.lightbox-counter {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 2;
  margin: 0;
  transform: translateX(-50%);
  padding: 6px 12px;
  border: 1px solid rgba(238, 235, 228, 0.22);
  background: rgba(18, 18, 18, 0.55);
  color: rgba(238, 235, 228, 0.88);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(238, 235, 228, 0.3);
  background: rgba(18, 18, 18, 0.6);
  color: var(--inverse-text);
  cursor: pointer;
  font-size: 20px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(238, 235, 228, 0.16);
  border-color: rgba(238, 235, 228, 0.6);
}
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 2px solid var(--inverse-text);
  outline-offset: 3px;
}
.lightbox-close {
  top: 18px;
  right: 18px;
}
.lightbox-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}
@media (hover: none), (pointer: coarse) {
  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    opacity: 0.55;
    font-size: 17px;
  }
}
body.is-scroll-locked {
  overflow: hidden;
  touch-action: none;
}

/* Portfolio page */
.portfolio-hero {
  min-height: 0;
  align-items: flex-start;
  padding: 0 0 20px;
  overflow: visible;
}
.portfolio-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
  gap: 16px clamp(36px, 4.5vw, 72px);
  align-items: start;
}
.portfolio-intro-main {
  min-width: 0;
}
.portfolio-intro-aside {
  min-width: 0;
  padding-top: 2px;
}
.portfolio-hero .hero-eyebrow {
  margin: 0 0 8px;
}
.portfolio-title {
  margin: 0;
  max-width: 11em;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
}
.portfolio-hero .hero-lead {
  margin: 0;
  max-width: none;
  color: rgba(18, 18, 18, 0.78);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.5;
}
.portfolio-hero + .work {
  padding-top: 28px;
}
main:has(.portfolio-hero) > .page-breadcrumbs {
  margin-bottom: 6px;
  padding-top: calc(var(--header-h, 72px) + 18px);
}
@media (max-width: 820px) {
  .portfolio-intro {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .portfolio-intro-aside {
    padding-top: 0;
  }
  .portfolio-title {
    max-width: none;
  }
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 32px);
  margin-top: 40px;
}
.portfolio-grid--concepts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.portfolio-item {
  margin: 0;
}
.portfolio-item .shot-zoom {
  position: relative;
  overflow: hidden;
}
.portfolio-item .shot-zoom img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transform: scale(1) translate3d(0, 0, 0);
  transition: transform 0.85s var(--ease);
}
@media (hover: hover) {
  .portfolio-item .shot-zoom:hover img {
    transform: scale(1.04) translate3d(0, -1.5%, 0);
  }
  .portfolio-item--featured .shot-zoom:hover img {
    transform: scale(1.035) translate3d(0, -2%, 0);
  }
}
.portfolio-item figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  flex: 1 1 auto;
}
.portfolio-item figcaption strong {
  color: var(--ink);
}
.portfolio-item figcaption a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 1100px) {
  .portfolio-grid--concepts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .portfolio-grid,
  .portfolio-grid--concepts {
    grid-template-columns: 1fr;
  }
}

/* Niche block */
.niche-block {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line-strong);
}
.niche-title {
  margin: 0 0 28px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.niche-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
}
.niche-groups h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.niche-groups p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}
.niche-note {
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.niche-note a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.niche-note a:hover {
  opacity: 0.6;
}

/* Services */
.services {
  padding: 88px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.service-list article {
  position: relative;
  isolation: isolate;
  margin: 0;
  border: var(--chip-border);
  border-radius: var(--plaque-radius-sm);
  background:
    var(--chip-sheen),
    var(--chip-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 6px rgba(40, 34, 24, 0.05),
    0 8px 22px rgba(40, 34, 24, 0.04);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.service-list article::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28) 0%,
    transparent 42%
  );
  opacity: 0.9;
}
.service-list h3 {
  margin: 0 0 14px;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.035em;
  transition: color 0.25s var(--ease);
}
.service-list p {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.included-strip {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 18px 24px;
  align-items: start;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.included-strip p {
  margin: 0;
  padding-top: 8px;
  font-size: 15px;
  font-weight: 600;
}
.included-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.included-strip li,
.glass-chip,
.about-footer li,
.concept-meta small,
.steps li > span,
.page-meta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 14px;
  border: var(--chip-border);
  border-radius: var(--chip-radius);
  background:
    var(--chip-sheen),
    var(--chip-bg);
  box-shadow: var(--chip-shadow);
  color: var(--chip-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow: hidden;
}
.included-strip li::after,
.glass-chip::after,
.about-footer li::after,
.concept-meta small::after,
.steps li > span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0%,
    transparent 42%
  );
  opacity: 0.85;
}
.concept-meta small {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.steps li > span {
  justify-content: center;
  min-width: 42px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.tech-line {
  margin-top: 32px;
}
.tech-line p {
  margin: 0;
  max-width: 72ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

/* Process / about */
.process,
.about {
  padding: 88px 0 56px;
}
.process-top,
.about-copy {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: end;
  margin: 24px 0 48px;
}
.process-top > p,
.about-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.steps li div {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}
.steps h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.start-terms {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line-strong);
  max-width: 52rem;
}
.start-terms h3 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.start-terms ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.start-terms li {
  position: relative;
  padding-left: 1.15em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.start-terms li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink);
}
.about-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-footer li {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

/* Contact */
.contact {
  padding: 88px 0;
  background: var(--inverse);
  color: var(--inverse-text);
}
.contact .index {
  color: rgba(238, 235, 228, 0.55);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
}
.contact-copy > p:not(.index) {
  margin: 20px 0 0;
  max-width: 42ch;
  color: rgba(238, 235, 228, 0.72);
  font-size: 17px;
  line-height: 1.5;
}
.contact h2 {
  margin: 14px 0 0;
}
.contact-links {
  border-top: 1px solid rgba(238, 235, 228, 0.2);
  min-width: 0;
  width: 100%;
}
.contact-links a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(238, 235, 228, 0.2);
  transition: padding 0.2s ease;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contact-links a:hover {
  padding-left: 8px;
}
.contact-links small {
  display: block;
  margin-bottom: 4px;
  color: rgba(238, 235, 228, 0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact-links strong {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.contact-brief {
  margin-top: 28px;
  max-width: 42ch;
}
.contact-brief-label {
  margin: 0 0 12px;
  color: rgba(238, 235, 228, 0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact-brief ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  counter-reset: brief-step;
}
.contact-brief li {
  position: relative;
  padding-left: 1.6em;
  color: rgba(238, 235, 228, 0.78);
  font-size: 15px;
  line-height: 1.45;
}
.contact-brief li::before {
  content: counter(brief-step, decimal-leading-zero);
  counter-increment: brief-step;
  position: absolute;
  left: 0;
  color: rgba(238, 235, 228, 0.45);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.case--text {
  padding-bottom: 8px;
}
.case--text .case-details {
  margin-top: 8px;
}
.case--single .case-gallery-item {
  max-width: 920px;
}
.case--prose .case-details {
  grid-template-columns: 1fr;
  gap: 18px;
}
.case--prose .case-details dd {
  max-width: 68ch;
}

.footer-messengers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
}
.footer-messengers a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.footer-messengers a:hover,
.footer-messengers a:focus-visible {
  color: var(--muted);
}
.footer-messengers a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  padding: 36px 0 44px;
  min-height: auto;
  border-top: 1px solid var(--line);
}
.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}
.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.footer-sitemap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  width: 100%;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.footer-sitemap a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.footer-sitemap a:hover,
.footer-sitemap a[aria-current="page"] {
  color: var(--ink);
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
  width: 100%;
  padding-top: 4px;
}
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.footer-phone {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.footer-phone:hover,
.footer-phone:focus-visible {
  color: var(--muted);
}
.footer-phone:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.back-to-top {
  position: fixed;
  z-index: 55;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(18, 18, 18, 0.08);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.28s var(--ease),
    transform 0.28s var(--ease),
    visibility 0.28s,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--ink);
  background: var(--inverse);
  color: var(--inverse-text);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Reveal: visible without JS; hide only when html.js is present */
.js .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Keep hero copy depth vars when reveal finishes */
.js .reveal[data-hero-copy] {
  transform: translateY(8px) translate3d(var(--depth-x), var(--depth-y), 0);
}
.js .reveal.is-visible[data-hero-copy] {
  transform: translate3d(var(--depth-x), var(--depth-y), 0);
}
/* No image scale-in — fights Swiper transforms and feels twitchy */
.js .reveal .case-shot img,
.js .reveal .concept-visual img {
  transform: none;
  transition: none;
}
.js .reveal.is-visible .case-shot img,
.js .reveal.is-visible .concept-visual img {
  transform: none;
}
.js .portfolio-grid--concepts.reveal .portfolio-item {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease);
}
.js .portfolio-grid--concepts.reveal {
  opacity: 1;
  transform: none;
}
.js .portfolio-grid--concepts.reveal .portfolio-item:nth-child(1) {
  transition-delay: 0s;
}
.js .portfolio-grid--concepts.reveal .portfolio-item:nth-child(2) {
  transition-delay: 0.06s;
}
.js .portfolio-grid--concepts.reveal .portfolio-item:nth-child(3) {
  transition-delay: 0.12s;
}
.js .portfolio-grid--concepts.reveal .portfolio-item:nth-child(4) {
  transition-delay: 0.06s;
}
.js .portfolio-grid--concepts.reveal .portfolio-item:nth-child(5) {
  transition-delay: 0.12s;
}
.js .portfolio-grid--concepts.reveal .portfolio-item:nth-child(6) {
  transition-delay: 0.18s;
}
.js .portfolio-grid--concepts.reveal .portfolio-item:nth-child(7) {
  transition-delay: 0.12s;
}
.js .portfolio-grid--concepts.reveal .portfolio-item:nth-child(8) {
  transition-delay: 0.18s;
}
.js .portfolio-grid--concepts.reveal.is-visible .portfolio-item {
  opacity: 1;
  transform: none;
}
.concept-grid .concept:nth-child(2).reveal {
  transition-delay: 0.08s;
}
.concept-grid .concept:nth-child(3).reveal {
  transition-delay: 0.12s;
}
.concept-grid .concept:nth-child(4).reveal {
  transition-delay: 0.16s;
}
@media (scripting: none) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .service-list {
    grid-template-columns: 1fr;
  }
  .process-top,
  .about-copy,
  .contact-layout,
  .case-details,
  .included-strip,
  .steps li div,
  .concept-grid {
    grid-template-columns: 1fr;
  }
  .niche-groups {
    grid-template-columns: 1fr;
  }
  .case-link {
    grid-column: 1;
    grid-row: auto;
    margin-top: 8px;
  }
  .case-actions {
    grid-column: 1;
    grid-row: auto;
    align-items: flex-start;
    margin-top: 8px;
  }
  .case-meta {
    grid-template-columns: 1fr;
  }
  .progress {
    text-align: left;
  }
}

@media (max-width: 780px) {
  .wrap {
    width: min(calc(100% - 32px), 620px);
  }
  .header {
    display: flex;
    justify-content: space-between;
  }
  .nav,
  .header-cta {
    display: none;
  }
  .menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
  }
  .menu-button:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
  }
  .menu-button b {
    font-size: 24px;
    font-weight: 400;
    line-height: 0.7;
  }
  .mobile-menu {
    position: fixed;
    z-index: var(--z-mobile-menu);
    inset: 0;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 88px 16px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg);
  }
  .mobile-menu.is-open {
    display: flex;
  }
  .menu-close {
    position: absolute;
    top: 14px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
  }
  .menu-close:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
  }
  .menu-close span {
    margin-left: 8px;
    font-size: 28px;
    vertical-align: middle;
  }
  .mobile-menu > a,
  .mobile-services-toggle {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: var(--ink);
    font-size: clamp(28px, 8vw, 40px);
    font-weight: 500;
    letter-spacing: -0.04em;
  }
  .mobile-menu > a small,
  .mobile-services-toggle small {
    margin-right: 10px;
    color: var(--muted);
    font-size: 14px;
  }
  .mobile-services {
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
  }
  .mobile-services-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
  }
  .mobile-services-toggle .nav-caret {
    width: 10px;
    height: 10px;
    margin-top: 0;
    flex-shrink: 0;
  }
  .mobile-services-toggle .nav-caret::before {
    width: 6px;
    height: 6px;
    border-right-width: 1.5px;
    border-bottom-width: 1.5px;
    color: var(--muted);
  }
  .mobile-services-toggle[aria-expanded="true"] .nav-caret {
    transform: rotate(180deg);
  }
  .mobile-services-panel {
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 4px 0 8px;
    padding: 4px 0 8px 14px;
    border-left: 1px solid rgba(20, 20, 20, 0.14);
    background: transparent;
  }
  .mobile-services.is-open .mobile-services-panel {
    display: flex;
  }
  .mobile-services-panel a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0 8px 12px;
    color: var(--ink);
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 500;
    letter-spacing: -0.02em;
  }
  .mobile-services-panel a[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-50%);
  }
  .mobile-services-panel a[aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
  }
  .mobile-menu p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 15px;
  }
  .hero {
    min-height: min(70vh, 560px);
  }
  .hero-title {
    font-size: clamp(64px, 20vw, 96px);
  }
  .section-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: none;
  }
  .section-head .index,
  .section-cta,
  .section-head h2,
  .section-note {
    grid-column: 1;
    grid-row: auto;
  }
  .section-cta {
    justify-self: start;
  }
  .section-note {
    margin-top: 0;
    text-align: left;
  }
  .work,
  .services,
  .concepts,
  .process,
  .about {
    padding-top: 56px;
    padding-bottom: 40px;
  }
  .case-meta > p:last-child:not(.progress) {
    display: none;
  }
  .work-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact {
    padding: 64px 0;
  }
  .footer {
    gap: 18px;
    padding: 28px 0 36px;
  }
  .footer-brand p {
    display: none;
  }
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-actions {
    gap: 8px 14px;
  }
  .back-to-top {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    width: 42px;
    height: 42px;
  }
}


/* Premium pack — magnetic + Codrops-style accent fill */
.cta-fill {
  position: relative;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
}
.cta-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: translate3d(0, 101%, 0);
  transition: transform 0.5s var(--ease);
  pointer-events: none;
}
.cta-fill:hover::before,
.cta-fill:focus-visible::before {
  transform: translate3d(0, 0, 0);
}
.header-cta.cta-fill::before {
  background: var(--accent);
}
.section-cta.cta-fill::before {
  background: var(--bg);
}
.section-cta.cta-fill:hover,
.section-cta.cta-fill:focus-visible {
  color: var(--accent);
}
.work-cta .link-arrow.cta-fill {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.35s var(--ease), border-color 0.35s ease;
}
.work-cta .link-arrow.cta-fill:hover,
.work-cta .link-arrow.cta-fill:focus-visible {
  color: var(--inverse-text);
  border-color: var(--accent);
  gap: 12px;
}
[data-magnetic] {
  transition: transform 0.45s var(--ease);
}

/* Prefer IO reveals only — view() timeline doubled motion with Swiper */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .back-to-top {
    transition: none;
  }

  .cta-fill::before {
    transition: none;
    transform: none;
    opacity: 0;
  }
  .cta-fill:hover::before,
  .cta-fill:focus-visible::before {
    opacity: 0;
  }
  [data-magnetic] {
    transform: none !important;
    transition: none;
  }
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }
  .hero-content {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(238, 235, 228, 0.92);
  }
  .concepts-swiper .swiper-slide .concept-meta,
  .case-swiper .swiper-slide figcaption {
    transition: none;
  }

  .js .reveal,
  .header,
  .nav > a::before,
  .nav > a > span,
  .lightbox,
  .lightbox figure,
  .portfolio-item .shot-zoom img,
  .case-shot img,
  .case-stage,
  .concept-visual,
  .portfolio-item .shot-zoom,
  .article-cover,
  .case-shots figure,
  .case-stage::after,
  .concept-visual::after,
  .portfolio-item .shot-zoom::after,
  .article-cover::after,
  .case-shots figure::after {
    transition: none;
  }
  .js .reveal,
  .js .portfolio-grid--concepts.reveal .portfolio-item {
    opacity: 1;
    transform: none;
  }
  .js .reveal .case-shot img,
  .js .reveal .concept-visual img,
  .portfolio-item .shot-zoom:hover img,
  .portfolio-item--featured .shot-zoom:hover img,
  a.case-stage:hover .case-shot img,
  button.case-stage:hover .case-shot img {
    transform: none;
    transition: none;
  }
  a.case-stage:hover,
  button.case-stage:hover,
  button.case-stage:focus-visible,
  .concept:hover .concept-visual,
  .portfolio-item .shot-zoom:hover,
  .portfolio-item .shot-zoom:focus-visible,
  .case-stage,
  .concept-visual,
  .portfolio-item .shot-zoom {
    --plaque-ty: 0px;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --cam-rx: 0deg;
    --cam-scale: 1;
    --cam-elev: 0;
    transform: none;
    transition: none;
    box-shadow: var(--plaque-shadow);
  }
  .hero-canvas,
  .hero-hud,
  .js .reveal[data-hero-copy],
  .js .reveal.is-visible[data-hero-copy] {
    transform: none !important;
  }
  .lightbox,
  .lightbox.is-open,
  .lightbox figure,
  .lightbox.is-open figure {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .tech-strip-track {
    animation: none;
  }
  .carousel-dot.is-active::after {
    animation: none;
    transform: scaleX(1);
  }
  .hero-mark {
    transform: none !important;
    will-change: auto;
  }
  .hero-mark-letter {
    transform: none !important;
    will-change: auto;
  }
  .hero-mark-letter,
  .hero-mark-dot {
    animation: none;
  }
}


/* ——— Inner SEO pages ——— */
.page-breadcrumbs {
  padding-top: calc(var(--header-h, 72px) + 28px);
  margin-bottom: 12px;
}
.page-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.page-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: var(--line-strong);
}
.page-breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-hero {
  padding: 8px 0 36px;
  max-width: 46rem;
}
.page-meta {
  margin: 0 0 14px;
  width: fit-content;
  padding: 6px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5.2vw, 56px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.page-hero .lead {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  opacity: 0.8;
}
.page-prose {
  max-width: 46rem;
  padding-bottom: 48px;
}
.page-prose h2 {
  margin: 2.2em 0 0.7em;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.page-prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.page-prose p,
.page-prose li {
  color: rgba(18, 18, 18, 0.86);
  font-size: 1.02rem;
  line-height: 1.65;
}
.page-prose p { margin: 0 0 1em; }
.page-prose ul,
.page-prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}
.page-prose li + li { margin-top: 0.45em; }
.page-prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.page-prose a:hover { color: var(--accent); }
.page-cta {
  margin: 8px 0 0;
}
.page-note {
  margin: 1.4em 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(18, 18, 18, 0.04);
}
.toc {
  margin: 0 0 2em;
  padding: 18px 20px;
  border: 1px solid var(--line);
}
.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.toc ol {
  margin: 0;
  padding-left: 1.2em;
}
.toc li + li { margin-top: 6px; }
.article-cover {
  margin: 0 0 28px;
  overflow: hidden;
}
.article-cover img,
.article-cover video {
  display: block;
  width: 100%;
  height: auto;
  background: #111;
}
.article-cover--video {
  max-width: 920px;
}
.article-cover--video::after,
.case-stage--video::after {
  display: none;
}
.article-cover video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.article-cover figcaption {
  position: relative;
  z-index: 3;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  border-top: 1px solid var(--line);
}
.case-stage--video {
  cursor: default;
  max-width: 920px;
}
.case-shot--video {
  background: #0d0d0c;
}
.case-shot--video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0d0d0c;
}
.case-gallery-item--video {
  max-width: 920px;
}
.case--single .case-gallery {
  gap: 22px;
}
@media (max-width: 720px) {
  .case-shot--video video,
  .article-cover video {
    max-height: none;
  }
}
.compare-table-wrap {
  overflow-x: auto;
  margin: 1.2em 0 1.8em;
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}
.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare-table th {
  background: rgba(18, 18, 18, 0.05);
  font-weight: 600;
}
.case-shots {
  display: grid;
  gap: 20px;
  margin: 1.5em 0;
}
.case-shots figure {
  margin: 0;
  overflow: hidden;
}
.case-shots img {
  display: block;
  width: 100%;
  height: auto;
}
.case-shots figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-legal a {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--ink);
}
.footer-legal a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.article-byline {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.55;
}
.article-byline a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-heading {
  margin: 0;
}
.hero-role {
  display: block;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
}
.hero-name {
  display: block;
  margin: 0;
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
  color: var(--ink);
}
@media (min-width: 1600px) {
  .hero-name {
    font-size: clamp(96px, 7vw, 128px);
  }
}
.seo-intro {
  padding: 56px 0 8px;
}
.seo-intro h2 {
  margin: 0 0 18px;
  max-width: 22ch;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.seo-intro p {
  max-width: 62ch;
  margin: 0 0 1em;
  color: rgba(18, 18, 18, 0.82);
  font-size: 1.05rem;
  line-height: 1.65;
}
.service-list a.service-card-link {
  display: block;
  color: inherit;
  height: 100%;
  padding: 28px 26px;
  position: relative;
  z-index: 1;
}
.service-list a.service-card-link:hover h3,
.service-list a.service-card-link:focus-visible h3 {
  color: var(--accent);
}
.service-list article:has(a.service-card-link:hover),
.service-list article:has(a.service-card-link:focus-visible) {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 4px 10px rgba(40, 34, 24, 0.06),
    0 14px 28px rgba(40, 34, 24, 0.07);
}
@media (prefers-reduced-motion: reduce) {
  .service-list article {
    transition: none;
  }
  .service-list article:has(a.service-card-link:hover),
  .service-list article:has(a.service-card-link:focus-visible) {
    transform: none;
  }
}
.blog-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 46rem;
}
.blog-list li {
  border-top: 1px solid var(--line);
}
.blog-list a {
  display: block;
  padding: 22px 0;
}
.blog-list a:hover .blog-list-title {
  color: var(--accent);
}
.blog-list-title {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.blog-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .page-breadcrumbs { padding-top: calc(var(--header-h, 64px) + 20px); }
  .page-hero { padding-bottom: 24px; }
  .seo-intro { padding-top: 40px; }
}
