/* Siesta Capital — site styles
   Built from the "Siesta Capital" Paper file (Website — Redesign + Design System pages).
   Layout/identity after rre.com, type after kononenkogroup.com, buttons after Fools Fix.

   FONTS: the design uses Suisse Intl for the sans. Suisse is a commercial face; drop licensed
   web files into /assets/fonts and point --font-sans at them. Until then Inter Tight stands in. */

:root {
  /* colour */
  --paper: #FCFCFB;
  --navy: #16213C;
  --navy-deep: #0E1730;
  --brass: #8A6A3B;
  --brass-wash: #F7F3EC;
  --ink: var(--navy);
  --ink-soft: #16213CCC;
  --ink-muted: #16213CB3;
  --rule: #16213C26;
  --on-navy-soft: #F7F3ECCC;
  --on-navy-rule: #F7F3EC33;

  /* type */
  --font-serif: "Hedvig Letters Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Suisse Intl", "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --track-display: -0.03em;
  --track-text: -0.02em;
  --fs-micro: 9px;
  --fs-label: 12px;
  --fs-small: 14px;
  --fs-lead: clamp(20px, 2.1vw, 30px);
  --lh-lead: 1.1;
  --fs-title: clamp(34px, 4.2vw, 60px);
  --fs-display: clamp(46px, 6.2vw, 89px);
  --fs-mega: clamp(46px, 9.1vw, 131px);

  /* layout */
  --gutter: 80px;
  /* content never exceeds 1440px (1280px + gutters); backgrounds and shaders stay full-bleed */
  --content-max: 1280px;
  --pad-x: max(var(--gutter), calc((100% - var(--content-max)) / 2));
  --section-pad: 128px;
  --ease: 150ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  line-height: 1.3;
  letter-spacing: var(--track-text);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.serif { font-family: var(--font-serif); }
.sans { font-family: var(--font-sans); }
.t-mega { font-size: var(--fs-mega); line-height: 1; letter-spacing: var(--track-display); }
.t-display { font-size: var(--fs-display); line-height: 1; letter-spacing: var(--track-display); }
.t-title { font-size: var(--fs-title); line-height: 1; letter-spacing: var(--track-display); }
.t-lead { font-family: var(--font-serif); font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: var(--track-display); }
.t-label { font-size: var(--fs-label); line-height: 1.2; letter-spacing: var(--track-text); }
.t-small { font-size: var(--fs-small); line-height: 1.3; }
.t-micro, .num { font-size: var(--fs-micro); line-height: 1.2; color: var(--brass); letter-spacing: var(--track-text); }
.num-lg { font-family: var(--font-serif); font-size: var(--fs-title); line-height: 1; letter-spacing: var(--track-display); color: var(--brass); }
.soft { color: var(--ink-soft); }
.muted { color: var(--ink-muted); }
.on-navy .soft { color: var(--on-navy-soft); }

/* ---------- layout ---------- */
.wrap { padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding: var(--section-pad) var(--pad-x); background: var(--paper); }
.section > * + * { margin-top: 64px; }
.section--navy, .on-navy { background: var(--navy); color: var(--brass-wash); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section-head .t-title { max-width: 720px; }
.rule-top { border-top: 1px solid var(--ink); }
.rule-top-soft { border-top: 1px solid var(--rule); }
.on-navy .rule-top-soft { border-color: var(--on-navy-rule); }
.stack > * + * { margin-top: 24px; }

/* two-column prose */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 32px; border-top: 1px solid var(--ink); }
.on-navy .cols-2 { border-color: var(--on-navy-rule); }
.cols-2 .t-lead + .t-lead { margin-top: 24px; }

/* serif pull statement */
.pull { padding-top: 48px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: flex-end; gap: 80px; }
.pull__text { font-family: var(--font-serif); font-size: var(--fs-title); line-height: 1; letter-spacing: var(--track-display); max-width: 1100px; }

/* boxed grid (Home C doors, 2x2 cards) */
.boxes { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); border: 1px solid var(--ink); }
.box { padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 96px; border-left: 1px solid var(--ink); border-top: 1px solid var(--ink); min-width: 0; }
.boxes--2 > .box:nth-child(-n+2), .boxes--3 > .box:nth-child(-n+3) { border-top: 0; }
.boxes--2 > .box:nth-child(2n+1), .boxes--3 > .box:nth-child(3n+1) { border-left: 0; }
.boxes--3 { --cols: 3; }
.box__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.on-navy .boxes, .on-navy .box { border-color: var(--on-navy-rule); }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
a.box { text-decoration: none; transition: background var(--ease); }
a.box:hover { background: var(--brass-wash); }
a.box:hover .arrow { transform: translate(2px, -2px); }
.arrow { transition: transform var(--ease); flex: none; }

/* doors (Doors C2 — boxed numeral cards) */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.door { display: flex; flex-direction: column; border: 1px solid var(--ink); text-decoration: none; transition: background var(--ease); min-width: 0; }
.door__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 96px; padding: 40px; }
.door__num { align-self: flex-end; font-family: var(--font-serif); font-size: var(--fs-mega); line-height: 1; letter-spacing: var(--track-display); color: var(--brass); }
.door__foot { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; border-top: 1px solid var(--ink); }
.door:hover { background: var(--brass-wash); }
.door:hover .arrow { transform: translateX(3px); }

/* table */
.table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.table th { font-family: var(--font-serif); font-weight: 400; font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: var(--track-display); text-align: left; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--rule); vertical-align: bottom; }
.table td { font-size: var(--fs-label); line-height: 1.2; padding: 22px 24px 22px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-soft); }
.table td:first-child { color: var(--ink); }
.table tr:last-child td { border-bottom: 0; }
.table .is-highlight td { border-top: 1px solid var(--brass); color: var(--ink); }
/* highlighted column (The window — Effect) */
.table .col-hl { background: var(--brass-wash); border-left: 1px solid var(--brass); padding-left: 24px; color: var(--ink); }
.table th.col-hl { color: var(--brass); }
.on-navy .table { border-color: var(--on-navy-rule); }
.on-navy .table th, .on-navy .table td { border-color: var(--on-navy-rule); color: var(--on-navy-soft); }
.on-navy .table td:first-child { color: var(--brass-wash); }

/* ledger rows */
.ledger { border-top: 1px solid var(--ink); }
.ledger__row { display: grid; grid-template-columns: 32px 1fr; gap: 32px; align-items: baseline; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.ledger__row:last-child { border-bottom-color: var(--ink); }
.ledger--offset .ledger__row { grid-template-columns: 1fr 1fr; }
.ledger--offset .ledger__row > :last-child { max-width: 600px; }
.on-navy .ledger, .on-navy .ledger__row { border-color: var(--on-navy-rule); }
/* numbered ledger (Home — What changes, Table 2) */
.ledger--numbered .ledger__row { grid-template-columns: 56px 420px 1fr; gap: 24px; padding: 40px 0; }
.ledger__num { font-family: var(--font-serif); font-size: var(--fs-lead); line-height: 1.1; letter-spacing: var(--track-display); color: var(--brass); }
.ledger__label { font-size: var(--fs-lead); line-height: 1.1; letter-spacing: var(--track-display); }
.ledger__body { font-family: var(--font-serif); font-size: 24px; line-height: 28px; letter-spacing: var(--track-display); color: var(--ink-soft); }

/* navy band */
.band { display: flex; justify-content: space-between; align-items: flex-end; gap: 80px; }
.band__statement { max-width: 720px; }
.band__side { width: 480px; flex: none; }
.band__side > * + * { margin-top: 32px; }
.band--top { align-items: flex-start; }

/* links */
.link { font-size: var(--fs-small); text-decoration: underline 1px; text-underline-offset: 3px; transition: text-decoration-thickness var(--ease); }
.link:hover { text-decoration-thickness: 2px; }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-size: var(--fs-label); text-decoration: none; }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ---------- buttons (Fools Fix ffx-btn, re-skinned) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 30px;
  font: inherit; font-size: var(--fs-small); line-height: 1; letter-spacing: var(--track-text);
  color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--navy); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--primary { background: var(--brass); color: var(--paper); }
.btn--tonal { background: var(--brass-wash); }
.btn--dark { background: var(--navy); color: var(--paper); }
.btn--dark:hover { box-shadow: 4px 4px 0 var(--brass); }
.btn--small { height: 38px; padding: 0 28px; font-size: var(--fs-label); }
.btn--small:hover { transform: none; box-shadow: none; background: var(--brass); color: var(--paper); border-color: var(--brass); }
.btn--submit { height: 60px; border-color: var(--brass); background: var(--brass); color: var(--paper); }
.btn--submit:hover { transform: none; box-shadow: none; background: color-mix(in srgb, var(--brass) 85%, var(--navy)); }
/* on navy */
.on-navy .btn { border-color: var(--brass-wash); color: var(--brass-wash); }
.on-navy .btn:hover { box-shadow: 4px 4px 0 var(--brass); }
.on-navy .btn--primary { background: var(--brass); border-color: var(--brass); color: var(--paper); }
.on-navy .btn--primary:hover { box-shadow: 4px 4px 0 #F7F3EC80; }
.on-navy .btn--small:hover { box-shadow: none; background: var(--brass); border-color: var(--brass); color: var(--paper); }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 32px; height: 22px; flex: none; }
.brand__word { display: flex; flex-direction: column; font-size: var(--fs-small); line-height: 1.02; }
.brand__word span:last-child { font-family: var(--font-serif); }
.nav { display: flex; align-items: center; gap: 40px; }
.nav__links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: var(--fs-label); text-decoration: none; text-underline-offset: 4px; }
.nav__links a:hover, .nav__links a[aria-current="page"] { text-decoration: underline 1px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; margin: -8px; color: inherit; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 1px; background: currentColor; transition: transform var(--ease); }
.menu-toggle span + span { margin-top: 7px; }
.mobile-menu { display: none; }

/* ---------- heroes ---------- */
.hero { position: relative; overflow: hidden; min-height: 900px; display: flex; flex-direction: column; justify-content: space-between; padding: 48px var(--pad-x) 80px; }
.hero > :not(.hero__shader) { position: relative; z-index: 1; }
.hero__shader { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__shader canvas { width: 100% !important; height: 100% !important; }

/* home hero (light) */
.hero--home { background: var(--paper); color: var(--ink); }
.hero--home .hero__shader { top: 50%; opacity: .3; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%); mask-image: linear-gradient(to bottom, transparent 0%, #000 45%); }
.hero__h1 .sans { display: block; text-indent: 320px; }
.hero__h1 .serif { display: block; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; }
.proof { display: flex; width: 560px; flex: none; border-top: 1px solid var(--ink); list-style: none; margin: 0; padding: 0; }
.proof li { flex: 1 1 0; padding: 16px 16px 0; font-size: var(--fs-label); }
.proof li:first-child { padding-left: 0; }
.proof li + li { border-left: 1px solid var(--rule); }
.hero__lede { width: 560px; flex: none; }

/* interior hero (navy, Moonlit) */
.hero--page { background: var(--navy); color: var(--brass-wash); }
.hero--page .hero__shader { opacity: .32; mix-blend-mode: luminosity; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; }
.hero__title { width: 640px; flex: none; font-size: var(--fs-title); line-height: 1; letter-spacing: var(--track-display); }
.hero__title .serif, .hero__title .sans { display: block; }
.hero--page .hero__lede { color: var(--on-navy-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--brass-wash); padding: 80px var(--pad-x) 64px; }
.site-footer__top { display: flex; justify-content: space-between; align-items: center; }
.site-footer__bottom { display: flex; gap: 48px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--brass); font-size: var(--fs-label); line-height: 1.2; }
.site-footer__contact { width: 400px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer__contact a { text-decoration: none; }
.site-footer__contact > :first-child { font-family: var(--font-serif); }
.site-footer__legal { max-width: 560px; color: var(--on-navy-soft); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: var(--fs-label); color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--fs-small); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; height: 48px; padding: 0;
  appearance: none; -webkit-appearance: none;
}
.field textarea { height: 120px; padding-top: 12px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238A6A3B'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 24px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--brass); }
.form { display: flex; flex-direction: column; gap: 32px; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
  .reveal.is-in { opacity: 1; transform: none; }
  /* hero headlines stay hidden until SplitText has run (site.js); shown anyway after 2.5s if scripts fail */
  .js .hero__h1, .js .hero__title { visibility: hidden; animation: show-late 0s 2.5s forwards; }
}
@keyframes show-late { to { visibility: visible; } }

/* ---------- GSAP motion (site.js) ---------- */
.gsap-on .reveal { transition: none; }
/* SplitText masks: pad so descenders aren't clipped, cancel the extra space */
.split-word-mask { padding-bottom: .14em; margin-bottom: -.14em; }
/* inline-block words would each inherit the home H1's text-indent */
.split-word-mask, .split-word { text-indent: 0; }
.split-line-mask { padding-bottom: .14em; margin-bottom: -.14em; }
.rule-short { transform-origin: left center; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 48px; --section-pad: 96px; }
  .hero__h1 .sans { text-indent: 18vw; }
  .proof, .hero__lede { width: auto; flex: 1 1 0; }
  .hero__title { width: auto; flex: 1 1 0; }
  .band__side { width: 400px; }
  .ledger--numbered .ledger__row { grid-template-columns: 48px 240px 1fr; }
  .nav { gap: 24px; }
  .nav__links { gap: 14px; }
}

/* ---------- mobile (Paper mobile artboards, 390 wide) ---------- */
@media (max-width: 860px) {
  :root { --gutter: 24px; --section-pad: 80px; --fs-lead: 20px; --lh-lead: 1.15; }
  .section > * + * { margin-top: 40px; }

  .nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu { position: fixed; inset: 0; z-index: 20; background: var(--navy); color: var(--brass-wash); padding: 32px var(--pad-x) 40px; flex-direction: column; justify-content: space-between; }
  .mobile-menu.is-open { display: flex; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .mobile-menu li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--on-navy-rule); font-size: 34px; line-height: 1; letter-spacing: var(--track-display); text-decoration: none; }
  .mobile-menu li a[aria-current="page"] { font-family: var(--font-serif); }
  .mobile-menu .btn { width: 100%; }
  body.menu-open { overflow: hidden; }

  .hero { min-height: 100svh; padding: 32px var(--pad-x) 40px; }
  .hero__h1 .sans { text-indent: 0; }
  .hero__foot, .hero__row { flex-direction: column; align-items: stretch; gap: 32px; }
  .hero--home .hero__foot { flex-direction: column-reverse; }
  .proof { flex-direction: column; width: auto; }
  .proof li { padding: 12px 0; }
  .proof li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .hero__lede, .hero__title { width: auto; }

  .section-head { align-items: flex-start; }
  .cols-2 { grid-template-columns: 1fr; gap: 24px; }
  .pull { flex-direction: column; align-items: flex-start; gap: 32px; }
  .boxes, .boxes--2, .boxes--3 { grid-template-columns: 1fr; }
  .boxes > .box { border-left: 0 !important; border-top: 1px solid var(--ink) !important; gap: 48px; padding: 28px 24px; }
  .boxes > .box:first-child { border-top: 0 !important; }
  .on-navy .boxes > .box { border-color: var(--on-navy-rule) !important; }
  .ledger__row, .ledger--offset .ledger__row { grid-template-columns: 24px 1fr; gap: 16px; padding: 24px 0; }
  .ledger--numbered .ledger__row { grid-template-columns: 28px 1fr; gap: 12px 16px; padding: 24px 0; }
  .ledger--numbered .ledger__num, .ledger--numbered .ledger__label { font-size: 20px; line-height: 23px; }
  .ledger--numbered .ledger__body { grid-column: 2; font-size: 20px; line-height: 23px; }
  .band { flex-direction: column; align-items: stretch; gap: 40px; }
  .band__side { width: auto; }

  /* tables become stacked records */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 20px 0; border-bottom: 1px solid var(--rule); }
  .table tr:last-child { border-bottom: 0; }
  .table td { border: 0; padding: 4px 0; }
  .table td[data-label]::before { content: attr(data-label); display: block; font-family: var(--font-serif); font-size: 16px; color: var(--ink); margin-bottom: 4px; }
  .on-navy .table td[data-label]::before { color: var(--brass-wash); }
  .table td.col-hl { padding: 12px 16px; margin-top: 8px; }
  .table td.col-hl::before { color: var(--brass); }

  .doors { grid-template-columns: 1fr; gap: 16px; }
  .door__body { gap: 40px; padding: 28px 24px; }
  .door__num { font-size: 72px; }
  .door__foot { padding: 18px 24px; }

  .btn--block-mobile { width: 100%; }

  .site-footer { padding: 56px var(--pad-x) 40px; }
  .site-footer__bottom { flex-direction: column; gap: 24px; margin-top: 40px; }
  .site-footer__contact { width: auto; }
}

/* ---------- enquiry pop-up (site.js) ----------
   Paper: "Enquiry Form — 00 Path … 05 Sent" boards (desktop + mobile). One section per step over a dimmed
   page; Next / Enter moves on, the arrows bottom-right step back and forward. */
.enquiry { position: fixed; inset: 0; z-index: 100; }
.enquiry[hidden] { display: none; }
.enquiry__backdrop { position: absolute; inset: 0; background: rgb(14 23 48 / 86%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: enquiry-fade 500ms ease both; }
/* fill-mode backwards so the blur/transform is gone from the computed style once the sheet lands */
.enquiry__sheet { position: absolute; inset: 40px; display: flex; flex-direction: column; margin: 0; background: var(--paper); color: var(--ink); overflow: hidden; animation: enquiry-rise 640ms cubic-bezier(.22, .8, .2, 1) backwards; }
@keyframes enquiry-fade { from { opacity: 0; } }
@keyframes enquiry-fade-out { to { opacity: 0; } }
@keyframes enquiry-rise { from { opacity: 0; transform: translateY(28px); filter: blur(12px); } }
@keyframes enquiry-sink { to { opacity: 0; transform: translateY(20px); filter: blur(10px); } }
.enquiry.is-closing { pointer-events: none; }
.enquiry.is-closing .enquiry__backdrop { animation: enquiry-fade-out 360ms ease forwards; }
.enquiry.is-closing .enquiry__sheet { animation: enquiry-sink 360ms cubic-bezier(.4, 0, .6, 1) forwards; }
body.enquiry-open { overflow: hidden; }

.enquiry__progress { position: absolute; top: 0; left: 0; z-index: 2; width: 100%; height: 4px; background: var(--rule); }
.enquiry__progress-fill { width: 20%; height: 4px; background: var(--brass); transition: width 560ms cubic-bezier(.22, .8, .2, 1); }
.enquiry__top { position: absolute; top: 24px; left: 32px; right: 24px; z-index: 2; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.enquiry__top > * { pointer-events: auto; }
.enquiry__close { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); cursor: pointer; transition: background var(--ease); }
.enquiry__close:hover { background: var(--brass-wash); }
.enquiry__close:focus-visible, .enquiry__nav-btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.enquiry__body { flex: 1; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; padding: 88px 40px; }
.enquiry__step { display: none; flex-direction: column; gap: 48px; width: 960px; max-width: 100%; margin: auto; }
.enquiry__step.is-active { display: flex; }
/* each step's heading, fields and actions rise in turn; stepping back they drop in from above */
.enquiry__step.is-active > * { animation: enquiry-step 560ms cubic-bezier(.22, .8, .2, 1) backwards; }
.enquiry__step.is-active > :nth-child(2) { animation-delay: 80ms; }
.enquiry__step.is-active > :nth-child(3) { animation-delay: 160ms; }
.enquiry[data-dir="back"] .enquiry__step.is-active > * { animation-name: enquiry-step-back; }
@keyframes enquiry-step { from { opacity: 0; transform: translateY(28px); } }
@keyframes enquiry-step-back { from { opacity: 0; transform: translateY(-28px); } }

.enquiry__heading { display: flex; flex-direction: column; gap: 24px; }
.enquiry__eyebrow { display: flex; align-items: center; gap: 12px; font-size: var(--fs-label); line-height: 1.2; color: var(--ink-soft); }
.enquiry__eyebrow::before { content: ""; width: 24px; height: 1px; flex: none; background: var(--brass); }
.enquiry__sub { max-width: 760px; margin-top: -8px; }

.enquiry__fields { display: flex; flex-direction: column; gap: 40px; }
.enquiry__field { position: relative; display: flex; flex-direction: column; gap: 12px; }
.enquiry__field--choices { gap: 16px; }
.enquiry__label { display: flex; align-items: baseline; gap: 10px; font-size: var(--fs-small); line-height: 1.3; }
.enquiry__num { width: 16px; flex: none; font-size: var(--fs-label); color: var(--brass); letter-spacing: 0; }
/* answers are set in the serif at lead size, on a hairline that turns brass on focus */
.enquiry__input, .enquiry__select-trigger {
  width: 100%; padding: 0 0 11px; border: 0; border-bottom: 1px solid #B9BDC7; border-radius: 0; background: none;
  font-family: var(--font-serif); font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: var(--track-display); color: var(--ink);
  transition: border-color var(--ease);
}
.enquiry__input::placeholder { color: #16213C66; opacity: 1; }
.enquiry__input:focus, .enquiry__select-trigger:focus-visible, .enquiry__select-trigger[aria-expanded="true"] { outline: none; border-bottom: 2px solid var(--brass); padding-bottom: 10px; }
.enquiry__error { display: none; font-size: var(--fs-label); line-height: 1.2; color: var(--brass); }
.is-error > .enquiry__error { display: block; }
.enquiry__field.is-error .enquiry__input, .enquiry__select.is-error .enquiry__select-trigger { border-bottom: 2px solid var(--ink); padding-bottom: 10px; }

.enquiry__select-trigger { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #16213C66; text-align: left; cursor: pointer; }
.enquiry__select.has-value .enquiry__select-trigger { color: var(--ink); }
.enquiry__select-trigger svg { flex: none; color: var(--brass); transition: transform var(--ease); }
.enquiry__select-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.enquiry__select-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 3; width: 100%; max-width: 420px; margin: 0; padding: 8px; list-style: none; background: #FFFFFF; border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--rule); }
.enquiry__select-menu[hidden] { display: none; }
.enquiry__select-menu button { display: flex; align-items: center; width: 100%; height: 48px; padding: 0 16px; border: 0; border-radius: 0; background: none; font: inherit; letter-spacing: var(--track-text); color: var(--ink); text-align: left; cursor: pointer; transition: background var(--ease); }
.enquiry__select-menu button:hover, .enquiry__select-menu button:focus-visible, .enquiry__select-menu button[aria-selected="true"] { background: var(--brass-wash); outline: none; }

/* option list — the contact page's path toggle, lettered: boxed rows, navy when picked */
.enquiry__choices { display: flex; flex-direction: column; max-width: 720px; border: 1px solid var(--ink); }
.enquiry__choice { display: flex; align-items: center; gap: 20px; width: 100%; padding: 20px 24px; border: 0; border-radius: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: background var(--ease), color var(--ease); }
.enquiry__choice + .enquiry__choice { border-top: 1px solid var(--ink); }
.enquiry__key { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border: 1px solid var(--ink); font-size: var(--fs-label); line-height: 1; letter-spacing: 0; transition: background var(--ease), border-color var(--ease); }
.enquiry__choice-text { flex: 1 1 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.enquiry__choice-name { font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: var(--track-display); }
.enquiry__choice-desc { flex: none; font-size: var(--fs-small); letter-spacing: var(--track-text); color: var(--ink-muted); }
.enquiry__choice:hover { background: var(--brass-wash); }
.enquiry__choice:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--brass); outline-offset: 2px; }
.enquiry__choice[aria-checked="true"] { background: var(--navy); color: var(--paper); }
.enquiry__choice[aria-checked="true"] .enquiry__key { background: var(--brass); border-color: var(--brass); }
.enquiry__choice[aria-checked="true"] .enquiry__choice-desc { color: #F7F3ECB3; }

.enquiry__actions { display: flex; align-items: center; gap: 16px; }
.enquiry__btn { gap: 16px; padding: 0 20px; }
.enquiry__hint { font-size: var(--fs-label); line-height: 1.2; color: var(--ink-muted); }
.enquiry__foot { position: absolute; right: 32px; bottom: 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.enquiry__next--mobile { display: none; }
.enquiry__btn[hidden] { display: none; }
.enquiry__nav { display: flex; gap: 4px; }
.enquiry__nav-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; padding: 0; border: 1px solid var(--navy); border-radius: 0; background: var(--navy); color: var(--paper); cursor: pointer; transition: background var(--ease), border-color var(--ease), color var(--ease); }
.enquiry__nav-btn:hover:not(:disabled) { background: var(--brass); border-color: var(--brass); }
.enquiry__nav-btn:disabled { background: none; border-color: var(--rule); color: #B9BDC7; cursor: default; }
.enquiry.is-sent .enquiry__foot { display: none; }

@media (prefers-reduced-motion: reduce) {
  .enquiry__backdrop, .enquiry__sheet, .enquiry.is-closing .enquiry__backdrop, .enquiry.is-closing .enquiry__sheet, .enquiry__step.is-active > * { animation: none; }
  .enquiry__progress-fill { transition: none; }
}

/* mobile: a full-screen sheet, Next and the step arrows in a footer bar */
@media (max-width: 860px) {
  .enquiry__sheet { inset: 0; }
  .enquiry__top { position: static; height: 64px; flex: none; padding: 0 16px 0 24px; }
  .enquiry__body { padding: 24px; }
  .enquiry__step { gap: 32px; margin: 0; }
  .enquiry__heading { gap: 16px; }
  .enquiry__sub { margin-top: -4px; }
  .enquiry__fields { gap: 28px; }
  .enquiry__field { gap: 8px; }
  .enquiry__field--choices { gap: 12px; }
  .enquiry__input, .enquiry__select-trigger { padding-bottom: 9px; font-size: 24px; line-height: 28px; }
  .enquiry__input:focus, .enquiry__select-trigger:focus-visible, .enquiry__select-trigger[aria-expanded="true"], .enquiry__field.is-error .enquiry__input, .enquiry__select.is-error .enquiry__select-trigger { padding-bottom: 8px; }
  .enquiry__select-trigger svg { width: 16px; height: 16px; }
  .enquiry__select-menu { max-width: none; }
  .enquiry__choice { gap: 14px; padding: 16px; }
  .enquiry__key { width: 24px; height: 24px; font-size: 11px; }
  .enquiry__choice-text { flex-direction: column; align-items: flex-start; gap: 4px; }
  .enquiry__choice-desc { font-size: var(--fs-label); }
  .enquiry__actions { display: none; }
  .enquiry__step--sent .enquiry__actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .enquiry__foot { position: static; flex: none; padding: 16px 24px 28px; }
  .enquiry__next--mobile { display: inline-flex; }
  .enquiry.is-sent .enquiry__foot { display: none; }
}
