/* ==========================================================================
   NORTHLINE — Interior Design Studio
   Design system stylesheet. Token names mirror the Figma variable collections
   (Primitives / Color / Layout) one-to-one.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Primitives */
  --neutral-0: #ffffff;
  --neutral-50: #f7f7f5;
  --neutral-100: #efefeb;
  --neutral-200: #e3e3de;
  --neutral-300: #c8c8c1;
  --neutral-400: #9b9b94;
  --neutral-500: #6e6e67;
  --neutral-600: #4a4a45;
  --neutral-700: #2b2b28;
  --neutral-800: #181816;
  --neutral-900: #0c0c0b;

  --accent-100: #ffe5da;
  --accent-300: #ffa582;
  --accent-500: #ff4a17;
  --accent-700: #c22f04;

  --violet-100: #e7e2ff;
  --violet-500: #6b4eff;
  --lime-500: #d4f24d;

  /* Semantic colour */
  --bg-canvas: var(--neutral-50);
  --bg-surface: var(--neutral-0);
  --bg-subtle: var(--neutral-100);
  --bg-inverse: var(--neutral-900);
  --bg-inverse-soft: var(--neutral-800);
  --bg-accent: var(--accent-500);
  --bg-accent-soft: var(--accent-100);
  --bg-violet-soft: var(--violet-100);

  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-500);
  --text-tertiary: var(--neutral-400);
  --text-inverse: var(--neutral-50);
  --text-inverse-dim: var(--neutral-400);
  --text-accent: var(--accent-500);
  --text-violet: var(--violet-500);

  --border-subtle: var(--neutral-200);
  --border-default: var(--neutral-300);
  --border-strong: var(--neutral-900);
  --border-inverse: var(--neutral-700);
  --border-accent: var(--accent-500);

  /* Spacing */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 120px;
  --space-6xl: 160px;

  /* Radius */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 999px;

  /* Type */
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --font-serif: "Instrument Serif", Georgia, serif;

  /* Elevation */
  --elev-soft: 0 4px 16px rgba(12, 12, 11, 0.05);
  --elev-card: 0 16px 40px -8px rgba(12, 12, 11, 0.1);
  --elev-float: 0 32px 80px -12px rgba(12, 12, 11, 0.16);
  --elev-glow: 0 12px 36px -6px rgba(255, 74, 23, 0.28);

  /* Layout */
  --shell: 1440px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --nav-h: 88px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 240ms;
  --dur-base: 480ms;
  --dur-slow: 900ms;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

::selection { background: var(--accent-500); color: var(--neutral-0); }

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

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

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
.display-hero,
.display-page,
.display-xl,
.display-l,
.display-m,
.display-s {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.86;
}

.display-hero { font-size: clamp(2.75rem, 10.2vw, 148px); }
.display-page { font-size: clamp(3.5rem, 13.2vw, 190px); }
.display-xl   { font-size: clamp(2.5rem, 6.7vw, 96px); }
.display-l    { font-size: clamp(2.25rem, 5vw, 72px); line-height: 0.92; }
.display-m    { font-size: clamp(1.75rem, 3.3vw, 48px); line-height: 0.96; letter-spacing: -0.015em; }
.display-s    { font-size: clamp(1.25rem, 2.2vw, 32px); line-height: 1; letter-spacing: -0.01em; }

.heading-xl { font-size: clamp(1.75rem, 3vw, 44px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.heading-l  { font-size: clamp(1.5rem, 2.2vw, 32px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; }
.heading-m  { font-size: clamp(1.25rem, 1.7vw, 24px); line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; }
.heading-s  { font-size: clamp(1.0625rem, 1.25vw, 18px); line-height: 1.4; letter-spacing: -0.005em; font-weight: 500; }

.body-l { font-size: clamp(1rem, 1.25vw, 18px); line-height: 1.65; }
.body-m { font-size: 16px; line-height: 1.7; }
.body-s { font-size: 14px; line-height: 1.6; }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.mono-xs {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.serif-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.8vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.t-secondary { color: var(--text-secondary); }
.t-tertiary  { color: var(--text-tertiary); }
.t-accent    { color: var(--text-accent); }
.t-inverse   { color: var(--text-inverse); }
.t-dim       { color: var(--text-inverse-dim); }
.t-center    { text-align: center; }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 8vw, 96px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--dark { background: var(--bg-inverse); color: var(--text-inverse); }
.section--subtle { background: var(--bg-subtle); }

.rule-top {
  border-top: 1px solid var(--border-default);
  padding-top: var(--space-lg);
}

.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr minmax(0, 520px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--form { grid-template-columns: 1fr minmax(0, 420px); align-items: start; }
.split--reverse > :first-child { order: 2; }

.stack { display: flex; flex-direction: column; }
.stack-xs { gap: var(--space-xs); }
.stack-sm { gap: var(--space-sm); }
.stack-md { gap: var(--space-md); }
.stack-lg { gap: var(--space-lg); }
.stack-xl { gap: var(--space-xl); }
.stack-2xl { gap: var(--space-2xl); }

.row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.row--between { justify-content: space-between; }
.row--end { align-items: flex-end; }
.row--wrap { flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   5. Eyebrow
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-500);
  transform: rotate(45deg);
  flex: none;
  animation: pulse-marker 2.6s var(--ease-in-out) infinite;
}
.eyebrow--inverse { color: var(--text-inverse-dim); }

@keyframes pulse-marker {
  0%, 100% { transform: rotate(45deg) scale(1); opacity: 1; }
  50% { transform: rotate(45deg) scale(0.6); opacity: 0.55; }
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text-primary);
  --btn-bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding-inline: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  will-change: transform;
}

/* Ink wipe that fills from the bottom on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-hover-bg, var(--accent-500));
  transform: translateY(101%);
  transition: transform var(--dur-base) var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }

.btn__arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover .btn__arrow { transform: translate(3px, -3px); }

.btn--primary {
  --btn-bg: var(--accent-500);
  --btn-fg: var(--neutral-0);
  --btn-hover-bg: var(--neutral-900);
}
.btn--secondary {
  --btn-fg: var(--text-primary);
  --btn-bd: var(--border-strong);
  --btn-hover-bg: var(--neutral-900);
}
.btn--secondary:hover { color: var(--neutral-0); border-color: var(--neutral-900); }
.btn--ghost {
  --btn-fg: var(--text-primary);
  padding-inline: 0;
  height: auto;
  border-radius: 0;
}
.btn--ghost::before { display: none; }
.btn--ghost::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn--ghost:hover { color: var(--accent-500); }
.btn--ghost:hover::after { transform: scaleX(1); transform-origin: left; }
.btn--inverse {
  --btn-bg: var(--neutral-0);
  --btn-fg: var(--text-primary);
  --btn-hover-bg: var(--accent-500);
}
.btn--inverse:hover { color: var(--neutral-0); }
.btn--primary:hover { color: var(--neutral-0); }
.btn--outline-inverse {
  --btn-fg: var(--text-inverse);
  --btn-bd: var(--border-inverse);
  --btn-hover-bg: var(--accent-500);
}
.btn--outline-inverse:hover { color: var(--neutral-0); border-color: var(--accent-500); }

/* --------------------------------------------------------------------------
   7. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}
.nav[data-hidden="true"] { transform: translateY(-100%); }
.nav[data-top="true"] { background: transparent; border-bottom-color: transparent; }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.wordmark {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
}
.wordmark sup { font-family: var(--font-mono); font-size: 10px; color: var(--accent-500); }

.nav__links { display: flex; gap: clamp(20px, 2.8vw, 40px); }
.nav__link {
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1.5px;
  background: var(--accent-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--text-primary); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  position: relative;
  transition: background var(--dur-fast) var(--ease-out);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--dur-base) var(--ease-out);
}
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 890;
  background: var(--bg-inverse);
  color: var(--text-inverse);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-slow) var(--ease-out);
  pointer-events: none;
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 11vw, 64px);
  text-transform: uppercase;
  line-height: 1;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
.mobile-menu a:hover { color: var(--accent-500); }

/* Scroll progress */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent-500), var(--violet-500));
  z-index: 950;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero { padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 96px)); }

.hero__title { color: var(--text-primary); }

/* Each line sits in an overflow-hidden mask so it can rise into view */
.line-mask { display: block; overflow: hidden; }
.line-mask > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
}
.is-ready .line-mask > span,
html:not(.js) .line-mask > span { transform: translateY(0); }
.line-mask:nth-child(2) > span { transition-delay: 90ms; }
.line-mask:nth-child(3) > span { transition-delay: 180ms; }

.hero__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.hero__meta span { color: var(--text-secondary); }

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hero-strip .media { height: clamp(220px, 32vw, 460px); }

/* --------------------------------------------------------------------------
   9. Media
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.media--hero { height: clamp(260px, 44vw, 640px); }
.media--portrait { aspect-ratio: 3 / 4; }

/* Parallax layer is nudged by JS via --py */
.media--parallax img {
  height: 118%;
  transform: translateY(var(--py, 0));
  will-change: transform;
}

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card-project { display: block; }
.card-project .media { margin-bottom: var(--space-lg); }
.card-project:hover .media img { transform: scale(1.06); }
.card-project__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-sm);
}
.card-project__index { color: var(--accent-500); }
.card-project__title {
  transition: color var(--dur-fast) var(--ease-out);
}
.card-project:hover .card-project__title { color: var(--accent-500); }

.card-journal { display: block; }
.card-journal .media { margin-bottom: var(--space-md); height: 260px; }
.card-journal:hover .media img { transform: scale(1.06); }
.card-journal__title { margin: 6px 0 10px; transition: color var(--dur-fast) var(--ease-out); }
.card-journal:hover .card-journal__title { color: var(--accent-500); }

.card-testimonial {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--elev-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card-testimonial:hover { transform: translateY(-6px); box-shadow: var(--elev-card); }
.card-testimonial__author { display: flex; align-items: center; gap: 14px; }
.card-testimonial__author img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   11. Stats
   -------------------------------------------------------------------------- */
.stat { display: flex; flex-direction: column; gap: var(--space-md); }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.3vw, 48px);
  line-height: 0.96;
  color: var(--accent-500);
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.stat__rule { height: 1px; background: var(--border-default); }

/* --------------------------------------------------------------------------
   12. Process rows
   -------------------------------------------------------------------------- */
.process-row {
  display: grid;
  grid-template-columns: 60px 340px 1fr;
  gap: var(--space-2xl);
  padding-block: var(--space-xl);
  border-top: 1px solid var(--border-inverse);
  position: relative;
  transition: padding-left var(--dur-base) var(--ease-out);
}
.process-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 100%;
  background: var(--accent-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.process-row:hover::before { transform: scaleX(1); }
.process-row:hover { padding-left: var(--space-md); }
.process-row__index { color: var(--accent-500); }
.process-row__title { color: var(--text-inverse); }

/* --------------------------------------------------------------------------
   13. Service rows
   -------------------------------------------------------------------------- */
.service-row {
  display: grid;
  grid-template-columns: 360px 48px 1fr;
  gap: var(--space-2xl);
  align-items: start;
  padding-block: var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
}
.service-row .media { height: 260px; }
.service-row:hover .media img { transform: scale(1.05); }

.tick-list { display: flex; flex-direction: column; gap: 10px; padding-top: var(--space-xs); }
.tick-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-secondary); font-size: 14px; }
.tick-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 8px;
  flex: none;
  background: var(--accent-500);
  transform: rotate(45deg);
}
.tick-list--inverse li { color: var(--text-inverse-dim); }

/* --------------------------------------------------------------------------
   14. Packages
   -------------------------------------------------------------------------- */
.package {
  background: var(--bg-inverse-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  transition: transform var(--dur-base) var(--ease-out);
  transform-style: preserve-3d;
}
.package--featured { background: var(--bg-accent); }
.package--featured .tick-list li { color: var(--neutral-0); }
.package--featured .tick-list li::before { background: var(--neutral-0); }
.package__price { color: var(--accent-500); }
.package--featured .package__price { color: var(--neutral-0); }
.package__rule { height: 1px; background: var(--border-inverse); opacity: 0.5; }
.package--featured .package__rule { background: rgba(255, 255, 255, 0.4); opacity: 1; }
.package .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq__item { border-bottom: 1px solid var(--border-subtle); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  padding-block: var(--space-lg);
  text-align: left;
  color: var(--text-primary);
  transition: color var(--dur-fast) var(--ease-out);
}
.faq__q:hover { color: var(--accent-500); }
.faq__sign {
  flex: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-tertiary);
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.faq__item[data-open="true"] .faq__q { color: var(--accent-500); }
.faq__item[data-open="true"] .faq__sign { transform: rotate(135deg); color: var(--accent-500); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-out);
}
.faq__item[data-open="true"] .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { max-width: 900px; padding-bottom: var(--space-lg); color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   16. Chips
   -------------------------------------------------------------------------- */
.chip {
  height: 44px;
  padding-inline: var(--space-lg);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--border-strong); }
.chip[aria-pressed="true"] {
  background: var(--bg-inverse);
  color: var(--text-inverse);
  border-color: var(--bg-inverse);
}

/* Filtered-out grid items collapse rather than jump */
.filter-item { transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.filter-item[hidden] { display: none; }
.filter-item.is-filtering { opacity: 0; transform: translateY(12px) scale(0.98); }

/* --------------------------------------------------------------------------
   17. Marquee
   -------------------------------------------------------------------------- */
.marquee {
  background: var(--bg-accent);
  color: var(--neutral-0);
  overflow: hidden;
  padding-block: var(--space-md);
  display: flex;
}
.marquee__track {
  display: flex;
  gap: var(--space-xl);
  flex: none;
  padding-right: var(--space-xl);
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { white-space: nowrap; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* --------------------------------------------------------------------------
   18. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  isolation: isolate;
}
.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cta-band__bg img { width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--py, 0)); }
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12, 12, 11, 0.62);
}
.cta-band__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-xl); }
.cta-band .display-l { color: var(--text-inverse); }

/* --------------------------------------------------------------------------
   19. Forms
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--space-sm); }
.field label { color: var(--text-tertiary); }
.field input,
.field textarea {
  border: 0;
  border-bottom: 1px solid var(--border-default);
  background: transparent;
  padding-bottom: 10px;
  font-size: 16px;
  resize: vertical;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-tertiary); }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--accent-500); }
.field--inverse label { color: var(--accent-500); }
.field--inverse input {
  color: var(--text-inverse);
  border-bottom-color: var(--border-inverse);
}
.field--inverse input::placeholder { color: var(--text-inverse-dim); }

.form-status {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-500);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.form-status.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   20. Contact aside & office rows
   -------------------------------------------------------------------------- */
.info-block {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-block p { white-space: pre-line; }

.office-row {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: var(--space-2xl);
  align-items: center;
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--border-inverse);
  transition: color var(--dur-fast) var(--ease-out);
}
.office-row:hover .heading-m { color: var(--accent-500); }

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-inverse);
  color: var(--text-inverse);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: var(--space-xl);
  overflow: hidden;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: clamp(32px, 6vw, 80px);
  flex-wrap: wrap;
}
.footer__statement { max-width: 520px; }
.footer__cols { display: flex; gap: clamp(32px, 5vw, 72px); flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col a { color: var(--text-inverse-dim); transition: color var(--dur-fast) var(--ease-out); }
.footer__col a:hover { color: var(--accent-500); }

.footer__wordmark {
  font-family: var(--font-display);
  color: var(--accent-500);
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.02em;
  font-size: 16.5vw;
  margin-block: clamp(32px, 5vw, 72px);
  white-space: nowrap;
}
.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  border-top: 1px solid var(--border-inverse);
  padding-top: var(--space-lg);
  color: var(--text-inverse-dim);
}

/* --------------------------------------------------------------------------
   22. Next-project bar
   -------------------------------------------------------------------------- */
.next-project {
  background: var(--bg-inverse);
  color: var(--text-inverse);
  padding-block: var(--space-2xl);
}
.next-project__inner { display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); }
.next-project__arrow {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.3vw, 48px);
  color: var(--accent-500);
  transition: transform var(--dur-base) var(--ease-out);
}
.next-project:hover .next-project__arrow { transform: translateX(16px); }
.next-project:hover .heading-l { color: var(--accent-500); }

/* --------------------------------------------------------------------------
   23. Motion utilities
   -------------------------------------------------------------------------- */
/* The hidden starting states are scoped to .js so the page stays readable
   when the script fails to load. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

.js .reveal-media {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease-out);
}
.reveal-media.is-in { clip-path: inset(0 0 0 0); }

.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
[data-stagger].is-in > * { opacity: 1; transform: none; }
[data-stagger].is-in > *:nth-child(1) { transition-delay: 0ms; }
[data-stagger].is-in > *:nth-child(2) { transition-delay: 90ms; }
[data-stagger].is-in > *:nth-child(3) { transition-delay: 180ms; }
[data-stagger].is-in > *:nth-child(4) { transition-delay: 270ms; }
[data-stagger].is-in > *:nth-child(5) { transition-delay: 360ms; }
[data-stagger].is-in > *:nth-child(6) { transition-delay: 450ms; }

/* --------------------------------------------------------------------------
   24. Cursor
   -------------------------------------------------------------------------- */
.cursor,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
}
.cursor {
  width: 7px;
  height: 7px;
  background: var(--neutral-0);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%);
  transition: width var(--dur-fast) var(--ease-out),
              height var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: transparent;
}
body.cursor-hover .cursor-ring { width: 64px; height: 64px; background: rgba(255, 255, 255, 0.14); }
body.cursor-view .cursor-ring {
  width: 96px;
  height: 96px;
  background: var(--accent-500);
  border-color: var(--accent-500);
  color: var(--neutral-0);
  mix-blend-mode: normal;
}
body.cursor-view .cursor { opacity: 0; }

/* --------------------------------------------------------------------------
   25. Preloader & page transition
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: var(--bg-inverse);
  color: var(--text-inverse);
  display: grid;
  place-items: center;
  transition: clip-path 1s var(--ease-out);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
html:not(.js) .preloader { display: none; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
.preloader__mark {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 96px);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.02em;
}
.preloader__bar { width: min(280px, 60vw); height: 1px; background: var(--border-inverse); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 0%; background: var(--accent-500); }
.preloader__count { color: var(--accent-500); }

.page-veil {
  position: fixed;
  inset: 0;
  z-index: 9996;
  background: var(--bg-inverse);
  clip-path: inset(100% 0 0 0);
  pointer-events: none;
  transition: clip-path 620ms var(--ease-in-out);
}
.page-veil.is-active { clip-path: inset(0 0 0 0); }

/* Back to top */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 880;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-inverse);
  color: var(--text-inverse);
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent-500); }

/* --------------------------------------------------------------------------
   26. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .process-row { grid-template-columns: 48px 1fr; }
  .process-row__desc { grid-column: 2; }
  .service-row { grid-template-columns: 280px 40px 1fr; }
  .service-row .media { height: 220px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .office-row { grid-template-columns: 180px 1fr; }
  .office-row .mono-xs { grid-column: 2; }
}

@media (max-width: 860px) {
  .nav__links, .nav .btn { display: none; }
  .nav__toggle { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip .media:nth-child(n + 2) { display: none; }
  .service-row { grid-template-columns: 1fr; gap: var(--space-lg); }
  .service-row .media { height: 240px; }
  .service-row__index { display: none; }
  .split--form { grid-template-columns: 1fr; }
  .footer__wordmark { font-size: 19vw; }
  .cursor, .cursor-ring { display: none; }
}

@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
  .office-row { grid-template-columns: 1fr; gap: var(--space-xs); }
  .office-row .mono-xs { grid-column: 1; }
  .hero__meta { gap: var(--space-sm); }
  .cta-band { min-height: 400px; }
}

/* --------------------------------------------------------------------------
   27. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, [data-stagger] > * { opacity: 1; transform: none; }
  .reveal-media { clip-path: none; }
  .line-mask > span { transform: none; }
  .media--parallax img, .cta-band__bg img { transform: none; height: 100%; }
  .cursor, .cursor-ring { display: none; }
}

/* --------------------------------------------------------------------------
   CAPTURE-STATIC — temporary freeze for Figma html-to-design
   Activated by <html class="capture-static">. Remove class after capture.
   -------------------------------------------------------------------------- */
html.capture-static .preloader,
html.capture-static .page-veil,
html.capture-static .progress,
html.capture-static .cursor,
html.capture-static .cursor-ring,
html.capture-static .to-top {
  display: none !important;
}
html.capture-static.js .reveal,
html.capture-static .reveal,
html.capture-static.js [data-stagger] > *,
html.capture-static [data-stagger] > * {
  opacity: 1 !important;
  transform: none !important;
}
html.capture-static.js .reveal-media,
html.capture-static .reveal-media {
  clip-path: none !important;
}
html.capture-static .line-mask > span {
  transform: none !important;
}
html.capture-static .media--parallax img,
html.capture-static .cta-band__bg img {
  transform: none !important;
  height: 100% !important;
}
html.capture-static *,
html.capture-static *::before,
html.capture-static *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
