/* =====================================================================
   DX4 Studio — home page (redesign-home)
   Composition: tasteskill "sentence is the layout" (seed 1261453821).
   Type, ground and hero motion follow the incredibles.dev reference the
   client chose: a tight geometric display face (Urbanist, free stand-in
   for PP Frama), Inter Tight for text, JetBrains Mono for labels, a pale
   grey ground, and a halftone hero card with a cursor trail.
   DX4 blue (#008CD4, from the logo) stays the accent field.
   Self-contained: the home page does not load the legacy theme CSS.
   ===================================================================== */

/* ---------- tokens ---------- */
:root {
  --bg: #f1f1f1;
  --surface: #e6e6e6;
  --card: #fafafa;
  --hero-card: #e9e9e9;
  --ink: #2b2b2b;
  --muted: #595959;
  --dim: #858585;               /* names at rest; 3.3:1 on the ground, texture only */
  --brand-text: #006fa8;        /* blue for words on the light ground */
  --brand: #008cd4;             /* the logo's blue: fields, never small text on white */
  --brand-ink: #0a0a0a;         /* text on the brand field, 5.9:1 */
  --accent: #2b2b2b;            /* the action: dark, as on the reference */
  --accent-strong: #000000;
  --accent-ink: #ffffff;
  --tint: #dcefff;              /* pale blue field */
  --field-dark: #161616;
  --field-dark-ink: #ffffff;
  --field-dark-muted: #a6a6a6;
  --them-bg: #fbefed;           /* a faint red wash for the "other agencies" column */
  --them-ink: #b23a2e;          /* 5.6:1 on --them-bg */

  --font-display: "Urbanist", "Futura", "Century Gothic", sans-serif;
  --font-text: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --fluid-a: #008cd4;           /* trail dots and one half of the split */
  --fluid-b: #ff5a3c;           /* the other half of the split */
  --fluid-dot: #cdcdcd;         /* the drifting grey halftone */

  /* five steps; the display size is set per element from the hero blueprint */
  --step-small: clamp(0.875rem, 0.84rem + 0.12vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7.5rem, 12vw, 12.5rem);
  --radius: 6px;
  --radius-lg: 24px;
  --inset: 1.5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 6rem; }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--margin); top: 0.75rem; z-index: 200; padding: 0.75rem 1rem; background: var(--ink); color: var(--bg); transform: translateY(-200%); }
.skip:focus { transform: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.05em; line-height: 0.95; text-wrap: balance; }
.mono { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em; line-height: 1.4; text-transform: uppercase; }
p { max-width: 62ch; text-wrap: pretty; }
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.head { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.35; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 3rem; padding: 0 1.4rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button--light { background: var(--card); color: var(--ink); }
.button--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); } /* taste-skill-ignore: outlined secondary button, as on the reference */
.button .arrow { transition: transform var(--t-ui) var(--ease-out); }
.link { color: var(--brand-text); font-weight: 500; text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.22em; text-decoration-color: currentColor; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background-color: var(--accent-strong); }
  .button--light:hover { background-color: var(--brand); color: var(--brand-ink); }
  .button--ghost:hover { background-color: var(--ink); color: var(--card); }
  .button:hover .arrow { transform: translateX(4px); }
  .link:hover { color: var(--ink); text-decoration-color: transparent; }
}

/* ---------- splash (first visit per session; content renders underneath) ---------- */
.splash { display: none; }
.has-splash .splash { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--bg); cursor: pointer; animation: splash-out 520ms var(--ease-in-out) 950ms forwards; }
.splash img { width: min(46vw, 260px); height: auto; animation: splash-mark 900ms var(--ease-expo) both; }
@keyframes splash-mark { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes splash-out { to { transform: translateY(-100%); visibility: hidden; } }

/* ---------- header bar ---------- */
.bar { backdrop-filter: blur(1.2px) saturate(160%);
    background: rgba(255, 255, 255, 0.1);position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: calc(var(--inset) + 0.75rem) calc(var(--margin) + var(--inset)) 0.75rem; transition: transform 360ms var(--ease-out), background-color var(--t-ui) ease, padding var(--t-ui) var(--ease-out); }
/* at rest the bar sits inside the hero card, on its padding; once scrolled it runs edge to edge */
.bar.is-scrolled { backdrop-filter: blur(4px) saturate(160%);
    background: rgba(255, 255, 255, 0.70); padding: 0.6rem var(--margin); }
.bar.is-hidden { transform: translateY(-100%); }
.bar__mark { display: block; flex: none; }
.bar__mark img { width: 160px; height: auto; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .bar__mark:hover img { transform: rotate(-2deg) scale(1.03); } }
.bar__nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.bar__links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.bar__links a, .bar__drop > button { position: relative; display: inline-block; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; padding-block: 0.6rem; }
.bar__links > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.45rem; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--t-ui) var(--ease-out); }
.bar__links > li > a[aria-current="page"]::after, .bar__links > li > a:hover::after, .bar__links > li > a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.bar .button { min-height: 2.5rem; padding-inline: 1rem; }
/* dropdowns: open on hover or focus with a fine pointer, and always on click (js/home.js) */
.bar__drop { position: relative; }
.bar__drop > button { display: inline-flex; align-items: center; gap: 0.45rem; color: inherit; cursor: pointer; }
.bar__caret { width: 0.45rem; height: 0.45rem; margin-top: -0.2rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform var(--t-ui) var(--ease-out); }
.bar__panel { position: absolute; top: 100%; left: -1rem; z-index: 2; min-width: 16.5rem; padding: 0.75rem; border-radius: 16px; background: var(--card); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bar__panel a { display: block; padding: 0.8rem 1.1rem; border-radius: 10px; font-family: var(--font-text); font-size: 0.9375rem; font-weight: 400; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.bar__panel a:hover, .bar__panel a:focus-visible { background: var(--bg); color: var(--brand-text); }
.bar__drop.is-open .bar__panel { display: block; animation: panel-in var(--t-ui) var(--ease-out); }
.bar__drop.is-open .bar__caret { transform: rotate(225deg); margin-top: 0.2rem; }
@media (hover: hover) and (pointer: fine) {
  .bar__drop:hover .bar__panel, .bar__drop:focus-within .bar__panel { display: block; animation: panel-in var(--t-ui) var(--ease-out); }
  .bar__drop:hover .bar__caret { transform: rotate(225deg); margin-top: 0.2rem; }
}
.bar__menu { display: none; min-height: 2.75rem; padding: 0 0.25rem; font-size: 1.0625rem; text-decoration: underline; text-underline-offset: 0.2em; }

.sheet { position: fixed; inset: 0; z-index: 150; display: none; flex-direction: column; justify-content: space-between; gap: 2rem; overflow-y: auto; padding: 1.1rem var(--margin) 2rem; background: var(--field-dark); color: var(--field-dark-ink); visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 560ms var(--ease-in-out), visibility 0s linear 560ms; }
.sheet.is-open { display: flex; visibility: visible; clip-path: inset(0); animation: sheet-open 560ms var(--ease-in-out); }
@keyframes sheet-open { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.sheet__top { display: flex; justify-content: space-between; align-items: center; }
.sheet__top img { width: 132px; }
.sheet__close { min-height: 2.75rem; font-size: 1.0625rem; text-decoration: underline; text-underline-offset: 0.2em; }
.sheet__links > li > a { display: block; font-family: var(--font-display); font-size: clamp(2.5rem, 11vw, 4.5rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1.05; text-decoration: none; padding-block: 0.06em; }
.sheet.is-open .sheet__links li { animation: sheet-in 600ms var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + 200ms); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.sheet__sub { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0.25rem 0 0.9rem; }
.sheet__sub a { display: inline-block; padding-block: 0.4rem; color: var(--field-dark-muted); text-decoration: underline; text-underline-offset: 0.2em; }
.sheet__foot { display: grid; gap: 1rem; }
.sheet__foot .button { width: 100%; }
.sheet__foot p { color: var(--field-dark-muted); }

@media (max-width: 860px) {
  .bar__links, .bar .button { display: none; }
  .bar__menu { display: inline-flex; align-items: center; }
}

/* ---------- hero: an inset card with a halftone field and a cursor trail (js/hero-fluid.js) ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 7rem calc(var(--margin) + var(--inset)) calc(1.75rem + var(--inset)); background: var(--hero-card); text-align: center; overflow: hidden; clip-path: inset(var(--inset) round var(--radius-lg)); }
.hero__fluid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; } /* behind the text: the split copies show as coloured edges round the dark letters */
.hero__cursor { position: absolute; left: 0; top: 0; z-index: 3; width: 8px; height: 8px; border-radius: 50%; background: var(--fluid-a); pointer-events: none; opacity: 0; transition: opacity 200ms ease; }
.hero__cursor.is-on { opacity: 1; }
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; }
.hero__kicker { max-width: none; color: var(--ink); }
.hero__stats { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 0.25rem; margin-top: 1.75rem; color: var(--muted); }
.hero__stats li + li::before { content: "\2022"; margin: 0 0.6rem; color: var(--fluid-a); }
.hero__title { margin-top: 1.25rem; font-size: clamp(2rem, 6.6vw, 7rem); line-height: 0.95; letter-spacing: -0.05em; }
.hero__line { display: block; }
/* the audience line: same voice, half the size, so the services lead and the headline stays two lines on a phone */
.hero__line--for { margin-top: 0.3em; font-size: 0.5em; letter-spacing: -0.035em; color: var(--muted); }
.hero__lead { margin-top: 1.75rem; max-width: 50ch; font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem); line-height: 1.4; text-wrap: balance; }
.hero__lead--value { max-width: 40ch; font-size: clamp(1.25rem, 1rem + 0.9vw, 1.875rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.hero__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.75rem; }

@media (prefers-reduced-motion: no-preference) {
  /* the card settles in from full bleed, then the parts rise in order */
  .js .hero { animation: card-in 1100ms var(--ease-in-out) both; animation-delay: var(--hero-delay, 150ms); }
  @keyframes card-in { from { clip-path: inset(0 round 0); } to { clip-path: inset(var(--inset) round var(--radius-lg)); } }
  .js .hero__inner > :not(h1), .js .hero__line { opacity: 0; transform: translateY(28px); animation: rise 1000ms var(--ease-expo) forwards; animation-delay: calc(var(--i, 0) * 90ms + var(--hero-delay, 150ms) + 350ms); }
  .js .hero__line { transform: translateY(0.35em); }
  .js .hero__fluid { opacity: 0; animation: fade 1200ms ease forwards; animation-delay: calc(var(--hero-delay, 150ms) + 600ms); }
  .has-splash { --hero-delay: 1250ms; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  :root { --inset: 0.5rem; --radius-lg: 18px; }
  .hero { padding-top: 6.5rem; }
  .hero { min-height: 0; padding-bottom: 4.5rem; }
  .hero__title { font-size: 7.3vw; }
  .hero__line--for { font-size: 0.7em; }
  .hero__lead { font-size: 1.0625rem; }
  .hero__stats { font-size: 0.8125rem; }
}

/* ---------- numbers: a ticker that follows the scroll (js/scroll-fx.js); CSS runs it without JS ---------- */
.stats { overflow: hidden; margin-top: clamp(4rem, 8vw, 6.5rem); padding-block: clamp(1rem, 2vw, 1.75rem); background-color: var(--brand); background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1.2px, transparent 1.6px); background-size: 14px 14px; color: var(--brand-ink); }
.stats__track { display: flex; width: max-content; }
.stats__list { display: flex; flex: none; padding: 0; list-style: none; }
.stats__list li { display: flex; align-items: baseline; gap: 0.9rem; padding-right: clamp(2.5rem, 5vw, 5rem); white-space: nowrap; }
.stats__list li::after { content: ""; align-self: center; width: 0.6rem; height: 0.6rem; margin-left: clamp(1.5rem, 3vw, 3rem); border-radius: 50%; background: currentColor; }
.stats__list b { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.stats__list span { font-size: var(--step-body); color: var(--brand-ink); }
@media (prefers-reduced-motion: no-preference) {
  .stats__track { animation: ticker 40s linear infinite; }
  .stats.is-driven .stats__track { animation: none; }
  @keyframes ticker { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) { .stats { overflow-x: auto; } }

/* ---------- sections, shared ---------- */
.section { padding-block: calc(var(--section) / 2); }

/* scroll layer (js/scroll-fx.js, GSAP): it sets every starting state itself, so without it
   nothing is hidden. These rules only support it. */
.fx-word { display: inline-block; white-space: nowrap; }
.has-fx main > section:not(.hero) { position: relative; z-index: 1; }
.has-fx .hero + section:not(.stats) { background: var(--bg); } /* the numbers band brings its own field */
.hero { transform-origin: 50% 30%; }

/* ---------- section header: a plain-named heading, with one line on what the section holds ---------- */
.sec-head { align-items: end; row-gap: 1.25rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head h2 { grid-column: 1 / span 7; font-size: var(--step-head); }
.sec-head p { grid-column: 8 / -1; font-size: var(--step-body); line-height: 1.5; }
@media (max-width: 860px) {
  .sec-head { display: block; }
  .sec-head p { margin-top: 1rem; }
}

/* ---------- work: showcase + names as one paragraph ---------- */
.showcase { display: block; margin-inline: var(--margin); overflow: hidden; background: #0d2a8f; border-radius: var(--radius-lg); }
.showcase img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.showcase-cap { margin-top: 1.25rem; align-items: start; }
.showcase-cap h3 { grid-column: 1 / span 4; font-size: clamp(2.25rem, 3.4vw, 3.25rem); }
.showcase-cap > div { grid-column: 5 / span 5; }
.showcase-cap .link { grid-column: 10 / -1; justify-self: end; font-size: var(--step-body); }
.showcase-cap dl { display: flex; gap: 2rem; margin-top: 1rem; }
.showcase-cap dt { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; }
.showcase-cap dd { font-size: var(--step-small); color: var(--muted); }

/* more projects: a grid of real screenshots; hovering scrolls through the whole page */
.projects { margin-top: clamp(4rem, 8vw, 6.5rem); }
.projects__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.75rem 2rem; margin-bottom: 1.75rem; }
.projects__head h3 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
.projects__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.proj { display: block; height: 100%; padding: 0.625rem 0.625rem 1.25rem; border-radius: 20px; background: #ffffff; text-decoration: none; transition: transform var(--t-ui) var(--ease-out); }
.proj__shot { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--surface); }
.proj__shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transition: object-position 2.6s var(--ease-in-out), transform 600ms var(--ease-out); }
.proj__name { display: block; margin-top: 1rem; padding-inline: 0.5rem; font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.proj__cat { display: block; margin-top: 0.3rem; padding-inline: 0.5rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .proj:hover { transform: translateY(-4px); }
  .proj:hover .proj__shot img { object-position: 50% 100%; transform: scale(1.02); }
  .proj:hover .proj__name { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 0.06em; }
}
.projects__note { margin-top: 2rem; }

@media (max-width: 1100px) { .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .showcase img { aspect-ratio: 4 / 3; }
  .showcase-cap { display: block; }
  .showcase-cap h3 { margin-bottom: 0.75rem; }
  .showcase-cap .link { display: inline-block; margin-top: 1rem; }
  .projects__grid { gap: 1.25rem 0.875rem; }
  .proj__name { font-size: 1.125rem; }
}

/* ---------- services: sentences with switches ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 1.4vw, 1.25rem); }
.band { display: flex; flex-direction: column; min-height: 20rem; padding: clamp(1.5rem, 2.4vw, 2.25rem); border-radius: var(--radius-lg); background: var(--card); color: var(--ink); transition: background-color 420ms var(--ease-out), color 420ms var(--ease-out); }
.band h3 { font-size: clamp(1.625rem, 2.3vw, 2.25rem); line-height: 1.02; }
.band p { margin-top: 0.9rem; font-size: var(--step-body); line-height: 1.5; }
.band__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; margin-top: auto; padding-top: 1.75rem; }
.band__foot .link { font-weight: 500; }
.band.is-on[data-field] .link { color: inherit; } /* blue words would vanish on the blue and dark fields */
.band.is-on[data-field="brand"] { background: var(--brand); color: var(--brand-ink); }
.band.is-on[data-field="dark"] { background: var(--field-dark); color: var(--field-dark-ink); }
.band.is-on[data-field="tint"] { background: var(--tint); color: var(--ink); }
.band h3 + p { max-width: 38ch; }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } .band { min-height: 0; } }
.switch { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.75rem; min-height: 44px; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; color: inherit; }
.switch__track { position: relative; width: 4.25rem; height: 2.25rem; border-radius: 999px; background: #c9c9c9; transition: background-color var(--t-ui) ease; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 0.25rem; left: 0.25rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: #fff; transition: transform var(--t-ui) var(--ease-out); }
.switch[aria-checked="true"] .switch__track { background: var(--ink); }
.band.is-on[data-field="dark"] .switch[aria-checked="true"] .switch__track { background: var(--brand); }
.switch[aria-checked="true"] .switch__track::after { transform: translateX(2rem); }
.switch:active .switch__track::after { width: 2.1rem; }
.no-js .switch { display: none; }

.brief-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin: clamp(0.75rem, 1.4vw, 1.25rem) var(--margin) 0; padding: 1.75rem clamp(1.5rem, 2.4vw, 2.25rem); border-radius: var(--radius-lg); background: var(--field-dark); color: var(--field-dark-ink); }
.brief-bar p { font-size: var(--step-lead); line-height: 1.3; max-width: 52ch; }
.brief-bar strong { font-weight: 500; color: #7cc8f0; }
.no-js .brief-bar { display: none; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- why DX4: a real comparison table (tables may keep their lines) ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: var(--step-body); line-height: 1.45; }
.compare th, .compare td { padding: 1.25rem 1.5rem; text-align: left; vertical-align: top; }
.compare thead th { padding-block: 1.5rem; vertical-align: bottom; font-family: var(--font-display); font-size: clamp(1.375rem, 1.8vw, 1.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.compare thead img { width: 132px; height: auto; }
.compare thead .mono { display: block; margin-top: 0.6rem; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--muted); }
.compare tbody th { width: 22%; padding-left: 0; color: var(--ink); }
.compare tbody th .mono { white-space: nowrap; }
.compare tbody tr + tr > * { border-top: 1px solid #dddddd; } /* taste-skill-ignore: a real table keeps its row lines */
.compare__us { width: 39%; background: var(--card); }
.compare__them { width: 39%; background: var(--them-bg); color: #4f4746; }
.compare thead .compare__them { border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--them-ink); color: #ffffff; }
/* header cells in solid colour: DX4 blue and agency red, white text (5.6:1 and 5.8:1) */
.compare thead .compare__us { background: var(--brand-text); color: #ffffff; }
.compare thead .compare__us .mono { color: #ffffff; }
.compare tbody tr:last-child .compare__them { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.compare thead .compare__us { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.compare tbody tr:last-child .compare__us { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.compare td { display: table-cell; }
.compare td > span { display: block; padding-left: 2.25rem; }
.compare__mark { float: left; width: 1.4rem; height: 1.4rem; margin-top: 0.05rem; fill: var(--brand); }
.compare__mark--no { fill: var(--them-ink); }
@media (max-width: 760px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tbody tr { margin-bottom: 0.75rem; padding: 1.25rem; border-radius: var(--radius-lg); background: var(--card); }
  .compare tbody tr + tr > * { border-top: 0; }
  .compare tbody th, .compare td { width: 100%; padding: 0; background: none; }
  .compare td { margin-top: 0.85rem; }
  .compare td::before { content: attr(data-col); display: block; margin: 0 0 0.35rem 2.25rem; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted); }
  .compare tbody tr:last-child .compare__us { border-radius: 0; }
  .compare tbody td.compare__them { padding: 0.85rem 0.85rem 0.85rem 0; border-radius: 12px; background: var(--them-bg); }
  .compare tbody td.compare__them::before { color: var(--them-ink); }
  .compare tbody td.compare__them .compare__mark { margin-left: 0.85rem; }
  .compare tbody td.compare__them > span { padding-left: 3.1rem; }
}

/* ---------- clients: a logo grid; logos rest in grey and take their colour on hover ---------- */
.logos.wrap { padding-inline: var(--margin); } /* ul[class] resets padding; keep the page margins */
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(0.5rem, 1vw, 0.875rem); }
.logos li { display: grid; place-items: center; aspect-ratio: 29 / 18; border-radius: 14px; background: #ffffff; overflow: hidden; }
.logos img { width: 86%; height: auto; filter: grayscale(1); opacity: 0.75; transition: filter 400ms ease, opacity 400ms ease, transform 400ms var(--ease-out); }
.logos li:hover img { filter: none; opacity: 1; transform: scale(1.04); }
@media (max-width: 1100px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- reviews: three cards, the quote first, who said it underneath ---------- */
.reviews__badge { grid-column: 10 / -1; justify-self: end; width: clamp(9rem, 14vw, 12rem); height: auto; }
@media (max-width: 860px) { .reviews__badge { justify-self: start; margin: 1.25rem 0 0 -0.4rem; width: 9.5rem; } }
.reviews { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(0.75rem, 1.4vw, 1.25rem); }
.review { grid-column: 8 / -1; }
/* the first review leads: twice the height, larger type, on the dark field */
.reviews .review--lead { grid-column: 1 / span 7; grid-row: span 2; background: var(--field-dark); color: var(--field-dark-ink); }
.reviews .review--lead blockquote { font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 2.125rem); font-weight: 500; line-height: 1.18; letter-spacing: -0.035em; }
.review--lead .review__avatar { background: var(--card); color: var(--ink); }
.review--lead .review__by b + span { color: var(--field-dark-muted); }
.review { display: flex; flex-direction: column; padding: clamp(1.5rem, 2.4vw, 2.25rem); border-radius: var(--radius-lg); background: var(--card); }
.review__stars { display: flex; gap: 0.15rem; margin-left: auto; fill: var(--brand); }
.review blockquote { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); line-height: 1.4; letter-spacing: -0.01em; }
.review blockquote p::before { content: "\201C"; }
.review blockquote p::after { content: "\201D"; }
.review__by { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; padding-top: 2rem; font-size: var(--step-small); line-height: 1.35; }
.review__by b { display: block; font-weight: 600; }
.review__by b + span { color: var(--muted); }
.review__avatar { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--ink); color: var(--card); font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr; } .review, .reviews .review--lead { grid-column: auto; grid-row: auto; } }

/* ---------- faq: heading held on the left, a ruled accordion on the right ---------- */
.faq-layout { align-items: start; row-gap: 2.5rem; }
.faq-head { grid-column: 1 / span 5; position: sticky; top: 6rem; }
.faq-head h2 { font-size: clamp(2.25rem, 3.6vw, 3.75rem); }
.faq-head p { margin-top: 1.5rem; font-size: var(--step-body); line-height: 1.5; color: var(--muted); }
.faq { grid-column: 7 / -1; }
.faq__item { border-top: 1px solid #d4d4d4; }
.faq__item:last-child { border-bottom: 1px solid #d4d4d4; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 3rem; padding: clamp(1.4rem, 2.4vw, 2rem) clamp(0.25rem, 1.5vw, 1.5rem); cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 4px; }
.faq__item h3 { font-family: var(--font-text); font-size: clamp(1.125rem, 1.4vw, 1.375rem); font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; transition: color var(--t-hover) ease; }
/* a thin plus that becomes a minus: two 1.5px bars, the upright one folds away when open */
.faq__item summary::after { content: ""; flex: none; width: 1.5rem; height: 1.5rem; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: background-size var(--t-ui) var(--ease-out); }
.faq__item[open] summary::after { background-size: 100% 1.5px, 1.5px 0; }
@media (hover: hover) and (pointer: fine) { .faq__item summary:hover h3 { color: var(--brand-text); } }
.faq__answer { padding: 0 clamp(0.25rem, 1.5vw, 1.5rem) clamp(1.5rem, 2.4vw, 2rem); padding-right: 4.5rem; }
.faq__answer p { font-size: var(--step-body); line-height: 1.6; max-width: 62ch; color: var(--muted); }
@media (max-width: 960px) {
  .faq-head { grid-column: 1 / -1; position: static; }
  .faq { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .faq__answer { padding-right: 0.25rem; } }
@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] .faq__answer { animation: faq-open 420ms var(--ease-out); }
  @keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

/* ---------- cta: the question left, a dotted globe right (js/cta-orbs.js) ---------- */
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); grid-template-rows: 1fr auto; min-height: min(72svh, 40rem); margin-inline: var(--margin); padding: clamp(2.5rem, 4.5vw, 4rem) clamp(1.5rem, 5vw, 4.5rem) 0; border-radius: var(--radius-lg); background: var(--field-dark); color: var(--field-dark-ink); }
.cta__orbs { position: absolute; top: 0; right: 0; width: 52%; height: 100%; pointer-events: none; }
.cta__body { position: relative; z-index: 1; align-self: center; }
.cta__eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--field-dark-ink); }
.cta__dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(0, 140, 212, 0.6); }
.cta__title { margin-top: 1.5rem; max-width: 9ch; font-size: clamp(3rem, 6.5vw, 6.5rem); line-height: 1; letter-spacing: -0.045em; }
.cta__title .fx-w { display: inline-block; }
.cta__note { margin-top: 1.5rem; max-width: 42ch; font-size: var(--step-body); line-height: 1.5; color: var(--field-dark-muted); }
.cta__act { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.button--pill { min-height: 3.5rem; padding-inline: 1.75rem; border-radius: 999px; background: #ffffff; color: #111111; font-family: var(--font-text); font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.button--pill-ghost { background: transparent; color: var(--field-dark-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
@media (hover: hover) and (pointer: fine) {
  .button--pill:hover { background-color: var(--brand); color: #0a0a0a; }
  .button--pill-ghost:hover { background-color: #ffffff; color: #111111; }
}
.cta__social { position: relative; z-index: 1; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); padding: 1.25rem 0 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14); list-style: none; } /* taste-skill-ignore: one rule, as on the reference */
.cta__social li:nth-child(2) { justify-self: center; } .cta__social li:nth-child(3) { justify-self: center; } .cta__social li:last-child { justify-self: end; }
.cta__social a { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; color: var(--field-dark-muted); transition: color var(--t-hover) ease; }
.cta__social a:hover, .cta__social a:focus-visible { color: #ffffff; }
.cta__social svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .cta__dot { animation: dot-pulse 2.4s var(--ease-out) infinite; }
  @keyframes dot-pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 140, 212, 0.6); } 70%, 100% { box-shadow: 0 0 0 0.6rem rgba(0, 140, 212, 0); } }
}
@media (max-width: 860px) {
  .cta { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; padding-top: 3rem; }
  .cta__orbs { position: relative; grid-row: 2; width: 100%; height: 16rem; margin-top: 1rem; }
  .cta__social { grid-row: 3; grid-template-columns: 1fr 1fr; margin-top: 1rem; }
  .cta__social li:nth-child(n) { justify-self: start; }
}

/* ---------- inner pages (about-us.php) ---------- */
.hero--page { min-height: 82svh; }
@media (max-width: 700px) { .hero--page { min-height: 0; } }
.crumbs ol { display: flex; gap: 0.5rem; padding: 0; list-style: none; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; }
.crumbs a { color: var(--ink); text-underline-offset: 0.2em; }
.hero--page .hero__title { margin-top: 1.5rem; }

.story { align-items: start; row-gap: 2rem; }
.story__photo { grid-column: 1 / span 6; overflow: hidden; border-radius: var(--radius-lg); }
.story__photo img { width: 100%; height: auto; aspect-ratio: 900 / 551; object-fit: cover; }
.story__photo figcaption { padding: 0.75rem 0.25rem 0; color: var(--muted); text-transform: none; letter-spacing: 0; }
.story__photo figcaption a { color: inherit; }
.story__photo--team { grid-column: 1 / span 5; }
.story__photo--team img { aspect-ratio: 464 / 483; }
.story__photo--team + .story__text { grid-column: 7 / -1; align-self: center; }
.story__text { grid-column: 8 / -1; }
.story__text p { font-size: clamp(1.25rem, 1.6vw, 1.625rem); line-height: 1.4; letter-spacing: -0.01em; }
.story__text p + p { margin-top: 1.1em; }
.story__text p:not(:first-child) { color: var(--muted); }

.principles.wrap { padding-inline: var(--margin); } /* ul[class] resets padding; keep the page margins */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 1.4vw, 1.25rem); padding-block: 0; list-style: none; }
.principle { padding: clamp(1.5rem, 2.6vw, 2.5rem); border-radius: var(--radius-lg); background: var(--card); }
.principle h3 { font-size: clamp(1.5rem, 2.2vw, 2.125rem); line-height: 1.05; }
.principle p { margin-top: 0.9rem; max-width: 44ch; font-size: var(--step-body); line-height: 1.5; color: var(--muted); }

.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 1.4vw, 1.25rem); }
.audience { display: flex; flex-direction: column; min-height: 22rem; padding: clamp(1.75rem, 3vw, 3rem); border-radius: var(--radius-lg); background: var(--brand); color: var(--brand-ink); text-decoration: none; transition: transform var(--t-ui) var(--ease-out); }
.audience--dark { background: var(--field-dark); color: var(--field-dark-ink); }
.audience h3 { margin-top: 1.25rem; max-width: 16ch; font-size: clamp(1.875rem, 3vw, 3rem); line-height: 1; letter-spacing: -0.04em; }
.audience p { margin-top: 1rem; max-width: 40ch; font-size: var(--step-body); line-height: 1.5; }
.audience__go { margin-top: auto; padding-top: 2rem; font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; }
@media (hover: hover) and (pointer: fine) { .audience:hover { transform: translateY(-4px); } }

.visit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 1.4vw, 1.25rem); }
.visit > div { padding: clamp(1.5rem, 2.4vw, 2.25rem); border-radius: var(--radius-lg); background: var(--card); }
.visit dt { margin-bottom: 0.75rem; color: var(--muted); }
.visit dd { margin: 0; font-size: var(--step-body); line-height: 1.5; }
.visit dd + dd { margin-top: 0.6rem; }

@media (max-width: 960px) {
  .story__photo, .story__text, .story__photo--team + .story__text { grid-column: 1 / -1; }
  .principles, .audiences, .visit { grid-template-columns: 1fr; }
  .audience { min-height: 16rem; }
}

/* ---------- service pages (web-design-and-development.php) ---------- */
.bar__panel a[aria-current="page"] { color: var(--brand-text); font-weight: 500; }
.offers.wrap, .steps.wrap { padding-inline: var(--margin); } /* ul/ol[class] resets padding */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 1.4vw, 1.25rem); list-style: none; }
.offer { padding: clamp(1.5rem, 2.4vw, 2.25rem); border-radius: var(--radius-lg); background: var(--card); transition: background-color var(--t-hover) ease, transform var(--t-ui) var(--ease-out); }
.offer__icon { display: block; width: 2.25rem; height: 2.25rem; margin-bottom: 1.5rem; fill: none; stroke: var(--brand-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .offer:hover .offer__icon { transform: translateY(-2px) rotate(-4deg); } }
.offer h3 { font-size: clamp(1.375rem, 1.9vw, 1.875rem); line-height: 1.1; }
.offer p { margin-top: 0.75rem; max-width: 36ch; font-size: var(--step-body); line-height: 1.5; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .offer:hover { background: #ffffff; transform: translateY(-3px); } }

/* steps: a rail down the left that fills with blue as the reader moves through it (js/scroll-fx.js) */
.steps { position: relative; list-style: none; --fill: 1; }
.steps::before, .steps::after { content: ""; position: absolute; top: 0.4rem; bottom: 0.4rem; left: calc(var(--margin) + 1.2rem); width: 2px; border-radius: 1px; background: #d6d6d6; }
.steps::after { background: var(--brand); transform-origin: top; transform: scaleY(var(--fill)); }
.step { position: relative; display: grid; grid-template-columns: 4.5rem minmax(0, 5fr) minmax(0, 7fr); gap: 0.5rem 2rem; align-items: baseline; padding-block: clamp(1.4rem, 2.6vw, 2.25rem); }
.step__n { position: relative; z-index: 1; align-self: start; margin: 0.35rem 0 0 0.55rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px #c4c4c4; transition: background-color var(--t-ui) ease, color var(--t-ui) ease, box-shadow var(--t-ui) ease; }
.step.is-on .step__n, .no-js .step__n { background: var(--brand); box-shadow: 0 0 0 5px var(--bg); }
.step h3 { font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.05; }
.step p { max-width: 46ch; font-size: var(--step-body); line-height: 1.5; color: var(--muted); }
.projects--flush { margin-top: 0; }
/* ux-ui-design.php: toolkit columns, case studies, product-client logos */
.kits.wrap, .logos--ux.wrap { padding-inline: var(--margin); }
.kits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 1.4vw, 1.25rem); list-style: none; }
.kit { padding: clamp(1.5rem, 2.6vw, 2.5rem); border-radius: var(--radius-lg); background: var(--card); }
.kit h3 { font-size: clamp(1.625rem, 2.4vw, 2.25rem); line-height: 1.05; }
.kit > p { margin-top: 0.6rem; font-size: var(--step-body); color: var(--muted); }
.kit__best { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e3e3e3; color: var(--brand-text); text-transform: none; letter-spacing: 0; }
.kit ul { margin-top: 1.5rem; padding: 0; list-style: none; }
.kit ul li { padding-block: 0.55rem; font-size: var(--step-body); }
.kit ul li + li { border-top: 1px solid #e3e3e3; }
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.case { display: flex; flex-direction: column; padding: 0.75rem 0.75rem 1.75rem; border-radius: var(--radius-lg); background: #ffffff; text-decoration: none; transition: transform var(--t-ui) var(--ease-out); }
.case__shot { display: block; overflow: hidden; border-radius: 16px; aspect-ratio: 1000 / 584; background: var(--surface); }
.case__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.case__cat { margin: 1.5rem 0.75rem 0; color: var(--muted); }
.case h3 { margin: 0.5rem 0.75rem 0; font-size: clamp(1.625rem, 2.4vw, 2.375rem); line-height: 1.05; }
.case p { margin: 0.75rem 0.75rem 0; max-width: 44ch; font-size: var(--step-body); line-height: 1.5; color: var(--muted); }
.case__go { margin: 1.5rem 0.75rem 0; font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; }
@media (hover: hover) and (pointer: fine) { .case:hover { transform: translateY(-4px); } .case:hover .case__shot img { transform: scale(1.03); } }
/* web-portfolio.php: featured sites as alternating picture + story rows */
.features { display: grid; gap: clamp(2rem, 6vw, 5rem); }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: 2.5rem; } /* room for the picture's 1.1 settle + parallax */
.feature--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature--flip .feature__shot { order: 2; }
.feature__shot { display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); aspect-ratio: 1400 / 605; }
.feature__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.feature__cat { color: var(--muted); }
.feature__text h2 { margin-top: 0.75rem; font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1; letter-spacing: -0.04em; }
.feature__lead { margin-top: 1rem; font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.3; }
.feature__text p:not(.feature__cat):not(.feature__lead) { margin-top: 1rem; max-width: 48ch; font-size: var(--step-body); line-height: 1.55; color: var(--muted); }
.feature__go { display: inline-block; margin-top: 1.5rem; font-weight: 500; color: var(--brand-text); text-decoration: underline; text-underline-offset: 0.2em; transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .feature__go:hover { color: var(--ink); text-decoration-color: transparent; } }
@media (max-width: 960px) {
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature__shot { order: 0; }
}

/* branding-design.php: a statement block and logo work shown whole on white */
.statement { align-items: start; row-gap: 2rem; }
.statement__lead { grid-column: 1 / span 7; font-size: clamp(2.25rem, 4.4vw, 4.5rem); line-height: 1.08; letter-spacing: -0.035em; }
.statement__text { grid-column: 9 / -1; padding-top: 0.5rem; }
.statement__text p { font-size: var(--step-body); line-height: 1.55; color: var(--muted); }
.statement__text p + p { margin-top: 1em; }
.statement__text .statement__first { font-size: clamp(1.25rem, 1.6vw, 1.625rem); line-height: 1.35; color: var(--ink); }
.proj--brand .proj__shot { background: #ffffff; }
.proj--brand .proj__shot img { object-fit: contain; object-position: 50% 50%; }
@media (hover: hover) and (pointer: fine) { .proj--brand:hover .proj__shot img { object-position: 50% 50%; transform: scale(1.05); } }
@media (max-width: 960px) { .statement__lead, .statement__text { grid-column: 1 / -1; } }
.logos--ux { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.logos--ux li { aspect-ratio: 370 / 144; }
@media (max-width: 960px) { .kits, .cases { grid-template-columns: 1fr; } .logos--ux { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .offers { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 3.75rem minmax(0, 1fr); }
  .step p { grid-column: 2; }
}
@media (max-width: 600px) { .offers { grid-template-columns: 1fr; } }

/* ---------- footer: contact as the headline ---------- */
.foot { margin: clamp(2.5rem, 5vw, 4.5rem) var(--margin) var(--margin); border-radius: var(--radius-lg); padding: clamp(2.5rem, 4.5vw, 4rem) clamp(1.5rem, 5vw, 4.5rem) 1.75rem; background: var(--brand); color: var(--brand-ink); }
.foot a { text-decoration: none; }
.foot a:hover, .foot a:focus-visible { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.06em; }
.foot__label { display: block; margin-bottom: 0.6rem; }
.foot__intro { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; font-size: var(--step-small); line-height: 1.45; }
.foot__intro img { width: 132px; }
.foot__intro p { max-width: 40ch; }
.foot__up { display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; margin-left: auto; font-weight: 500; }
.foot__intro + .foot__label { margin-top: clamp(3.5rem, 5vw, 6rem); }
.foot__mail { display: block; width: fit-content; font-family: var(--font-display); font-size: clamp(2.5rem, 8.4vw, 9rem); font-weight: 500; letter-spacing: -0.055em; line-height: 0.95; white-space: nowrap; }
.foot__mail:hover, .foot__mail:focus-visible { text-decoration-thickness: 0.04em; }
.foot__contact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(1rem, 2vw, 2rem); margin-top: clamp(2.5rem, 4vw, 3.5rem); padding: 0; list-style: none; font-size: var(--step-body); line-height: 1.45; }
.foot__contact a { display: inline-block; font-family: var(--font-display); font-size: clamp(1.375rem, 1.9vw, 1.875rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.foot__contact p { max-width: 30ch; }
.foot__links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem clamp(1rem, 2vw, 2rem); margin-top: clamp(3.5rem, 5vw, 6rem); padding: 0; font-size: var(--step-body); }
.foot__links ul { padding: 0; list-style: none; }
.foot__links li a { display: inline-block; padding-block: 0.3rem; }
.foot__meta { display: flex; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-top: 1.5rem; font-size: var(--step-small); line-height: 1.45; }
.foot__meta p:first-child { max-width: 70ch; }
.foot__meta p:last-child { flex: none; }
@media (max-width: 960px) {
  .foot__contact, .foot__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .foot__up { margin-left: 0; }
  .foot__mail { font-size: 12vw; white-space: normal; }
  .foot__mail span { display: block; }
  .foot__contact { grid-template-columns: 1fr; gap: 1.5rem; }
  .foot__meta { flex-direction: column; align-items: start; }
}

/* ---------- floating whatsapp ---------- */
.wa { position: fixed; right: var(--margin); bottom: var(--margin); z-index: 90; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: #1fa855; transition: transform var(--t-press) var(--ease-out); }
.wa img { width: 1.75rem; height: 1.75rem; }
.wa:active { transform: scale(0.94); }
.wa { transition: transform var(--t-press) var(--ease-out), opacity var(--t-ui) ease, visibility 0s; }
.wa.is-away { opacity: 0; visibility: hidden; transition: opacity var(--t-ui) ease, visibility 0s linear var(--t-ui); }
@media (max-width: 860px) { .wa { display: none; } }

/* ---------- brief dialog (wraps the shared form.php) ---------- */
.brief { width: min(100% - 2rem, 34rem); max-height: calc(100svh - 2rem); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--card); color: var(--ink); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35); } /* taste-skill-ignore: a real dialog floats */
.brief::backdrop { background: rgba(10, 10, 10, 0.6); }
.brief[open] { animation: brief-in 360ms var(--ease-out); }
@keyframes brief-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.brief__head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: 1.75rem 1.75rem 0; }
.brief__head h2 { font-size: 2.5rem; }
.brief__head p { margin-top: 0.5rem; color: var(--muted); }
.brief__close { min-height: 44px; font-size: 1rem; text-decoration: underline; text-underline-offset: 0.2em; }
.brief__body { padding: 1.5rem 1.75rem 1.75rem; }
.brief .row { display: grid; gap: 0.75rem; }
.brief .form-control { width: 100%; min-height: 3.25rem; padding: 0.75rem 0.9rem; background: #ececec; border: 1px solid transparent; border-radius: var(--radius); font-size: 1.0625rem; } /* taste-skill-ignore: form field focus edge */
.brief .form-control:focus { outline: none; border-color: var(--ink); background: var(--bg); }
.brief textarea.form-control { min-height: 7rem; resize: vertical; }
.brief button[type="submit"] { width: 100%; min-height: 3.25rem; margin-top: 0.5rem; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 0.875rem; font-weight: 500; text-transform: uppercase; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.brief button[type="submit"]:hover { background: var(--accent-strong); }
.brief button[type="submit"]:active { transform: scale(0.98); }
.brief .honeypot-field { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ---------- branding portfolio: type filter, gallery and full-size viewer ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.no-js .filter { display: none; }
.filter__btn { display: inline-flex; align-items: center; gap: 0.6em; min-height: 2.75rem; padding: 0 1.15rem; border-radius: 999px; background: var(--card); color: var(--ink); font-size: 1rem; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.filter__btn .mono { color: var(--muted); transition: color var(--t-hover) ease; }
.filter__btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.filter__btn[aria-pressed="true"] .mono { color: inherit; opacity: 0.7; }
.filter__btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .filter__btn[aria-pressed="false"]:hover { background: #e4e4e4; } }
.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery li[hidden] { display: none; }
.gallery .proj { cursor: zoom-in; }
@media (max-width: 1100px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.viewer { width: min(100% - 2rem, 72rem); max-width: none; max-height: calc(100svh - 2rem); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--field-dark); color: var(--field-dark-ink); overflow: hidden; }
.viewer::backdrop { background: rgba(10, 10, 10, 0.75); }
.viewer[open] { display: grid; height: calc(100svh - 2rem); grid-template-rows: auto minmax(0, 1fr) auto; animation: brief-in 360ms var(--ease-out); }
.viewer__bar { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem 1rem 1.5rem; }
.viewer__title { flex: 1; max-width: none; font-family: var(--font-display); font-size: 1.375rem; letter-spacing: -0.02em; }
.viewer__count { opacity: 0.6; }
.viewer__close { min-height: 44px; padding: 0 0.5rem; font-size: 1rem; text-decoration: underline; text-underline-offset: 0.2em; }
.viewer__stage { position: relative; min-height: 0; margin: 0 1.25rem; border-radius: 14px; background: #ffffff; }
.viewer__stage img { position: absolute; inset: clamp(1rem, 3vw, 2.5rem); width: calc(100% - 2 * clamp(1rem, 3vw, 2.5rem)); height: calc(100% - 2 * clamp(1rem, 3vw, 2.5rem)); object-fit: contain; }
.viewer__nav { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem 1.25rem; }
.viewer__nav .button--ghost { color: var(--field-dark-ink); box-shadow: inset 0 0 0 1px currentColor; }
@media (hover: hover) and (pointer: fine) { .viewer__nav .button--ghost:hover { background: var(--field-dark-ink); color: var(--field-dark); } }
@media (max-width: 700px) { .viewer__count { display: none; } .viewer__title { font-size: 1.125rem; } }

/* ---------- ux-case-studies.php: case rows with problem / approach / result ---------- */
.feature__shot--case { aspect-ratio: 1000 / 584; }
.feature__shot--case img { object-position: center; }
.facts { display: grid; gap: 1.25rem; margin-top: 1.75rem; max-width: 48ch; }
.facts dt { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.facts dd { margin-top: 0.35rem; font-size: var(--step-body); line-height: 1.5; }

/* ---------- blog: article list ---------- */
ul.posts { list-style: none; padding-left: var(--margin); padding-right: var(--margin); border-top: 1px solid rgba(0, 0, 0, 0.14); } /* taste-skill-ignore: editorial list rules */
.post-row { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding-block: clamp(1.75rem, 3.5vw, 2.75rem); border-bottom: 1px solid rgba(0, 0, 0, 0.14); } /* taste-skill-ignore: editorial list rules */
.post-row__meta { grid-column: 1 / span 3; padding-top: 0.6rem; color: var(--muted); }
.post-row__meta span { display: block; }
.post-row__title { grid-column: 4 / span 6; grid-row: 1; font-size: clamp(1.75rem, 3.2vw, 3rem); line-height: 1.02; letter-spacing: -0.04em; }
.post-row__title a { text-decoration: none; }
.post-row__title a::after { content: ""; position: absolute; inset: 0; } /* the whole row is the link */
.post-row__excerpt { grid-column: 4 / span 6; grid-row: 2; margin-top: 0.9rem; max-width: 60ch; line-height: 1.5; color: var(--muted); }
.post-row__shot { grid-column: 10 / -1; grid-row: 1 / span 3; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 16px; background: var(--surface); }
.post-row__shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .post-row:hover .post-row__title a { text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.12em; }
  .post-row:hover .post-row__shot img { transform: scale(1.04); }
}
@media (max-width: 900px) {
  .post-row { display: flex; flex-direction: column; gap: 0.6rem; }
  .post-row__shot { order: -1; width: 100%; margin-bottom: 0.6rem; aspect-ratio: 16 / 9; }
  .post-row__excerpt { margin-top: 0; }
}

/* ---------- blog: article page ---------- */
.read-progress { position: fixed; inset: 0 0 auto; z-index: 120; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; }
.hero--post { min-height: 78svh; }
.hero--post .hero__title { max-width: 22ch; margin-inline: auto; font-size: clamp(1.875rem, 1rem + 3.4vw, 4.5rem); line-height: 1.02; }
.post-meta { margin-top: 1.5rem; color: var(--muted); }

.post { align-items: start; padding-block: clamp(3rem, 7vw, 6rem) calc(var(--section) / 2); }
.post-toc { grid-column: 1 / span 3; position: sticky; top: 6rem; }
.post-toc p { color: var(--muted); }
.post-toc ol { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.15rem; }
.post-toc a { display: block; padding: 0.45rem 0 0.45rem 0.9rem; border-left: 2px solid rgba(0, 0, 0, 0.12); font-size: 0.9375rem; line-height: 1.35; color: var(--muted); text-decoration: none; transition: color var(--t-hover) ease, border-color var(--t-hover) ease; } /* taste-skill-ignore: reading-position rail */
.post-toc a:hover { color: var(--ink); }
.post-toc a[aria-current="true"] { border-left-color: var(--brand-text); color: var(--ink); }

.post-body { grid-column: 4 / -1; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.65; }
.post-body > * { max-width: 68ch; }
.post-body > .post-callout, .post-body > .post-table-wrap, .post-body > .post-figure--wide, .post-body > .post-cta { max-width: none; }
.post-body > * + * { margin-top: 1.25em; }
.post-body > p:first-of-type { font-size: 1.2em; line-height: 1.5; }
.post-body h2 { margin-top: 2.4em; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.08; letter-spacing: -0.035em; scroll-margin-top: 6rem; }
.post-body h3 { margin-top: 1.8em; font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); line-height: 1.15; letter-spacing: -0.025em; }
.post-body h2 + *, .post-body h3 + * { margin-top: 0.75em; }
.post-body a:not(.button) { color: var(--brand-text); text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; }
.post-body a:not(.button):hover { color: var(--ink); }
.post-body strong { font-weight: 600; }
.post-body ul, .post-body ol { padding-left: 1.25em; }
.post-body li + li { margin-top: 0.6em; }
.post-body li::marker { color: var(--brand-text); }
.post-callout { padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 2.5vw, 2rem); border-radius: var(--radius-lg); background: var(--card); }
.post-callout p { font-size: 0.95em; line-height: 1.55; }
.post-cover { margin-bottom: 2.5rem; overflow: hidden; border-radius: var(--radius-lg); }
.post-cover .post-figure__img { display: block; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 16 / 8; background: var(--surface); }
.post-cover .post-figure__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; border-radius: 0; }
.post-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); background: var(--surface); }
.post-figure figcaption { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.post-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); background: var(--card); }
.post-table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
.post-table caption { padding: 1rem 1.25rem 0; text-align: left; font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; color: var(--muted); }
.post-table th, .post-table td { padding: 0.9rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(0, 0, 0, 0.08); } /* taste-skill-ignore: table rows */
.post-table thead th { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; color: var(--muted); }
.post-table tbody tr:last-child td { border-bottom: 0; }
.post-table__price { font-weight: 600; white-space: nowrap; }
.post-cta { margin-top: 3.5em !important; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius-lg); background: var(--field-dark); color: var(--field-dark-ink); }
.post-cta h2 { margin: 0; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.05; }
.post-cta p { margin-top: 0.9rem; max-width: 46ch; font-size: 1rem; line-height: 1.55; opacity: 0.8; }
.post-cta .button { margin-top: 1.5rem; }
@media (max-width: 1100px) {
  .post-toc { display: none; }
  .post-body { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .post-table thead { display: none; }
  .post-table tr { display: block; padding: 0.75rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); } /* taste-skill-ignore: table rows */
  .post-table td { display: block; padding: 0.2rem 1.25rem; border: 0; }
  .post-table td[data-label]::before { content: attr(data-label) " "; display: block; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; color: var(--muted); }
  .post-table td:first-child::before { content: none; }
  .post-table td:first-child { font-weight: 600; }
}

/* ---------- contact-us.php: the brief form, other ways in, the map ---------- */
.hero--contact { min-height: 72svh; }
.contact { align-items: start; row-gap: 2rem; }
.contact__form { grid-column: 1 / span 7; padding: clamp(1.5rem, 3.5vw, 3rem); border-radius: var(--radius-lg); background: #ffffff; }
.contact__form h2, .contact__aside h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); line-height: 1; }
.contact__intro { margin-top: 0.75rem; color: var(--muted); }
.field-set { display: grid; gap: 1.25rem; margin-top: 2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1.25rem; }
.field { display: grid; gap: 0.5rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field legend { font-size: 0.9375rem; font-weight: 500; }
.field__opt { margin-left: 0.4rem; font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { width: 100%; min-height: 3.25rem; padding: 0.8rem 0.95rem; border: 1px solid transparent; border-radius: var(--radius); background: var(--bg); font: inherit; font-size: 1.0625rem; color: var(--ink); transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease; } /* taste-skill-ignore: form field focus edge */
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #ffffff; }
/* validation: a message under the field when something's wrong, a tick when it's right (js/form-check.js) */
.field__error { display: flex; gap: 0.4rem; margin: 0.35rem 0 0; font-size: 0.875rem; line-height: 1.4; color: var(--them-ink); }
.field__error::before { content: ""; flex: none; width: 1rem; height: 1rem; margin-top: 0.1rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1 5h2v7h-2zm0 9h2v2h-2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1 5h2v7h-2zm0 9h2v2h-2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.field__error[hidden] { display: none; }
.is-invalid > input, .is-invalid > textarea, .is-invalid > select, .field-row .is-invalid > input { border-color: var(--them-ink) !important; background-color: #ffffff; }
.chips.is-invalid span { box-shadow: inset 0 0 0 1px var(--them-ink); }
.chips .field__error { flex-basis: 100%; }
.is-valid > input[type="text"], .is-valid > input[type="email"], .is-valid > input[type="tel"] { padding-right: 2.75rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006fa8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 1.15rem; }
.field__hint { font-size: 0.875rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips legend { margin-bottom: 0.5rem; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; border-radius: 999px; background: var(--bg); font-size: 1rem; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.chips input:checked + span { background: var(--accent); color: var(--accent-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.chips label:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chips input:not(:checked):hover + span { background: #e4e4e4; } }
.honeypot-field { display: none; }
.contact__send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.contact__send p { font-size: 0.9375rem; color: var(--muted); }
.form-alert { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--them-bg); color: var(--them-ink); }
.form-alert a { color: inherit; text-decoration: underline; }

.contact__aside { grid-column: 9 / -1; padding-top: clamp(0rem, 3.5vw, 3rem); }
.reach { margin-top: 1.5rem; border-top: 1px solid rgba(0, 0, 0, 0.14); } /* taste-skill-ignore: contact rows */
.reach a { display: grid; gap: 0.3rem; padding-block: 1.1rem; border-bottom: 1px solid rgba(0, 0, 0, 0.14); font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); letter-spacing: -0.03em; line-height: 1.1; text-decoration: none; transition: color var(--t-hover) ease, padding-left var(--t-ui) var(--ease-out); } /* taste-skill-ignore: contact rows */
.reach .mono { font-family: var(--font-mono); letter-spacing: 0.02em; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .reach a:hover { padding-left: 0.5rem; color: var(--brand-text); } }
.contact__next-title { margin-top: clamp(2.5rem, 5vw, 3.5rem); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem) !important; }
ol.next { display: grid; gap: 1rem; margin-top: 1.25rem; }
.next li { position: relative; padding-left: 1.75rem; line-height: 1.5; color: var(--muted); }
.next li::before { content: ""; position: absolute; left: 0.2rem; top: 0.55em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--brand); }
.next li:not(:last-child)::after { content: ""; position: absolute; left: 0.45rem; top: 1.4em; bottom: -1.1rem; width: 2px; background: rgba(0, 0, 0, 0.1); }
.next strong { color: var(--ink); font-weight: 500; }

.map-row { align-items: stretch; row-gap: 1rem; }
.map { grid-column: 1 / span 8; overflow: hidden; min-height: 26rem; border-radius: var(--radius-lg); background: var(--surface); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 26rem; border: 0; filter: grayscale(0.35); }
.map-info { grid-column: 9 / -1; display: grid; gap: 1rem; align-content: start; }
.map-info__list { display: grid; gap: 1rem; }
.map-info__list > div { padding: clamp(1.25rem, 2vw, 1.75rem); border-radius: var(--radius-lg); background: var(--card); }
.map-info dt { margin-bottom: 0.6rem; color: var(--muted); }
.map-info dd { font-size: var(--step-body); line-height: 1.5; }
.map-info dd + dd { margin-top: 0.6rem; }
.map-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
.map-photo figcaption { margin-top: 0.6rem; color: var(--muted); }
.map-photo a { text-decoration: underline; }
@media (max-width: 960px) {
  .contact__form, .contact__aside, .map, .map-info { grid-column: 1 / -1; }
  .contact__aside { padding-top: 0; }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .contact__form { margin-inline: calc(var(--inset) - var(--margin)); padding: 1.75rem calc(var(--margin) - var(--inset) + 0.5rem); } /* same inset as the hero card */
}

/* ---------- case study pages (luxe-case-study.php): numbered chapters, big figures ---------- */
.case-meta { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 0.75rem 2rem; margin-top: 2rem; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; }
.case-meta dt { color: var(--muted); }
.case-meta dd { margin-top: 0.25rem; color: var(--ink); }
.case-fig { margin: 0; }
.case-fig__img { display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); }
.case-fig__img--white { padding: clamp(1rem, 3vw, 3rem); background: #ffffff; }
.case-fig__img img { display: block; width: 100%; height: auto; }
.case-fig figcaption { margin-top: 0.9rem; max-width: 60ch; font-size: var(--step-small); line-height: 1.5; color: var(--muted); }
.case-fig--cover { margin-top: clamp(1rem, 3vw, 2rem); }
.case-fig--persona { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.case-fig--persona figcaption { margin: 0; font-size: var(--step-body); color: var(--ink); }
.case-fig--persona .case-fig__img { background: #1d2254; }
.case-figs { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(0.75rem, 1.4vw, 1.25rem); align-items: start; }

.case-sec { align-items: start; row-gap: 1.5rem; }
section.case-sec, .case-sec + .case-figs, .case-sec + .case-fig, .case-sec + .mx-wrap, .case-sec + .insights { margin-top: 0; }
.case-sec + .case-figs, .case-sec + .case-fig, .case-sec + .mx-wrap, .case-sec + .insights { padding-top: clamp(2rem, 4vw, 3rem); }
.case-sec__head { grid-column: 1 / span 5; }
.case-sec__pic { display: block; width: min(100%, 22rem); margin-top: clamp(1.5rem, 3vw, 2.5rem); overflow: hidden; border-radius: var(--radius-lg); }
.case-sec__pic img { display: block; width: 100%; height: auto; }
section.case-sec--field { margin: calc(var(--section) / 2) var(--margin); padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 4rem); border-radius: var(--radius-lg); background: var(--tint); }
.case-sec--field .case-sec__n, .case-sec--field .case-sec__body > p { color: var(--ink); }
.case-sec--field .case-list li { border-color: rgba(0, 0, 0, 0.12); }
.case-sec--field .targets li { background: #ffffff; }
.case-sec__n { color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; }
.case-sec__head h2 { margin-top: 0.9rem; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.035em; }
.case-sec__body { grid-column: 7 / -1; padding-top: 2rem; }
.case-sec__body > p { max-width: 52ch; font-size: var(--step-body); line-height: 1.55; color: var(--muted); }
.case-sec__body > p + p, .case-sec__body > * + p { margin-top: 1em; }
.case-sec__body > .case-sec__lead { font-size: var(--step-lead); line-height: 1.35; color: var(--ink); }
ul.case-list { display: grid; gap: 0; margin-top: 1rem; padding: 0; list-style: none; }
.case-sec__body > ul.case-list:first-child { margin-top: 0; }
.case-list li { padding-block: 0.85rem; border-top: 1px solid #dcdcdc; font-size: var(--step-body); line-height: 1.45; } /* taste-skill-ignore: list rules */
.case-list li:last-child { border-bottom: 1px solid #dcdcdc; }
.case-sec__body > p.case-note { margin-top: 1.5rem; color: var(--ink); }
.case-sec__body > p.case-small { margin-top: 0.75rem; font-size: var(--step-small); }

ol.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem clamp(1rem, 2vw, 2rem); margin-top: clamp(2rem, 4vw, 3rem); padding-inline: var(--margin); list-style: none; }
.stages li { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.stages h3 { margin-top: 0; font-size: clamp(1.25rem, 1.6vw, 1.625rem); line-height: 1.1; }
.stages p { margin-top: 0.6rem; font-size: var(--step-small); line-height: 1.5; color: var(--muted); }

ul.insights { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: var(--margin); }
.insights .mono { font-size: 0.8125rem; color: var(--brand-text); }
.insights h3 { margin-top: 1.75rem; font-size: clamp(1.25rem, 1.6vw, 1.625rem); }

.mx-wrap { overflow-x: auto; }
.mx { width: 100%; min-width: 40rem; border-collapse: separate; border-spacing: 0; border-radius: var(--radius-lg); background: var(--card); font-size: var(--step-small); }
.mx th, .mx td { padding: 0.75rem 1rem; text-align: center; border-bottom: 1px solid rgba(0, 0, 0, 0.07); } /* taste-skill-ignore: table rows */
.mx thead th { padding-block: 1.1rem; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; color: var(--muted); }
.mx th[scope="row"], .mx thead th:first-child { padding-left: clamp(1rem, 2vw, 1.75rem); text-align: left; font-weight: 400; color: var(--ink); }
.mx tbody tr:last-child > * { border-bottom: 0; }
.mx__icon { width: 1.25rem; height: 1.25rem; vertical-align: middle; fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.mx__icon--yes { stroke: var(--brand-text); }
.mx__icon--no { stroke: var(--them-ink); }

ul.targets { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.75rem, 1.4vw, 1.25rem); margin-top: 1.75rem; padding: 0; list-style: none; }
.targets li { padding: clamp(1.25rem, 2vw, 1.75rem); border-radius: var(--radius-lg); background: var(--tint); }
.targets strong { display: block; font-family: var(--font-display); font-size: clamp(2.75rem, 5vw, 4.5rem); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.targets span { display: block; margin-top: 0.5rem; font-size: var(--step-body); }

.case-proto { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin: calc(var(--section) / 2) var(--margin) 0; padding: clamp(1.5rem, 4vw, 4rem); border-radius: var(--radius-lg); background: var(--field-dark); color: var(--field-dark-ink); }
.case-proto h2 { margin-top: 0.9rem; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.035em; }
.case-proto p:not(.mono) { margin-top: 1rem; max-width: 36ch; font-size: var(--step-body); line-height: 1.55; color: var(--field-dark-muted); }
.case-proto .case-sec__n { color: var(--field-dark-muted); }
.case-proto__shot { display: block; overflow: hidden; border-radius: calc(var(--radius-lg) - 8px); }
.case-proto__shot img { display: block; width: 100%; height: auto; }
.feature__text .feature__title { margin-top: 0.75rem; font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1; letter-spacing: -0.04em; }

@media (max-width: 1100px) {
  ul.insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  ol.stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .case-sec__head, .case-sec__body { grid-column: 1 / -1; }
  .case-sec__body { padding-top: 0; }
  .case-figs, .case-proto { grid-template-columns: 1fr; }
  ol.stages { grid-template-columns: 1fr 1fr; }
  .case-fig--persona { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  ul.insights, ol.stages { grid-template-columns: 1fr; }
  .mx { min-width: 0; font-size: 0.8125rem; }
  .mx th, .mx td { padding: 0.6rem 0.15rem; }
  .mx thead th { padding-block: 0.8rem; font-family: var(--font-text); font-size: 0.8125rem; text-transform: none; }
  .mx th[scope="row"], .mx thead th:first-child { padding-left: 0.75rem; }
  .mx__icon { width: 1rem; height: 1rem; }
}
.mx--text { min-width: 52rem; }
.mx--text td { padding: 0.9rem 1rem; text-align: left; vertical-align: top; line-height: 1.45; }
.mx--text th[scope="row"] { vertical-align: top; font-weight: 500; }
.mx--text thead th { text-align: left; }
.mx__none { color: var(--them-ink); }
.feature__shot--screen { aspect-ratio: 1005 / 627; background: #ffffff; }
.feature__shot--screen img { object-fit: cover; object-position: top left; }
.case-fig a.case-fig__img { cursor: zoom-in; }
@media (max-width: 860px) {
  .mx--text { min-width: 0; }
  .mx--text thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mx--text, .mx--text tbody, .mx--text tr, .mx--text th, .mx--text td { display: block; }
  .mx--text tr { padding: 1rem clamp(1rem, 3vw, 1.5rem); border-bottom: 1px solid rgba(0, 0, 0, 0.07); } /* taste-skill-ignore: row rules */
  .mx--text tbody tr:last-child { border-bottom: 0; }
  .mx--text th[scope="row"] { padding: 0 0 0.5rem; border: 0; font-family: var(--font-display); font-size: 1.25rem; }
  .mx--text td { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: 0.4rem 0; border: 0; font-size: var(--step-small); }
  .mx--text td::before { content: attr(data-label); color: var(--muted); }
}
@media (max-width: 420px) { .mx--text td { grid-template-columns: 1fr; gap: 0.1rem; } }
.case-fig--tall .case-fig__img { max-width: 60rem; margin-inline: auto; }

/* ---------- thank-you.php: the confirmation, next steps and somewhere to go ---------- */
.hero--thanks { min-height: 72svh; }
.thanks__badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.85rem 0.45rem 0.6rem; border-radius: 999px; background: var(--tint); color: var(--brand-text); }
.thanks__badge svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.thanks { align-items: start; row-gap: 3rem; }
.thanks h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); line-height: 1.05; letter-spacing: -0.03em; }
.thanks__next { grid-column: 1 / span 6; }
.thanks__next ol.next { margin-top: 1.75rem; gap: 1.25rem; }
.thanks__next .next li { font-size: var(--step-body); }
.thanks__soon { margin-top: 2rem; max-width: 46ch; font-size: var(--step-body); line-height: 1.5; color: var(--muted); }
.thanks__wait { grid-column: 8 / -1; }
.thanks .reach a { grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: end; }
.thanks .reach .mono { grid-column: 1 / -1; }
.reach__go { justify-self: end; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .thanks .reach a:hover .reach__go { transform: translateX(4px); } }
@media (max-width: 860px) { .thanks__next, .thanks__wait { grid-column: 1 / -1; } }
