/* ============================================================
   nomm — Identity & Culture
   Design DNA: "Vom Rohbau zur Handschrift."
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Inter:wght@400;500;600&family=Fraunces:ital,wght@0,600;1,600&display=swap');

:root {
  --bg:      oklch(0.16 0.014 48);
  --bg-2:    oklch(0.20 0.016 48);
  --ink:     oklch(0.93 0.012 55);
  --muted:   oklch(0.62 0.025 50);
  --accent:  oklch(0.62 0.125 45);
  --accent-dim: oklch(0.62 0.125 45 / 0.4);
  --halo:    oklch(0.10 0.012 48 / 0.75);

  --glass-bg:        oklch(0.93 0.012 55 / 0.05);
  --glass-bg-strong: oklch(0.93 0.012 55 / 0.1);
  --glass-border:    oklch(0.93 0.012 55 / 0.14);

  --display: 'Bricolage Grotesque', serif;
  --body: 'Inter', sans-serif;

  --edge: clamp(1.25rem, 4vw, 4rem);
  color-scheme: dark;
}

* { box-sizing: border-box; }

/* film-grain texture, keeps flat dark sections from feeling like a design-tool export */
body::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

/* custom cursor: desktop / fine-pointer only, never touches touch devices */
.cursor-dot, .cursor-ring { display: none; }

@media (pointer: fine) {
  body { cursor: none; }
  a, button { cursor: none; }

  .cursor-dot, .cursor-ring {
    display: block;
    position: fixed;
    top: 0; left: 0;
    z-index: 998;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
  }

  .cursor-dot {
    width: 6px; height: 6px;
    background: var(--accent);
  }

  .cursor-ring {
    width: 32px; height: 32px;
    border: 1px solid var(--accent-dim);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
  }

  .cursor-ring.is-active {
    width: 46px; height: 46px;
    border-color: var(--accent);
  }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -3rem;
  left: 1rem;
  z-index: 100;
  background: var(--accent);
  color: var(--bg);
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

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

html {
  background: var(--bg);
}

/* No overflow-x:hidden here: on html/body it forces overflow-y to a used
   value of 'auto' (per spec, one axis can't stay 'visible' if the other
   isn't), which turns body into its own scroll container and breaks
   position:sticky for any descendant (the pinned hero). Horizontal
   overflow is prevented per-element instead (max-width:100%, contained
   marquee, etc.) */
html, body {
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, video, canvas { display: block; max-width: 100%; }

a { color: inherit; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.badge-glass {
  display: inline-flex;
  align-items: center;
  border-left: 2px solid var(--accent);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.4rem 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

/* ---------- SITE HEADER ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--edge);
  background: linear-gradient(to bottom, oklch(0.10 0.012 48 / 0.9), transparent);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.25s ease;
  pointer-events: none;
}

.site-header.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-header-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
}

.site-header-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.85rem;
  color: oklch(0.93 0.012 55 / 0.75);
}

.site-header-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header-links a:hover { color: var(--ink); }

@media (min-width: 781px) {
  .site-header-links { display: flex; }
}

.site-header-cta {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  background: oklch(0.62 0.125 45 / 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header-cta:hover {
  border-color: var(--accent);
  background: oklch(0.62 0.125 45 / 0.2);
}

/* ---------- HERO ---------- */

.hero-wrap {
  position: relative;
  height: 100vh;
  height: 100svh;
}

.hero-stage {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The hero video is a 16:9 landscape shot of the full "NØMM Identity &
   Culture" wordmark. On a portrait screen, object-fit:cover has to crop
   the sides to fill the (much taller) viewport, cutting the wordmark down
   to an unreadable sliver — switch to contain so the whole logo stays
   visible, letterboxed top/bottom against the same near-black --bg the
   video itself already sits on, so the bars read as intentional. */
@media (max-aspect-ratio: 4/3) {
  .hero-video {
    object-fit: contain;
  }
}

.hero-halo {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center 42%, var(--halo) 0%, transparent 62%),
              linear-gradient(to top, oklch(0.10 0.012 48 / 0.65), transparent 40%),
              linear-gradient(to bottom, oklch(0.10 0.012 48 / 0.5), transparent 24%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--edge);
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
  padding-top: clamp(5rem, 10vw, 6.5rem);
  gap: 1.5rem;
}

.hero-top-row {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero-intro-row {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 639px) {
  .hero-intro-row { justify-content: flex-start; }
}

.hero-services-wrap {
  position: relative;
  width: 100%;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-services-canvas {
  display: block;
  width: 100%;
}

.hero-intro-wrap {
  position: relative;
  width: 100%;
  max-width: 38ch;
  font-size: 1rem;
  line-height: 1.6;
}

.hero-intro-canvas {
  display: block;
  width: 100%;
}

.hero-message {
  padding: clamp(3rem, 8vw, 6rem) var(--edge);
  background: var(--bg);
}

.hero-bottom-group {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.eyebrow-wrap {
  position: relative;
  width: 100%;
  max-width: 42ch;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.eyebrow-canvas {
  display: block;
  width: 100%;
}

.hero-headline-wrap {
  position: relative;
  width: 100%;
  max-width: 18ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6.4vw, 5rem);
  line-height: 1.04;
}

.hero-headline-canvas {
  display: block;
  width: 100%;
}

.hero-lede-wrap {
  position: relative;
  width: 100%;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  max-width: 42ch;
}

.hero-lede-canvas {
  display: block;
  width: 100%;
}

/* ---------- THESIS ---------- */

.thesis {
  padding: clamp(6rem, 16vw, 11rem) var(--edge);
  text-align: center;
  background: var(--bg);
  position: relative;
}

.thesis-line {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1.08;
  max-width: 16ch;
  margin: 0 auto;
}

.thesis-line .word {
  display: inline-block;
  opacity: 0.18;
}

.thesis-sub {
  margin: 1.75rem auto 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
}

/* ---------- FEATURE PAIRS ---------- */

.features {
  display: flex;
  flex-direction: column;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 82vh;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 6vw, 5rem) var(--edge);
}

.feature:nth-child(even) .feature-media { order: 2; }
.feature:nth-child(even) .feature-copy { order: 1; }

.feature-media {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-media-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.feature-parallax-target {
  transform: scale(1.06);
}

/* ---------- Feature screen overlay: corner-pinned onto the monitor in
   g1.jpg, animating a "wireframe first, styled after" loop ---------- */

.feature-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 1000px;
  height: 515px;
  transform-origin: 0 0;
  overflow: hidden;
  background: #efe9df;
}

.feature-screen .fs-logo,
.feature-screen .fs-navlink,
.feature-screen .fs-line,
.feature-screen .fs-btn,
.feature-screen .fs-card-media {
  display: block;
  background: #d9d3c6;
  border: 1.5px dashed rgba(60, 48, 36, 0.4);
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transition: background 0.9s ease, border-color 0.9s ease, border-radius 0.9s ease, box-shadow 0.9s ease;
}

.fs-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  border-bottom: 1.5px dashed rgba(60, 48, 36, 0.35);
}

.fs-logo { width: 20px; height: 20px; border-radius: 50%; }

.fs-navlinks { display: flex; gap: 34px; }
.fs-navlink { width: 52px; height: 8px; border-radius: 999px; }

.fs-hero {
  position: absolute;
  left: 50px;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fs-line { border-radius: 999px; }
.fs-line--h1 { width: 430px; height: 34px; }
.fs-line--sub { width: 300px; height: 13px; }
.fs-btn { width: 140px; height: 36px; border-radius: 999px; margin-top: 6px; }

.fs-cards {
  position: absolute;
  left: 50px;
  right: 50px;
  top: 300px;
  bottom: 40px;
  display: flex;
  gap: 34px;
}

.fs-card { flex: 1; display: flex; flex-direction: column; }
.fs-card-media { width: 100%; height: 110px; }
.fs-card .fs-line--title { width: 85%; height: 11px; margin-top: 14px; }
.fs-card .fs-line--meta { width: 55%; height: 8px; margin-top: 8px; }

.feature-screen.is-styled .fs-logo {
  background: var(--accent);
  border-color: transparent;
}

.feature-screen.is-styled .fs-navlink {
  background: oklch(0.3 0.02 50);
  border-color: transparent;
}

.feature-screen.is-styled .fs-line--h1 {
  background: oklch(0.22 0.02 50);
  border-color: transparent;
}

.feature-screen.is-styled .fs-line--sub {
  background: oklch(0.55 0.03 50);
  border-color: transparent;
}

.feature-screen.is-styled .fs-btn {
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 6px 14px oklch(0.1 0.02 48 / 0.3);
}

.feature-screen.is-styled .fs-card-media {
  border-color: transparent;
  border-radius: 4px;
  box-shadow: 0 8px 18px oklch(0.1 0.02 48 / 0.25);
}

.feature-screen.is-styled .fs-card:nth-child(1) .fs-card-media { background: oklch(0.88 0.02 60); }
.feature-screen.is-styled .fs-card:nth-child(2) .fs-card-media { background: oklch(0.75 0.035 55); }
.feature-screen.is-styled .fs-card:nth-child(3) .fs-card-media { background: var(--accent); }

.feature-screen.is-styled .fs-card .fs-line--title {
  background: oklch(0.3 0.02 50);
  border-color: transparent;
}

.feature-screen.is-styled .fs-card .fs-line--meta {
  background: oklch(0.6 0.02 50);
  border-color: transparent;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  max-width: 34ch;
}

.feature-index {
  font-family: var(--display);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
}

.feature-copy h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin: 0;
}

.feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-copy p + p { margin-top: 0.2rem; }

/* ---------- Revamp mock: before/after accessibility comparison slider ---------- */

.revamp-mock {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.revamp-browser {
  width: 100%;
  max-width: 480px;
  border-radius: 10px;
  overflow: hidden;
  background: #efe9df;
  box-shadow: 0 30px 60px oklch(0.05 0.01 48 / 0.5);
}

.revamp-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: #dedad0;
}

.revamp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(0.65 0.03 50 / 0.5);
}

.revamp-url {
  flex: 1;
  margin-left: 8px;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: oklch(0.4 0.02 50 / 0.6);
}

.revamp-viewport {
  position: relative;
  height: clamp(210px, 26vw, 290px);
  overflow: hidden;
}

.revamp-pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9% 11%;
}

.revamp-pane--before {
  background: #fbfaf6;
  gap: 7px;
}

.revamp-pane--after {
  background: #efe9df;
  gap: 16px;
  clip-path: inset(0 100% 0 0);
}

.rp-line { display: block; border-radius: 3px; }

.revamp-pane--before .rp-line--h { width: 55%; height: 8px; background: #d7d2c6; }
.revamp-pane--before .rp-line--s1 { width: 80%; height: 7px; background: #e3dfd4; }
.revamp-pane--before .rp-line--s2 { width: 64%; height: 7px; background: #e3dfd4; }
.revamp-pane--before .rp-btn {
  margin-top: 4px;
  width: 64px;
  height: 16px;
  background: transparent;
  border-bottom: 1px solid #d7d2c6;
  border-radius: 0;
}

.revamp-pane--after .rp-line--h { width: 62%; height: 19px; background: #241c14; border-radius: 4px; }
.revamp-pane--after .rp-line--s1 { width: 74%; height: 9px; background: #8a7d6c; }
.revamp-pane--after .rp-btn {
  width: 108px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 8px 18px oklch(0.1 0.02 48 / 0.25);
}

.revamp-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 8px oklch(0.05 0.01 48 / 0.4);
}

.revamp-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px oklch(0.05 0.01 48 / 0.4);
}

.revamp-tag {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
}

.revamp-tag--before { background: oklch(0.4 0.02 50 / 0.1); color: oklch(0.4 0.02 50 / 0.65); }
.revamp-tag--after { background: oklch(0.62 0.125 45 / 0.15); color: oklch(0.42 0.09 45); }

/* ---------- GALLERY BAND ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2px;
  background: var(--bg);
  min-height: 74vh;
  padding: 0 var(--edge);
}

.gallery-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.gallery-panel img,
.gallery-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  position: relative;
  z-index: 2;
  padding: 1.6rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.gallery-caption b { color: var(--accent); font-weight: 600; }

.gallery-panel .work-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
}

.gallery-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.10 0.012 48 / 0.7), transparent 55%);
}

.gallery-panel.manifesto {
  background: var(--bg);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.gallery-panel.manifesto::after { content: none; }

/* ---------- Live site preview: faithful recreation of the actual
   Tandour Bremen hero (real markup/colors/fonts), layered over the
   playing hero video instead of nomm's own generic caption ---------- */

.gallery-panel--live::after { content: none; }

.tp-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, oklch(0.08 0.014 45 / 0.8) 8%, oklch(0.08 0.014 45 / 0.15) 45%, oklch(0.08 0.014 45 / 0.55) 100%);
}

.tp-header {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  background: oklch(0.105 0.018 35 / 0.94);
}

.tp-logo { display: flex; align-items: center; gap: 0.4rem; }

.tp-logo-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: oklch(0.775 0.155 60 / 0.22);
  border: 1px solid oklch(0.775 0.155 60 / 0.55);
  flex-shrink: 0;
}

.tp-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.tp-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 0.72rem; color: oklch(0.96 0.012 75); }
.tp-tagline { font-size: 0.5rem; color: oklch(0.96 0.012 75 / 0.6); }

.tp-nav { display: none; gap: 0.7rem; font-size: 0.62rem; }
.tp-nav span { color: oklch(0.96 0.012 75 / 0.7); }
.tp-nav span.active { color: oklch(0.775 0.155 60); }

@media (min-width: 900px) {
  .tp-nav { display: flex; }
}

.tp-btn {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.32rem 0.65rem;
  border-radius: 4px;
  white-space: nowrap;
}

.tp-btn-gold { background: oklch(0.775 0.155 60); color: oklch(0.2 0.04 55); }
.tp-btn-outline { border: 1px solid oklch(0.96 0.012 75 / 0.3); color: oklch(0.96 0.012 75); }

.tp-hero-inner {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 2.4rem;
  z-index: 2;
}

.tp-eyebrow {
  display: block;
  color: oklch(0.775 0.155 60);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tp-h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: oklch(0.96 0.012 75);
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  line-height: 1.06;
  margin: 0 0 0.6rem;
}

.tp-accent { font-style: italic; color: oklch(0.775 0.155 60); }

.tp-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: oklch(0.96 0.012 75 / 0.85);
  max-width: 32ch;
  margin: 0 0 0.9rem;
}

.tp-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.tp-scrolldown {
  position: absolute;
  right: 1.1rem;
  bottom: 0.9rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.96 0.012 75 / 0.6);
}

.tp-scrolldown .bar {
  width: 1px;
  height: 14px;
  background: oklch(0.775 0.155 60 / 0.7);
}

.manifesto-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1.2;
  text-align: center;
}

.manifesto-text .w {
  display: inline-block;
  opacity: 0.15;
}

.manifesto-text .w.accent { color: var(--accent); }

/* ---------- NUMBERED ROWS ---------- */

.rows {
  padding: clamp(4rem, 8vw, 7rem) var(--edge);
  border-top: 1px solid oklch(0.4 0.02 50 / 0.18);
}

.row {
  display: grid;
  grid-template-columns: 5rem 1fr 1.4fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.8rem, 4vw, 2.6rem) 0;
  border-top: 1px solid oklch(0.4 0.02 50 / 0.18);
  align-items: baseline;
}

.row:first-child { border-top: none; }

.rows-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0 clamp(1.25rem, 3vw, 2rem);
}

.rows-panel .row { border-top: 1px solid var(--glass-border); }
.rows-panel .row:first-child { border-top: none; }

.row-title-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.row-chevron {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.row:hover .row-chevron {
  transform: translateX(4px);
  color: var(--accent);
}

.row-num {
  font-family: var(--display);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
}

.row h3 {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin: 0;
  font-weight: 700;
}

.row p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- SELECTED WORK ---------- */

.work {
  padding: clamp(4rem, 8vw, 7rem) var(--edge) clamp(5rem, 9vw, 8rem);
  border-top: 1px solid oklch(0.4 0.02 50 / 0.18);
}

.work-head {
  max-width: 46ch;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.work-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin: 0.6rem 0 0.9rem;
}

.work-head p {
  color: var(--muted);
  margin: 0;
  font-size: 1.02rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

.work-card--offset {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.work-media {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  background: #dedad0;
}

.work-chrome {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #dedad0;
}

.work-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(0.65 0.03 50 / 0.5);
}

.work-url {
  flex: 1;
  margin-left: 8px;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: oklch(0.4 0.02 50 / 0.6);
}

.work-media img {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-media img {
  transform: scale(1.045);
}

.work-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.10 0.012 48 / 0.85) 0%, transparent 45%);
  pointer-events: none;
}

.work-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 1.4rem;
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.35;
}

.work-tag {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.work-note {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* ---------- CTA ---------- */

.cta {
  padding: clamp(6rem, 14vw, 10rem) var(--edge);
  text-align: center;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.cta-line-wrap {
  position: relative;
  width: 100%;
  max-width: 18ch;
  margin: 0 auto 2rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.1;
}

.cta-line-canvas {
  display: block;
  width: 100%;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2.1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, color 0.25s ease;
}

.cta-button:hover {
  background: var(--accent);
  color: var(--bg);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cta-button--secondary {
  border-color: var(--glass-border);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta-button--secondary:hover {
  background: oklch(0.93 0.012 55 / 0.16);
  color: var(--ink);
}

.cta-note {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- FOOTER ---------- */

.site-footer {
  padding: clamp(3rem, 6vw, 4rem) var(--edge) clamp(2rem, 4vw, 2.5rem);
  background: var(--bg);
  border-top: 1px solid oklch(0.4 0.02 50 / 0.18);
}

.footer-mark {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid oklch(0.4 0.02 50 / 0.18);
  padding-bottom: clamp(1rem, 3vw, 2rem);
  margin-bottom: 1.6rem;
  --mark-fs: clamp(3.2rem, 12vw, 9rem);
  --tag-fs: clamp(1rem, 2.6vw, 1.5rem);
}

.footer-mark-wrap {
  position: relative;
  width: 100%;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--mark-fs);
  line-height: 1;
}

.footer-mark-canvas {
  display: block;
  width: 100%;
}

.footer-tagline-wrap {
  position: absolute;
  /* "NØMM" renders at ~2.97x its font-size in Bricolage Grotesque bold —
     using --mark-fs directly (instead of a % of the container) keeps this
     tracking the mark's actual rendered width at any viewport, since the
     mark's font-size and the container width don't scale at the same rate
     (a fixed % overlapped the wordmark badly once font-size hit its
     clamp() ceiling/floor at a different point than the container did). */
  left: calc(2.97 * var(--mark-fs) + 1rem);
  right: 0;
  /* Baseline-match against the NØMM mark: both canvases draw their first
     line's baseline at 0.8 * (font-size * line-height-mult) from the top
     of their own wrap, so this solves for the top offset that lines up
     the two baselines despite the very different font sizes. */
  top: calc(0.8 * var(--mark-fs) - 0.96 * var(--tag-fs));
  max-width: 30ch;
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--tag-fs);
  line-height: 1.2;
}

.footer-tagline-canvas {
  display: block;
  width: 100%;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--accent); }

/* ---------- LEGAL / STATIC CONTENT PAGES ---------- */

.site-header--static {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  background: var(--bg);
  border-bottom: 1px solid oklch(0.4 0.02 50 / 0.18);
}

.legal-page {
  padding: clamp(7rem, 14vw, 9rem) var(--edge) clamp(5rem, 9vw, 7rem);
  max-width: 74ch;
  margin: 0 auto;
}

.legal-page .section-label { display: block; margin-bottom: 0.8rem; }

.legal-page h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 0.6rem;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 3rem;
}

.legal-page h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 2.6rem 0 0.9rem;
}

.legal-page h2:first-of-type { margin-top: 0; }

.legal-page p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 1rem;
}

.legal-page p strong,
.legal-page li strong { color: var(--ink); font-weight: 600; }

.legal-page ul {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
  color: var(--muted);
}

.legal-page li { margin-bottom: 0.5rem; }

.legal-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-page a:hover { color: var(--ink); }

.legal-placeholder {
  color: var(--accent);
  background: oklch(0.62 0.125 45 / 0.12);
  padding: 0.05em 0.4em;
  border-radius: 3px;
  font-style: normal;
}

.legal-note {
  margin-top: 3rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--accent-dim);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal-note strong { color: var(--ink); }

/* ---------- COOKIE BANNER ---------- */

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg-2);
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  box-shadow: 0 12px 40px oklch(0.05 0.01 48 / 0.5);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner p {
  flex: 1 1 320px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cookie-banner a { color: var(--accent); }

.cookie-banner-btn {
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cookie-banner-btn:hover { opacity: 0.85; }

@media (max-width: 480px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner-btn { width: 100%; }
}

/* ---------- reveal helper ---------- */

.reveal { opacity: 0; transform: translateY(28px); }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .gallery { grid-template-columns: 1fr; min-height: auto; }
  .gallery-panel { min-height: 46vh; }
  .gallery-panel.manifesto { min-height: 30vh; }
}

@media (max-width: 780px) {
  .feature { grid-template-columns: 1fr; min-height: auto; }
  .feature-media { height: 50vh; }
  .feature:nth-child(even) .feature-media,
  .feature:nth-child(even) .feature-copy { order: initial; }
  .row { grid-template-columns: 3rem 1fr; }
  .row p { grid-column: 2 / 3; }
  .footer-row { flex-direction: column; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card--offset { margin-top: 0; }
  .work-media { aspect-ratio: 4 / 3; }
  .site-header { padding: 0.9rem 1.1rem; }
  .site-header-mark { font-size: 1rem; }
  .site-header-cta { font-size: 0.78rem; padding: 0.5rem 0.9rem; }

  /* NØMM keeps its own font-size floor (3.2rem) below this width while the
     container keeps shrinking, so the 34%-offset side-by-side tagline
     starts overlapping the wordmark — stack it underneath instead. */
  .footer-tagline-wrap {
    position: static;
    width: 100%;
    max-width: none;
    top: auto;
    left: auto;
    margin-top: 0.6rem;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .work-media img { transition: none; }
  .feature-screen .fs-logo,
  .feature-screen .fs-navlink,
  .feature-screen .fs-line,
  .feature-screen .fs-btn,
  .feature-screen .fs-card-media { transition: none; }
}
