/* ==========================================================================
   Risk Row Global — site styles

   Everything the site needs. No framework, no build step.

   Type and spacing are proportional to the 1920px Figma frame: a value drawn
   at N px is written clamp(floor, N/1920*100vw, Npx), so the layout matches
   the design at 1920px, scales down smoothly, and never drops below a
   readable floor.

   Layout is mobile-first. The desktop layout starts at 1024px.

   Contents
     1.  Reset & tokens
     2.  Layout shell
     3.  Type scale
     4.  Brand lockup
     5.  Header & navigation
     6.  Buttons
     7.  Cards & rules
     8.  Home
     9.  About
     10. Services
     11. Global Reach
     12. Contact & forms
     13. CTA band
     14. Footer
     15. Motion & accessibility
     16. Cookie consent
   ========================================================================== */


/* 1. Reset & tokens ======================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

html, body, h1, h2, h3, p, ul, ol, li, figure, form { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:root {
  --shell: 1656px;      /* 1920 frame, content spans 132 → 1788 */
  --gutter: 6.875vw;    /* 132 / 1920 */
  --header-h: clamp(72px, 9.0625vw, 174px);   /* 174px drawn */

  /* palette */
  --ink: #000;
  --paper: #fff;
  --accent: #00C9FB;               /* hero eyebrow */
  --accent-2: #00FBF3;             /* service lead-in */
  --muted: #B1B1B1;                /* section sub-headings */
  --dim: #838383;                  /* inactive nav, footer text */
  --faint: #7B7B7B;                /* placeholders */
  --hair: rgba(255, 255, 255, 0.41);   /* card borders */
  --hair-soft: rgba(255, 255, 255, 0.1);

  /* rhythm */
  --section: clamp(50px, 7vw, 130px);
  --section-lg: clamp(60px, 9vw, 170px);
  --gap-lg: clamp(36px, 5vw, 90px);
  --gap-md: clamp(20px, 2.3vw, 52px);
  --gap-sm: clamp(14px, 1.5vw, 28px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 640px) {
  :root { --gutter: 22px; }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h); /* keep anchors clear of the fixed header */
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: Poppins, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Grid items default to min-width:auto, so a long word or a wide measure can
   push a column past its container. Opt every grid child into shrinking. */
[class*='grid'] > * { min-width: 0; }


/* 2. Layout shell ========================================================= */

.shell {
  width: min(100% - 2 * var(--gutter), var(--shell));
  margin-inline: auto;
}

.section    { padding-block: var(--section); }
.section-lg { padding-block: var(--section-lg); }

/* First section on a page has to clear the fixed header. */
.section-top { padding-top: calc(var(--header-h) + clamp(44px, 12.55vw, 241px)); }


/* 3. Type scale =========================================================== */

.t-display { font-size: clamp(2.25rem, 3.333vw, 4rem);      font-weight: 300; line-height: 1.15; }
.t-huge    { font-size: clamp(1.875rem, 2.76vw, 3.3125rem); font-weight: 300; line-height: 1.22; }
.t-h2      { font-size: clamp(1.375rem, 1.875vw, 2.25rem);  font-weight: 300; line-height: 1.28; }
.t-sub     { font-size: clamp(1.125rem, 1.667vw, 2rem);     font-weight: 400; line-height: 1.35; }
.t-eyebrow { font-size: clamp(1rem, 1.458vw, 1.75rem);      font-weight: 400; line-height: 1.4; }
.t-lead    { font-size: clamp(1.0625rem, 1.25vw, 1.5rem);   font-weight: 300; line-height: 1.55; }
.t-body    { font-size: clamp(0.9375rem, 0.9375vw, 1.125rem); font-weight: 300; line-height: 1.65; }
.t-small   { font-size: clamp(0.8125rem, 0.85vw, 0.9375rem); font-weight: 300; }

.t-muted { color: var(--muted); }
.t-dim   { color: var(--dim); }
.t-soft  { color: rgba(255, 255, 255, 0.9); }

/* Justified body copy, as drawn. Figma does not hyphenate, so neither do we —
   hyphens:auto produced breaks like "em-power" that are not in the design.
   Ragged-right on narrow screens, where justification opens rivers. */
.t-justify { text-align: justify; hyphens: none; }
@media (max-width: 900px) {
  .t-justify { text-align: left; }
}

/* Measures.
   Each is the Figma-drawn width divided by that block's drawn font size, so
   the value is in em and the characters-per-line match the design at every
   viewport. Capped at 100% so they never widen the container on a phone.
   e.g. the hero h1 is drawn 890px wide at 64px -> 890/64 = 13.9em. */
.measure-eyebrow  { max-width: min(100%, 26.04em); }
.measure-hero     { max-width: min(100%, 13.91em); }
.measure-body     { max-width: min(100%, 39.67em); }
.measure-stat     { max-width: min(100%,  7.56em); }
.measure-sub      { max-width: min(100%, 18.41em); }
.measure-sub-wide { max-width: min(100%, 21.53em); }
.measure-huge     { max-width: min(100%, 17.19em); }
.measure-cta      { max-width: min(100%, 15.66em); }
.measure-h2       { max-width: min(100%, 10.28em); }
.measure-h2-wide  { max-width: min(100%, 12.69em); }
.measure-pillar   { max-width: min(100%, 22.89em); }
.measure-feature  { max-width: min(100%, 12.36em); }
.measure-card     { max-width: min(100%, 34.11em); }
.measure-why      { max-width: min(100%, 28.78em); }
.measure-svc      { max-width: min(100%, 41.67em); }
.measure-svc-h2   { max-width: min(100%, 26.92em); }


/* 4. Brand lockup ========================================================= */

.lockup {
  display: inline-flex;
  align-items: center;
  gap: clamp(9px, 0.73vw, 14px);
}
.lockup__mark {
  width: clamp(34px, 2.5vw, 48px);
  height: auto;
  flex: none;
}
.lockup__text { display: flex; flex-direction: column; }
.lockup__name {
  font-weight: 600;
  font-size: clamp(0.95rem, 1.15vw, 1.375rem);
  letter-spacing: 0.005em;
  line-height: 1;
  white-space: nowrap;
}
.lockup__tag {
  font-weight: 300;
  /* 10.63px against a 31.53px name — the ratio from the supplied logo file */
  font-size: clamp(0.3rem, 0.388vw, 0.465rem);
  letter-spacing: 0.28em;
  line-height: 1;
  margin-top: 0.42em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
}


/* 5. Header & navigation ================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.92);
  border-bottom-color: var(--hair-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav { display: none; }
@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: clamp(26px, 3.1vw, 60px);
  }
}

.nav-link {
  position: relative;
  color: var(--dim);
  font-size: clamp(0.875rem, 0.9375vw, 1.125rem);
  font-weight: 300;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current='page'] { color: var(--paper); font-weight: 500; }
.nav-link[aria-current='page']::after { transform: scaleX(1); }

/* Contact pill */
.pill {
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 38px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  font-size: clamp(0.875rem, 0.9375vw, 1.125rem);
  padding: 0 clamp(18px, 1.5vw, 28px);
  min-width: clamp(150px, 10.573vw, 203px);   /* 203px drawn */
  height: clamp(42px, 3.02vw, 58px);          /* 58px drawn  */
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease);
}
.pill:hover { background: var(--accent); transform: translateY(-2px); }
@media (min-width: 1024px) {
  .pill { display: inline-flex; }
}

/* Hamburger */
.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-right: -8px;
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}
.nav-toggle__bars {
  position: relative;
  width: 26px;
  height: 2px;
  background: var(--paper);
  transition: background 0.2s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.35s var(--ease);
}
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after  { top: 8px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after  { transform: translateY(-8px) rotate(-45deg); }

/* Full-screen mobile menu */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease), visibility 0.4s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav__list { display: flex; flex-direction: column; }
.mobile-nav a {
  font-size: clamp(1.75rem, 8vw, 2.75rem);
  font-weight: 300;
  color: var(--dim);
  padding: 0.35em var(--gutter);
  transition: color 0.25s ease, padding-left 0.35s var(--ease);
}
.mobile-nav a:hover,
.mobile-nav a[aria-current='page'] { color: var(--paper); }
.mobile-nav a:hover { padding-left: calc(var(--gutter) + 12px); }

@media (min-width: 1024px) {
  .mobile-nav { display: none; }
}

body.nav-open { overflow: hidden; }


/* 6. Buttons ============================================================== */

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  border: 1px solid var(--paper);
  color: var(--paper);
  font-weight: 300;
  font-size: clamp(0.875rem, 1.042vw, 1.25rem);
  min-width: clamp(170px, 12.14vw, 233px);
  height: clamp(46px, 3.02vw, 58px);
  padding: 0 clamp(18px, 1.5vw, 28px);
  overflow: hidden;
  text-align: center;
  transition: color 0.35s var(--ease);
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.btn-outline:hover { color: var(--ink); }
.btn-outline:hover::before { transform: scaleX(1); }

.btn-row { margin-top: clamp(22px, 2.4vw, 44px); }

/* The hero CTA is drawn slightly smaller than the standard button. */
.btn-outline--sm {
  min-width: clamp(150px, 10.26vw, 197px);
  height: clamp(42px, 2.656vw, 51px);
}


/* 7. Cards & rules ======================================================== */

.card {
  border: 1px solid var(--hair);
  padding: clamp(22px, 2.2vw, 42px);
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s var(--ease);
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.025);
  transform: translateY(-4px);
}

/* Two columns either side of a centre rule. Rule disappears once stacked. */
.split {
  display: grid;
  gap: clamp(48px, 6vw, 110px) clamp(40px, 6.5vw, 120px);
}
@media (min-width: 1024px) {
  .split {
    position: relative;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .split::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.55);
  }
  .split__left  { text-align: right; padding-right: clamp(20px, 3vw, 60px); }
  .split__right { padding-left: clamp(20px, 3vw, 60px); }
  /* right-aligned columns need their measures pushed to the right edge */
  .split__left .measure-tight,
  .split__left .measure-title,
  .split__left .measure-wide,
  .split__left .t-sub,
  .split__left .t-huge { margin-left: auto; }
}


/* 8. Home ================================================================= */

.hero {
  /* The eyebrow is drawn 202px below the header band. The grid centres the
     copy against the taller monogram column, which pushes it down ~70px, so
     the padding is set to land the eyebrow on the drawn position. */
  padding-top: calc(var(--header-h) + clamp(40px, 6.93vw, 133px));
  padding-bottom: clamp(60px, 8vw, 140px);
}
.hero__grid {
  display: grid;
  gap: clamp(40px, 5vw, 90px);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); }
}

.hero__title { margin-top: clamp(10px, 1vw, 18px); }
.hero__body  { margin-top: clamp(22px, 2.4vw, 44px); }
.hero__cta   { margin-top: clamp(26px, 3vw, 56px); }

/* The monogram leads on mobile, sits right on desktop. */
.hero__art { order: -1; }
.hero__art img { width: min(78vw, 638px); height: auto; margin-inline: auto; }
@media (min-width: 1024px) {
  .hero__art { order: 0; }
  .hero__art img { margin-right: 0; margin-left: auto; }
}

/* Row 2 of the split mirrors row 1. */
@media (min-width: 1024px) {
  .split__left--second  { grid-row: 2; grid-column: 1; }
  .split__right--second { grid-row: 2; grid-column: 2; }
}


/* 9. About ================================================================ */

.about-intro {
  display: grid;
  gap: var(--gap-lg);
}
@media (min-width: 1024px) {
  .about-intro { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr); }
  .about-intro__head { padding-top: clamp(0px, 2vw, 40px); }
}
.about-intro__head-sub { margin-top: clamp(14px, 1.6vw, 30px); }
.about-intro__copy { align-self: start; }
.about-intro__copy p + p { margin-top: clamp(14px, 1.4vw, 26px); }

/* Mission / Vision / Values */
.pillars {
  display: grid;
  gap: var(--gap-md);
}
@media (min-width: 640px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:last-child { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar:last-child { grid-column: auto; }
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(38px, 4vw, 72px) clamp(22px, 2.2vw, 44px);
}
/* Fixed-height icon bay so the headings below sit on one line. */
.pillar__icon {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(64px, 6.4vw, 123px);
}
.pillar__icon img { height: auto; }
.pillar__icon--mission img { width: clamp(56px, 5.4vw, 104px); }
.pillar__icon--vision  img { width: clamp(50px, 4.9vw, 94px); }
.pillar__icon--values  img { width: clamp(64px, 6.4vw, 123px); }
.pillar h2 { margin-top: clamp(18px, 2vw, 38px); }
.pillar p  { margin-top: clamp(12px, 1.3vw, 26px); color: rgba(255, 255, 255, 0.85); }

/* The two large feature cards */
.feature-cards {
  display: grid;
  gap: clamp(20px, 2.6vw, 52px);
}
@media (min-width: 768px) {
  .feature-cards { grid-template-columns: 1fr 1fr; }
}
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(44px, 5vw, 96px) clamp(24px, 3vw, 60px);
}
.feature-card__icon { width: clamp(64px, 5.2vw, 100px); height: auto; }
.feature-card h2 { margin-top: clamp(24px, 3vw, 60px); }
/* Push the CTA to the floor so both cards' buttons line up. */
.feature-card__cta { margin-top: auto; padding-top: clamp(26px, 3.2vw, 60px); }


/* A section with artwork washed in behind the copy at low opacity.
   The image sits on a pseudo-element so the text keeps full contrast. */
.section--washed { position: relative; isolation: isolate; }
.section--washed::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: var(--wash-opacity, 0.22);
  pointer-events: none;
}
/* Image paths live here, not in a custom property: a url() inside a custom
   property resolves against this stylesheet's location, not the page's,
   which fails silently. */
.section--washed.wash--data::before  { background-image: url('../img/about-data.jpg'); }
.section--washed.wash--globe::before { background-image: url('../img/globe.jpg'); }
/* Optional: desaturate a wash to match the rest of the site's monochrome. */
.section--washed.wash--mono::before { filter: grayscale(1); }
/* Fade the wash out at the bottom so it doesn't end on a hard line. */
.section--washed::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, #000 100%);
  pointer-events: none;
}


/* Wide image under an intro block. Both supplied photographs are already
   monochrome on black, so they sit on the page without further treatment.
   --band  crops a wide scene to a cinematic strip
   --art   keeps centred artwork whole, just holds it back from full width */
.intro-figure { margin-top: clamp(34px, 4.5vw, 86px); }
.intro-figure img { width: 100%; height: auto; }

.intro-figure--band img {
  height: clamp(240px, 32vw, 600px);
  object-fit: cover;
}
.intro-figure--art img {
  max-width: min(100%, 1080px);
  margin-inline: auto;
}


/* 10. Services ============================================================ */

.page-title {
  text-align: center;
  padding-top: calc(var(--header-h) + clamp(40px, 5.94vw, 114px));
  padding-bottom: clamp(28px, 3.5vw, 66px);
}

.svc {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: clamp(540px, 46vw, 886px);
  padding-block: clamp(56px, 6vw, 110px);
}
.svc__inner { position: relative; z-index: 1; }
.svc__grid { display: grid; }
@media (min-width: 1024px) {
  /* The copy column is drawn 969px wide in the 1920 frame — 58.5% of the
     1656px shell. That is the width the headings are set to, so they hold one
     line as drawn; the em measures inside govern the rest. */
  .svc__copy { max-width: 58.5%; }
  .svc--photo-left .svc__copy { margin-left: auto; text-align: right; }
  .svc--photo-left .svc__copy .measure-svc,
  .svc--photo-left .svc__copy .measure-svc-h2 { margin-left: auto; }
}

/* The Figma art masks each photo with an angled inner edge and fades it to
   black top and bottom. Reproduced with gradients so it stays fluid. */
.svc-media {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
}
.svc--photo-right .svc-media { right: 0; left: 36%; }
.svc--photo-left  .svc-media { left: 0; right: 36%; }
.svc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Every service photograph is desaturated in the design. */
  filter: grayscale(1);
}
/* Two of the photographs are mirrored in the design so the subject faces into
   the copy. In Figma this reads as scaleY(-1) + rotate(180deg), which composes
   to a plain horizontal flip. */
.svc-media--flip img { transform: scaleX(-1); }

/* Fade towards the edge where the copy sits.
   The mask sits on the container, not the image: a mask is resolved in the
   element's own coordinate space, so putting it on the image would mirror the
   fade along with scaleX(-1) on the flipped bands and leave a hard cut. */
.svc--photo-right .svc-media {
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%);
  mask-image: linear-gradient(to left, #000 55%, transparent 100%);
}
.svc--photo-left .svc-media {
  -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%);
  mask-image: linear-gradient(to right, #000 55%, transparent 100%);
}
.svc-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    #000 0%, rgba(0, 0, 0, 0) 36%, rgba(0, 0, 0, 0) 64%, #000 100%);
}

@media (max-width: 1023px) {
  /* stacked: the photo sits behind the copy, so full-bleed it and darken hard */
  .svc--photo-right .svc-media,
  .svc--photo-left  .svc-media { left: 0; right: 0; }
  .svc--photo-right .svc-media,
  .svc--photo-left  .svc-media { -webkit-mask-image: none; mask-image: none; }
  .svc-media::after {
    background: linear-gradient(to bottom,
      #000 0%, rgba(0, 0, 0, 0.82) 30%, rgba(0, 0, 0, 0.88) 70%, #000 100%);
  }
}

.svc__lead {
  color: var(--accent-2);
  font-style: italic;
  font-weight: 300;
  margin-top: clamp(16px, 1.8vw, 34px);
}
.svc__body { margin-top: clamp(14px, 1.4vw, 28px); }
.svc__cta  { margin-top: clamp(24px, 2.8vw, 52px); }
.svc__note { color: rgba(255, 255, 255, 0.7); }


/* 11. Global Reach ======================================================== */

.reach-intro {
  display: grid;
  gap: var(--gap-lg);
  align-items: start;
}
@media (min-width: 1024px) {
  .reach-intro { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr); }
}
.reach-intro__sub { margin-top: clamp(14px, 1.6vw, 30px); }
.reach-intro__copy { align-self: start; }

.why__list { margin-top: clamp(24px, 3vw, 54px); }
.why__item {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.6vw, 30px);
}
.why__item + .why__item { margin-top: clamp(24px, 2.6vw, 48px); }
.why__item h3 {
  font-weight: 500;
  font-size: clamp(1.0625rem, 1.25vw, 1.5rem);
}
.why__item p { margin-top: 6px; color: rgba(255, 255, 255, 0.85); }

.numeral {
  font-family: Roboto, Poppins, sans-serif;
  font-weight: 700;
  font-size: clamp(2.75rem, 5vw, 6rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.21);
  flex: none;
}

/* The numbered list is always left-aligned, even inside a right-aligned col. */
.split__right .why__item { text-align: left; }


/* 12. Contact & forms ===================================================== */

.contact__grid {
  display: grid;
  gap: clamp(44px, 6vw, 110px);
  align-items: center;
}
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.52fr); }
}
.contact__art { order: -1; }
.contact__art img { width: min(62vw, 412px); height: auto; margin-inline: auto; }
@media (min-width: 1024px) {
  .contact__art { order: 0; }
  .contact__art img { margin-right: 0; margin-left: auto; }
}

.contact__sub { margin-top: clamp(12px, 1.4vw, 26px); }
.contact__form { margin-top: clamp(28px, 3.4vw, 62px); }
.contact__note { margin-top: clamp(22px, 2.4vw, 44px); }
.contact__note a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact__note a:hover { color: var(--accent); }

.form-row { display: grid; gap: var(--gap-sm); }
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-row + .form-row,
.form-row + .form-field { margin-top: var(--gap-sm); }
/* full-width row even at the two-column breakpoint */
@media (min-width: 640px) {
  .form-row--single { grid-template-columns: 1fr; }
}

/* Success dialog — shown over the page, not a browser alert */
.dialog {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.dialog.is-open { opacity: 1; visibility: visible; }

.dialog__panel {
  position: relative;
  width: 100%;
  max-width: 620px;
  /* a short viewport — a phone in landscape — must still reach the button */
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #0a0a0a;
  border: 1px solid var(--hair);
  padding: clamp(34px, 4vw, 64px) clamp(24px, 3vw, 56px);
  text-align: center;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.4s var(--ease);
}
.dialog.is-open .dialog__panel { transform: none; }

.dialog__close {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 44px;              /* 44px minimum touch target */
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
}
.dialog__close:hover { color: var(--paper); }

.dialog__mark {
  width: clamp(38px, 3vw, 54px);
  height: auto;
  margin-inline: auto;
}
.dialog__title { margin-top: clamp(16px, 1.8vw, 30px); }
.dialog__body {
  margin: clamp(12px, 1.3vw, 22px) auto 0;
  max-width: min(100%, 34em);
}
.dialog__body + .dialog__body { margin-top: clamp(10px, 1vw, 18px); }
.dialog__panel .btn-outline { margin-top: clamp(24px, 2.8vw, 44px); }
.dialog__panel:focus { outline: none; }

body.dialog-open { overflow: hidden; }

.field {
  width: 100%;
  background: transparent;
  border: 1px solid var(--hair);
  color: var(--paper);
  font-family: inherit;
  font-weight: 300;
  font-size: clamp(0.9375rem, 1.042vw, 1.25rem);
  padding: 0 clamp(16px, 1.25vw, 24px);
  height: clamp(50px, 3.02vw, 58px);
  transition: border-color 0.3s ease, background 0.3s ease;
}
textarea.field {
  height: auto;
  min-height: clamp(180px, 15.3vw, 294px);
  padding-top: clamp(14px, 1vw, 20px);
  padding-bottom: clamp(14px, 1vw, 20px);
  resize: vertical;
  line-height: 1.6;
}
.field::placeholder { color: var(--faint); }
.field:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
}
.field:user-invalid { border-color: #ff6b6b; }

.form-actions {
  margin-top: clamp(20px, 2.2vw, 42px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
@media (min-width: 640px) {
  .form-actions { justify-content: flex-end; }
  .form-actions__status { margin-right: auto; }
}


/* 13. CTA band ============================================================ */

.cta-band {
  border: 1px solid var(--hair-soft);
  background: var(--ink);
  text-align: center;
  padding: clamp(48px, 6vw, 110px) clamp(24px, 4vw, 80px);
}
.cta-band__mark {
  width: clamp(40px, 3vw, 57px);
  height: auto;
  margin-inline: auto;
  opacity: 0.9;
}
.cta-band h2 {
  margin: clamp(20px, 2.4vw, 44px) auto 0;
  max-width: min(100%, 15.66em);   /* 1002px drawn at 64px */
}
.cta-band .btn-outline { margin-top: clamp(28px, 3.4vw, 62px); }


/* 14. Footer ============================================================== */

.site-footer {
  border-top: 1px solid var(--hair-soft);
  padding-block: clamp(40px, 4.5vw, 80px);
}
.site-footer__grid {
  display: grid;
  gap: clamp(32px, 4vw, 70px);
}
@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}
.site-footer__blurb {
  margin-top: clamp(16px, 1.6vw, 28px);
  color: var(--dim);
  max-width: min(100%, 42ch);
}
.site-footer h2 {
  font-weight: 500;
  font-size: clamp(0.9375rem, 1vw, 1.125rem);
}
.site-footer ul { margin-top: 16px; }
.site-footer li + li { margin-top: 10px; }

.footer-link {
  color: var(--dim);
  font-size: clamp(0.875rem, 0.9375vw, 1.0625rem);
  transition: color 0.25s ease;
}
.footer-link:hover { color: var(--paper); }

.site-footer__bottom {
  margin-top: clamp(32px, 4vw, 70px);
  padding-top: clamp(20px, 2vw, 34px);
  border-top: 1px solid var(--hair-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--dim);
}
@media (min-width: 640px) {
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }
}


/* 14b. Tablet (768–1023px) ================================================
   The two-column desktop layouts need real width, so they stay stacked here.
   What a tablet does need is tighter vertical rhythm — at this width the
   stacked sections otherwise leave large empty runs — and side-by-side
   treatment wherever two blocks genuinely fit.
   ------------------------------------------------------------------------ */

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --section: clamp(46px, 5.6vw, 84px);
    --section-lg: clamp(56px, 7vw, 104px);
    --gap-lg: clamp(30px, 4vw, 52px);
  }

  /* Intro blocks: heading beside its card rather than stacked above it. */
  .about-intro,
  .reach-intro { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }

  /* The hero monogram is a big square; at this width it eats the fold. */
  .hero { padding-bottom: clamp(40px, 5vw, 72px); }
  .hero__art img { width: min(46vw, 380px); }
  .contact__art img { width: min(34vw, 280px); }

  /* Service bands don't need full desktop height once the photo is behind. */
  .svc { min-height: clamp(460px, 58vw, 620px); }

  /* Keep the numerals from dominating the row. */
  .numeral { font-size: clamp(2.5rem, 6vw, 3.75rem); }
}


/* 15. Motion & accessibility ============================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 70;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  position: fixed;
  width: auto;
  height: auto;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 20px;
}

a:focus-visible,
button:focus-visible,
.field:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* 16. Cookie consent ====================================================== */

.cc-h {
  font-size: clamp(1.0625rem, 1.15vw, 1.375rem);
  font-weight: 500;
  line-height: 1.3;
}
.cc-sub {
  font-weight: 500;
  font-size: clamp(0.875rem, 0.9375vw, 1rem);
  margin-top: 6px;
}
.cc-p {
  font-size: clamp(0.8125rem, 0.85vw, 0.9375rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}
.cc-p + .cc-p { margin-top: 12px; }
.cc-sub + .cc-p { margin-top: 8px; }

.cc-none {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  font-size: clamp(0.75rem, 0.8vw, 0.875rem);
}

/* buttons */
.cc-btn {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--paper);
  background: transparent;
  font-size: clamp(0.8125rem, 0.85vw, 0.9375rem);
  font-weight: 400;
  padding: 0 clamp(16px, 1.4vw, 26px);
  height: clamp(40px, 2.6vw, 48px);
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.cc-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--paper); }
.cc-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 500;
}
.cc-btn--primary:hover { background: #fff; border-color: #fff; color: var(--ink); }
.cc-btn--ghost { border-color: var(--accent); color: var(--accent); }
.cc-btn--ghost:hover { background: rgba(0, 201, 251, 0.12); color: var(--accent); }

/* bottom banner */
.cc-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--hair-soft);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
}
.cc-banner.is-open { transform: none; }

.cc-banner__inner {
  width: min(100% - 2 * var(--gutter), var(--shell));
  margin-inline: auto;
  padding-block: clamp(20px, 2vw, 34px);
  display: grid;
  gap: clamp(16px, 2vw, 40px);
}
@media (min-width: 900px) {
  .cc-banner__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}
.cc-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 899px) {
  .cc-banner__actions .cc-btn { flex: 1 1 auto; }
}

/* preferences modal */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 32px);
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.cc-modal.is-open { opacity: 1; visibility: visible; }

.cc-modal__panel {
  width: min(100%, 820px);
  max-height: min(88vh, 760px);
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.cc-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 1.6vw, 26px) clamp(18px, 1.8vw, 30px);
  border-bottom: 1px solid var(--hair-soft);
}
.cc-close {
  font-size: 1.75rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 8px;
}
.cc-close:hover { color: var(--paper); }

.cc-modal__scroll {
  overflow-y: auto;
  padding: clamp(16px, 1.6vw, 26px) clamp(18px, 1.8vw, 30px);
  overscroll-behavior: contain;
}
.cc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: clamp(14px, 1.4vw, 22px) clamp(18px, 1.8vw, 30px);
  border-top: 1px solid var(--hair-soft);
}
.cc-modal__actions .cc-btn { flex: 1 1 auto; }

/* category rows */
.cc-row { border-top: 1px solid var(--hair-soft); padding-block: clamp(12px, 1.2vw, 18px); }
.cc-row:first-of-type { margin-top: clamp(16px, 1.6vw, 26px); }
.cc-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cc-row__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.9375rem, 1vw, 1.0625rem);
  font-weight: 500;
  text-align: left;
}
.cc-row__chev {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.3s var(--ease);
  flex: none;
}
.cc-row__toggle[aria-expanded='true'] .cc-row__chev { transform: rotate(45deg); }
.cc-row__body { padding-top: 10px; padding-left: 18px; }
.cc-row__active {
  color: #4ade80;
  font-size: clamp(0.8125rem, 0.85vw, 0.9375rem);
  white-space: nowrap;
}

/* switch */
.cc-switch { flex: none; }
.cc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-switch label {
  display: block;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  position: relative;
  cursor: pointer;
  transition: background 0.25s ease;
}
.cc-switch label::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  transition: transform 0.25s var(--ease);
}
.cc-switch input:checked + label { background: var(--accent); }
.cc-switch input:checked + label::after { transform: translateX(20px); }
.cc-switch input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }

body.cc-locked { overflow: hidden; }
