/* ==========================================================================
   Diaz Strategic Consulting. One stylesheet for every page.
   Tokens are locked in BRAND-DNA.md. Square corners. Gold is rationed.
   Order: tokens, reset, type, utilities, shell, home sections, shared
   components, motion, reduced motion, print.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --deep: #0E1022;
  --navy: #161B3A;
  --navy-hi: #232A55;
  --gold: #C7A233;
  --gold-hi: #D8B23F;
  --gold-text: #8E7324;
  --on-gold: #241C05;
  --ink: #1A1A1A;
  --slate: #4A5168;
  --mist: #E8EDF8;
  --paper: #F6F7FB;
  --white: #FFFFFF;
  --line: #DDE2F0;
  --line-dark: rgba(255,255,255,0.14);
  --on-dark: #EEF1FA;
  --on-dark-muted: #A9B1CC;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Manrope", "Helvetica Neue", sans-serif;
  --quote: "Playfair Display", Georgia, serif;

  --wrap: 1180px;
  --gutter: 24px;
  --pad: 110px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow: 0 18px 50px rgba(14,16,34,0.10);

  /* the cut: one angle everywhere. --cut is the wedge height, --bar the gold bar height */
  --cut: 120px;
  --cut-x: 52%;
  /* the gold line on the cut is drawn in a 100 unit box that is scaled to --cut. --cut-sw is 240 / --cut,
     so the line is 2.4px on screen in every place. Set it again wherever --cut is set */
  --cut-sw: 2;
  --bar: 84px;
  --tab: 56px;
  --seam: var(--white);

  /* surface theme, swapped by .on-dark */
  --fg: var(--ink);
  --fg-muted: var(--slate);
  --accent: var(--gold-text);
  --eyebrow: var(--gold-text);
  --rule: var(--line);
  --ring: var(--deep);
}
.on-dark {
  --fg: var(--on-dark);
  --fg-muted: var(--on-dark-muted);
  --accent: var(--gold);
  --eyebrow: var(--gold);
  --rule: var(--line-dark);
  --ring: transparent;
  color: var(--fg);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; scroll-padding-bottom: 96px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; border-radius: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0; }
em { font-style: normal; color: var(--accent); }
strong, b { font-weight: 700; }
iframe { border: 0; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; box-shadow: 0 0 0 4px var(--ring); }
/* main takes focus from the skip link. It is not a control, so it shows no ring */
main:focus, main:focus-visible { outline: none; box-shadow: none; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Type and utilities ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--pad) 0; position: relative; }
.section--paper { background: var(--paper); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--deep); }
.section--tight { padding: 72px 0; }
/* small gold text falls under 4.5:1 on the tinted grounds, so eyebrows there use slate */
.section--paper, .section--mist, .bio, .duo-panel:not(.on-dark) { --eyebrow: var(--slate); }
@media (max-width: 640px) {
  :root { --pad: 64px; }
  .section--tight { padding: 56px 0; }
}

.eyebrow { display: flex; align-items: center; gap: 14px; font: 700 13px/1.4 var(--text); letter-spacing: .28em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 22px; }
.eyebrow::before { content: ""; flex: none; width: 22px; height: 10px; margin-left: 5px; background: var(--gold); transform: skewX(-45deg); }
.eyebrow--center { justify-content: center; }

.h1, .h2, .h3 { font-family: var(--display); text-transform: uppercase; color: var(--fg); letter-spacing: .005em; text-wrap: balance; }
.h1 { font-weight: 800; font-size: clamp(46px, 7.4vw, 96px); line-height: .95; }
.h1--inner { font-size: clamp(40px, 5.6vw, 72px); line-height: .98; }
.h2 { font-weight: 700; font-size: clamp(34px, 4.6vw, 58px); line-height: 1; }
.h3 { font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.05; }
.lead { color: var(--fg-muted); font-size: 18px; line-height: 1.6; max-width: 54ch; }
.h2 + .lead, .h1 + .lead { margin-top: 24px; }
.lead + .lead { margin-top: 16px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* arrow glyph, drawn once and tinted by currentColor */
.arr { flex: none; display: inline-block; width: 20px; height: 20px; background: currentColor; transition: transform .25s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='square'%3E%3Cpath d='M4 12h15M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='square'%3E%3Cpath d='M4 12h15M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat; }
a:hover > .arr, a:focus-visible > .arr, button:hover > .arr { transform: translateX(6px); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 15px 24px 14px; font: 700 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-align: center; border: 1.5px solid transparent; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn-lg { min-height: 60px; padding: 18px 30px 17px; font-size: 20px; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-navy { background: var(--deep); color: var(--white); }
.btn-navy:hover { background: var(--navy-hi); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--deep); border-color: var(--deep); color: var(--white); }
.btn-ghost-dark { border-color: rgba(255,255,255,.4); color: var(--on-dark); }
.btn-ghost-dark:hover { background: var(--white); border-color: var(--white); color: var(--deep); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 38px; }

.tlink { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 700 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--fg); box-shadow: inset 0 -2px 0 var(--gold); padding: 4px 0; transition: color .25s var(--ease); }
.tlink:hover { color: var(--accent); }
/* on the tinted grounds the gold word falls under 4.5:1, so the text stays ink and the rule thickens */
.section--paper .tlink:hover:not(:focus-visible), .section--mist .tlink:hover:not(:focus-visible) { color: var(--fg); box-shadow: inset 0 -3px 0 var(--gold); }
.tlink:focus-visible { box-shadow: 0 0 0 4px var(--ring); }

/* lists with the gold arrow marker */
.ticks li, .bullets li { position: relative; padding-left: 26px; }
.ticks li + li, .bullets li + li { margin-top: 12px; }
.ticks li::before, .bullets li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 9px; height: 9px; border: solid var(--gold); border-width: 2.5px 2.5px 0 0; transform: rotate(45deg); }
.ticks { margin-top: 28px; color: var(--fg); }

/* ---------- 4. Shell: header and nav ---------- */
.skip { position: absolute; left: 16px; top: -80px; z-index: 300; padding: 14px 20px; background: var(--gold); color: var(--on-gold); font-weight: 700; }
.skip:focus { top: 12px; }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); background: var(--deep); box-shadow: 0 1px 0 var(--line-dark); transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
.nav.is-top { background: transparent; box-shadow: none; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.nav-brand { display: inline-flex; align-items: center; min-height: 48px; flex: none; }
.nav-brand img { width: auto; height: 46px; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font: 700 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark); transition: color .25s var(--ease); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--gold); }
/* the current page is marked by a rule under the word, not by colour alone */
.nav-link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-cta { margin-left: 14px; min-height: 46px; padding: 12px 20px 11px; }
/* gold is rationed: over the hero the nav button is an outline, and it fills once the nav goes solid */
@media (min-width: 901px) {
  .nav.is-top .nav-cta { background: transparent; border-color: var(--gold); color: var(--on-dark); }
  .nav.is-top .nav-cta:hover, .nav.is-top .nav-cta:focus-visible { background: var(--gold); color: var(--on-gold); }
}
.nav-burger, .nav-close, .nav-scrim { display: none; }

.dd { position: relative; display: flex; align-items: center; }
.dd > .nav-link { padding-right: 0; }
.dd-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--on-dark); }
.dd-btn::before { content: ""; width: 8px; height: 8px; margin-top: -4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .25s var(--ease); }
.dd-btn[aria-expanded="true"]::before { transform: rotate(225deg); margin-top: 4px; }
/* the ring is drawn inside the button, so it does not cross the last letter of the word beside it */
.dd-btn:focus-visible { outline-offset: -4px; box-shadow: none; }
.dd-panel { position: absolute; top: 100%; left: 0; min-width: 250px; padding: 10px 0; background: var(--navy); border-top: 2px solid var(--gold); box-shadow: 0 18px 50px rgba(14,16,34,.35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s; }
.dd:hover .dd-panel, .dd.is-open .dd-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* with no script the arrow button does nothing, so the panel opens when focus is inside the group */
html:not(.js) .dd:focus-within .dd-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dd-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 22px; font: 600 15px/1.2 var(--text); color: var(--on-dark); transition: background-color .2s, color .2s; }
.dd-panel a:hover, .dd-panel a:focus-visible { background: var(--navy-hi); color: var(--gold); }

@media (max-width: 900px) {
  .js .nav-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 48px; height: 48px; padding: 0 10px; margin-right: -10px; }
  .nav-burger span { display: block; height: 2px; background: var(--on-dark); }
  .nav-burger span:nth-child(2) { width: 70%; margin-left: auto; background: var(--gold); }
  .js .nav-menu { position: fixed; top: 0; right: 0; bottom: 0; z-index: 2; width: min(86vw, 360px); flex-direction: column; align-items: stretch; gap: 0; padding: 84px 28px 32px; background: var(--deep); border-left: 1px solid var(--line-dark); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s var(--ease), visibility 0s .25s; }
  .js .nav-menu.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .js .nav-close { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 12px; right: 14px; width: 48px; height: 48px; color: var(--on-dark); }
  .nav-close::before, .nav-close::after { content: ""; position: absolute; width: 24px; height: 2px; background: currentColor; transform: rotate(45deg); }
  .nav-close::after { transform: rotate(-45deg); }
  .js .nav-scrim { display: block; position: fixed; inset: 0; z-index: 1; background: rgba(14,16,34,.66); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility 0s .25s; }
  .menu-open .nav-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
  .menu-open { overflow: hidden; }
  .nav-link { min-height: 56px; padding: 0; font-size: 26px; border-bottom: 1px solid var(--line-dark); }
  .dd { display: block; border-bottom: 1px solid var(--line-dark); }
  .dd > .nav-link { display: flex; border-bottom: 0; }
  .dd-btn { display: none; }
  .dd-panel { position: static; min-width: 0; padding: 0 0 14px; background: none; border: 0; box-shadow: none; opacity: 1; visibility: inherit; transform: none; transition: none; }
  .dd-panel a { padding: 0 0 0 18px; color: var(--on-dark-muted); border-left: 2px solid var(--line-dark); }
  .nav-cta { margin: 28px 0 0; min-height: 56px; font-size: 20px; }

  /* with no script there is no drawer: the menu is a plain stacked list under the logo */
  html:not(.js) .nav { position: absolute; height: auto; }
  html:not(.js) .nav-inner { flex-wrap: wrap; gap: 0; height: auto; padding-top: 12px; padding-bottom: 16px; }
  html:not(.js) .nav-menu { flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 0; margin-top: 8px; border-top: 1px solid var(--line-dark); }
  html:not(.js) .nav-link { min-height: 48px; font-size: 20px; }
  html:not(.js) .dd-panel { display: none; }
  html:not(.js) .nav-cta { margin-top: 16px; min-height: 52px; font-size: 18px; }
  html:not(.js) .hero-inner, html:not(.js) .ihero-inner, html:not(.js) .ihero--media .ihero-inner { padding-top: 330px; }
}

/* ---------- 5. Shell: sticky booking tab ---------- */
.booktab { position: fixed; right: 0; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: 12px; height: var(--tab); padding: 0 26px 0 calc(var(--tab) + 16px); background: var(--gold); color: var(--on-gold); font: 700 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; clip-path: polygon(var(--tab) 0, 100% 0, 100% 100%, 0 100%); transform: translateX(105%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s, background-color .25s var(--ease); }
.booktab.is-on { transform: none; visibility: visible; transition-delay: 0s; }
.booktab:hover { background: var(--gold-hi); }
.booktab:focus-visible { outline-offset: -5px; outline-color: var(--deep); box-shadow: none; }
.no-tab .booktab { display: none; }
@media (max-width: 640px) {
  .booktab { left: 0; bottom: 0; justify-content: center; padding: 0 20px; clip-path: none; transform: translateY(105%); }
}
/* on a short screen, such as a phone on its side, the tab would sit on the text. The nav button and the page buttons still lead to booking */
@media (max-height: 480px) { .booktab { display: none; } }

/* ---------- 6. Shell: footer ---------- */
.footer { background: var(--deep); padding: 84px 0 36px; border-top: 1px solid var(--line-dark); position: relative; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px 64px; }
.footer-brand img { width: auto; height: 62px; }
.footer-brand p { margin-top: 22px; max-width: 40ch; color: var(--fg-muted); font-size: 15.5px; }
.footer-brand .social { margin-top: 26px; justify-content: flex-start; }
.fcol h2 { font: 700 13px/1.4 var(--text); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.fcol a { display: flex; align-items: center; min-height: 44px; color: var(--on-dark); font-size: 16px; transition: color .2s; }
.fcol a:hover { color: var(--gold); }
.footer-fine { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-top: 56px; padding: 22px 0 0; border-top: 1px solid var(--line-dark); color: var(--fg-muted); font-size: 14.5px; }
.footer-fine a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.footer-fine a:hover { color: var(--gold); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 26px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .footer { padding: 60px 0 28px; }
  .footer-top { gap: 36px 24px; }
  .footer-fine { flex-direction: column; align-items: flex-start; margin-top: 40px; }
}

/* ---------- 7. Shell: booking dialog and form frames ---------- */
.book { width: min(680px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--navy-hi); background: var(--deep); color: var(--on-dark); overflow: auto; }
.book::backdrop { background: rgba(14,16,34,.78); }
html:has(.book[open]) { overflow: hidden; }
.book[open] { animation: book-in .25s var(--ease); }
@keyframes book-in { from { opacity: 0; transform: translateY(12px); } }
.book-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 20px 18px 30px; background: var(--deep); border-bottom: 1px solid var(--line-dark); }
.book-title { font: 700 32px/1 var(--display); text-transform: uppercase; color: var(--on-dark); }
.book-sub { margin-top: 8px; color: var(--on-dark-muted); font-size: 15.5px; }
.book-x { position: relative; flex: none; width: 48px; height: 48px; color: var(--on-dark); }
.book-x::before, .book-x::after { content: ""; position: absolute; left: 12px; top: 23px; width: 24px; height: 2px; background: currentColor; transform: rotate(45deg); transition: background-color .2s; }
.book-x::after { transform: rotate(-45deg); }
.book-x:hover { color: var(--gold); }
.book-body { padding: 20px 20px 24px; }

/* the frame holds the loaded height of the form from the start, so the page does not jump when the form arrives */
.formframe { background: var(--deep); min-height: 740px; }
.formframe iframe { width: 100%; min-height: 740px; }
.formnote { margin-top: 14px; font-size: 14.5px; color: var(--on-dark-muted); }
.formnote a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.formnote a:hover { color: var(--gold); }
.formpanel { padding: 22px; background: var(--navy); border: 1px solid var(--navy-hi); }
@media (max-width: 640px) {
  .book-head { padding: 18px 10px 14px 18px; }
  .book-title { font-size: 28px; }
  /* on phones the form runs edge to edge, so the form gets every pixel of width */
  .book { width: 100vw; border-left: 0; border-right: 0; }
  .book-body { padding: 10px 0 18px; }
  .formpanel { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 10px 0 12px; border-left: 0; border-right: 0; }
  .formpanel .formnote, .book-body .formnote { padding: 0 var(--gutter); }
  .formframe, .formframe iframe { min-height: 760px; }
}

/* ---------- 8. The cut (shared by the hero, the inner hero, and the closing banner) ---------- */
.cut { position: absolute; right: 0; bottom: -1px; left: var(--cut-x); z-index: 2; height: calc(var(--cut) + 1px); background: var(--seam); clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%); pointer-events: none; }
.cutline { position: absolute; left: var(--cut-x); bottom: 0; z-index: 3; width: var(--cut); height: var(--cut); overflow: visible; pointer-events: none; }
.cutline line { stroke: var(--gold); stroke-width: var(--cut-sw); stroke-dasharray: 1; stroke-dashoffset: 0; }
.cutline.is-armed line { stroke-dashoffset: 1; }
.cutline.is-drawn line { stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ease); }

/* ---------- 9. Home: hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); min-height: min(92vh, 860px); min-height: min(92svh, 860px); }
.hero-bg { position: absolute; inset: 0; z-index: -3; background: var(--deep) url("assets/img/skyline-night.webp") center / cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,16,34,.94) 0%, rgba(14,16,34,.8) 42%, rgba(14,16,34,.38) 100%), linear-gradient(180deg, rgba(14,16,34,.7) 0%, rgba(14,16,34,0) 34%); }
.hero-lights { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 72%); mask-image: linear-gradient(90deg, transparent 30%, #000 72%); }
.hero-inner { position: relative; display: flex; align-items: center; min-height: inherit; padding-top: calc(var(--nav-h) + 28px); padding-bottom: calc(var(--bar) / 2 + 56px); }
.hero-copy { position: relative; z-index: 4; width: 58%; }
.hero-copy .lead { margin-top: 26px; font-size: clamp(17px, 1.45vw, 20px); max-width: 30em; color: var(--on-dark); }
.hero-copy .actions { margin-top: 34px; }
.hero-figure { position: absolute; right: -16px; bottom: -32px; z-index: 1; height: min(calc(100% - 52px), 71.6vw, 846px); aspect-ratio: 1100 / 1790; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@media (min-width: 901px) and (max-height: 780px) { .hero .h1 { font-size: clamp(46px, 11svh, 96px); } .hero-inner { padding-top: calc(var(--nav-h) + 12px); } }
@media (max-width: 1080px) { .hero-figure { right: 0; height: min(calc(100% - 52px), 66vw); } }
@media (max-width: 900px) {
  :root { --cut: 84px; --cut-sw: 2.86; --cut-x: 60%; --bar: 68px; }
  .hero { min-height: min(92svh, 720px); }
  .hero-copy { width: 56%; }
}
@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero-inner { display: block; padding-top: calc(var(--nav-h) + 30px); padding-bottom: 0; }
  .hero-copy { width: auto; }
  .hero-lights { -webkit-mask-image: linear-gradient(180deg, transparent 46%, #000 78%); mask-image: linear-gradient(180deg, transparent 46%, #000 78%); }
  .hero-figure { position: relative; right: auto; bottom: auto; height: 86vw; max-height: 430px; aspect-ratio: auto; margin: 34px calc(var(--gutter) * -1) 0; overflow: hidden; }
  .hero-figure img { position: relative; left: 50%; width: min(104vw, 500px); max-width: none; height: auto; transform: translateX(-50%); }
  .hero .cut, .hero .cutline { display: none; }
  .hero-copy .btn { width: 100%; }
}

/* ---------- 10. Home: gold CTA bar and quote tile ---------- */
.ctabar { position: relative; z-index: 5; display: grid; grid-template-columns: calc(var(--cut-x) + var(--bar) / 2 + 1.5px) 1fr; align-items: start; margin-top: calc(var(--bar) / -2); }
/* the label is one line at rest. The bar can grow and the label can wrap when a visitor sets wider text spacing */
.ctabar-link { display: flex; align-items: center; gap: 18px; min-height: var(--bar); padding: 8px calc(var(--bar) / 2 + 16px) 8px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); background: var(--gold); color: var(--on-gold); font: 700 clamp(17px, 2.05vw, 27px)/1 var(--display); letter-spacing: .04em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - var(--bar)) 100%, 0 100%); transition: background-color .25s var(--ease); }
.ctabar-link > span:first-child { min-width: 0; }
.ctabar-link:hover { background: var(--gold-hi); }
.ctabar-link:focus-visible { outline-color: var(--deep); outline-offset: -6px; box-shadow: none; }
.ctabar-link .arr { width: 26px; height: 26px; }
/* the first line of the quote sits on the centre line of the gold bar */
.ctabar-quote { --q: clamp(21px, 1.9vw, 27px); position: relative; padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 0 96px; margin-top: calc(var(--bar) / 2 - var(--q) * .725); }
.ctabar-quote blockquote { position: relative; font: italic 500 var(--q)/1.45 var(--quote); color: var(--ink); text-wrap: balance; }
.ctabar-quote blockquote::before { content: "\201C"; position: absolute; left: -50px; top: -.04em; font: italic 500 72px/1 var(--quote); color: var(--gold-text); }
.ctabar-quote figcaption { margin-top: 16px; font-size: 14.5px; color: var(--slate); }
.ctabar-quote figcaption b { display: block; font: 700 20px/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
/* dark strip variant, used on About for the social icons */
.ctabar-strip { display: flex; align-items: center; gap: 6px; height: var(--bar); padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding-right: calc(var(--bar) + 8px); background: var(--navy); clip-path: polygon(0 0, 100% 0, calc(100% - var(--bar)) 100%, 0 100%); }
@media (max-width: 900px) {
  .ctabar { grid-template-columns: minmax(0, 1fr); }
  .ctabar-link, .ctabar-strip { width: calc(var(--cut-x) + var(--bar) / 2 + 1.5px); }
  .ctabar-link { gap: 12px; font-size: clamp(15px, 2.3vw, 18.5px); }
  .ctabar-quote { margin-top: 40px; padding: 0 var(--gutter); max-width: 640px; }
  .ctabar-quote blockquote::before { display: block; position: static; height: 40px; margin: 0 0 6px -4px; }
}
@media (max-width: 640px) {
  :root { --bar: 60px; }
  .ctabar-link, .ctabar-strip { width: 100%; }
  .ctabar-strip { padding-right: calc(var(--bar) + 4px); }
  .ctabar-link { gap: 10px; font-size: clamp(12px, 3.9vw, 19px); letter-spacing: .02em; }
  .ctabar-link .arr { width: 20px; height: 20px; }
}

/* ---------- 11. Home: proof and stats ---------- */
.proof-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
.stats { display: grid; gap: 34px; }
.stat { display: flex; align-items: center; gap: 26px; padding-bottom: 22px; border-bottom: 2px solid var(--gold); }
.stats > .stat:nth-child(1) { margin-left: 30%; }
.stats > .stat:nth-child(2) { margin-left: 15%; }
.stat-n { flex: none; min-width: 1.2em; font: 800 clamp(56px, 7vw, 96px)/.86 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-l { font: 600 clamp(18px, 1.6vw, 22px)/1.15 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--fg-muted); }
.stat-l b { display: block; font-weight: 700; color: var(--fg); }
/* a row of stats, used on About */
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 40px 36px; }
.statrow .stat { flex-direction: column; align-items: flex-start; gap: 16px; margin: 0; padding: 22px 0 0; border-bottom: 0; border-top: 2px solid var(--gold); }
@media (min-width: 1181px) {
  .proof { overflow-x: clip; }
  .stats > .stat { margin-right: calc((100vw - var(--wrap)) / -2 - var(--gutter)); }
}
@media (max-width: 900px) {
  .proof-grid { grid-template-columns: 1fr; gap: 56px; }
  .stats > .stat:nth-child(1) { margin-left: 24%; }
  .stats > .stat:nth-child(2) { margin-left: 12%; }
}
@media (max-width: 640px) {
  .stats { gap: 26px; }
  .stat { gap: 18px; }
  .stats > .stat:nth-child(1) { margin-left: 16%; }
  .stats > .stat:nth-child(2) { margin-left: 8%; }
  .statrow { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
}
/* five stats: 5 across, then 3, then 2 with the first stat at full width, so no stat is left alone */
.statrow--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 44px 32px; }
@media (max-width: 1080px) { .statrow--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .statrow--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 20px; }
  .statrow--5 .stat:first-child { grid-column: 1 / -1; }
}

/* ---------- 12. Home: framework wheel ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.wheel { max-width: 540px; margin-left: auto; width: 100%; }
.wheel-list { counter-reset: step; display: grid; gap: 0; }
.wheel-list li { counter-increment: step; position: relative; padding: 18px 0 18px 64px; border-top: 1px solid var(--rule); }
.wheel-list li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 16px; font: 800 30px/1 var(--display); color: var(--accent); }
.wheel-list h3 { font: 700 24px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.wheel-list p { margin-top: 4px; color: var(--fg-muted); font-size: 16px; }
.wheel.is-live .wheel-list { display: none; }
.wheel-stage svg { width: 100%; height: auto; overflow: visible; }
.wheel-seg { cursor: pointer; }
.wheel-seg .seg-fill { fill: var(--mist); transition: fill .4s var(--ease); }
.wheel-seg:hover .seg-fill { fill: var(--line); }
.wheel-seg[aria-selected="true"] .seg-fill, .wheel-seg[aria-selected="true"]:hover .seg-fill { fill: var(--deep); }
.wheel-seg .seg-rim { fill: none; stroke: var(--gold); stroke-width: 7; opacity: 0; transition: opacity .4s var(--ease); }
.wheel-seg text { font-family: var(--display); text-transform: uppercase; text-anchor: middle; fill: var(--ink); transition: fill .4s var(--ease); pointer-events: none; }
.wheel-seg .seg-n { font-weight: 600; font-size: 19px; letter-spacing: .08em; fill: var(--slate); }
.wheel-seg .seg-t { font-weight: 700; font-size: 27px; letter-spacing: .02em; }
.wheel-seg[aria-selected="true"] .seg-rim { opacity: 1; }
.wheel-seg[aria-selected="true"] .seg-t { fill: var(--white); }
.wheel-seg[aria-selected="true"] .seg-n { fill: var(--gold); }
.wheel-seg:focus-visible { outline: none; box-shadow: none; }
.wheel-seg:focus-visible .seg-fill { stroke: var(--gold); stroke-width: 4; }
.wheel.is-still .seg-fill, .wheel.is-still .seg-rim, .wheel.is-still text { transition: none; }
.wheel-hub circle { fill: var(--deep); }
.wheel-hub text { font-family: var(--display); text-transform: uppercase; text-anchor: middle; }
.wheel-hub .hub-n { font-weight: 800; font-size: 54px; fill: var(--gold); }
.wheel-hub .hub-t { font-weight: 700; font-size: 22px; letter-spacing: .04em; fill: var(--white); }
.wheel-panel { margin-top: 30px; padding: 22px 0 0 26px; min-height: 124px; border-top: 1px solid var(--gold); position: relative; }
.wheel-panel::before { content: ""; position: absolute; left: 0; top: 30px; width: 9px; height: 9px; border: solid var(--gold); border-width: 2.5px 2.5px 0 0; transform: rotate(45deg); }
.wheel-panel h3 { font: 700 26px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.wheel-panel h3 span { color: var(--accent); margin-right: 10px; }
.wheel-panel p { margin-top: 6px; color: var(--fg-muted); }
@media (max-width: 900px) {
  .split-grid { grid-template-columns: 1fr; gap: 52px; }
  .wheel { margin: 0 auto; max-width: 500px; }
}
/* the wheel text scales with the drawing, so on small phones it is set larger to stay over 14px */
@media (max-width: 420px) {
  .wheel-seg .seg-n { font-size: 24px; }
  .wheel-hub .hub-t { font-size: 24px; }
}

/* ---------- 13. Shared: split, framed photo, pillars ---------- */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; }
.split--flip > :first-child { order: 2; }
.split--top { align-items: start; }
.frame { position: relative; max-width: 500px; }
.frame img { width: 100%; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 84px), calc(100% - 84px) 100%, 0 100%); }
.frame::after { content: ""; position: absolute; right: 0; bottom: 0; width: 84px; height: 84px; background: var(--gold); clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 calc(100% - 3px), calc(100% - 3px) 0); }
.frame--cutout img { clip-path: none; }
.frame--cutout::after { display: none; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px 40px; }
.pillars li { padding-top: 22px; border-top: 1px solid var(--rule); position: relative; }
.pillars li::before { content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 3px; background: var(--gold); }
.pillars h3 { font: 700 26px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--fg); }
.pillars p { margin-top: 8px; color: var(--fg-muted); font-size: 16.5px; }
.pillars--4 { grid-template-columns: repeat(4, 1fr); }
.pillars--stack { grid-template-columns: 1fr; gap: 0; margin-top: 34px; counter-reset: pillar; }
.pillars--stack li { counter-increment: pillar; padding: 20px 0 20px 72px; }
.pillars--stack li::before { content: counter(pillar, decimal-leading-zero); top: 18px; width: auto; height: auto; background: none; font: 800 34px/1 var(--display); color: var(--accent); }
.pillars--stack li:last-child { border-bottom: 1px solid var(--rule); }
.pillars--stack + .tlink { margin-top: 30px; }
@media (max-width: 1080px) { .pillars--4 { grid-template-columns: repeat(2, 1fr); gap: 44px 40px; } }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split--flip > :first-child { order: 0; }
  .frame { max-width: 440px; }
}
@media (max-width: 640px) {
  .frame img { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), calc(100% - 60px) 100%, 0 100%); }
  .frame::after { width: 60px; height: 60px; }
  .pillars--stack li { padding-left: 58px; }
  .pillars--4 { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- 14. Home: services cards in the mist well ---------- */
/* white follows white here, so the shared gap is cut to about 120px */
.firm { padding-bottom: 56px; }
.services { padding-top: 64px; padding-bottom: 64px; }
.services-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.well { background: var(--mist); padding: 0 34px 78px; margin-top: 44px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: -44px; }
/* the offset uses top, not transform, so the scroll reveal cannot undo it */
.cards > :nth-child(even) { top: 44px; }
.card { position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 30px 28px 40px; background: var(--white); box-shadow: var(--shadow); color: var(--ink); transition: translate .25s var(--ease); }
.card::after { content: ""; position: absolute; right: 0; bottom: 0; width: 38px; height: 38px; background: var(--gold); clip-path: polygon(100% 0, 100% 100%, 0 100%); transition: width .25s var(--ease), height .25s var(--ease); }
.card:hover, .card:focus-visible { translate: 0 -4px; }
.card:hover::after, .card:focus-visible::after { width: 56px; height: 56px; }
/* the card shadow comes after the focus rule, so the ring is set again here, with the shadow kept */
.card:focus-visible { box-shadow: 0 0 0 4px var(--ring), var(--shadow); }
.card .icon { width: 64px; height: 64px; color: var(--navy); }
.card .icon * { vector-effect: non-scaling-stroke; }
.card h3 { margin-top: auto; padding-top: 24px; font: 700 28px/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.card p { margin-top: 10px; color: var(--slate); font-size: 15.5px; line-height: 1.5; text-wrap: pretty; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; }
@media (max-width: 1080px) {
  .services-grid { gap: 40px; }
  .well { padding: 0 22px 66px; }
  .cards { gap: 18px; }
  .card { padding: 26px 20px 38px; }
  .card h3 { font-size: 26px; }
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; gap: 72px; } }
@media (max-width: 640px) {
  .firm { padding-bottom: 40px; }
  .services { padding-top: 40px; padding-bottom: 40px; }
  .services-grid { gap: 56px; }
  .well { padding: 0 14px 48px; margin: 30px calc(var(--gutter) * -1 + 8px) 0; }
  .cards { gap: 14px; margin-top: -30px; }
  .cards > :nth-child(even) { top: 30px; }
  .card { min-height: 224px; padding: 20px 16px 34px; }
  .card .icon { width: 44px; height: 44px; }
  .card h3 { font-size: 24px; padding-top: 20px; overflow-wrap: break-word; }
  .card p { font-size: 14.5px; }
}
@media (max-width: 420px) { .card { padding-left: 12px; padding-right: 12px; } }

/* ---------- 15. Shared: departments built (hairline grid) ---------- */
.work { display: grid; grid-template-columns: 1fr 1fr; }
.work-cell { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px 28px; align-content: start; padding: 60px 0 60px 56px; }
.work-cell:nth-child(odd) { padding: 60px 56px 60px 0; border-right: 1px solid var(--rule); }
.work-cell:nth-child(n+3) { border-top: 1px solid var(--rule); }
.work-cell.work-head { display: flex; flex-direction: column; justify-content: center; }
.work-cell h3 { font: 700 clamp(26px, 2.6vw, 32px)/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em; max-width: 12em; color: var(--fg); }
.work-cell p:not(.eyebrow) { grid-column: 1; color: var(--fg-muted); font-size: 16.5px; max-width: 34ch; }
.work-cell .icon { grid-column: 2; grid-row: 1 / span 3; width: 96px; height: 96px; color: var(--navy); }
/* every icon draws at 1.75px, whatever size it is shown at */
.work-cell .icon *, .social svg * { vector-effect: non-scaling-stroke; }
.work-go { grid-column: 1; display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 44px; margin-top: 18px; background: var(--mist); color: var(--deep); transition: background-color .25s var(--ease); }
.work-go:hover { background: var(--gold); color: var(--on-gold); }
@media (max-width: 900px) {
  .work { grid-template-columns: 1fr; }
  .work-cell, .work-cell:nth-child(odd) { padding: 40px 0; border-right: 0; }
  .work-cell:nth-child(n+2) { border-top: 1px solid var(--rule); }
  .work-cell:first-child { padding-top: 0; }
  .work-cell:last-child { padding-bottom: 0; }
  .work-cell .icon { width: 72px; height: 72px; }
}

/* ---------- 16. Home: trusted by (logo marquee) ---------- */
.trusted { padding: 84px 0; }
.trusted-label { font: 700 clamp(26px, 2.6vw, 34px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.trusted-sub { margin-top: 10px; color: var(--slate); font-size: 14.5px; }
.marquee { margin-top: 44px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee-track { background: var(--paper); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px 64px; padding: 0 var(--gutter); }
/* logos are sized by optical weight: --h is the height and --o the resting opacity, set on the image */
.marquee { --k: 1; }
.marquee img { flex: none; width: auto; height: calc(var(--h, 46px) * var(--k)); max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: var(--o, .78); mix-blend-mode: multiply; transition: filter .25s var(--ease), opacity .25s var(--ease); }
.marquee img.is-sq { --h: 66px; }
.marquee img:hover { filter: none; opacity: 1; }
.marquee.is-live .marquee-track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding: 0; gap: 0; animation: drift 80s linear infinite; }
.marquee.is-live img { margin-right: 72px; }
.marquee.is-live:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
/* the pause control. app.js shows it only when the strip drifts */
.marquee-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; padding: 0 10px; font: 600 14.5px/1.2 var(--text); color: var(--slate); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color .25s var(--ease); }
.marquee-toggle:hover { color: var(--ink); }
/* the control adds a row, so the strip moves up to keep the band the same height as far as it can */
.trusted .wrap:has(.marquee-toggle:not([hidden])) + .marquee { margin-top: 22px; }
@keyframes drift { to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .trusted { padding: 60px 0; }
  .marquee { --k: .82; }
  .marquee.is-live img { margin-right: 52px; }
}

/* ---------- 17. Shared: booking band ---------- */
.bookband { background: linear-gradient(180deg, var(--navy) 0%, var(--deep) 62%); }
.bookband-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
.bookband-copy { position: sticky; top: 110px; }
@media (max-width: 900px) {
  .bookband-grid { grid-template-columns: 1fr; gap: 44px; }
  .bookband-copy { position: static; }
}

/* ---------- 18. Shared: social ---------- */
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--deep); color: var(--white); transition: background-color .25s var(--ease), color .25s var(--ease); }
.social a:hover { background: var(--gold); color: var(--on-gold); }
.social svg { width: 25px; height: 25px; }
.social--sm a { width: 46px; height: 46px; background: var(--navy); border: 1px solid var(--navy-hi); }
.social--sm svg { width: 20px; height: 20px; }
.on-dark .social a { background: var(--navy); border: 1px solid var(--navy-hi); }
.on-dark .social a:hover { background: var(--gold); border-color: var(--gold); }
.follow .h2 { margin-bottom: 36px; }

/* ---------- 19. Shared: closing banner ---------- */
.closing { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, var(--navy) 0%, var(--deep) 70%); --cut: 96px; --cut-sw: 2.5; --cut-x: 34%; }
.closing::before { content: ""; position: absolute; top: -1px; left: 0; z-index: 2; width: calc(var(--cut-x) + var(--cut)); height: calc(var(--cut) + 1px); background: var(--seam); clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); }
.closing .cutline { top: 0; bottom: auto; }
.closing-inner { position: relative; display: flex; align-items: center; min-height: 680px; padding-top: calc(var(--cut) + 84px); padding-bottom: 110px; }
.closing-copy { position: relative; z-index: 3; width: 56%; }
/* the figure is set larger than the band, which crops it at the upper thigh */
.closing-figure { position: absolute; right: 3%; top: 28px; bottom: auto; z-index: 1; height: 128%; aspect-ratio: 900 / 1817; }
.closing-figure img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.closing--paper { --seam: var(--paper); }
.closing--mist { --seam: var(--mist); }
.closing--flat::before, .closing--flat .cutline { display: none; }
.closing--flat .closing-inner { padding-top: 110px; }
/* the copy column is narrow here, so the figure is set a little smaller and sits on the edge */
@media (max-width: 1080px) { .closing-figure { right: 0; height: 112%; } }
@media (max-width: 900px) {
  .closing { --cut: 64px; --cut-sw: 3.75; --cut-x: 40%; }
  .closing-inner { min-height: 560px; padding-bottom: 84px; }
  .closing-copy { width: 60%; }
  .closing-figure { right: 0; top: auto; bottom: 0; height: 80%; }
}
@media (max-width: 640px) {
  .closing { --cut: 44px; --cut-sw: 5.45; --cut-x: 46%; }
  .closing-inner { display: block; min-height: 0; padding-top: calc(var(--cut) + 56px); padding-bottom: 0; }
  .closing-copy { width: auto; }
  .closing-copy .btn { width: 100%; }
  .closing-figure { position: relative; right: auto; top: auto; height: 128vw; max-height: 560px; aspect-ratio: auto; margin: 40px calc(var(--gutter) * -1) 0; overflow: hidden; }
  .closing-figure img { position: relative; left: 50%; width: min(78vw, 340px); max-width: none; height: auto; transform: translateX(-50%); }
}

/* ---------- 20. Shared: inner page hero ---------- */
.ihero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); --cut: 84px; --cut-sw: 2.86; }
.ihero .hero-bg::after { background: linear-gradient(90deg, rgba(14,16,34,.95) 0%, rgba(14,16,34,.82) 50%, rgba(14,16,34,.5) 100%), linear-gradient(180deg, rgba(14,16,34,.7) 0%, rgba(14,16,34,0) 40%); }
.ihero-inner { position: relative; display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; min-height: 440px; padding-top: calc(var(--nav-h) + 64px); padding-bottom: calc(var(--cut) + 48px); }
.ihero--media .ihero-inner { grid-template-columns: 6fr 5fr; }
/* About, Services and Contact: the eyebrow starts at the same height, so the title does not jump between pages */
@media (min-width: 901px) {
  .ihero--media .ihero-inner { align-items: start; padding-top: calc(var(--nav-h) + 80px); }
}
.ihero-copy { position: relative; z-index: 4; max-width: 720px; }
.ihero-copy .lead { color: var(--on-dark); }
.ihero-quote { margin-top: 26px; max-width: 30em; font: italic 500 clamp(20px, 2vw, 26px)/1.4 var(--quote); color: var(--on-dark); }
.ihero-media { position: relative; z-index: 4; align-self: stretch; }
.ihero-figure { position: absolute; right: 0; bottom: 0; z-index: 1; height: min(86%, 640px); aspect-ratio: 1100 / 1790; align-self: end; }
.ihero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ihero--media.ihero--figure .ihero-inner { min-height: 560px; }
.ihero--plain .cut, .ihero--plain .cutline { display: none; }
.ihero--plain .ihero-inner { padding-bottom: 72px; min-height: 360px; }
@media (max-width: 900px) {
  .ihero { --cut: 60px; --cut-sw: 4; }
  .ihero-inner, .ihero--media .ihero-inner { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding-top: calc(var(--nav-h) + 44px); }
  .ihero--media.ihero--figure .ihero-inner { min-height: 0; padding-bottom: 0; }
  .ihero-figure { position: relative; height: 78vw; max-height: 440px; aspect-ratio: auto; overflow: hidden; margin: 0 calc(var(--gutter) * -1); }
  .ihero-figure img { position: relative; left: 50%; width: min(96vw, 480px); max-width: none; height: auto; transform: translateX(-50%); }
  .ihero--figure .cut, .ihero--figure .cutline { display: none; }
}

/* ---------- 21. Shared: bullets, bio ---------- */
.bullets { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 80px; }
/* the columns start on the same left edge as the text inside the .bio block */
.wrap.bullets { padding-left: calc(var(--gutter) + 64px); padding-right: calc(var(--gutter) + 64px); }
.bullets h2, .bullets h3 { font: 700 clamp(28px, 3vw, 36px)/1 var(--display); text-transform: uppercase; color: var(--fg); margin-bottom: 24px; }
.bullets li { font-size: 17.5px; color: var(--fg); }
.bio { display: grid; grid-template-columns: 6fr 4fr; gap: 40px; background: var(--mist); padding: 72px 40px 0 64px; overflow: hidden; }
.bio-copy { padding-bottom: 72px; }
.bio-copy p:not(.eyebrow) { margin-top: 18px; color: var(--ink); max-width: 58ch; }
.bio-copy .h2 + p { font-weight: 700; margin-top: 28px; }
.bio-figure { align-self: end; }
/* the cutout is set larger than its column. The empty right side of the photo runs off the block, which clips it */
.bio-figure img { width: 132%; max-width: none; margin: 0 0 -10px; }
@media (max-width: 900px) {
  .bullets { grid-template-columns: 1fr; }
  .wrap.bullets { padding-left: calc(var(--gutter) + 32px); padding-right: calc(var(--gutter) + 32px); }
  .bio { grid-template-columns: 1fr; gap: 0; padding: 56px 32px 0; }
  .bio-copy { padding-bottom: 40px; }
  .bio-figure img { width: 100%; max-width: 360px; margin: 0 auto -6px; }
}
@media (max-width: 640px) {
  .wrap.bullets { padding-left: var(--gutter); padding-right: var(--gutter); }
  .bio { margin: 0 calc(var(--gutter) * -1); padding: 48px var(--gutter) 0; }
  .bio-figure img { max-width: min(78vw, 320px); }
}

/* ---------- 22. Shared: service block, duo, steps, ladder ---------- */
/* the page keeps 96px clear at the top (scroll-padding-top on html). This pulls a service block up
   by the difference, so an anchor jump lands the block edge right under the header */
.svc { scroll-margin-top: calc(var(--nav-h) - 96px); }
.svc + .svc { border-top: 1px solid var(--rule); }
.svc-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: start; }
.svc--flip .svc-head > :first-child { order: 2; }
.svc-body { margin-top: 64px; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.duo-panel { position: relative; padding: 44px 40px 52px; background: var(--paper); border: 1px solid var(--rule); }
.section--paper .duo-panel:not(.on-dark), .section--mist .duo-panel:not(.on-dark) { background: var(--white); }
.duo-panel.on-dark { background: var(--deep); border-color: var(--deep); }
.duo-panel::after { content: ""; position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; background: var(--gold); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.duo-panel .eyebrow { margin-bottom: 16px; }
.duo-panel p:not(.eyebrow) { margin-top: 14px; color: var(--fg-muted); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 36px; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps li { counter-increment: step; position: relative; padding-top: 28px; border-top: 1px solid var(--rule); }
.steps li::after { content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 3px; background: var(--gold); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; font: 800 clamp(48px, 5vw, 64px)/.9 var(--display); color: var(--accent); }
.steps h3 { font: 700 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--fg); }
.steps p { margin-top: 8px; color: var(--fg-muted); font-size: 16px; }

.ladder { counter-reset: rung; display: grid; gap: 12px; }
.ladder li { counter-increment: rung; position: relative; display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 0 8px; width: 68%; padding: 20px 28px 20px 0; background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--gold); }
.ladder li::before { content: counter(rung, decimal-leading-zero); grid-row: 1 / span 2; justify-self: center; font: 800 40px/1 var(--display); color: var(--accent); }
.ladder li:nth-child(2) { margin-left: 8%; }
.ladder li:nth-child(3) { margin-left: 16%; }
.ladder li:nth-child(4) { margin-left: 24%; }
.ladder li:nth-child(5) { margin-left: 32%; }
.ladder h3 { font: 700 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.ladder p { grid-column: 2; margin-top: 4px; color: var(--slate); font-size: 16px; }
.on-dark .ladder li { background: var(--navy); border-color: var(--navy-hi); border-left-color: var(--gold); }
.on-dark .ladder h3 { color: var(--on-dark); }
.on-dark .ladder p { color: var(--on-dark-muted); }
@media (max-width: 900px) {
  .svc-head { grid-template-columns: 1fr; }
  .svc--flip .svc-head > :first-child { order: 0; }
  .svc-body { margin-top: 48px; }
  .duo { grid-template-columns: 1fr; }
  .steps, .steps--3 { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  /* three steps stay on one row, so the third is not left alone */
  .steps--3 { grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
  .ladder li { width: 84%; }
  .ladder li:nth-child(2) { margin-left: 4%; }
  .ladder li:nth-child(3) { margin-left: 8%; }
  .ladder li:nth-child(4) { margin-left: 12%; }
  .ladder li:nth-child(5) { margin-left: 16%; }
}
@media (max-width: 640px) {
  .duo-panel { padding: 32px 24px 44px; }
  .steps, .steps--3 { grid-template-columns: 1fr; gap: 32px; }
  .ladder li, .ladder li:nth-child(n) { width: 100%; margin-left: 0; grid-template-columns: 64px 1fr; padding-right: 18px; }
}

/* ---------- 23. Shared: FAQ ---------- */
.faq { max-width: 860px; border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary { position: relative; display: flex; align-items: center; min-height: 72px; padding: 18px 60px 18px 0; font: 700 clamp(22px, 2.2vw, 26px)/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--fg); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 20px; height: 2.5px; margin-top: -1px; background: var(--accent); transition: transform .25s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--accent); }
.faq details > :not(summary) { padding: 0 60px 26px 0; color: var(--fg-muted); max-width: 66ch; }

/* ---------- 24. Shared: legal text ---------- */
.legal { max-width: 760px; margin: 0 auto; color: var(--ink); overflow-wrap: break-word; }
.legal h2 { font: 700 clamp(28px, 3vw, 36px)/1.05 var(--display); text-transform: uppercase; margin: 56px 0 16px; }
.legal h3 { font: 700 24px/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 44px 0 12px; }
.legal h4 { font: 700 17px/1.4 var(--text); margin: 28px 0 8px; }
.legal > :first-child { margin-top: 0; }
.legal p { margin-top: 14px; }
.legal ul, .legal ol { margin: 14px 0 0; padding-left: 24px; }
.legal ul { list-style: square; }
.legal ol { list-style: decimal; }
.legal li { margin-top: 8px; padding-left: 4px; }
.legal li::marker { color: var(--gold-text); }
.legal a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal a:hover { color: var(--gold-text); }
.legal strong { font-weight: 700; }
/* the pasted text wraps each list item in a paragraph, wraps each heading in strong, and uses em for a note */
.legal li > p { margin-top: 0; }
.legal em { font-style: italic; color: inherit; }
.legal h3 > strong, .legal h4 > strong { font-weight: inherit; }

/* ---------- 25. Motion ---------- */
.reveal.is-armed { opacity: 0; transform: translateY(16px); }
.reveal.is-armed.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.w { display: inline-block; }
.is-staggering .w { opacity: 0; transform: translateY(18px); }
.is-staggering.in .w { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 75ms + var(--wait, 0ms)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.is-armed, .is-staggering .w { opacity: 1; transform: none; }
  .cutline.is-armed line { stroke-dashoffset: 0; }
  .card:hover, .card:focus-visible { translate: none; }
  a:hover > .arr, a:focus-visible > .arr, button:hover > .arr { transform: none; }
}

@media print {
  .nav, .booktab, .hero-lights, .book { display: none !important; }
  .reveal.is-armed, .is-staggering .w { opacity: 1 !important; transform: none !important; }
}
