/* =========================================================
   Khushi Infra Space — Corporate Website
   Design system & styles
   Palette verified for WCAG 2.1 AAA contrast (7:1 text)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Light surfaces */
  --ivory:        #F7F4EF;
  --sand:         #EFEAE1;
  --white:        #FFFFFF;

  /* Text on light (all AAA) */
  --text:         #16171B;   /* 16.3:1 on ivory   */
  --text-2:       #3E4149;   /*  9.3:1 on ivory   */
  --text-3:       #4C4F56;   /*  7.5:1 on ivory   */

  /* Dark surfaces */
  --charcoal:     #14161A;
  --charcoal-2:   #1C1F24;
  --charcoal-3:   #23262C;
  --hairline-dk:  rgba(255,255,255,.10);
  --hairline-lt:  rgba(22,23,27,.12);

  /* Text on dark (all AAA) */
  --on-dark:      #F5F3EF;   /* 16.3:1 on charcoal */
  --on-dark-2:    #C4C7CD;   /* 10.7:1 on charcoal */

  /* Brand gold family */
  --gold:         #C6902F;   /* decoration on light; large text on dark */
  --gold-btn:     #DBA43F;   /* button bg on light — ink text = 8:1     */
  --gold-bright:  #E0A94A;   /* small text/labels on dark = 8.6:1       */
  --bronze:       #6A4B0F;   /* gold-tone TEXT on light = 7.3:1         */

  /* Type */
  --f-display: "Montserrat", system-ui, sans-serif;
  --f-body:    "Inter", system-ui, sans-serif;

  /* Layout */
  --container: 100%;              /* mobile/tablet: full width (gutter comes from --pad-x) */
  --pad-x: clamp(20px, 5vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
  --radius: 14px;
  --radius-sm: 10px;

  --shadow-1: 0 1px 2px rgba(16,17,20,.05), 0 8px 24px rgba(16,17,20,.06);
  --shadow-2: 0 18px 50px rgba(16,17,20,.16);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Desktop: content spans ~90% of the viewport, capped so line lengths
   stay readable on very wide / ultra-wide monitors. */
@media (min-width: 1024px) {
  :root { --container: min(80%, 1760px); }
}

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

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

body {
  background: var(--ivory);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

a { color: var(--bronze); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--text); }

::selection { background: var(--gold); color: #14161A; }

/* Visible, consistent focus for keyboard users */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--charcoal);
  color: var(--on-dark);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--f-display);
  font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; color: var(--on-dark); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.section--dark { background: var(--charcoal); color: var(--on-dark); }
.section--white { background: var(--white); border-block: 1px solid var(--hairline-lt); }

.eyebrow {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
}
.section--dark .eyebrow { color: var(--gold-bright); }

.section-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--text);
  text-wrap: balance;
}
.section--dark .section-title { color: var(--on-dark); }

.lead {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.section--dark .lead { color: var(--on-dark-2); }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 52px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  transition: transform .2s var(--ease), background .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold { background: var(--gold-btn); color: #16171B; }
.btn--gold:hover { background: #E9BB63; color: #16171B; box-shadow: 0 12px 30px rgba(198,144,47,.35); }

.btn--dark { background: var(--charcoal); color: var(--on-dark); }
.btn--dark:hover { background: var(--gold-btn); color: #16171B; }

.btn--ghost {
  color: var(--on-dark);
  border: 1.5px solid rgba(255,255,255,.32);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

.btn--outline {
  color: var(--bronze);
  border: 1.5px solid rgba(106,75,15,.45);
}
.btn--outline:hover { background: rgba(198,144,47,.08); color: var(--bronze); }

/* =========================================================
   Header / Navigation
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247,244,239,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-lt);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-1); background: rgba(247,244,239,.94); }

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__logo { height: 42px; width: auto; }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name b {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .05em;
}
.brand__name span {
  font-size: 9.5px;
  letter-spacing: .32em;
  color: var(--bronze);
  font-weight: 700;
}

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  padding: 4px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { flex: none; }

/* Hamburger */
.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-lt);
  align-items: center;
  justify-content: center;
  flex: none;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span::before { position: absolute; transform: translateY(-7px); }
.nav__toggle span::after  { position: absolute; transform: translateY(7px); }
.nav__toggle span { position: relative; }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { transform: rotate(45deg); }
body.menu-open .nav__toggle span::after  { transform: rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(84vw, 360px);
  background: var(--charcoal);
  color: var(--on-dark);
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  z-index: 70;
  padding: 88px 32px max(40px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-2);
  overflow-y: auto;            /* scroll if links exceed viewport height */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
body.menu-open .nav__drawer { transform: translateX(0); }
.nav__drawer a {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--on-dark);
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-dk);
}
.nav__drawer a:hover { color: var(--gold-bright); }
.nav__drawer .btn { margin-top: 22px; justify-content: center; }

.nav__scrim {
  position: fixed;
  inset: 0;
  background: rgba(9,10,11,.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
  z-index: 65;
}
body.menu-open .nav__scrim { opacity: 1; visibility: visible; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  min-height: min(92dvh, 860px); /* avoids jump from mobile browser chrome */
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0F1013;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("assets/gallery/road-terminal.jpg") center/cover no-repeat;
  filter: grayscale(.15) contrast(1.05) saturate(1.03);
  transform: scale(1.06);
  animation: hero-pan 22s ease-in-out infinite alternate;
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(102deg, rgba(11,12,14,.94) 0%, rgba(11,12,14,.66) 46%,
                    rgba(11,12,14,.28) 82%, rgba(11,12,14,.14) 100%),
    radial-gradient(120% 90% at 6% 92%, rgba(198,144,47,.20), transparent 55%);
}
.hero__rail {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(var(--gold), #8A6420);
}
.hero__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(96px, 14vw, 128px) var(--pad-x) clamp(150px, 18vw, 170px);
  width: 100%;
}
.hero__content { max-width: 820px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(224,169,74,.5);
  color: var(--gold-bright);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .2em;
  padding: 9px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.badge .dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.hero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(38px, 5.8vw, 74px);
  line-height: 1.02;
  letter-spacing: -.015em;
  color: #F7F5F1;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--gold); }
.hero__sub {
  margin-top: 24px;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
  color: #CDCFD3;
  max-width: 640px;
  text-wrap: pretty;
}
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(13,14,16,.72);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--hairline-dk);
}
.hero__stats-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat__v {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(22px, 2.5vw, 30px);
  color: var(--gold);
  line-height: 1;
}
.stat__l { font-size: 12.5px; color: var(--on-dark-2); letter-spacing: .02em; margin-top: 6px; }

@keyframes hero-pan {
  from { transform: scale(1.06) translate(0,0); }
  to   { transform: scale(1.12) translate(-1.5%, -1%); }
}

/* =========================================================
   About
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 6vw, 60px);
  align-items: center;
}
.about__points { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.about__points li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.about__points .arrow { color: var(--gold); font-weight: 800; margin-top: 1px; }
.about__figure { position: relative; }
.about__figure::before {
  content: "";
  position: absolute;
  left: -16px; top: -16px; bottom: 16px;
  width: 100%;
  border: 1px solid rgba(198,144,47,.45);
  border-radius: var(--radius);
}
.about__figure img {
  position: relative;
  width: 100%;
  height: clamp(300px, 42vw, 440px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}

/* Stat band (shared) */
.stat-band {
  border-top: 2px solid var(--gold);
  margin-top: clamp(40px, 6vw, 60px);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline-lt);
}
.stat-band__cell { background: var(--ivory); padding: clamp(22px, 3vw, 32px) clamp(18px, 2.5vw, 26px); }
.section--white .stat-band__cell { background: var(--white); }
.stat-band__v {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--text);
  line-height: 1;
}
.stat-band__l { font-size: 13px; color: var(--text-3); margin-top: 10px; line-height: 1.4; }

/* =========================================================
   Purpose — vision / mission / values
   ========================================================= */
.purpose__twin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.purpose__col { position: relative; overflow: hidden; padding: 0 clamp(24px, 4vw, 48px); }
.purpose__col:first-child { border-right: 1px solid var(--hairline-lt); padding-left: 0; }
.purpose__col:last-child { padding-right: 0; }
.purpose__ghost {
  position: absolute;
  top: -34px; right: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(110px, 15vw, 160px);
  color: rgba(198,144,47,.10);
  line-height: 1;
  pointer-events: none;
}
.purpose__k {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .22em;
  color: var(--bronze);
  position: relative;
}
.purpose__col p {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
  position: relative;
  text-wrap: pretty;
}
.values { margin-top: clamp(44px, 7vw, 64px); }
.values h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--bronze);
  margin-bottom: 8px;
}
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 44px; }
.value {
  border-top: 1px solid var(--hairline-lt);
  padding: 24px 0 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.value__n {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 26px;
  color: rgba(198,144,47,.6);
  line-height: 1;
}
.value h4 { font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--text); }
.value p { margin-top: 7px; font-size: 14px; color: var(--text-3); line-height: 1.55; }

/* =========================================================
   Services — connected grid matrix
   ========================================================= */
.matrix {
  border-top: 2px solid var(--gold);
  border-left: 1px solid var(--hairline-lt);
  border-right: 1px solid var(--hairline-lt);
  border-bottom: 1px solid var(--hairline-lt);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline-lt);
}
.matrix__cell {
  background: var(--ivory);
  padding: clamp(26px, 3.4vw, 34px) clamp(22px, 3vw, 30px);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.matrix__cell:hover { background: var(--white); }
.matrix__head { display: flex; align-items: baseline; gap: 12px; }
.matrix__n { font-family: var(--f-display); font-weight: 800; font-size: 14px; color: var(--bronze); }
.matrix__cell h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18.5px;
  line-height: 1.2;
  color: var(--text);
}
.matrix__cell p { margin-top: 12px; font-size: 14px; color: var(--text-3); line-height: 1.55; }

/* =========================================================
   Sectors — ruled rows on dark
   ========================================================= */
.rows { border-bottom: 1px solid var(--hairline-dk); }
.row {
  border-top: 1px solid var(--hairline-dk);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: 24px 12px;
  transition: padding-left .25s var(--ease), background .25s var(--ease);
}
.row:hover { padding-left: 24px; background: rgba(198,144,47,.07); }
.row__n {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 38px);
  color: rgba(224,169,74,.5);
  width: 60px;
  flex: none;
}
.row h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--on-dark);
  width: 260px;
  flex: none;
}
.row p { font-size: 15px; color: var(--on-dark-2); line-height: 1.5; flex: 1; }
.row__arrow { color: var(--gold-bright); font-size: 22px; flex: none; }

/* =========================================================
   Projects — track record
   ========================================================= */
.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: clamp(36px, 5vw, 48px);
}
.projects__col { padding: 0 clamp(24px, 4vw, 48px); }
.projects__col--exec { border-right: 1px solid var(--hairline-lt); padding-left: 0; }
.projects__col--live { padding-right: 0; }
.bignum {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(38px, 5.4vw, 58px);
  color: var(--text);
  line-height: 1;
}
.bignum--gold { color: var(--bronze); }
.bignum small { font-size: .42em; color: var(--text-3); font-weight: 700; }
.projects__meta { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.projects__tag {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--bronze);
}
.projects__note { font-size: 13px; color: var(--text-3); }
.projects__col > p.desc { font-size: 14.5px; color: var(--text-3); margin-top: 14px; line-height: 1.55; max-width: 420px; }

.bars { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.bar__top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 7px; gap: 12px; }
.bar__top .t { color: var(--text-2); }
.bar__top .v { font-family: var(--f-display); font-weight: 700; color: var(--bronze); white-space: nowrap; }
.bar__track { height: 8px; background: rgba(22,23,27,.09); border-radius: 99px; overflow: hidden; }
.bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), #8A6420);
  border-radius: 99px;
  transition: width 1.1s var(--ease);
}

.ledger { margin-top: 22px; }
.ledger__row {
  padding: 16px 0;
  border-top: 1px solid var(--hairline-lt);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.ledger__t { font-size: 14.5px; font-weight: 600; color: var(--text); }
.ledger__s { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.ledger__v { font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--bronze); text-align: right; white-space: nowrap; }
.ledger__since { font-size: 11.5px; color: var(--text-3); margin-top: 3px; text-align: right; }

/* =========================================================
   Why us
   ========================================================= */
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 5vw, 56px); }
.why__item {
  border-top: 1px solid var(--hairline-lt);
  padding: 22px 0;
  display: flex;
  gap: 20px;
  align-items: center;
}
.why__n {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  color: rgba(198,144,47,.6);
  flex: none;
  width: 34px;
}
.why__item p { font-size: 15.5px; color: var(--text-2); line-height: 1.45; }

/* =========================================================
   Capabilities
   ========================================================= */
.caps__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: clamp(40px, 6vw, 56px);
}
.caps__col { padding: 0 clamp(24px, 4vw, 48px); }
.caps__col--wf { border-right: 1px solid var(--hairline-lt); padding-left: 0; }
.caps__col--fleet { padding-right: 0; }
.caps__label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--bronze);
  margin-bottom: 22px;
}
.workforce { display: flex; flex-direction: column; gap: 18px; }
.fleet { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(198,144,47,.5);
  color: var(--text-2);
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 99px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.pill:hover { background: rgba(198,144,47,.1); transform: translateY(-2px); }
.pill .diamond { color: var(--gold); font-weight: 800; }
.caps__note { margin-top: 26px; font-size: 14.5px; color: var(--text-3); line-height: 1.6; max-width: 420px; }

/* =========================================================
   Gallery
   ========================================================= */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  grid-auto-flow: dense;
  gap: 12px;
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #0D0E10;
  display: block;
  padding: 0;
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.18);
  transition: transform .5s var(--ease), filter .3s var(--ease);
}
.tile:hover img { transform: scale(1.07); filter: grayscale(0); }
.tile:hover { outline: 2px solid var(--gold); }
.tile__cap {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(13,14,16,.88));
  display: flex;
  align-items: flex-end;
  padding: 16px;
  text-align: left;
}
.tile__cap span { font-family: var(--f-display); font-weight: 600; font-size: 13.5px; color: #F2F2F2; }
.tile--wide { grid-column: span 2; }
.tile--big  { grid-column: span 2; grid-row: span 2; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9,10,11,.95);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__fig {
  max-width: 1000px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}
.lightbox__img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox__cap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lightbox__cap b { font-family: var(--f-display); font-weight: 600; font-size: 16px; color: #F2F2F2; }
.lightbox__cap span { font-size: 13px; color: #9DA2AA; }
.lb-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.22);
  color: #F2F2F2;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lb-btn:hover { background: var(--gold); color: #111214; }
.lb-close { top: 20px; right: 22px; width: 46px; height: 46px; font-size: 22px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 26px; }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }

/* =========================================================
   Contact
   ========================================================= */
.contact__grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(36px, 6vw, 64px); }
.contact__aside { border-right: 1px solid var(--hairline-lt); padding-right: clamp(28px, 4vw, 56px); }
.contact__info { margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.contact__k {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--bronze);
}
.contact__v { margin-top: 7px; font-size: 15px; color: var(--text-2); line-height: 1.55; overflow-wrap: anywhere; }
.contact__v a { color: var(--bronze); }
.contact__v a:hover { color: var(--text); }

.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.field:last-of-type { margin-bottom: 0; }
.field label {
  font-family: var(--f-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--bronze);
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(22,23,27,.28);
  border-radius: 0;
  padding: 9px 2px;
  color: var(--text);
  font-family: inherit;
  font-size: 15.5px;
  transition: border-color .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #6E7178; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--gold);
}
.field textarea { resize: vertical; min-height: 70px; }
.field select { cursor: pointer; }
.field .error {
  font-size: 12px;
  color: #B4232A;
  font-weight: 600;
  display: none;
}
.field.invalid input,
.field.invalid select { border-bottom-color: #B4232A; }
.field.invalid .error { display: block; }
.form__submit { margin-top: 34px; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.form__error {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #B4232A;
  line-height: 1.5;
}
.form__error a { color: #B4232A; text-decoration: underline; }
.form__error a:hover { color: #8A1A20; }

.form__success {
  min-height: 360px;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  animation: zoom-in .4s var(--ease) both;
}
.form.is-sent .form__success { display: flex; }
.form.is-sent .form__body { display: none; }
.form__success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(198,144,47,.14);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--bronze);
}
.form__success h3 { font-family: var(--f-display); font-weight: 800; font-size: 26px; margin-top: 22px; color: var(--text); }
.form__success p { margin-top: 12px; font-size: 15px; color: var(--text-2); max-width: 400px; line-height: 1.6; }
.form__success .btn { margin-top: 24px; }

@keyframes zoom-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: #0F1012; color: var(--on-dark-2); border-top: 3px solid var(--gold); }
.footer__inner { max-width: var(--container); margin: 0 auto; padding: 64px var(--pad-x) 34px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { height: 44px; width: auto; }
.footer__brand b { font-family: var(--f-display); font-weight: 800; font-size: 15px; letter-spacing: .05em; color: var(--on-dark); }
.footer__brand b span { display: block; font-size: 9.5px; letter-spacing: .3em; color: #8A9099; font-weight: 700; }
.footer p.about { margin-top: 18px; font-size: 14px; color: #9BA1A9; line-height: 1.6; max-width: 320px; }
.footer h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--gold-bright);
  margin-bottom: 16px;
}
.footer__col a { display: block; font-size: 14px; color: var(--on-dark-2); padding: 5px 0; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--gold-bright); }
.footer address { font-style: normal; font-size: 13.5px; color: #9BA1A9; line-height: 1.7; }
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-dk);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #838994;
}

/* Back to top */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--on-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
  z-index: 55;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold-btn); color: #16171B; }

/* =========================================================
   Scroll reveal
   ========================================================= */
/* Progressive enhancement: only hide when JS is active, so content is
   always visible if scripting fails or is disabled. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .nav { gap: 16px; }
  .nav__links { gap: 22px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__figure { order: -1; }
  .about__figure::before { display: none; }
  .row h3 { width: 200px; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .matrix { grid-template-columns: repeat(2, 1fr); }
  .values__grid { grid-template-columns: 1fr 1fr; }
  .why__grid { grid-template-columns: 1fr; }

  .purpose__twin { grid-template-columns: 1fr; }
  .purpose__col:first-child { border-right: none; border-bottom: 1px solid var(--hairline-lt); padding-bottom: 40px; margin-bottom: 40px; padding-left: 0; }
  .purpose__col { padding-inline: 0; }

  .projects__grid, .caps__split, .contact__grid { grid-template-columns: 1fr; }
  .projects__col--exec, .caps__col--wf {
    border-right: none;
    border-bottom: 1px solid var(--hairline-lt);
    padding-bottom: clamp(36px, 6vw, 48px);
    margin-bottom: clamp(36px, 6vw, 48px);
  }
  .projects__col, .caps__col { padding-inline: 0; }
  .contact__aside { border-right: none; border-bottom: 1px solid var(--hairline-lt); padding-right: 0; padding-bottom: 40px; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* Stack the hero as a column so the stats sit as a full-width band
     BELOW the content instead of floating beside it as a flex sibling. */
  .hero { min-height: auto; flex-direction: column; align-items: stretch; }
  .hero__inner { width: 100%; padding-bottom: clamp(48px, 10vw, 64px); }
  .hero__stats { position: static; width: 100%; }
  .hero__stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .tile--big { grid-column: span 2; grid-row: span 1; }
  .tile--wide { grid-column: span 2; }

  .row { flex-wrap: wrap; gap: 8px 16px; }
  .row h3 { width: auto; flex: 1 1 100%; }
  .row__n { width: 44px; }
  .row p { flex: 1 1 100%; }
  .row__arrow { display: none; }

  /* Lightbox: move arrows to the bottom corners so they never cover the image */
  .lightbox__fig { max-height: 88vh; }
  .lightbox__img { max-height: 68vh; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; width: 46px; height: 46px; font-size: 24px; }
  .lb-prev { left: 20px; }
  .lb-next { right: 20px; }
  .lb-close { top: 16px; right: 16px; width: 42px; height: 42px; }
}

@media (max-width: 560px) {
  .hero__stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .matrix { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; gap: 0; }
  .form__grid .field { margin-bottom: 26px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* Extra-small phones (≤400px) — tighten lockups so nothing crowds or clips */
@media (max-width: 400px) {
  :root { --pad-x: 18px; }
  .brand { gap: 9px; }
  .brand__logo { height: 36px; }
  .brand__name b { font-size: 13.5px; letter-spacing: .04em; }
  .brand__name span { font-size: 8.5px; letter-spacing: .26em; }
  .nav__toggle { width: 42px; height: 42px; }

  .badge { font-size: 11px; letter-spacing: .16em; padding: 8px 14px; }
  .btn { padding: 14px 22px; }
  .hero__actions .btn { width: 100%; }

  .hero__stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-band { grid-template-columns: 1fr; }
  .stat-band__cell { text-align: left; }

  .projects__meta { gap: 6px; }
  .ledger__row { flex-direction: column; gap: 4px; }
  .ledger__v, .ledger__since { text-align: left; }

  .lightbox__cap { flex-direction: column; align-items: flex-start; gap: 4px; }
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* Short landscape phones — keep the hero from eating the whole viewport
   and lay the stats out as a full-width band below the content. */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: auto; flex-direction: column; align-items: stretch; }
  .hero__inner { width: 100%; padding-block: clamp(64px, 12vh, 96px) clamp(32px, 6vh, 48px); }
  .hero__stats { position: static; width: 100%; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__bg { animation: none; transform: scale(1.06); }
  .reveal { opacity: 1; transform: none; }
}
