/* Maguire Aerial Mapping - site styles.
   Brand guide (client-assets/.../Brand Guidelines Presentation.pdf): black + antique gold first,
   deep forest green and soft stone in support. Montserrat for headings, intros and subheads
   (uppercase, 160 tracking = 0.16em); Verdana for body copy. */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000;
  --ink-2: #070908;
  --forest: #042824;
  --forest-2: #06352f;
  --gold: #B19766;
  --gold-hi: #CDB687;
  --gold-lo: #8a7449;
  --stone: #E8E7E2;
  --white: #fff;
  --text: #ecebe6;
  --muted: #b9b6ab;
  --line: rgba(177, 151, 102, .32);
  --line-soft: rgba(255, 255, 255, .12);
  --panel: rgba(3, 9, 8, .80);
  --head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: Verdana, Tahoma, "DejaVu Sans", Geneva, sans-serif;
  --track: .16em;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 48px);
  --hdr: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 15.5px/1.7 var(--body);
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 500; margin: 0 0 .6em; line-height: 1.15; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #000; padding: 10px 16px; font-family: var(--head); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

/* ---------------------------------------------------------------- type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12px/1.4 var(--head); letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--plain::before { display: none; }
.h-display {
  font: 400 clamp(40px, 7.4vw, 104px)/1.02 var(--head);
  letter-spacing: .06em; text-transform: uppercase; margin: 0 0 .35em;
}
.h-display .gold { color: var(--gold); }
.h1 { font: 400 clamp(30px, 4.6vw, 58px)/1.12 var(--head); letter-spacing: .08em; text-transform: uppercase; }
.h2 { font: 400 clamp(24px, 3.2vw, 40px)/1.18 var(--head); letter-spacing: .1em; text-transform: uppercase; }
.h3 { font: 700 clamp(15px, 1.4vw, 17px)/1.3 var(--head); letter-spacing: var(--track); text-transform: uppercase; }
.h4 { font: 600 17px/1.35 var(--head); letter-spacing: .02em; }
.lede {
  font: 400 clamp(14px, 1.25vw, 16px)/1.75 var(--head); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text); max-width: 46em;
}
.sub { font: 500 clamp(17px, 1.6vw, 21px)/1.45 var(--head); color: var(--gold-hi); letter-spacing: .01em; margin-bottom: 1em; }
.muted { color: var(--muted); }
.kicker { font: 700 13px/1.5 var(--head); letter-spacing: var(--track); text-transform: uppercase; color: var(--gold); }
.tlink { color: var(--gold-hi); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tlink:hover { color: var(--white); }

/* ---------------------------------------------------------------- buttons */
.btn {
  --b: var(--gold);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px; border: 1px solid var(--b); background: var(--b); color: #000;
  font: 700 12.5px/1 var(--head); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; background: var(--white); z-index: -1;
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: none; }
.btn:hover { border-color: var(--white); }
.btn svg { width: 18px; height: 10px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--gold-hi); }
.btn--ghost:hover { color: #000; }
.btn--dark { --b: #000; color: var(--gold-hi); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------------------------------------------------------------- header + nav */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr);
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.hdr.is-solid { background: rgba(0, 0, 0, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-soft); }
.hdr__in { height: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr__logo img { height: 31px; width: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px;
  font: 600 12px/1 var(--head); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--text);
  transition: color .25s;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--gold-hi); }
.nav__chev { width: 10px; height: 7px; transition: transform .3s var(--ease); }
.nav__link--cta { border: 1px solid var(--gold); color: var(--gold-hi); margin-left: 10px; padding: 12px 18px; }
.nav__link--cta:hover { background: var(--gold); color: #000; }
.nav__item--drop { position: relative; }
.nav__menu {
  list-style: none; position: absolute; top: calc(100% + 10px); left: -10px; min-width: 330px;
  background: rgba(4, 8, 7, .96); border: 1px solid var(--line); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
/* Hover bridge across the 10px gap (fleet rule: hover-dropdown-dead-zone.md) + close delay. */
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item--drop:hover .nav__menu, .nav__item--drop:focus-within .nav__menu, .nav__item--drop.is-open .nav__menu {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.nav__item--drop:hover .nav__chev, .nav__item--drop.is-open .nav__chev { transform: rotate(180deg); }
.nav__item--drop:not(:hover):not(.is-open) .nav__menu { transition-delay: .14s, .14s, .39s; }
.nav__menu a {
  display: flex; align-items: baseline; gap: 14px; padding: 14px 14px; text-decoration: none;
  font: 500 14px/1.3 var(--head); letter-spacing: .02em; color: var(--text); border-left: 2px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
}
.nav__menu a:hover { background: rgba(177, 151, 102, .1); border-color: var(--gold); color: var(--white); }
.nav__num { font: 600 11px/1 var(--head); color: var(--gold); letter-spacing: .1em; }
.burger { display: none; width: 46px; height: 46px; background: none; border: 1px solid var(--line); cursor: pointer; position: relative; }
.burger span:not(.sr) { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--gold-hi); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  :root { --hdr: 64px; }
  /* 🔴 No backdrop-filter on the header here: it makes the header the containing block of the
     fixed .nav below, and the open menu was squeezed into a 58px strip under the header. */
  .hdr.is-solid { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0, 0, 0, .94); }
  .hdr__logo img { height: 26px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--hdr) 0 0; background: rgba(0, 0, 0, .97); padding: 18px var(--gut) 40px;
    overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line-soft); }
  .nav__link { width: 100%; padding: 20px 0; font-size: 14px; }
  .nav__link--cta { margin: 22px 0 0; justify-content: center; padding: 18px; }
  .nav__item--drop .nav__chev { display: none; }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; border: 0; padding: 0 0 14px; background: none; backdrop-filter: none; }
  .nav__menu a { padding: 12px 0 12px 12px; }
}

/* ---------------------------------------------------------------- sections */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--ink { background: var(--ink); }
.section--ink2 { background: var(--ink-2); }
.section--forest { background: var(--forest); }
.section--stone { background: var(--stone); color: #141412; }
.section--stone .eyebrow, .section--stone .kicker { color: #6b5a36; }
.section--stone .sub { color: var(--forest); }
.section--stone .muted { color: #4a4a44; }
.section--stone .tlink { color: var(--forest); }
.section--stone .tlink:hover { color: #000; }
.section--stone .btn--ghost { color: #000; border-color: #000; }
.section--stone .btn--ghost:hover { color: var(--gold-hi); }
.section--stone .btn--ghost::after { background: #000; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.head-block { max-width: 820px; margin-bottom: clamp(40px, 5vw, 64px); }
.head-block--center { margin-left: auto; margin-right: auto; text-align: center; }
.head-block--center .eyebrow { justify-content: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
.split--wide-left { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 860px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

.prose { max-width: 680px; }
.prose h2 { font: 400 clamp(22px, 2.6vw, 32px)/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; margin-top: 1.6em; }
.prose h3 { font: 700 15px/1.35 var(--head); letter-spacing: var(--track); text-transform: uppercase; color: var(--gold); margin-top: 1.8em; }

/* Bullet lists drawn as survey points */
.points { list-style: none; display: grid; gap: 2px; margin: 0 0 1.4em; }
.points--2 { grid-template-columns: 1fr 1fr; column-gap: 28px; }
@media (max-width: 560px) { .points--2 { grid-template-columns: 1fr; } }
.points li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px solid var(--line-soft); }
.section--stone .points li { border-color: rgba(0, 0, 0, .12); }
.points li::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 9px; height: 9px; margin-top: -5px;
  border: 1.5px solid var(--gold); transform: rotate(45deg);
}
.points li::after { content: ""; position: absolute; left: 7px; top: 50%; width: 3px; height: 3px; margin-top: -2px; background: var(--gold); transform: rotate(45deg); }

/* Labels that keep demonstration material honest (brief: "clearly distinguish") */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 10.5px/1 var(--head); letter-spacing: .2em; text-transform: uppercase;
  padding: 8px 11px; border: 1px solid currentColor; color: var(--gold-hi); background: rgba(0, 0, 0, .55);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--live::before { animation: blink 1.6s infinite; }
.tag--field { color: #9fd3c4; }
.tag--soon { color: var(--muted); }
@keyframes blink { 50% { opacity: .25; } }

.note {
  border-left: 2px solid var(--gold); padding: 16px 20px; background: rgba(177, 151, 102, .08);
  font-size: 14px; line-height: 1.65; color: var(--muted); margin: 1.6em 0;
}
.section--stone .note { background: rgba(4, 40, 36, .06); color: #33332e; border-color: var(--forest); }

/* ---------------------------------------------------------------- media */
.photo { position: relative; margin: 0; overflow: hidden; background: #0b0d0c; }
.photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease); }
.photo.is-in img { transform: none; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 3 / 2; }
.photo--cine { aspect-ratio: 16 / 9; }
.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85)); font-size: 12.5px; line-height: 1.5; color: #e2e0d8;
}
.photo .tag { position: absolute; top: 14px; left: 14px; z-index: 2; }
.frame { position: relative; }
.frame::before, .frame::after { content: ""; position: absolute; width: 34px; height: 34px; border: 1px solid var(--gold); z-index: 3; pointer-events: none; }
.frame::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }

/* ---------------------------------------------------------------- cards / grids */
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1060px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative; border: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0));
  padding: clamp(24px, 2.6vw, 34px); transition: border-color .35s var(--ease), transform .5s var(--ease), background .35s;
  transform-style: preserve-3d;
}
.card:hover { border-color: var(--line); }
.card__num { font: 500 44px/1 var(--head); color: transparent; -webkit-text-stroke: 1px var(--gold); paint-order: stroke fill; letter-spacing: .04em; margin-bottom: 22px; display: block; }
.card h3 { margin-bottom: .7em; }
.card p:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; display: flex; flex-direction: column; }
.card--link .card__go { margin-top: auto; padding-top: 22px; font: 700 12px/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi); display: inline-flex; gap: 10px; align-items: center; }
.card--media { padding: 0; overflow: hidden; }
.card--media .card__body { padding: clamp(22px, 2.4vw, 30px); }
.card--media .photo { aspect-ratio: 16 / 10; }
.section--stone .card { border-color: rgba(0, 0, 0, .14); background: rgba(255, 255, 255, .5); }

/* What was captured -> produced -> helps with (brief, Our Work) */
.flow { list-style: none; display: grid; gap: 0; margin: 18px 0 0; counter-reset: f; }
.flow li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.flow li b { display: block; font: 700 10.5px/1.4 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.flow li::before { counter-increment: f; content: counter(f); position: absolute; left: 0; top: 11px; font: 600 11px/1 var(--head); color: var(--gold); }

/* Numbered expectations (Our Company) */
.expect { list-style: none; counter-reset: e; display: grid; gap: 0; }
.expect li { counter-increment: e; display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 34px 0; border-top: 1px solid var(--line); }
.expect li::before { content: "0" counter(e); font: 300 42px/1 var(--head); color: var(--gold); }
.expect h3 { font: 500 clamp(19px, 2vw, 24px)/1.3 var(--head); letter-spacing: .02em; text-transform: none; margin-bottom: .5em; }
@media (max-width: 600px) { .expect li { grid-template-columns: 1fr; gap: 10px; } }

/* People */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
@media (max-width: 900px) { .people { grid-template-columns: 1fr; } }
.person { border-top: 1px solid var(--gold); padding-top: 28px; }
.person__face { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; margin-bottom: 22px; background: #111; }
.person__face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.person h3 { font: 600 21px/1.25 var(--head); letter-spacing: .02em; text-transform: none; margin-bottom: 4px; }
.person__role { font: 700 11px/1.5 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }

/* Equipment */
.equip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.equip > div { padding: 34px clamp(18px, 2.4vw, 32px) 34px 0; }
.equip > div + div { border-left: 1px solid var(--line-soft); padding-left: clamp(18px, 2.4vw, 32px); }
@media (max-width: 900px) { .equip { grid-template-columns: 1fr; } .equip > div + div { border-left: 0; border-top: 1px solid var(--line-soft); padding-left: 0; } }

/* ---------------------------------------------------------------- the 3D viewers on inner pages */
.viewer {
  position: relative; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 30%, #0b1a17, #000 70%);
  aspect-ratio: 16 / 9; overflow: hidden; touch-action: pan-y;
}
.viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.viewer__ui { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 3; align-items: flex-end; justify-content: space-between; pointer-events: none; }
.viewer__ui > * { pointer-events: auto; }
.viewer__tags { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 10px; z-index: 3; pointer-events: none; flex-wrap: wrap; }
.viewer__hint { font: 600 10.5px/1.4 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); background: rgba(0, 0, 0, .55); padding: 8px 11px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); background: rgba(0, 0, 0, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.seg button {
  border: 0; background: none; color: var(--muted); padding: 11px 14px; cursor: pointer;
  font: 700 10.5px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; transition: color .2s, background .2s;
}
.seg button + button { border-left: 1px solid var(--line-soft); }
.seg button:hover { color: var(--white); }
.seg button[aria-pressed="true"] { background: var(--gold); color: #000; }
.range { display: flex; align-items: center; gap: 12px; background: rgba(0, 0, 0, .7); border: 1px solid var(--line); padding: 10px 14px; font: 700 10.5px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.range input { accent-color: var(--gold); width: min(240px, 40vw); }
.viewer__fallback { position: absolute; inset: 0; display: none; }
.viewer__fallback img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.no-webgl .viewer__fallback { display: block; }
.no-webgl .viewer canvas, .no-webgl .viewer__ui { display: none; }
.viewer__labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.pin-label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); white-space: nowrap;
  font: 700 10px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: #000; background: var(--gold);
  padding: 6px 8px; margin-top: -10px; transition: opacity .3s; will-change: transform;
}
.pin-label::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 10px; background: var(--gold); }
.pin-label--dark { background: rgba(0, 0, 0, .8); color: var(--gold-hi); border: 1px solid var(--gold); }
@media (max-width: 680px) { .viewer { aspect-ratio: 4 / 5; } .viewer__hint { display: none; } .split-cap { top: 50px; } }

/* Thermal split handle */
.split-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; z-index: 4; pointer-events: none; }
.split-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--gold); box-shadow: 0 0 18px rgba(177, 151, 102, .7); }
.split-handle span {
  position: absolute; top: 50%; left: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: #000; border: 1.5px solid var(--gold); display: grid; place-items: center; pointer-events: auto; cursor: ew-resize;
  color: var(--gold-hi); font: 700 14px/1 var(--head);
}
.split-cap { position: absolute; top: 56px; z-index: 3; font: 700 10.5px/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--white); background: rgba(0, 0, 0, .6); padding: 8px 10px; pointer-events: none; }
.split-cap--l { left: 14px; }
.split-cap--r { right: 14px; }

/* ---------------------------------------------------------------- inner page hero */
.phero { position: relative; padding: calc(var(--hdr) + clamp(48px, 7vw, 100px)) 0 clamp(56px, 7vw, 90px); overflow: hidden; }
.phero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 80% 0%, rgba(4, 40, 36, .9), transparent 70%), radial-gradient(ellipse 50% 50% at 0% 100%, rgba(177, 151, 102, .08), transparent 70%); pointer-events: none; }
.phero__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 1000px) { .phero__grid { grid-template-columns: 1fr; } }
.crumb { font: 600 11px/1.4 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.crumb a { text-decoration: none; color: var(--gold); }
.crumb a:hover { color: var(--gold-hi); }

/* ---------------------------------------------------------------- HOME: the world */
.world { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; background: #000; }
.world-fallback { position: fixed; inset: 0; z-index: 0; display: none; background: #000 center / cover no-repeat; }
.world-fallback::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, .35)); }
.no-webgl .world-fallback { display: block; }
.no-webgl .world { display: none; }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55)); }

.story { position: relative; z-index: 2; }
.chapter { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hdr) + 40px) 0 80px; }
.chapter--tall { min-height: 150vh; align-items: flex-start; }
.chapter--tall .panel { position: sticky; top: calc(var(--hdr) + 7vh); }
.chapter__in { width: 100%; }
.panel {
  position: relative; max-width: 540px; background: var(--panel); padding: clamp(26px, 3.2vw, 44px);
  border: 1px solid var(--line-soft); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1);
}
.panel--r { margin-left: auto; }
.panel::before { content: ""; position: absolute; top: -1px; left: -1px; width: 56px; height: 2px; background: var(--gold); }
.panel h2 { font: 400 clamp(26px, 3vw, 40px)/1.15 var(--head); letter-spacing: .1em; text-transform: uppercase; }
.panel__idx { font: 600 11px/1 var(--head); letter-spacing: .22em; color: var(--gold); margin-bottom: 20px; display: flex; gap: 14px; align-items: center; }
.panel__idx i { display: block; height: 1px; flex: 0 0 40px; background: var(--line); font-style: normal; }
.panel .points { margin-top: 6px; }

.hero { min-height: 100vh; min-height: 100svh; align-items: flex-end; padding-bottom: clamp(70px, 12vh, 140px); }
.hero__title { max-width: 14ch; text-shadow: 0 2px 40px rgba(0, 0, 0, .6); }
.hero__title span { display: block; overflow: hidden; }
.hero__title span > b { display: block; font-weight: inherit; transform: translateY(110%); animation: rise 1.2s var(--ease) forwards; }
.hero__title span:nth-child(2) > b { animation-delay: .14s; }
@keyframes rise { to { transform: none; } }
.hero__lede { max-width: 620px; margin-bottom: 34px; text-shadow: 0 1px 18px rgba(0, 0, 0, .9); opacity: 0; animation: fade 1s .55s forwards; }
.hero .btn-row { opacity: 0; animation: fade 1s .75s forwards; }
.hero__name { font: 700 12px/1 var(--head); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 0 0 22px; opacity: 0; animation: fade 1s .3s forwards; }
@keyframes fade { to { opacity: 1; } }
.scroll-cue { position: absolute; right: var(--gut); bottom: 36px; display: flex; flex-direction: column; align-items: center; gap: 12px; font: 600 10px/1 var(--head); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; }
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* HUD */
.hud { position: fixed; z-index: 3; right: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; transition: opacity .4s; }
.hud.is-off { opacity: 0; pointer-events: none; }
.hud a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; text-decoration: none; padding: 5px 0; font: 700 10px/1 var(--head); letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .45); transition: color .3s; }
.hud a span { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; }
.hud a i { width: 18px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.hud a:hover span, .hud a:focus-visible span { opacity: 1; transform: none; background: rgba(0, 0, 0, .7); padding: 4px 6px; }
.hud a.is-on { color: var(--gold-hi); }
.hud a.is-on i { width: 40px; }
.readout { position: fixed; z-index: 3; left: var(--gut); bottom: 22px; display: flex; gap: 18px; align-items: center; font: 600 10px/1.4 var(--head); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6); transition: opacity .4s; pointer-events: none; }
.readout.is-off { opacity: 0; }
.readout b { color: var(--gold-hi); font-weight: 600; }
@media (max-width: 960px) { .hud { display: none; } .readout { display: none; } }

/* World labels overlay (home) */
.world-labels { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

.solid { position: relative; z-index: 2; }

/* Big statement band */
.statement { font: 300 clamp(24px, 3.4vw, 46px)/1.3 var(--head); letter-spacing: .02em; max-width: 24em; }
.statement em { font-style: normal; color: var(--gold); }

/* Video frame */
.film { position: relative; aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; overflow: hidden; border: 1px solid var(--line); }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__btn { position: absolute; right: 14px; bottom: 14px; z-index: 2; }

/* CTA band with the brand pattern */
.talk { position: relative; overflow: hidden; }
.talk__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.talk__in { position: relative; z-index: 2; pointer-events: none; }
.talk__in a, .talk__in button, .talk__in input, .talk__in textarea, .talk__in select { pointer-events: auto; }
.pattern-bg { position: absolute; right: -6%; top: 50%; width: min(620px, 60vw); transform: translateY(-50%); opacity: .14; pointer-events: none; }

/* ---------------------------------------------------------------- forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font: 700 11px/1.4 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255, 255, 255, .04); color: var(--white); border: 1px solid rgba(255, 255, 255, .22);
  padding: 15px 16px; font: 15px/1.4 var(--body); border-radius: 0; transition: border-color .2s, background .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: #0b0d0c; color: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: rgba(177, 151, 102, .06); outline: none; }
.field input[type="file"] { padding: 12px; font-size: 13.5px; }
.field input[type="file"]::file-selector-button { background: var(--gold); color: #000; border: 0; padding: 9px 14px; margin-right: 14px; font: 700 11px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.field small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { grid-column: 1 / -1; padding: 16px 18px; border: 1px solid var(--gold); background: rgba(177, 151, 102, .1); display: none; }
.form-msg.is-on { display: block; }

.contact-list { list-style: none; display: grid; gap: 0; }
.contact-list li { padding: 20px 0; border-top: 1px solid var(--line-soft); }
.contact-list b { display: block; font: 700 11px/1.4 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.contact-list a { font: 500 19px/1.4 var(--head); text-decoration: none; }
.contact-list a:hover { color: var(--gold-hi); }

/* ---------------------------------------------------------------- footer */
.ftr { position: relative; z-index: 2; background: #000; border-top: 1px solid var(--line); padding: clamp(60px, 7vw, 90px) 0 0; font-size: 14px; }
.ftr__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 54px; }
@media (max-width: 960px) { .ftr__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr__in { grid-template-columns: 1fr; } }
.ftr__brand img { height: 40px; width: auto; margin-bottom: 22px; }
.ftr__place { color: var(--muted); max-width: 24em; }
.ftr__h { font: 700 11px/1.4 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.ftr__nav, .ftr__contact { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ftr a { text-decoration: none; color: var(--text); }
.ftr a:hover { color: var(--gold-hi); }
.ftr__big { font: 500 22px/1.2 var(--head); letter-spacing: .04em; }
.ftr__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12.5px; }
.ftr__credit:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- floating contact bar (fleet component)
   Built by site.js from /api/config; links and colours are set in /dash. Below the header (z 50),
   so the open mobile menu covers it; above the 3D, the HUD and the panels. */
.floatbar { --fb-bg: #000; --fb-icon: var(--gold); --fb-hover-bg: var(--gold); --fb-hover-icon: #000;
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45;
  display: flex; flex-direction: column; align-items: center; gap: 10px; }
.floatbar__list { display: flex; flex-direction: column; gap: 10px; }
.floatbar__btn { width: 52px; height: 52px; border-radius: 50%; background: var(--fb-bg); color: var(--fb-icon); display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(177, 151, 102, .55), 0 8px 24px rgba(0, 0, 0, .5); transition: transform .18s, background .18s, color .18s, opacity .18s; }
.floatbar__btn:hover, .floatbar__btn:focus-visible { background: var(--fb-hover-bg); color: var(--fb-hover-icon); }
.floatbar__btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
/* Collapsed means out of the tab order too: visibility + pointer-events, not just opacity. */
.floatbar:not([data-open]) .floatbar__list { opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none; }
.floatbar .floatbar__list { transition: opacity .2s, transform .2s, visibility .2s; }
/* The hover scale is stated AFTER the collapse rule, or an equal-specificity rule later wins. */
.floatbar[data-open] .floatbar__btn:hover, .floatbar__toggle:hover { transform: scale(1.08); }
/* the home page's Scroll cue sits in the same corner */
.has-floatbar .scroll-cue { bottom: 104px; transition: opacity .2s; }
.fb-open .scroll-cue { opacity: 0; }
.fb-pop { position: fixed; inset: 0; z-index: 260; background: rgba(0, 0, 0, .72); display: none; align-items: center; justify-content: center; padding: 24px; }
.fb-pop[data-open] { display: flex; }
.fb-pop__card { background: #0b0d0c; border: 1px solid var(--gold); padding: 38px 48px 34px; text-align: center; position: relative; max-width: 420px; }
.fb-pop__card p { margin: 0; font: 700 11px/1.4 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.fb-pop__num { display: block; font: 500 clamp(26px, 6vw, 34px)/1.2 var(--head); letter-spacing: .04em; color: var(--gold-hi); text-decoration: none; margin: 12px 0 0; white-space: nowrap; }
.fb-pop__num:hover { color: var(--white); }
.fb-pop__close { position: absolute; top: 4px; right: 8px; width: 40px; height: 40px; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted); }
.fb-pop__close:hover { color: var(--white); }

/* ---------------------------------------------------------------- reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }
.no-js .rv { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .hero__title span > b { transform: none; }
  .photo img { transform: none; }
}

/* ---------------------------------------------------------------- preview banner */
.pv { position: fixed; z-index: 60; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(0, 0, 0, .85); border: 1px solid var(--line); color: var(--muted); font: 600 10px/1.4 var(--head); letter-spacing: .18em; text-transform: uppercase; padding: 8px 14px; white-space: nowrap; pointer-events: none; }
@media (max-width: 560px) { .pv { font-size: 9px; letter-spacing: .12em; } }

/* ---- added by pages fork */
.work-cat__num { display: block; font: 300 clamp(44px, 5vw, 64px)/1 var(--head); color: var(--gold); margin-bottom: 18px; letter-spacing: .04em; }
.section--stone .work-cat__num { color: #6b5a36; }
.flow--empty li { color: var(--muted); font-style: italic; }
.flow--empty li b { font-style: normal; }
.section--stone .flow li { border-color: rgba(0, 0, 0, .14); }
.section--stone .flow li b, .section--stone .flow li::before { color: #6b5a36; }
.section--stone .flow--empty li { color: #4a4a44; }
.section--stone .statement em { color: var(--forest); }
.section--stone .contact-list li { border-color: rgba(0, 0, 0, .14); }
.section--stone .contact-list b { color: #6b5a36; }
.section--stone .contact-list a:hover { color: var(--forest); }
.contact-list li { color: var(--muted); }

/* ---- hero scrim (keeps the title readable over any frame of the render) + pattern mask */
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 38%, transparent 62%), linear-gradient(90deg, rgba(0, 0, 0, .6) 0%, transparent 58%); }
.hero .chapter__in { position: relative; }
.talk__canvas { -webkit-mask-image: linear-gradient(90deg, transparent 28%, #000 78%); mask-image: linear-gradient(90deg, transparent 28%, #000 78%); }
.phero.talk .head-block, .phero.talk .sub { text-shadow: 0 2px 18px rgba(0, 0, 0, .9); }
/* pointer tilt (site.js adds .tilt on fine pointers only) */
.tilt { transition: transform .5s var(--ease); will-change: transform; }
@media (max-width: 760px) { .talk__canvas { opacity: .45; -webkit-mask-image: none; mask-image: none; } }
.field [aria-invalid="true"] { border-color: #e0806b; }
/* keep the menu readable over the bright sky of the opening shot */
.hdr::before { content: ""; position: absolute; inset: 0 0 -50px; background: linear-gradient(rgba(0, 0, 0, .62), rgba(0, 0, 0, 0)); pointer-events: none; z-index: -1; transition: opacity .4s; }
.hdr.is-solid::before { opacity: 0; }
/* phones: each chapter opens on a clear view of the scene, then its panel scrolls up over it */
@media (max-width: 760px) {
  .chapter:not(.hero) { min-height: auto; align-items: flex-start; padding-top: 72vh; padding-bottom: 18vh; }
  .chapter--tall .panel { position: relative; top: auto; }
  .panel { background: rgba(3, 9, 8, .88); }
  .hero::before { background: linear-gradient(0deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .62) 52%, rgba(0, 0, 0, 0) 78%); }
}
