/* ==========================================================================
   ARKITEK TAN & TAN SDN BHD
   Design. Purpose. People.
   Warm neutral system · Wood as structure (8%) · Deep Teal as signature (2%)
   ========================================================================== */

/* ---- Brand tokens ------------------------------------------------------- */
:root {
  /* Brand palette (from brand board) */
  --onyx:     #111111;
  --charcoal: #333333;
  --stone:    #B9B6B1;   /* hairlines & dividers — NOT text (fails contrast) */
  --sand:     #DCD6CB;   /* panel fills                                      */
  --wood:     #A87C5A;   /* structural accent (~8%)                          */
  --teal:     #0F766E;   /* signature accent (~2%)                           */

  /* Derived — required, not in the board */
  --paper:    #F7F5F1;   /* warm off-white page ground, tinted from Sand     */
  --muted:    #6B6560;   /* caption text at accessible contrast             */
  --wood-ink: #8A6446;   /* wood darkened to text-safe contrast             */

  /* Semantic aliases */
  --ink:      var(--charcoal);
  --ink-soft: #4A4642;
  --line:     var(--stone);
  --panel:    var(--sand);

  /* Type — Neue Haas (headings) + Inter (body/UI). No mono. */
  --font-display: "Neue Haas Grotesk Display Pro", "Neue Haas Grotesk", "NeueHaasDisplay",
                  "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --fs-label:   0.72rem;
  --fs-small:   0.875rem;
  --fs-body:    1.0625rem;
  --fs-lead:    clamp(1.1rem, 0.9rem + 0.9vw, 1.35rem);
  --fs-h3:      clamp(1.25rem, 1.1rem + 0.9vw, 1.6rem);
  --fs-h2:      clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --fs-hero:    clamp(2.6rem, 1.5rem + 4.6vw, 5.25rem);

  /* Space & structure */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1440px;
  --section-y: clamp(4rem, 8vw, 8rem);

  --shadow: 0 30px 60px rgba(17, 17, 17, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

::selection { background: var(--onyx); color: var(--paper); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---- Layout helpers ----------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--onyx); color: var(--paper);
  padding: 0.65rem 1rem; z-index: 200;
  font: 600 var(--fs-small)/1 var(--font-display);
  letter-spacing: 0.08em;
}
.skip-link:focus { left: 0; }

/* ---- Type utilities ----------------------------------------------------- */
.label {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
}
.eyebrow::before {
  content: ""; width: 1.8em; height: 1px;
  background: var(--wood); display: inline-block;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em; line-height: 1.06; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-soft); }
.muted { color: var(--muted); }

/* text link with arrow (board's primary link style) */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--stone);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-arrow span { transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--wood-ink); border-color: var(--wood); }
.link-arrow:hover span { transform: translateX(5px); }
.link-arrow--light { color: var(--paper); border-color: rgba(247,245,241,0.35); }
.link-arrow--light:hover { color: var(--paper); border-color: var(--paper); }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), padding 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
/* over the dark hero */
.site-header--over { background: transparent; }
.site-header--over .brand__name, .site-header--over .brand__sub { color: var(--paper); }
.site-header--over .brand__mark line { stroke: var(--paper); }
.site-header--over .brand__mark .mark-fill { fill: var(--paper); }
.site-header--over .nav a { color: rgba(247,245,241,0.86); }
.site-header--over .nav-toggle span { background: var(--paper); }

/* after scroll — solid */
.site-header.is-stuck {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.1) blur(12px);
  border-bottom-color: var(--line);
}
.site-header.is-stuck .brand__name { color: var(--ink); }
.site-header.is-stuck .brand__sub { color: var(--muted); }
.site-header.is-stuck .brand__mark line { stroke: var(--ink); }
.site-header.is-stuck .brand__mark .mark-fill { fill: var(--ink); }
.site-header.is-stuck .nav a { color: var(--ink); }
.site-header.is-stuck .nav-toggle span { background: var(--ink); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: clamp(1rem, 1.8vw, 1.6rem);
  transition: padding 0.45s var(--ease);
}
.site-header.is-stuck .header-inner { padding-block: 0.75rem; }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__mark line { stroke: var(--ink); transition: stroke 0.45s var(--ease); }
.brand__mark .mark-fill { fill: var(--ink); transition: fill 0.45s var(--ease); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); transition: color 0.45s var(--ease);
}
.brand__sub {
  font-family: var(--font-display); font-size: 0.58rem; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
  margin-top: 5px; transition: color 0.45s var(--ease);
}

/* Nav */
.nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.6vw, 2.8rem); }
.nav a {
  font-family: var(--font-display);
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); position: relative; padding-block: 0.35rem;
  transition: color 0.45s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--font-display);
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 1.05em 1.9em;
  border: 1px solid var(--onyx); color: var(--onyx); background: transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { background: var(--onyx); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--onyx); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--onyx); }
.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---- HERO — full-bleed photo carousel ---------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex; align-items: flex-end;
  background: var(--onyx);
  overflow: hidden;
}

.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder ground — replaced by <img> when photography lands.
   Warm tonal fields so the hero reads as architecture, not a broken image. */
.hero__slide--ph { background: var(--onyx); }
.hero__slide--ph::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(168,124,90,0.42) 0%, rgba(168,124,90,0) 58%),
    radial-gradient(90% 80% at 20% 85%, rgba(185,182,177,0.28) 0%, rgba(185,182,177,0) 60%),
    linear-gradient(160deg, #2A2724 0%, #191817 55%, #111111 100%);
}
.hero__slide--ph:nth-child(2)::before {
  background:
    radial-gradient(110% 85% at 22% 22%, rgba(220,214,203,0.30) 0%, rgba(220,214,203,0) 60%),
    radial-gradient(100% 90% at 85% 80%, rgba(168,124,90,0.34) 0%, rgba(168,124,90,0) 62%),
    linear-gradient(200deg, #24221F 0%, #171615 60%, #111111 100%);
}
.hero__slide--ph:nth-child(3)::before {
  background:
    radial-gradient(120% 100% at 50% 10%, rgba(15,118,110,0.24) 0%, rgba(15,118,110,0) 55%),
    radial-gradient(90% 80% at 12% 78%, rgba(168,124,90,0.30) 0%, rgba(168,124,90,0) 58%),
    linear-gradient(150deg, #1F1E1C 0%, #151414 58%, #111111 100%);
}

/* legibility scrim */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(17,17,17,0.78) 0%, rgba(17,17,17,0.45) 42%, rgba(17,17,17,0.12) 72%, rgba(17,17,17,0.30) 100%);
}

.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(6rem, 12vw, 9rem) clamp(2.5rem, 5vw, 4rem);
  color: var(--paper);
}
.hero__copy { max-width: 40ch; }
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--teal); }     /* signature teal — spot 1 */
.hero__lead {
  font-size: var(--fs-lead);
  color: rgba(247,245,241,0.86);
  max-width: 34ch;
  margin-bottom: 2.4rem;
}

/* carousel indicators */
.hero__nav {
  display: flex; align-items: center; gap: 1.1rem;
  margin-top: clamp(3rem, 7vw, 5.5rem);
}
.hero__dot {
  display: inline-flex; align-items: center; gap: 1.1rem;
  font-family: var(--font-display);
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.16em;
  color: rgba(247,245,241,0.5);
  transition: color 0.35s var(--ease);
}
.hero__dot::after {
  content: ""; width: clamp(20px, 3vw, 38px); height: 1px;
  background: rgba(247,245,241,0.35);
  transition: background 0.35s var(--ease), width 0.35s var(--ease);
}
.hero__dot:last-child::after { display: none; }
.hero__dot:hover { color: rgba(247,245,241,0.85); }
.hero__dot.is-active { color: var(--paper); }
.hero__dot.is-active::after { background: var(--wood); }

/* ---- Section head ------------------------------------------------------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}
.section-head__title { max-width: 22ch; }
.section-head__title h2 { margin-top: 1rem; }

/* ---- Services (board's divided columns) -------------------------------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.svc {
  padding: clamp(1.8rem, 3vw, 2.8rem) clamp(1rem, 2vw, 2rem) clamp(1.8rem, 3vw, 2.4rem) 0;
  transition: background 0.4s var(--ease);
}
.svc + .svc { border-left: 1px solid var(--line); padding-left: clamp(1rem, 2vw, 2rem); }
.svc:hover { background: color-mix(in srgb, var(--sand) 45%, transparent); }
.svc h3 { font-size: var(--fs-h3); margin-bottom: 0.9rem; }
.svc p { font-size: var(--fs-small); color: var(--muted); margin-bottom: 1.8rem; }
.svc__go {
  display: inline-block;
  font-size: 1.1rem; color: var(--ink);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.svc:hover .svc__go { transform: translateX(6px); color: var(--wood-ink); }

/* feature image strip */
.feature-strip {
  position: relative;
  aspect-ratio: 21 / 8;
  background: var(--sand);
  overflow: hidden;
  border: 1px solid var(--line);
}
.feature-strip img { width: 100%; height: 100%; object-fit: cover; }
.feature-strip--ph::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 120% at 20% 20%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(90% 130% at 85% 85%, rgba(168,124,90,0.30) 0%, rgba(168,124,90,0) 62%),
    linear-gradient(140deg, #E6E1D8 0%, #D2CCC1 60%, #BFB9AE 100%);
}
.feature-strip__cap {
  position: absolute; left: 0; bottom: 0;
  background: var(--paper);
  padding: 0.9rem 1.4rem;
  font-family: var(--font-display);
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}

/* ---- Projects ----------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.filter {
  font-family: var(--font-display);
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  padding: 0.6em 1.1em;
  border: 1px solid var(--line);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter.is-active { background: var(--onyx); color: var(--paper); border-color: var(--onyx); }

.projects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.8vw, 1.6rem);
}
.projects--three { grid-template-columns: repeat(3, 1fr); }

.project { display: block; }
.project__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--sand);
  overflow: hidden;
}
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.project:hover .project__media img { transform: scale(1.045); }

/* tonal placeholder — swap for <img> when photos land */
.project__media--ph::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(155deg, #E4DFD6 0%, #D3CDC2 55%, #C2BCB1 100%);
  transition: transform 0.8s var(--ease);
}
.project__media--ph::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 75% 20%, rgba(168,124,90,0.26) 0%, rgba(168,124,90,0) 62%);
}
.project:hover .project__media--ph::before { transform: scale(1.045); }

.project__badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-family: var(--font-display);
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.14em; color: var(--onyx);
  opacity: 0.55;
}
.project__view {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 2;
  font-family: var(--font-display);
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper); background: var(--onyx);
  padding: 0.5em 0.9em;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.project:hover .project__view { opacity: 1; transform: none; }

.project__meta { padding-top: 1.1rem; }
.project__name {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.05rem; letter-spacing: -0.015em; color: var(--ink);
}
.project__place {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ---- Values band (dark) ------------------------------------------------- */
.values { background: var(--onyx); color: var(--paper); }
.values__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(247,245,241,0.16);
}
.value {
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1rem, 2vw, 2rem) clamp(2rem, 3.5vw, 3rem) 0;
}
.value + .value { border-left: 1px solid rgba(247,245,241,0.16); padding-left: clamp(1rem, 2vw, 2rem); }
.value h3 {
  font-size: 1.05rem; font-weight: 500; margin-bottom: 0.9rem; color: var(--paper);
}
.value p { font-size: var(--fs-small); color: rgba(247,245,241,0.62); line-height: 1.6; }

/* ---- Statement band ----------------------------------------------------- */
.statement { background: var(--panel); }
.statement__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin-top: 1.6rem;
  color: var(--onyx);
}
.statement__text em { font-style: normal; color: var(--teal); }  /* signature teal — spot 2 */

/* ---- Stats -------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: clamp(1.6rem, 3vw, 2.6rem) 1rem clamp(1.6rem, 3vw, 2.6rem) 0; border-bottom: 1px solid var(--line); }
.stat + .stat { border-left: 1px solid var(--line); padding-left: clamp(1rem, 2vw, 1.8rem); }
.stat__num {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem);
  line-height: 1; letter-spacing: -0.04em; color: var(--onyx);
}
.stat__num .unit { color: var(--wood-ink); }
.stat__label {
  font-family: var(--font-display); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  margin-top: 0.9rem; max-width: 20ch;
}

/* ---- Prose / two-col ---------------------------------------------------- */
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1.2rem; }
.prose p { color: var(--ink-soft); }

.two-col { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }

.pull {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.02em;
  padding-left: 1.4rem; border-left: 2px solid var(--wood);
  color: var(--onyx);
}

.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2.5rem); margin-top: 2.5rem; }
.person { border-top: 1px solid var(--onyx); padding-top: 1.1rem; }
.person__role {
  font-family: var(--font-display); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--wood-ink);
}
.person__name { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h3); margin-top: 0.5rem; }

/* ---- Contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-item { border-top: 1px solid var(--line); padding-block: 1.3rem; }
.contact-item:last-of-type { border-bottom: 1px solid var(--line); }
.contact-item__label {
  font-family: var(--font-display); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.contact-item__value {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.75rem);
  margin-top: 0.5rem; word-break: break-word; letter-spacing: -0.025em;
}
.contact-item__value a { transition: color 0.25s; }
.contact-item__value a:hover { color: var(--wood-ink); }

.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-family: var(--font-display); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.6rem;
}
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: var(--fs-small);
  color: var(--ink); background: color-mix(in srgb, var(--sand) 45%, var(--paper));
  border: 1px solid var(--line); padding: 0.9rem 1rem;
  transition: border-color 0.25s, background 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal); background: var(--paper);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: var(--fs-small); color: var(--muted); margin-top: 1rem; }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band { border-top: 1px solid var(--line); }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2rem; padding-block: clamp(3rem, 6vw, 5.5rem);
}
.cta-band h2 { max-width: 16ch; }

/* ---- Page hero (interior pages) ---------------------------------------- */
.page-hero {
  padding-block: clamp(8rem, 14vw, 11rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-top: 1.3rem; max-width: 15ch; font-size: var(--fs-h2); }
.page-hero p { margin-top: 1.5rem; max-width: 52ch; color: var(--muted); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--onyx); color: rgba(247,245,241,0.72); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247,245,241,0.16);
}
.site-footer .brand__mark line { stroke: var(--paper); }
.site-footer .brand__mark .mark-fill { fill: var(--paper); }
.site-footer .brand__name { color: var(--paper); }
.site-footer .brand__sub { color: rgba(247,245,241,0.5); }
.footer-tagline {
  margin-top: 1.4rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: 1rem; letter-spacing: 0.02em; color: var(--paper);
}
.footer-manifesto { max-width: 38ch; margin-top: 0.8rem; color: rgba(247,245,241,0.58); font-size: var(--fs-small); }
.footer-col h4 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-label); letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(247,245,241,0.45); margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.footer-col a { font-size: var(--fs-small); transition: color 0.25s; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 2rem;
  font-size: 0.75rem; color: rgba(247,245,241,0.45);
}

/* ---- Reveal ------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
[data-reveal-stagger] > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .projects--three { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc:nth-child(odd) { border-left: 0; padding-left: 0; }
  .svc:nth-child(n+3) { border-top: 1px solid var(--line); }
  .values__grid { grid-template-columns: repeat(3, 1fr); }
  .value:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .value:nth-child(n+4) { border-top: 1px solid rgba(247,245,241,0.16); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--wide { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(82vw, 330px);
    background: var(--paper);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.9rem; padding: 2rem var(--gutter);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    z-index: 90;
  }
  .nav.is-open { transform: none; box-shadow: -30px 0 60px rgba(17,17,17,0.14); }
  .nav a, .site-header--over .nav a { color: var(--ink); font-size: 1.05rem; letter-spacing: 0.1em; }

  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: 0.5rem; z-index: 95; }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.2s, background 0.45s var(--ease); }
  .nav-toggle.is-open span { background: var(--ink); }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { min-height: 88vh; }
  .hero::after { background: linear-gradient(180deg, rgba(17,17,17,0.55) 0%, rgba(17,17,17,0.35) 40%, rgba(17,17,17,0.82) 100%); }
  .svc-grid { grid-template-columns: 1fr; }
  .svc { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .svc-grid > .svc:first-child { border-top: 0; }
  .values__grid { grid-template-columns: 1fr; }
  .value { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid rgba(247,245,241,0.16); }
  .values__grid > .value:first-child { border-top: 0; }
  .projects, .projects--three { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .two-col, .contact-grid, .people { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

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