/* Gencorp Building Group — site styles
   Layout: full-bleed job photography framed by black bands, with gold used
   only as the logo's accent (the full stop, rules, buttons). */

:root {
  /* Brand — taken from the Gencorp logo */
  --black: #0a0a0a;
  --char-900: #111111;
  --char-800: #181818;
  --char-700: #222222;
  --gold: #fcdc58;        /* logo gold */
  --gold-hover: #ffe680;
  --white: #ffffff;
  --paper: #f4f4f2;
  --ink: #111111;
  --ink-muted: #555555;
  --line-light: #e2e2de;
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;  /* matches the logo lettering */
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 140px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 88px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--black); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.section-light :focus-visible { outline-color: var(--ink); }

.dot { color: var(--gold); }
/* Gold full stop keeps a dark outline on white so it stays visible */
.section-light .dot { -webkit-text-stroke: .045em var(--ink); paint-order: stroke fill; }
.section-dark { background: var(--black); color: var(--white); }
.section-light { background: var(--white); color: var(--ink); }

.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 600; color: var(--gold); margin-bottom: 18px; }
.eyebrow-dark { color: var(--ink-muted); }

/* Photo blocks: the job photo, with a dark fallback while it loads */
.photo { background-color: var(--char-800); background-image: var(--img, none); background-size: cover; background-position: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 26px;
  font: 600 .92rem/1 var(--font-display); letter-spacing: .02em;
  text-decoration: none; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn svg, .text-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn .arrow, .text-link .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, .65); color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--black); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--char-700); }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font: 600 1rem var(--font-display); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 4px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.solid { background: rgba(10, 10, 10, .96); box-shadow: 0 1px 0 var(--line-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.solid .header-inner { height: 72px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 42px; width: auto; transition: height .3s var(--ease); }
.site-header.solid .logo img { height: 36px; }


/* Home hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--black); }
.hero-media { position: absolute; inset: 0; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .15) 38%, rgba(0, 0, 0, .8) 100%); }
.hero-content { position: relative; padding-bottom: clamp(96px, 14vh, 150px); }
.hero-title { font-size: clamp(3.6rem, 11vw, 9.5rem); font-weight: 800; line-height: .92; letter-spacing: -0.04em; }
.hero-sub { max-width: 34ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 300; margin: 26px 0 34px; color: rgba(255, 255, 255, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue {
  position: absolute; right: var(--gutter); bottom: clamp(40px, 8vh, 80px);
  width: 112px; height: 112px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%;
  display: grid; place-items: center; transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.scroll-cue:hover { background: var(--gold); border-color: var(--gold); }
.scroll-cue:hover svg { stroke: var(--black); }
.scroll-cue svg { width: 30px; height: 30px; fill: none; stroke: var(--white); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }
.hero-progress { position: absolute; left: var(--gutter); bottom: 28px; width: min(520px, 50vw); height: 4px; background: rgba(255, 255, 255, .3); }
.hero-progress span { display: block; height: 100%; width: 0; background: var(--gold); animation: fill 6s linear forwards; }
@keyframes fill { to { width: 100%; } }

/* Inner page hero */
.page-hero { position: relative; min-height: clamp(420px, 62svh, 640px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--black); }
.page-hero-media { position: absolute; inset: 0; transform: scale(1.08); animation: heroZoom 12s var(--ease) forwards; }
.page-hero-content { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(48px, 8vw, 88px); }
.page-title { font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 800; letter-spacing: -0.035em; }
.page-hero-sub { max-width: 48ch; margin: 20px 0 0; font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 300; color: rgba(255, 255, 255, .9); }

/* Intro */
.intro { padding-block: var(--section-y); }
.lead { font-family: var(--font-display); font-size: clamp(1.45rem, 2.8vw, 2.4rem); line-height: 1.32; font-weight: 500; letter-spacing: -0.015em; max-width: 1100px; margin: 0; }
.rule { position: relative; height: 1px; background: var(--line-dark); margin: clamp(48px, 7vw, 90px) 0; }
.rule span { position: absolute; left: 0; top: -1px; height: 3px; width: 150px; background: var(--gold); }
.intro-grid, .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.intro-copy, .split-copy { max-width: 560px; color: rgba(255, 255, 255, .84); min-width: 0; }
.intro-copy .btn { margin-top: 14px; }
.split-media { aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius); }
.badge { position: relative; width: min(100%, 440px); aspect-ratio: 1; justify-self: end; display: grid; place-items: center; }
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.badge-ring circle { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 616; stroke-dashoffset: 0; }
.js .badge:not(.in) .badge-ring circle { stroke-dashoffset: 616; }
.badge-ring circle { transition: stroke-dashoffset 1.8s var(--ease); }
.badge-inner { text-align: center; font-family: var(--font-display); }
.badge-num { display: block; font-size: clamp(6rem, 13vw, 11rem); font-weight: 800; line-height: .9; letter-spacing: -0.06em; }
.badge-num sup { font-size: .42em; vertical-align: top; position: relative; top: .12em; color: var(--gold); }
.badge-label { display: block; font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: .4em; margin-top: 8px; padding-left: .4em; text-transform: uppercase; }

/* Section titles */
.section-title { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: clamp(36px, 5vw, 64px); }

/* Services (home) */
.services { padding-block: var(--section-y); }
.services-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.services-media { aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); }
.service { padding: 30px 0; border-bottom: 1px solid var(--line-light); }
.service:first-child { padding-top: 0; }
.service h3 { font-size: 1.5rem; margin-bottom: 10px; }
.service p { color: var(--ink-muted); margin: 0; max-width: 56ch; }

/* Stats */
.stats { padding-block: var(--section-y); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.stat { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: clamp(36px, 5vw, 64px) 16px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); transition: background-color .3s var(--ease); }
.stat:hover { background: var(--char-800); }
.stat-num { font-family: var(--font-display); font-size: clamp(2.8rem, 5vw, 4.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat-num em { font-style: normal; color: var(--gold); }
.stat-text { font-size: clamp(2.1rem, 3.6vw, 3.2rem); }
.stat-label { font-size: .98rem; font-weight: 500; color: rgba(255, 255, 255, .75); line-height: 1.35; }

/* Feature project stack — each job photo slides up over the last */
.stack { position: relative; background: var(--black); }
.stack-panel { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; color: var(--white); background: var(--black); }
.stack-photo { position: absolute; inset: -6% 0; will-change: transform; }
.stack-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .15) 100%); }
.stack-dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.stack-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: calc(var(--header-h) + 24px); padding-bottom: clamp(48px, 9vh, 96px); }
.stack-label { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 700; margin: 0; }
.stack-body { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.stack-name { font-size: clamp(2.5rem, 6.2vw, 5.8rem); font-weight: 800; letter-spacing: -0.035em; max-width: 14ch; }
.stack-sector { font-size: clamp(1.05rem, 1.7vw, 1.5rem); font-weight: 300; margin: 14px 0 28px; color: rgba(255, 255, 255, .9); }
.stack-count { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stack-count span { color: var(--gold); }
.stack-footer { padding: 40px 0 clamp(64px, 8vw, 100px); }

/* Difference */
.difference { padding-block: clamp(56px, 8vw, 110px) var(--section-y); overflow: hidden; }
.marquee { overflow: hidden; margin-bottom: clamp(40px, 6vw, 80px); }
.marquee-track { display: flex; width: max-content; gap: .6em; font-family: var(--font-display); font-size: clamp(4rem, 11vw, 10rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.1; color: var(--ink); animation: marquee 40s linear infinite; }
.marquee-track > span { white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 80px); }
.value { border-top: 3px solid var(--gold); padding-top: 22px; }
.value h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); margin-bottom: 12px; line-height: 1.25; }
.value p { color: var(--ink-muted); margin: 0; }

/* Partners */
.partners { padding-block: var(--section-y); background: var(--char-900); color: var(--white); }
.partners-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 48px; margin-bottom: clamp(40px, 5vw, 64px); }
.partners-head .section-title { margin-bottom: 0; }
.partners-lede { max-width: 38ch; margin: 0; color: rgba(255, 255, 255, .62); }
.partners-marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line-dark); padding-block: clamp(36px, 4.5vw, 56px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.partners-track { display: flex; width: max-content; animation: partners-scroll 48s linear infinite; }
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partners-list { display: flex; align-items: center; gap: clamp(56px, 7vw, 104px); padding-right: clamp(56px, 7vw, 104px); margin: 0; }
.partner { flex: none; display: flex; align-items: center; height: 56px; }
.partner img { height: var(--h, 32px); width: auto; max-width: none; opacity: .6; transition: opacity .3s var(--ease); }
.partner:hover img { opacity: 1; }
@keyframes partners-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .partners-marquee { -webkit-mask-image: none; mask-image: none; }
  .partners-track { animation: none; width: auto; }
  .partners-list { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); row-gap: 32px; }
  .partners-list[aria-hidden] { display: none; }
}

/* CTA */
.cta { position: relative; color: var(--white); padding-block: clamp(100px, 14vw, 180px); overflow: hidden; background: var(--black); }
.cta-media { position: absolute; inset: 0; }
.cta-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); }
.cta-inner { position: relative; }
.cta-title { font-size: clamp(2.8rem, 6.4vw, 5.8rem); font-weight: 800; letter-spacing: -0.035em; }
.cta-sub { max-width: 48ch; font-size: 1.15rem; font-weight: 300; color: rgba(255, 255, 255, .88); margin: 24px 0 36px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta .ico { width: 20px; height: 20px; }

/* Services page */
.feature-rows { padding-block: var(--section-y); }
.feature-rows .container { display: grid; gap: clamp(72px, 10vw, 140px); }
.feature-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature-row-flip .feature-media { order: 2; }
.feature-media { aspect-ratio: 5 / 4; max-width: 100%; border-radius: var(--radius); }
.feature-copy { min-width: 0; }
.feature-copy h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 22px; }
.feature-copy > p { color: var(--ink-muted); max-width: 56ch; }
.tick-list { display: grid; gap: 12px; margin: 26px 0 34px; }
.tick-list li { position: relative; padding-left: 30px; font-weight: 500; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 9px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg) translateY(-3px); }
.process { padding-block: var(--section-y); }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.process-step { padding: 34px 28px 34px 0; border-right: 1px solid var(--line-dark); }
.process-step + .process-step { padding-left: 28px; }
.process-step:last-child { border-right: 0; }
.process-num { display: block; font: 800 1rem var(--font-display); color: var(--gold); letter-spacing: .1em; margin-bottom: 40px; }
.process-step h3 { font-size: 1.35rem; margin-bottom: 12px; }
.process-step p { color: rgba(255, 255, 255, .75); margin: 0; }

/* Projects page */
.project-index { padding-block: clamp(56px, 8vw, 100px) var(--section-y); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 48px); }
.chip { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-light); background: var(--white); color: var(--ink); font: 600 .9rem var(--font-display); cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.chip[aria-pressed="true"]::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 9px; vertical-align: middle; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.project-grid li.wide { grid-column: span 2; }
.project-card { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--black); color: var(--white); text-align: left; cursor: pointer; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); }
.project-grid li.wide .project-card { aspect-ratio: auto; height: 100%; min-height: 100%; }
.project-card .photo { position: absolute; inset: 0; transition: transform .9s var(--ease); }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .82) 100%); transition: background-color .4s var(--ease); }
.project-card:hover .photo, .project-card:focus-visible .photo { transform: scale(1.06); }
.project-card-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 24px; display: grid; gap: 6px; }
.project-card-text strong { font: 700 clamp(1.2rem, 1.8vw, 1.5rem)/1.15 var(--font-display); letter-spacing: -0.015em; }
.project-card-text span { font-size: .92rem; color: rgba(255, 255, 255, .82); }
.project-card-text span::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--gold); margin-right: 10px; vertical-align: middle; }
.project-card .photo-count { position: absolute; z-index: 1; top: 16px; right: 16px; background: rgba(0, 0, 0, .6); padding: 4px 10px; font-size: .8rem; border-radius: 999px; }
.project-grid li.is-hidden { display: none; }
.project-grid li.is-entering { animation: cardIn .6s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }

/* Lightbox gallery */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--black); color: var(--white); overflow: hidden; }
.lightbox[open] { display: grid; grid-template-columns: 1fr minmax(300px, 400px); }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lb-stage { position: relative; overflow: hidden; background: var(--black); min-height: 0; }
.lb-slide { position: absolute; inset: 0; background-size: contain; background-repeat: no-repeat; background-position: center; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.lb-slide.active { opacity: 1; transform: none; }
.lb-panel { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: calc(56px + env(safe-area-inset-top, 0px)) 32px calc(32px + env(safe-area-inset-bottom, 0px)); border-left: 1px solid var(--line-dark); overflow-y: auto; }
.lb-meta h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 18px; }
.lb-meta p { color: rgba(255, 255, 255, .8); }
.lb-service { font-weight: 600; color: var(--white) !important; }
.lb-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lb-count { font: 800 1.6rem var(--font-display); font-variant-numeric: tabular-nums; }
.lb-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold); display: grid; place-items: center; cursor: pointer; }
.lb-close svg { width: 22px; height: 22px; fill: none; stroke: var(--black); stroke-width: 2; stroke-linecap: round; }
.icon-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.icon-btn:hover { background: var(--gold); border-color: var(--gold); }
.icon-btn:hover svg { stroke: var(--black); }
.icon-btn:disabled { opacity: .3; pointer-events: none; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-open { overflow: hidden; }

/* Contact page */
.contact { padding-block: var(--section-y); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-details h2, .enquiry h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.contact-details > p { color: var(--ink-muted); }
.detail-list { margin-top: 32px; border-top: 1px solid var(--line-light); }
.detail-list li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.detail-label { grid-column: 1; font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; color: var(--ink-muted); }
.detail-value { grid-column: 1; font: 700 clamp(1.2rem, 2vw, 1.5rem) var(--font-display); text-decoration: none; overflow-wrap: anywhere; user-select: all; }
a.detail-value:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.copy-btn { grid-column: 2; grid-row: 1 / span 2; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-light); background: var(--white); border-radius: 999px; font-weight: 600; font-size: .85rem; cursor: pointer; }
.copy-btn:hover { border-color: var(--ink); }
.enquiry { background: var(--paper); padding: clamp(24px, 4vw, 48px); border-top: 4px solid var(--gold); display: grid; gap: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #c9c9c4; border-radius: var(--radius); background: var(--white); color: var(--ink); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.enquiry .btn { justify-self: start; }
.form-error { color: #b3261e; font-weight: 500; margin: 0; }
.form-done { margin: 0; padding: 16px; background: var(--white); border-left: 4px solid var(--gold); }

/* Footer */
.site-footer { background: var(--black); color: rgba(255, 255, 255, .78); padding-top: clamp(64px, 8vw, 100px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { margin-top: 20px; max-width: 34ch; }
.footer-head { font-size: 1.05rem; color: var(--gold); margin-bottom: 18px; letter-spacing: 0; }
.footer-links li + li { margin-top: 10px; }
.footer-links a, .footer-details a { text-decoration: none; transition: color .2s var(--ease); }
.footer-links a:hover, .footer-details a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.footer-details { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.footer-details dt { font-weight: 600; color: var(--white); }
.footer-details dd { margin: 0; overflow-wrap: anywhere; }
.footer-bottom { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-bottom .rule { margin: 56px 0 24px; }
.footer-bottom p { margin: 0; font-size: .9rem; }

.to-top { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 46px; height: 46px; display: grid; place-items: center; background: var(--gold); border-radius: 50%; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: var(--black); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Reveal on scroll: content is always visible; it only eases into place */
.js .reveal { transform: translateY(24px); transition: transform .8s var(--ease); }
.js .reveal.in { transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-step, .process-step + .process-step { padding: 30px 24px 30px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .process-step:nth-child(odd) { border-right: 1px solid var(--line-dark); }
  .process-step:nth-child(even) { padding-left: 24px; }
}
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .feature-row, .contact-grid { grid-template-columns: 1fr; }
  .feature-row-flip .feature-media { order: 0; }
  .services-media, .feature-media { aspect-ratio: 16 / 10; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox[open] { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lb-panel { border-left: 0; border-top: 1px solid var(--line-dark); padding-top: 24px; max-height: 46svh; }
}
@media (max-width: 900px) {
  .intro-grid, .split { grid-template-columns: 1fr; }
  .badge { justify-self: center; width: min(100%, 340px); }
  .split-media { aspect-ratio: 4 / 3; }
  .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stack-body { grid-template-columns: 1fr; }
  .stack-count { position: absolute; top: calc(var(--header-h) + 24px); right: var(--gutter); font-size: 2rem; }
}
@media (max-width: 600px) {
  :root { --header-h: 72px; }
  .logo img { height: 34px; }
  .site-header.solid .logo img { height: 30px; }
  .scroll-cue { width: 64px; height: 64px; bottom: 52px; }
  .scroll-cue svg { width: 22px; height: 22px; }
  .hero-content { padding-bottom: 132px; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .partner { height: 44px; }
  .partner img { height: calc(var(--h, 32px) * .8); }
  .partners-track { animation-duration: 36s; }
  .project-grid { grid-template-columns: 1fr; }
  .project-grid li.wide { grid-column: auto; }
  .project-grid li.wide .project-card { aspect-ratio: 4 / 3; height: auto; }
  .process-list { grid-template-columns: 1fr; }
  .process-step, .process-step + .process-step, .process-step:nth-child(even) { padding: 26px 0; border-right: 0; }
  .process-num { margin-bottom: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .enquiry .btn { justify-self: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .lb-panel { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-media, .page-hero-media { transform: none; }
  .marquee-track { animation: none; }
  .stack-photo { transform: none !important; }
}

/* Page transition between menu pages:
   leaving — a black panel with a gold leading edge sweeps up to cover the page;
   arriving — the panel continues upward and off screen to reveal the new page. */
.page-transition { position: fixed; inset: 0; z-index: 200; pointer-events: none; overflow: hidden; }
.pt-panel {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--black); transform: translateY(100%);
  border-top: 6px solid var(--gold);
}
.pt-mark { width: 72px; height: auto; opacity: 0; transform: translateY(16px); }
.pt-label { margin: 0; font: 800 clamp(1.6rem, 4vw, 2.6rem) var(--font-display); letter-spacing: -0.03em; color: var(--white); opacity: 0; transform: translateY(16px); }
.pt-label::after { content: "."; color: var(--gold); }
.pt-label:empty { display: none; }

/* Leaving the page */
.pt-leaving .page-transition { pointer-events: auto; }
.pt-leaving .pt-panel { transform: translateY(0); transition: transform .55s cubic-bezier(.76, 0, .24, 1); }
.pt-leaving .pt-mark, .pt-leaving .pt-label { opacity: 1; transform: none; transition: opacity .3s ease .3s, transform .4s var(--ease) .3s; }

/* Arriving on the new page: start covered, then sweep away */
.pt-arriving .pt-panel { transform: translateY(0); border-top-color: transparent; border-bottom: 6px solid var(--gold); }
.pt-arriving .pt-mark { opacity: 1; transform: none; }
.pt-revealing .pt-panel { transform: translateY(-100%); transition: transform .7s cubic-bezier(.76, 0, .24, 1) .1s; }
.pt-revealing .pt-mark { opacity: 0; transform: translateY(-16px); transition: opacity .25s ease, transform .35s var(--ease); }
.pt-revealing .hero-content > *, .pt-revealing .page-hero-content > * { animation: ptRise .9s var(--ease) both; }
.pt-revealing .hero-content > :nth-child(2), .pt-revealing .page-hero-content > :nth-child(2) { animation-delay: .38s; }
.pt-revealing .hero-content > :nth-child(3), .pt-revealing .page-hero-content > :nth-child(3) { animation-delay: .46s; }
.pt-revealing .hero-content > :nth-child(4) { animation-delay: .54s; }
.pt-revealing .hero-content > :first-child, .pt-revealing .page-hero-content > :first-child { animation-delay: .3s; }
@keyframes ptRise { from { opacity: 0; transform: translateY(36px); } }

}

@media (prefers-reduced-motion: reduce) {
  .page-transition { display: none; }
}

/* ---------- Brand details ---------- */

/* Gold scroll progress bar along the bottom of the header */
.scroll-ruler {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; pointer-events: none;
  opacity: 0; transition: opacity .3s var(--ease);
}
.site-header.solid .scroll-ruler { opacity: 1; }
.scroll-ruler span { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--gold); transform-origin: left; transform: scaleX(var(--progress, 0)); }

/* Headline rises line by line from behind a mask */
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; animation: lineUp 1.1s var(--ease) .15s both; }
.hero-title .line:nth-child(2) > span { animation-delay: .28s; }
@keyframes lineUp { from { transform: translateY(105%); } }

/* Gold corner brackets, from the corner piece in the Gencorp "G" */
.framed { position: relative; overflow: visible; }
.framed::before, .framed::after {
  content: ""; position: absolute; width: clamp(40px, 6vw, 72px); aspect-ratio: 1; pointer-events: none;
  transition: transform .9s var(--ease) .25s;
}
.framed::before { top: -12px; left: -12px; border-top: 6px solid var(--gold); border-left: 6px solid var(--gold); transform-origin: top left; }
.framed::after { right: -12px; bottom: -12px; border-right: 6px solid var(--gold); border-bottom: 6px solid var(--gold); transform-origin: bottom right; }
.js .framed:not(.in)::before, .js .framed:not(.in)::after { transform: scale(0); }

/* Project cards: brackets snap in on hover */
.project-card .photo::before, .project-card .photo::after {
  content: ""; position: absolute; z-index: 1; width: 44px; height: 44px; opacity: 0;
  transition: opacity .3s ease, transform .5s var(--ease);
}
.project-card .photo::before { top: 16px; left: 16px; border-top: 4px solid var(--gold); border-left: 4px solid var(--gold); transform: translate(10px, 10px); }
.project-card .photo::after { right: 16px; bottom: 16px; border-right: 4px solid var(--gold); border-bottom: 4px solid var(--gold); transform: translate(-10px, -10px); }
.project-card:hover .photo::before, .project-card:hover .photo::after,
.project-card:focus-visible .photo::before, .project-card:focus-visible .photo::after { opacity: 1; transform: none; }

@media (max-width: 600px) {
  .framed::before { top: -8px; left: -8px; border-width: 4px; }
  .framed::after { right: -8px; bottom: -8px; border-width: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title .line > span { animation: none; }
}

/* ---------- Menu button + full-screen text menu ---------- */
.menu-btn { position: relative; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; background: none; border: 0; padding: 0; cursor: pointer; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 7px); gap: 6px; }
.menu-grid i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); transition: transform .35s var(--ease), opacity .3s ease; }
.menu-btn:hover .menu-grid i { transform: scale(1.25); }
/* Open: the edge dots fade out, leaving an X of five dots */
.menu-btn[aria-expanded="true"] .menu-grid i:nth-child(2n) { transform: scale(0); opacity: 0; }
.menu-open .site-header { background: transparent; box-shadow: none; }
.menu-open .scroll-ruler { opacity: 0; }

.overlay { position: fixed; z-index: 45; inset: 0; background: rgba(10, 10, 10, .98); opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.overlay.open { opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; }
.overlay-inner { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: calc(var(--header-h) + 40px + env(safe-area-inset-top, 0px)); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.overlay-links { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.overlay-links a {
  width: fit-content; font: 800 clamp(2.6rem, 7.4vw, 6.6rem)/1.08 var(--font-display); letter-spacing: -0.045em;
  text-decoration: none; color: rgba(255, 255, 255, .32);
  opacity: 0; transform: translateY(30px);
  transition: color .3s ease, transform .6s var(--ease), opacity .5s ease;
}
.overlay-links a::after { content: "."; color: var(--gold); opacity: 0; transition: opacity .3s ease; }
.overlay-links a:hover, .overlay-links a:focus-visible, .overlay-links a[aria-current="page"] { color: var(--white); }
.overlay-links a:hover::after, .overlay-links a:focus-visible::after, .overlay-links a[aria-current="page"]::after { opacity: 1; }
.overlay-links:hover a:not(:hover) { color: rgba(255, 255, 255, .22); }
.overlay-links:hover a:not(:hover)::after { opacity: 0; }
.overlay.open .overlay-links a { opacity: 1; transform: none; }
.overlay.open .overlay-links a:nth-child(2) { transition-delay: 0s, .06s, .06s; }
.overlay.open .overlay-links a:nth-child(3) { transition-delay: 0s, .12s, .12s; }
.overlay.open .overlay-links a:nth-child(4) { transition-delay: 0s, .18s, .18s; }
.overlay.open .overlay-links a:nth-child(5) { transition-delay: 0s, .24s, .24s; }
.overlay-foot { display: flex; flex-wrap: wrap; gap: 10px 40px; padding-top: 24px; border-top: 1px solid var(--line-dark); color: rgba(255, 255, 255, .7); font-weight: 500; }
.overlay-foot span { user-select: all; }

@media (max-width: 760px) {
  .overlay-links a { font-size: clamp(2.4rem, 12vw, 3.4rem); }
}
@media (prefers-reduced-motion: reduce) {
}

/* ---------- Gold cursor (mouse and trackpad only) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%;
  opacity: 0; transition: opacity .25s ease;
}
/* Solid gold circle; the separate dot is no longer needed */
.cursor-dot { display: none; }
.cursor-ring {
  width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--gold);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .2), 0 2px 8px rgba(0, 0, 0, .25);
  transition: opacity .25s ease, width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s ease;
}
.cursor-on .cursor-ring { opacity: 1; }
/* Over a link or button it grows and turns see-through, so the text stays readable */
.cursor-hover .cursor-ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(252, 220, 88, .45); }
.cursor-down .cursor-ring { width: 14px; height: 14px; margin: -7px 0 0 -7px; }

@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none; }
  html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: text; }
  html.has-cursor select { cursor: pointer; }
  /* The project gallery opens above everything, so use the normal cursor there */
  html.has-cursor .lb-open, html.has-cursor .lb-open * { cursor: auto; }
  html.has-cursor .lb-open button { cursor: pointer; }
}
.lb-open .cursor-dot, .lb-open .cursor-ring { display: none; }
