/* ==========================================================================
   AK ARCHITECTURE — Core Stylesheet
   Design system: editorial, drawn-line signature, minimal restraint.
   ========================================================================== */

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* Brand */
  --c-black: #0b0b0c;
  --c-ink: #111111;
  --c-grey: #46474b;
  --c-mute: #8a8a8e;
  --c-red: #b3122e;
  --c-red-dim: #8c0e24;
  --c-white: #ffffff;
  --c-fog: #f8f8f8;

  /* Semantic (light mode default) */
  --bg-page: var(--c-white);
  --bg-alt: var(--c-fog);
  --bg-inverse: #0b0b0c;
  --text-primary: var(--c-ink);
  --text-secondary: var(--c-grey);
  --text-mute: var(--c-mute);
  --text-on-inverse: rgba(255, 255, 255, .94);
  --text-on-inverse-dim: rgba(255, 255, 255, .6);
  --border-color: rgba(17, 17, 17, .09);
  --border-color-inverse: rgba(255, 255, 255, .14);
  --card-bg: var(--c-white);
  --accent: var(--c-red);

  /* Type */
  --f-display: 'Plus Jakarta Sans', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --container: 1440px;
  --gutter: clamp(20px, 5vw, 64px);
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-pill: 999px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .7s;
}

html.dark {
  --bg-page: var(--c-black);
  --bg-alt: #161617;
  --text-primary: rgba(255, 255, 255, .94);
  --text-secondary: rgba(255, 255, 255, .64);
  --text-mute: rgba(255, 255, 255, .4);
  --border-color: rgba(255, 255, 255, .13);
  --card-bg: #19191b;
}

/* ---- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%
}

body {
  font-family: var(--f-body);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer
}

ul {
  list-style: none
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em
}

.mono {
  font-family: var(--f-mono)
}

::selection {
  background: var(--c-red);
  color: #fff
}

:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 3px;
  border-radius: 2px
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-red);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0
}

/* ---- Layout utilities ------------------------------------------------------ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter)
}

.section {
  padding-block: clamp(64px, 10vw, 144px)
}

.section-tight {
  padding-block: clamp(48px, 7vw, 96px)
}

.bg-alt {
  background: var(--bg-alt)
}

.bg-inverse {
  background: var(--bg-inverse);
  color: var(--text-on-inverse)
}

.bg-inverse .text-secondary {
  color: var(--text-on-inverse-dim)
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-red);
  font-weight: 500;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--c-red)
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px
}

.section-head.wide {
  max-width: 820px
}

.section-title {
  font-size: clamp(28px, 4vw, 44px)
}

.section-sub {
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 17px;
  max-width: 52ch
}

.text-secondary {
  color: var(--text-secondary)
}

/* Buttons -------------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .01em;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: transform .45s var(--ease), background .3s, color .3s, border-color .3s;
}

.btn-solid {
  background: var(--c-red);
  color: #fff
}

.btn-solid:hover {
  transform: translateY(-2px);
  background: var(--c-red-dim)
}

.btn-outline {
  border: 1.5px solid currentColor
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: #000000;
  color: #ffffff;
}

.bg-inverse .btn-outline {
  color: var(--text-on-inverse)
}

.bg-inverse .btn-outline:hover {
  background: #fff;
  color: var(--c-black)
}

.btn-ghost {
  padding: 0;
  border-radius: 0;
  gap: 8px;
  font-weight: 600
}

.btn-ghost svg {
  transition: transform .4s var(--ease)
}

.btn-ghost:hover svg {
  transform: translateX(5px)
}

/* ---- Loader ---------------------------------------------------------------- */
#loader {
  position: fixed;
  inset: 0;
  background: var(--c-black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}

#loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none
}

.loader-mark {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 28px;
  color: #fff;
  letter-spacing: .02em
}

.loader-bar {
  width: 160px;
  height: 2px;
  background: rgba(255, 255, 255, .15);
  position: relative;
  overflow: hidden;
  border-radius: 2px
}

.loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-red);
  animation: loaderSweep 1.1s var(--ease) infinite;
}

@keyframes loaderSweep {
  0% {
    transform: translateX(-100%)
  }

  100% {
    transform: translateX(100%)
  }
}

/* ---- Custom cursor ---------------------------------------------------------*/
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--c-red);
  transition: opacity .2s
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(179, 18, 46, .55);
  transition: width .25s var(--ease), height .25s var(--ease), opacity .2s, border-color .25s;
}

.cursor-ring.is-active {
  width: 56px;
  height: 56px;
  border-color: var(--c-red)
}

@media (pointer:coarse) {

  .cursor-dot,
  .cursor-ring {
    display: none
  }
}

/* ---- Header ----------------------------------------------------------------*/
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 500;
  padding-block: 26px;
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding-block: 16px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(16px) saturate(160%);
  border-color: var(--border-color);
}

html.dark .site-header.is-scrolled {
  background: rgba(11, 11, 12, .72)
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 20px;
  color: inherit
}

.site-header {
  color: #fff
}

.site-header.is-scrolled {
  color: var(--text-primary)
}

.logo-mark {
  width: 80px;
  height: 80px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: -.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px
}

.nav-link {
  position: relative;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
  opacity: .55;
}

.nav-link:hover::after,
.nav-link.has-mega.is-open::after {
  transform: scaleX(1)
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background .3s
}

.icon-btn:hover {
  background: rgba(128, 128, 128, .15)
}

.nav-link.is-current {
  color: var(--c-red)
}

.nav-link.is-current::after {
  transform: scaleX(1);
  background: var(--c-red);
  opacity: 1
}

.menu-toggle {
  display: none
}

/* Mega menu */
.has-mega {
  position: relative
}

.mega-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--mega-top, 84px);
  background: var(--bg-page);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  color: var(--text-primary);
}

.has-mega.is-open .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}

.mega-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 44px var(--gutter);
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 56px;
}

.mega-intro-title {
  font-size: 22px;
  max-width: 20ch
}

.mega-intro-sub {
  color: var(--text-secondary);
  margin-top: 14px;
  font-size: 14.5px;
  max-width: 32ch
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 32px
}

.mega-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15.5px;
}

.mega-item span.mono {
  color: var(--text-mute);
  font-size: 11px
}

.mega-item:hover {
  color: var(--c-red)
}

/* ---- Mobile nav ------------------------------------------------------------*/
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--c-black);
  z-index: 600;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px var(--gutter);
  transform: translateY(-100%);
  transition: transform .55s var(--ease);
}

.mobile-nav.is-open {
  transform: translateY(0)
}

.mobile-nav a {
  font-family: var(--f-display);
  font-size: clamp(28px, 8vw, 44px);
  font-weight: 700;
  padding-block: 10px;
  display: block
}

.mobile-nav-close {
  position: absolute;
  top: 26px;
  right: var(--gutter)
}

/* ---- Hero -------------------------------------------------------------------*/
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--c-black);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.75) brightness(.62)
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 11, 12, .55) 0%, rgba(11, 11, 12, .35) 35%, rgba(11, 11, 12, .85) 100%)
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: .55;
  pointer-events: none
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: calc(96px + var(--gutter)) var(--gutter) 64px
}

.hero-headline {
  font-size: clamp(36px, 7.4vw, 72px);
  max-width: 16ch
}

.hero-headline .line {
  display: block;
  overflow: hidden
}

.hero-headline .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: lineUp 1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
  animation-play-state: paused
}

@keyframes lineUp {
  to {
    transform: translateY(0)
  }
}

.hero-sub {
  margin-top: 26px;
  max-width: 46ch;
  font-size: 17px;
  color: rgba(255, 255, 255, .72);
  opacity: 0;
  animation: fadeUp .9s var(--ease) forwards;
  animation-delay: .55s;
  animation-play-state: paused
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  animation: fadeUp .9s var(--ease) forwards;
  animation-delay: .75s;
  animation-play-state: paused
}

/* Reveal is gated on body.is-ready (set by main.js once the loader actually lifts)
   so the type-in never finishes invisibly behind the loading screen. */
body.is-ready .hero-headline .line span,
body.is-ready .hero-sub,
body.is-ready .hero-actions {
  animation-play-state: running
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.hero-foot {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65)
}

.scroll-cue .dash {
  width: 26px;
  height: 1px;
  background: rgba(255, 255, 255, .4);
  position: relative;
  overflow: hidden
}

.scroll-cue .dash::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(-100%);
  animation: dashRun 2s ease-in-out infinite
}

@keyframes dashRun {
  50% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(100%)
  }
}

.hero-coord {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .5)
}

/* Marquee ---------------------------------------------------------------------*/
.marquee {
  border-block: 1px solid var(--border-color);
  overflow: hidden;
  white-space: nowrap;
  padding-block: 16px;
}

.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 32s linear infinite
}

.marquee span {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-inline: 20px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.marquee span::after {
  content: '—';
  color: var(--c-red)
}

@keyframes marqueeScroll {
  to {
    transform: translateX(-50%)
  }
}

/* ---- Stats -------------------------------------------------------------------*/
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color)
}

.stat {
  background: var(--bg-page);
  padding: 40px 28px;
  text-align: left
}

.stat-number {
  font-family: var(--f-display);
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 800;
  color: var(--c-red);
  display: flex
}

.stat-label {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-secondary)
}

/* ---- Manifesto ---------------------------------------------------------------*/
.manifesto {
  max-width: 980px
}

.manifesto p {
  font-family: var(--f-display);
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em
}

.manifesto .accent {
  color: var(--c-red)
}

.manifesto-foot {
  margin-top: 36px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap
}

.manifesto-foot .btn-ghost {
  color: var(--text-on-inverse)
}

/* ---- Services ------------------------------------------------------------------*/
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color)
}

.service-card {
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 34px 30px;
  position: relative;
  transition: background .35s;
}

.service-card:hover {
  background: var(--bg-alt)
}

.service-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-mute)
}

.service-card h3 {
  font-size: 19px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px
}

.service-card h3 svg {
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: all .35s var(--ease);
  flex-shrink: 0;
  color: var(--c-red)
}

.service-card:hover h3 svg {
  opacity: 1;
  transform: translate(0, 0)
}

.service-card p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14.5px
}

/* ---- Filter tabs -----------------------------------------------------------------*/
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px
}

.filter-btn {
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-color);
  font-size: 13.5px;
  font-weight: 500;
  transition: all .3s var(--ease);
}

.filter-btn.is-active {
  background: var(--c-black);
  color: #fff;
  border-color: var(--c-black)
}

html.dark .filter-btn.is-active {
  background: var(--c-red);
  border-color: var(--c-red)
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px
}

.showcase-tile {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--c-black);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.showcase-tile.is-hidden {
  display: none
}

.showcase-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .5s
}

.showcase-tile:hover img {
  transform: scale(1.06)
}

.showcase-tile .tile-label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: #fff;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  z-index: 2;
}

.showcase-tile .tile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .72) 100%);
  z-index: 1
}

.tile-drawn {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 28px),
    linear-gradient(155deg, #171718, #0b0b0c);
}

/* ---- Featured projects (editorial) ------------------------------------------------*/
.project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding-block: 64px;
  border-bottom: 1px solid var(--border-color);
}

.project-row:first-of-type {
  border-top: 1px solid var(--border-color)
}

.project-row:nth-of-type(even) .project-media {
  order: 2
}

.project-media {
  position: relative
}

.crop-frame {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--c-red);
  opacity: 0;
  transition: opacity .4s var(--ease) .1s
}

.crop-frame.tl {
  top: -10px;
  left: -10px;
  border-top: 2px solid;
  border-left: 2px solid
}

.crop-frame.tr {
  top: -10px;
  right: -10px;
  border-top: 2px solid;
  border-right: 2px solid
}

.crop-frame.bl {
  bottom: -10px;
  left: -10px;
  border-bottom: 2px solid;
  border-left: 2px solid
}

.crop-frame.br {
  bottom: -10px;
  right: -10px;
  border-bottom: 2px solid;
  border-right: 2px solid
}

.project-media:hover .crop-frame {
  opacity: 1
}

.project-media-inner {
  overflow: hidden;
  aspect-ratio: 6/5
}

.project-media-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease)
}

.project-media:hover .project-media-inner img {
  transform: scale(1.045)
}

.project-index {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 18px
}

.project-title {
  font-size: clamp(24px, 3vw, 36px)
}

.project-desc {
  margin-top: 16px;
  color: var(--text-secondary);
  max-width: 44ch
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color)
}

.meta-item .mono {
  display: block;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px
}

.meta-item span:last-child {
  font-weight: 600;
  font-size: 14.5px
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px
}

.tag {
  padding: 6px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--text-secondary)
}

/* ---- Process timeline --------------------------------------------------------------*/
.process-list {
  border-top: 1px solid var(--border-color-inverse)
}

.process-item {
  display: grid;
  grid-template-columns: 100px 1fr 180px;
  column-gap: 24px;
  row-gap: 0;
  align-items: baseline;
  padding-block: 32px;
  border-bottom: 1px solid var(--border-color-inverse);
  cursor: pointer;
}

.process-item .p-num {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--c-red)
}

.process-item h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(20px, 2.6vw, 30px);
  transition: transform .4s var(--ease)
}

.process-item:hover h3 {
  transform: translateX(10px)
}

.process-item p {
  grid-column: 2;
  grid-row: 2;
  color: var(--text-on-inverse-dim);
  max-width: 52ch;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .5s var(--ease), opacity .4s var(--ease), margin .4s;
}

.process-item.is-open p {
  max-height: 120px;
  opacity: 1;
  margin-top: 14px
}

.p-stage {
  grid-column: 3;
  grid-row: 1;
  font-family: var(--f-mono);
  font-size: 11px;
  text-align: right;
  color: var(--text-on-inverse-dim);
  letter-spacing: .08em;
  text-transform: uppercase
}

/* ---- Before / After ------------------------------------------------------------------*/
.ba-wrap {
  position: relative;
  aspect-ratio: 16/8;
  overflow: hidden;
  border-radius: var(--r-md);
  cursor: ew-resize;
  user-select: none
}

.ba-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none
}

.ba-after {
  clip-path: inset(0 0 0 50%)
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-handle-grip {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--c-black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.ba-label {
  position: absolute;
  top: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(11, 11, 12, .6);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--r-pill)
}

.ba-label.before {
  left: 16px
}

.ba-label.after {
  right: 16px
}

/* ---- Testimonials -----------------------------------------------------------------------*/
.testi-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none
}

.testi-row::-webkit-scrollbar {
  display: none
}

.testi-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(280px, 32vw, 400px);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: 32px;
}

.testi-stars {
  display: flex;
  gap: 3px;
  color: var(--c-red)
}

.testi-text {
  margin-top: 18px;
  font-size: 15.5px;
  line-height: 1.65
}

.testi-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px
}

.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-black);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

html.dark .testi-avatar {
  background: var(--c-red)
}

.testi-name {
  font-weight: 600;
  font-size: 14px
}

.testi-loc {
  font-size: 12.5px;
  color: var(--text-mute)
}

.testi-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-mute);
  margin-top: 14px
}

.testi-nav {
  display: flex;
  gap: 10px;
  margin-top: 32px
}

.testi-nav button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all .3s
}

.testi-nav button:hover {
  background: var(--c-black);
  color: #fff;
  border-color: var(--c-black)
}

/* ---- Articles ----------------------------------------------------------------------------*/
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px
}

.article-card {
  display: block
}

.article-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--r-md);
  position: relative;
  background: var(--bg-alt)
}

.article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease)
}

.article-card:hover .article-media img {
  transform: scale(1.06)
}

.article-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  color: var(--c-black);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: .05em
}

.article-card h3 {
  margin-top: 20px;
  font-size: 19px;
  line-height: 1.35
}

.article-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-mute);
  font-family: var(--f-mono)
}

/* ---- Contact CTA -------------------------------------------------------------------------*/
.cta-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: end
}

.cta-title {
  font-size: clamp(32px, 5vw, 58px);
  max-width: 14ch
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-color-inverse)
}

.contact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
  border-bottom: 1px solid var(--border-color-inverse);
  font-size: 17px;
  font-weight: 600;
}

.contact-list a svg {
  color: var(--c-red);
  transition: transform .4s var(--ease)
}

.contact-list a:hover svg {
  transform: translate(4px, -4px)
}

.contact-list .mono {
  font-size: 11px;
  color: var(--text-on-inverse-dim);
  display: block;
  margin-bottom: 4px
}

/* ---- Footer -------------------------------------------------------------------------------*/
.site-footer {
  padding-block: 88px 32px
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border-color-inverse)
}

.footer-brand p {
  margin-top: 18px;
  color: var(--text-on-inverse-dim);
  max-width: 32ch;
  font-size: 14.5px
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 26px
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color-inverse);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all .3s
}

.footer-social a:hover {
  background: var(--c-red);
  border-color: var(--c-red)
}

.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-on-inverse-dim);
  font-weight: 500;
  margin-bottom: 20px
}

.footer-col a,
.footer-col p {
  display: block;
  padding-block: 7px;
  font-size: 14.5px;
  color: var(--text-on-inverse-dim);
  transition: color .3s
}

.footer-col a:hover {
  color: #fff
}

.newsletter-form {
  display: flex;
  margin-top: 14px;
  border-bottom: 1px solid var(--border-color-inverse);
  padding-bottom: 10px
}

.newsletter-form input {
  background: none;
  border: 0;
  color: #fff;
  flex: 1;
  font-size: 14px
}

.newsletter-form input::placeholder {
  color: var(--text-on-inverse-dim)
}

.newsletter-form button {
  color: var(--c-red)
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  font-size: 13px;
  color: var(--text-on-inverse-dim)
}

.footer-bottom a {
  border-bottom: 1px solid transparent
}

.footer-bottom a:hover {
  border-color: currentColor
}

/* ---- Back to top ---------------------------------------------------------------------------*/
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-black);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .4s var(--ease);
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}

/* ---- Lightbox --------------------------------------------------------------------------------*/
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 7, .94);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
  padding: 40px;
}

#lightbox.is-open {
  opacity: 1;
  visibility: visible
}

#lightbox img {
  max-width: min(1100px, 90vw);
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--r-sm)
}

#lightbox .lb-close {
  position: absolute;
  top: 28px;
  right: 28px;
  color: #fff;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  display: grid;
  place-items: center
}

#lightbox .lb-caption {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, .7);
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .05em
}

/* ---- Reveal utility --------------------------------------------------------------------------*/
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease)
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0)
}

.reveal-stagger.is-visible>* {
  transition-delay: calc(var(--i, 0) * 90ms)
}

/* ---- Responsive ------------------------------------------------------------------------------*/
@media (max-width:1080px) {

  .main-nav,
  .nav-cta .btn {
    display: none
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px
  }

  .mega-panel {
    display: none !important
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr))
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .project-row {
    grid-template-columns: 1fr
  }

  .project-row:nth-of-type(even) .project-media {
    order: 0
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:640px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr
  }

  .showcase-grid {
    grid-template-columns: 1fr
  }

  .process-item {
    grid-template-columns: 50px 1fr;
    row-gap: 10px
  }

  .p-stage {
    display: none
  }

  .footer-top {
    grid-template-columns: 1fr
  }

  .articles-grid {
    grid-template-columns: 1fr
  }

  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px
  }
}

/* ---- Icon sizing -----------------------------------------------------------------------------*/
svg.lucide {
  width: 20px;
  height: 20px;
  stroke-width: 1.6;
  flex-shrink: 0
}

.nav-link svg.lucide {
  width: 14px;
  height: 14px;
  stroke-width: 2
}

.icon-btn svg.lucide {
  width: 19px;
  height: 19px
}

.btn svg.lucide {
  width: 16px;
  height: 16px
}

.btn-ghost svg.lucide {
  width: 15px;
  height: 15px
}

.service-card h3 svg.lucide {
  width: 18px;
  height: 18px
}

.contact-list a svg.lucide {
  width: 20px;
  height: 20px
}

.footer-social a svg.lucide {
  width: 16px;
  height: 16px
}

.testi-stars svg.lucide {
  width: 14px;
  height: 14px
}

.mobile-nav-close svg.lucide {
  width: 26px;
  height: 26px
}

.menu-toggle svg.lucide {
  width: 22px;
  height: 22px
}

#back-to-top svg.lucide {
  width: 18px;
  height: 18px
}

.mega-item svg.lucide {
  width: 15px;
  height: 15px;
  margin-left: auto;
  opacity: .4
}

.testi-badge svg.lucide {
  width: 13px;
  height: 13px
}

.ba-handle-grip svg.lucide {
  width: 16px;
  height: 16px
}

/* ---- Page header (interior pages) ------------------------------------------------------------*/
.page-header {
  position: relative;
  background: var(--c-black);
  color: #fff;
  overflow: hidden;
  padding: calc(120px + var(--gutter)) var(--gutter) 72px
}

.page-header .container {
  position: relative;
  z-index: 2;
  padding-inline: 0
}

.page-header-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .32;
  pointer-events: none
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: .06em
}

.page-title {
  font-size: clamp(34px, 6vw, 62px);
  max-width: 20ch
}

.page-sub {
  margin-top: 20px;
  max-width: 58ch;
  color: rgba(255, 255, 255, .68);
  font-size: 16.5px
}

/* ---- FAQ accordion ----------------------------------------------------------------------------*/
.faq-list {
  border-top: 1px solid var(--border-color)
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding-block: 24px;
  cursor: pointer
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16.5px
}

.faq-q svg {
  color: var(--c-red);
  transition: transform .35s var(--ease);
  flex-shrink: 0
}

.faq-item.is-open .faq-q svg {
  transform: rotate(135deg)
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .45s var(--ease), opacity .35s, margin .35s;
  color: var(--text-secondary);
  max-width: 62ch;
  font-size: 15px
}

.faq-item.is-open .faq-a {
  max-height: 220px;
  opacity: 1;
  margin-top: 14px
}

/* ---- Milestones / timeline list (About) --------------------------------------------------------*/
.milestone-list {
  border-top: 1px solid var(--border-color)
}

.milestone {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  padding-block: 30px;
  border-bottom: 1px solid var(--border-color)
}

.milestone .m-year {
  font-family: var(--f-mono);
  color: var(--c-red);
  font-size: 14px;
  padding-top: 4px
}

.milestone h3 {
  font-size: 19px
}

.milestone p {
  color: var(--text-secondary);
  margin-top: 8px;
  max-width: 56ch;
  font-size: 14.5px
}

/* ---- Value cards (About) -------------------------------------------------------------------------*/
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color)
}

.value-card {
  background: var(--bg-page);
  padding: 36px 30px
}

.value-card svg.lucide {
  color: var(--c-red);
  width: 26px;
  height: 26px;
  margin-bottom: 20px
}

.value-card h3 {
  font-size: 18px
}

.value-card p {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 14.5px
}

/* ---- Founder / story split ------------------------------------------------------------------------*/
.story-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center
}

.story-media {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--r-md);
  position: relative
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.story-copy p {
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 52ch
}

.founder-sign {
  margin-top: 26px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px
}

.founder-role {
  color: var(--text-mute);
  font-size: 13px;
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 2px
}

/* ---- Recognition / awards row ----------------------------------------------------------------------*/
.awards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid var(--border-color-inverse)
}

.award-item {
  padding: 26px 4px;
  border-bottom: 1px solid var(--border-color-inverse)
}

.award-item .mono {
  font-size: 11px;
  color: var(--c-red);
  text-transform: uppercase;
  letter-spacing: .08em
}

.award-item h3 {
  font-size: 16.5px;
  margin-top: 8px;
  max-width: 24ch;
  font-weight: 600
}

/* ---- Stage timeline (Process page) -----------------------------------------------------------------*/
.stage-track {
  border-top: 1px solid var(--border-color-inverse)
}

.stage-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 28px;
  padding-block: 44px;
  border-bottom: 1px solid var(--border-color-inverse)
}

.stage-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--c-red);
  color: var(--c-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 15px;
  background: var(--c-black);
}

.stage-row h3 {
  font-size: clamp(20px, 2.6vw, 28px)
}

.stage-row p {
  margin-top: 12px;
  max-width: 58ch;
  color: var(--text-on-inverse-dim)
}

.stage-duration {
  margin-top: 16px;
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-on-inverse-dim);
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid var(--border-color-inverse);
  padding: 6px 14px;
  border-radius: var(--r-pill)
}

/* ---- Masonry (Projects page) -----------------------------------------------------------------------*/
.masonry {
  columns: 3;
  column-gap: 2px
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 2px;
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 2px
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform .8s var(--ease)
}

.masonry-item:hover img {
  transform: scale(1.045)
}

.masonry-item .tile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .75) 100%)
}

.masonry-item .m-label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: #fff;
  z-index: 2
}

.masonry-item .m-label .mono {
  display: block;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 4px
}

.masonry-item .m-label span:last-child {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px
}

.masonry-item.is-hidden {
  display: none
}

/* ---- Drawing showcase cards (Planning Drawings page) -------------------------------------------------*/
.drawing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px
}

.drawing-card {
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--card-bg);
  transition: opacity .4s, transform .4s
}

.drawing-card.is-hidden {
  display: none
}

.drawing-visual {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden
}

.drawing-status {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(11, 11, 12, .75);
  color: #fff
}

.drawing-status.approved {
  background: rgba(28, 120, 60, .85)
}

.drawing-status.pending {
  background: rgba(179, 18, 46, .85)
}

.drawing-body {
  padding: 22px 24px
}

.drawing-body h3 {
  font-size: 17px
}

.drawing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-mute);
  font-family: var(--f-mono)
}

.drawing-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px
}

.drawing-actions .btn {
  padding: 10px 18px;
  font-size: 13px
}

.download-btn {
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.download-btn:hover {
  color: #ffffff;
  background-color: #000000;
  /* Change to your desired hover color */
}

/* ---- Blog search + featured post ----------------------------------------------------------------------*/
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 44px
}

.search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--r-pill);
  padding: 12px 20px;
  min-width: 260px;
  color: var(--text-mute);
}

.search-input input {
  background: none;
  border: 0;
  flex: 1;
  font-size: 14px;
  color: var(--text-primary)
}

.search-input input:focus {
  outline: none
}

.featured-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 64px
}

.featured-post .article-media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 320px;
  border-radius: 0
}

.featured-post-body {
  padding: 36px 40px 36px 0
}

.featured-post-body h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin-top: 14px
}

.featured-post-body p {
  margin-top: 14px;
  color: var(--text-secondary)
}

.blog-card.is-hidden {
  display: none
}

.no-results {
  padding: 60px 0;
  text-align: center;
  color: var(--text-mute);
  display: none
}

.no-results.is-visible {
  display: block
}

/* ---- Careers --------------------------------------------------------------------------------------------*/
.perk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color)
}

.perk-card {
  background: var(--bg-page);
  padding: 30px 24px;
  text-align: center
}

.perk-card svg.lucide {
  color: var(--c-red);
  width: 24px;
  height: 24px;
  margin-bottom: 16px
}

.perk-card h3 {
  font-size: 14.5px
}

.job-list {
  border-top: 1px solid var(--border-color)
}

.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap
}

.job-card h3 {
  font-size: 19px
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px
}

.job-meta span {
  font-size: 12.5px;
  color: var(--text-mute);
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .04em
}

/* ---- Contact page ------------------------------------------------------------------------------------------*/
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px
}

.form-field {
  margin-bottom: 22px
}

.form-field label {
  display: block;
  font-size: 12.5px;
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-mute);
  margin-bottom: 10px
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid var(--border-color);
  background: none;
  padding: 12px 2px;
  font-size: 15.5px;
  font-family: var(--f-body);
  color: var(--text-primary);
  transition: border-color .3s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--c-red);
  outline: none
}

.form-field textarea {
  resize: vertical;
  min-height: 110px
}

.form-success {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  background: var(--bg-alt);
  margin-top: 20px;
}

.form-success.is-visible {
  display: flex
}

.form-success svg.lucide {
  color: var(--c-red)
}

.info-panel {
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: 36px
}

.map-embed {
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 28px;
  filter: grayscale(.3)
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding-block: 10px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14.5px
}

/* ---- Phase 2 responsive ---------------------------------------------------------------------------------------*/
@media (max-width:1080px) {
  .value-grid {
    grid-template-columns: 1fr 1fr
  }

  .masonry {
    columns: 2
  }

  .featured-post {
    grid-template-columns: 1fr
  }

  .featured-post .article-media {
    aspect-ratio: 16/9;
    min-height: 0
  }

  .featured-post-body {
    padding: 28px
  }

  .contact-layout {
    grid-template-columns: 1fr
  }

  .perk-grid {
    grid-template-columns: 1fr 1fr
  }

  .story-split {
    grid-template-columns: 1fr
  }

  .stage-row {
    grid-template-columns: 56px 1fr
  }

  .drawing-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr))
  }
}

@media (max-width:640px) {
  .masonry {
    columns: 1
  }

  .value-grid {
    grid-template-columns: 1fr
  }

  .perk-grid {
    grid-template-columns: 1fr 1fr
  }

  .milestone {
    grid-template-columns: 70px 1fr
  }

  .awards-row {
    grid-template-columns: 1fr 1fr
  }

  .job-card {
    flex-direction: column;
    align-items: flex-start
  }
}

/* ---- Service detail rows (Services page) --------------------------------------------------------*/
.service-detail {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 32px;
  padding-block: 52px;
  border-bottom: 1px solid var(--border-color)
}

.service-detail:first-of-type {
  border-top: 1px solid var(--border-color)
}

.service-detail .s-icon {
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-red);
  flex-shrink: 0
}

.service-detail h3 {
  font-size: clamp(21px, 2.6vw, 27px);
  display: flex;
  align-items: baseline;
  gap: 14px
}

.service-detail h3 .service-num {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--text-mute);
  font-weight: 400
}

.service-detail .s-desc {
  margin-top: 12px;
  color: var(--text-secondary);
  max-width: 62ch
}

.service-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-top: 22px;
  padding: 0
}

.service-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary)
}

.service-benefits svg.lucide {
  color: var(--c-red);
  width: 15px;
  height: 15px;
  flex-shrink: 0
}

.service-detail-foot {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 26px;
  flex-wrap: wrap
}

/* ---- Phase 2 responsive (services) ----------------------------------------------------------------*/
@media (max-width:640px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: 16px
  }

  .service-detail .s-icon {
    margin-bottom: 4px
  }
}

/* ---- Reduced motion --------------------------------------------------------------------------*/
@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    scroll-behavior: auto !important
  }

  .hero-headline .line span {
    transform: translateY(0);
    opacity: 1
  }

  .reveal {
    opacity: 1;
    transform: none
  }
}

/* ==========================================================================
   FLIPBOOK — embedded drawing set (planning-drawings.html)
   ========================================================================== */
.flipbook-panel {
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card-bg);
}

.flipbook-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.flipbook-bar .mono:first-child {
  color: var(--c-red);
}

.flipbook-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--c-black);
}

.flipbook-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.flipbook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

/* ---- Page-index cards ---------------------------------------------------- */
.drawing-card {
  transition: transform .45s var(--ease), border-color .35s, opacity .4s;
}

.drawing-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-red);
}

/* .drawing-visual is an <a> on this page, so it needs to fill like a block */
a.drawing-visual {
  display: block;
}

.drawing-page-no {
  position: absolute;
  right: 16px;
  bottom: 10px;
  z-index: 2;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, .3);
  transition: color .35s var(--ease);
}

.drawing-card:hover .drawing-page-no {
  color: rgba(255, 255, 255, .6);
}

@media (max-width:640px) {
  .flipbook-frame {
    aspect-ratio: 3/4;
  }

  .flipbook-hint {
    display: none;
  }

  .flipbook-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ---- Drawing card cover images ------------------------------------------- */
.drawing-visual .tile-drawn {
  position: absolute;
  inset: 0;
}

.drawing-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform .8s var(--ease);
}

.drawing-card:hover .drawing-cover {
  transform: scale(1.05);
}

/* Keeps the page number and status badge legible over a light drawing */
.drawing-cover-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 11, 12, .45) 0%, transparent 32%),
    linear-gradient(0deg, rgba(11, 11, 12, .5) 0%, transparent 42%);
}

/* Sit above both the cover and its scrim */
.drawing-visual .drawing-status,
.drawing-visual .drawing-page-no {
  z-index: 3;
}

.drawing-visual .drawing-page-no {
  color: rgba(255, 255, 255, .82);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}

.drawing-card:hover .drawing-page-no {
  color: #fff;
}

/* ==========================================================================
   CONTACT FORM — validation, sending and error states
   ========================================================================== */

/* Honeypot: off-screen for people, still present for bots. Deliberately not
   display:none, since some bots skip hidden fields. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.field-error {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--c-red);
  min-height: 0;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--c-red);
}

.form-field.has-error label {
  color: var(--c-red);
}

/* ---- Error banner (mirrors .form-success) -------------------------------- */
.form-error {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border: 1px solid var(--c-red);
  border-radius: var(--r-md);
  background: rgba(179, 18, 46, .06);
  margin-top: 20px;
  font-size: 14.5px;
}

.form-error.is-visible {
  display: flex;
}

.form-error svg.lucide {
  color: var(--c-red);
  flex-shrink: 0;
}

/* ---- Sending state -------------------------------------------------------- */
.form-submit {
  position: relative;
}

.form-submit[disabled] {
  opacity: .75;
  cursor: wait;
}

.form-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: formSpin .7s linear infinite;
}

.contact-form.is-sending .form-spinner {
  display: inline-block;
}

.contact-form.is-sending .form-submit-label {
  opacity: .8;
}

@keyframes formSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion:reduce) {
  .form-spinner {
    animation-duration: 1.6s;
  }
}