/* ============================================================
   107® — Independent Design Studio
   Landing page styles (work pages use style.css + work.css)
   ============================================================ */

:root {
  --paper: #F2EEE6;
  --paper-dim: #E9E3D6;
  --ink: #16130F;
  --ink-soft: #221E17;
  --accent: #4B36F5;
  --accent-light: #9D93FF;
  --orange: #FF4D00;
  --green: #1F9D55;
  --muted: rgba(22, 19, 15, 0.55);
  --muted-light: rgba(242, 238, 230, 0.55);
  --line: rgba(22, 19, 15, 0.14);
  --line-light: rgba(242, 238, 230, 0.16);
  --pad: clamp(20px, 4.5vw, 76px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-d: 'Clash Display', 'Inter', system-ui, sans-serif;
  --font-s: 'Instrument Serif', Georgia, serif;
  --font-b: 'Inter', system-ui, sans-serif;
  --font-m: 'JetBrains Mono', ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

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

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

/* Film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Utilities ──────────────────────────────────────────── */

.serif {
  font-family: var(--font-s);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10001;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--font-m);
  font-size: 12px;
  transform: translateY(-300%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 9500;
}

/* ─── Preloader ──────────────────────────────────────────── */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.9s var(--ease);
}

.preloader.is-done {
  transform: translateY(-101%);
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
}

.preloader.is-done .preloader-inner {
  opacity: 0;
  transform: translateY(-40px);
}

.preloader-logo {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 1;
}

.preloader-logo sup { font-size: 0.35em; vertical-align: super; }

.preloader-count {
  font-family: var(--font-m);
  font-size: 13px;
  color: var(--accent-light);
  letter-spacing: 0.1em;
}

.preloader-tag {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-m);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-light);
  white-space: nowrap;
  transition: opacity 0.4s ease;
}

.preloader.is-done .preloader-tag { opacity: 0; }

/* ─── Custom cursor ──────────────────────────────────────── */

.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}

body.has-cursor .cursor,
body.has-cursor .cursor-dot { opacity: 1; }

body.has-cursor,
body.has-cursor a,
body.has-cursor button { cursor: none; }

.cursor {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(22, 19, 15, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              background-color 0.35s ease, border-color 0.35s ease;
}

.cursor-label {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}

.cursor.is-hover {
  width: 56px;
  height: 56px;
  background: rgba(75, 54, 245, 0.12);
  border-color: var(--accent);
}

.cursor.is-view {
  width: 92px;
  height: 92px;
  background: var(--accent);
  border-color: var(--accent);
}

.cursor.is-view .cursor-label {
  opacity: 1;
  transform: scale(1);
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  transition: opacity 0.2s ease;
}

.cursor-dot.is-hidden { opacity: 0 !important; }

/* ─── Nav ────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  transition: transform 0.5s var(--ease), padding 0.4s ease;
}

.nav.is-scrolled { padding-top: 14px; padding-bottom: 14px; }
.nav.is-hidden { transform: translateY(-110%); }

.nav-logo {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-block;
  transition: color 0.4s ease;
}

.nav.nav-dark .nav-logo { color: var(--paper); }

.nav-logo sup { font-size: 0.5em; }

.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.4s ease;
}

.nav.nav-dark .nav-links a { color: var(--paper); }

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background-color 0.35s ease;
}

.nav-cta:hover { background: var(--orange); }

.nav-cta-arrow { transition: transform 0.35s var(--ease); }
.nav-cta:hover .nav-cta-arrow { transform: translate(2px, -2px); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  align-items: center;
}

.nav-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), background-color 0.4s ease;
}

.nav.nav-dark .nav-burger span { background: var(--paper); }

.nav-burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ─── Menu overlay ───────────────────────────────────────── */

.menu {
  position: fixed;
  inset: 0;
  z-index: 8900;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.7s var(--ease), visibility 0s 0.7s;
}

.menu.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.7s var(--ease);
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-light);
  overflow: hidden;
}

.menu-num {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--accent-light);
}

.menu-word {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  display: inline-block;
  transform: translateY(120%);
  transition: transform 0.7s var(--ease), color 0.3s ease;
}

.menu.is-open .menu-word { transform: translateY(0); }
.menu-links a:nth-child(1) .menu-word { transition-delay: 0.10s; }
.menu-links a:nth-child(2) .menu-word { transition-delay: 0.17s; }
.menu-links a:nth-child(3) .menu-word { transition-delay: 0.24s; }
.menu-links a:nth-child(4) .menu-word { transition-delay: 0.31s; }

.menu-links a:hover .menu-word {
  color: var(--accent-light);
  font-family: var(--font-s);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
}

.menu-foot {
  position: absolute;
  bottom: 28px;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--muted-light);
}

.menu-foot a { text-decoration: underline; text-underline-offset: 4px; }
.menu-foot a:hover { color: var(--accent-light); }

/* ─── Hero ───────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 96px var(--pad) 32px;
  position: relative;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  line-height: 1.7;
}

.hero-meta-avail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0.4); }
  50% { box-shadow: 0 0 0 7px rgba(31, 157, 85, 0); }
}

.hero-title {
  margin: auto 0;
  padding: clamp(40px, 7vh, 90px) 0;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(2.9rem, 11.5vw, 11.5rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.ht-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.ht-in {
  display: flex;
  align-items: center;
  gap: 0.12em;
}

html.js .ht-in {
  transform: translateY(115%);
  transition: transform 1.1s var(--ease);
}

body.is-loaded .ht-in { transform: translateY(0); }
body.is-loaded .ht-d1 { transition-delay: 0.10s; }
body.is-loaded .ht-d2 { transition-delay: 0.22s; }
body.is-loaded .ht-d3 { transition-delay: 0.34s; }

.ht-line-serif .ht-in { gap: 0.22em; }

.ht-line-serif em {
  font-family: var(--font-s);
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0;
  color: var(--accent);
  font-size: 1.04em;
  line-height: 0.8;
}

.ht-star {
  width: 0.52em;
  height: 0.52em;
  flex: none;
  fill: var(--orange);
  animation: spin 9s linear infinite;
}

.hero-title sup {
  font-size: 0.22em;
  vertical-align: super;
  letter-spacing: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-sub {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: clamp(24px, 4vh, 48px);
}

.hero-lede {
  max-width: 460px;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.6;
  color: var(--ink);
}

.hero-lede em {
  font-family: var(--font-s);
  font-style: italic;
  font-size: 1.06em;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-m);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.btn {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.btn:hover { background: var(--accent); border-color: var(--accent); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn-arrow { transform: translateY(3px); }
.btn-ghost:hover .btn-arrow { transform: translate(2px, -2px); }

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.hero-scroll-hint {
  font-family: var(--font-m);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hero-badge {
  position: relative;
  width: 118px;
  height: 118px;
  flex: none;
}

.hero-badge-svg {
  width: 100%;
  height: 100%;
  animation: spin 14s linear infinite;
}

.hero-badge-svg text {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  fill: var(--ink);
}

.hero-badge-star {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--orange);
}

/* ─── Marquee band ───────────────────────────────────────── */

.marquee-band {
  overflow: hidden;
  padding: clamp(36px, 6vw, 72px) 0;
}

.marquee {
  background: var(--accent);
  color: var(--paper);
  transform: rotate(-2deg) scale(1.05);
  padding: 14px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee-track span {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.8vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.marquee-track i {
  font-style: normal;
  color: var(--orange);
  padding: 0 0.4em;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ─── Section scaffolding ────────────────────────────────── */

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-bottom: clamp(48px, 7vw, 96px);
}

.footer .section-head,
.services .section-head { border-top-color: var(--line-light); }

.eyebrow {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.eyebrow.light { color: var(--muted-light); }

/* ─── Studio / Manifesto ─────────────────────────────────── */

.studio {
  padding: clamp(80px, 11vw, 160px) var(--pad);
}

.manifesto {
  max-width: 1150px;
  font-family: var(--font-d);
  font-weight: 500;
  font-size: clamp(1.55rem, 3.5vw, 3.3rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.mw { transition: opacity 0.35s ease; }
html.js .mw { opacity: 0.12; }
html.js .mw.is-lit { opacity: 1; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(72px, 10vw, 140px);
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.stat-value {
  display: block;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-value-serif {
  font-family: var(--font-s);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.stat-label {
  display: block;
  margin-top: 12px;
  max-width: 220px;
  font-family: var(--font-m);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: var(--muted);
}

/* ─── Work ───────────────────────────────────────────────── */

.work {
  padding: clamp(40px, 6vw, 90px) var(--pad) clamp(90px, 12vw, 170px);
}

.work-title {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(3.2rem, 10vw, 10rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.work-title-line { display: block; }

.work-title .serif {
  color: var(--accent);
  font-size: 1.02em;
}

.work-count {
  font-family: var(--font-m);
  font-size: clamp(0.9rem, 1.6vw, 1.3rem);
  font-weight: 400;
  color: var(--muted);
  vertical-align: super;
  letter-spacing: 0;
}

.work-note {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 640px;
  font-family: var(--font-m);
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: clamp(48px, 6vw, 80px);
}

.lock-icon {
  width: 13px;
  height: 13px;
  flex: none;
  fill: var(--orange);
  transform: translateY(1.5px);
}

.work-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.work-note a:hover { color: var(--accent); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.badge-lock {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--orange);
  color: var(--ink);
}

.badge-lock.is-unlocked { background: var(--green); color: var(--paper); }

.badge-live {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(22, 19, 15, 0.72);
  color: var(--paper);
  backdrop-filter: blur(6px);
}

/* Flagship */
.flagship {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  padding: clamp(40px, 5.5vw, 84px) clamp(28px, 5vw, 76px);
  overflow: hidden;
}

.flagship::before {
  content: '';
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  right: -20%;
  top: -30%;
  background: radial-gradient(circle, rgba(75, 54, 245, 0.35) 0%, transparent 65%);
  pointer-events: none;
}

.flagship-text {
  grid-column: 1 / 7;
  position: relative;
  z-index: 1;
}

.flagship-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-light);
  margin-bottom: 24px;
}

.flagship-index { color: var(--muted-light); }

.flagship-title {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.flagship-title .serif { color: var(--accent-light); }

.flagship-desc {
  max-width: 460px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted-light);
  margin-bottom: 28px;
}

.flagship-desc em { color: var(--paper); font-weight: 500; }

.flagship-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.flagship-chips li {
  padding: 6px 13px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-family: var(--font-m);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.flagship:hover .flagship-chips li {
  border-color: rgba(242, 238, 230, 0.4);
  color: var(--paper);
}

.flagship-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper);
  border-bottom: 1px solid var(--accent-light);
  padding-bottom: 5px;
  transition: color 0.3s ease, gap 0.35s var(--ease);
}

.flagship:hover .flagship-cta {
  color: var(--accent-light);
  gap: 14px;
}

.flagship-media {
  grid-column: 8 / 13;
  position: relative;
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  transition: transform 0.7s var(--ease);
}

.flagship:hover .flagship-media { transform: scale(1.025) rotate(0.5deg); }

.flagship-media img { width: 100%; }

/* Editorial feature blocks */
.work-features {
  margin-top: clamp(72px, 9vw, 130px);
}

.wf {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: end;
  margin-bottom: clamp(72px, 9vw, 140px);
}

.wf:last-child { margin-bottom: 0; }

.wf-media {
  grid-column: 1 / 8;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-dim);
}

.wf-par {
  width: 100%;
  height: 100%;
  will-change: transform;
}

.wf-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.16);
  transition: transform 0.9s var(--ease);
}

.wf:hover .wf-img { transform: scale(1.06); }

.wf-info {
  grid-column: 8 / 13;
  padding-bottom: 6px;
}

.wf-alt .wf-media { grid-column: 6 / 13; order: 2; }
.wf-alt .wf-info { grid-column: 1 / 6; order: 1; }

.wf-index {
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.wf-title {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 12px 0 14px;
  transition: color 0.3s ease;
}

.wf:hover .wf-title { color: var(--accent); }

.wf-desc {
  max-width: 400px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 20px;
}

.wf-tags {
  display: inline-block;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-family: var(--font-m);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Work index list */
.wlist {
  margin-top: clamp(80px, 10vw, 140px);
  border-bottom: 1px solid var(--line);
}

.wlist li {
  border-top: 1px solid var(--line);
}

.wl-row {
  display: grid;
  grid-template-columns: 64px 1fr auto 48px;
  align-items: baseline;
  gap: clamp(16px, 2.5vw, 40px);
  padding: clamp(22px, 3vw, 34px) 0;
  transition: padding 0.45s var(--ease);
}

.wl-index {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.wl-title {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 0.45s var(--ease), color 0.3s ease;
}

.wl-cat {
  font-family: var(--font-m);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: right;
}

.wl-arrow {
  font-size: 22px;
  justify-self: end;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: opacity 0.3s ease, transform 0.45s var(--ease);
}

.wpreview { display: none; }

@media (hover: hover) and (min-width: 861px) {
  .wl-row:hover { padding-left: 18px; }
  .wl-row:hover .wl-title { color: var(--accent); }
  .wl-row:hover .wl-arrow { opacity: 1; transform: translate(0, 0); }

  .wl-thumb { display: none; }

  .wpreview {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 8000;
    width: min(360px, 26vw);
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    pointer-events: none;
    transform: translate3d(var(--px, -500px), var(--py, -500px), 0)
               translate(-50%, -58%)
               rotate(var(--prot, 0deg))
               scale(var(--pscale, 0));
    opacity: var(--pscale, 0);
    box-shadow: 0 30px 60px rgba(22, 19, 15, 0.28);
  }

  .wpreview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (hover: none), (max-width: 860px) {
  .wl-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin: 14px 0 4px;
  }
}

/* ─── Services ───────────────────────────────────────────── */

.services {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(90px, 12vw, 170px) var(--pad);
}

.services-title {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.5vw, 6.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: clamp(48px, 6vw, 84px);
}

.services-title .serif { color: var(--accent-light); }

.acc { border-bottom: 1px solid var(--line-light); }

.acc-item { border-top: 1px solid var(--line-light); }

.acc-head {
  display: grid;
  grid-template-columns: 64px 1fr 44px;
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
  width: 100%;
  padding: clamp(22px, 3vw, 32px) 0;
  text-align: left;
}

.acc-num {
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 0.1em;
}

.acc-title {
  font-family: var(--font-d);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 3rem);
  letter-spacing: -0.015em;
  line-height: 1.1;
  transition: color 0.3s ease, transform 0.45s var(--ease);
}

.acc-head:hover .acc-title {
  color: var(--accent-light);
  transform: translateX(10px);
}

.acc-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  transition: transform 0.5s var(--ease), background-color 0.35s ease, border-color 0.35s ease;
  justify-self: end;
}

.acc-icon::before,
.acc-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--paper);
  transform: translate(-50%, -50%);
  transition: background-color 0.35s ease;
}

.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.acc-item.is-open .acc-icon {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
}

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.65s var(--ease);
}

.acc-panel-in {
  padding: 4px 0 clamp(32px, 4vw, 48px) calc(64px + clamp(16px, 2.5vw, 40px));
  max-width: 860px;
}

.acc-desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: rgba(242, 238, 230, 0.78);
  max-width: 560px;
  margin-bottom: 24px;
}

.acc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.acc-chips li {
  padding: 7px 14px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-family: var(--font-m);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-light);
}

.acc-related {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--muted-light);
}

.acc-related a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--accent-light);
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.acc-related a:hover { color: var(--accent-light); }

/* ─── Clients ────────────────────────────────────────────── */

.clients {
  padding: clamp(90px, 12vw, 170px) var(--pad);
}

.clients-flow {
  max-width: 1250px;
  font-family: var(--font-d);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.9vw, 2.5rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: rgba(22, 19, 15, 0.88);
}

.clients-flow i {
  font-style: normal;
  color: var(--accent);
  padding: 0 0.25em;
  font-size: 0.75em;
}

/* ─── Footer / Contact ───────────────────────────────────── */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(90px, 12vw, 170px) var(--pad) 28px;
  overflow: hidden;
}

.footer-cta {
  display: block;
  text-align: center;
  padding: clamp(24px, 5vw, 64px) 0;
}

.fc-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(3.6rem, 13.5vw, 14rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.fc-line .serif {
  color: var(--accent-light);
  font-size: 1.04em;
  transition: color 0.35s ease;
}

.fc-arrow {
  font-size: 0.6em;
  display: inline-block;
  transition: transform 0.5s var(--ease);
}

.footer-cta:hover .fc-arrow { transform: translate(0.12em, -0.12em); }
.footer-cta:hover .fc-line .serif { color: var(--orange); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
  border-top: 1px solid var(--line-light);
  padding-top: clamp(36px, 5vw, 56px);
  margin-top: clamp(48px, 6vw, 84px);
}

.footer-label {
  display: block;
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-light);
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(242, 238, 230, 0.85);
  margin-bottom: 10px;
}

.footer-mail {
  display: inline-block;
  font-family: var(--font-d);
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--accent-light);
  padding-bottom: 3px;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.footer-mail:hover { color: var(--accent-light); }

.footer-note {
  font-size: 13px !important;
  color: var(--muted-light) !important;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  width: fit-content;
  font-size: 15px;
  color: rgba(242, 238, 230, 0.85);
  transition: color 0.3s ease, transform 0.35s var(--ease);
}

.footer-nav a:hover {
  color: var(--accent-light);
  transform: translateX(6px);
}

.footer-mark {
  margin-top: clamp(64px, 8vw, 110px);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(7rem, 27vw, 27rem);
  line-height: 0.78;
  letter-spacing: -0.03em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 238, 230, 0.22);
  user-select: none;
  transform: translateY(0.12em);
}

.footer-mark sup { font-size: 0.18em; }

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-light);
  padding-top: 22px;
  margin-top: clamp(32px, 4vw, 56px);
  font-family: var(--font-m);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-light);
}

.footer-bar em {
  font-family: var(--font-s);
  font-style: italic;
  text-transform: none;
  font-size: 1.15em;
  color: var(--accent-light);
}

/* ─── Reveal system ──────────────────────────────────────── */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

html.js [data-reveal].is-inview {
  opacity: 1;
  transform: translateY(0);
}

.stats .stat:nth-child(2) { transition-delay: 0.08s; }
.stats .stat:nth-child(3) { transition-delay: 0.16s; }
.stats .stat:nth-child(4) { transition-delay: 0.24s; }

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 1024px) {
  .wf-media { grid-column: 1 / 9; }
  .wf-info { grid-column: 9 / 13; }
  .wf-alt .wf-media { grid-column: 5 / 13; }
  .wf-alt .wf-info { grid-column: 1 / 5; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta .nav-cta-text { display: none; }
  .nav-cta { padding: 10px 14px; }

  .hero { padding-top: 84px; }
  .hero-meta-mid { display: none; }
  .hero-badge { width: 88px; height: 88px; }

  .stats { grid-template-columns: repeat(2, 1fr); }

  .flagship { grid-template-columns: 1fr; }
  .flagship-text { grid-column: 1 / -1; }
  .flagship-media { grid-column: 1 / -1; order: -1; }

  .wf,
  .wf-alt {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .wf-media,
  .wf-alt .wf-media { order: -1; aspect-ratio: 4 / 3; }

  .wf-info,
  .wf-alt .wf-info { padding-bottom: 0; }

  .wl-row {
    grid-template-columns: 40px 1fr 32px;
    grid-template-areas:
      "index title arrow"
      "index cat arrow"
      "thumb thumb thumb";
    padding: 26px 0;
  }

  .wl-index { grid-area: index; }
  .wl-title { grid-area: title; }
  .wl-cat { grid-area: cat; text-align: left; margin-top: 6px; }
  .wl-arrow { grid-area: arrow; opacity: 1; transform: none; }
  .wl-thumb { grid-area: thumb; }

  .acc-panel-in { padding-left: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .hero-title { font-size: clamp(2.6rem, 13.5vw, 6rem); }
  .hero-actions { width: 100%; }
  .btn, .btn-ghost { flex: 1; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; gap: 8px; }
}

/* ─── Reduced motion ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .marquee-track,
  .hero-badge-svg,
  .ht-star,
  .avail-dot { animation: none; }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html.js .ht-in {
    transform: none;
    transition: none;
  }

  html.js .mw { opacity: 1; }

  .wf-img { transform: none; transition: none; }
}
