/* ============================================================================
   TAK Studio — Architecture & Design + AV & Technology divisions (light, warm) — merged by TAK Builder
   Built on the shared design-system tokens (assets/css/tokens.css) and the
   landing hub's component kit, re-scoped to .tak-arch. One voice with the hub:
   same type, terracotta, warm surfaces, buttons, links, header, footer.
   ============================================================================ */

/* ---- Marketing scale + local variables ------------------------------------- */
:root {
  --fs-hero:    clamp(2.5rem, 1.35rem + 4.9vw, 5rem);       /* 40 → 80px    */
  --fs-h1:      clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);      /* 35 → 54px    */
  --fs-h2:      clamp(1.95rem, 1.35rem + 2.4vw, 3rem);      /* 31 → 48px    */
  --fs-h3:      clamp(1.35rem, 1.12rem + 0.85vw, 1.75rem);  /* 21.6 → 28px  */
  --fs-lead:    clamp(1.125rem, 1.02rem + 0.46vw, 1.375rem);/* 18 → 22px    */
  --fs-body:    1.0625rem;                                   /* 17px         */
  --fs-meta:    0.8125rem;                                   /* 13px mono    */

  --lh-display: 1.07;
  --lh-body:    1.62;

  --wrap-max: 1240px;
  --gutter:   clamp(1.25rem, 4.2vw, 3.75rem);
  --header-h: 76px;
  --section-py: clamp(4.5rem, 8.5vw, 8.5rem);

  --hairline: color-mix(in srgb, var(--text-primary) 14%, transparent);
  --hairline-soft: color-mix(in srgb, var(--text-primary) 8%, transparent);
  --ink-950: #0F0D0B;

  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

:root[data-theme="light"] {
  --surface-base: #F8F9FA;   /* Portal surface (cool off-white) — was warm cream #FBFAF7 */
  --surface-raised: #FFFFFF;
  --surface-card: #FFFFFF;
  --surface-elevated: #F3F1EC;
  --hairline: color-mix(in srgb, #2B2620 16%, transparent);
  --hairline-soft: color-mix(in srgb, #2B2620 9%, transparent);
  /* Warm ink + terracotta text matching the Portal app + design tokens (#E46C43 light-mode accent). */
  --text-primary: #1A1512;
  --accent-text: #E46C43;   /* Portal's exact light --accent-text (for accent TEXT); --accent #FF7C4F stays for fills */
}

/* Guard: the Rebuilto/Elementor reskin (mu-plugin tak-override.css) repurposes
   --accent as a heading ink and loads after tech.css. Reassert the brand accent
   on the tech subtree, html-qualified so it outranks the ambient :root token. */
html body.tak-arch, html body.tak-tech { --accent: #FF7C4F; }

/* ---- Reset / base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  background-color: var(--surface-base);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 { font-weight: 400; line-height: var(--lh-display); text-wrap: balance; color: var(--text-primary); }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }

.font-display { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: 0.02em; font-feature-settings: "tnum" 1; }

/* ---- Layout primitives ----------------------------------------------------- */
.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap-max)); margin-inline: auto; }
.wrap--wide { width: min(100% - (var(--gutter) * 2), 1360px); }
.wrap--narrow { width: min(100% - (var(--gutter) * 2), 900px); }
.section { padding-block: var(--section-py); }
.section--raised { background: var(--surface-raised); }
.section--elevated { background: var(--surface-elevated); }
.nowrap { white-space: nowrap; }
section[id], #main { scroll-margin-top: calc(var(--header-h) + 14px); }

.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -120%);
  z-index: var(--z-tooltip, 600); background: var(--accent); color: var(--on-accent);
  padding: 10px 18px; border-radius: 0 0 var(--radius-button) var(--radius-button);
  font-weight: 600; transition: transform var(--duration-fast) var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }
.plus { display: inline-block; color: var(--accent); font-weight: 700; transform: translateY(0.02em); }

/* ---- Section headers ------------------------------------------------------- */
.sec-head { max-width: 46ch; display: flex; flex-direction: column; gap: var(--space-4); }
.sec-head--between { max-width: none; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }
.sec-head h2 { font-family: var(--font-display); font-size: var(--fs-h2); letter-spacing: -0.015em; }
.sec-head p { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-secondary); max-width: 56ch; }
.sec-kicker { display: inline-flex; align-items: center; gap: 0.55em; color: var(--accent-text); font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: 0.04em; }
.sec-kicker::before { content: ""; width: 1.6em; height: 1px; background: var(--accent); opacity: 0.6; }

/* ---- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.4em; border-radius: var(--radius-button); border: 1px solid transparent;
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.005em; line-height: 1;
  min-height: 46px; white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-standard) var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 0 rgba(0,0,0,0.15); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); transform: translateY(-1px); box-shadow: var(--elevation-accent); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-lg { min-height: 52px; padding-inline: 1.65em; font-size: 1rem; }
.btn svg { flex: none; }
/* The parent (Rebuilto) theme colors bare <a> and a:hover outranks .btn-primary,
   flipping our primary-button text to the fill colour on hover. Pin it for every
   state, above that specificity. */
.tak-arch .btn-primary,
.tak-arch .btn-primary:link,
.tak-arch .btn-primary:visited,
.tak-arch .btn-primary:hover,
.tak-arch .btn-primary:focus,
.tak-arch .btn-primary:active { color: var(--on-accent); }
.tak-tech .btn-primary,
.tak-tech .btn-primary:link,
.tak-tech .btn-primary:visited,
.tak-tech .btn-primary:hover,
.tak-tech .btn-primary:focus,
.tak-tech .btn-primary:active { color: var(--on-accent); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; color: var(--text-primary); position: relative; width: fit-content; }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 1.6em; bottom: -3px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--duration-standard) var(--ease-out); }
.link-arrow:hover { color: var(--accent-text); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow svg { transition: transform var(--duration-standard) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- Header / nav ---------------------------------------------------------- */
/* Default (interior pages, no dark hero): a solid, frosted light header. */
.site-header {
  position: sticky; top: 0; z-index: var(--z-topbar, 200); height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--surface-base) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--hairline-soft);
  transition: background-color var(--duration-standard) var(--ease-out),
              border-color var(--duration-standard) var(--ease-out);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; display: block; }
.brand img.brand__logo--dark { display: none; }   /* dark-ink lockup is the default (light headers) */

.nav { display: flex; align-items: center; gap: clamp(0.5rem, 1.6vw, 1.7rem); }
.nav-link { position: relative; font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); padding: 0.4em 0.15em; transition: color var(--duration-fast) var(--ease-out); white-space: nowrap; }
.nav-link:hover { color: var(--text-primary); }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.35em; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--duration-standard) var(--ease-out); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link--ext { color: var(--text-tertiary); display: inline-flex; align-items: center; gap: 0.28em; white-space: nowrap; }
.nav-link--ext svg { opacity: 0.7; flex-shrink: 0; }
.nav-cta { margin-left: 0.4rem; }
.nav-toggle { display: none; }

/* Home only: a dark photo hero sits behind the header. Make it transparent at the
   top with a light logo + light nav; swap to the solid treatment once scrolled. */
body.has-hero .site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
body.has-hero .site-header[data-scrolled="true"] {
  background: color-mix(in srgb, var(--surface-base) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: var(--hairline-soft);
}
body.has-hero .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .brand__logo--light { display: none; }
body.has-hero .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .brand__logo--dark { display: block; }
body.has-hero .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .nav-link { color: color-mix(in srgb, #F5F0E8 82%, transparent); }
body.has-hero .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .nav-link--ext { color: color-mix(in srgb, #F5F0E8 64%, transparent); }
body.has-hero .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .nav-link:hover { color: #F5F0E8; }

/* ---- Hero (home — single AV photo, full-bleed) ----------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  min-height: min(900px, 100svh);
  display: flex; flex-direction: column; justify-content: center;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--ink-950); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(96deg, var(--ink-950) 0%, color-mix(in srgb, var(--ink-950) 80%, transparent) 30%, color-mix(in srgb, var(--ink-950) 26%, transparent) 58%, transparent 82%),
    linear-gradient(0deg, color-mix(in srgb, var(--ink-950) 72%, transparent) 0%, transparent 44%),
    linear-gradient(180deg, color-mix(in srgb, var(--ink-950) 58%, transparent) 0%, transparent 24%);
}
.hero__inner { display: flex; flex-direction: column; gap: clamp(1.35rem, 2.3vw, 2rem); padding-block: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)) clamp(2rem, 5vw, 4rem); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 0.55em; color: color-mix(in srgb, #F5F0E8 78%, transparent); }
.hero h1 { font-family: var(--font-display); font-size: var(--fs-hero); letter-spacing: -0.018em; max-width: 19ch; color: #F8F4EC; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: var(--fs-lead); line-height: 1.5; color: color-mix(in srgb, #F5F0E8 82%, transparent); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: 0.3rem; }
.hero .btn-ghost { color: #F5F0E8; border-color: rgba(245, 240, 232, 0.35); }
.hero .btn-ghost:hover { color: #F8F4EC; border-color: var(--accent); }
.hero__cap {
  position: absolute; z-index: 1; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 1.75rem);
  display: inline-block; max-width: min(70vw, 520px); /* inline-block, not -flex: text-overflow is inert on a flex container */
  padding: 0.5em 0.85em; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--ink-950) 55%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245,240,232,0.16);
  color: #F5F0E8; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---- Page hero (interior masthead) ----------------------------------------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.75rem, 4vw, 3rem); border-bottom: 1px solid var(--hairline-soft); }
.page-hero .wrap { display: flex; flex-direction: column; gap: var(--space-4); }
.page-hero h1 { font-family: var(--font-display); font-size: var(--fs-h1); letter-spacing: -0.02em; max-width: 20ch; }
.page-hero h1 em { font-style: normal; color: var(--accent-text); }   /* Portal accent-text #E46C43 (accent-colored text on light) */
.page-hero__lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-secondary); max-width: 62ch; }

/* ---- Services overview (home) — editorial spec rows ------------------------ */
.svc-list { margin-top: clamp(2rem, 4vw, 3.25rem); }
.svc-row { display: grid; grid-template-columns: 1fr auto; gap: clamp(0.75rem, 2vw, 2.5rem); align-items: center; padding: clamp(1.6rem, 3vw, 2.4rem) 0; border-top: 1px solid var(--hairline-soft); }
.svc-row:last-child { border-bottom: 1px solid var(--hairline-soft); }
.svc-row__head { display: flex; align-items: center; gap: 0.6em; margin-bottom: var(--space-3); }
.svc-row__head .plus { font-size: 1.05em; line-height: 1; }
.svc-row h3 { font-family: var(--font-display); font-size: var(--fs-h3); letter-spacing: -0.01em; }
.svc-row p { color: var(--text-secondary); max-width: 64ch; }
.svc-row__tags { display: flex; flex-wrap: wrap; gap: 0.4em 0.9em; margin-top: var(--space-3); color: var(--text-tertiary); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.02em; }
.svc-row__tags li { display: inline-flex; align-items: center; }
.svc-row__tags li:not(:last-child)::after { content: "·"; margin-left: 0.9em; color: var(--accent); opacity: 0.7; }
.svc-row__link { justify-self: end; }

/* ---- Service detail (services page) — alternating media + copy -------------- */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 6vw, 5.5rem); border-top: 1px solid var(--hairline-soft); }
.svc-detail:first-of-type { border-top: none; padding-top: clamp(1rem, 3vw, 2rem); }
.svc-detail__media { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--hairline); background: var(--surface-card); }
.svc-detail__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.svc-detail:nth-of-type(even) .svc-detail__media { order: -1; }
.svc-detail__kicker { color: var(--accent-text); font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: 0.05em; }
.svc-detail__body h2 { font-family: var(--font-display); font-size: var(--fs-h2); letter-spacing: -0.015em; margin: var(--space-3) 0 var(--space-4); }
.svc-detail__body > p { color: var(--text-secondary); font-size: var(--fs-lead); line-height: 1.55; max-width: 52ch; }
.svc-detail__deliv { margin-top: var(--space-5); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-5); }
.svc-detail__deliv li { display: grid; grid-template-columns: auto 1fr; gap: 0.6em; align-items: start; color: var(--text-secondary); font-size: 0.95rem; }
.svc-detail__deliv li::before { content: "+"; color: var(--accent); font-weight: 700; line-height: 1.3; }

/* ---- Selected work — natural-aspect masonry gallery ------------------------ */
.work__grid { columns: 3 300px; column-gap: clamp(1rem, 2.4vw, 1.75rem); margin-top: clamp(2rem, 4vw, 3rem); }
/* Three columns balance four items as 2 + 2 + 0 (and two as 1 + 1 + 0), leaving the last
   column empty; two columns keep them a block. Pictures use the card-half sizes slot. */
.work__grid:has(> :nth-child(2):last-child), .work__grid:has(> :nth-child(4):last-child) { columns: 2 300px; }
.work__item { break-inside: avoid; margin-bottom: clamp(1rem, 2.4vw, 1.75rem); border: 1px solid var(--hairline); border-radius: var(--radius-card); overflow: hidden; background: var(--surface-card); }
.work__media { overflow: hidden; }
.work__media img { width: 100%; height: auto; display: block; transition: transform 0.9s var(--ease-out); }
.work__item:hover .work__media img { transform: scale(1.035); }
.work__cap { padding: var(--space-3) var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: 0.25em; }
.work__cap b { font-weight: 600; font-size: 0.98rem; letter-spacing: -0.005em; }
.work__cap span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--text-tertiary); text-transform: uppercase; }

/* ---- Projects grid (architecture: image + real metadata) ---- */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.proj-card { display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: var(--radius-card); overflow: hidden; background: var(--surface-card); }
.proj-card__media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; }
.proj-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease-out); }
.proj-card:hover .proj-card__media img { transform: scale(1.04); }
.proj-card__tag { position: absolute; top: var(--space-3); left: var(--space-3); background: rgba(20, 18, 16, 0.78); color: #F5F0E8; padding: 0.34em 0.72em; border-radius: var(--radius-pill); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; }
.proj-card__body { padding: clamp(1.1rem, 2vw, 1.5rem); display: flex; flex-direction: column; gap: 0.5em; }
.proj-card__body h2, .proj-card__body h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
.proj-card__meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--accent-text); text-transform: uppercase; }
.proj-card__body > p:last-child { color: var(--text-secondary); font-size: 0.98rem; line-height: 1.55; }

/* Card as link — bigger hit target, real affordance for the hover-zoom. */
a.proj-card { color: inherit; text-decoration: none; transition: border-color var(--duration-standard) var(--ease-out), box-shadow var(--duration-standard) var(--ease-out), transform var(--duration-standard) var(--ease-out); }
a.proj-card:hover { border-color: color-mix(in srgb, var(--accent) 38%, var(--hairline)); box-shadow: 0 14px 30px -16px rgba(20, 18, 16, 0.28); transform: translateY(-2px); }
a.proj-card:hover .proj-card__body :is(h2, h3) { color: var(--accent-text); }
a.proj-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.proj-card__cue { margin-top: var(--space-2); display: inline-flex; align-items: center; gap: 0.4em; color: var(--accent-text); font-weight: 600; font-size: 0.9rem; }
.proj-card__cue svg { transition: transform var(--duration-standard) var(--ease-out); }
a.proj-card:hover .proj-card__cue svg { transform: translateX(4px); }

/* ---- Project detail page --------------------------------------------------- */
.proj-detail__back { display: inline-flex; align-items: center; gap: 0.5em; color: var(--text-tertiary); font-size: 0.9rem; font-weight: 500; transition: color var(--duration-fast) var(--ease-out); }
.proj-detail__back:hover { color: var(--accent-text); }
.proj-detail__back svg { transition: transform var(--duration-standard) var(--ease-out); }
.proj-detail__back:hover svg { transform: translateX(-3px); }
.proj-detail__meta { color: var(--accent-text); text-transform: uppercase; }
.proj-detail__media { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--hairline); background: var(--surface-card); }
.proj-detail__media img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.proj-detail__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); margin-top: clamp(2rem, 4vw, 3.25rem); align-items: start; }
.proj-detail__prose { max-width: 60ch; }

.facts { display: flex; flex-direction: column; }
.facts__row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--hairline-soft); }
.facts__row:last-child { border-bottom: 1px solid var(--hairline-soft); }
.facts__row dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-tertiary); }
.facts__row dd { color: var(--text-primary); font-size: 0.95rem; }
.facts__scope { margin-top: var(--space-5); }
.facts__label { color: var(--text-tertiary); text-transform: uppercase; margin-bottom: var(--space-3); }
.facts__scope ul { display: flex; flex-direction: column; gap: var(--space-2); }
.facts__scope li { display: grid; grid-template-columns: auto 1fr; gap: 0.6em; align-items: start; color: var(--text-secondary); font-size: 0.95rem; }
.facts__scope li::before { content: "+"; color: var(--accent); font-weight: 700; }

.proj-next__link { display: inline-flex; flex-direction: column; gap: 0.35em; width: fit-content; }
.proj-next__eyebrow { color: var(--text-tertiary); text-transform: uppercase; }
.proj-next__title { font-family: var(--font-display); font-size: var(--fs-h3); letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 0.5em; color: var(--text-primary); transition: color var(--duration-fast) var(--ease-out); }
.proj-next__link:hover .proj-next__title { color: var(--accent-text); }
.proj-next__title svg { transition: transform var(--duration-standard) var(--ease-out); }
.proj-next__link:hover .proj-next__title svg { transform: translateX(4px); }

/* ---- Gallery — swipeable picture row ---------------------------------------
   Scrolls with the wheel, a swipe, or the keyboard on its own; site.js only
   adds the two arrow buttons on top of that. */
.gallery-sec .sec-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.gallery { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-3); }
.gallery__track {
  flex: 1 0 100%; display: flex; align-items: stretch; gap: clamp(0.75rem, 1.8vw, 1.25rem);
  list-style: none; padding: 0 0 var(--space-3); margin: 0;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: var(--hairline) transparent;
}
/* Natural shape means the pictures are genuinely different heights: hang them
   from the top instead of stretching every card to the tallest. */
.gallery__track:has(.gallery__media--natural) { align-items: flex-start; }
.gallery__track::-webkit-scrollbar { height: 6px; }
.gallery__track::-webkit-scrollbar-track { background: transparent; }
.gallery__track::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: var(--radius-pill); }
.gallery__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-card); }
.gallery__item { flex: 0 0 clamp(260px, 62vw, 520px); scroll-snap-align: start; }
.gallery__fig { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: var(--radius-card); overflow: hidden; background: var(--surface-card); }
.gallery__media { overflow: hidden; }
.gallery__media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gallery__media--3-2 { aspect-ratio: 3 / 2; }
.gallery__media--4-3 { aspect-ratio: 4 / 3; }
.gallery__media--16-9 { aspect-ratio: 16 / 9; }
.gallery__media--natural img { height: auto; }
.gallery__cap { padding: var(--space-3) var(--space-4) var(--space-4); color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.gallery__nav {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--hairline); border-radius: var(--radius-pill); background: var(--surface-card);
  color: var(--text-secondary); cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.gallery__nav:hover:not(:disabled) { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 38%, var(--hairline)); }
.gallery__nav:disabled { opacity: 0.35; cursor: default; }
.gallery__nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Stacked: one picture per row with its caption beside it, the sides alternating
   down the page. No track, no arrows — site.js never sees it (no [data-gallery]).
   The row spans the full wrap, a picture column plus a text column, so the picture
   is narrower than a full-bleed one while none of the wrap is left empty. The split
   follows the picture's own shape, which sections/gallery/template.php stamps on the
   figure, so a portrait photo or a tall drawing gets a column that fits it instead of
   a band of empty page. Collapses to one column at 1024px, with .svc-detail. Keep the
   `gallery-stacked-*` slots in Helpers::SIZES in step with the columns here. */
.gallery--stacked { display: grid; justify-content: normal; gap: clamp(3rem, 6vw, 4.5rem); }
.gallery--stacked .gallery__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem); gap: clamp(1.75rem, 3.2vw, 3rem); align-items: center; width: 100%; }
/* Shapes a wide column would leave standing in empty page: give the picture a column
   it can fill, and hand the rest back to the text. Exactly one of these is stamped on
   every row, so none of them ever has to out-specify another. */
.gallery--stacked .gallery__row--square { grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); }
.gallery--stacked .gallery__row--portrait { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); }
.gallery--stacked .gallery__row--tall { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
/* No caption — nothing to sit beside, so the picture keeps the old single column. */
.gallery--stacked .gallery__row--solo { grid-template-columns: minmax(0, 1fr); max-width: 900px; margin-inline: auto; }
/* Sides alternate. The track list has to be mirrored as well as the cells placed:
   these columns are asymmetric, and `order` alone feeds auto-placement rather than
   moving the tracks — it would hand the picture the text's width and vice versa.
   Placing explicitly also leaves the DOM as figure → picture → figcaption. */
.gallery--stacked .gallery__row--wide:nth-of-type(even) { grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr); }
.gallery--stacked .gallery__row--square:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 34rem); }
.gallery--stacked .gallery__row--portrait:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); }
.gallery--stacked .gallery__row--tall:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); }
.gallery--stacked .gallery__row:nth-of-type(even) .gallery__media { grid-column: 2; grid-row: 1; }
.gallery--stacked .gallery__row:nth-of-type(even) .gallery__note { grid-column: 1; grid-row: 1; }
.gallery--stacked .gallery__row--solo:nth-of-type(even) .gallery__media { grid-column: 1; }
.gallery--stacked .gallery__media { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--hairline); background: var(--surface-card); max-width: 100%; }
/* The column fills, and its shape already bounds the height — so no height cap here
   and nothing to letterbox. `width: auto` would be wrong: a srcset picture then takes
   its density-corrected intrinsic size, i.e. whatever `sizes` says, and leaves the
   rest of the column empty. The column drives the width; `sizes` follows it. */
.gallery--stacked .gallery__media--natural img { display: block; width: 100%; height: auto; }
.gallery--stacked .gallery__note { max-width: 60ch; color: var(--text-secondary); font-size: 1.0625rem; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) {
  .gallery__track { scroll-behavior: auto; }
}

/* ---- Proof: stats + testimonial ---- */
.proof__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.stats { display: flex; flex-direction: column; gap: clamp(1.1rem, 2.2vw, 1.75rem); list-style: none; }
.stat { display: flex; flex-direction: column; gap: 0.15em; border-top: 1px solid var(--hairline-soft); padding-top: clamp(0.75rem, 1.5vw, 1.1rem); }
.stat__figure { font-family: var(--font-display); font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.85rem); line-height: 1; color: var(--accent-text); letter-spacing: -0.01em; }
.stat__label { font-size: 0.95rem; color: var(--text-secondary); }
.quote { display: flex; flex-direction: column; gap: var(--space-4); max-width: 40ch; }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.35rem, 1.05rem + 1.5vw, 1.95rem); line-height: 1.32; letter-spacing: -0.01em; color: var(--text-primary); }
.quote__by { display: flex; flex-direction: column; gap: 0.1em; }
.quote__author { font-weight: 600; }
.quote__role { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.03em; color: var(--text-tertiary); text-transform: uppercase; }

/* ---- Process (concept → commissioning) — a real sequence ------------------- */
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; gap: clamp(1.25rem, 3vw, 2.25rem); margin-top: clamp(2rem, 4vw, 3rem); counter-reset: step; }
.process__step { padding-top: var(--space-4); border-top: 2px solid var(--accent); }
.process__num { font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: 0.08em; color: var(--accent-text); }
.process__step h3 { font-size: 1.15rem; font-weight: 600; font-family: var(--font-body); letter-spacing: -0.01em; margin: var(--space-3) 0 var(--space-2); }
.process__step p { color: var(--text-secondary); font-size: 0.95rem; }

/* ---- Integration ("why one studio") ---------------------------------------- */
.why__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.why__lead h2 { font-family: var(--font-display); font-size: var(--fs-h2); letter-spacing: -0.015em; margin-bottom: var(--space-5); }
.why__lead h2 em { font-style: normal; color: var(--accent-text); }   /* Portal accent-text #E46C43 (accent-colored text on light) */
.why__lead p { color: var(--text-secondary); font-size: var(--fs-lead); line-height: 1.55; max-width: 46ch; }
.why__list { display: flex; flex-direction: column; }
.why__item { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid var(--hairline-soft); }
.why__item:last-child { border-bottom: 1px solid var(--hairline-soft); }
.why__num { font-size: 1.5rem; font-weight: 700; line-height: calc(1.15rem * var(--lh-display)); color: var(--accent); }
.why__item h3 { font-size: 1.15rem; font-weight: 600; font-family: var(--font-body); margin-bottom: var(--space-2); letter-spacing: -0.01em; }
.why__item p { color: var(--text-secondary); font-size: 1rem; }

/* ---- Sister-division cross-link band --------------------------------------- */
.sister { border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); background: var(--surface-raised); }
.sister .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
.sister__text { max-width: 60ch; }
.sister__text .sec-kicker { margin-bottom: var(--space-3); }
.sister__text h2 { font-family: var(--font-display); font-size: var(--fs-h3); letter-spacing: -0.01em; }
.sister__text p { color: var(--text-secondary); margin-top: var(--space-2); }

/* ---- Prose (about / rich text) --------------------------------------------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--space-4); }
.prose > h2 { font-family: var(--font-display); font-size: var(--fs-h3); letter-spacing: -0.01em; margin-top: var(--space-7); }
.prose p { color: var(--text-secondary); font-size: 1.0625rem; line-height: 1.7; }
.prose p.prose__lead { font-size: var(--fs-lead); color: var(--text-primary); line-height: 1.55; }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose em { font-style: normal; color: var(--accent-text); }
.prose a { color: var(--text-primary); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 0.2em; transition: color var(--duration-fast) var(--ease-out); }
.prose a:hover { color: var(--accent-text); }

/* ---- FAQ (native <details> accordion) -------------------------------------- */
.faq__list { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.faq__item { border-top: 1px solid var(--hairline); }
.faq__item:last-child { border-bottom: 1px solid var(--hairline); }
.faq__q { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: clamp(1.1rem, 2.2vw, 1.5rem) 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent-text); }
.faq__icon { flex: none; color: var(--accent); font-size: 1.5rem; line-height: 0.9; transition: transform var(--duration-standard) var(--ease-out); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 0 clamp(1.1rem, 2.2vw, 1.5rem); color: var(--text-secondary); max-width: 68ch; }
.faq__a p + p { margin-top: var(--space-3); }
.faq__a a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Contact --------------------------------------------------------------- */
.contact { background: var(--surface-elevated); color: var(--text-primary); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact__intro h2 { font-family: var(--font-display); font-size: var(--fs-h2); letter-spacing: -0.015em; color: var(--text-primary); }
.contact__intro p { color: var(--text-secondary); font-size: var(--fs-lead); line-height: 1.55; max-width: 42ch; margin-top: var(--space-4); }
.contact__direct { margin-top: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: var(--space-3); }
.contact__direct a { display: inline-flex; align-items: center; gap: 0.6em; font-size: 1.15rem; color: var(--text-primary); width: fit-content; }
.contact__direct a:hover { color: var(--accent-text); }
.contact__direct .ico { color: var(--accent); }
.contact__meta { margin-top: var(--space-5); color: var(--text-tertiary); font-family: var(--font-mono); font-size: var(--fs-meta); }

.form { display: grid; gap: var(--space-4); background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; gap: 0.45em; }
.field label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--text-primary); background: var(--surface-base);
  border: 1px solid var(--hairline); border-radius: var(--radius-input); padding: 0.75em 0.9em; width: 100%;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-tertiary); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form__note { color: var(--text-tertiary); font-size: 0.8rem; }
.form__privacy { line-height: 1.5; }
.form__privacy a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 0.2em; }
.form__privacy a:hover { color: var(--accent-text); }
.form__status { font-size: 0.95rem; line-height: 1.5; color: var(--text-secondary); }
.form__status:empty { display: none; }
.form__status[data-state="ok"] { color: var(--status-active-text); }
.form__status[data-state="error"] { color: var(--status-flagged-text); }
.form[aria-busy="true"] .btn { opacity: 0.7; cursor: progress; }

/* ---- Footer ---------------------------------------------------------------- */
.site-footer { background: var(--surface-raised); border-top: 1px solid var(--hairline-soft); padding-block: clamp(3rem, 6vw, 5rem) var(--space-6); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(1.75rem, 4vw, 3rem); }
.footer__brand img { height: 34px; width: auto; margin-bottom: var(--space-4); }
.footer__brand p { color: var(--text-secondary); max-width: 34ch; font-size: 0.95rem; }
.footer__col { display: flex; flex-direction: column; }
.footer__col h4 { font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: 0.04em; color: var(--text-tertiary); margin-bottom: var(--space-4); text-transform: uppercase; }
.footer__col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col a { color: var(--text-secondary); font-size: 0.95rem; transition: color var(--duration-fast) var(--ease-out); }
.footer__col a:hover { color: var(--accent-text); }
.footer__bottom { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: var(--space-5); border-top: 1px solid var(--hairline-soft); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; justify-content: space-between; color: var(--text-tertiary); font-size: 0.85rem; }
.footer__bottom nav { display: flex; gap: var(--space-5); }
.footer__bottom a:hover { color: var(--accent-text); }
/* The "Cookie settings" control is a button (the consent plugin listens for one), drawn like its sibling links. */
.footer__text-button { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; }
.footer__text-button:hover { color: var(--accent-text); }

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .why__grid { grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem); }
  .proj-detail__grid { grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem); }
  .contact__grid { grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem); }
  .proof__grid { grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem); }
  .svc-detail { grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); }
  .svc-detail:nth-of-type(even) .svc-detail__media { order: 0; }
  /* Too narrow for a picture beside its caption: back to picture, then caption. The
     row placement has to be released as well as the columns collapsed — both cells
     are pinned to row 1 above this breakpoint and would otherwise overlap. */
  .gallery--stacked .gallery__row,
  .gallery--stacked .gallery__row--wide:nth-of-type(even),
  .gallery--stacked .gallery__row--square, .gallery--stacked .gallery__row--square:nth-of-type(even),
  .gallery--stacked .gallery__row--portrait, .gallery--stacked .gallery__row--portrait:nth-of-type(even),
  .gallery--stacked .gallery__row--tall, .gallery--stacked .gallery__row--tall:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .gallery--stacked .gallery__row:nth-of-type(even) .gallery__media,
  .gallery--stacked .gallery__row:nth-of-type(even) .gallery__note { grid-column: 1; grid-row: auto; }
  /* One column now, so a tall picture needs the height cap back. */
  .gallery--stacked .gallery__media { display: flex; justify-content: center; }
  .gallery--stacked .gallery__media--natural img { width: auto; max-width: 100%; max-height: 60vh; object-fit: contain; }
}

/* Mobile nav (hamburger) */
@media (max-width: 960px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-3) var(--gutter) var(--space-5);
    background: var(--surface-raised); border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-lg); transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out), visibility 0s linear var(--duration-fast);
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-link { padding: 0.9em 0; font-size: 1.05rem; color: var(--text-primary); border-bottom: 1px solid var(--hairline-soft); }
  body.has-hero .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .nav-link { color: var(--text-primary); }
  .nav-link::after { display: none; }
  .nav-link--ext { color: var(--text-secondary); }
  .nav-cta { margin: var(--space-4) 0 0; }
  .btn.nav-cta { width: 100%; }
  /* body.has-hero repeated so this outranks the transparent-hero header rule above. */
  .site-header[data-menu-open="true"],
  body.has-hero .site-header[data-menu-open="true"] { background: color-mix(in srgb, var(--surface-base) 92%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom-color: var(--hairline-soft); }
  .nav-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--hairline); border-radius: var(--radius-button); color: var(--text-primary); }
  body.has-hero .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .nav-toggle { color: #F5F0E8; border-color: rgba(245,240,232,0.3); }
  .nav-toggle .bar { display: block; width: 18px; height: 1.6px; background: currentColor; transition: transform var(--duration-fast) var(--ease-out), opacity var(--duration-fast); }
  .nav-toggle .bar + .bar { margin-top: 4px; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }
  .process__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .svc-row { grid-template-columns: 1fr; gap: var(--space-4); }
  .svc-row__link { justify-self: start; }
  .svc-detail__deliv { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero h1 { max-width: 22ch; }
  .hero__cap { display: none; }
}

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

@media (prefers-reduced-motion: reduce) {
  .work__media img, .proj-card__media img, .link-arrow svg, .link-arrow::after, .nav-link::after, .faq__icon, .btn,
  a.proj-card, .proj-card__cue svg, .proj-detail__back svg, .proj-next__title svg { transition: none; }
  .work__item:hover .work__media img, .proj-card:hover .proj-card__media img,
  a.proj-card:hover, a.proj-card:hover .proj-card__cue svg, .proj-detail__back:hover svg, .proj-next__link:hover .proj-next__title svg { transform: none; }
}

/* ============================================================================
   Tech-only blocks (from tech.css) — work items as links, work detail, next.
   ============================================================================ */
/* Work item as link — bigger hit target, real affordance for the hover-zoom. */
a.work__item { display: block; color: inherit; text-decoration: none; transition: border-color var(--duration-standard) var(--ease-out), box-shadow var(--duration-standard) var(--ease-out), transform var(--duration-standard) var(--ease-out); }
a.work__item:hover { border-color: color-mix(in srgb, var(--accent) 38%, var(--hairline)); box-shadow: 0 14px 30px -16px rgba(20, 18, 16, 0.28); transform: translateY(-2px); }
a.work__item:hover .work__cap b { color: var(--accent-text); }
a.work__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.work__cue { display: inline-flex; align-items: center; gap: 0.4em; margin-top: var(--space-2); color: var(--accent-text); font-weight: 600; font-size: 0.85rem; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.work__cue svg { transition: transform var(--duration-standard) var(--ease-out); }
a.work__item:hover .work__cue svg { transform: translateX(4px); }

/* ---- Work detail page ------------------------------------------------------ */
.work-detail__back { display: inline-flex; align-items: center; gap: 0.5em; color: var(--text-tertiary); font-size: 0.9rem; font-weight: 500; transition: color var(--duration-fast) var(--ease-out); }
.work-detail__back:hover { color: var(--accent-text); }
.work-detail__back svg { transition: transform var(--duration-standard) var(--ease-out); }
.work-detail__back:hover svg { transform: translateX(-3px); }
.work-detail__media { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--hairline); background: var(--surface-card); }
.work-detail__media img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.work-detail__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); margin-top: clamp(2rem, 4vw, 3.25rem); align-items: start; }
.work-detail__prose { max-width: 60ch; }

.work-next__link { display: inline-flex; flex-direction: column; gap: 0.35em; width: fit-content; }
.work-next__eyebrow { color: var(--text-tertiary); text-transform: uppercase; }
.work-next__title { font-family: var(--font-display); font-size: var(--fs-h3); letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 0.5em; color: var(--text-primary); transition: color var(--duration-fast) var(--ease-out); }
.work-next__link:hover .work-next__title { color: var(--accent-text); }
.work-next__title svg { transition: transform var(--duration-standard) var(--ease-out); }
.work-next__link:hover .work-next__title svg { transform: translateX(4px); }

@media (max-width: 1024px) {
  .work-detail__grid { grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem); }
}
@media (prefers-reduced-motion: reduce) {
  a.work__item, .work__cue svg, .work-detail__back svg, .work-next__title svg { transition: none; }
  a.work__item:hover, a.work__item:hover .work__cue svg, .work-detail__back:hover svg, .work-next__link:hover .work-next__title svg { transform: none; }
}
