/* Creative Minds. The look of the company profile cover: ink black, white logo, crimson line art. */
:root {
  --ink: #161616;
  --crimson: #d50037;

  --bg: var(--ink);
  --raise: #1d1e20;           /* a section lifted slightly off the page */
  --fg: #f5f3ef;
  --muted: #a7aeb5;
  --line: rgba(255, 255, 255, 0.14);
  --link: #ff6f8b;            /* crimson, lightened so small text passes contrast on ink */

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  --head: 76px;
  --gap: clamp(72px, 10vw, 148px);   /* space between sections */
  --wide: "wdth" 125;
  color-scheme: dark;
}

@view-transition { navigation: auto; } /* pages cross-fade, and a job card grows into its page */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block-start: calc(var(--head) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.6 Archivo, "Helvetica Neue", Arial, sans-serif; overflow-x: clip; }
img { display: block; max-inline-size: 100%; block-size: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a, button, label, select, input, textarea { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-variation-settings: var(--wide); font-weight: 650; line-height: 1.05; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.25rem; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-inline-size: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.vh { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; inset-block-start: -60px; background: var(--fg); color: var(--bg); padding: 10px 14px; z-index: 60; }
.skip:focus { inset-block-start: 12px; }
.arrow { inline-size: 1.25em; block-size: 1.25em; flex: none; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-block-size: 48px; padding: 0 24px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 2px;
  background: var(--crimson); color: #fff; border: 1px solid var(--crimson);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: #b3002e; border-color: #b3002e; }
.btn.ghost { background: transparent; color: var(--fg); border-color: rgba(255, 255, 255, 0.45); }
.btn.ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.more { display: inline-flex; align-items: center; gap: 10px; min-block-size: 44px; text-decoration: none; font-weight: 600; }
.more span { border-block-end: 1px solid currentColor; padding-block-end: 2px; }
.more .arrow, .card .arrow, .rows .arrow { transition: translate 0.25s ease-out; }
.more:hover .arrow, .card:hover .arrow, .rows a:hover .arrow { translate: 6px 0; }
.more:hover { color: var(--link); }

/* ---------- header: always ink, logo always white ---------- */
.site-head { position: sticky; inset-block-start: 0; z-index: 30; background: color-mix(in srgb, var(--ink) 86%, transparent); backdrop-filter: blur(12px); border-block-end: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; min-block-size: var(--head); gap: 24px; }
.logo { display: flex; align-items: center; color: #fff; margin-inline-end: auto; min-block-size: 44px; }
.logo svg { block-size: 28px; inline-size: auto; }
.nav { display: flex; align-items: center; gap: 34px; font-size: 0.98rem; }
.nav a:not(.btn) { text-decoration: none; padding-block: 12px; position: relative; color: var(--fg); }
.nav a:not(.btn)::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 6px; block-size: 2px; background: var(--crimson); scale: 0 1; transform-origin: 0 50%; transition: scale 0.25s ease-out; }
.nav a:not(.btn):hover::after, .nav a[aria-current]::after { scale: 1 1; }
.nav .btn { min-block-size: 44px; padding-inline: 18px; margin-inline-start: 6px; }
.menu-btn { display: none; }

/* ---------- home hero: the 3D sign shows through ---------- */
#sign3d { position: fixed; inset: 0; inline-size: 100%; block-size: 100lvh; z-index: 0; display: none; }
.has-3d #sign3d { display: block; animation: arrive 0.9s ease-out both; }
@keyframes arrive { from { opacity: 0; } }
main { overflow-x: clip; }
main > section, .site-foot { position: relative; z-index: 1; background: var(--bg); }

main > .hero { min-block-size: calc(100svh - var(--head)); display: grid; align-items: end; padding-block: 46svh clamp(32px, 6vh, 64px); }
.has-3d main > .hero { background: linear-gradient(to top right, rgba(22, 22, 22, 0.9), rgba(22, 22, 22, 0.5) 30%, transparent 58%); }
html:not(.has-3d) main > .hero { min-block-size: 0; padding-block-start: var(--gap); }
.hero-copy { inline-size: 100%; }
.hero h1 { font-size: clamp(2rem, 4.3vw, 3.7rem); max-inline-size: 15em; }
.hero .lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-inline-size: 34em; margin-block-start: 18px; color: var(--fg); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-block-start: 28px; }
.lights { display: inline-flex; margin-inline-start: auto; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; padding: 3px; background: rgba(22, 22, 22, 0.5); }
.lights button { font: inherit; font-size: 0.9rem; color: var(--muted); background: none; border: 0; min-block-size: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer; transition: color 0.2s, background-color 0.2s; }
.lights button:hover { color: var(--fg); }
.lights button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* ---------- inner page heads ---------- */
.page-head { padding-block: clamp(56px, 8vw, 112px) clamp(32px, 4vw, 56px); }
.page-head .lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--muted); max-inline-size: 38em; margin-block-start: 22px; }
.back { display: inline-flex; align-items: center; gap: 10px; min-block-size: 44px; margin-block-end: 18px; text-decoration: none; color: var(--muted); transition: color 0.2s; }
.back:hover { color: var(--fg); }
.back .arrow { rotate: 180deg; }

/* ---------- statement and facts ---------- */
.statement { padding-block: var(--gap) 0; }
.big { font-variation-settings: var(--wide); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.18; letter-spacing: -0.015em; max-inline-size: 26em; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 64px); margin: clamp(40px, 6vw, 80px) 0 0; padding-block-start: 30px; border-block-start: 1px solid var(--line); }
.facts dt { font-variation-settings: var(--wide); font-weight: 650; font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 1; letter-spacing: -0.02em; }
.facts dd { margin: 12px 0 0; color: var(--muted); max-inline-size: 18em; }

/* ---------- job cards: one size, one crop, everywhere ---------- */
.card { display: block; text-decoration: none; color: inherit; }
.card .shot { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--raise); }
.card .shot img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: scale 0.45s ease-out; }
.card:hover .shot img, .card:focus-visible .shot img { scale: 1.05; }
.card .label { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: center; padding-block: 16px 4px; }
.card .name { font-variation-settings: var(--wide); font-weight: 650; font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.01em; }
.card .sector { grid-column: 1; color: var(--muted); font-size: 0.92rem; margin-block-start: 4px; }
.card .arrow { grid-row: 1 / span 2; grid-column: 2; color: var(--crimson); inline-size: 26px; block-size: 26px; }

/* ---------- sliders with arrows ---------- */
.arrows { display: flex; gap: 10px; }
.arrows button {
  inline-size: 52px; block-size: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--fg); border: 1px solid rgba(255, 255, 255, 0.45);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}
.arrows button .arrow { inline-size: 22px; block-size: 22px; }
.arrows button[data-dir="-1"] .arrow { rotate: 180deg; }
.arrows button:hover:not(:disabled) { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.arrows button:disabled { opacity: 0.3; cursor: default; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track > li { flex: none; scroll-snap-align: start; }

.featured { padding-block: var(--gap) 0; }
.slider-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 40px; margin-block-end: clamp(28px, 4vw, 48px); }
.slider-head p { color: var(--muted); font-size: 1.1rem; margin-block-start: 14px; }
.slider-tools { display: flex; align-items: center; gap: 22px; }
.featured .track { gap: 20px; padding-inline: var(--edge); scroll-padding-inline: var(--edge); }
.featured .track > li { inline-size: min(78vw, 520px); }

/* ---------- client logos moving past ---------- */
.clients-strip { padding-block: var(--gap) 0; }
.strip-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-block-end: clamp(28px, 4vw, 48px); }
.strip-head h2 { max-inline-size: 16em; }
.marquee { position: relative; display: grid; gap: 34px; padding-block: 40px; background: var(--raise); border-block: 1px solid var(--line); overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent); }
.lane { display: flex; inline-size: max-content; animation: drift 90s linear infinite; }
.lane.reverse { animation-direction: reverse; }
.lane ul { display: flex; align-items: center; gap: clamp(48px, 6vw, 88px); padding-inline-end: clamp(48px, 6vw, 88px); }
.lane img { inline-size: auto; max-inline-size: none; opacity: 0.82; }
@keyframes drift { to { transform: translateX(-50%); } }
.marquee:hover .lane, .marquee[data-paused] .lane { animation-play-state: paused; }
.marquee .pause { position: absolute; inset-inline-end: 9%; inset-block-end: 6px; font: inherit; font-size: 0.8rem; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 6px 8px; opacity: 0; }
.marquee .pause:focus-visible, .marquee:hover .pause { opacity: 1; }

/* ---------- what we make (home) ---------- */
.services-home { padding-block: var(--gap) 0; }
.rows { margin-block-start: clamp(24px, 3vw, 40px); border-block-end: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: clamp(16px, 3vw, 48px); align-items: center; padding-block: 26px; border-block-start: 1px solid var(--line); text-decoration: none; transition: padding-inline 0.25s ease-out; }
.rows .name { font-variation-settings: var(--wide); font-weight: 650; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.15; letter-spacing: -0.01em; }
.rows .what { color: var(--muted); }
.rows .arrow { color: var(--crimson); inline-size: 28px; block-size: 28px; }
.rows a:hover .name { color: var(--link); }

/* ---------- process: a real sequence, so it is numbered. With 3D it pins and scroll drives the sign. ---------- */
main > .process { margin-block-start: var(--gap); }
.process .pin { display: grid; grid-template-columns: minmax(0, 1fr); }
.process-copy { display: grid; gap: 36px; align-content: center; background: var(--bg); padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(40px, 6vw, 72px) var(--edge); }
.steps { display: grid; gap: 30px; }
.steps li { display: grid; grid-template-columns: 3.2rem 1fr; }
.steps li::before { content: "1"; font-variation-settings: var(--wide); font-weight: 650; font-size: 2.4rem; line-height: 1; color: var(--crimson); }
.steps li:nth-child(2)::before { content: "2"; } /* written out, because on phones only the current step is shown */
.steps li:nth-child(3)::before { content: "3"; }
.steps h3 { margin-block-end: 8px; }
.steps p { color: var(--muted); max-inline-size: 34em; }
.process .hint { color: var(--muted); font-size: 0.9rem; }
html:not(.has-3d) .process .hint, html:not(.has-3d) .process .stage { display: none; }
.has-3d main > .process { block-size: 360vh; background: transparent; border-block: 1px solid var(--line); }
.has-3d .process .pin { position: sticky; inset-block-start: 0; block-size: 100svh; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.has-3d .process-copy { border-inline-end: 1px solid var(--line); padding-block-start: calc(var(--head) + 24px); }
/* the current step is marked by a bar and the crimson number, never by fading the other steps */
.has-3d .steps li { padding-inline-start: 18px; border-inline-start: 3px solid var(--line); transition: border-color 0.3s; }
.has-3d .steps li::before { color: var(--muted); transition: color 0.3s; }
.has-3d .process[data-step="1"] .steps li:nth-child(1),
.has-3d .process[data-step="2"] .steps li:nth-child(2),
.has-3d .process[data-step="3"] .steps li:nth-child(3) { border-inline-start-color: var(--crimson); }
.has-3d .process[data-step="1"] .steps li:nth-child(1)::before,
.has-3d .process[data-step="2"] .steps li:nth-child(2)::before,
.has-3d .process[data-step="3"] .steps li:nth-child(3)::before { color: var(--crimson); }
.how { padding-block: var(--gap) 0; }
.how .steps { margin-block-start: clamp(28px, 4vw, 48px); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }

/* ---------- closing band ---------- */
main > .band { margin-block-start: var(--gap); background: var(--raise); border-block: 1px solid var(--line); overflow: hidden; }
.band .wrap { position: relative; padding-block: clamp(64px, 9vw, 120px); }
.band h2 { max-inline-size: 14em; font-size: clamp(1.9rem, 3.8vw, 3.2rem); position: relative; }
.band p { color: var(--muted); font-size: 1.15rem; max-inline-size: 32em; margin-block-start: 18px; position: relative; }
.band .actions { position: relative; gap: 28px; }
.phone { font-variation-settings: var(--wide); font-weight: 650; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.01em; text-decoration: none; min-block-size: 44px; display: inline-flex; align-items: center; }
.phone:hover { color: var(--link); }
.mesh { position: absolute; inset-block-start: 50%; inset-inline-end: -8vw; translate: 0 -50%; inline-size: min(40vw, 560px); block-size: auto; color: var(--crimson); pointer-events: none; opacity: 0.9; }

/* ---------- work page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 clamp(28px, 4vw, 48px); }
.filters label { display: inline-flex; align-items: center; min-block-size: 44px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; padding: 0 18px; font-size: 0.95rem; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.filters label:hover { border-color: var(--fg); }
.filters label:has(input:checked) { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filters label:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: 3px; }
.filters input { position: absolute; opacity: 0; pointer-events: none; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 52px) clamp(16px, 2vw, 28px); }
.grid[data-show="auto"] .card:not([data-sector="auto"]),
.grid[data-show="food"] .card:not([data-sector="food"]),
.grid[data-show="corp"] .card:not([data-sector="corp"]),
.grid[data-show="out"] .card:not([data-sector="out"]) { display: none; }

/* ---------- one job ---------- */
.job .sector { color: var(--link); margin-block-end: 20px; }
.stage-wrap { position: relative; background: #0d0d0e; }
.gallery .track > li { inline-size: 100%; display: grid; place-items: center; block-size: min(72svh, 56.25vw + 60px); }
.gallery .track img { max-block-size: 100%; inline-size: auto; max-inline-size: 100%; object-fit: contain; }
.gallery .arrows { position: absolute; inset-inline: 16px; inset-block-start: 50%; translate: 0 -50%; justify-content: space-between; pointer-events: none; }
.gallery .arrows button { pointer-events: auto; background: rgba(22, 22, 22, 0.72); border-color: rgba(255, 255, 255, 0.35); }
.gallery-foot { display: flex; align-items: center; gap: 24px; padding-block: 16px 0; }
.count { color: var(--muted); font-size: 0.95rem; white-space: nowrap; min-inline-size: 4.5em; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { flex: none; inline-size: 84px; block-size: 60px; padding: 0; border: 0; background: var(--raise); cursor: pointer; opacity: 0.5; transition: opacity 0.2s; outline-offset: 2px; }
.thumbs button img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.thumbs button:hover, .thumbs button[aria-current] { opacity: 1; }
.thumbs button[aria-current] { box-shadow: 0 0 0 2px var(--crimson); }
.job-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-block-start: clamp(36px, 5vw, 64px); padding-block-start: 28px; border-block-start: 1px solid var(--line); }

/* ---------- services page ---------- */
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: center; padding-block: clamp(40px, 6vw, 80px); border-block-start: 1px solid var(--line); }
.service:nth-child(even) figure { order: -1; }
.service .text { display: grid; gap: 20px; justify-items: start; }
.service .text p { color: var(--muted); font-size: 1.12rem; }
.service ul { display: grid; gap: 10px; }
.service li { padding-inline-start: 22px; position: relative; }
.service li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.72em; inline-size: 10px; block-size: 2px; background: var(--crimson); }
.service figure { margin: 0; position: relative; }
.service figure img { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service figcaption { color: var(--muted); font-size: 0.9rem; padding-block-start: 10px; }
.service figure.plain { aspect-ratio: 4 / 3; background: var(--raise); overflow: hidden; }
.service figure.plain .mesh { inset-inline-end: -12%; inline-size: 92%; }

/* ---------- about ---------- */
.two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.story { display: grid; gap: 22px; font-size: 1.2rem; max-inline-size: 36em; }
.aims { display: grid; gap: 36px; }
blockquote { margin: 0; padding-inline-start: 22px; border-inline-start: 3px solid var(--crimson); }
blockquote p { font-variation-settings: var(--wide); font-weight: 600; font-size: 1.35rem; line-height: 1.22; letter-spacing: -0.01em; }
blockquote footer { margin-block-start: 10px; color: var(--muted); font-size: 0.95rem; }
.values { padding-block: var(--gap) 0; }
.values ul { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-block-start: clamp(24px, 3vw, 40px); }
.values li { font-variation-settings: var(--wide); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.5rem); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; padding: 10px 22px; }
.clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); margin-block-start: clamp(40px, 6vw, 72px); }
.clients h3 { padding-block-end: 14px; margin-block-end: 14px; border-block-end: 1px solid var(--fg); }
.clients ul { columns: 2; column-gap: 24px; line-height: 1.95; color: var(--muted); }
.clients li { break-inside: avoid; }

/* ---------- contact ---------- */
.contact { padding-block-end: var(--gap); }
.contact .two { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.direct { display: grid; gap: 22px; font-style: normal; }
.direct .phone { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.direct p { color: var(--muted); }
.quote { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--raise); border: 1px solid var(--line); padding: clamp(20px, 3vw, 40px); }
.quote .full { grid-column: 1 / -1; }
.quote label { display: grid; gap: 8px; font-size: 0.95rem; font-weight: 600; }
.quote input, .quote select, .quote textarea { font: inherit; font-weight: 400; color: var(--fg); background: var(--bg); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 2px; padding: 12px 14px; inline-size: 100%; min-block-size: 48px; transition: border-color 0.2s; }
.quote input:hover, .quote select:hover, .quote textarea:hover { border-color: var(--fg); }
.quote textarea { min-block-size: 140px; resize: vertical; }
.quote .note { font-size: 0.9rem; font-weight: 400; color: var(--muted); align-self: center; }
.quote .status { font-size: 0.95rem; padding: 12px 14px; border-inline-start: 3px solid var(--crimson); background: var(--bg); }

/* ---------- footer ---------- */
.site-foot { border-block-start: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px) 32px; color: var(--muted); font-size: 0.97rem; }
main:has(> .band:last-child) + .site-foot { border-block-start: 0; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 32px clamp(24px, 4vw, 64px); }
.foot-brand svg { block-size: 30px; inline-size: auto; color: #fff; }
.foot-brand p { margin-block-start: 18px; max-inline-size: 24em; }
.site-foot nav, .site-foot address { display: grid; gap: 4px; align-content: start; font-style: normal; }
.site-foot nav a, .site-foot address a { text-decoration: none; color: var(--fg); min-block-size: 36px; display: inline-flex; align-items: center; justify-self: start; transition: color 0.2s; }
.site-foot nav a:hover, .site-foot address a:hover { color: var(--link); }
.legal { grid-column: 1 / -1; padding-block-start: 24px; border-block-start: 1px solid var(--line); }

/* ---------- transitions that answer an action ---------- */
::view-transition-group(*) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
  .menu-btn { display: grid; gap: 7px; align-content: center; justify-items: center; inline-size: 48px; block-size: 48px; background: none; border: 0; cursor: pointer; color: #fff; }
  .menu-btn i { display: block; inline-size: 26px; block-size: 2px; background: currentColor; transition: translate 0.25s, rotate 0.25s; }
  .menu-btn[aria-expanded="true"] i:first-of-type { translate: 0 4.5px; rotate: 45deg; }
  .menu-btn[aria-expanded="true"] i:last-of-type { translate: 0 -4.5px; rotate: -45deg; }
  .nav { position: fixed; inset: var(--head) 0 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 24px var(--gutter) 40px; background: var(--ink); overflow-y: auto;
    visibility: hidden; opacity: 0; translate: 0 -12px; transition: opacity 0.25s, translate 0.25s, visibility 0.25s; }
  .nav.open { visibility: visible; opacity: 1; translate: 0 0; }
  .nav a:not(.btn) { font-variation-settings: var(--wide); font-weight: 650; font-size: 2rem; padding-block: 16px; border-block-end: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav a[aria-current] { color: var(--link); }
  .nav .btn { margin: 28px 0 0; min-block-size: 54px; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service, .two, .contact .two, .clients, .how .steps { grid-template-columns: minmax(0, 1fr); }
  .service:nth-child(even) figure { order: 0; }
  .rows a { grid-template-columns: minmax(0, 1fr) auto; }
  .rows .what { grid-column: 1; grid-row: 2; }
  .rows .arrow { grid-row: 1 / span 2; }
  .site-foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  main > .hero { padding-block-start: 38svh; }
  .mesh { inline-size: 70vw; inset-inline-end: -30vw; opacity: 0.5; }

  .has-3d main > .process { block-size: 300vh; }
  .has-3d .process .pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: 46svh minmax(0, 1fr); }
  .has-3d .process .stage { order: -1; }
  .has-3d .process-copy { border-inline-end: 0; border-block-start: 1px solid var(--line); padding-block: 22px; align-content: start; gap: 18px; }
  .has-3d .process-copy h2 { font-size: 1.6rem; }
  .has-3d .steps li { display: none; }
  .has-3d .process[data-step="1"] .steps li:nth-child(1),
  .has-3d .process[data-step="2"] .steps li:nth-child(2),
  .has-3d .process[data-step="3"] .steps li:nth-child(3) { display: grid; }
}
@media (max-width: 600px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .facts div { display: grid; grid-template-columns: 7rem 1fr; align-items: baseline; gap: 16px; }
  .facts dd { margin: 0; }
  /* two cards across on phones: half the scrolling of one column */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .grid .card .name { font-size: 0.98rem; }
  .grid .card .sector { font-size: 0.82rem; }
  .grid .card .arrow { display: none; }
  .quote { grid-template-columns: 1fr; }
  .lights { margin-inline-start: 0; }
  .slider-tools .btn { display: none; }
  .gallery .arrows { inset-inline: 8px; }
  .gallery .arrows button { inline-size: 44px; block-size: 44px; }
  .site-foot .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (pointer: coarse) {
  .lights button { min-block-size: 44px; }
  .site-foot nav a, .site-foot address a { min-block-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  .lane { animation: none; }
  .marquee { overflow-x: auto; mask-image: none; }
  .marquee .pause { display: none; }
  .has-3d #sign3d { animation: none; }
  .has-3d main > .process { block-size: 220vh; }
  .card .shot img, .more .arrow, .card .arrow, .rows .arrow, .nav, .menu-btn i { transition: none; }
}
