/* ==========================================================================
   APB Built — design tokens
   ========================================================================== */
:root {
  /* Brand */
  --orange: #FF310F;
  --orange-hover: #FF5A3D;
  --charcoal: #606161;

  /* Surfaces (dark, warm) */
  --bg: #0D0D0C;
  --bg-raised: #151514;
  --bg-sunken: #090908;
  --surface: #1C1C1A;
  --line: rgba(242, 239, 234, 0.12);
  --line-strong: rgba(242, 239, 234, 0.24);

  /* Text */
  --text: #F2EFEA;
  --text-muted: #A8A39B;     /* 7.6:1 on --bg */
  --text-faint: #8A857D;     /* 5.1:1 on --bg */
  --on-orange: #0D0D0C;      /* 6.1:1 on --orange */

  /* Type */
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-3xl: clamp(2.6rem, 1.6rem + 4.6vw, 5.5rem);
  --fs-hero: clamp(3rem, 1.6rem + 6.4vw, 7.5rem);

  /* Space (8pt) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;
  --section: clamp(5rem, 3rem + 8vw, 10rem);
  --gutter: clamp(1rem, 0.5rem + 3vw, 3rem);
  --max: 1440px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --t-fast: 180ms;
  --t-med: 420ms;
  --t-slow: 900ms;

  /* Layers */
  --z-header: 100;
  --z-menu: 200;
  --z-lightbox: 300;

  /* Photo grade: unifies phone photography */
  --grade: saturate(0.82) contrast(1.06) brightness(0.94);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: 1em; }
em, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--orange); color: var(--on-orange); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 2px; }

.skip-link {
  position: absolute; left: var(--s-2); top: -100px; z-index: 999;
  background: var(--orange); color: var(--on-orange); padding: var(--s-1) var(--s-2); font-weight: 600;
}
.skip-link:focus { top: var(--s-2); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--raised { background: var(--bg-raised); }
.section--sunken { background: var(--bg-sunken); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Graded photography */
.photo { position: relative; overflow: hidden; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transition: transform var(--t-slow) var(--ease-out), filter var(--t-med) var(--ease-out); }

/* ==========================================================================
   Type helpers
   ========================================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted);
}
.eyebrow::before {
  content: ""; width: 14px; height: 9px; flex: none;
  /* The roofline chevron from the APB "A" */
  background: var(--orange);
  clip-path: polygon(50% 0, 100% 100%, 82% 100%, 50% 30%, 18% 100%, 0 100%);
}
.display { font-size: var(--fs-3xl); }
.h2 { font-size: var(--fs-2xl); }
.h3 { font-size: var(--fs-xl); letter-spacing: -0.02em; font-weight: 400; }
.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--text-muted); max-width: 40ch; }
.muted { color: var(--text-muted); }
.accent { color: var(--orange); }
.measure { max-width: 62ch; }

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
  --pad-y: 1rem; --pad-x: 1.6rem;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 52px; padding: var(--pad-y) var(--pad-x);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--orange); color: var(--on-orange); }
.btn--primary:hover { background: var(--orange-hover); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding-block: 0.5rem; border-bottom: 1px solid var(--line-strong);
  transition: border-color var(--t-fast) var(--ease-out), color var(--t-fast);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform var(--t-med) var(--ease-out); }
.link-arrow:hover { border-color: var(--orange); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  transition: background-color var(--t-med) var(--ease-out), border-color var(--t-med), transform var(--t-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(13, 13, 12, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: var(--s-3); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 150px; height: auto; }
@media (min-width: 768px) { .brand img { width: 172px; } }
.nav { display: none; }
.nav ul { display: flex; gap: clamp(1.25rem, 2.4vw, 2.5rem); list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: inline-block; padding-block: 0.75rem;
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.04em; color: var(--text-muted);
  transition: color var(--t-fast);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.35rem; height: 1px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.header-phone { display: none; font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); padding-block: 0.75rem; }
.header-phone:hover { color: var(--text); }
.header-cta { display: none; min-height: 44px; --pad-y: 0.7rem; --pad-x: 1.2rem; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-width: 48px; min-height: 48px; padding: 0 0.25rem; background: none; border: 0; cursor: pointer;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
}
.menu-toggle .bars { position: relative; width: 26px; height: 10px; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform var(--t-med) var(--ease-out), top var(--t-med) var(--ease-out);
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars::after { top: 8.5px; }
.menu-open .menu-toggle .bars::before { top: 4.25px; transform: rotate(45deg); }
.menu-open .menu-toggle .bars::after { top: 4.25px; transform: rotate(-45deg); }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}
@media (min-width: 1280px) { .header-phone { display: inline-block; } }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--bg); padding: 104px var(--gutter) var(--s-4);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-4);
  visibility: hidden; opacity: 0; transition: opacity var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
  overflow-y: auto;
}
.menu-open .mobile-menu { visibility: visible; opacity: 1; transition: opacity var(--t-med) var(--ease-out); }
.menu-open .site-header { background: var(--bg); z-index: calc(var(--z-menu) + 1); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li a {
  display: flex; justify-content: space-between; align-items: center; padding-block: 1.1rem;
  font-size: clamp(1.8rem, 7vw, 2.6rem); font-weight: 300; letter-spacing: -0.03em;
}
.mobile-menu li a span { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em; color: var(--text-faint); }
.mobile-menu li a[aria-current="page"] { color: var(--orange); }
.mobile-menu .menu-foot { display: grid; gap: var(--s-2); font-size: var(--fs-sm); color: var(--text-muted); }
.mobile-menu .menu-foot a { color: var(--text); }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: var(--grade); transform: scale(1.06); animation: hero-settle 2.4s var(--ease-out) forwards; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,13,12,0.7) 0%, rgba(13,13,12,0.1) 28%, rgba(13,13,12,0.25) 55%, rgba(13,13,12,0.96) 100%),
    linear-gradient(90deg, rgba(13,13,12,0.65) 0%, rgba(13,13,12,0) 65%);
}
@keyframes hero-settle { to { transform: scale(1); } }
.hero-content { padding-block: 140px var(--s-5); width: 100%; }
.hero h1 { font-size: var(--fs-hero); max-width: 12ch; }
.hero h1 em { color: var(--text); }
.hero .lead { margin-top: var(--s-3); color: rgba(242,239,234,0.82); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.hero-meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-3);
  margin-top: var(--s-6); padding-top: var(--s-3); border-top: 1px solid var(--line-strong);
  font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
}
.hero-meta strong { display: block; color: var(--text); font-weight: 600; letter-spacing: 0.08em; margin-top: 0.25rem; }
@media (min-width: 768px) { .hero-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Page hero (inner pages) */
.page-hero { position: relative; padding-top: 180px; padding-bottom: var(--s-6); isolation: isolate; overflow: hidden; }
.page-hero--image { min-height: 78vh; min-height: 78dvh; display: flex; align-items: flex-end; }
.page-hero--image .hero-media img { animation: none; transform: none; }
.page-hero--image::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,13,12,0.75) 0%, rgba(13,13,12,0.3) 40%, rgba(13,13,12,0.97) 100%),
    linear-gradient(90deg, rgba(13,13,12,0.8) 0%, rgba(13,13,12,0.2) 70%);
}
.page-hero h1 { font-size: var(--fs-3xl); max-width: 16ch; margin-top: var(--s-3); }
.page-hero .lead { margin-top: var(--s-3); }

/* ==========================================================================
   Intro / statement
   ========================================================================== */
.statement { font-size: var(--fs-2xl); font-weight: 300; line-height: 1.15; letter-spacing: -0.03em; max-width: 22ch; }
.statement .dim { color: var(--text-faint); }
.split { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) {
  .split { grid-template-columns: 5fr 7fr; gap: var(--s-7); align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--reverse { grid-template-columns: 7fr 5fr; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: var(--s-6); }
.stat { padding: var(--s-4) var(--s-2) var(--s-4) 0; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: var(--s-3); border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: var(--s-3); }
.stat-value { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.25rem); font-weight: 200; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-value sup { font-size: 0.45em; color: var(--orange); font-weight: 400; vertical-align: 0.9em; margin-left: 0.1em; }
.stat-label { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--text-muted); max-width: 22ch; }
@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat, .stat:nth-child(odd), .stat:nth-child(even) { padding: var(--s-5) var(--s-3); border-right: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
}

/* ==========================================================================
   Section heads
   ========================================================================== */
.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.section-head h2 { margin-top: var(--s-2); }
@media (min-width: 1024px) {
  .section-head { grid-template-columns: 1fr auto; align-items: end; }
  .section-head .lead { justify-self: end; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { position: relative; display: flex; flex-direction: column; background: var(--bg); min-height: 520px; overflow: hidden; isolation: isolate; }
.service-card .photo { position: absolute; inset: 0; z-index: -1; }
.service-card .photo img { filter: var(--grade) brightness(0.62); }
.service-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,13,12,0.2) 0%, rgba(13,13,12,0.92) 100%); }
.service-card .inner { margin-top: auto; padding: var(--s-4); }
.service-card .num { position: absolute; top: var(--s-4); left: var(--s-4); font-size: var(--fs-xs); letter-spacing: 0.2em; color: var(--text-muted); font-weight: 600; }
.service-card h3 { font-size: var(--fs-xl); font-weight: 400; letter-spacing: -0.02em; }
.service-card p { margin-top: var(--s-2); color: var(--text-muted); max-width: 34ch; }
.service-card .scale { display: inline-block; margin-top: var(--s-3); font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); font-weight: 600; }
.service-card .go { position: absolute; top: var(--s-4); right: var(--s-4); width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; transition: background var(--t-med) var(--ease-out), border-color var(--t-med), transform var(--t-med) var(--ease-out); }
.service-card .go svg { width: 16px; height: 16px; transform: rotate(-45deg); transition: transform var(--t-med) var(--ease-out); }
.service-card:hover .photo img { transform: scale(1.05); filter: var(--grade) brightness(0.72); }
.service-card:hover .go { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.service-card:hover .go svg { transform: rotate(0); }
@media (min-width: 768px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services > .service-card:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 420px; }
}
@media (min-width: 1280px) {
  .services { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .services > .service-card:last-child:nth-child(odd) { grid-column: auto; }
  .service-card { min-height: 640px; }
  .service-card .inner { padding: var(--s-3); }
}

/* ==========================================================================
   Featured project
   ========================================================================== */
.feature { display: grid; gap: var(--s-3); }
.feature-main { aspect-ratio: 4 / 5; }
.feature-side { display: grid; gap: var(--s-3); grid-template-columns: 1fr 1fr; }
.feature-side .photo { aspect-ratio: 3 / 4; }
.feature-copy { padding-top: var(--s-3); }
.feature-copy h3 { font-size: var(--fs-2xl); margin-top: var(--s-2); }
.feature-copy p { margin-top: var(--s-3); color: var(--text-muted); max-width: 46ch; }
.meta-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin: var(--s-4) 0; padding: var(--s-3) 0; border-block: 1px solid var(--line); list-style: none; }
.meta-list dt, .meta-list .k { font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.meta-list dd, .meta-list .v { margin: 0.35rem 0 0; font-size: var(--fs-sm); }
@media (min-width: 1024px) {
  .feature { grid-template-columns: 7fr 5fr; gap: var(--s-4); align-items: stretch; }
  .feature-main { aspect-ratio: auto; min-height: 760px; grid-row: span 2; }
  .feature-copy { padding-top: 0; }
}

/* ==========================================================================
   Process
   ========================================================================== */
.process { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.step { position: relative; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: var(--s-2); }
.step-num { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em; color: var(--orange); padding-top: 0.45rem; }
.step h3 { font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.01em; }
.step p { margin-top: var(--s-1); color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.7; }
.step .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: var(--s-2); }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0.2rem 0.65rem; border: 1px solid var(--line-strong); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); font-weight: 600; }
@media (min-width: 1024px) {
  .process { grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 0; }
  .step { grid-template-columns: 1fr; padding: var(--s-4) var(--s-3) var(--s-4) 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .step::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--orange); transform: rotate(45deg); }
  .step-num { padding-top: var(--s-2); }
}

/* ==========================================================================
   Project cards
   ========================================================================== */
.project-grid { display: grid; gap: var(--s-5) var(--s-3); }
.project-card { display: block; }
.project-card .photo { aspect-ratio: 4 / 5; }
.project-card:hover .photo img { transform: scale(1.04); }
.project-card .info { display: flex; justify-content: space-between; gap: var(--s-2); align-items: baseline; margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--line); }
.project-card h3 { font-size: var(--fs-lg); font-weight: 400; letter-spacing: -0.01em; }
.project-card .type { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; white-space: nowrap; }
.status { position: absolute; top: var(--s-2); left: var(--s-2); z-index: 1; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.7rem; background: rgba(13,13,12,0.78); backdrop-filter: blur(6px); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
@media (min-width: 768px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid .project-card:nth-child(even) { margin-top: var(--s-7); }
}
@media (min-width: 1280px) {
  .project-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .project-grid--4 .project-card:nth-child(even) { margin-top: var(--s-6); }
}

/* ==========================================================================
   Areas
   ========================================================================== */
.areas { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.area { background: var(--bg-raised); padding: var(--s-5) var(--s-4); }
.area .k { font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); font-weight: 600; }
.area h3 { font-size: var(--fs-xl); margin-top: var(--s-2); font-weight: 400; letter-spacing: -0.02em; }
.area ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: 0.5rem; color: var(--text-muted); font-size: var(--fs-sm); }
@media (min-width: 1024px) { .areas { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }

/* ==========================================================================
   Pillars (why APB)
   ========================================================================== */
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); display: grid; gap: var(--s-2); }
.pillar .n { font-family: var(--font-serif); font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--orange); }
.pillar h3 { font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.01em; }
.pillar p { color: var(--text-muted); font-size: var(--fs-sm); max-width: 44ch; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); } }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quotes { display: grid; gap: var(--s-3); }
.quote { margin: 0; padding: var(--s-5) var(--s-4); border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: var(--s-4); }
.quote blockquote { margin: 0; font-size: var(--fs-lg); font-weight: 300; line-height: 1.5; letter-spacing: -0.01em; }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--font-serif); font-size: 4rem; line-height: 0.6; color: var(--orange); margin-bottom: var(--s-2); }
.quote figcaption { margin-top: auto; font-size: var(--fs-sm); color: var(--text-muted); }
.quote figcaption strong { display: block; color: var(--text); font-weight: 600; }
@media (min-width: 1024px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ==========================================================================
   Instagram strip
   ========================================================================== */
.insta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.insta a { position: relative; display: block; aspect-ratio: 1; }
.insta a .photo { position: absolute; inset: 0; }
.insta a::after { content: ""; position: absolute; inset: 0; background: rgba(255, 49, 15, 0); transition: background var(--t-med) var(--ease-out); }
.insta a:hover::after { background: rgba(255, 49, 15, 0.18); }
.insta a:hover img { transform: scale(1.05); }
@media (min-width: 1024px) { .insta { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding-block: var(--section); border-top: 1px solid var(--line); }
.cta-band .mark { position: absolute; right: -6%; bottom: -18%; width: min(62vw, 760px); opacity: 0.06; z-index: -1; pointer-events: none; }
.cta-band h2 { font-size: var(--fs-3xl); max-width: 14ch; }
.cta-band .contact-lines { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.contact-line { display: flex; flex-direction: column; gap: 0.25rem; }
.contact-line .k { font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.contact-line a { font-size: var(--fs-xl); font-weight: 300; letter-spacing: -0.02em; width: fit-content; border-bottom: 1px solid transparent; transition: border-color var(--t-fast); }
.contact-line a:hover { border-color: var(--orange); }
@media (min-width: 768px) { .cta-band .contact-lines { grid-template-columns: repeat(2, max-content); column-gap: var(--s-7); } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-sunken); border-top: 1px solid var(--line); padding-block: var(--s-7) var(--s-4); font-size: var(--fs-sm); color: var(--text-muted); }
.footer-grid { display: grid; gap: var(--s-5); }
.footer-brand img { width: 96px; }
.footer-brand p { margin-top: var(--s-3); max-width: 32ch; }
.footer-col h2 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--s-2); line-height: 1.4; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.footer-col a { display: inline-block; padding-block: 0.3rem; color: var(--text); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--orange); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-7); padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--fs-xs); letter-spacing: 0.06em; color: var(--text-faint); }
.footer-legal span + span::before { content: "·"; margin: 0 0.6rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }

/* ==========================================================================
   Services page
   ========================================================================== */
.svc { display: grid; gap: var(--s-5); padding-block: var(--section); border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.svc:first-of-type { border-top: 0; }
.svc-media { display: grid; grid-template-columns: 3fr 2fr; gap: var(--s-2); }
.svc-media .photo:first-child { aspect-ratio: 4 / 5; }
.svc-media .photo:last-child { aspect-ratio: 3 / 4; align-self: end; }
.svc-copy h2 { font-size: var(--fs-2xl); margin-top: var(--s-2); }
.svc-copy .lead { margin-top: var(--s-3); max-width: 46ch; }
.checklist { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checklist li { display: flex; gap: var(--s-2); align-items: baseline; padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.checklist li::before { content: ""; flex: none; width: 10px; height: 6px; background: var(--orange); clip-path: polygon(50% 0, 100% 100%, 80% 100%, 50% 34%, 20% 100%, 0 100%); transform: translateY(-1px); }
@media (min-width: 768px) { .checklist { grid-template-columns: 1fr 1fr; column-gap: var(--s-4); } }
@media (min-width: 1024px) {
  .svc { grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; }
  .svc:nth-of-type(even) .svc-media { order: 2; }
}
.jump { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-5); }

/* ==========================================================================
   Projects page
   ========================================================================== */
.case { padding-block: var(--section); border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.case-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.case-head h2 { font-size: var(--fs-2xl); margin-top: var(--s-2); }
.case-head p { color: var(--text-muted); max-width: 54ch; }
@media (min-width: 1024px) { .case-head { grid-template-columns: 1fr 1fr; align-items: start; gap: var(--s-7); } }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-1); }
.gallery button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; aspect-ratio: 3 / 4; }
.gallery button .photo { position: absolute; inset: 0; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .wide { grid-column: span 2; aspect-ratio: 16 / 10; }
.gallery .full { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery .span2 { grid-column: span 2; aspect-ratio: 16 / 10; }
.gallery { grid-auto-flow: dense; }
.gallery-label { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-5) 0 var(--s-2); font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--text-muted); }
.gallery-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (min-width: 1024px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
  .gallery .wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .gallery .full { aspect-ratio: 21 / 9; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: var(--z-lightbox); background: rgba(9, 9, 8, 0.97); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity var(--t-med) var(--ease-out), visibility 0s linear var(--t-med); }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity var(--t-med) var(--ease-out); }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: var(--s-2) var(--gutter); font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.lightbox-stage { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; filter: var(--grade); }
.lightbox-nav { display: flex; justify-content: center; gap: var(--s-2); padding: var(--s-2); }
.icon-btn { width: 52px; height: 52px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); background: transparent; border-radius: 50%; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.icon-btn:hover { border-color: var(--orange); background: rgba(255, 49, 15, 0.12); }
.icon-btn svg { width: 18px; height: 18px; }

/* ==========================================================================
   Contact page / form
   ========================================================================== */
.contact-grid { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: var(--s-8); } }
.contact-aside .contact-line + .contact-line { margin-top: var(--s-4); }
.contact-aside .contact-line a { font-size: var(--fs-lg); }
.contact-aside .creds { margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-muted); display: grid; gap: 0.35rem; }

.form { display: grid; gap: var(--s-3); }
.form-row { display: grid; gap: var(--s-3); }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.5rem; }
.field label, .field legend { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--text-muted); padding: 0; }
.field .req { color: var(--orange); }
.input {
  width: 100%; min-height: 54px; padding: 0.9rem 1rem;
  background: var(--bg-raised); color: var(--text); border: 1px solid var(--line-strong); border-radius: 0;
  font: inherit; font-size: 1rem; transition: border-color var(--t-fast), background var(--t-fast);
}
.input::placeholder { color: var(--text-faint); }
.input:hover { border-color: rgba(242, 239, 234, 0.4); }
.input:focus { outline: none; border-color: var(--orange); background: var(--surface); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A8A39B' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
select.input option { background: var(--bg-raised); }
textarea.input { min-height: 160px; resize: vertical; }
.field .help { font-size: var(--fs-sm); color: var(--text-faint); }
.field .error { display: none; font-size: var(--fs-sm); color: #FF8A65; }
.field.has-error .input { border-color: #FF8A65; }
.field.has-error .error { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1rem; border: 1px solid var(--line-strong); font-size: var(--fs-sm); transition: all var(--t-fast); cursor: pointer; }
.chip input:hover + span { border-color: var(--text); }
.chip input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--on-orange); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: var(--fs-sm); color: var(--text-faint); }

/* ==========================================================================
   Reveal motion
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-media img { transform: none; }
}
