/* ------------------------------------------------------------------
   Makhubele Construction — site styles
   Palette is lifted from the logo: ink black, graphite grey, off-white.
   One warm accent (brass) is used sparingly for emphasis.
------------------------------------------------------------------- */

:root {
  --ink: #1c1d20;
  --ink-2: #26272b;
  --ink-3: #303237;
  --graphite: #7d8085;
  --graphite-2: #a2a5aa;
  --stone: #e9e7e2;
  --paper: #f4f2ee;
  --white: #ffffff;
  --brass: #b8925a;
  --brass-2: #d3b27c;
  --line: rgba(28, 29, 32, 0.12);
  --line-dark: rgba(244, 242, 238, 0.14);

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* aliases kept so the rest of the sheet reads the same: two families, no more */
  --font-serif: var(--font-display);
  --font-mono: var(--font-body);

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--ink); color: var(--paper); }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- typography helpers ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.display em, .h2 em {
  font-style: normal;
  font-weight: 300;
  color: var(--brass-2);
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 56ch;
}
.dark .lead { color: var(--graphite-2); }

.mono {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Section label — the roof chevron from the logo mark is the motif */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
}
.label::before {
  content: "";
  width: 14px; height: 9px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 82% 100%, 50% 32%, 18% 100%, 0 100%);
  flex: none;
}
.label .num { color: var(--ink); }
.dark .label .num { color: var(--paper); }

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  line-height: 1;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  transition: transform .5s var(--ease), background .3s;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brass);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); color: var(--ink); }
.btn .arrow {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(244,242,238,.12);
  display: grid; place-items: center;
  transition: background .3s;
}
.btn:hover .arrow { background: rgba(28,29,32,.12); }
.btn .arrow svg { width: 12px; height: 12px; }

.btn.light { background: var(--paper); color: var(--ink); }
.btn.light .arrow { background: rgba(28,29,32,.08); }
.btn.ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn.ghost::before { background: var(--ink); }
.btn.ghost:hover { color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.dark .btn.ghost::before { background: var(--paper); }
.dark .btn.ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--paper); }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px;
  position: relative;
}
.link::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- header ---------- */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: padding .4s var(--ease), background .4s, box-shadow .4s;
  color: var(--paper);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header.is-scrolled {
  padding: 10px 0;
  background: rgba(244,242,238,.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header.on-light { color: var(--ink); }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .mark { width: 40px; height: 32px; }
.brand .mark-dark, .brand .mark-light { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .3s; }
.brand .mark { position: relative; }
.header .mark-dark { opacity: 0; }
.header .mark-light { opacity: 1; }
.header.is-scrolled .mark-dark, .header.on-light .mark-dark { opacity: 1; }
.header.is-scrolled .mark-light, .header.on-light .mark-light { opacity: 0; }
.brand .word {
  display: flex; flex-direction: column; line-height: 1;
}
.brand .word b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
}
.brand .word span {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.34em;
  margin-top: 4px;
  opacity: .75;
  display: flex; align-items: center; gap: 6px;
}
.brand .word span::before, .brand .word span::after {
  content: ""; flex: 1; height: 1px; background: currentColor; opacity: .6;
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em;
  position: relative; padding: 6px 0; opacity: .85;
  transition: opacity .3s;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header .btn { padding: 12px 18px; font-size: 13px; }
.header .btn .arrow { width: 24px; height: 24px; }
.header.is-scrolled .btn.light, .header.on-light .btn.light { background: var(--ink); color: var(--paper); }
.header.is-scrolled .btn.light .arrow, .header.on-light .btn.light .arrow { background: rgba(244,242,238,.14); }
.header.is-scrolled .btn.light:hover, .header.on-light .btn.light:hover { color: var(--ink); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px currentColor;
  place-items: center;
}
.burger span {
  display: block; width: 18px; height: 1.5px; background: currentColor;
  position: relative; transition: transform .4s var(--ease), background .2s;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 100%; background: inherit;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { top: 0; transform: rotate(45deg); background: currentColor; }
body.menu-open .burger span::after { top: 0; transform: rotate(-45deg); background: currentColor; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 100px var(--gutter) 40px;
  clip-path: circle(0 at calc(100% - 44px) 40px);
  transition: clip-path .7s var(--ease);
  pointer-events: none;
}
body.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 40px); pointer-events: auto; }
.mobile-menu a.big {
  font-family: var(--font-display);
  font-size: clamp(38px, 10vw, 64px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.05;
  display: block; padding: 6px 0;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu .meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 20px; color: var(--graphite-2); font-size: 14px; }

@media (max-width: 900px) {
  .nav, .header .btn { display: none; }
  .burger { display: grid; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  min-height: min(100svh, 1000px);
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  padding-top: 110px;
}
/* full-bleed photograph behind everything, darkened towards the text side */
.hero .bg { position: absolute; inset: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.06); animation: settle 2.4s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,21,23,.92) 0%, rgba(20,21,23,.72) 42%, rgba(20,21,23,.25) 100%),
    linear-gradient(0deg, rgba(20,21,23,.95) 0%, rgba(20,21,23,.2) 45%, rgba(20,21,23,.35) 100%);
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  padding-bottom: clamp(36px, 5vw, 72px);
}
.hero-copy { padding-bottom: 8px; }
.hero .eyebrow {
  display: flex; align-items: center; gap: 14px;
  color: var(--graphite-2);
  margin-bottom: 30px;
}
.hero .eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brass);
  box-shadow: 0 0 0 0 rgba(184,146,90,.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(184,146,90,.55); }
  70% { box-shadow: 0 0 0 12px rgba(184,146,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,146,90,0); }
}
.hero h1 {
  font-size: clamp(46px, 7.4vw, 120px);
  max-width: 12ch;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes rise { to { transform: translateY(0); } }
.hero h1 em { color: var(--brass-2); }
.hero .lead { margin-top: 34px; color: rgba(244,242,238,.78); max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-visual { position: relative; justify-self: end; width: min(100%, 380px); }
.hero-visual .badge {
  background: rgba(244,242,238,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(244,242,238,.16);
  padding: 22px 24px;
  border-radius: 8px;
}
.hero-visual .badge .row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
.hero-visual .badge .thumb { width: 64px; height: 64px; border-radius: 6px; overflow: hidden; }
.hero-visual .badge .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .badge .bar { margin-top: 18px; height: 3px; background: rgba(244,242,238,.14); border-radius: 2px; overflow: hidden; }
.hero-visual .badge .bar i { display: block; height: 100%; width: 0; background: var(--brass); animation: fill 1.6s .6s var(--ease) forwards; }
@keyframes fill { to { width: var(--pct, 45%); } }
.hero-visual .badge .foot { display: flex; justify-content: space-between; margin-top: 10px; color: var(--graphite-2); }

.hero-foot {
  position: relative;
  border-top: 1px solid var(--line-dark);
}
.hero-foot .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px 0;
}
.hero-foot .scroll { display: inline-flex; align-items: center; gap: 12px; color: var(--graphite-2); }
.hero-foot .scroll i {
  width: 1px; height: 34px; background: var(--graphite-2); display: block; position: relative; overflow: hidden;
}
.hero-foot .scroll i::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--paper);
  animation: drop 1.8s var(--ease-io) infinite;
}
@keyframes drop { to { top: 100%; } }
.hero-foot .tags { display: flex; gap: 22px; color: var(--graphite-2); }

@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; align-items: start; }
  .hero-visual { justify-self: start; }
  .hero-foot .tags { display: none; }
}

/* ---------- image placeholders ---------- */
/* Every photo sits in a .ph frame. If the image fails or hasn't been supplied
   yet, the frame shows a fine grid + hatch and the caption label, so the layout
   still reads well. Drop real photos into assets/img and point the <img> at them. */

.ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
}
.ph.light { background: linear-gradient(160deg, #dedbd5, #ece9e3); }
.ph img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s;
}
.ph .cap {
  position: absolute; left: 14px; top: 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--graphite-2); opacity: .8;
}
.ph.light .cap { color: var(--graphite); }
.ph.has-img .cap { display: none; }

/* ---------- marquee ---------- */

.marquee {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
}
.marquee .track {
  display: flex; gap: 0; width: max-content;
  animation: scroll 38s linear infinite;
}
.marquee:hover .track { animation-play-state: paused; }
.marquee .item {
  display: inline-flex; align-items: center; gap: 28px;
  padding-right: 28px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--graphite);
  white-space: nowrap;
}
.marquee .item::after {
  content: ""; width: 10px; height: 7px; background: var(--brass);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- generic sections ---------- */

.section { padding: clamp(80px, 10vw, 150px) 0; position: relative; }
.section.dark { background: var(--ink); color: var(--paper); }
.section.stone { background: var(--stone); }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head .label { margin-bottom: 22px; }
.section-head .right { max-width: 48ch; justify-self: end; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .right { justify-self: start; }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

/* ---------- intro / manifesto ---------- */

.intro .statement {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 24ch;
  text-wrap: balance;
}
.intro .statement em { font-style: normal; font-weight: 300; color: var(--brass); }
.intro .statement .muted { color: var(--graphite); }
.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.principle {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.principle .n { font-family: var(--font-mono); font-size: 12px; color: var(--graphite); padding-top: 6px; }
.principle h3 { font-size: 20px; margin-bottom: 8px; }
.principle p { color: var(--ink-3); font-size: 15px; max-width: 42ch; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

/* ---------- services list ---------- */

.services-list { border-top: 1px solid var(--line-dark); }
.service {
  display: grid;
  grid-template-columns: 80px 1.1fr 1.2fr 60px;
  align-items: center;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  transition: padding .5s var(--ease);
  cursor: pointer;
}
.service::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.service:hover { padding-left: 14px; }
.service .n { font-family: var(--font-mono); font-size: 12px; color: var(--graphite); }
.service h3 { font-size: clamp(22px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.025em; }
.service p { color: var(--graphite-2); font-size: 15px; max-width: 46ch; }
.service .go {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: grid; place-items: center; justify-self: end;
  transition: background .4s, transform .5s var(--ease);
}
.service .go svg { width: 14px; height: 14px; }
.service:hover .go { background: var(--paper); color: var(--ink); transform: rotate(-45deg); }
.service .peek {
  position: absolute; right: 90px; top: 50%;
  width: 220px; aspect-ratio: 4/3;
  transform: translateY(-50%) rotate(4deg) scale(.9);
  opacity: 0; pointer-events: none;
  transition: opacity .5s, transform .6s var(--ease);
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
}
.service:hover .peek { opacity: 1; transform: translateY(-50%) rotate(-2deg) scale(1); }
@media (max-width: 900px) {
  .service { grid-template-columns: 48px 1fr 44px; }
  .service p { grid-column: 2; }
  .service .go { grid-row: 1; grid-column: 3; }
  .service .peek { display: none; }
}

/* ---------- projects rail ---------- */

.rail-wrap { position: relative; }
.rail {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  scrollbar-width: none;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.project {
  flex: 0 0 clamp(300px, 34vw, 480px);
  scroll-snap-align: start;
  position: relative;
}
.project .ph { aspect-ratio: 4/5; border-radius: 4px; }
.project:hover .ph img { transform: scale(1.05); }
.project .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.project h3 { font-size: 20px; }
.project .meta .mono { color: var(--graphite); }
.project .tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 3px;
}
.rail-nav { display: flex; gap: 10px; }
.rail-nav button {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background .3s, color .3s;
}
.rail-nav button:hover { background: var(--ink); color: var(--paper); }
.rail-nav svg { width: 16px; height: 16px; }

/* ---------- process ---------- */

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.step {
  padding: 34px 28px 40px 28px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative;
  min-height: 300px;
  display: flex; flex-direction: column;
  background: var(--paper);
  transition: background .4s;
}
.step:hover { background: var(--white); }
.step .n {
  font-family: var(--font-display);
  font-size: 64px; font-weight: 600; letter-spacing: -0.04em; line-height: 1;
  color: var(--stone);
  -webkit-text-stroke: 1px var(--graphite-2);
  color: transparent;
  margin-bottom: auto;
}
.step h3 { font-size: 22px; margin: 26px 0 10px; }
.step p { color: var(--ink-3); font-size: 15px; }
.step .roof {
  position: absolute; top: 28px; right: 24px; width: 18px; height: 12px;
  background: var(--brass);
  clip-path: polygon(50% 0, 100% 100%, 82% 100%, 50% 32%, 18% 100%, 0 100%);
  opacity: 0; transform: translateY(6px); transition: .4s var(--ease);
}
.step:hover .roof { opacity: 1; transform: none; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } }

/* ---------- stats band ---------- */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-dark);
}
.stat {
  padding: 36px 28px 36px 0;
  border-bottom: 1px solid var(--line-dark);
}
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.stat .v {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 78px); font-weight: 600; letter-spacing: -0.04em; line-height: 1;
}
.stat .v sup { font-size: .45em; color: var(--brass-2); vertical-align: top; margin-left: 2px; }
.stat .k { margin-top: 12px; color: var(--graphite-2); font-size: 14px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ---------- split feature (why us) ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split .ph { aspect-ratio: 4/5; border-radius: 4px; }
.split .ph.wide { aspect-ratio: 5/4; }
.split .h2 { margin: 20px 0 22px; }
.checks { display: grid; gap: 14px; margin-top: 28px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; color: var(--ink-3); }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='11' fill='%231c1d20'/><path d='M7 12.5l3.2 3.2L17 9' stroke='%23f4f2ee' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  margin-top: 1px;
}
.split .stack { position: relative; }
.split .stack .ph.second {
  position: absolute; width: 46%; aspect-ratio: 1; right: -8%; bottom: -10%;
  border: 8px solid var(--paper); border-radius: 4px;
  box-shadow: 0 30px 60px rgba(28,29,32,.18);
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split .stack .ph.second { right: 0; bottom: -6%; }
}

/* ---------- testimonial ---------- */

.quote-block { display: grid; grid-template-columns: 120px 1fr; gap: 40px; align-items: start; }
.quote-block .q {
  font-family: var(--font-display); font-size: 140px; font-weight: 300; line-height: .6; color: var(--brass); margin-top: 30px;
}
.quote-block blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.2;
  max-width: 28ch;
}
.quote-block cite {
  display: flex; align-items: center; gap: 14px;
  font-style: normal; margin-top: 30px; font-size: 14px; color: var(--graphite);
}
.quote-block cite::before { content: ""; width: 40px; height: 1px; background: var(--brass); }
.quote-block cite b { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) { .quote-block { grid-template-columns: 1fr; gap: 10px; } .quote-block .q { font-size: 80px; } }

/* ---------- CTA ---------- */

.cta {
  background: var(--ink); color: var(--paper);
  position: relative; overflow: hidden;
}
.cta .big-mark {
  position: absolute; right: -6%; bottom: -18%; width: 46vw; max-width: 720px; opacity: .06; pointer-events: none;
}
.cta .wrap { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.cta h2 { font-size: clamp(42px, 7vw, 110px); }
.cta h2 em { color: var(--brass-2); }
.cta .contact { display: grid; gap: 18px; justify-self: end; }
.cta .contact a.big-link {
  font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.02em;
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line-dark);
  transition: padding .4s var(--ease), color .3s;
}
.cta .contact a.big-link:hover { padding-left: 12px; color: var(--brass-2); }
.cta .contact .mono { color: var(--graphite-2); }
@media (max-width: 900px) { .cta .wrap { grid-template-columns: 1fr; } .cta .contact { justify-self: start; width: 100%; } }

/* ---------- footer ---------- */

.footer { background: #141517; color: var(--graphite-2); padding: 64px 0 28px; border-top: 1px solid var(--line-dark); }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer .brand { color: var(--paper); }
.footer .about { margin-top: 20px; font-size: 14px; max-width: 34ch; line-height: 1.7; }
.footer h4 { color: var(--paper); font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; margin-bottom: 18px; }
.footer li { margin-bottom: 10px; font-size: 14.5px; }
.footer li a { transition: color .3s; }
.footer li a:hover { color: var(--paper); }
.footer .bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: 12.5px; }
.footer .bottom a:hover { color: var(--paper); }
@media (max-width: 860px) { .footer .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer .top { grid-template-columns: 1fr; } }

/* ---------- inner page hero ---------- */

.page-hero {
  background: var(--ink); color: var(--paper);
  padding: 170px 0 80px;
  position: relative; overflow: hidden;
}
.page-hero .bg { position: absolute; inset: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,21,23,.94) 0%, rgba(20,21,23,.8) 50%, rgba(20,21,23,.55) 100%),
              linear-gradient(0deg, rgba(20,21,23,.9), rgba(20,21,23,.3));
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(44px, 7vw, 108px); margin-top: 26px; max-width: 14ch; }
.page-hero .lead { margin-top: 28px; color: var(--graphite-2); }
.page-hero .crumbs { display: flex; gap: 10px; color: var(--graphite-2); }
.page-hero .crumbs span::before { content: "/"; margin-right: 10px; opacity: .5; }

/* simple content grids used on inner pages */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 30px 28px;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px rgba(28,29,32,.08); }
.card .n { font-family: var(--font-mono); font-size: 11px; color: var(--graphite); letter-spacing: .16em; }
.card h3 { font-size: 22px; margin: 14px 0 10px; }
.card p { color: var(--ink-3); font-size: 15px; }
.card ul { margin-top: 16px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-3); }
.card ul li { padding-left: 16px; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 5px; background: var(--brass); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery .project { flex: none; }
.gallery .project:nth-child(4n+1) { grid-column: span 2; }
.gallery .project:nth-child(4n+1) .ph { aspect-ratio: 16/10; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .project:nth-child(4n+1) { grid-column: span 2; } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } .gallery .project:nth-child(4n+1) { grid-column: auto; } }

/* contact form */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); }
.contact-grid .details { display: grid; gap: 28px; align-content: start; }
.contact-grid .details .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); margin-bottom: 8px; }
.contact-grid .details .v { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.contact-grid .details .v small { display: block; font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--ink-3); margin-top: 4px; letter-spacing: 0; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: 14px 16px; width: 100%;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28,29,32,.08); }
.form .note { grid-column: 1 / -1; font-size: 13px; color: var(--graphite); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team .ph { aspect-ratio: 4/5; border-radius: 4px; }
.team h3 { font-size: 20px; margin-top: 16px; }
.team .mono { color: var(--graphite); margin-top: 4px; display: block; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }

/* timeline (about page) */
.timeline { border-left: 1px solid var(--line); margin-left: 8px; display: grid; gap: 34px; }
.timeline li { padding-left: 36px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); }
.timeline .y { font-family: var(--font-mono); font-size: 12px; color: var(--graphite); letter-spacing: .14em; }
.timeline h3 { font-size: 20px; margin: 6px 0 6px; }
.timeline p { color: var(--ink-3); font-size: 15px; max-width: 52ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
}
