/* ==========================================================================
   ASH Studios — base
   ========================================================================== */

/* Brand faces, self-hosted from /fonts. Drop the files in and they take over
   automatically; until then each stack falls through to a system face. */

@font-face {
  font-family: 'Aeonik';
  src: url('../fonts/Aeonik-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik';
  src: url('../fonts/Aeonik-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Supply';
  src: url('../fonts/Supply-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Daydream';
  src: url('../fonts/Daydream-Regular.woff2') format('woff2');
  /* Single-weight face — the range lets it satisfy the 300 the accents ask
     for without needing a separate file. */
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #191D1E;
  --color-cream: #F0ECE0;
  --color-gold: #FFD586;
  --color-ink: #1B2523;
  --color-deep: #0F1716;   /* about / contact / footer ground */
  --color-rule: #34322B;   /* hairline dividers */
  --color-muted: #666666;       /* service descriptions on cream */
  --color-muted-warm: #A8A394;  /* the same, on the dark ground */
  --color-muted-sand: #A39C8A;  /* form labels, notes, step copy */
  --color-hairline: rgba(255, 255, 255, 0.35); /* form field rules */

  /* The three brand faces. Everything the mocks set in Inter or JetBrains
     Mono is set in Aeonik or Supply instead. */
  --font-display: 'Aeonik', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'Supply', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-accent: 'Daydream', var(--font-display);

  --font-size-body: 16px;

  /* 91px at the 1512px design width, both sides */
  --gutter: clamp(20px, 6.02vw, 91px);
  /* the 1360px-wide card grids sit tighter to the edge — 76px in the mock */
  --gutter-wide: clamp(16px, 5.03vw, 76px);

  /* how wide the poster sits before the scroll zoom takes over */
  --poster-start-width: 58%;
}

/* Reset ------------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* Base ------------------------------------------------------------------- */

body {
  background-color: var(--color-bg);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: var(--font-size-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Hero ------------------------------------------------------------------- */

/* The section is taller than the viewport — that extra height is the scroll
   distance the JS maps onto the video timeline and the content reveal. */
.hero {
  position: relative;
  z-index: 2;      /* paints over .about, which sits behind it */
  height: 450vh;
}

.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh; /* avoids mobile browser chrome overflow */
  overflow: hidden;
}

/* Fullscreen from first paint — the only scroll-driven change is the
   playhead, plus the fade at the end. */
.hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fills the viewport, crops the overflow */
  object-position: center;
  will-change: opacity;
}

/* Bottom scrim so the copy holds contrast over the halftone.
   Starts 40.3% down the frame, exactly as in the mock. */
.hero__scrim {
  position: absolute;
  top: 40.3%;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background-image: linear-gradient(
    -0.84deg,
    rgb(0, 0, 0) 1.82%,
    rgba(21, 21, 21, 0.793) 41.66%,
    rgba(102, 102, 102, 0) 98.18%
  );
}

/* Everything the scroll reveals. JS drives opacity from 0. */
.hero__content {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
}

/* Masthead --------------------------------------------------------------- */

.masthead {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter) 0 var(--gutter);
}

/* Sub-pages have no hero behind the bar, so it sits in normal flow. */
.masthead--static {
  position: relative;
  padding-top: 26px;
  padding-bottom: 26px;
  background-color: var(--color-bg);
}

.masthead__nav a[aria-current='page'] {
  color: var(--color-gold);
}

.masthead__logo img {
  display: block;
  width: auto;                      /* overrides the width attribute */
  height: clamp(34px, 4.5vw, 68px); /* 68px in the mock */
  aspect-ratio: 810 / 183;          /* the asset's own ratio, = the 301x68 box */
}

/* Centred on the frame rather than between its neighbours, as designed. */
.masthead__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(32px, 7.4vw, 112px);
  font-family: var(--font-display);
  font-size: clamp(14px, 1.59vw, 24px);
  font-weight: 700;
  color: var(--color-cream);
  white-space: nowrap;
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 135px;
  height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--color-cream);
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.06vw, 16px);
  color: var(--color-cream);
  white-space: nowrap;
}

.contact-box__dot {
  flex: none;
  width: 7px;
  height: 7px;
}

/* Hero copy -------------------------------------------------------------- */

/* Right-aligned studio stamp, 25.9% down the frame in the mock. */
.hero__meta {
  position: absolute;
  top: 25.9%;
  right: var(--gutter);
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.51;
  letter-spacing: -0.24px;
  text-align: right;
  color: var(--color-cream);
}

.hero__copy {
  position: absolute;
  bottom: 8.2%;
  left: var(--gutter);
  right: var(--gutter);
}

.hero__eyebrow,
.poster__eyebrow,
.page-intro__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-gold);
}

.hero__rule,
.poster__rule,
.page-intro__rule {
  flex: none;
  width: 38.5px;
  height: 1px;
}

.hero__title,
.poster__title,
.page-intro__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 7.6vw, 115px); /* 115px in the mock */
  font-weight: 700;
  line-height: 0.7138;
  letter-spacing: -0.02em;
  color: var(--color-cream);
}

/* Inline flow rather than flex — the two type sizes sit on a shared baseline
   naturally, and neither gets shrunk to fit. */
.hero__title-line,
.poster__title-line,
.page-intro__title-line {
  display: block;
}

.hero__title-line + .hero__title-line,
.poster__title-line + .poster__title-line,
.page-intro__title-line + .page-intro__title-line {
  margin-top: 0.2em; /* 105px baseline-to-baseline in the mock */
}

/* Daydream draws its glyphs low in the em box: measured across every accent
   word, the ink bottom lands exactly 0.375em below the baseline, where Aeonik's
   flat-bottomed letters sit on it. Lifting by that much bottom-aligns the two.
   Relative to the accent's own font-size, so it holds at every clamp step. */
.hero__title-accent,
.poster__title-accent,
.page-intro__title-accent,
.about__accent,
.contact__accent {
  position: relative;
  bottom: 0.375em;
}

.hero__title-accent,
.poster__title-accent,
.page-intro__title-accent {
  margin-right: 0.14em;
  font-family: var(--font-accent);
  font-size: clamp(26px, 4.23vw, 64px); /* 64px in the mock */
  font-weight: 300;
  line-height: 0.857;
  letter-spacing: -0.02em;
  color: var(--color-gold);
}

.hero__lede,
.poster__lede,
.page-intro__lede {
  max-width: 320px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  /* the mock sets 0.857 — opened up because the fallback faces have a taller
     x-height than Aeonik and clip at that value. Worth restoring to 0.857
     once the real Aeonik files are in /fonts. */
  line-height: 1.15;
  letter-spacing: -0.28px;
  color: var(--color-cream);
}

.hero__lede {
  margin-top: 4em;
}

.hero__cta,
.poster__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 164px;
  height: 50px;
  padding: 6px 10px;
  border: 1px solid var(--color-cream);
  background-color: var(--color-cream);
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.06vw, 16px);
  color: var(--color-ink);
  white-space: nowrap;
}

.hero__cta {
  position: absolute;
  right: var(--gutter);
  bottom: 19.7%;
}

.hero__cta img,
.poster__cta img {
  flex: none;
  width: 10px;
  height: 10px;
}

/* About ------------------------------------------------------------------ */

/* Pulled up so its top lands exactly where the hero begins fading.
   Hero travel = 450vh - 100vh = 350vh; the fade starts at 88% of that
   (308vh), so the overlap is 450vh - 308vh = 142vh. Keep this in step with
   FADE_START in js/hero.js. */
.about {
  position: relative;
  z-index: 1;
  margin-top: -142vh;
  opacity: 0;
  background-color: var(--color-deep);
}

/* Sticky travel is bounded by the parent's content box, so the pin duration
   has to be a real in-flow box — padding would not count. */
.about::after {
  content: '';
  display: block;
  height: 42vh;
}

.about__inner {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 8vh clamp(20px, 2.71vw, 41px);
}

/* The label owns row 1 on its own; the statement and the right-hand column
   share row 2, so their tops stay aligned whatever the label does. */
.about__grid {
  display: grid;
  grid-template-columns: 310fr 349fr;
  column-gap: clamp(24px, 4.9vw, 74px);
  row-gap: 22px;
  width: 100%;
  max-width: 733px; /* 392px → 1125px in the 1512px mock */
  margin: 0 auto;
}

.about__label {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-gold);
}

.about__label img {
  flex: none;
  height: 1px;
}

.about__label img:first-child {
  width: 16px;
}

.about__label img:nth-child(2) {
  width: 8px;
}

.about__statement {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.85vw, 28px); /* 28px in the mock */
  line-height: 1.2;
  color: var(--color-cream);
}

.about__accent {
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: -0.32px;
  color: var(--color-gold);
}

.about__detail {
  grid-column: 2;
  grid-row: 2;
}

.about__body {
  margin: 0 0 34px;
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1.53;
  letter-spacing: -0.22px;
  color: var(--color-cream);
}

.about__stats {
  display: flex;
  gap: 30px;
  margin: 0;
}

.about__stat {
  min-width: 56px;
}

.about__stat dt {
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 300;
  line-height: 0.857;
  letter-spacing: -0.32px;
  color: var(--color-cream);
}

.about__stat dd {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 0.857;
  letter-spacing: -0.16px;
  color: var(--color-gold);
}

/* Poster ----------------------------------------------------------------- */

/* Same pattern as the hero: extra height is the scroll distance. The image
   starts full-width in flow, then scales up until it covers the viewport,
   and the copy fades in once it has. */
.poster {
  position: relative;
  height: 300vh;
  background-color: var(--color-deep);
}

.poster__sticky {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background-color: var(--color-deep);
}

/* Starts inset so the scroll zoom has somewhere to travel — JS scales this
   up until it covers the viewport. */
.poster__frame {
  width: var(--poster-start-width);
  aspect-ratio: 2560 / 1428; /* the asset's own ratio */
  transform-origin: center center;
  will-change: transform;
}

.poster__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Starts 30.5% down the frame in the mock (vs 40.3% on the hero). */
.poster__scrim {
  position: absolute;
  top: 30.5%;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  background-image: linear-gradient(
    -0.84deg,
    rgb(0, 0, 0) 1.82%,
    rgba(21, 21, 21, 0.793) 41.66%,
    rgba(102, 102, 102, 0) 98.18%
  );
}

.poster__content {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
}

.poster__copy {
  position: absolute;
  bottom: 28%;
  left: var(--gutter);
}

.poster__detail {
  position: absolute;
  right: var(--gutter);
  bottom: 28%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

/* Work page -------------------------------------------------------------- */

/* The Work hero sets its own leading and sits the copy higher than the
   home hero; everything else is shared. */
.hero--work .hero__eyebrow {
  font-size: 11px;
}

.hero--work .hero__title {
  line-height: 0.857;
}

.hero--work .hero__lede {
  max-width: 415px;
  margin-top: 3em;
}

.hero--work .hero__copy {
  bottom: 15%;
}

/* A plain bar, as the design draws it — not the SVG rule the home page uses. */
.rule-bar {
  flex: none;
  width: 40px;
  height: 1px;
  background-color: var(--color-gold);
}

.work-grid {
  padding: 49px var(--gutter-wide) 48px;
  background-color: var(--color-cream);
}

.work-grid__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.work-card {
  aspect-ratio: 452 / 396;
  background-color: var(--color-deep);
  overflow: hidden;
}

.work-card a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  padding: 0 20px 20px;
}

.work-card__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-gold);
}

.work-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.46vw, 22px); /* 22px in the mock */
  font-weight: 700;
  color: #F1EBDD;
  transition: transform var(--dur) var(--ease);
}

@media (hover: hover) {
  .work-card:hover .work-card__title {
    transform: translateX(6px);
  }
}

@media (max-width: 780px) {
  .work-grid__list {
    grid-template-columns: 1fr;
  }

  .work-card {
    aspect-ratio: 16 / 10;
  }

  .hero--work .hero__lede {
    max-width: none;
    margin-top: 2em;
  }

  .hero--work .hero__copy {
    bottom: 14%;
  }
}

/* Services page ----------------------------------------------------------- */

.hero--services .hero__eyebrow {
  font-size: 11px;
}

.hero--services .hero__title {
  line-height: 0.857;
}

/* 15px rather than the home hero's 14px, with tighter tracking. The mock sets
   this one in Inter; it is Aeonik here by request. */
.hero--services .hero__lede {
  max-width: 397px;
  margin-top: 3em;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.3px;
}

.hero--services .hero__copy {
  bottom: 17%;
}

/* Same table as the home page, inverted onto the dark ground. Doubled up so
   it beats the base .services rule regardless of source order. */
.services.services--dark {
  background-color: var(--color-deep);
  color: var(--color-cream);
}

.services--dark .service__title {
  color: var(--color-cream);
}

.services--dark .service__desc {
  color: var(--color-muted-warm);
}

@media (hover: hover) {
  .services--dark .service:hover {
    background-color: rgba(240, 236, 224, 0.04);
  }
}

/* Process ----------------------------------------------------------------- */

.process {
  padding: 63px var(--gutter-wide) 64px;
  background-color: var(--color-cream);
}

.process__inner {
  max-width: 1360px;
  margin: 0 auto;
}

.process__heading {
  max-width: 670px;
  margin: 0 0 87px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.17vw, 48px); /* 48px in the mock */
  font-weight: 700;
  line-height: 0.857;
  letter-spacing: -0.02em;
  color: var(--color-deep);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
  padding: 36px 26px;
  background-color: var(--color-deep);
}

.step__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-gold);
}

/* A 1px x 50px unfilled rectangle in the mock — it only opens up space. */
.step__spacer {
  width: 1px;
  height: 50px;
}

.step__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.32vw, 20px); /* 20px in the mock */
  font-weight: 700;
  color: var(--color-cream);
}

.step__desc {
  margin: 0;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted-warm);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 0;
    padding: 28px 22px;
  }

  .step__spacer {
    height: 24px;
  }

  .process {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .process__heading {
    margin-bottom: 40px;
  }

  .hero--services .hero__lede {
    max-width: none;
    margin-top: 2em;
  }

  .hero--services .hero__copy {
    bottom: 16%;
  }
}

/* About page -------------------------------------------------------------- */

.hero--about .hero__eyebrow {
  font-size: 11px;
}

.hero--about .hero__title {
  line-height: 0.857;
}

/* 15px here too, matching the Services hero rather than the home one. */
.hero--about .hero__lede {
  max-width: 397px;
  margin-top: 3em;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.3px;
}

.hero--about .hero__copy {
  bottom: 17%;
}

.process--about {
  padding-top: 64px;
  padding-bottom: 71px;
}

.process--about .process__heading {
  margin-bottom: 38px;
}

/* Narrower than the Services grid, and spaced rather than hairline-joined:
   1058px across with 22px gutters in the mock. */
.steps--about {
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1058px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .steps--about {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .steps--about {
    grid-template-columns: 1fr;
  }

  .hero--about .hero__lede {
    max-width: none;
    margin-top: 2em;
  }

  .hero--about .hero__copy {
    bottom: 16%;
  }

  .process--about {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .process--about .process__heading {
    margin-bottom: 32px;
  }
}

/* Contact page ------------------------------------------------------------ */

.hero--contact .hero__eyebrow {
  font-size: 11px;
}

.hero--contact .hero__title {
  line-height: 0.857;
}

.hero--contact .hero__lede {
  max-width: 397px;
  margin-top: 3em;
  font-size: 15px;
  letter-spacing: -0.3px;
}

.hero--contact .hero__copy {
  bottom: 17%;
}

.contact-box[aria-current='page'] {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* Enquiry ----------------------------------------------------------------- */

.enquiry {
  padding: 67px var(--gutter) 80px;
  background-color: var(--color-deep);
}

.enquiry__inner {
  max-width: 1360px;
  margin: 0 auto;
}

.enquiry__heading {
  margin: 0 0 66px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.17vw, 48px); /* 48px in the mock */
  font-weight: 700;
  line-height: 0.857;
  letter-spacing: -0.02em;
  color: var(--color-cream);
}

/* 720px form against a 560px side panel in the mock. */
.enquiry__grid {
  display: grid;
  grid-template-columns: 720fr 560fr;
  gap: clamp(32px, 5.3vw, 80px);
  align-items: start;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-muted-sand);
}

/* Underline-only inputs, matching the mock's 1px rules. */
.field__input {
  width: 100%;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--color-hairline);
  background: none;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--color-cream);
  transition: border-color var(--dur) var(--ease);
}

.field__input:focus {
  outline: none;
  border-bottom-color: var(--color-gold);
}

.field__input--area {
  resize: vertical;
  min-height: 24px;
}

.field__input.is-invalid {
  border-bottom-color: #E4574C;
}

.field__error {
  margin: 0;
  min-height: 0;
  font-family: var(--font-display);
  font-size: 12px;
  color: #E4574C;
}

.field__error:empty {
  display: none;
}

/* Off-screen rather than display:none — bots skip hidden inputs. */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}

.form__status:empty {
  display: none;
}

.form__status.is-error {
  color: #E4574C;
}

.form__status.is-success {
  color: var(--color-gold);
}

.form__submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Company sits at 413px with the budget control beside it. */
.field--split .field__row {
  display: flex;
  align-items: flex-end;
  gap: clamp(16px, 3vw, 44px);
}

.field__input--company {
  flex: 0 1 413px;
}

/* Budget listbox ---------------------------------------------------------- */

.budget {
  position: relative;
  flex: 0 0 auto;
}

.budget__trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  font-family: var(--font-display);
  font-size: 11px;
  color: #FFFFFF;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.budget__trigger:hover,
.budget__trigger:focus-visible {
  outline: none;
  border-bottom-color: var(--color-gold);
  color: var(--color-gold);
}

.budget__value.is-placeholder {
  color: var(--color-muted-sand);
}

.budget__chevron {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--dur) var(--ease);
}

.budget.is-open .budget__chevron {
  transform: translateY(1px) rotate(-135deg);
}

.budget__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 5;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--color-hairline);
  background-color: var(--color-ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);

  /* Animated open: fades and settles rather than snapping. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 220ms var(--ease),
    transform 220ms var(--ease),
    visibility 0s linear 220ms;
}

.budget.is-open .budget__list {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 220ms var(--ease),
    transform 220ms var(--ease),
    visibility 0s;
}

.budget__option {
  padding: 9px 14px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--color-cream);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.budget__option:focus-visible {
  outline: none;
}

.budget__option.is-active {
  background-color: rgba(255, 213, 134, 0.12);
  color: var(--color-gold);
}

.budget__option[aria-selected='true'] {
  color: var(--color-gold);
}

.form__submit {
  align-self: flex-start;
  margin-top: 10px;
  padding: 16px 28px;
  border: 1px solid var(--color-cream);
  background-color: var(--color-cream);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-deep);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

@media (hover: hover) {
  .form__submit:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
  }
}

/* Side panel -------------------------------------------------------------- */

.enquiry__side {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-left: clamp(24px, 4vw, 60px);
  border-left: 1px solid var(--color-hairline);
}

.enquiry__block-label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-gold);
}

.enquiry__block-value {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.26vw, 19px); /* 19px in the mock */
  font-weight: 700;
  color: var(--color-cream);
}

.enquiry__block-note {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--color-muted-sand);
}

/* What happens next -------------------------------------------------------- */

.next {
  padding: 89px var(--gutter-wide) 90px;
  background-color: var(--color-cream);
}

.next__inner {
  max-width: 1360px;
  margin: 0 auto;
}

.next__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 55px;
  padding-left: 21px; /* the label is inset from the grid in the mock */
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-deep);
}

.rule-bar--ink {
  width: 24px;
  background-color: var(--color-deep);
}

.next__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.next-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 26px;
}

.next-step__num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(24px, 2.12vw, 32px); /* 32px in the mock */
  color: var(--color-gold);
}

.next-step__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.19vw, 18px);
  font-weight: 700;
  color: var(--color-deep);
}

.next-step__desc {
  max-width: 400px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-muted-sand);
}

@media (max-width: 900px) {
  .enquiry__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .enquiry__side {
    padding-left: 0;
    padding-top: 32px;
    border-left: 0;
    border-top: 1px solid var(--color-hairline);
  }

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

@media (max-width: 780px) {
  .hero--contact .hero__lede {
    max-width: none;
    margin-top: 2em;
  }

  .hero--contact .hero__copy {
    bottom: 16%;
  }

  .enquiry {
    padding-top: 52px;
    padding-bottom: 56px;
  }

  .enquiry__heading {
    margin-bottom: 40px;
  }

  .field--split .field__row {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }

  .field__input--company {
    flex: 1 1 auto;
  }

  .budget__list {
    right: 0;
  }

  .next {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .next__label {
    margin-bottom: 32px;
    padding-left: 0;
  }

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

  .next-step {
    padding: 22px 0;
  }
}

/* Page intro (sub-pages) -------------------------------------------------- */

.page-intro {
  padding: clamp(56px, 7vw, 104px) var(--gutter) clamp(56px, 7vw, 96px);
  background-color: var(--color-bg);
}

.page-intro__lede {
  margin-top: 2.6em;
}

/* Services --------------------------------------------------------------- */

.services {
  background-color: var(--color-cream);
  color: var(--color-deep);
  padding: 77px var(--gutter) 76px;
}

/* 907px table, centred — narrower than the page gutter, as designed. */
.services__inner {
  max-width: 907px;
  margin: 0 auto;
}

.services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 55px;
}

.services__heading {
  max-width: 400px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.65vw, 40px); /* 40px in the mock */
  font-weight: 400;
  line-height: 1.2;
}

.services__label,
.contact__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-gold);
  white-space: nowrap;
}

.services__label img,
.contact__label img {
  flex: none;
  height: 1px;
}

.services__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--color-rule);
}

/* 107 / 364 / 436 across the 907px table */
.service {
  display: grid;
  grid-template-columns: 107fr 364fr 436fr;
  align-items: baseline; /* the 12/20/12px cells share a baseline, as designed */
  gap: 16px;
  padding: 27px 0;
  border-top: 1px solid var(--color-rule);
}

.service__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-gold);
}

.service__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.32vw, 20px); /* 20px in the mock */
  font-weight: 400;
}

.service__desc {
  max-width: 280px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.28;
  letter-spacing: -0.24px;
  color: var(--color-muted);
}

/* Contact ---------------------------------------------------------------- */

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 96px var(--gutter) 91px;
  background-color: var(--color-deep);
  text-align: center;
}

.contact__heading {
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.89vw, 74px); /* 74px in the mock */
  font-weight: 700;
  line-height: 0.857;
  letter-spacing: -0.02em;
  color: var(--color-cream);
}

.contact__line {
  display: block;
}

.contact__line + .contact__line {
  margin-top: 0.28em;
}

.contact__accent {
  font-family: var(--font-accent);
  font-size: clamp(19px, 2.65vw, 40px); /* 40px in the mock */
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--color-gold);
}

.contact__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 192px;
  height: 38px;
  margin-top: 45px;
  padding: 6px 10px;
  border: 1px solid var(--color-cream);
  background-color: var(--color-cream);
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.06vw, 16px);
  color: var(--color-ink);
  white-space: nowrap;
}

.contact__cta img {
  flex: none;
  width: 10px;
  height: 10px;
}

/* Footer ----------------------------------------------------------------- */

.footer {
  padding: 66px var(--gutter) 0;
  border-top: 1px solid var(--color-rule);
  background-color: var(--color-deep);
}

/* 415 / 318 / 319 / 278 across the 1330px inner width */
.footer__inner {
  display: grid;
  grid-template-columns: 415fr 318fr 319fr 278fr;
  gap: 24px;
}

.footer__logo {
  display: block;
  width: auto;
  height: clamp(34px, 4.5vw, 68px);
  aspect-ratio: 810 / 183;
}

.footer__desc {
  max-width: 240px;
  margin: 25px 0 0;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.63;
  letter-spacing: -0.28px;
  color: var(--color-cream);
}

.footer__col-title {
  margin: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-gold);
}

/* No inset — links sit flush with their column title. */
.footer__col ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: 14px;
  text-align: left;
  color: var(--color-cream);
}

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 60px;
  padding: 26px 0 32px;
  border-top: 1px solid var(--color-rule);
}

.footer__legal,
.footer__place {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-gold);
}

.footer__legal img {
  flex: none;
  width: 14px;
  height: 14px;
}

/* Interaction ------------------------------------------------------------ */

:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 320ms;        /* hover feedback — stays quick */
  --dur-reveal: 1000ms; /* scroll reveals — slow enough to read */
}

.masthead__nav a,
.footer__col a {
  position: relative;
  transition: color var(--dur) var(--ease);
}

/* Underline grows from the left rather than just appearing. */
.masthead__nav a::after,
.footer__col a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -0.18em;
  left: 0;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}

.contact-box,
.hero__cta,
.poster__cta,
.contact__cta {
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.hero__cta img,
.poster__cta img,
.contact__cta img {
  transition: transform var(--dur) var(--ease);
}

.contact-box__dot {
  transition: transform var(--dur) var(--ease);
}

.masthead__logo img,
.footer__logo {
  transition: opacity var(--dur) var(--ease);
}

.service {
  transition: background-color var(--dur) var(--ease);
}

.service__title {
  transition: transform var(--dur) var(--ease);
}

@media (hover: hover) {
  .masthead__nav a:hover,
  .footer__col a:hover {
    color: var(--color-gold);
  }

  .masthead__nav a:hover::after,
  .footer__col a:hover::after {
    transform: scaleX(1);
  }

  /* Filled buttons warm to gold; the dark arrow stays legible on it. */
  .hero__cta:hover,
  .poster__cta:hover,
  .contact__cta:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
  }

  .hero__cta:hover img,
  .poster__cta:hover img,
  .contact__cta:hover img {
    transform: translateX(3px);
  }

  .contact-box:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
  }

  .contact-box:hover .contact-box__dot {
    transform: scale(1.5);
  }

  .masthead__logo:hover img,
  a:hover > .footer__logo,
  .footer__logo:hover {
    opacity: 0.7;
  }

  .service:hover {
    background-color: rgba(52, 50, 43, 0.06);
  }

  .service:hover .service__title {
    transform: translateX(6px);
  }
}

/* Keyboard focus has to be visible even though hover is not. */
a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* Mobile menu ------------------------------------------------------------- */

.has-menu-open,
.has-menu-open body {
  overflow: hidden;
}

/* Two bars that cross into an X. Sits in the masthead, so it reveals with the
   rest of the header. */
/* 44px box for the touch target; the bars stay 22px so it reads the same. */
.menu-toggle {
  display: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: -11px; /* keeps the bars optically on the gutter */
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-cream);
  cursor: pointer;
}

.menu-toggle__bar {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background-color: currentColor;
  transition:
    transform 380ms var(--ease),
    top 380ms var(--ease);
}

.menu-toggle__bar:nth-child(1) { top: 18px; }
.menu-toggle__bar:nth-child(2) { top: 25px; }

.menu-toggle.is-open .menu-toggle__bar:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle.is-open .menu-toggle__bar:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 20px var(--gutter) calc(var(--gutter) + 20px);
  background-color: var(--color-deep);
  visibility: hidden;
  pointer-events: none;

  /* Slides down from the top; visibility waits for the slide to finish so it
     is not hit-testable mid-exit. */
  transform: translateY(-100%);
  transition:
    transform 460ms var(--ease),
    visibility 0s linear 460ms;
}

.menu.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    transform 460ms var(--ease),
    visibility 0s;
}

.menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
}

.menu__logo img {
  display: block;
  width: auto;
  height: 34px;
  aspect-ratio: 810 / 183;
}

.menu__close {
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -11px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-cream);
  cursor: pointer;
}

.menu__close::before,
.menu__close::after {
  content: '';
  position: absolute;
  top: 21px;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background-color: currentColor;
}

.menu__close::before { transform: rotate(45deg); }
.menu__close::after  { transform: rotate(-45deg); }

.menu__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 40px 0;
}

.menu__nav a {
  font-family: var(--font-display);
  font-size: clamp(34px, 12vw, 56px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--color-cream);

  /* Each line arrives just after the panel lands. */
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 420ms var(--ease),
    transform 420ms var(--ease),
    color var(--dur) var(--ease);
}

.menu.is-open .menu__nav a {
  opacity: 1;
  transform: none;
}

.menu.is-open .menu__nav a:nth-child(1) { transition-delay: 180ms; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: 250ms; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: 320ms; }

.menu__nav a[aria-current='page'] {
  color: var(--color-gold);
}

.menu__foot {
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 420ms var(--ease) 400ms,
    transform 420ms var(--ease) 400ms;
}

.menu.is-open .menu__foot {
  opacity: 1;
  transform: none;
}

.menu__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  border: 1px solid var(--color-cream);
  background-color: var(--color-cream);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-deep);
}

.menu__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-gold);
}

@media (max-width: 780px) {
  .menu-toggle {
    display: block;
  }
}

/* Scroll reveal ---------------------------------------------------------- */

/* Scoped to .js-reveal, which reveal.js only sets once it can observe —
   so the copy is visible by default if the script never runs. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity var(--dur-reveal) var(--ease),
    transform var(--dur-reveal) var(--ease);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .about__label,
  .about__statement,
  .about__detail {
    grid-column: 1;
  }

  .about__label { grid-row: 1; }
  .about__statement { grid-row: 2; }
  .about__detail { grid-row: 3; }

  .about__stats {
    flex-wrap: wrap;
    gap: 20px 30px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }
}

@media (max-width: 780px) {
  :root {
    --poster-start-width: 86%; /* keeps the zoom readable on a narrow screen */
  }

  /* The centred nav and the pill both move into the menu panel. */
  .masthead__nav,
  .contact-box {
    display: none;
  }

  .hero__meta {
    display: none;
  }

  .hero__title,
  .poster__title {
    font-size: clamp(34px, 11vw, 115px);
  }

  .hero__title-accent,
  .poster__title-accent {
    font-size: clamp(20px, 6.2vw, 64px);
  }

  /* Stack the CTA under the copy instead of letting it overlap. */
  .hero__copy {
    bottom: 24%;
  }

  .hero__cta {
    right: auto;
    bottom: 11%;
    left: var(--gutter);
  }

  .hero__lede {
    margin-top: 2em;
  }

  .poster__copy {
    right: var(--gutter);
    bottom: 30%;
  }

  .poster__detail {
    right: var(--gutter);
    bottom: 8%;
    left: var(--gutter);
    align-items: flex-start;
  }

  .services {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .services__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 36px;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }

  .service__desc {
    max-width: none;
  }

  .contact {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .footer {
    padding-top: 48px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer__desc {
    max-width: none;
  }

  .footer__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 40px;
  }
}

/* Reduced motion --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
