/* ==========================================================================
   BHURAN BUILDING — Components
   Depends on the tokens defined in main.css (§1). Load after main.css.
   ========================================================================== */

/* ---------- §6  HEADER / NAV ---------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  background: transparent;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease), transform 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  height: var(--header-h);
}
/* Solid state: once scrolled, or on any page without a dark hero behind the bar */
.site-header.is-solid,
body:not(.has-dark-hero) .site-header {
  background: rgb(247 245 240 / 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgb(4 36 74 / 0.04);
}
/* Hide on scroll-down, reveal on scroll-up */
.site-header.is-hidden { transform: translateY(-102%); }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex: none; }
/* Two marks stacked in the same box: the navy one for light chrome, the white
   one for while the transparent header floats over a dark hero. */
.brand__marks { position: relative; display: block; height: 40px; width: 40.5px; flex: none; }
.brand__mark {
  position: absolute; inset: 0; height: 100%; width: auto; background: none;
  transition: opacity 0.3s var(--ease);
}
.brand__mark--light { opacity: 0; }
body.has-dark-hero .site-header:not(.is-solid) .brand__mark--dark { opacity: 0; }
body.has-dark-hero .site-header:not(.is-solid) .brand__mark--light { opacity: 1; }
.brand__type { display: grid; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.02rem; letter-spacing: 0.02em; color: var(--navy-800);
}
.brand__sub {
  font-family: var(--font-mono); font-size: 0.53rem; font-weight: 500;
  letter-spacing: 0.28em; color: var(--gold-600); margin-top: 4px;
}
@media (max-width: 22rem) { .brand__type { display: none; } }

/* Colour inversion while the transparent header sits over a dark hero */
body.has-dark-hero .site-header:not(.is-solid) .brand__name { color: var(--white); }
body.has-dark-hero .site-header:not(.is-solid) .brand__sub { color: var(--gold-400); }
body.has-dark-hero .site-header:not(.is-solid) .nav__link,
body.has-dark-hero .site-header:not(.is-solid) .header__phone { color: rgb(255 255 255 / 0.86); }
body.has-dark-hero .site-header:not(.is-solid) .nav-toggle__bar { background: var(--white); }
body.has-dark-hero .site-header:not(.is-solid) .btn--ghost { --btn-fg: var(--white); border-color: rgb(255 255 255 / 0.35); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 0.2rem + 1.6vw, 2.1rem); }
@media (max-width: 68rem) { .nav, .header__actions { display: none; } }

.nav__item { position: relative; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-display); font-size: 0.92rem; font-weight: 500;
  color: var(--navy-800); padding: 0.4rem 0;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--gold-500);
  transform: scaleX(0); transform-origin: right center;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover::after,
.nav__item:focus-within > .nav__link::after { transform: scaleX(1); transform-origin: left center; }
.nav__link[aria-current="page"] { color: var(--gold-600); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
body.has-dark-hero .site-header:not(.is-solid) .nav__link[aria-current="page"] { color: var(--gold-400); }
.nav__link .icon { width: 0.8rem; height: 0.8rem; transition: transform 0.35s var(--ease); }
.nav__item:hover .nav__link .icon { transform: rotate(180deg); }

/* Mega menu */
.mega {
  position: absolute; top: calc(100% + 0.9rem); left: 50%;
  transform: translate(-50%, 10px);
  width: min(46rem, calc(100vw - 3rem));
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
}
.nav__item:hover .mega,
.nav__item:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }

.mega__link {
  display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.85rem;
  align-items: center;
  padding: 0.8rem 0.9rem; border-radius: var(--radius);
  transition: background-color 0.28s var(--ease);
}
.mega__link:hover { background: var(--paper-2); }
.mega__num {
  grid-row: span 2; align-self: start;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--gold-600);
  border: 1px solid var(--line); border-radius: 2px;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  transition: background-color 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease);
}
.mega__link:hover .mega__num { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.mega__title { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--navy-800); }
.mega__desc { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.mega__foot {
  grid-column: 1 / -1; margin-top: 0.6rem; padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
@media (max-width: 48rem) { .mega { grid-template-columns: 1fr; } }

.header__actions { display: flex; align-items: center; gap: 1.1rem; }
/* Repeated after the declaration above: the earlier hide rule has the same
   specificity, so whichever comes last in the file wins — media query or not. */
@media (max-width: 68rem) { .nav, .header__actions { display: none; } }
.header__phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--navy-800);
  transition: color 0.3s var(--ease);
}
.header__phone:hover { color: var(--gold-600); }
.header__phone .icon { width: 1rem; height: 1rem; color: var(--gold-500); }

/* Burger */
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  place-items: center; gap: 5px; grid-auto-flow: row;
}
@media (max-width: 68rem) { .nav-toggle { display: grid; } }
.nav-toggle__bar {
  display: block; width: 24px; height: 2px; background: var(--navy-800);
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease), width 0.4s var(--ease);
}
.nav-toggle__bar:nth-child(2) { width: 17px; margin-left: auto; margin-right: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 24px; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 89;
  background: var(--navy-800);
  padding: calc(var(--header-h) + 1.5rem) 0 2rem;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease), visibility 0.6s;
}
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer__list { display: grid; }
.drawer__link {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-on-dark);
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 600;
  color: var(--white);
  opacity: 0; transform: translateY(18px);
}
.drawer.is-open .drawer__link { animation: drawer-in 0.5s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 55ms + 120ms); }
@keyframes drawer-in { to { opacity: 1; transform: none; } }
.drawer__link .idx { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold-400); }
.drawer__sub {
  padding: 0.5rem 0 0.5rem 2.4rem; font-size: 0.95rem; font-family: var(--font-body);
  color: rgb(255 255 255 / 0.65); border-bottom: 1px solid var(--line-on-dark);
  display: block;
}
.drawer__foot { margin-top: 2rem; display: grid; gap: 1rem; }
.drawer__contact { color: rgb(255 255 255 / 0.7); font-size: 0.92rem; display: grid; gap: 0.35rem; }
.drawer__contact a:hover { color: var(--gold-400); }

/* ---------- §7  HERO (home) ----------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy-800);
  color: var(--white);
  padding-top: calc(var(--header-h) + clamp(2.5rem, 1rem + 6vw, 6rem));
  padding-bottom: clamp(3rem, 1.5rem + 5vw, 5.5rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
@media (max-width: 64rem) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1, .hero h2, .hero h3 { color: var(--white); }
.hero__title { margin-top: 1.75rem; color: var(--white); }
.hero__lead { margin-top: 1.6rem; color: rgb(255 255 255 / 0.74); max-width: 46ch; font-size: var(--fs-lead); }
.hero .btn-row { margin-top: 2.25rem; }

.hero__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; margin-top: clamp(2.5rem, 1.5rem + 3vw, 3.75rem);
  background: var(--line-on-dark);
  border-block: 1px solid var(--line-on-dark);
}
.hero__fact { background: var(--navy-800); padding: 1.15rem 1.15rem 1.15rem 0; }
.hero__fact:not(:first-child) { padding-left: 1.15rem; }
.hero__fact dt {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--white);
  display: flex; align-items: center; gap: 0.5rem;
}
.hero__fact dt .icon { width: 0.95rem; height: 0.95rem; color: var(--gold-500); }
.hero__fact dd { font-size: 0.82rem; color: rgb(255 255 255 / 0.55); margin-top: 0.3rem; line-height: 1.45; }
@media (max-width: 40rem) {
  .hero__facts { grid-template-columns: 1fr; }
  .hero__fact, .hero__fact:not(:first-child) { padding: 0.95rem 0; }
}

/* Hero image column: tall portrait frame with a gold bracket + floating badge */
.hero__media { position: relative; }
.hero__frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(2 24 47 / 0.5), transparent 55%);
}
.hero__bracket {
  position: absolute; width: clamp(3.5rem, 8vw, 6rem); aspect-ratio: 1;
  border: 3px solid var(--gold-500); pointer-events: none;
}
.hero__bracket--tl { top: -14px; left: -14px; border-right: 0; border-bottom: 0; }
.hero__bracket--br { bottom: -14px; right: -14px; border-left: 0; border-top: 0; }
.hero__badge {
  position: absolute; left: clamp(-2.5rem, -3vw, -1rem); bottom: 12%;
  background: var(--white); color: var(--navy-800);
  padding: 1.1rem 1.35rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--gold-500);
  display: grid; gap: 0.15rem; min-width: 12rem;
}
.hero__badge .num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.hero__badge .lbl { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone-500); }
@media (max-width: 64rem) {
  .hero__media { max-width: 30rem; margin-inline: auto; margin-top: 1rem; }
  .hero__badge { left: auto; right: -0.75rem; }
}
@media (max-width: 30rem) { .hero__badge { display: none; } }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 1.5rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgb(255 255 255 / 0.5);
}
.hero__scroll span.bar {
  display: block; width: 2.5rem; height: 1px; background: currentColor; position: relative; overflow: hidden;
}
.hero__scroll span.bar::after {
  content: ""; position: absolute; inset: 0; background: var(--gold-500);
  animation: scroll-cue 2.2s var(--ease-in-out) infinite;
}
@keyframes scroll-cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@media (max-width: 64rem) { .hero__scroll { display: none; } }

/* ---------- §8  PAGE HERO (inner pages) ----------------------------------- */
.page-hero {
  position: relative; background: var(--navy-800); color: var(--white);
  padding-top: calc(var(--header-h) + clamp(3rem, 1.5rem + 6vw, 6.5rem));
  padding-bottom: clamp(3rem, 1.5rem + 5vw, 6rem);
  overflow: hidden; isolation: isolate;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
/* Two overlays: a horizontal wash that keeps the text side dark, plus a flat
   floor of navy so a bright photo (bare concrete, sky) cannot wash the
   headline out on the right. */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgb(2 24 47 / 0.95) 12%, rgb(4 36 74 / 0.88) 48%, rgb(4 36 74 / 0.7) 100%),
    linear-gradient(to top, rgb(2 24 47 / 0.75), rgb(2 24 47 / 0.45));
}
.page-hero__inner { max-width: 56rem; }
/* Headings default to navy site-wide; on a dark hero they must invert. */
.page-hero h1, .page-hero h2, .page-hero h3 { color: var(--white); }
.page-hero h1 { margin-top: 1.4rem; }
.page-hero .lead { margin-top: 1.35rem; color: rgb(255 255 255 / 0.76); }
.page-hero .btn-row { margin-top: 2rem; }

/* Breadcrumb */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgb(255 255 255 / 0.55);
}
.crumbs a:hover { color: var(--gold-400); }
.crumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before { content: "/"; color: rgb(255 255 255 / 0.3); }
.crumbs [aria-current] { color: var(--gold-400); }

/* ---------- §9  TICKER ---------------------------------------------------- */
.ticker {
  background: var(--gold-500); color: var(--navy-900);
  padding: 0.85rem 0; overflow: hidden;
  border-block: 1px solid rgb(2 24 47 / 0.12);
}
.ticker__track {
  display: flex; align-items: center; gap: 3rem; width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker__item {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.02em; white-space: nowrap;
}
.ticker__item .icon { width: 1rem; height: 1rem; }
.ticker__item::after { content: ""; width: 5px; height: 5px; background: var(--navy-900); transform: rotate(45deg); margin-left: 3rem; }

/* ---------- §10  STATS ---------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-on-dark); }
.stat { background: var(--navy-800); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1rem, 0.5rem + 1.5vw, 1.75rem); }
.section--ink .stat { background: var(--navy-900); }
.stat__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.75rem);
  line-height: 1; letter-spacing: -0.05em; color: var(--white);
  display: flex; align-items: baseline;
}
.stat__num .suffix { color: var(--gold-500); }
.stat__label {
  margin-top: 0.85rem; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-400);
}
.stat__desc { margin-top: 0.5rem; font-size: 0.85rem; color: rgb(255 255 255 / 0.55); line-height: 1.5; }
@media (max-width: 62rem) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 32rem) { .stats { grid-template-columns: 1fr; } }

/* ---------- §11  CARDS ---------------------------------------------------- */
.card {
  position: relative; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: -1px -1px auto -1px; height: 3px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left center;
  transition: transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.section--alt .card { background: var(--white); }

.card__icon {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  background: var(--navy-050); color: var(--navy-800); border-radius: var(--radius);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.card:hover .card__icon { background: var(--navy-800); color: var(--gold-400); }
.card__icon .icon { width: 1.4rem; height: 1.4rem; }
.card h3 { margin-top: 1.15rem; }
.card p { margin-top: 0.7rem; color: var(--stone-700); font-size: 0.94rem; }

/* Service card — numbered, image-topped */
.svc {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.svc:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.svc__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.06); }
.svc__num {
  position: absolute; top: 0; left: 0; z-index: 2;
  background: var(--navy-800); color: var(--gold-400);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  padding: 0.5rem 0.8rem;
}
.svc__body { padding: clamp(1.35rem, 1rem + 1.1vw, 1.85rem); display: flex; flex-direction: column; flex: 1; }
.svc__body h3 { transition: color 0.3s var(--ease); }
.svc:hover .svc__body h3 { color: var(--gold-600); }
.svc__body p { margin-top: 0.7rem; color: var(--stone-700); font-size: 0.94rem; }
.svc__list { margin-top: 1.1rem; display: grid; gap: 0.45rem; }
.svc__list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--stone-700); }
.svc__list .icon { width: 0.95rem; height: 0.95rem; color: var(--gold-500); margin-top: 0.28rem; }
.svc__foot { margin-top: auto; padding-top: 1.4rem; }
/* Whole card clickable, link stays the accessible target */
.svc__link::after { content: ""; position: absolute; inset: 0; }

/* Feature list with gold tick */
.ticks { display: grid; gap: 0.75rem; }
.ticks li { display: flex; gap: 0.75rem; align-items: flex-start; }
.ticks .icon { width: 1.15rem; height: 1.15rem; color: var(--gold-500); margin-top: 0.2rem; }
.section--navy .ticks li, .section--ink .ticks li { color: rgb(255 255 255 / 0.78); }

/* ---------- §12  SPLIT (image + copy) ------------------------------------- */
.split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center;
}
.split--wide-text { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
@media (max-width: 60rem) { .split, .split--wide-text { grid-template-columns: 1fr; } }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius); }
.split--reverse .split__media { order: 2; }
@media (max-width: 60rem) { .split--reverse .split__media { order: 0; } }

/* Stacked/offset image pair */
.media-stack { position: relative; padding-bottom: 4.5rem; padding-right: 3rem; }
.media-stack__main { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.media-stack__main img { width: 100%; height: 100%; object-fit: cover; }
.media-stack__inset {
  position: absolute; right: 0; bottom: 0; width: 58%;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
  border: 6px solid var(--paper); box-shadow: var(--shadow-lg);
}
.section--alt .media-stack__inset { border-color: var(--paper-2); }
.media-stack__inset img { width: 100%; height: 100%; object-fit: cover; }
.media-stack__tag {
  position: absolute; left: -1px; top: 1.75rem; z-index: 2;
  background: var(--gold-500); color: var(--navy-900);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.55rem 0.95rem;
}
@media (max-width: 60rem) { .media-stack { padding-right: 2rem; padding-bottom: 3rem; } }

/* Experience badge (rotating gold seal) */
.seal {
  position: absolute; right: -1.25rem; top: -1.25rem; z-index: 3;
  width: clamp(6rem, 12vw, 8.5rem); aspect-ratio: 1;
  background: var(--navy-800); color: var(--white);
  border-radius: 50%; display: grid; place-content: center; text-align: center;
  border: 2px solid var(--gold-500);
  box-shadow: var(--shadow-lg);
}
.seal__num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--gold-400); }
.seal__txt { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.3rem; }

/* ---------- §13  PROCESS TIMELINE ----------------------------------------- */
.process { position: relative; display: grid; gap: 0; }
.process__row {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 0.5rem + 2vw, 2.75rem);
  padding-block: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  border-top: 1px solid var(--line);
  align-items: start;
  transition: background-color 0.4s var(--ease);
}
.section--navy .process__row, .section--ink .process__row { border-top-color: var(--line-on-dark); }
.process__row:last-child { border-bottom: 1px solid var(--line); }
.section--navy .process__row:last-child { border-bottom-color: var(--line-on-dark); }
.process__num {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em;
  color: var(--gold-600); display: flex; align-items: center; gap: 0.6rem;
}
.section--navy .process__num, .section--ink .process__num { color: var(--gold-400); }
.process__num::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.35; }
.process__body p { margin-top: 0.75rem; color: var(--stone-700); font-size: 0.95rem; }
.section--navy .process__body p, .section--ink .process__body p { color: rgb(255 255 255 / 0.7); }
.process__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-self: center;
}
.chip {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.4rem 0.7rem; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--stone-700);
}
.section--navy .chip, .section--ink .chip { border-color: var(--line-on-dark); color: rgb(255 255 255 / 0.7); }
@media (max-width: 60rem) {
  .process__row { grid-template-columns: 1fr; gap: 0.85rem; }
  .process__meta { align-self: start; }
}

/* Numbered value block — used on the About page */
.value {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.4rem 1.35rem;
  padding-top: 1.75rem; border-top: 1px solid var(--line);
}
.section--navy .value, .section--ink .value { border-top-color: var(--line-on-dark); }
.value__num {
  grid-row: span 2;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em;
  color: var(--gold-500);
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  border: 1px solid currentColor; border-radius: 2px;
}
.value p { color: var(--stone-700); font-size: 0.95rem; }
.section--navy .value p, .section--ink .value p { color: rgb(255 255 255 / 0.7); }

/* ---------- §14  PROJECTS ------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.filter {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 500;
  padding: 0.6rem 1.05rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--stone-700);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.filter:hover { border-color: var(--navy-800); color: var(--navy-800); }
.filter[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem); }
@media (max-width: 62rem) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .work-grid { grid-template-columns: 1fr; } }
.work-grid > [hidden] { display: none; }

.work {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  background: var(--navy-800); aspect-ratio: 4 / 3;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.work--tall { aspect-ratio: 3 / 4; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity 0.5s var(--ease); }
.work:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.work:hover img { transform: scale(1.07); opacity: 0.72; }
/* Gallery-only tiles with no detail page: shown, but not pretending to be clickable */
.work--static { cursor: default; }
.work--static:hover { transform: none; box-shadow: none; }
.work--static:hover img { transform: none; opacity: 1; }
.work__veil {
  position: absolute; inset: 0;
  /* Weighted for the light-toned photos (bathrooms, white corridors) — the
     caption has to stay legible on those, not just on the dark exteriors. */
  background: linear-gradient(to top, rgb(2 24 47 / 0.95) 0%, rgb(2 24 47 / 0.8) 22%, rgb(2 24 47 / 0.3) 52%, transparent 78%);
  transition: opacity 0.5s var(--ease);
}
.work__body { position: absolute; inset: auto 0 0 0; padding: clamp(1.1rem, 0.8rem + 1vw, 1.6rem); color: var(--white); }
.work__body > span { display: block; }
.work__cat {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-400);
}
.work__name { color: var(--white); margin-top: 0.5rem; font-size: 1.2rem; }
.work__loc { font-size: 0.82rem; color: rgb(255 255 255 / 0.62); margin-top: 0.3rem; }
.work__go {
  position: absolute; top: 1rem; right: 1rem;
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  background: var(--gold-500); color: var(--navy-900); border-radius: var(--radius);
  opacity: 0; transform: translate(6px, -6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.work:hover .work__go { opacity: 1; transform: none; }

/* ---------- §15  TESTIMONIALS --------------------------------------------- */
.quote {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  display: flex; flex-direction: column; gap: 1.25rem; height: 100%;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.quote:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.quote__mark {
  font-family: var(--font-display); font-size: 3.5rem; line-height: 0.6; color: var(--gold-300);
  height: 1.6rem;
}
.quote blockquote { font-size: 1rem; color: var(--stone-700); line-height: 1.72; }
.quote__stars { display: flex; gap: 0.2rem; color: var(--gold-500); }
.quote__stars .icon { width: 1rem; height: 1rem; }
.quote__by { margin-top: auto; padding-top: 1.15rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 0.85rem; }
.avatar {
  width: 2.75rem; height: 2.75rem; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800); color: var(--gold-400);
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em;
}
.quote__name { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--navy-800); }
.quote__meta { font-size: 0.8rem; color: var(--muted); }

/* Big pull quote on navy */
.pullquote { max-width: 52rem; margin-inline: auto; text-align: center; }
.pullquote blockquote {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.35rem, 0.95rem + 1.9vw, 2.35rem);
  line-height: 1.3; letter-spacing: -0.025em; color: var(--white);
}
.pullquote figcaption { margin-top: 1.75rem; display: grid; gap: 0.25rem; }

/* ---------- §16  FAQ / ACCORDION ------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--navy-800);
  transition: color 0.3s var(--ease);
}
.faq__q:hover { color: var(--gold-600); }
.faq__sign { position: relative; width: 1.1rem; height: 1.1rem; flex: none; }
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 2px; background: var(--gold-500);
  transition: transform 0.4s var(--ease);
}
.faq__sign::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 1.5rem; color: var(--stone-700); max-width: 68ch; }

/* ---------- §17  FORMS ---------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
@media (max-width: 46rem) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field > label, .fieldset__legend {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.01em; color: var(--navy-800);
}
.field .req { color: var(--gold-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304244a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 1rem; padding-right: 2.6rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgb(198 151 43 / 0.18);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.field__hint { font-size: 0.78rem; color: var(--muted); }

.fieldset { border: 0; padding: 0; display: grid; gap: 0.7rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); font-size: 0.9rem; cursor: pointer;
  transition: border-color 0.28s var(--ease), background-color 0.28s var(--ease), color 0.28s var(--ease);
}
.choice span::before {
  content: ""; width: 1rem; height: 1rem; flex: none;
  border: 1px solid var(--stone-300); border-radius: 2px;
  transition: background-color 0.28s var(--ease), border-color 0.28s var(--ease);
}
.choice input:checked + span { border-color: var(--navy-800); background: var(--navy-050); color: var(--navy-800); font-weight: 600; }
.choice input:checked + span::before { background: var(--gold-500); border-color: var(--gold-500); }
.choice input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 2px; }

.form__status { font-size: 0.92rem; padding: 0.9rem 1.1rem; border-radius: var(--radius); display: none; }
.form__status.is-shown { display: block; }
.form__status.is-ok { background: var(--gold-050); border: 1px solid var(--gold-300); color: var(--gold-600); }
.form__status.is-err { background: #fdecea; border: 1px solid #f2b8b5; color: #b3261e; }

/* Form panel */
.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 1.1rem + 1.8vw, 2.75rem); box-shadow: var(--shadow-sm);
}
.panel--navy { background: var(--navy-800); border-color: var(--line-on-dark); color: rgb(255 255 255 / 0.78); }
.panel--navy h1, .panel--navy h2, .panel--navy h3, .panel--navy h4 { color: var(--white); }
.panel--navy .field input, .panel--navy .field select, .panel--navy .field textarea { color: var(--ink); }

/* Quote form progress */
.steps { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.steps__item {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--stone-500);
}
.steps__dot {
  width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-strong); font-size: 0.65rem;
}
.steps__item.is-active { color: var(--navy-800); }
.steps__item.is-active .steps__dot { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }

/* ---------- §18  CONTACT -------------------------------------------------- */
.contact-list { display: grid; gap: 1.5rem; }
.contact-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.contact-item__icon {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  border: 1px solid var(--line-on-dark); border-radius: var(--radius); color: var(--gold-400);
}
.panel:not(.panel--navy) .contact-item__icon { border-color: var(--line); background: var(--navy-050); color: var(--navy-800); }
.contact-item dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-400); }
.panel:not(.panel--navy) .contact-item dt { color: var(--gold-600); }
.contact-item dd { font-size: 1rem; margin-top: 0.3rem; }
.contact-item dd a:hover { color: var(--gold-400); }
.panel:not(.panel--navy) .contact-item dd a:hover { color: var(--gold-600); }

.map-frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--paper-2);
  display: grid; place-items: center; text-align: center; padding: 2rem;
}

/* ---------- §19  CTA BAND ------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--gold-500); color: var(--navy-900);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(115deg, transparent 40%, rgb(255 255 255 / 0.16) 40%, rgb(255 255 255 / 0.16) 52%, transparent 52%);
}
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem 3rem; flex-wrap: wrap; }
/* Copy takes the slack, the buttons sit hard right until the row has to wrap. */
.cta__inner > :first-child { flex: 1 1 26rem; }
.cta__inner > .btn-row { flex: 0 0 auto; }
.cta h2 { color: var(--navy-900); max-width: 24ch; }
.cta p { margin-top: 0.85rem; color: rgb(2 24 47 / 0.75); max-width: 46ch; }
.cta .btn { --btn-bg: var(--navy-800); --btn-fg: var(--white); }
.cta .btn::after { background: var(--white); }
.cta .btn:hover { color: var(--navy-900); border-color: var(--white); }
.cta .btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy-900); border-color: rgb(2 24 47 / 0.35); }

/* ---------- §20  FOOTER --------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgb(255 255 255 / 0.62); padding-top: clamp(3.5rem, 2rem + 5vw, 6rem); }
.site-footer h4 {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1.35rem;
}
.footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
@media (max-width: 68rem) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38rem) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .brand__mark { height: 52px; }
.footer__about { margin-top: 1.25rem; font-size: 0.92rem; line-height: 1.65; max-width: 34ch; }
.footer__links { display: grid; gap: 0.7rem; }
.footer__links a { font-size: 0.92rem; transition: color 0.28s var(--ease), padding-left 0.28s var(--ease); display: inline-block; }
.footer__links a:hover { color: var(--gold-400); padding-left: 5px; }
.footer__contact { display: grid; gap: 0.9rem; font-size: 0.92rem; }
.footer__contact div { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; }
.footer__contact .icon { width: 1rem; height: 1rem; color: var(--gold-500); margin-top: 0.32rem; }
.footer__contact a:hover { color: var(--gold-400); }

.socials { display: flex; gap: 0.6rem; margin-top: 1.75rem; }
.social {
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  border: 1px solid var(--line-on-dark); border-radius: var(--radius); color: rgb(255 255 255 / 0.7);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.social:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); transform: translateY(-3px); }
/* Inert until a real profile URL is set in js/content.js */
.social[aria-disabled="true"] { opacity: 0.45; cursor: default; }
.social[aria-disabled="true"]:hover { background: none; border-color: var(--line-on-dark); color: rgb(255 255 255 / 0.7); transform: none; }
.social .icon { width: 1.05rem; height: 1.05rem; }

.footer__bar {
  border-top: 1px solid var(--line-on-dark);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: rgb(255 255 255 / 0.45);
}
.footer__bar a:hover { color: var(--gold-400); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* Back to top */
.to-top {
  position: fixed; right: clamp(1rem, 2vw, 2rem); bottom: clamp(1rem, 2vw, 2rem); z-index: 80;
  width: 2.9rem; height: 2.9rem; display: grid; place-items: center;
  background: var(--navy-800); color: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s, background-color 0.3s var(--ease);
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold-500); color: var(--navy-900); }

/* ---------- §21  TEAM ----------------------------------------------------- */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem); }
@media (max-width: 62rem) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .team { grid-template-columns: 1fr; } }
.member {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; text-align: center;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.member__avatar {
  width: 5rem; height: 5rem; margin-inline: auto; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800); color: var(--gold-400);
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  border: 2px solid var(--gold-500);
}
.member h3 { margin-top: 1.25rem; font-size: 1.05rem; }
.member__role { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-600); margin-top: 0.5rem; }
.member p { margin-top: 0.85rem; font-size: 0.88rem; color: var(--stone-700); }

/* ---------- §22  CREDENTIALS ---------------------------------------------- */
.creds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 52rem) { .creds { grid-template-columns: 1fr; } }
.cred { background: var(--white); padding: 1.6rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.cred .icon { width: 1.5rem; height: 1.5rem; color: var(--gold-500); }
.cred h4 { font-family: var(--font-display); font-size: 0.98rem; }
.cred p { font-size: 0.86rem; color: var(--stone-700); margin-top: 0.35rem; }

/* ---------- §23  PROJECT DETAIL ------------------------------------------- */
.spec {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px;
}
@media (max-width: 52rem) { .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spec > div { background: var(--white); padding: 1.35rem 1.5rem; }
.spec dt { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-600); }
.spec dd { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--navy-800); margin-top: 0.5rem; }

.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(0.6rem, 0.4rem + 0.8vw, 1rem); }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery figure { overflow: hidden; border-radius: var(--radius); }
.gallery .g-wide { grid-column: span 4; aspect-ratio: 16 / 10; }
.gallery .g-tall { grid-column: span 2; aspect-ratio: 4 / 5; }
.gallery .g-half { grid-column: span 3; aspect-ratio: 3 / 2; }
@media (max-width: 52rem) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .g-wide, .gallery .g-tall, .gallery .g-half { grid-column: span 2; aspect-ratio: 3 / 2; }
}

/* ---------- §24  404 ------------------------------------------------------ */
.notfound { min-height: 78vh; display: grid; place-content: center; text-align: center; padding-top: var(--header-h); }
.notfound__code {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(6rem, 3rem + 18vw, 16rem); line-height: 0.85; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 2px var(--gold-500);
}
