/* Miami Vice Services
   Design logic: hobro.digital (two-voice oversized titles, mono metadata, one accent, tactile motion).
   Tokens: measured from the brand logo (see design/design-dna.json).

   Shape rule: buttons/chips/tags = pill, media panels = 16px, tooltip = 8px, inputs = 0 (underline).
   Z-index scale: cursor 100000 (over the WP admin bar) > loader 1000 > header 100 > mobile menu 95 > tooltip 90 > content 0.
   (The brief dialog uses the native top layer.) */

:root {
  --ink: #000000;
  --ink-2: #0b0a0f;
  --ink-3: #141319;
  --line-dark: #25242d;
  --paper: #f6f3fb;
  --paper-2: #c9c6d3;
  --muted: #878ca3;
  --muted-light: #55586b;
  --line-light: rgba(0, 0, 0, 0.14);
  --accent: #db70f3;
  --accent-ink: #904fa4;
  --error: #ff7a90;

  --chrome: linear-gradient(100deg, #db70f3 0%, #c69ef3 38%, #99b8f9 68%, #64cbf9 100%);
  --chrome-deep: linear-gradient(100deg, #904fa4 0%, #6a58c9 50%, #2f7fb8 100%);

  --font-display: "Archivo", "Arial Black", Arial, sans-serif;
  --font-text: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-script: "Mr Dafoe", "Brush Script MT", cursive;

  --gutter: 1rem;
  --header-h: 72px;
  --radius: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (max-width: 767px) {
  :root { --gutter: 0.75rem; --header-h: 60px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video, canvas, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--ink); }
html { -webkit-tap-highlight-color: transparent; }
a, button, label, [tabindex] { touch-action: manipulation; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.chapter-light :focus-visible { outline-color: var(--accent-ink); }

.sr-only {
  position: absolute !important; 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; left: var(--gutter); top: -100px; z-index: 1001;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.875rem; text-transform: uppercase;
}
.skip-link:focus { top: 12px; }
.skip-link { display: inline-flex; align-items: center; min-height: 44px; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Type primitives ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  line-height: 0.84;
  letter-spacing: -0.01em;
}
/* Brush script voice, chrome-filled like the logo. Padding keeps swashes inside the gradient box.
   Mr Dafoe has no glyphs for ğ Ğ ş Ş İ: script words must avoid those letters (they fall back to another font). */
.script {
  display: inline-block;
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.1;
  padding: 0.12em 0.3em 0.22em 0.2em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}
.chapter-light .script { background-image: var(--chrome-deep); color: var(--accent-ink); }
.text {
  max-width: 24rem;
  font-size: 1.125rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--paper-2);
}

/* Split helpers (JS adds these wrappers) */
.split-mask { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.char { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.btn--pill { border-radius: 999px; padding: 13px 26px; min-height: 44px; background: var(--paper); color: var(--ink); }
@media (hover: hover) { .btn--pill:hover { background: var(--accent); color: var(--ink); } }
.btn--pill:active { transform: scale(0.98); }
.btn--accent { background: var(--accent); color: var(--ink); }
@media (hover: hover) { .btn--accent:hover { background: var(--paper); } }
.btn--ink { background: var(--ink); color: var(--paper); }
@media (hover: hover) { .btn--ink:hover { background: var(--paper); color: var(--ink); } }
.btn--paper { background: var(--paper); color: var(--ink); }

/* ---------- Loader ---------- */
.loader { display: none; }
.has-intro .loader {
  display: block; /* must override the base display:none, or the intro is a black screen */
  position: fixed; inset: 0; z-index: 1000; overflow: hidden;
  background: var(--ink);
}
/* The clip is black around a centered logo, so cover-crop is invisible and keeps the logo large on any screen shape. */
.loader__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* portrait: cover would crop the logo (it spans ~49% of gif1.mp4's 16:9 width), so size by width instead */
@media (max-aspect-ratio: 1/1) { .loader__video { inset: auto; left: 50%; top: 50%; width: 150vw; height: auto; max-width: none; transform: translate(-50%, -50%); } }
.loader__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1rem;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted);
}
.loader__count { color: var(--paper); font-variant-numeric: tabular-nums; }
.loader__skip { padding: 12px 0 12px 12px; color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.is-loading body { overflow: hidden; }

/* ---------- Cursor (fine pointers only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  /* above the loader: the native cursor is hidden, so the custom one must stay visible during the intro */
  .has-cursor .cursor { display: block; position: fixed; inset: 0 auto auto 0; z-index: 100000; pointer-events: none; } /* also above the WP admin bar (99999) */
  .has-cursor body, .has-cursor a, .has-cursor button, .has-cursor [data-sticker] { cursor: none; }
  .has-cursor dialog, .has-cursor dialog * { cursor: auto; }
  .has-cursor dialog a, .has-cursor dialog button, .has-cursor dialog label { cursor: pointer; }
  .has-cursor input, .has-cursor textarea { cursor: text; }
}
.cursor__ring, .cursor__dot { position: absolute; top: 0; left: 0; border-radius: 50%; }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid #fff; mix-blend-mode: difference;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out), background-color 0.35s;
}
.cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--accent); }
.cursor.is-hover .cursor__ring { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: #fff; }
.cursor.is-hidden { opacity: 0; }

/* ---------- WordPress admin bar (logged-in users) ---------- */
/* Fixed layers start below the bar (WP sets the variable: 32px, or 46px under 783px). Visitors never see it. */
.admin-bar .header, .admin-bar .mobile-menu { top: var(--wp-admin--admin-bar--height, 32px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 0 var(--gutter);
  color: var(--paper);
  transition: transform 0.5s var(--ease-out), color 0.3s ease;
}
.header.is-hidden { transform: translateY(-110%); }
.header__logo { justify-self: start; display: block; padding: 6px 0; }
.header__logo img { width: 112px; height: auto; transition: filter 0.3s ease; }
.header__nav { display: flex; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.nav-link {
  position: relative; padding: 10px 0;
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
@media (hover: hover) { .nav-link:hover::after { transform: scaleX(1); transform-origin: left; } }
.header__cta { justify-self: end; }
.header__menu { display: none; justify-self: end; min-height: 44px; min-width: 44px; padding: 0 0 0 14px; }
.header.is-light { color: var(--ink); }
.header.is-light .header__logo img { filter: brightness(0.55) saturate(1.8); }
.header.is-light .header__cta { background: var(--ink); color: var(--paper); }
@media (hover: hover) { .header.is-light .header__cta:hover { background: var(--accent-ink); } }

@media (max-width: 1023px) {
  .header { grid-template-columns: 1fr auto; }
  .header__nav, .header__cta { display: none; }
  .header__menu { display: inline-flex; align-items: center; justify-content: flex-end; }
  .header__logo img { width: 92px; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 95; overflow-y: auto; overscroll-behavior: contain;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 1.5rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125;
  text-transform: uppercase; font-size: clamp(2.5rem, 12vw, 5rem); line-height: 1; padding: 0.12em 0;
}
.mobile-menu__foot { display: flex; flex-direction: column; gap: 1rem; color: var(--muted); }
.mobile-menu__foot a { display: inline-flex; align-items: center; min-height: 44px; }
.mobile-menu__foot a[href^="mailto:"] { text-transform: none; }
.menu-open .header { color: var(--paper); }
.menu-open body { overflow: hidden; }

/* ---------- Hero ---------- */
.pre-hero .hero__wordmark, .pre-hero .hero__row, .pre-hero .hero__streaks, .pre-hero .brief-card, .pre-hero .header { visibility: hidden; }
.hero {
  position: relative; isolation: isolate;
  min-height: 100dvh;
  display: grid; grid-template-columns: minmax(0, 1fr);
  /* spacer rows put the text block a little above the vertical center; the brief card keeps the bottom row */
  grid-template-rows: minmax(0.5rem, 0.8fr) auto auto minmax(1.5rem, 1fr) auto;
  gap: 14px;
  padding: calc(var(--header-h) + 4px) var(--gutter) var(--gutter);
}
.hero__wordmark { grid-row: 2; }
.hero__row { grid-row: 3; }
.brief-card { grid-row: 5; }
.wordmark {
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125;
  text-transform: uppercase; white-space: nowrap;
  font-size: 12.2vw; /* JS refines this to exactly fill the width */
  line-height: 0.8; letter-spacing: -0.01em;
  overflow: clip; padding-top: 0.04em;
}
.wordmark > span { display: inline-block; }
.wordmark__gap { width: 0.18em; }
.hero__row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; align-items: end;
}
.hero__kicker { grid-column: 1 / span 4; color: var(--paper); }
.hero__lede {
  grid-column: 7 / span 6; max-width: 36ch;
  font-size: clamp(1rem, 1.2vw, 1.25rem); line-height: 1.35; color: var(--paper-2);
}
/* Full-bleed, like every other section. Streaks fade out under the wordmark and into the next section. */
.hero__streaks {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, #000 32%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, #000 32%, #000 80%, transparent 100%);
}
.shader { position: absolute; inset: 0; width: 100%; height: 100%; }
.brief-card {
  position: relative; justify-self: end; align-self: end;
  width: min(360px, 100%);
  padding: 20px; border-radius: var(--radius);
  background: rgba(11, 10, 15, 0.55);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(246, 243, 251, 0.12);
}
@media (prefers-reduced-transparency: reduce) { .brief-card { background: var(--ink-2); backdrop-filter: none; } }
.brief-card__title { font-size: 1.5rem; font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 18px; max-width: 14ch; }

@media (max-width: 767px) {
  .hero { gap: 12px; }
  .hero__row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero__kicker, .hero__lede { grid-column: 1; }
  .brief-card { justify-self: stretch; width: auto; }
}

/* ---------- Manifesto ---------- */
.manifesto {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(6rem, 12vw, 13rem) var(--gutter) clamp(4rem, 8vw, 9rem);
}
.manifesto__title {
  max-width: 21em;
  font-size: clamp(1.75rem, 3.3vw, 3.5rem); font-weight: 500;
  line-height: 1.08; letter-spacing: -0.025em;
  position: relative; z-index: 1;
}
.manifesto__title .word { display: inline-block; }
.manifesto__text { margin-top: 2.25rem; position: relative; z-index: 1; }

.stickers { position: absolute; inset: 0; pointer-events: none; }
.sticker {
  position: absolute; pointer-events: auto; user-select: none; -webkit-user-select: none;
  touch-action: none; cursor: grab; z-index: 2;
}
.sticker:active { cursor: grabbing; }
.sticker--ring {
  width: 150px; height: 150px; left: 2%; top: 7%;
  border-radius: 50%; background: var(--ink-3); border: 1px solid var(--line-dark);
  display: grid; place-items: center;
}
.sticker--ring svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.sticker--ring text { font-family: var(--font-mono); font-size: 13.2px; font-weight: 500; letter-spacing: 0.16em; fill: var(--paper); }
.sticker__core {
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125;
  font-size: 40px; line-height: 1;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sticker--chrome {
  right: 5%; top: 2.5%; transform: rotate(8deg);
  padding: 16px 30px; border-radius: 999px; background: var(--chrome); color: var(--ink);
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125;
  font-size: clamp(1.75rem, 2.6vw, 2.75rem); line-height: 1;
}
.sticker--paper {
  left: 9%; bottom: 20%; transform: rotate(-7deg);
  padding: 14px 26px; border-radius: 999px; background: var(--paper); color: var(--ink);
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125;
  text-transform: uppercase; font-size: clamp(1.5rem, 2.2vw, 2.25rem); line-height: 1;
}
.sticker--outline {
  left: 27%; bottom: 7%; transform: rotate(4deg);
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--paper); background: var(--ink);
  font-size: clamp(1.125rem, 1.4vw, 1.5rem); font-weight: 500; line-height: 1; white-space: nowrap;
}
@keyframes spin { to { transform: rotate(360deg); } }

.call {
  position: relative; z-index: 1; align-self: flex-end;
  margin-top: clamp(4rem, 8vw, 8rem); margin-right: clamp(0rem, 4vw, 5rem);
  width: clamp(20rem, 32vw, 39rem); aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line-dark);
  text-align: left;
}
.call__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: opacity 0.5s ease, transform 0.8s var(--ease-out); }
.call:focus-visible .call__video { opacity: 1; transform: scale(1.04); }
@media (hover: hover) { .call:hover .call__video { opacity: 1; transform: scale(1.04); } }
.call::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 60%); }
.call__label { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; display: grid; gap: 10px; }
.call__q { font-size: clamp(1.5rem, 2.2vw, 2.25rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; max-width: 13ch; }
.call__hint { display: inline-flex; align-items: center; gap: 0.5em; color: var(--accent); }

@media (max-width: 1199px) {
  .stickers { position: relative; inset: auto; width: min(100%, 44rem); height: 260px; margin-top: 2.5rem; }
  .sticker--ring { width: 118px; height: 118px; left: 2%; top: 8%; }
  .sticker__core { font-size: 32px; }
  .sticker--chrome { left: auto; right: 4%; top: 4%; }
  .sticker--paper { left: 34%; bottom: 36%; }
  .sticker--outline { left: 6%; bottom: 4%; }
  .call { align-self: center; margin: 2rem 0 0; }
}
@media (max-width: 767px) {
  .manifesto { padding-top: 5rem; }
  .call { align-self: stretch; width: 100%; margin-top: 1.5rem; }
}

/* ---------- Light chapter ---------- */
.chapter-light { background: var(--paper); color: var(--ink); }
.chapter-light .text { color: var(--muted-light); }

/* Services (Hobro "What we do") */
.services { position: relative; padding: clamp(5rem, 9vw, 10rem) var(--gutter) clamp(3rem, 5vw, 6rem); }
.duo { display: flex; flex-direction: column; font-weight: 400; }
.duo__script {
  align-self: flex-start;
  font-size: clamp(5rem, 13vw, 16rem);
  margin: 0 0 -0.52em 3vw;
  transform: rotate(-7deg);
  position: relative; z-index: 1;
}
.duo__block { display: block; font-size: 12.2vw; white-space: nowrap; }
.services__typed {
  margin: clamp(2.5rem, 5vw, 5rem) 0 clamp(3rem, 6vw, 6rem) auto;
  max-width: 30ch; margin-right: 8vw;
  font-size: clamp(1.25rem, 1.75vw, 1.875rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em;
}
.services__caret { color: var(--accent-ink); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-light); }
.svc-col { padding: 1.25rem 1.5rem 0 0; }
.svc-col + .svc-col { border-left: 1px solid var(--line-light); padding-left: 1.5rem; }
.svc-col__title { color: var(--muted-light); margin-bottom: 1.5rem; }
.svc { padding: 0.35rem 0; outline-offset: 2px; }
.svc__name {
  display: inline-block;
  font-size: clamp(1.25rem, 1.9vw, 2.125rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.025em;
  transition: transform 0.45s var(--ease-out), color 0.3s ease;
}
.svc:focus-visible .svc__name { transform: translateX(0.5rem); color: var(--accent-ink); }
@media (hover: hover) { .svc:hover .svc__name { transform: translateX(0.5rem); color: var(--accent-ink); } }
.svc__desc { display: block; margin-top: 0.25rem; font-size: 0.9375rem; line-height: 1.4; color: var(--muted-light); max-width: 34ch; }
@media (hover: hover) and (pointer: fine) {
  .svc__desc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.svc-tip {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  max-width: 270px; padding: 14px 16px; border-radius: 8px;
  background: var(--ink); color: var(--paper);
  opacity: 0; transform: scale(0.92); transform-origin: 0 0;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
}
.svc-tip.is-visible { opacity: 1; transform: scale(1); }
.svc-tip__label { display: block; color: var(--accent); font-size: 0.6875rem; margin-bottom: 8px; }
.svc-tip__text { display: block; font-size: 0.9375rem; line-height: 1.4; }

@media (max-width: 767px) {
  .duo__script { margin-left: 0; }
  .services__typed { margin-right: 0; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .svc-col, .svc-col + .svc-col { border-left: 0; padding: 1.25rem 0 1.75rem; border-top: 1px solid var(--line-light); }
  .svc { padding: 0.6rem 0; }
  .svc__desc { font-size: 1rem; }
}

/* Pillars (Hobro "features") */
.pillars {
  display: flex; gap: 10px;
  height: clamp(28rem, 66vh, 46rem);
  padding: 0 var(--gutter) clamp(5rem, 9vw, 10rem);
}
.pillar {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  border-radius: var(--radius); background: var(--ink); color: var(--paper);
  cursor: pointer; transition: flex-grow 0.9s var(--ease-out);
}
.pillar.is-active { flex-grow: 2.4; }
.pillar__shader { opacity: 0; transition: opacity 0.8s ease; }
.pillar.is-active .pillar__shader { opacity: 1; }
.pillar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.1) 75%); pointer-events: none; }
.pillar__body {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  padding: clamp(18px, 1.8vw, 28px);
}
.pillar__num + .pillar__title { margin-top: auto; }
.pillar__num { color: var(--paper-2); }
.pillar__title { font-size: clamp(1.75rem, 2.8vw, 3.25rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.pillar__more {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 0.8s var(--ease-out), opacity 0.5s ease;
}
.pillar__more > * { min-height: 0; }
.pillar__more > p { overflow: hidden; max-width: 36ch; margin-top: 1rem; color: var(--paper-2); font-size: 1.0625rem; line-height: 1.45; }
.pillar__more > .tags { overflow: hidden; }
.pillar.is-active .pillar__more { grid-template-rows: 1fr auto; opacity: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.tags li { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(246, 243, 251, 0.3); font-size: 0.75rem; }

@media (max-width: 767px) {
  .pillars { flex-direction: column; height: auto; }
  .pillar, .pillar.is-active { flex: none; min-height: 24rem; }
  .pillar .pillar__shader { opacity: 1; }
  .pillar .pillar__more { grid-template-rows: 1fr auto; opacity: 1; }
}

/* ---------- References & portfolio (Hobro "Selected Cases") ----------
   Rows = buttons (keyboard + tap). Fine pointers get a cursor-following cover preview;
   touch screens show the cover inline, because hover does not exist there. */
.work { position: relative; padding: clamp(6rem, 11vw, 12rem) var(--gutter) clamp(5rem, 9vw, 10rem); }
.work__lede { margin: clamp(2rem, 4vw, 4rem) 8vw clamp(3rem, 6vw, 6rem) auto; }
.cases { border-bottom: 1px solid var(--line-dark); }
.case { border-top: 1px solid var(--line-dark); }
.case__btn {
  width: 100%; min-height: 44px; text-align: left;
  display: grid; align-items: center; gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 7fr) minmax(0, 3fr) auto;
  padding: clamp(1.25rem, 2.2vw, 2.25rem) 0;
}
.case__num { color: var(--muted); }
.case__name {
  font-size: clamp(2.25rem, 6vw, 7rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.045em;
  padding-bottom: 0.06em;
  /* chrome wipes in over paper on hover, like the process step numbers */
  background: var(--chrome) 0 0 / 0% 100% no-repeat, linear-gradient(var(--paper), var(--paper));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--paper);
  transition: background-size 0.8s var(--ease-out), transform 0.6s var(--ease-out);
}
.case__meta { color: var(--paper-2); line-height: 1.35; }
.case__arrow { font-size: clamp(1.5rem, 2.2vw, 2.25rem); transition: transform 0.5s var(--ease-out), color 0.3s ease; }
.case__btn:focus-visible .case__name { background-size: 100% 100%, auto; }
@media (hover: hover) {
  .case__btn:hover .case__name { background-size: 100% 100%, auto; transform: translateX(1rem); }
  .case__btn:hover .case__arrow { transform: rotate(45deg); color: var(--accent); }
}
.case__img { display: none; }
.case-preview {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; display: none;
  width: clamp(20rem, 30vw, 32rem); aspect-ratio: 16 / 9; background: var(--ink-2);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark);
  opacity: 0; transform: scale(0.85); transform-origin: 0 0;
  transition: opacity 0.3s ease, transform 0.5s var(--ease-out);
}
.case-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.case-preview.is-visible { opacity: 1; transform: scale(1); }
@media (hover: hover) and (pointer: fine) { .case-preview { display: block; } }
@media (hover: none), (pointer: coarse) {
  .case__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; border-radius: var(--radius); border: 1px solid var(--line-dark); margin-bottom: 1.5rem; cursor: pointer; }
}
@media (max-width: 767px) {
  .work__lede { margin-right: 0; }
  .case__btn {
    grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 0.75rem; row-gap: 0.5rem;
    grid-template-areas: "num name arrow" ". meta meta";
  }
  .case__num { grid-area: num; } .case__name { grid-area: name; } .case__meta { grid-area: meta; } .case__arrow { grid-area: arrow; }
}

/* ---------- Case dialog (shares the brief sheet: .brief) ---------- */
.case-dlg__inner {
  position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain;
  container-type: inline-size;
  display: grid; column-gap: clamp(2rem, 5vw, 5rem); row-gap: clamp(1.75rem, 3vw, 2.75rem); align-content: start;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  grid-template-areas: "head head" "facts body" "vis vis" "cta cta";
  padding: clamp(4.5rem, 7vw, 6rem) clamp(1.25rem, 4vw, 4rem) clamp(2rem, 4vw, 4rem);
}
.case-dlg__head { grid-area: head; }
.case-dlg__num { color: var(--muted); }
.case-dlg__title { display: flex; flex-direction: column; margin-top: 1rem; font-weight: 400; }
.case-dlg__title .script { align-self: flex-start; font-size: clamp(2.75rem, 9cqi, 6.5rem); margin: 0 0 -0.45em 0.4em; transform: rotate(-6deg); position: relative; z-index: 1; }
.case-dlg__title .display { font-size: clamp(1.75rem, 7.6cqi, 6.5rem); white-space: nowrap; }
.case-dlg__sub { margin-top: 1rem; color: var(--paper-2); font-size: 1.125rem; }
.case-dlg__facts { grid-area: facts; display: grid; gap: 1.25rem; align-content: start; }
.case-dlg__facts dt { color: var(--muted); margin-bottom: 0.35rem; }
.case-dlg__facts dd { font-size: 1.125rem; font-weight: 500; }
.case-dlg__facts a { border-bottom: 1px solid var(--line-dark); padding-bottom: 2px; }
.case-dlg__facts a, .brief__contacts dd a { display: inline-flex; align-items: center; min-height: 44px; }
.case-dlg__body { grid-area: body; }
.case-dlg__body p { max-width: 54ch; color: var(--paper-2); font-size: 1.0625rem; line-height: 1.55; }
.case-dlg__body p + p { margin-top: 1rem; }
.case-dlg__body .tags { margin-top: 1.5rem; }
.case-dlg__visuals { grid-area: vis; display: grid; gap: 12px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.case-dlg__visuals:has(.shot--mobile) { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); background: var(--ink); }
.shot img { width: 100%; height: auto; }
.case-dlg__cta { grid-area: cta; display: flex; flex-wrap: wrap; gap: 12px; }
@media (hover: hover) { .case-dlg__facts a:hover { color: var(--accent); border-color: var(--accent); } }
@media (max-width: 767px) {
  .case-dlg__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "facts" "body" "vis" "cta"; }
  .case-dlg__visuals:has(.shot--mobile) { grid-template-columns: minmax(0, 1fr); }
  .shot--mobile { width: 62%; justify-self: center; }
}

/* ---------- Process ----------
   Default = stacked (no JS, small screens, reduced motion).
   JS adds .is-pan on desktop to pin the section and pan the track horizontally. */
.process { position: relative; overflow: hidden; }
.process__track {
  display: flex; flex-direction: column; gap: 3.5rem;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter) clamp(4rem, 7vw, 7rem);
}
.duo--stack .duo__script { font-size: clamp(4.5rem, 10vw, 12rem); margin-bottom: -0.5em; }
.duo--stack .duo__block { font-size: clamp(2.5rem, 10.4vw, 10.5rem); }
.process__intro .text { margin-top: 2rem; }
.step { position: relative; border-top: 1px solid var(--line-dark); padding-top: 1.5rem; }
.step__num {
  display: block; margin-bottom: 1.5rem;
  font-size: clamp(5rem, 16vw, 13rem); line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1.5px var(--paper);
  background: var(--chrome); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; background-size: 0% 100%; background-repeat: no-repeat;
  transition: background-size 0.9s var(--ease-out), -webkit-text-stroke-color 0.9s ease;
}
.step.is-current .step__num { background-size: 100% 100%; -webkit-text-stroke-color: transparent; }
@media (hover: hover) { .step:hover .step__num { background-size: 100% 100%; -webkit-text-stroke-color: transparent; } }
.step__title { font-size: clamp(2rem, 3.2vw, 3.5rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.step__text { margin-top: 1rem; max-width: 34ch; color: var(--paper-2); font-size: 1.0625rem; line-height: 1.45; }
.process__progress { display: none; }

.process.is-pan .process__track {
  flex-direction: row; align-items: center; gap: clamp(1.5rem, 3vw, 3.5rem);
  width: max-content; height: 100dvh; min-height: 40rem;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 4rem;
}
.process.is-pan .process__intro { flex: none; padding-right: clamp(2rem, 6vw, 8rem); }
.process.is-pan .duo--stack .duo__block { font-size: clamp(3.5rem, 8.6vw, 10.5rem); }
.process.is-pan .process__intro .text { margin: 2.5rem 6vw 0 auto; }
.process.is-pan .step {
  flex: none; width: clamp(20rem, 32vw, 32rem); height: min(68vh, 44rem);
  display: flex; flex-direction: column; justify-content: flex-end;
  border-top: 0; border-left: 1px solid var(--line-dark);
  padding: 0 0 0 clamp(1.25rem, 2vw, 2rem);
}
.process.is-pan .step__num { position: absolute; top: 0; left: clamp(1.25rem, 2vw, 2rem); margin: 0; font-size: clamp(6rem, 12vw, 13rem); }
.process.is-pan .process__progress { display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 2rem; height: 1px; }
.process__progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Vision (Hobro "aims") ---------- */
.vision { padding: clamp(6rem, 12vw, 14rem) var(--gutter) clamp(5rem, 9vw, 10rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1rem; }
.vision__title { grid-column: 1 / -1; font-size: clamp(7rem, 21vw, 24rem); margin-left: -0.08em; }
.vision__lead {
  grid-column: 4 / -1; margin-top: -5vw; position: relative;
  font-size: clamp(2rem, 4.2vw, 4.75rem); font-weight: 500; line-height: 1; letter-spacing: -0.035em; max-width: 19ch;
}
.vision__cols { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(3rem, 5vw, 5rem); }
.vision__small { grid-column: 1 / -1; margin-top: clamp(5rem, 9vw, 9rem); color: var(--muted); }
.vision__email {
  grid-column: 1 / -1; justify-self: start; margin-top: 1rem; min-height: 44px; display: inline-flex; align-items: flex-end;
  font-size: clamp(2.25rem, 6.6vw, 8rem); font-weight: 500; line-height: 1; letter-spacing: -0.045em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 2px no-repeat;
  padding-bottom: 0.08em;
  transition: background-size 0.6s var(--ease-out), color 0.3s ease;
}
@media (hover: hover) { .vision__email:hover { color: var(--accent); background-size: 100% 2px; } }

@media (max-width: 1023px) {
  .vision__lead { grid-column: 1 / -1; margin-top: -2rem; }
  .vision__cols { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}
@media (max-width: 767px) {
  .vision__email { font-size: 7.6vw; }
}

/* ---------- CTA band (Hobro "ccfw") ---------- */
.band {
  margin: 0 var(--gutter); border-radius: var(--radius);
  background: var(--chrome); color: var(--ink);
  padding: clamp(3rem, 7vw, 7.5rem) clamp(1.5rem, 4vw, 4.5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem;
}
.band__title {
  font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-variation-settings: "wdth" 112;
  text-transform: uppercase; font-size: clamp(1.5rem, 4.7vw, 5.75rem); line-height: 0.9; letter-spacing: -0.01em; max-width: 16ch;
}
@media (max-width: 767px) { .band { grid-template-columns: minmax(0, 1fr); } .band .btn { justify-self: start; } }

/* ---------- Tools (replaces Hobro "partners") ---------- */
.tools { padding: clamp(6rem, 11vw, 13rem) 0 clamp(4rem, 7vw, 7rem); }
.tools__title { display: flex; flex-direction: column; padding: 0 var(--gutter); font-weight: 400; }
.tools__sans { font-size: clamp(2.5rem, 4.6vw, 5.5rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.035em; }
.tools__script { align-self: flex-start; font-size: clamp(4rem, 9.5vw, 11rem); margin: -0.3em 0 0 12vw; }
.tools__groups { display: flex; flex-wrap: wrap; gap: 1rem clamp(1.5rem, 3.5vw, 4rem); padding: 0 var(--gutter); margin: clamp(2rem, 4vw, 4rem) 0 clamp(3rem, 5vw, 5rem); }
.tools__groups li { font-size: clamp(1.125rem, 1.45vw, 1.75rem); font-weight: 500; text-transform: uppercase; letter-spacing: -0.015em; }
.count { font-family: var(--font-script); text-transform: none; font-size: 1.5em; color: var(--accent); margin-left: 0.1em; }

.marquee {
  overflow: hidden; padding: 1.5rem 0;
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: clamp(2.5rem, 5vw, 5rem); width: max-content; animation: marquee 48s linear infinite; }
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } }
.marquee__track li { flex: none; }
.marquee__track img { width: auto; height: clamp(28px, 2.6vw, 40px); filter: invert(1); opacity: 0.72; transition: opacity 0.3s ease; }
@media (hover: hover) { .marquee__track li:hover img { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 var(--gutter); }
}

/* ---------- Footer ---------- */
.footer { padding: clamp(4rem, 7vw, 7rem) var(--gutter) 1rem; border-top: 1px solid var(--line-dark); }
.footer__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem 1rem; }
.footer__col { grid-column: span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.footer__label { color: var(--muted); font-weight: 500; margin-bottom: 0.9rem; }
.footer__link {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px;
  font-size: clamp(1.125rem, 1.4vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em;
  transition: color 0.3s ease;
}
@media (hover: hover) { .footer__link:hover { color: var(--accent); } }
.footer__wordmark { margin-top: clamp(3rem, 7vw, 8rem); color: var(--accent); }
/* JS sizes and offsets each letter's gradient so the sweep stays continuous while letters animate. */
.footer__wordmark > span {
  background: var(--chrome) no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.footer__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.25rem; color: var(--muted); }
.footer__top { display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; color: var(--paper); }
@media (max-width: 767px) { .footer__col { grid-column: 1 / -1; } }

/* ---------- Brief dialog (Hobro capabilities popup) ---------- */
.brief {
  margin: 0 0 0 auto; padding: 0; border: 0;
  width: min(1120px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  background: var(--ink-2); color: var(--paper);
  box-shadow: 0 30px 80px -20px rgba(219, 112, 243, 0.25);
}
.brief::backdrop { background: rgba(0, 0, 0, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.brief[open] { animation: sheet-in 0.7s var(--ease-out); }
.brief.is-closing { animation: sheet-out 0.45s var(--ease-in-out) forwards; }
@keyframes sheet-in { from { transform: translateX(100%); } }
@keyframes sheet-out { to { transform: translateX(100%); } }
.brief__inner {
  position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(4.5rem, 7vw, 6rem) clamp(1.25rem, 4vw, 4rem) clamp(2rem, 4vw, 4rem);
}
.brief__close {
  position: absolute; top: 16px; right: 16px; width: 48px; height: 48px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark);
  font-size: 1.25rem; transition: background-color 0.3s ease, color 0.3s ease;
}
@media (hover: hover) { .brief__close:hover { background: var(--paper); color: var(--ink); } }
/* Sized to its own column (container units), not the viewport: the dialog stops growing at 1120px,
   so vw-based sizes overflowed into the form on wide screens. "PROJE" is ~4.3em wide -> 22cqi fills the column. */
.brief__side { container-type: inline-size; min-width: 0; }
.brief__title { display: flex; flex-direction: column; font-weight: 400; }
.brief__title .display { font-size: clamp(2.5rem, 22cqi, 7.5rem); }
.brief__title .script { font-size: clamp(2.5rem, 17cqi, 7rem); margin: -0.35em 0 0 0.6em; align-self: flex-start; }
.brief__intro { margin-top: 1.5rem; max-width: 34ch; color: var(--paper-2); font-size: 1.0625rem; line-height: 1.45; }
.brief__contacts { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.brief__contacts dt { color: var(--muted); margin-bottom: 0.35rem; }
.brief__contacts dd a { font-size: 1.125rem; font-weight: 500; border-bottom: 1px solid var(--line-dark); padding-bottom: 2px; }
@media (hover: hover) { .brief__contacts dd a:hover { color: var(--accent); border-color: var(--accent); } }

.form { display: grid; gap: 1.6rem; align-content: start; }
.form[hidden] { display: none; }
.field { display: grid; gap: 0.5rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 0.9375rem; font-weight: 500; color: var(--paper); padding: 0; }
.field input, .field textarea {
  width: 100%; background: transparent; color: var(--paper);
  border: 0; border-bottom: 1px solid #72717f; border-radius: 0;
  padding: 0.7rem 0; font: inherit; font-size: 1.125rem; line-height: 1.4;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }
.field__error { min-height: 0; font-size: 0.875rem; color: var(--error); }
.field__error:empty { display: none; }
.field__help { font-size: 0.8125rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid #72717f; font-size: 0.9375rem; transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
@media (hover: hover) { .chip:hover span { border-color: var(--paper); } }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.form__status { font-size: 0.9375rem; color: var(--error); }
.form__status:empty { display: none; }
.form__submit { justify-self: start; }
.form__submit[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.brief__success { grid-column: 2; align-self: center; display: grid; gap: 1.25rem; justify-items: start; container-type: inline-size; min-width: 0; }
.brief__success[hidden] { display: none; }
.brief__success-title {
  font-size: clamp(2.5rem, 15cqi, 7rem); /* container units: the dialog is capped at 1120px */
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brief__success-text { max-width: 38ch; color: var(--paper-2); font-size: 1.125rem; line-height: 1.45; }
.brief__success-text a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 767px) {
  .brief__inner { grid-template-columns: minmax(0, 1fr); }
  .brief__success { grid-column: 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;   /* keeps animationend firing (dialog close) */
    animation-iteration-count: 1 !important;
    /* 0s, not 0.01ms: with the default transition-property "all", a tiny duration makes EVERY
       property transition, so layout reads (fit-to-width) returned stale sizes. */
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- WordPress fallback page (index.php: posts, pages, 404) ---------- */
.page { max-width: 72ch; margin: 0 auto; padding: calc(var(--header-h) + 3rem) var(--gutter) 4rem; }
.page__entry + .page__entry { margin-top: 3rem; }
.page__title { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1; text-transform: uppercase; margin: 0 0 1.5rem; }
.page__content { color: var(--paper-2); font-size: 1.0625rem; line-height: 1.6; }
.page__content > * + * { margin-top: 1rem; }
.page__content a { text-decoration: underline; text-underline-offset: 3px; }
.page__back { margin-top: 2.5rem; }
