/* =====================================================================
   CASTELLANO — Cinematic architecture landing
   ===================================================================== */
:root {
  --ink: #0F0F0F;
  --gold: #C6A972;
  --concrete: #D8D2C8;
  --wood: #6E6253;
  --warm: #F5F3EF;
  --warm-2: #EAE6DD;
  --line: rgba(245, 243, 239, 0.12);
  --line-strong: rgba(245, 243, 239, 0.28);
  --line-ink: rgba(15, 15, 15, 0.12);
  --line-ink-strong: rgba(15, 15, 15, 0.28);
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --serif: 'Playfair Display', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--warm);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
img { display: block; max-width: 100%; user-select: none; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(198, 169, 114, 0.18);
}

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  color: var(--warm);
  text-shadow: 0 1px 18px rgba(0,0,0,0.45);
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  padding: 14px 0;
  background: rgba(11, 11, 11, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  text-shadow: none;
}
.nav__inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__brand {
  display: flex; align-items: center; gap: 14px;
}
.nav__mark {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid currentColor;
}
.nav__wordmark { display: flex; flex-direction: column; line-height: 1; }
.nav__name {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.14em;
}
.nav__sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--gold);
  opacity: 0.95;
  margin-top: 4px;
  text-transform: uppercase;
}
.nav__links {
  display: flex; gap: 4px; list-style: none; padding: 0; margin: 0;
}
.nav__links a {
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__num { font-size: 9px; opacity: 0.55; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.nav__cta:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  height: 480vh; /* scroll length for image sequence */
  background: var(--ink);
}
.hero__sticky {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
}
.hero__images {
  position: absolute; inset: 0;
  will-change: transform, filter;
  transform-origin: center 60%;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 65%;
  will-change: opacity;
  transition: opacity 0.05s linear;
  backface-visibility: hidden;
}
.hero__vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 40%, transparent 30%, rgba(15,15,15,0.55) 100%),
    linear-gradient(180deg, rgba(15,15,15,0.45) 0%, transparent 22%, transparent 60%, rgba(15,15,15,0.75) 100%);
}
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
  mix-blend-mode: overlay;
}

.hero__ui {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 110px 48px 48px;
  pointer-events: none;
}
.hero__ui > * { pointer-events: auto; }

.hero__top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--warm);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 9px 14px;
  background: rgba(11, 11, 11, 0.55);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(245, 243, 239, 0.14);
  color: var(--warm);
}
.hero__eyebrow--right { gap: 14px; }
.hero__eyebrow .dot { box-shadow: 0 0 0 3px rgba(198,169,114,0.28); }
.hero__bar { width: 24px; height: 1px; background: var(--gold); opacity: 0.7; }

.hero__center {
  display: flex; flex-direction: column;
  gap: 28px;
  max-width: 1320px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 148px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--warm);
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.hero__line { display: block; }
.hero__line span, .hero__line em {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 1.1s var(--ease) forwards;
}
@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero__lede {
  font-size: 16px;
  line-height: 1.55;
  max-width: 480px;
  opacity: 0.88;
  margin: 0;
  font-weight: 300;
  color: var(--warm);
}
.hero__lede em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.hero__lede-stack {
  position: relative;
  min-height: 56px;
}
.hero__lede-stack .hero__lede {
  position: absolute;
  top: 0; left: 0;
  transition: opacity 0.7s var(--ease-soft);
  will-change: opacity;
  text-shadow: 0 1px 24px rgba(0,0,0,0.35);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px;
}
.hero__stage {
  display: flex; flex-direction: column; gap: 14px;
  min-width: 320px;
}
.hero__stage-meta {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
}
.hero__stage-num {
  color: var(--gold);
}
.hero__stage-bar {
  flex: 1; height: 1px; background: rgba(245,243,239,0.18); position: relative; overflow: hidden;
}
.hero__stage-bar > span {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--gold);
  transition: width 0.12s linear;
}
.hero__stage-label {
  display: flex; flex-direction: column; gap: 4px;
}
.hero__stage-title {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__stage-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  opacity: 0.7;
  text-transform: uppercase;
}

.hero__scroll {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.8;
}
.hero__scroll-line {
  width: 80px; height: 1px; background: rgba(245,243,239,0.2); position: relative; overflow: hidden;
}
.hero__scroll-line span {
  position: absolute; left: -30%; top: 0; bottom: 0; width: 40%;
  background: var(--gold);
  animation: scrollPulse 2.4s var(--ease-soft) infinite;
}
@keyframes scrollPulse {
  0% { left: -40%; } 100% { left: 100%; }
}

/* =====================================================================
   CHAPTER HEADER
   ===================================================================== */
.chapter {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  align-items: end;
  padding: 0 48px;
  margin-bottom: 80px;
  max-width: 1480px;
  margin-left: auto; margin-right: auto;
}
.chapter__meta {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.chapter.is-in .chapter__meta { opacity: 0.85; transform: translateY(0); }
.chapter__num { color: var(--gold); }
.chapter__line { width: 60px; height: 1px; background: currentColor; opacity: 0.4; }
.chapter__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease) 0.1s, transform 1s var(--ease) 0.1s;
}
.chapter.is-in .chapter__title { opacity: 1; transform: translateY(0); }
.chapter__title em { font-style: italic; color: var(--gold); font-weight: 400; }
.chapter__lede {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  max-width: 340px;
  margin: 0;
  font-weight: 300;
  transition: opacity 1s var(--ease) 0.2s, transform 1s var(--ease) 0.2s;
}
.chapter.is-in .chapter__lede { opacity: 0.78; transform: translateY(0); }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about {
  padding: 180px 0 160px;
  position: relative;
}
.about__grid {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 100px;
  align-items: center;
}
.about__image {
  position: relative;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.about__grid.is-in .about__image { opacity: 1; transform: translateX(0); }
.about__image-frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.about__image-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease);
}
.about__image-frame:hover img { transform: scale(1); }
.about__image-caption {
  position: absolute; left: 20px; bottom: 20px;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm);
  background: rgba(15,15,15,0.6);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
}

.about__copy {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease) 0.2s, transform 1s var(--ease) 0.2s;
}
.about__grid.is-in .about__copy { opacity: 1; transform: translateY(0); }
.about__lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.36;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.about__body {
  font-size: 15.5px;
  line-height: 1.7;
  opacity: 0.78;
  margin: 0 0 48px;
  max-width: 520px;
  font-weight: 300;
}
.about__signature {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.about__sig-name {
  font-family: var(--serif); font-size: 19px; letter-spacing: 0.02em;
}
.about__sig-role {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; opacity: 0.6; margin-top: 6px;
}
.about__sig-mark { color: var(--gold); opacity: 0.7; }

.about__credentials {
  display: flex; gap: 48px;
}
.about__credentials > div {
  display: flex; flex-direction: column;
}
.about__credentials strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.about__credentials span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 10px;
}

/* =====================================================================
   SERVICES
   ===================================================================== */
.services {
  padding: 160px 0 160px;
  background: var(--ink);
  position: relative;
}
.services::before {
  content: ''; position: absolute; top: 0; left: 48px; right: 48px; height: 1px;
  background: var(--line);
}
.services__grid {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  position: relative;
  padding: 56px 44px 64px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: 18px;
  min-height: 380px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), background 0.6s var(--ease-soft);
}
.service.is-in { opacity: 1; transform: translateY(0); }
.service__head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
}
.service__num { color: var(--gold); }
.service__tag { opacity: 0.5; }
.service__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 12px 0 4px;
}
.service__desc {
  font-size: 14.5px;
  line-height: 1.6;
  opacity: 0.7;
  margin: 0;
  max-width: 380px;
  font-weight: 300;
}
.service__more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  transition: opacity 0.3s, gap 0.4s var(--ease);
}
.service:hover .service__more { opacity: 1; gap: 18px; }
.service__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 0%, rgba(198,169,114,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-soft);
}
.service:hover .service__glow { opacity: 1; }
.service:hover { background: rgba(198,169,114,0.025); }

/* =====================================================================
   BLUEPRINT
   ===================================================================== */
.bp {
  padding: 160px 0 160px;
  background: #0B0B0B;
  position: relative;
}
.bp__stage {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 48px;
}
.bp__frame {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  background: #060606;
  overflow: hidden;
  border: 1px solid var(--line);
}
.bp__layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transition: opacity 1.1s var(--ease-soft);
}
.bp__layer--photo {
  object-fit: cover;
}
.bp__render { background: #0a0a0a; }
.bp__render img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.05) saturate(0.7) hue-rotate(-8deg);
}
.bp__render-wash {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(198,169,114,0.18) 0%, transparent 40%, rgba(110,98,83,0.22) 100%);
  mix-blend-mode: overlay;
}
.bp__render-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(245,243,239,0.04) 0px, transparent 2px, transparent 4px);
  pointer-events: none;
}

.bp__crosshair {
  position: absolute; inset: 32px;
  pointer-events: none;
}
.bp__corner {
  position: absolute; width: 18px; height: 18px;
  border-color: var(--gold);
  border-style: solid;
}
.bp__corner--tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.bp__corner--tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.bp__corner--bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.bp__corner--br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.bp__readout {
  position: absolute; bottom: -8px; left: 50%; transform: translate(-50%, 100%);
  display: flex; gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  background: rgba(11,11,11,0.85);
  padding: 6px 12px;
  white-space: nowrap;
}

.bp__tabs {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.bp__tab {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 24px 22px;
  text-align: left;
  border-right: 1px solid var(--line);
  position: relative;
  opacity: 0.55;
  transition: opacity 0.4s;
}
.bp__tab:last-child { border-right: 0; }
.bp__tab:hover { opacity: 0.85; }
.bp__tab.is-active { opacity: 1; }
.bp__tab-num {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--gold);
}
.bp__tab-label {
  font-family: var(--serif); font-size: 20px; letter-spacing: -0.005em;
}
.bp__tab-bar {
  position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: transparent;
}
.bp__tab-bar > span {
  display: block; height: 100%; background: var(--gold);
  transition: width 0.5s var(--ease);
}

/* =====================================================================
   PROJECTS
   ===================================================================== */
.projects {
  padding: 160px 0 140px;
  background: var(--warm);
  color: var(--ink);
}
.projects .chapter__meta,
.projects .chapter__title em,
.projects .chapter__num { color: var(--wood); }
.projects .chapter__title em { color: var(--gold); }
.projects .chapter__title { color: var(--ink); }
.projects .chapter__lede { color: rgba(15,15,15,0.65); }
.projects .chapter__line { opacity: 0.3; background: var(--ink); }

.projects__grid {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 24px;
}
.project {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--warm-2);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.project.is-in { opacity: 1; transform: translateY(0); }
.project--tall { grid-column: span 2; grid-row: span 3; }
.project--wide { grid-column: span 4; grid-row: span 2; }
.project--sq { grid-column: span 2; grid-row: span 2; }
.project__media {
  position: absolute; inset: 0;
  overflow: hidden;
}
.project__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.6s var(--ease), filter 0.6s var(--ease-soft);
  filter: saturate(0.92);
}
.project:hover .project__media img { transform: scale(1.1); filter: saturate(1.05); }
.project::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,15,15,0.7) 100%);
  pointer-events: none;
}
.project__meta {
  position: absolute; left: 24px; right: 24px; bottom: 22px;
  color: var(--warm);
  z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(8px);
  transition: transform 0.5s var(--ease);
}
.project:hover .project__meta { transform: translateY(0); }
.project__tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; opacity: 0.78;
}
.project__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 2px 0 0;
}
.project__loc {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  opacity: 0.6; text-transform: uppercase; margin-top: 4px;
}
.project__view {
  position: absolute; top: 22px; right: 22px;
  z-index: 2; color: var(--warm);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(15,15,15,0.5);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.project:hover .project__view { opacity: 1; }

.projects__foot {
  max-width: 1480px; margin: 60px auto 0; padding: 0 48px;
  display: flex; justify-content: flex-end;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.4s var(--ease);
}
.link-arrow:hover { gap: 22px; }

/* =====================================================================
   PROCESS
   ===================================================================== */
.proc {
  padding: 160px 0 160px;
  background: var(--ink);
  position: relative;
}
.proc__timeline {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  padding-left: 130px;
}
.proc__track {
  position: absolute; left: 78px; top: 8px; bottom: 8px;
  width: 1px; background: var(--line);
  overflow: hidden;
}
.proc__fill {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--gold);
  transition: height 0.2s linear;
}
.proc__step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  padding: 32px 0;
}
.proc__step::before {
  content: ''; position: absolute; left: -52px; top: 50%;
  width: 32px; height: 1px;
  background: var(--line);
  transition: background 0.6s var(--ease-soft);
}
.proc__step.is-active::before { background: var(--gold); }
.proc__dot {
  position: absolute; left: -57px; top: 50%; transform: translateY(-50%);
  width: 11px; height: 11px;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  display: grid; place-items: center;
  transition: border-color 0.4s, transform 0.4s;
}
.proc__dot > span {
  width: 5px; height: 5px;
  background: var(--gold);
  transform: scale(0);
  transition: transform 0.5s var(--ease);
}
.proc__step.is-active .proc__dot { border-color: var(--gold); transform: translateY(-50%) scale(1.08); }
.proc__step.is-active .proc__dot > span { transform: scale(1); }

.proc__body {
  display: grid;
  grid-template-columns: 60px 1fr 2fr;
  gap: 40px;
  align-items: baseline;
}
.proc__num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--gold);
}
.proc__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  letter-spacing: -0.012em;
  margin: 0;
  transition: color 0.5s var(--ease);
}
.proc__step:not(.is-active) .proc__title { opacity: 0.45; }
.proc__desc {
  font-size: 14.5px; line-height: 1.6; opacity: 0; transform: translateX(10px);
  margin: 0;
  font-weight: 300;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.proc__step.is-active .proc__desc { opacity: 0.78; transform: translateX(0); }
.proc__rule {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line);
}
.proc__step:last-child .proc__rule { display: none; }

/* =====================================================================
   STATS
   ===================================================================== */
.stats {
  padding: 140px 0;
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.stats__inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 48px;
}
.stats__head {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; opacity: 0.85;
  margin-bottom: 60px;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.stat {
  padding: 50px 32px 36px 0;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.stat.is-in { opacity: 1; transform: translateY(0); }
.stat:last-child { border-right: 0; }
.stat__value {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 6vw, 92px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--gold);
}
.stat__label {
  font-family: var(--serif);
  font-size: 17px;
  margin-top: 8px;
}
.stat__sub {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.55;
}

/* =====================================================================
   TESTIMONIALS
   ===================================================================== */
.test {
  padding: 160px 0;
  background: var(--ink);
}
.test__grid {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.test__card {
  margin: 0;
  display: flex; flex-direction: column; gap: 20px;
  padding: 40px 36px 36px;
  border: 1px solid var(--line);
  background: rgba(245, 243, 239, 0.015);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), border-color 0.5s;
}
.test__card.is-in { opacity: 1; transform: translateY(0); }
.test__card:hover { border-color: rgba(198,169,114,0.3); }
.test__quote { color: var(--gold); opacity: 0.6; }
.test__q {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.42;
  letter-spacing: -0.008em;
  margin: 0;
  text-wrap: pretty;
  font-weight: 400;
}
.test__a {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.test__name {
  font-family: var(--serif); font-size: 16px;
}
.test__role {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.6;
}

/* =====================================================================
   CTA
   ===================================================================== */
.cta {
  position: relative;
  background: var(--ink);
  padding: 200px 0 200px;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 40%, rgba(198,169,114,0.10), transparent 70%);
  pointer-events: none;
}
.cta__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.cta__inner.is-in { opacity: 1; transform: translateY(0); }
.cta__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.26em;
  text-transform: uppercase; opacity: 0.85;
  margin-bottom: 40px;
}
.cta__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7.5vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  text-wrap: balance;
}
.cta__title span { display: block; }
.cta__title em { font-style: italic; color: var(--gold); }
.cta__lede {
  max-width: 580px;
  margin: 0 auto 48px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.78;
  font-weight: 300;
}
.cta__actions {
  display: inline-flex; gap: 16px;
  margin-bottom: 80px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), gap 0.4s var(--ease);
}
.btn:hover { gap: 22px; }
.btn--primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--primary:hover { background: transparent; color: var(--gold); }
.btn--ghost { color: var(--warm); }
.btn--ghost:hover { background: var(--warm); color: var(--ink); }

.cta__contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
  text-align: left;
}
.cta__contact > div {
  display: flex; flex-direction: column; gap: 10px;
}
.cta__contact-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.cta__contact-value {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.85;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  background: #060606;
  padding: 80px 0 32px;
}
.footer__inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 80px;
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__mark {
  width: 50px; height: 50px; display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--gold);
}
.footer__name {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.16em;
  margin-top: 8px;
}
.footer__tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.55;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer__col-h {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer__cols ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__cols a {
  font-family: var(--serif); font-size: 16px;
  opacity: 0.85; transition: color 0.3s, opacity 0.3s;
}
.footer__cols a:hover { color: var(--gold); opacity: 1; }
.footer__rule {
  max-width: 1480px; margin: 60px auto 28px;
  padding: 0 48px;
  height: 1px; background: var(--line);
}
.footer__legal {
  max-width: 1480px; margin: 0 auto;
  padding: 0 48px;
  display: flex; justify-content: space-between; gap: 20px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.5;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .nav__inner { padding: 0 28px; }
  .nav__links { display: none; }
  .chapter { padding: 0 28px; grid-template-columns: 1fr; gap: 18px; }
  .chapter__lede { max-width: 100%; }
  .hero__ui { padding: 100px 28px 32px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; padding: 0 28px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); padding: 0 28px; }
  .bp__stage { padding: 0 28px; }
  .bp__tabs { grid-template-columns: repeat(2, 1fr); }
  .bp__tab { border-bottom: 1px solid var(--line); }
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 28px;
  }
  .project--tall, .project--wide, .project--sq { grid-column: span 2; grid-row: span 2; }
  .proc__timeline { padding-left: 90px; padding-right: 28px; }
  .proc__track { left: 36px; }
  .proc__dot { left: -97px; }
  .proc__step::before { left: -92px; }
  .proc__body { grid-template-columns: 1fr; gap: 14px; }
  .stats__inner { padding: 0 28px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .test__grid { grid-template-columns: 1fr; padding: 0 28px; }
  .cta__contact { grid-template-columns: 1fr; gap: 28px; }
  .footer__inner, .footer__legal, .footer__rule { padding: 0 28px; }
  .footer__inner { grid-template-columns: 1fr; gap: 48px; }
  .footer__legal { flex-direction: column; gap: 8px; }
}
@media (max-width: 640px) {
  .hero__title { font-size: 52px; }
  .services__grid { grid-template-columns: 1fr; }
  .about__credentials { flex-wrap: wrap; gap: 28px; }
}
