/* ==========================================================================
   zerofourzerofive creation — main stylesheet
   ========================================================================== */

:root {
  --paper: #f2f1ed;
  --paper-2: #e8e6e0;
  --ink: #0e0e0e;
  --ink-2: #1a1a1a;
  --muted: #6d6b66;
  --line: rgba(14, 14, 14, .14);
  --line-light: rgba(255, 255, 255, .16);
  --accent: #67ddf4;            /* z4z5 cyan — on dark backgrounds */
  --accent-ink: #036c81;        /* z4z5 petrol — cyan for text on light backgrounds */
  --error: #ff7a7a;
  --seq-bg: #f2f2f2;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 500 12px/1 var(--f-body);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.eyebrow--light { color: rgba(255,255,255,.6); }
.eyebrow .dot { display: none; }

.display {
  font-family: var(--f-display);
  font-weight: 600;
  font-stretch: 112%;
  font-size: clamp(2.4rem, 6.4vw, 6.4rem);
  line-height: .98;
  letter-spacing: -0.035em;
  margin-top: 22px;
  max-width: 16ch;
}
.display em { font-size: 1.08em; letter-spacing: -0.02em; color: var(--accent-ink); }
.display--sm { font-size: clamp(2.2rem, 4.8vw, 4.6rem); }

.lead {
  font-family: var(--f-display);
  font-stretch: 100%;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.lead em { font-size: 1.1em; }

/* split-text helpers (set by JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  height: 56px; padding: 0 28px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 600 13px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
  transition: color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--ink); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--light:hover { color: var(--ink); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 11.5px; }
.btn--block { width: 100%; }

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
}
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loader__signet { width: 84px; filter: invert(1); opacity: .95; }
.loader__count { font: 500 14px/1 var(--f-body); letter-spacing: .14em; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.6); }
.loader__line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.08); }
.loader__line i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
body:not(.js) .loader { display: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 32px;
  padding-inline: var(--gutter);
  transition: transform .6s var(--ease), background .4s, box-shadow .4s;
}
.header.is-scrolled {
  background: rgba(242, 241, 237, .78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header__logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 14px;
  font: 500 14px/1 var(--f-body);
  border-radius: 999px;
  transition: background .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; }

.mmenu { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav, .header__cta { display: none; }
  .header__logo img { height: 32px; }
  .burger {
    display: grid; place-content: center; gap: 6px;
    margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
    background: var(--ink); position: relative; z-index: 61;
  }
  .burger span { display: block; width: 18px; height: 1.6px; background: var(--paper); transition: transform .45s var(--ease); }
  body.menu-open .burger span:first-child { transform: translateY(3.8px) rotate(45deg); }
  body.menu-open .burger span:last-child  { transform: translateY(-3.8px) rotate(-45deg); }
  body.menu-open .header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.menu-open .header__logo { filter: invert(1); }

  .mmenu {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: 0; z-index: 49;
    padding: calc(var(--header-h) + 40px) var(--gutter) 32px;
    background: var(--ink); color: var(--paper);
    clip-path: circle(0 at calc(100% - var(--gutter) - 23px) calc(var(--header-h) / 2));
    transition: clip-path .8s var(--ease);
    visibility: hidden;
  }
  body.menu-open .mmenu { clip-path: circle(150% at calc(100% - var(--gutter) - 23px) calc(var(--header-h) / 2)); visibility: visible; }
  .mmenu__nav { display: flex; flex-direction: column; }
  .mmenu__nav a {
    display: flex; align-items: baseline; gap: 14px;
    padding: 10px 0; border-bottom: 1px solid var(--line-light);
    font: 600 clamp(2rem, 9vw, 3rem)/1.05 var(--f-display); font-stretch: 112%; letter-spacing: -0.03em;
    opacity: 0; transform: translateY(24px);
    transition: opacity .5s var(--ease), transform .6s var(--ease);
  }
  .mmenu__nav a small { font: 500 11px/1 var(--f-body); letter-spacing: .14em; color: var(--accent); }
  body.menu-open .mmenu__nav a { opacity: 1; transform: none; }
  body.menu-open .mmenu__nav a:nth-child(2) { transition-delay: .05s; }
  body.menu-open .mmenu__nav a:nth-child(3) { transition-delay: .1s; }
  body.menu-open .mmenu__nav a:nth-child(4) { transition-delay: .15s; }
  body.menu-open .mmenu__nav a:nth-child(5) { transition-delay: .2s; }
  body.menu-open .mmenu__nav a:nth-child(6) { transition-delay: .25s; }
  .mmenu__foot { display: flex; flex-direction: column; gap: 6px; color: rgba(255,255,255,.7); font-size: 15px; }
}

/* ==========================================================================
   Hero / scroll sequence
   ========================================================================== */
.seq { position: relative; background: var(--seq-bg); }
.seq__stage {
  position: relative; width: 100%;
  height: 100vh; height: 100svh;
  overflow: hidden; background: var(--seq-bg);
}
.seq__canvas, .seq__poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.seq__poster { object-fit: cover; transition: opacity .4s ease; }
@media (orientation: portrait) { .seq__poster { object-fit: contain; } }
.seq.is-ready .seq__poster { opacity: 0; pointer-events: none; }

/* soft veil so copy stays legible over the bright frames */
.seq__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(242,241,237,.0) 40%, rgba(242,241,237,.85) 88%, var(--paper) 100%),
    linear-gradient(90deg, rgba(242,241,237,.55) 0%, rgba(242,241,237,0) 55%);
}

.hero {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) clamp(28px, 6vh, 64px);
  max-width: var(--maxw); margin-inline: auto;
}
.hero__eyebrow { color: var(--ink); }
.hero__title {
  margin: 18px 0 clamp(18px, 3vh, 32px);
  font-family: var(--f-display);
  font-weight: 700; font-stretch: 118%;
  font-size: clamp(3.2rem, 11.5vw, 11rem);
  line-height: .9; letter-spacing: -0.045em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-weight: 400; font-size: 1.06em; letter-spacing: -0.03em; color: var(--accent-ink); }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero__sub { max-width: 44ch; font-size: clamp(15px, 1.3vw, 18px); color: #3a3935; }

.hero-mid {
  position: absolute; right: var(--gutter); top: 50%;
  transform: translateY(-50%);
  text-align: right;
  font: 600 clamp(2.4rem, 6vw, 6rem)/.95 var(--f-display); font-stretch: 115%; letter-spacing: -0.04em;
  opacity: 0; pointer-events: none;
}
.hero-mid p { overflow: hidden; }
.hero-mid em { font-weight: 400; color: var(--accent-ink); }

.hero-end {
  position: absolute; left: var(--gutter); bottom: clamp(28px, 7vh, 72px);
  opacity: 0; pointer-events: none;
}
.hero-end p {
  margin-top: 14px;
  font: 700 clamp(2.2rem, 5.6vw, 5.6rem)/.95 var(--f-display); font-stretch: 118%; letter-spacing: -0.04em;
}

.seq__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(28px, 6vh, 64px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 500 11px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl;
}
.seq__scroll i { width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden; }
.seq__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: scrollcue 2s var(--ease) infinite; }
@keyframes scrollcue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

.seq__progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.seq__progress i { display: block; height: 100%; background: var(--accent-ink); transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 960px) {
  .seq__scroll { display: none; }
  .hero-mid { top: calc(var(--header-h) + 24px); transform: none; }
}
@media (orientation: portrait) {
  .seq__veil { background: linear-gradient(180deg, rgba(242,241,237,0) 35%, rgba(242,241,237,.92) 70%, var(--paper) 100%); }
}

/* ==========================================================================
   Problem
   ========================================================================== */
.problem { padding: clamp(96px, 16vw, 200px) 0 clamp(80px, 12vw, 160px); }
.problem__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: clamp(56px, 8vw, 110px);
  border-top: 1px solid var(--line);
}
.pcard { padding: 36px 32px 8px 0; border-right: 1px solid var(--line); }
.pcard + .pcard { padding-left: 32px; }
.pcard:last-child { border-right: 0; }
.pcard__num {
  display: flex; align-items: baseline; gap: 8px; height: 112px;
  font: 700 clamp(4.5rem, 8vw, 7rem)/1 var(--f-display); font-stretch: 118%; letter-spacing: -0.05em;
}
.pcard__num small { font: 400 1.4rem/1 var(--f-serif); font-style: italic; letter-spacing: 0; color: var(--accent-ink); }
.pcard__num--icon svg { width: 72px; height: 72px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.pcard h3 { margin: 18px 0 12px; font: 600 1.3rem/1.2 var(--f-display); letter-spacing: -0.015em; }
.pcard p { color: var(--muted); font-size: 16px; max-width: 36ch; }

@media (max-width: 860px) and (min-width: 700px) {
  .pcard { padding-right: 20px; }
  .pcard + .pcard { padding-left: 20px; }
  .pcard__num { height: 96px; font-size: 4.2rem; }
}
@media (max-width: 699px) {
  .problem__grid { grid-template-columns: 1fr; }
  .pcard, .pcard + .pcard { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .pcard__num { height: auto; }
}

/* ==========================================================================
   360°
   ========================================================================== */
.brand360 {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  padding: clamp(100px, 14vw, 180px) 0;
}
.brand360__media { position: absolute; inset: -12% 0; }
.brand360__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: .32; }
.brand360::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(14,14,14,.75) 70%); pointer-events: none; }
.brand360__inner { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.ring { position: relative; width: clamp(220px, 28vw, 380px); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 1.4; }
.ring__track { stroke: rgba(255,255,255,.14); }
.ring__bar { stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 360; stroke-dashoffset: 360; }
.ring__label { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; }
.ring__num { font: 700 clamp(4rem, 8vw, 7.4rem)/1 var(--f-display); font-stretch: 118%; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.ring__label sup { font: 400 clamp(2rem, 3vw, 3rem)/1 var(--f-serif); color: var(--accent); margin-top: .2em; }
.ring__label small { flex-basis: 100%; text-align: center; margin-top: 8px; font: 500 12px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.brand360__text { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.brand360__text .lead { max-width: 30ch; }
.brand360__text .lead em { color: var(--accent); }

@media (max-width: 699px) {
  .brand360__inner { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .brand360__text { width: 100%; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: clamp(96px, 14vw, 180px) 0 0; overflow: hidden; }
.section-head { margin-bottom: clamp(48px, 7vw, 96px); }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.section-head__aside { max-width: 30ch; color: var(--muted); }

.services__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.svc {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden;
  padding: 32px 28px 40px; min-height: 360px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: color .5s var(--ease);
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  clip-path: circle(0 at var(--mx) var(--my));
  transition: clip-path .7s var(--ease);
}
.svc:hover { color: var(--paper); }
.svc:hover::before { clip-path: circle(150% at var(--mx) var(--my)); }
.svc { isolation: isolate; }
.svc__no { font: 500 12px/1 var(--f-body); letter-spacing: .14em; color: var(--muted); transition: color .5s; }
.svc:hover .svc__no { color: var(--accent); }
.svc__icon { width: 52px; height: 52px; margin: 40px 0 0; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform .7s var(--ease); }
.svc:hover .svc__icon { transform: rotate(-8deg) scale(1.08); }
.svc h3 { margin: 56px 0 12px; font: 600 1.45rem/1.1 var(--f-display); font-stretch: 108%; letter-spacing: -0.02em; }
.svc p { font-size: 15px; line-height: 1.55; color: var(--muted); transition: color .5s; }
.svc:hover p { color: rgba(255,255,255,.72); }

@media (max-width: 1100px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .services__grid { grid-template-columns: 1fr; } .svc { min-height: 0; } .svc h3 { margin-top: 32px; } }

.marquee {
  margin-top: clamp(80px, 10vw, 140px);
  padding: 22px 0;
  border-block: 1px solid var(--line);
  overflow: hidden; white-space: nowrap;
}
.marquee__track { display: inline-flex; align-items: center; gap: clamp(24px, 3vw, 48px); will-change: transform; }
.marquee__track span { font: 600 clamp(2.6rem, 7vw, 6.4rem)/1 var(--f-display); font-stretch: 120%; letter-spacing: -0.04em; }
.marquee__track span:nth-of-type(even) { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.marquee__track i { font-style: normal; color: var(--accent-ink); font-size: clamp(1.6rem, 3vw, 2.6rem); }

/* ==========================================================================
   Process
   ========================================================================== */
.process { padding: clamp(96px, 12vw, 160px) 0; overflow: hidden; }
.process__pin { min-height: 100vh; min-height: 100svh; padding: 48px 0; display: flex; flex-direction: column; justify-content: center; }
.process__head { margin-bottom: clamp(40px, 5vw, 72px); }
.process__track {
  display: flex; gap: 20px;
  padding-inline: var(--gutter);
  will-change: transform;
}
.step {
  flex: 0 0 clamp(280px, 30vw, 420px);
  display: flex; flex-direction: column;
  min-height: min(380px, 46vh); padding: 30px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.step__no { font: 700 5rem/1 var(--f-display); font-stretch: 118%; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.step h3 { margin: auto 0 12px; font: 600 1.55rem/1.1 var(--f-display); letter-spacing: -0.02em; }
.step p { color: var(--muted); font-size: 15.5px; }
.step__tag {
  align-self: flex-start; margin-top: 22px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--paper); font: 500 12px/1 var(--f-body); letter-spacing: .04em;
}
.step__tag::before { content: "●"; color: var(--accent-ink); margin-right: 8px; font-size: 9px; vertical-align: 1px; }
.step:nth-child(odd) { background: var(--ink); color: var(--paper); }
.step:nth-child(odd) .step__no { -webkit-text-stroke-color: var(--paper); }
.step:nth-child(odd) p { color: rgba(255,255,255,.65); }
.step:nth-child(odd) .step__tag { background: rgba(255,255,255,.08); }
.step:nth-child(odd) .step__tag::before { color: var(--accent); }
.step--img { position: relative; padding: 0; overflow: hidden; flex-basis: clamp(320px, 40vw, 600px); background: var(--paper-2); }
.step--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); }
.process__bar { margin-top: 40px; }
.process__bar i { display: block; height: 2px; background: var(--line); position: relative; }
.process__bar i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

@media (max-width: 860px) {
  .process__pin { min-height: 0; }
  .process__track { flex-direction: column; }
  .step { flex-basis: auto; min-height: 0; }
  .step h3 { margin-top: 40px; }
  .step--img { aspect-ratio: 4/3; }
  .process__bar { display: none; }
}
@media (max-width: 860px) and (min-width: 600px) {
  .process__track { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .step:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ==========================================================================
   Work
   ========================================================================== */
.work { padding: clamp(96px, 12vw, 160px) 0; }
.work__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.project { grid-column: span 5; display: block; }
.project--wide { grid-column: span 7; }
.work__grid .project:nth-child(3) { grid-column: span 5; }
.work__grid .project:nth-child(4) { grid-column: span 7; }
.project__media { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 16/10.5; background: var(--paper-2); }
.project__media img { width: 100%; height: 118%; object-fit: cover; transform: scale(1.02); transition: transform 1.1s var(--ease), filter .8s; filter: grayscale(.35); }
.project:hover .project__media img { transform: scale(1.07); filter: grayscale(0); }
.project__meta { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 4px 0; }
.project__meta h3 { font: 600 1.5rem/1 var(--f-display); font-stretch: 110%; letter-spacing: -0.02em; }
.project__meta span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) {
  .work__grid .project { grid-column: span 6 !important; }
  .project__meta h3 { font-size: 1.25rem; }
}
@media (max-width: 599px) {
  .work__grid .project { grid-column: 1 / -1 !important; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: clamp(96px, 12vw, 160px) 0; background: var(--paper-2); }
.about__grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(40px, 6vw, 100px); }
.about__signet { margin: 40px 0; width: clamp(140px, 16vw, 220px); }
.about__signet img { width: 100%; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.about__claims { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.about__claims li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.about__claims span { font: 600 1.15rem/1 var(--f-display); margin-right: 6px; }
.about__main .display { margin-top: 0; }
.lead--dark { margin: 36px 0; max-width: 34ch; }
.about__claims span { color: var(--accent-ink); }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; color: #45433e; }
@media (max-width: 1100px) {
  .about__cols { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 699px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__side { display: grid; grid-template-columns: auto 1fr; gap: 0 28px; align-items: center; }
  .about__side .eyebrow { grid-column: 1 / -1; }
  .about__signet { margin: 24px 0; width: 110px; }
  .about__claims { grid-column: 1 / -1; }
}

/* ==========================================================================
   Voices & clients
   ========================================================================== */
.voices { background: var(--ink); color: var(--paper); padding: clamp(96px, 12vw, 160px) 0 clamp(64px, 8vw, 100px); }
.voices__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: 48px; }
.quote {
  position: relative; padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line-light); border-radius: 24px;
  display: flex; flex-direction: column; gap: 32px;
  transition: border-color .5s, background .5s;
}
.quote:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.03); }
.quote__mark { font: 400 6rem/.8 var(--f-serif); color: var(--accent); height: 40px; overflow: hidden; }
.quote blockquote { font: 400 clamp(1.3rem, 2vw, 1.75rem)/1.3 var(--f-display); letter-spacing: -0.015em; }
.quote figcaption { margin-top: auto; font-size: 14px; color: rgba(255,255,255,.55); }
@media (max-width: 699px) { .voices__grid { grid-template-columns: 1fr; } }

.clients { margin-top: clamp(80px, 10vw, 140px); }
.clients__marquee {
  margin-top: 36px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.clients__track { display: flex; align-items: center; gap: clamp(56px, 7vw, 110px); width: max-content; animation: clients 36s linear infinite; }
.clients__track img { height: clamp(48px, 6vw, 78px); width: auto; object-fit: contain; opacity: .65; transition: opacity .4s; }
.clients__track img:hover { opacity: 1; }
.clients__marquee:hover .clients__track { animation-play-state: paused; }
@keyframes clients { to { transform: translateX(calc(-50% - clamp(28px, 3.5vw, 55px))); } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: clamp(96px, 12vw, 160px) 0; }
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__intro > p:last-child { margin-top: 24px; max-width: 36ch; color: var(--muted); }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0;
  font: 500 clamp(1.05rem, 1.5vw, 1.3rem)/1.3 var(--f-display); letter-spacing: -0.01em;
  transition: color .3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent-ink); }
.qa summary i { flex: none; position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: background .4s, border-color .4s, transform .5s var(--ease); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .5s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: rotate(180deg); }
.qa[open] summary i::after { transform: rotate(0deg); }
.qa__body { overflow: hidden; }
.qa__body p { padding: 0 60px 28px 0; color: var(--muted); max-width: 62ch; }
@media (max-width: 760px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
  .qa__body p { padding-right: 0; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--ink); color: var(--paper); padding: clamp(96px, 12vw, 160px) 0 clamp(80px, 10vw, 120px); border-radius: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0 0; }
.contact__title {
  margin: 24px 0 clamp(56px, 7vw, 100px);
  font: 700 clamp(2.8rem, 8.5vw, 8.4rem)/.92 var(--f-display); font-stretch: 118%; letter-spacing: -0.045em;
  max-width: 14ch;
}
.contact__title em { font-weight: 400; color: var(--accent); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.contact__info > p { max-width: 40ch; color: rgba(255,255,255,.7); margin-bottom: 40px; }
.contact__big {
  display: block; width: fit-content;
  font: 500 clamp(1.5rem, 2.8vw, 2.4rem)/1.25 var(--f-display); letter-spacing: -0.02em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease), color .3s;
}
.contact__big:hover { background-size: 100% 1px; color: var(--accent); }
.contact__social { display: flex; gap: 24px; margin-top: 40px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.contact__social a:hover { color: var(--paper); }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 26px 0 12px;
  background: transparent; color: var(--paper);
  border: 0; border-bottom: 1px solid var(--line-light); border-radius: 0;
  font: 400 17px/1.4 var(--f-body);
  outline: none; resize: vertical;
  transition: border-color .4s;
}
.field label {
  position: absolute; left: 0; top: 26px;
  color: rgba(255,255,255,.5); pointer-events: none;
  transform-origin: 0 0;
  transition: transform .4s var(--ease), color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--paper); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-20px) scale(.75); color: rgba(255,255,255,.75); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }

.chips { border: 0; margin: 14px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 12px; font-size: 14px; color: rgba(255,255,255,.5); }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line-light); border-radius: 999px; font-size: 14px; transition: background .3s, color .3s, border-color .3s; }
.chips label:hover span { border-color: rgba(255,255,255,.5); }
.chips input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.consent { display: flex; gap: 12px; margin: 10px 0 14px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.6); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.consent.is-invalid { color: var(--error); }
.form__status { min-height: 1.5em; font-size: 14px; color: rgba(255,255,255,.7); }

@media (max-width: 760px) { .contact__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: rgba(255,255,255,.55); overflow: hidden; padding-bottom: 28px; }
.footer__word {
  font: 800 clamp(3rem, 15.5vw, 16rem)/.8 var(--f-display); font-stretch: 125%; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.16);
  white-space: nowrap; text-align: center;
  padding: 20px 0 40px; user-select: none;
}
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 14px; }
.footer__row nav { display: flex; gap: 24px; }
.footer a:hover { color: var(--paper); }

/* ==========================================================================
   Reveal defaults (JS sets initial state; without JS everything is visible)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (min-width: 961px) { .hero { padding-right: calc(var(--gutter) + 48px); } }

/* ==========================================================================
   WordPress specifics
   ========================================================================== */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 14px;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#top { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Subpages (Impressum, Datenschutz, posts) ---------- */
.page-wrap { padding: calc(var(--header-h) + clamp(64px, 10vw, 140px)) 0 clamp(80px, 10vw, 140px); min-height: 70vh; }
.page-hero { margin-bottom: clamp(40px, 6vw, 80px); }
.page-hero .display { max-width: 20ch; overflow-wrap: anywhere; hyphens: auto; }
.prose { max-width: 760px; font-size: 17px; line-height: 1.7; color: #2c2b28; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { margin-top: 2em; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); }
.prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.1rem; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose img { border-radius: 14px; }
.prose blockquote { padding-left: 1.2em; border-left: 2px solid var(--accent-ink); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose .wp-block-button__link, .prose .wp-element-button { display: inline-block; padding: 14px 24px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); }

.post-list { border-top: 1px solid var(--line); max-width: 960px; }
.post-item { display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); transition: color .3s; }
.post-item:hover { color: var(--accent-ink); }
.post-item h2 { font: 600 clamp(1.3rem, 2.2vw, 1.8rem)/1.2 var(--f-display); letter-spacing: -0.02em; }
.post-item__date { font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .post-item { grid-template-columns: 1fr auto; } .post-item__date { grid-column: 1 / -1; } }
.pagination .nav-links { display: flex; gap: 8px; margin-top: 40px; }
.pagination .page-numbers { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.notfound__text { max-width: 44ch; margin: 28px 0 40px; color: var(--muted); }

/* Subpages have a light page behind the header from the start */
.is-sub .header { background: rgba(242, 241, 237, .78); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }

/* Footer legal menu (when a "Footer – Rechtliches" menu is assigned) */
.legal-menu { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; list-style: none; }

/* ==========================================================================
   Complianz cookie banner — slim bar that keeps the hero headline visible
   ========================================================================== */
#cmplz-cookiebanner-container .cmplz-cookiebanner {
  top: auto !important; left: 16px !important; right: 16px !important; bottom: 16px !important;
  width: auto !important; max-width: 1180px !important; margin: 0 auto !important; transform: none !important;
  max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 14px 18px !important; gap: 6px 24px !important;
  grid-template-columns: minmax(0, 1fr) auto !important; grid-template-areas: none !important; grid-template-rows: auto !important;
  border: 1px solid var(--line) !important; border-radius: 18px !important;
  background: #fff !important; color: var(--ink) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .16) !important;
  font-family: var(--f-body) !important;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner > * { margin: 0 !important; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-divider,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-header { display: none !important; }

/* message (and the preference categories that expand in it) */
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-body { grid-column: 1 !important; grid-row: 1 !important; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-message { font-size: 12px !important; line-height: 1.5 !important; color: #45433e !important; margin: 0 !important; text-align: left !important; }

/* policy links */
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-links,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-documents { grid-column: 1 !important; grid-row: 2 !important; align-self: center; font-size: 12px !important; justify-content: flex-start !important; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-links a { color: var(--accent-ink) !important; }

/* buttons */
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons {
  grid-column: 2 !important; grid-row: 1 / span 2 !important; align-self: center;
  display: flex !important; flex-direction: row !important; flex-wrap: wrap; justify-content: flex-end; gap: 8px !important;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn {
  width: auto !important; min-width: 0 !important; max-width: none !important;
  height: 40px !important; min-height: 0 !important; margin: 0 !important; padding: 0 16px !important;
  flex: 0 0 auto !important; border-radius: 999px !important;
  font: 600 11.5px/1 var(--f-body) !important; letter-spacing: .08em !important; text-transform: uppercase; white-space: nowrap;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn.cmplz-accept { background: var(--ink) !important; border: 1px solid var(--ink) !important; color: var(--paper) !important; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn:not(.cmplz-accept) { background: transparent !important; border: 1px solid var(--line) !important; color: var(--ink) !important; }

/* tablets in portrait: text across the full width, links + buttons share the row below */
@media (max-width: 1050px) {
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-body { grid-column: 1 / -1 !important; }
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons { grid-row: 2 !important; }
}

/* phones: one column */
@media (max-width: 640px) {
  /* below the header, over the image — the headline underneath stays readable */
  #cmplz-cookiebanner-container .cmplz-cookiebanner {
    top: calc(var(--header-h, 64px) + 8px) !important; bottom: auto !important;
    left: 10px !important; right: 10px !important; max-height: calc(100vh - var(--header-h, 64px) - 20px);
    grid-template-columns: 1fr !important; padding: 12px 14px !important; gap: 8px !important;
  }
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-message { font-size: 11.5px !important; line-height: 1.45 !important; }
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons { grid-column: 1 !important; grid-row: 2 !important; justify-content: stretch; }
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn { flex: 1 1 auto !important; padding: 0 10px !important; height: 38px !important; font-size: 10.5px !important; letter-spacing: .05em !important; }
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-links,
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-documents { grid-row: 3 !important; }
}
