/* Stray Dog® — site stylesheet (PHP port).
   Token layer + every public-site component, de-moduled from the Next build.
   Design system: paper base, ink hairlines, radius 0 (pills excepted),
   Archivo 400/500/600. */

:root {
  --paper: #FFFFFF;
  --paper-2: #F6F4F1;
  --rule: #E4E0DA;
  --mute: #6E6B66;
  --sub: #3A3835;
  --ink: #0A0A0A;
  --rule-ink: #2A2A28;
  --mute-ink: #8C8880;
  --accent: #4A4F3B;
  --accent-on: #FFFFFF;
  --font: "Archivo", system-ui, sans-serif;
  --fs-display-xl: clamp(42px, 6.2vw, 112px);
  --fs-display-l: clamp(30px, 3.4vw, 52px);
  --fs-body-l: 20px;
  --fs-body: 16px;
  --fs-caption: 13px;
  --fs-label: 11px;
  --tr-display: -0.04em;
  --tr-heading: -0.022em;
  --tr-label: 0.14em;
  --gutter: 24px;
  --margin: clamp(20px, 3vw, 40px);
  --section-y: clamp(44px, 5vw, 88px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

@property --sd-vig {
  syntax: "<percentage>";
  inherits: false;
  initial-value: -45%;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: #0A0A0A; color: #FFFFFF; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; }
img { max-width: 100%; }

/* ---------- first-load intro ---------- */

.sd-intro { display: none; }
html[data-intro] { overflow: hidden; }
html[data-intro] .sd-intro {
  position: fixed; inset: 0; z-index: 300; background: #0A0A0A;
  display: flex; align-items: center; justify-content: center;
}
html[data-intro="out"] .sd-intro {
  animation: sd-intro-swipe 650ms var(--ease-in-out) both;
}
@keyframes sd-intro-swipe {
  from { clip-path: inset(0 0 0 0); }
  to { clip-path: inset(0 0 0 101%); }
}
.sd-intro-canvas { display: block; }

/* ---------- page-transition veil (dissolve) ---------- */

.veil {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.veil-blur {
  position: absolute; inset: 0;
  backdrop-filter: blur(16px) saturate(0.7);
  -webkit-backdrop-filter: blur(16px) saturate(0.7);
  background: radial-gradient(120% 120% at 50% 50%,
    rgba(10,10,10,0) var(--sd-vig, -45%),
    rgba(10,10,10,0.95) calc(var(--sd-vig, -45%) + 38%));
}
.veil-grid {
  position: absolute; inset: 0; opacity: 0.3;
  background-image:
    repeating-linear-gradient(0deg, rgba(10,10,10,0.5) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, rgba(10,10,10,0.5) 0 1px, transparent 1px 8px);
}
.veil-fill { position: absolute; inset: 0; background: #0A0A0A; opacity: 1; }
.veil-mark { position: relative; height: 20px; width: auto; opacity: 1; }

.veil.covering { animation: veil-clock 1200ms linear both; }
.veil.covering .veil-blur { animation: veil-dissolve 1050ms var(--ease-in-out) both; }
.veil.covering .veil-grid { animation: veil-grid-in 900ms 150ms var(--ease-out) both; }
.veil.covering .veil-fill { animation: veil-fill-in 750ms 400ms var(--ease-in-out) both; }
.veil.covering .veil-mark { animation: veil-mark-in 500ms 480ms var(--ease-out) both; }
.veil.leaving { animation: veil-out 750ms var(--ease-in-out) both; }

@keyframes veil-clock { from { opacity: 0.999; } to { opacity: 1; } }
@keyframes veil-dissolve {
  from { backdrop-filter: blur(0) saturate(1); -webkit-backdrop-filter: blur(0) saturate(1); --sd-vig: 85%; }
  to { backdrop-filter: blur(16px) saturate(0.7); -webkit-backdrop-filter: blur(16px) saturate(0.7); --sd-vig: -45%; }
}
@keyframes veil-grid-in { from { opacity: 0; } to { opacity: 0.3; } }
@keyframes veil-fill-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes veil-mark-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes veil-out { from { opacity: 1; } to { opacity: 0; } }

/* ---------- bar reveal (titles) ---------- */

.reveal { position: relative; display: inline-block; }
.reveal .reveal-text { opacity: 0; }
.reveal .reveal-bar {
  position: absolute; inset: 0; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}
.reveal.on .reveal-text { animation: reveal-text 850ms linear var(--reveal-delay, 0ms) both; }
.reveal.on .reveal-bar { animation: reveal-bar 850ms var(--ease-in-out) var(--reveal-delay, 0ms) both; }
@keyframes reveal-text { 0%, 50% { opacity: 0; } 50.1%, 100% { opacity: 1; } }
@keyframes reveal-bar {
  0% { transform: scaleX(0); transform-origin: 0 50%; }
  50% { transform: scaleX(1); transform-origin: 0 50%; }
  50.1% { transform: scaleX(1); transform-origin: 100% 50%; }
  100% { transform: scaleX(0); transform-origin: 100% 50%; }
}

/* ---------- nav ---------- */

.nav-header {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(24px, 6vw, 90px); padding: 15px var(--margin);
  position: sticky; top: 0; background: var(--paper); z-index: 40;
}
.nav-logo-link { display: flex; align-items: center; }
.nav-logo { height: 20px; width: auto; display: block; }
.nav-links {
  position: relative; display: flex; align-items: center;
  justify-content: flex-start; gap: clamp(2px, 0.5vw, 6px);
  font-size: 15px; letter-spacing: -0.005em;
}
.nav-pill {
  position: absolute; top: 50%; left: 0; height: 34px; margin-top: -17px;
  background: var(--ink); pointer-events: none; transform-origin: left center;
  will-change: transform, width; width: 0; transform: translateX(0) scaleX(0);
  transition: transform 300ms var(--ease-out), width 300ms var(--ease-out);
}
.nav-link { position: relative; z-index: 1; padding: 7px 10px; transition: color 160ms linear; }
.nav-link.active { color: #FFFFFF; transition: color 180ms linear 110ms; }
.nav-meta {
  display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px);
  font-size: 15px; letter-spacing: -0.005em; white-space: nowrap;
}
.nav-clock { display: flex; align-items: center; gap: 9px; }
.nav-clock-face {
  position: relative; width: 14px; height: 14px;
  border: 1px solid var(--ink); border-radius: 999px; display: inline-block;
}
.nav-clock-hour {
  position: absolute; left: 50%; top: 50%; width: 1px; height: 4px;
  background: var(--ink); transform: translate(-50%, -100%);
}
.nav-clock-min {
  position: absolute; left: 50%; top: 50%; width: 3px; height: 1px;
  background: var(--ink); transform: translateY(-50%);
}
.nav-clock-digits { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; min-width: 8ch; }
.client-login {
  display: inline-flex; align-items: center; gap: 10px; background: var(--paper-2);
  color: var(--ink); padding: 5px 5px 5px 14px; font-size: 14px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1;
}
.login-icon {
  position: relative; width: 24px; height: 24px; background: var(--ink);
  color: #FFFFFF; overflow: hidden; display: flex; align-items: center;
  justify-content: center; font-size: 13px;
}
.login-arrow { display: block; transition: transform 300ms var(--ease-out); }
.login-arrow-clone {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transform: translate(-120%, 120%); transition: transform 300ms var(--ease-out);
}
.client-login:hover .login-arrow { transform: translate(120%, -120%); }
.client-login:hover .login-arrow-clone { transform: translate(0, 0); }

.nav-burger {
  display: none; position: relative; z-index: 60; width: 40px; height: 34px;
  border: 0; background: transparent; cursor: pointer; padding: 8px;
  flex-direction: column; justify-content: center; gap: 6px; margin-left: auto;
}
.nav-burger span {
  display: block; height: 2px; width: 100%; background: var(--ink);
  transition: transform 300ms var(--ease-out);
}
.nav-burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 50; background: var(--paper);
  display: none; flex-direction: column; justify-content: space-between;
  padding: 96px var(--margin) 32px; animation: menu-in 300ms var(--ease-out) both;
}
.mobile-menu.open { display: flex; }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.mobile-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-link {
  font-size: clamp(32px, 9vw, 52px); font-weight: 500; letter-spacing: -0.032em;
  line-height: 1.15; animation: menu-link-in 500ms var(--ease-out) both;
}
@keyframes menu-link-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-meta {
  display: flex; justify-content: space-between; font-size: var(--fs-label);
  font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mute); font-variant-numeric: tabular-nums;
}

/* ---------- shared section anatomy ---------- */

.section { background: var(--paper); padding: var(--section-y) var(--margin); border-bottom: 1px solid var(--ink); }
.section-big { padding: clamp(56px, 7vw, 124px) var(--margin); }
.grid12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.eyebrow {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mute);
}
.meta-label {
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mute);
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--gutter); margin-bottom: clamp(26px, 3vw, 48px);
}
.h2 { font-size: var(--fs-display-l); line-height: 0.98; letter-spacing: -0.032em; font-weight: 500; }
.counter { font-size: 0.34em; color: var(--mute); letter-spacing: 0; vertical-align: super; }
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-label);
  font-weight: 600; letter-spacing: var(--tr-label); text-transform: uppercase;
}
.arrow-link .arrow { display: inline-block; transition: transform 380ms var(--ease-out); }
.arrow-link:hover .arrow { transform: translateX(9px); }
.pill-tag {
  border: 1px solid var(--ink); border-radius: 999px; padding: 6px 13px;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink);
}
.hairline { height: 1px; background: var(--rule); }

/* ---------- hero ---------- */

.hero {
  min-height: calc(100vh - 48px); min-height: calc(100svh - 48px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(40px, 5vw, 80px) var(--margin) clamp(28px, 3vw, 44px);
  border-bottom: 1px solid var(--ink);
}
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; }
.hero-main { grid-column: 1 / span 9; }
.hero-eyebrow { margin-bottom: clamp(24px, 4vw, 52px); animation: sd-fade 700ms var(--ease-out) both; }
.hero-title { font-size: var(--fs-display-xl); line-height: 0.9; letter-spacing: var(--tr-display); font-weight: 500; }
.line-block { display: block; }
.hero-aside {
  grid-column: 11 / span 2; display: flex; flex-direction: column; gap: 14px;
  animation: sd-fade 800ms 320ms var(--ease-out) both;
}
.hero-intro { font-size: 15px; line-height: 1.5; color: var(--sub); }
@keyframes sd-fade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- showreel ---------- */

.showreel {
  position: relative; height: calc(100vh - 48px); min-height: 520px;
  background: #0A0A0A; color: #FFFFFF; overflow: hidden; border-bottom: 1px solid var(--ink);
}
.showreel-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: space-between; padding: var(--margin); pointer-events: none;
  color: #FFFFFF; mix-blend-mode: difference;
}
.showreel-row {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--tr-label);
  text-transform: uppercase;
}
.showreel-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gutter); }
.showreel-statement {
  font-size: clamp(26px, 3.4vw, 52px); font-weight: 500; letter-spacing: var(--tr-heading);
  line-height: 1; max-width: 24ch; text-transform: none;
}

/* ---------- media slots ---------- */

.media {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; background: var(--paper-2);
}
.media img, .media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.media .placeholder-label {
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--mute); text-align: center; padding: 0 16px;
}
.media.on-ink { background: #141414; }
.media.on-ink .placeholder-label { color: var(--mute-ink); }

/* ---------- statement ---------- */

.statement-main { grid-column: 1 / span 9; }
.statement-text {
  font-size: clamp(26px, 3.8vw, 58px); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 500; text-wrap: balance;
}
.statement-list { grid-column: 11 / span 2; display: flex; flex-direction: column; gap: 12px; }

/* ---------- work ---------- */

.work-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.work-card { display: flex; flex-direction: column; gap: 10px; }
.work-media { aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.work-media > * { transition: transform 600ms var(--ease-out); }
.work-card:hover .work-media > * { transform: scale(1.04); }
.work-caption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-top: 1px solid var(--ink); padding-top: 9px;
}
.work-name { font-size: 17px; font-weight: 500; letter-spacing: -0.04em; }
.work-rows { display: flex; flex-direction: column; margin-top: clamp(32px, 4vw, 56px); }
.work-row {
  display: grid; grid-template-columns: 44px 1fr 1fr 90px; gap: 16px; padding: 15px 0;
  border-top: 1px solid var(--rule); align-items: baseline;
  transition: padding-left 240ms var(--ease-out);
}
.work-row:first-child { border-top-color: var(--ink); }
.work-row:last-child { border-bottom: 1px solid var(--ink); }
.work-row:hover { padding-left: 12px; }
.work-row-num, .work-row-year { font-size: 12px; color: var(--mute); }
.work-row-year { text-align: right; }
.work-row-scope { font-size: 14px; color: var(--mute); }

/* ---------- services ---------- */

.service-row {
  display: grid; grid-template-columns: 60px 1.1fr 1.4fr; gap: var(--gutter);
  padding: 22px 0; border-top: 1px solid var(--ink); align-items: start;
}
.service-row:last-child { border-bottom: 1px solid var(--ink); }
.service-num { font-size: 12px; color: var(--mute); }
.service-name { font-size: clamp(26px, 2.5vw, 38px); font-weight: 500; letter-spacing: var(--tr-heading); }
.service-body { display: flex; flex-direction: column; gap: 10px; }
.service-text { font-size: var(--fs-body); line-height: 1.5; color: var(--sub); max-width: 52ch; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------- sectors ---------- */

.sectors-intro { grid-column: 1 / span 3; }
.sectors-body { font-size: var(--fs-body); line-height: 1.5; color: var(--sub); max-width: 32ch; }
.sectors-list { grid-column: 5 / span 8; display: flex; flex-direction: column; }
.sector-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 0; border-top: 1px solid var(--rule);
  font-size: clamp(26px, 2.9vw, 42px); font-weight: 500; letter-spacing: var(--tr-heading);
}
.sector-row:first-child { border-top-color: var(--ink); }
.sector-row:last-child { border-bottom: 1px solid var(--ink); }
.sector-count { font-size: 12px; font-weight: 400; color: var(--mute); }

/* ---------- pricing tiers ---------- */

.tier-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 5vw, 76px);
}
.tier { display: flex; flex-direction: column; border-top: 1px solid var(--ink); padding-top: 20px; }
.tier-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tier-dots { display: flex; gap: 3px; }
.tier-dot { width: 14px; height: 14px; border-radius: 999px; background: var(--accent); }
.tier-dot.outlined { background: transparent; border: 1px solid var(--accent); }
.tier-name { font-size: clamp(26px, 2.4vw, 36px); font-weight: 500; letter-spacing: var(--tr-heading); }
.tier-body { margin: 0 0 20px; font-size: var(--fs-body); line-height: 1.45; max-width: 32ch; }
.tier-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--ink); font-size: var(--fs-body);
}
.tier-meta-value { font-size: 14px; }
.tier-price {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 0 0; border-top: 1px solid var(--ink); margin-top: auto;
}
.tier-price-value { font-size: clamp(30px, 2.8vw, 44px); font-weight: 500; letter-spacing: -0.01em; }
.detail-table { display: flex; flex-direction: column; margin-top: clamp(26px, 3vw, 48px); }
.detail-row {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 16px; padding: 14px 0;
  border-top: 1px solid var(--rule); align-items: baseline; font-size: 15px;
}
.detail-row:first-child { border-top-color: var(--ink); }
.detail-row:last-child { border-bottom: 1px solid var(--ink); }
.detail-head {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--tr-label);
  text-transform: uppercase; color: var(--mute);
}
.detail-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--accent); display: inline-block; }
.detail-dash { color: var(--rule); }

/* ---------- info ---------- */

.info-copy { grid-column: 1 / span 5; }
.info-lead { margin: 0 0 18px; font-size: var(--fs-body-l); line-height: 1.45; letter-spacing: -0.01em; max-width: 44ch; }
.info-body { font-size: var(--fs-body); line-height: 1.5; max-width: 52ch; }
.info-media { grid-column: 7 / span 6; }
.info-image { aspect-ratio: 3 / 2; background: var(--paper-2); overflow: hidden; }
.info-caption { font-size: var(--fs-caption); color: var(--mute); margin-top: 9px; }

/* ---------- contact / footer ---------- */

.contact { background: #0A0A0A; color: #FFFFFF; padding: clamp(56px, 7vw, 124px) var(--margin); }
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; }
.contact-main { grid-column: 1 / span 8; }
.contact-eyebrow {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mute-ink); margin-bottom: clamp(22px, 3vw, 48px);
}
.contact-cta {
  display: block; color: #FFFFFF; font-size: clamp(36px, 5.4vw, 100px);
  line-height: 0.92; letter-spacing: var(--tr-display); font-weight: 500;
  transition: opacity 300ms;
}
.contact-cta:hover { opacity: 0.55; }
.contact-logo { display: block; width: min(52vw, 560px); height: auto; }
.contact-aside { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 24px; }
.contact-block { display: flex; flex-direction: column; gap: 7px; }
.contact-label {
  font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--tr-label);
  text-transform: uppercase; color: var(--mute-ink);
}
.contact-link { color: #FFFFFF; font-size: 17px; }
.contact-socials { display: flex; gap: 14px; font-size: 17px; }
.footer-strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; margin-top: clamp(44px, 5vw, 88px); padding-top: 20px;
  border-top: 1px solid var(--rule-ink); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-ink);
}
.footer-logo { height: 15px; width: auto; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--mute-ink); transition: color 220ms var(--ease-out); }
.footer-links a:hover { color: #FFFFFF; }

/* ---------- cube button ---------- */

.cube {
  cursor: pointer; border: 0; padding: 0; background: transparent; height: 48px;
  perspective: 520px; display: inline-block;
}
.cube-inner {
  position: relative; display: block; height: 48px; transform-style: preserve-3d;
  transition: transform 520ms var(--ease-in-out);
}
.cube:hover .cube-inner, .cube:focus-visible .cube-inner { transform: rotateX(-90deg); }
.cube-face {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; font-size: var(--fs-label); font-weight: 600;
  letter-spacing: var(--tr-label); text-transform: uppercase; white-space: nowrap;
  transform: translateZ(24px); backface-visibility: hidden;
}
.cube-top {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 0 22px; font-size: var(--fs-label); font-weight: 600;
  letter-spacing: var(--tr-label); text-transform: uppercase; white-space: nowrap;
  transform: rotateX(90deg) translateZ(24px); backface-visibility: hidden;
}
.cube.primary-paper .cube-face { background: var(--accent); color: var(--accent-on); border: 1px solid var(--accent); }
.cube.primary-paper .cube-top { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
.cube.secondary-paper .cube-face { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
.cube.secondary-paper .cube-top { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.cube.primary-ink .cube-face { background: #FFFFFF; color: #0A0A0A; border: 1px solid #FFFFFF; }
.cube.primary-ink .cube-top { background: #0A0A0A; color: #FFFFFF; border: 1px solid #FFFFFF; }
.cube.small, .cube.small .cube-inner, .cube.small .cube-face { height: 30px; }
.cube.small .cube-face, .cube.small .cube-top { padding: 0 14px; font-size: 10px; }
.cube.small .cube-face { transform: translateZ(15px); }
.cube.small .cube-top { rotate: none; transform: rotateX(90deg) translateZ(15px); }

/* ---------- interior page hero / shared page patterns ---------- */

.page-hero { background: var(--paper); padding: clamp(56px, 8vw, 128px) var(--margin) clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--ink); }
.page-eyebrow {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mute); margin-bottom: clamp(20px, 3vw, 40px);
}
.page-title { font-size: var(--fs-display-xl); line-height: 0.9; letter-spacing: var(--tr-display); font-weight: 500; }
.page-title.small { font-size: clamp(36px, 4.6vw, 76px); }
.page-hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; }
.page-hero-main { grid-column: 1 / span 8; }
.page-hero-aside { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 14px; }
.page-hero-intro { font-size: 15px; line-height: 1.5; color: var(--sub); }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: clamp(24px, 3vw, 40px); }
.filter-pill {
  border: 1px solid var(--ink); border-radius: 999px; padding: 6px 13px;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink); background: transparent;
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out);
}
.filter-pill.active { background: var(--ink); color: #FFFFFF; }

/* ---------- case study ---------- */

.case-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--gutter);
  padding: 20px 0 0; margin-top: clamp(28px, 4vw, 52px); border-top: 1px solid var(--ink);
}
.case-meta-block { display: flex; flex-direction: column; gap: 6px; }
.case-hero-media {
  height: min(72vh, 760px); min-height: 380px; background: var(--paper-2);
  border-bottom: 1px solid var(--ink); overflow: hidden;
}
.case-statement {
  font-size: clamp(24px, 3vw, 44px); line-height: 1.08; letter-spacing: var(--tr-heading);
  font-weight: 500; text-wrap: balance; max-width: 26ch;
}
.case-image-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gutter); }
.case-image { aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.next-project {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--gutter);
  padding: clamp(36px, 5vw, 64px) var(--margin); border-bottom: 1px solid var(--ink);
  background: var(--paper); transition: background-color 300ms var(--ease-out);
}
.next-project:hover { background: var(--paper-2); }
.next-project-name { font-size: var(--fs-display-l); line-height: 0.98; letter-spacing: -0.032em; font-weight: 500; }

/* ---------- site forms ---------- */

.site-form { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 36px); }
.site-field { display: flex; flex-direction: column; gap: 8px; }
.site-field-label {
  font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--tr-label);
  text-transform: uppercase; color: var(--mute);
}
.site-input {
  font-family: var(--font); font-size: var(--fs-body); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink);
  border-radius: 0; padding: 0 0 12px; min-height: 44px; outline: none;
  transition: border-color 220ms var(--ease-out); width: 100%;
}
.site-input:focus { border-bottom-color: var(--mute); }
.site-input::placeholder { color: var(--mute); }
textarea.site-input { resize: vertical; min-height: 88px; line-height: 1.5; }
.form-note { font-size: var(--fs-caption); color: var(--mute); max-width: 44ch; line-height: 1.5; }
.login-wrap {
  min-height: calc(100vh - 48px); min-height: calc(100svh - 48px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  padding: clamp(56px, 8vw, 128px) var(--margin); border-bottom: 1px solid var(--ink);
  align-content: start;
}
.login-panel { grid-column: 4 / span 6; display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); }

/* ---------- legal / prose ---------- */

.prose {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  padding: var(--section-y) var(--margin); border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.prose-aside { grid-column: 1 / span 3; }
.prose-body { grid-column: 5 / span 6; display: flex; flex-direction: column; gap: 18px; }
.prose-body h2 { font-size: var(--fs-body-l); font-weight: 500; letter-spacing: -0.01em; margin-top: 26px; }
.prose-body h2:first-child { margin-top: 0; }
.prose-body p, .prose-body li { font-size: var(--fs-body); line-height: 1.6; color: var(--sub); max-width: 62ch; }
.prose-body ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grid12, .hero-grid, .contact-grid, .page-hero-grid, .prose, .login-wrap { gap: 16px; }
  .hero-main, .hero-aside, .statement-main, .statement-list, .sectors-intro,
  .sectors-list, .info-copy, .info-media, .contact-main, .contact-aside,
  .page-hero-main, .page-hero-aside, .prose-aside, .prose-body, .login-panel {
    grid-column: 1 / -1;
  }
  .hero-aside { max-width: 44ch; }
  .service-row { grid-template-columns: 44px 1fr; }
  .service-body { grid-column: 2; }
  .work-row { grid-template-columns: 32px 1fr auto 56px; gap: 10px; }
  .detail-row { grid-template-columns: 1.2fr repeat(3, 0.6fr); gap: 10px; }
}

@media (max-width: 760px) {
  .nav-meta, .nav-links { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 600px) {
  .grid12, .hero-grid, .contact-grid { gap: 12px; }
  .work-row-scope { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 200ms !important;
    transition-duration: 1ms !important;
  }
  .reveal .reveal-bar { display: none; }
  .reveal.on .reveal-text { animation: none; opacity: 1; }
  .mobile-menu, .mobile-link { animation: none; }
}
