/* parahouse — site styles
   Dark, image-led. References: Zeroframe (black ground, extended caps, mono labels, footer strip
   and wordmark) and Foucault (floating pills, compact menu, rounded image tiles).
   Colours and type live in the tokens below. */

/* Type: Archivo (extended widths) for headings, Geist for text, Geist Mono for labels.
   All SIL Open Font License (see /assets/fonts/OFL-*.txt), self-hosted, Latin subset. */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-wide.woff") format("woff"); font-weight: 500 800; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff") format("woff"); font-weight: 300 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --ease-out: cubic-bezier(.23, 1, .32, 1);   /* strong ease-out for UI */
  --ease-drawer: cubic-bezier(.32, .72, 0, 1); /* panels growing out of a control */
  --bg: #0b0b0b;
  --surface: #141414;
  --fg: #ecece9;
  --muted: #7d7d79;
  --line: #242423;
  --pill: rgba(30, 30, 30, .72);
  --pill-fg: #ecece9;
  --panel: #161616;
  --panel-fg: #ecece9;
  --panel-muted: #7d7d79;
  --brand: #e02c1d;      /* parahouse red: logo, buttons, current menu item, hovers */
  --brand-ink: #fff;     /* text on brand red; project pages set their own */
  --curtain: #4a0e12;    /* deep red: intro screen and page-change curtain */
  --bg-top: #33090c;
  --logo: #9b3730;       /* client logos at rest: muted red; white on hover */     /* dark red at the top of the background gradient */

  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: clamp(12px, 1.4vw, 20px);
  --gap: 8px;
  --edge: clamp(12px, 1.4vw, 20px);
  --measure: 60ch;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { background: var(--bg); }
body {
  margin: 0; background: transparent; color: var(--fg);
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* Slow gradient behind everything: dark red at the top of the screen fading to black below. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, var(--bg-top) 0%, color-mix(in srgb, var(--bg-top) 45%, var(--bg)) 32%, var(--bg) 78%); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Floating controls ---------- */
.chrome { position: fixed; top: var(--edge); z-index: 40; }
.chrome-left { left: var(--edge); }
.chrome-right { right: var(--edge); }
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px;
  background: var(--pill); color: var(--pill-fg); border: 0; border-radius: 11px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.pill:hover { background: rgba(60, 60, 60, .8); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: transform .3s ease; }
.pill[aria-expanded="true"] .dot { transform: scale(1.6); }
.logo { display: block; padding: 4px; color: var(--brand); }
.logo svg { display: block; width: auto; height: clamp(40px, 4.4vw, 56px); filter: drop-shadow(0 1px 10px rgba(0,0,0,.55)); overflow: visible; }
.logo path { transform-box: fill-box; transform-origin: 50% 50%; }
.logo:focus-visible .p-head { animation: p-head .7s cubic-bezier(.3,1.6,.5,1); }
.logo:focus-visible .p-stem { animation: p-stem .7s cubic-bezier(.3,1.6,.5,1); }
@media (hover: hover) and (pointer: fine) {
  .logo:hover .p-head { animation: p-head .7s cubic-bezier(.3,1.6,.5,1); }
  .logo:hover .p-stem { animation: p-stem .7s cubic-bezier(.3,1.6,.5,1); }
}
@keyframes p-head { 35% { transform: translate(18%, -16%) rotate(9deg); } }
@keyframes p-stem { 35% { transform: translate(-14%, 8%) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .logo path { animation: none !important; } }

/* ---------- Top navigation: full links at the top of the page; once the visitor scrolls,
   they collapse into the Menu pill (after Dennis Snellenberg). site.js sets html.is-scrolled. ---------- */
.topnav { position: absolute; z-index: 39; top: calc(var(--edge) + 2px); right: calc(var(--edge) + clamp(0px, 4vw, 64px)); transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); }
.topnav ul { list-style: none; margin: 0; padding: 0; display: grid; justify-items: start; }
.topnav a { position: relative; display: block; padding: 1px 0; font-family: var(--font); font-weight: 500; font-size: clamp(17px, 1.55vw, 23px); line-height: 1.12; letter-spacing: .01em; text-transform: uppercase; color: var(--fg); text-shadow: 0 1px 10px rgba(0,0,0,.5); transition: color .25s ease; }
.topnav a:hover { color: var(--brand); }
.topnav a::after { content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: currentColor; opacity: 0; transform: scale(.5); transition: transform .2s var(--ease-out), opacity .2s var(--ease-out); }
.topnav a[aria-current="page"]::after { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .topnav a:hover::after { opacity: 1; transform: none; } }
.topnav a[aria-current="page"] { color: var(--brand); }
.js .menu-toggle { transform: scale(.9); opacity: 0; visibility: hidden; transition: transform .25s var(--ease-out), opacity .2s var(--ease-out), visibility 0s linear .25s, background-color .2s ease; }
.js.is-scrolled .menu-toggle, .js .menu-toggle[aria-expanded="true"] { transform: none; opacity: 1; visibility: visible; transition: transform .25s var(--ease-out), opacity .2s var(--ease-out), background-color .2s ease; }
.js.is-scrolled .topnav { opacity: 0; transform: translateY(-6px); pointer-events: none; }
@media (max-width: 640px) {
  .topnav { display: none; }
  .js .menu-toggle { transform: none; opacity: 1; visibility: visible; }
}
@media (prefers-reduced-motion: reduce) { .topnav, .js .menu-toggle { transition: none; } }

/* ---------- Menu: a compact panel that grows out of the Menu pill ---------- */
.menu-toggle { position: relative; z-index: 2; }
.menu {
  position: absolute; z-index: 1; top: 0; right: 0;
  min-width: 230px; padding: 52px 8px 8px;
  background: var(--panel); color: var(--panel-fg); border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 50px rgba(0,0,0,.5);
  clip-path: inset(0 0 calc(100% - 36px) calc(100% - 90px) round 11px);
  opacity: 0; visibility: hidden;
  transition: clip-path .22s var(--ease-out), opacity .12s ease .1s, visibility 0s linear .22s;
}
.menu.open {
  clip-path: inset(0 0 0 0 round 16px); opacity: 1; visibility: visible;
  transition: clip-path .3s var(--ease-drawer), opacity .12s ease;
}
.menu-toggle[aria-expanded="true"] { background: var(--panel); color: var(--panel-fg); box-shadow: none; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 8px 12px; border-radius: 10px; font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 20px; line-height: 1.1; text-transform: uppercase; }
.menu a:hover { background: rgba(255,255,255,.08); }
.menu a[aria-current="page"] { color: var(--brand); }
/* Mono labels: small uppercase metadata, as in Zeroframe */
.label, .mono { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.label { margin-bottom: 8px; }
@media (prefers-reduced-motion: reduce) { .menu, .menu.open { transition: none; } }

/* ---------- Home: full-bleed project showcase ---------- */
.showcase { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; background: #111; }
.showcase-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease, transform 7s ease-out; transform: scale(1.06);
}
.showcase-media img.active { opacity: 1; transform: scale(1); }
.showcase::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,0) 26%), linear-gradient(0deg, rgba(0,0,0,.62), rgba(0,0,0,0) 58%); pointer-events: none; }
.hero-title {
  position: absolute; z-index: 2; left: var(--edge); right: var(--edge); bottom: calc(var(--edge) + 48px); margin: 0;
  font-family: var(--display); font-weight: 700; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(34px, 6.4vw, 118px); line-height: .92; letter-spacing: -0.02em; max-width: 11ch; text-wrap: balance;
}
.hero-meta {
  position: absolute; z-index: 2; left: var(--edge); right: var(--edge); bottom: var(--edge);
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
}
@media (max-width: 640px) { .hero-meta span:nth-child(2) { display: none; } }

/* Sections fade up as the visitor scrolls */
.reveal { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.in) { opacity: 0; transform: translateY(24px); }
}


/* ---------- Page scaffolding ---------- */
.page { padding: calc(var(--edge) + 80px) var(--edge) 0; }
.page-head { display: grid; gap: 20px; margin-bottom: clamp(32px, 5vw, 64px); }
.statement {
  font-family: var(--display); font-weight: 700; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(26px, 3.4vw, 52px); line-height: .98; letter-spacing: -0.01em;
  text-wrap: balance; color: var(--fg);
}
.statement.small { font-size: clamp(24px, 2.8vw, 42px); }
.statement sup { font-family: var(--mono); font-size: 11px; vertical-align: top; position: relative; top: .4em; margin-left: .6em; font-weight: 400; letter-spacing: .07em; color: var(--muted); }
.lede { font-family: var(--font); font-weight: 400; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; max-width: 42ch; letter-spacing: -0.01em; }
.muted { color: var(--muted); }

/* Section header: label on the left, section marker on the right, hairline below. */
.section { padding: clamp(64px, 9vw, 140px) 0 0; }
.section-bar { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.section-bar span:last-child { color: var(--muted); }

/* Rows: the hairline tables used on About */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: grid; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
@media (min-width: 760px) { .rows > li { grid-template-columns: 1fr 1fr 1fr; } .rows > li > :last-child { text-align: right; } }
.rows h3 { font-size: 15px; font-weight: 500; }
.rows p { margin: 0; color: var(--muted); max-width: 46ch; }
@media (min-width: 760px) { .rows.two > li { grid-template-columns: 1fr 2fr; } .rows.two > li > :last-child { text-align: left; } }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 18px;
  border: 0; border-radius: 12px; background: var(--fg); color: var(--bg);
  font-family: var(--mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; cursor: pointer;
  transition: background-color .25s ease;
}
.button:hover { background: var(--brand); }
.button .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Portfolio grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.filters button { height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.filters button:hover { color: var(--fg); border-color: var(--fg); }
.filters button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--surface); color: #fff; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.tile:focus-visible img { transform: scale(1.04); }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.04); } }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0,0,0,.62), rgba(0,0,0,.18) 34%, rgba(0,0,0,0) 55%); pointer-events: none; }
.tile-text { position: absolute; z-index: 2; left: clamp(16px, 1.8vw, 24px); right: clamp(16px, 1.8vw, 24px); bottom: clamp(16px, 1.8vw, 24px); display: grid; gap: 10px; justify-items: start; }
.tile-type { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; background: rgba(0,0,0,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.tile-title { font-family: var(--display); font-weight: 700; font-stretch: 125%; text-transform: uppercase; font-size: clamp(17px, 1.6vw, 24px); line-height: 1; text-wrap: balance; }
.tile-client { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .07em; opacity: .8; margin-bottom: 8px; }
.tile-hint { position: absolute; z-index: 2; top: clamp(16px, 1.8vw, 24px); right: clamp(16px, 1.8vw, 24px); font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; opacity: 0; transform: translateY(-4px); transition: opacity .3s ease, transform .3s ease; }
.tile:hover .tile-hint, .tile:focus-visible .tile-hint { opacity: .9; transform: none; }
@media (hover: none) { .tile-hint { display: none; } }
.tile[hidden] { display: none; }

}

/* ---------- Project page ---------- */
.back { display: inline-flex; margin-bottom: 28px; }
.meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--gap); margin: 0; }
@media (min-width: 900px) { .meta-grid { grid-template-columns: repeat(4, 1fr); } }
.meta-grid div { border-top: 1px solid var(--line); padding: 12px 0 18px; }
.meta-grid dt { font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.meta-grid dd { margin: 2px 0 0; font-size: 15px; }
.project-intro { display: grid; gap: 24px; margin: clamp(24px, 4vw, 48px) 0 clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .project-intro { grid-template-columns: 1fr 1fr; } .project-intro .prose { grid-column: 2; } }
.prose { max-width: var(--measure); font-size: 16px; line-height: 1.65; }
.media { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 760px) { .media { grid-template-columns: 1fr 1fr; } .media .full { grid-column: 1 / -1; } }
.media figure { margin: 0; }
.media img { width: 100%; border-radius: var(--radius); background: var(--surface); }
.media .half img { aspect-ratio: 4 / 5; object-fit: cover; }
.media.gallery { grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .media.gallery { grid-template-columns: repeat(3, 1fr); } }
.media.gallery .full { grid-column: 1 / -1; }
.media .natural img { aspect-ratio: auto; }
.media figcaption { font-size: 13px; color: var(--muted); padding: 8px 4px 0; }
.next-pill { position: fixed; z-index: 20; left: 50%; bottom: var(--edge); transform: translateX(-50%); height: 40px; padding: 0 16px; background: var(--pill); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--fg); border-radius: 11px; display: inline-flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 0 0 1px rgba(255,255,255,.08); white-space: nowrap; }
.next-pill .muted { color: var(--panel-muted); }

/* ---------- About ---------- */
.pair { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 760px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.about-statement { padding: clamp(40px, 6vw, 88px) 0 0; }
.about-statement .section-bar { border: 0; padding-bottom: 18px; }

/* ---------- Contact ---------- */
.contact-grid { max-width: 960px; }
.details { margin: 0; }
.details div { border-top: 1px solid var(--line); padding: 12px 0 16px; }
.details dt { font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.details dd { margin: 2px 0 0; font-size: 16px; }
.details a:hover { color: var(--muted); }
.form { display: grid; gap: 14px; }
.form .row { display: grid; gap: 14px; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--fg); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin: 4px 0 0; font-size: 15px; }
.form-status[data-state="error"] { color: #ff7a6b; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(80px, 12vw, 180px) var(--edge) var(--edge); }
.footer-strip { display: flex; align-items: end; gap: var(--gap); overflow: hidden; padding-top: 12px; }
.strip-item { flex: 1 1 0; min-width: 0; border-radius: 12px; overflow: hidden; }
.strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .strip-item:hover img { transform: scale(1.05); } }
.strip-item.s0 { height: 110px; } .strip-item.s1 { height: 160px; } .strip-item.s2 { height: 90px; } .strip-item.s3 { height: 140px; }
@media (max-width: 640px) { .strip-item:nth-child(n+4) { display: none; } }
.footer-mark { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: 15.3vw; line-height: .78; letter-spacing: -0.05em; margin: 32px 0 20px; white-space: nowrap; overflow: hidden; color: var(--fg); }

/* ---------- Home sections ---------- */
.intro { display: grid; gap: 24px; padding: clamp(72px, 10vw, 150px) var(--edge) 0; }
@media (min-width: 900px) { .intro { grid-template-columns: 7fr 4fr; align-items: end; gap: 48px; } }
.intro-line { font-family: var(--display); font-weight: 700; font-stretch: 125%; text-transform: uppercase; font-size: clamp(28px, 4vw, 64px); line-height: .96; letter-spacing: -0.015em; text-wrap: balance; max-width: 17ch; }
.intro-sub { margin: 0; max-width: 46ch; font-family: var(--mono); font-size: 12px; line-height: 1.65; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

.home-block { padding: clamp(72px, 9vw, 130px) var(--edge) 0; }
.block-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 12px; margin-bottom: var(--gap); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.block-head h2 { font: inherit; color: var(--fg); }
.block-head .muted { font-size: inherit; }
.text-link { margin-left: auto; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .3em; }
.text-link:hover { text-decoration-color: currentColor; }

/* Featured work: one wide, then two side by side */
.features { display: grid; gap: var(--gap); grid-template-columns: 1fr; padding-top: var(--gap); }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } .feature.wide { grid-column: 1 / -1; } }
.feature.wide { aspect-ratio: 16 / 9; }
.feature.half { aspect-ratio: 4 / 3; }
@media (max-width: 759px) { .feature.wide, .feature.half { aspect-ratio: 4 / 3; } }
.feature .tile-title { font-size: clamp(22px, 2.8vw, 44px); max-width: 18ch; }
.feature.half .tile-title { font-size: clamp(20px, 2vw, 30px); }

/* Brand wall: client logos in white on the dark ground, laid out as an open field so any count
   sits evenly (a short last row centres). Text stands in only until a logo file exists. */
.brand-wall { list-style: none; margin: 0; padding: clamp(24px, 4vw, 56px) 0; display: flex; flex-wrap: wrap; justify-content: center; row-gap: clamp(28px, 4vw, 56px); }
.brand-wall li { flex: 0 0 50%; display: grid; place-items: center; min-height: 64px; padding: 0 clamp(12px, 2vw, 32px); }
@media (min-width: 760px) { .brand-wall li { flex-basis: 25%; } }
.brand-logo {
  display: block; max-width: 100%; aspect-ratio: var(--w) / var(--h);
  width: min(170px, calc(58px * var(--w) / var(--h)));
  background-color: var(--logo); transition: background-color .35s ease;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat;
}
.brand-wall li:hover .brand-logo, .brand-track li:hover .brand-logo { background-color: #fff; }

/* Brand carousel: outlined squares drifting left, without pausing on hover.
   With reduced motion it becomes a still, wrapping grid. */
.brand-marquee { display: flex; overflow: hidden; padding: clamp(28px, 4vw, 56px) 0; margin: 0 calc(-1 * var(--edge));
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.home-block.flush .brand-marquee { margin: 0; }
.brand-track { list-style: none; margin: 0; padding: 0 var(--gap) 0 0; display: flex; gap: var(--gap); flex-shrink: 0; animation: brand-drift 70s linear infinite; }
.brand-track li { flex: 0 0 auto; width: clamp(190px, 19vw, 300px); height: clamp(90px, 9vw, 130px); display: grid; place-items: center; padding: 0 clamp(30px, 3.6vw, 60px); }
.brand-track .brand-logo { width: min(100%, calc(64px * var(--w) / var(--h))); }
@keyframes brand-drift { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .brand-marquee { -webkit-mask: none; mask: none; margin: 0; }
  .brand-track { animation: none; flex-wrap: wrap; justify-content: center; flex-shrink: 1; padding: 0; }
  .brand-track[aria-hidden="true"] { display: none; }
}
.brand-name { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }

/* Services: numbered list that opens to show what's included */
.services-list { border-bottom: 1px solid var(--line); }
.service { border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; }
.service summary { list-style: none; display: grid; grid-template-columns: 1fr; align-items: baseline; gap: 16px; padding: 22px 0; cursor: pointer; }
.service summary::-webkit-details-marker { display: none; }
.service-title { font-family: var(--display); font-weight: 700; font-stretch: 125%; text-transform: uppercase; font-size: clamp(20px, 2.6vw, 40px); line-height: 1; }
.service summary:hover .service-title { color: var(--brand); }
.service-body { display: grid; gap: 18px; padding: 0 0 26px; }
@media (min-width: 900px) { .service-body { grid-template-columns: 1fr 1fr; } }
.service-body p { margin: 0; max-width: 46ch; color: var(--muted); font-size: 16px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.chips li { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Brands wall (About) ---------- */
.brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .brands { grid-template-columns: repeat(4, 1fr); } }
.brands li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(16px, 1.4vw, 20px); }

/* Tagline band */
.tagline { padding: clamp(80px, 12vw, 180px) 0 0; text-align: center; }
.tagline .statement { font-size: clamp(32px, 5.4vw, 88px); }

/* Render vs built pairing on project pages */
.pairing-label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; padding: 28px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: var(--gap); }
.pairing-label span:last-child { color: var(--muted); }

/* ---------- Footer: "Let's work together" (after Dennis Snellenberg) ---------- */
.together { padding-bottom: clamp(48px, 7vw, 96px); }
.together-title { font-family: var(--display); font-weight: 700; font-stretch: 125%; text-transform: uppercase; font-size: clamp(34px, 6.4vw, 104px); line-height: .92; letter-spacing: -0.01em; }
.together-rule { position: relative; margin: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.round-button { position: absolute; right: clamp(24px, 12vw, 200px); top: 0; transform: translateY(-50%); display: grid; place-items: center; width: clamp(120px, 12vw, 180px); aspect-ratio: 1; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-family: var(--mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; transition: transform .4s cubic-bezier(.2,.7,.2,1), background-color .25s ease; }
@media (hover: hover) and (pointer: fine) { .round-button:hover { transform: translateY(-50%) scale(1.06); background: var(--fg); } }
.round-button:active { transform: translateY(-50%) scale(.97); }
.contact-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-link { display: inline-flex; align-items: center; height: 54px; padding: 0 24px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; transition: border-color .25s ease, background-color .25s ease; }
.pill-link:hover { border-color: var(--fg); background: var(--surface); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 18px 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-meta > div { display: grid; gap: 4px; }
.footer-meta .label { margin: 0; }
.footer-socials { margin-left: auto; }
.footer-socials a { margin-right: 14px; }
.footer-socials a:hover, .footer-meta a:hover { color: var(--brand); }
@media (max-width: 640px) { .together-rule { margin-top: 96px; } .round-button { right: 0; width: 108px; } .footer-socials { margin-left: 0; } }

/* ---------- About (structure after Dennis Snellenberg's about page) ---------- */
.about-title { font-family: var(--display); font-weight: 700; font-stretch: 125%; text-transform: uppercase; font-size: clamp(30px, 5vw, 80px); line-height: .96; letter-spacing: -0.01em; max-width: 15ch; text-wrap: balance; padding-top: clamp(24px, 6vw, 96px); }
.about-rule { margin: clamp(36px, 5vw, 72px) 0 clamp(40px, 5.5vw, 80px); border-top: 1px solid var(--line); }
.about-intro { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .about-intro { grid-template-columns: 4fr 7fr; gap: 6vw; } }
.about-text { display: grid; gap: 18px; max-width: 36ch; font-size: 17px; line-height: 1.6; position: relative; }
.about-text p { margin: 0; }
.about-arrow { font-size: 22px; line-height: 1; color: var(--muted); }
@media (min-width: 900px) { .about-text { padding-left: 64px; } .about-arrow { position: absolute; left: 0; top: 2px; } }
.about-portrait { margin: 0; }
.about-portrait img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.about-portrait figcaption { margin-top: 10px; }
.about-help { padding-top: clamp(96px, 12vw, 180px); }
.about-help-title { font-family: var(--display); font-weight: 700; font-stretch: 125%; text-transform: uppercase; font-size: clamp(24px, 3vw, 46px); line-height: 1; margin-bottom: clamp(40px, 5vw, 72px); }
.help-cols { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .help-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .help-cols { grid-template-columns: repeat(4, 1fr); } }
.help-cols li { display: grid; gap: 14px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line); }
.help-cols h3 { font-family: var(--display); font-weight: 700; font-stretch: 125%; text-transform: uppercase; font-size: clamp(20px, 1.8vw, 28px); line-height: 1; }
.help-cols p { margin: 0; color: var(--muted); max-width: 40ch; }
.about-band { margin-top: clamp(96px, 12vw, 180px); padding: clamp(40px, 6vw, 88px) clamp(20px, 4vw, 64px); background: var(--surface); border-radius: var(--radius); display: grid; gap: 32px; }
@media (min-width: 900px) { .about-band { grid-template-columns: 3fr 8fr; } }
.difference { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
@media (min-width: 900px) { .difference { grid-template-columns: repeat(3, 1fr); } }
.difference h3 { font-size: 17px; font-weight: 500; margin-bottom: 10px; }
.difference p { margin: 0; color: var(--muted); }
.home-block.flush { padding-left: 0; padding-right: 0; }

/* ---------- Intro screen and page-change curtain (after Dennis Snellenberg) ----------
   The <head> script sets .is-intro (first visit in a session) or .is-entering (arriving
   from an internal link) before the first paint; CSS lifts the curtain on its own, so the
   page never stays covered even if site.js fails. Leaving uses .curtain-leave from site.js. */
html.is-intro::before, html.is-entering::before {
  content: ""; position: fixed; z-index: 1000; left: 0; right: 0; top: 0; height: 112vh;
  background: var(--curtain); border-radius: 0 0 50% 50% / 0 0 12vh 12vh;
  animation: curtain-lift .55s cubic-bezier(.76,0,.24,1) forwards; pointer-events: none;
}
html.is-intro::after, html.is-entering::after {
  content: "\2022\2002" attr(data-curtain); position: fixed; z-index: 1001; left: 50%; top: 50%; transform: translate(-50%, -50%);
  color: #ecece9; font-family: var(--font); font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -0.01em; white-space: nowrap;
  animation: curtain-label .5s ease forwards; pointer-events: none;
}
html.is-intro::before { animation-delay: 1.3s; }
html.is-intro::after { animation-delay: 1.1s; }
html.is-entering::before { animation-delay: .05s; }
html.is-entering::after { animation-delay: 0s; }
html.is-entering::after { animation-duration: .3s; }
@keyframes curtain-lift { to { transform: translateY(-112vh); } }
@keyframes curtain-label { to { opacity: 0; transform: translate(-50%, -80%); } }
.curtain-leave {
  position: fixed; z-index: 1000; left: 0; right: 0; top: 0; height: 112vh;
  background: var(--curtain); border-radius: 50% 50% 0 0 / 12vh 12vh 0 0;
  transform: translateY(100vh); animation: curtain-rise .38s cubic-bezier(.76,0,.24,1) forwards;
  color: #ecece9;
}
/* The curtain ends at translateY(-12vh), so 50% + 6vh of its 112vh height is the middle of the screen,
   the same spot as the arriving label. */
.curtain-leave span { position: absolute; left: 50%; top: calc(50% + 6vh); transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--font); font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -0.01em; opacity: 0; animation: curtain-label-in .3s ease .25s forwards; }
@keyframes curtain-rise { to { transform: translateY(-12vh); } }
@keyframes curtain-label-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html.is-intro::before, html.is-intro::after, html.is-entering::before, html.is-entering::after, .curtain-leave { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(root) { animation-duration: 0s; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 24px; }

/* Home: what your agency gets (reuses the About difference list, four across) */
.difference.value { padding-top: 28px; }
@media (min-width: 900px) { .difference.value { grid-template-columns: repeat(4, 1fr); } }
.difference.value h3 { font-family: var(--display); font-weight: 700; font-stretch: 125%; text-transform: uppercase; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.05; }

/* ---------- Work page: a clean grid with search and filters ---------- */
.work-filters { display: grid; gap: 14px 32px; margin: 8px 0 36px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .work-filters { grid-template-columns: minmax(240px, 1fr) auto auto; align-items: center; } }
.work-search input {
  width: 100%; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); font: inherit; font-size: 15px;
}
.work-search input::placeholder { color: var(--muted); }
.work-search input:focus { outline: none; border-color: var(--fg); }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-label { font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.work-grid { display: grid; gap: 48px var(--gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-card { display: grid; gap: 6px; color: var(--fg); }
.work-card[hidden] { display: none; }
.work-media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: 5 / 4; margin-bottom: 10px; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.work-card:focus-visible .work-media img { transform: scale(1.04); }
@media (hover: hover) and (pointer: fine) { .work-card:hover .work-media img { transform: scale(1.04); } }
.work-title { font-family: var(--display); font-weight: 700; font-stretch: 125%; text-transform: uppercase; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.05; transition: color .25s ease; }
.work-card:hover .work-title { color: var(--brand); }
.work-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.work-empty { color: var(--muted); padding: 40px 0; }
.work-empty button { background: none; border: 0; padding: 0; font: inherit; color: var(--fg); text-decoration: underline; cursor: pointer; }

/* About: service-led sections */
a.about-portrait { display: block; color: var(--fg); }
a.about-portrait img { aspect-ratio: 16 / 9; transition: transform .6s var(--ease-out); }
a.about-portrait { overflow: visible; }
a.about-portrait span { display: block; margin-top: 10px; }
.help-cols .chips { margin-top: 4px; }
@media (min-width: 1100px) { .help-cols.three { grid-template-columns: repeat(3, 1fr); } }
.about-who p { margin: 0; max-width: 60ch; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--fg); }
.faq .service-title { font-size: clamp(18px, 1.9vw, 28px); line-height: 1.1; }
.faq .service-body { grid-template-columns: 1fr; }
.faq .service-body p { max-width: 60ch; }

/* ---------- Home: portfolio cards (after fabric.codebydennis.com) ----------
   Four dark cards in a row, split by hairlines. On hover the card lifts up and to the right and
   leaves an outline where it was; the label slides up and is replaced by its copy; the arrow slides
   out and back in; the name and title scramble; a small pill follows the cursor with the project name.
   Narrower screens: a sideways-scrolling row that snaps card by card. */
.pcards {
  --pc-gap: 20px; --pc-ease: .4s cubic-bezier(.75, 0, .25, 1);
  list-style: none; margin: 24px calc(-1 * var(--edge)) 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pcards::-webkit-scrollbar { display: none; }
@media (min-width: 601px) { .pcards { grid-auto-columns: 46%; } }
@media (min-width: 881px) { .pcards { grid-auto-columns: 32%; } }
@media (min-width: 1121px) { .pcards { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.pcard-cell { scroll-snap-align: start; padding: clamp(28px, 2.6vw, 40px) var(--pc-gap); border-right: 1px solid var(--line); }
.pcard-cell:first-child { border-left: 1px solid var(--line); }
@media (min-width: 1121px) { .pcard-cell:nth-child(4n) { border-right: 0; } .pcard-cell:first-child { border-left: 0; } .pcard-cell:nth-child(n+5) { border-top: 1px solid var(--line); } }
.pcard { position: relative; }
.pcard-link {
  position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between;
  min-height: clamp(300px, 26vw, 400px); background: #000; color: var(--fg); border-radius: 6px;
  transition: transform var(--pc-ease);
}
.pcard-outline { position: absolute; inset: 0; border: 1px solid rgba(159, 161, 163, .35); border-radius: 6px; opacity: 0; transition: opacity var(--pc-ease); pointer-events: none; }
.pcard-top { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 22px; }
.pcard-bubbles { height: 22px; }
.bubble { position: relative; display: inline-flex; overflow: hidden; padding: 4px 9px 5px; border-radius: 99px; background: var(--fg); color: #000; }
.bubble span { display: block; white-space: nowrap; font-family: var(--mono); font-size: 10.5px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; transition: transform var(--pc-ease); }
.bubble span.copy { position: absolute; left: 9px; top: 4px; transform: translateY(200%); }
.pcard-logo { display: flex; align-items: center; height: clamp(64px, 5.6vw, 84px); }
.pcard-logo-img { display: block; height: 62%; aspect-ratio: var(--w) / var(--h); max-width: 100%; background: #fff; -webkit-mask: var(--src) left center / contain no-repeat; mask: var(--src) left center / contain no-repeat; }
.pcard-wordmark { font-family: var(--display); font-weight: 700; font-stretch: 125%; text-transform: uppercase; font-size: clamp(20px, 1.7vw, 26px); line-height: 1; }
.pcard-info { display: grid; gap: 2px; font-size: 15px; }
.pcard-sub { color: rgba(236, 236, 233, .5); }
.pcard-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-top: 1px solid var(--line); font-size: 15px; }
.chevron { position: relative; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(159, 161, 163, .225); overflow: hidden; }
.chevron i { display: flex; width: 14px; transition: transform var(--pc-ease); }
.chevron i.copy { position: absolute; transform: translateX(-150%); }
.chevron svg { width: 100%; stroke: var(--fg); stroke-width: 1.8; }
@media (hover: hover) {
  .pcard-link:hover { transform: translate(7px, -7px); }
  .pcard-link:hover + .pcard-outline { opacity: 1; }
  .pcard-link:hover .bubble span { transform: translateY(-200%); }
  .pcard-link:hover .bubble span.copy { transform: translateY(0); }
  .pcard-link:hover .chevron i { transform: translateX(200%); }
  .pcard-link:hover .chevron i.copy { transform: translateX(0); }
}

/* The pill that follows the cursor over a project card */
.cursor-bubble {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; display: flex; align-items: center; gap: 6px;
  padding: 5px 12px 6px 11px; border-radius: 6px; background: #000; border: 1px solid rgba(159, 161, 163, .35);
  color: var(--fg); font-size: 13px; white-space: nowrap; opacity: 0; transition: opacity .2s var(--ease-out) .1s;
}
.cursor-bubble.is-active { opacity: 1; transition-delay: 0s; }
.cursor-bubble svg { width: 11px; stroke: var(--brand); stroke-width: 2.2; }
@media (hover: none) { .cursor-bubble { display: none; } }
@media (prefers-reduced-motion: reduce) { .pcard-link, .bubble span, .chevron i, .pcard-outline { transition: none; } }

/* ---------- Project pages: image mosaic ----------
   12 columns. Every image is cropped to the exact aspect of its slot (curate.py), so each row
   lines up: full (21:9), w8 (16:10) beside n4 (4:5), h6 pairs, t4 trios of square details,
   and inset (2:1, indented). Phones: one column, with h6 pairs and t4 trios kept side by side. */
.media.mosaic { grid-template-columns: repeat(12, 1fr); }
.media.mosaic figure { grid-column: span 12; overflow: hidden; border-radius: var(--radius); }
.media.mosaic img { display: block; width: 100%; height: auto; border-radius: 0; transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .media.mosaic figure:hover img { transform: scale(1.03); } }
.media.mosaic .h6 { grid-column: span 6; }
.media.mosaic .t4 { grid-column: span 4; }
@media (min-width: 760px) {
  .media.mosaic .w8 { grid-column: span 8; }
  .media.mosaic .n4 { grid-column: span 4; }
  .media.mosaic .inset { grid-column: 2 / span 10; margin: clamp(24px, 4vw, 64px) 0; }
}
@media (prefers-reduced-motion: reduce) { .media.mosaic img { transition: none; } }

/* Project pages at original proportions: duo pairs two images of the same shape, solo centres one */
@media (min-width: 760px) {
  .media.mosaic .duo { grid-column: span 6; }
  .media.mosaic .solo { grid-column: 4 / span 6; }
}

/* Home cards: the project image fades in behind the text on hover */
.pcard-link { overflow: hidden; isolation: isolate; }
.pcard-media { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity var(--pc-ease); pointer-events: none; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform .6s var(--ease-out); }
.pcard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.8) 100%); }
.pcard-bottom { background: transparent; }
@media (hover: hover) {
  .pcard-link:hover .pcard-media { opacity: 1; }
  .pcard-link:hover .pcard-media img { transform: scale(1); }
  .pcard-link:hover .pcard-sub { color: rgba(255,255,255,.8); }
}
/* Touch screens have no hover: the project image is simply there, with no motion. */
@media (hover: none) {
  .pcard-media { opacity: 1; transition: none; }
  .pcard-media img { transform: none; transition: none; }
  .pcard-sub { color: rgba(255,255,255,.8); }
}

/* A small dot that trails the cursor (site.js); pointer devices only */
.cursor-dot {
  position: fixed; left: 0; top: 0; z-index: 70; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 1px 6px rgba(0,0,0,.35); pointer-events: none;
  opacity: 0; transition: opacity .2s var(--ease-out);
}
.cursor-dot.is-visible { opacity: 1; }
@media (hover: none) { .cursor-dot { display: none; } }

/* ---------- About: the parahouse difference (after the pillar section on fabric.codebydennis.com) ----------
   Four quarters of a mark whose cut corners follow the slant of the P. The active quarter fills
   with a slowly turning brand-red gradient and a glow sits behind it; tabs and text change with it.
   Faint grid lines in quarters behind the section. */
.pillars {
  position: relative; margin-top: clamp(80px, 10vw, 150px); padding: clamp(56px, 7vw, 110px) var(--edge);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden;
  background:
    linear-gradient(90deg, transparent calc(25% - .5px), var(--line) 25%, transparent calc(25% + .5px), transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px), transparent calc(75% - .5px), var(--line) 75%, transparent calc(75% + .5px)),
    linear-gradient(180deg, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px));
}
.pillars::before {
  content: ""; position: absolute; z-index: 0; width: 70vmax; height: 70vmax; left: 0; top: 0;
  transform: translate(calc(var(--gx, 30vw) - 50%), calc(var(--gy, 40vh) - 50%)); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 38%, transparent), transparent);
  transition: transform 1.1s cubic-bezier(.65,0,.2,1);
}
.pillars-inner { position: relative; z-index: 1; display: grid; gap: clamp(40px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .pillars-inner { grid-template-columns: 1fr 1fr; } }
.pillars-visual svg { display: block; height: clamp(320px, 58vh, 560px); width: auto; max-width: 100%; margin: 0 auto; overflow: visible; }
.pq { cursor: pointer; transition: transform .7s cubic-bezier(.65,0,.2,1); }
.pq.is-active { transform: translate(var(--dx), var(--dy)); }
.pq-base { fill: #1a1a1a; stroke: rgba(255,255,255,.07); stroke-width: 1; stroke-linejoin: round; transition: fill .4s ease; }
.pq:hover .pq-base { fill: #262626; }
.pq-glow { opacity: 0; transition: opacity .7s ease; }
.pq.is-active .pq-glow { opacity: 1; }
.pillars-copy { display: grid; gap: 28px; align-content: center; }
.pillars-title { margin: 0; font-family: var(--display); font-weight: 700; font-stretch: 125%; text-transform: uppercase; font-size: clamp(30px, 4vw, 62px); line-height: .98; letter-spacing: -0.01em; max-width: 13ch; }
.pillar-tabs { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px clamp(18px, 2.4vw, 36px); }
.pillar-tabs button {
  position: relative; padding: 6px 0 10px; border: 0; background: none; cursor: pointer;
  font-family: var(--font); font-weight: 500; font-size: clamp(14px, 1.1vw, 16px); letter-spacing: .02em; text-transform: uppercase;
  color: var(--muted); transition: color .3s ease;
}
.pillar-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .4s cubic-bezier(.65,0,.2,1); }
.pillar-tabs button:hover { color: var(--fg); }
.pillar-tabs button[aria-selected="true"] { color: var(--fg); }
.pillar-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.pillar-text { margin: 0; max-width: 46ch; min-height: 5.2em; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; color: rgba(236,236,233,.75); animation: pillar-in .5s ease; }
@keyframes pillar-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .pillars::before, .pq, .pq-glow, .pillar-text { transition: none; animation: none; } }

/* ---------- Services: offers and FAQ ---------- */
.offer-group { padding-top: clamp(56px, 7vw, 100px); }
.offers { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 900px) { .offers { grid-template-columns: repeat(3, 1fr); } .offers.two { grid-template-columns: repeat(2, 1fr); } }
.offer { display: grid; align-content: start; gap: 14px; padding: clamp(22px, 2.4vw, 34px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.offer-title { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-family: var(--display); font-weight: 700; font-stretch: 125%; text-transform: uppercase; font-size: clamp(22px, 2.2vw, 32px); line-height: 1; }
.offer-tag { padding: 4px 9px 5px; border-radius: 99px; background: var(--brand); color: #fff; font-family: var(--mono); font-weight: 400; font-stretch: 100%; font-size: 10.5px; letter-spacing: .06em; }
.offer-lede { margin: 0; color: var(--muted); }
.offer-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.offer-list li { position: relative; padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line); }
.offer-list li::before { content: "+"; position: absolute; left: 2px; top: 9px; font-size: 18px; line-height: 1; color: var(--brand); }
.offer-note { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* FAQ: a plus on the right turns into a cross as the answer slides open (site.js animates the height) */
.faq-item summary { grid-template-columns: 1fr auto; align-items: center; }
.faq-item summary::after {
  content: ""; width: 18px; height: 18px; flex: none;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .45s cubic-bezier(.65,0,.2,1), color .3s ease;
}
.faq-item.is-open summary::after, .no-js .faq-item[open] summary::after { transform: rotate(135deg); color: var(--brand); }
.faq-item:not(.is-open) .service-title { transition: color .3s ease; }
/* Mouse clicks don't leave a focus box on FAQ questions; keyboard focus still shows one */
.faq-item summary:focus { outline: none; }
.faq-item summary:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; border-radius: 6px; }

/* Offer cards end with a direct ask */
.offer-cta { justify-self: start; margin-top: 6px; padding: 10px 16px 11px; border-radius: 99px; background: var(--brand); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; transition: background-color .25s ease, color .25s ease; }
.offer-cta:hover { background: var(--fg); color: var(--bg); }

/* Project result: the outcome, pulled out of the story */
.result { display: grid; gap: 6px; margin: clamp(24px, 3vw, 40px) 0 0; padding: 14px 0 0; border-top: 1px solid var(--brand); }
.result dt { font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); }
.result dd { margin: 0; max-width: 40ch; font-family: var(--display); font-weight: 700; font-stretch: 125%; text-transform: uppercase; font-size: clamp(18px, 1.8vw, 26px); line-height: 1.15; }
.intro-link { display: block; width: fit-content; margin-top: 14px; color: var(--fg); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: .35em; }
.intro-link:hover { color: var(--brand); }

/* Press feedback: pressable things give a little under the finger */
.button, .offer-cta, .pill, .filters button { transition-property: background-color, color, border-color, transform; transition-duration: .25s, .25s, .25s, .16s; transition-timing-function: ease, ease, ease, var(--ease-out); }
.button:active, .offer-cta:active, .pill:active, .filters button:active { transform: scale(.97); }
.round-button { transition: transform .16s var(--ease-out), background-color .25s ease; }

/* Selected work floats into place as it scrolls in (site.js sets the transform; after lusion.co) */
.pcard { transform-origin: 50% 0; }
