/* ==========================================================================
   Martino Motti — Superyacht & Marine Photography
   Layout: full-bleed photographs run edge to edge; all text hangs from one
   left-aligned column inside a wide gutter, like lettering on a transom.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Colour */
  --abyss: #0a1017;          /* page background: deep navy-charcoal */
  --hull: #111a23;           /* raised surfaces */
  --line: #1f2c38;           /* hairlines */
  --foam: #e9edf0;           /* primary text */
  --mist: #8c99a5;           /* secondary text */
  --teak: #b8976a;           /* single warm accent */
  --paper: #e4e8eb;          /* light tiles behind client logos */
  --glass: rgb(10 16 23 / 0.86);
  --shade: rgb(10 16 23 / 0.0);

  /* Type */
  --f-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --step--2: 0.6875rem;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: clamp(1.125rem, 1.6vw, 1.3125rem);
  --step-2: clamp(1.375rem, 2.4vw, 2rem);
  --step-3: clamp(1.875rem, 4.2vw, 3.375rem);
  --step-4: clamp(2.375rem, 7vw, 6rem);

  /* Space */
  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1440px;
  --header-h: 76px;
  --section: clamp(80px, 12vw, 168px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--foam);
  font-family: var(--f-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--teak); outline-offset: 4px; }
::selection { background: var(--teak); color: var(--abyss); }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 32px); }

.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: 16px; top: -100px; z-index: 100;
  background: var(--foam); color: var(--abyss); padding: 10px 16px;
}
.skip-link:focus { top: 16px; }

/* ---------- Type roles ---------- */
.display {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.04;
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}
.lead {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.6;
  color: var(--foam);
  max-width: 40ch;
}
.muted { color: var(--mist); }
.prose { display: grid; gap: 1.25em; max-width: 62ch; color: var(--mist); }
.prose strong { color: var(--foam); font-weight: 500; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 24px 48px; margin-bottom: clamp(32px, 5vw, 64px);
}
.section-head > div { display: grid; gap: 14px; min-width: 0; }
.section-head h2 { font-size: var(--step-3); }

/* ---------- Links & buttons ---------- */
.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-stretch: 112%;
  font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--foam);
  padding-block: 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), gap 0.4s var(--ease);
}
.link-arrow::after { content: "→"; font-family: var(--f-body); letter-spacing: 0; }
.link-arrow:hover { border-color: var(--teak); gap: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 30px;
  font-family: var(--f-display); font-stretch: 112%;
  font-size: var(--step--1); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--foam);
  border: 1px solid var(--foam);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.btn:hover { background: var(--foam); color: var(--abyss); }

/* ---------- Header / navigation ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 60;
  height: env(safe-area-inset-top, 0px); background: var(--abyss);
}
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: var(--glass);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; line-height: 1.1; }
.brand-text { display: grid; gap: 2px; }
.brand-mark { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 2px 10px rgb(0 0 0 / 0.35)); }
.footer-brand .brand-mark { width: 56px; height: 56px; }
@media (max-width: 400px) { .brand-mark { width: 36px; height: 36px; } .brand { gap: 10px; } }
.brand-name {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 400;
  font-size: 0.9375rem; letter-spacing: 0.28em; text-transform: uppercase;
}
.brand-sub {
  font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mist);
}
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav ul { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav .nav-lang {
  font-family: var(--f-mono); font-size: var(--step--2); letter-spacing: 0.14em;
  color: var(--mist); padding: 6px 0 6px clamp(20px, 3vw, 44px);
  border-left: 1px solid var(--line);
}
.nav .nav-lang:hover { color: var(--foam); }
.nav a {
  position: relative;
  font-family: var(--f-display); font-stretch: 112%;
  font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--foam); white-space: nowrap;
  padding-block: 8px;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.45);
  transition: color 0.3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--teak); }
/* Services opens a list of the speciality pages */
.nav .has-sub { position: relative; }
.nav .has-sub > a { padding-right: 16px; }
.nav .has-sub > a::before {
  content: ""; position: absolute; right: 0; top: 50%; width: 5px; height: 5px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: translateY(-75%) rotate(45deg);
}
.nav .nav-sub {
  position: absolute; top: 100%; left: -22px; z-index: 5; min-width: 290px;
  display: grid; gap: 0; padding: 14px 22px 16px;
  background: rgb(10 16 23 / 0.97); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.nav .has-sub:hover .nav-sub, .nav .has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav .nav-sub a {
  display: block; font-family: var(--f-body); font-stretch: 100%; font-size: 0.875rem;
  letter-spacing: 0.02em; text-transform: none; color: var(--mist); padding-block: 7px; text-shadow: none;
}
.nav .nav-sub a:hover, .nav .nav-sub a[aria-current="page"] { color: var(--foam); }
.nav .nav-sub a::after { display: none; }
/* Quote button: the one action every page leads to */
.nav .nav-cta {
  border: 1px solid var(--teak); padding: 10px 18px; color: var(--foam);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: var(--teak); color: var(--abyss); text-shadow: none; }
.nav .nav-cta::after { display: none; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--teak);
}
.nav-meta { display: none; }
.nav-toggle {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; margin-right: -10px;
}
.nav-toggle span:not(.sr-only) {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--foam);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 36px;
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--abyss);
    padding: calc(var(--header-h) + 28px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 6px; }
  .nav a {
    font-size: var(--step-3); font-stretch: 125%; font-weight: 300;
    letter-spacing: 0.06em; color: var(--foam);
  }
  .nav a[aria-current="page"] { color: var(--teak); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .has-sub > a::before { display: none; }
  .nav .has-sub > a { padding-right: 0; }
  .nav .nav-sub {
    position: static; min-width: 0; padding: 2px 0 10px; background: none; border: 0;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav .nav-sub a { font-size: var(--step-0); padding-block: 4px; }
  .nav .nav-cta { font-size: var(--step--1); font-stretch: 112%; letter-spacing: 0.2em; padding: 14px 22px; }
  .nav-meta { display: grid; gap: 6px; }
  .nav .nav-lang { font-size: var(--step--1); border-left: 0; padding: 0; color: var(--teak); align-self: flex-start; }
  /* backdrop-filter would trap the fixed overlay inside the header bar */
  body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--abyss); }
  .header-inner .brand { position: relative; z-index: 2; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end;
}
.hero-media, .hero-media img, .hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-media { z-index: -2; animation: drift 14s var(--ease) both; }
/* The video sits in the upper part of the hero, where its action is not covered by the title,
   and fades into the dark background behind the text */
.hero-media {
  inset: 0 0 auto 0; height: 66%;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.hero-media video, .hero-media img { object-position: 50% 72%; }
@media (max-width: 760px) { .hero-media { height: 56%; } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, var(--glass) 0%, var(--shade) 22%),
    linear-gradient(to top, var(--abyss) 0%, var(--glass) 26%, var(--shade) 68%);
}
.hero-content .eyebrow { color: var(--foam); }
.hero-content {
  display: grid; gap: 22px;
  padding-block: calc(var(--header-h) + 64px) clamp(56px, 10vh, 120px);
}
.hero h1 { font-size: var(--step-4); font-weight: 200; letter-spacing: 0.04em; }
.hero .lead { max-width: 34ch; }
.hero-role {
  margin: 0.2em 0 0.9em; font-family: var(--f-display); font-stretch: 125%; font-weight: 400;
  font-size: var(--step-1); letter-spacing: 0.22em; text-transform: uppercase; color: var(--teak);
}
@media (max-width: 640px) { .hero-role { font-size: 0.875rem; letter-spacing: 0.16em; } }
.hero-content > * { animation: rise 1.4s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: 0.15s; }
.hero-content > :nth-child(3) { animation-delay: 0.3s; }
.hero-content > :nth-child(4) { animation-delay: 0.45s; }
.hero-content > :nth-child(5) { animation-delay: 0.6s; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; margin-top: 10px; }
.scroll-cue {
  position: absolute; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: clamp(56px, 10vh, 120px);
  display: grid; justify-items: center; gap: 14px;
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 64px;
  background: linear-gradient(to bottom, var(--foam), var(--shade));
  animation: cue 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes drift { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes rise { from { transform: translateY(16px); } to { transform: none; } }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* ---------- Section eyebrows get a short teak rule ---------- */
.section-head .eyebrow, .page-head .eyebrow, .statement .eyebrow { display: inline-flex; align-items: center; gap: 14px; }
.section-head .eyebrow::before, .page-head .eyebrow::before, .statement .eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--teak);
}

/* ---------- Credentials strip (Home) ---------- */
.creds { border-bottom: 1px solid var(--line); }
.creds-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.creds-list > div {
  display: grid; gap: 10px; align-content: start;
  padding: clamp(28px, 4vw, 48px) clamp(16px, 2.4vw, 32px);
  border-left: 1px solid var(--line);
}
.creds-list > div:nth-child(4n+1) { border-left: 0; padding-left: 0; }
.creds-list > div:nth-child(n+5) { border-top: 1px solid var(--line); }
.creds-list dt {
  font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 200; letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums; color: var(--foam); text-transform: none;
}
.creds-list dd { margin: 0; color: var(--mist); font-size: var(--step--1); max-width: 22ch; }
@media (max-width: 900px) {
  .creds-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creds-list > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .creds-list > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Three briefs (Home) ---------- */
.briefs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.brief { display: grid; gap: 14px; align-content: start; }
.brief-media { overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; background: var(--hull); margin-bottom: 10px; }
.brief-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.brief:hover .brief-media img { transform: scale(1.04); }
.brief h3 { font-size: var(--step-2); font-weight: 300; }
.brief p:not(.eyebrow) { color: var(--mist); max-width: 40ch; }
.brief .eyebrow { color: var(--teak); }
@media (max-width: 900px) {
  .briefs { grid-template-columns: 1fr; gap: 48px; }
  .brief-media { aspect-ratio: 4 / 3; }
}

/* ---------- Full-bleed statement (Home) ---------- */
.statement {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92vh, 900px); display: grid; align-items: center;
}
.statement-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.statement::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--abyss) 0%, var(--glass) 38%, var(--shade) 75%),
              linear-gradient(to top, var(--abyss) 0%, var(--shade) 30%);
}
.statement-body { display: grid; gap: 28px; padding-block: clamp(96px, 14vw, 180px); }
.statement-quote { margin: 0; }
.statement-quote p {
  font-family: var(--f-display); font-stretch: 112%; font-weight: 200;
  font-size: clamp(1.75rem, 3.8vw, 3.375rem); line-height: 1.15; letter-spacing: 0.01em;
  text-wrap: balance; max-width: 21ch;
}
.statement-credit {
  position: absolute; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: 28px;
  font-family: var(--f-mono); font-size: var(--step--2); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist);
}
.statement-sign { font-family: var(--f-mono); font-size: var(--step--2); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teak); }

/* ---------- Logbook marquee (Home) ---------- */
.logbook { overflow: hidden; }
.marquee { display: grid; gap: clamp(8px, 1.2vw, 16px); }
.marquee-track { display: flex; width: max-content; animation: marquee 140s linear infinite; }
.marquee-track--rev { animation-direction: reverse; animation-duration: 160s; }
.marquee-track ul { display: flex; flex: none; }
.marquee-track li {
  flex: none; padding-right: clamp(28px, 4vw, 64px);
  font-family: var(--f-display); font-stretch: 125%; font-weight: 300;
  font-size: clamp(2rem, 5.6vw, 5rem); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--foam); white-space: nowrap;
}
.marquee-track li:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--mist); }
.marquee-track li::after { content: "·"; color: var(--teak); -webkit-text-stroke: 0; margin-left: clamp(28px, 4vw, 64px); }
/* Pause on hover only with a real mouse: on phones a tap leaves :hover stuck and the strip would stop */
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee-track { animation-play-state: paused; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { width: auto; flex-wrap: wrap; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .marquee-track ul[aria-hidden="true"] { display: none; }
  .marquee-track ul { flex-wrap: wrap; }
  .marquee-track li { font-size: var(--step-2); }
}

/* ---------- Magazine covers (About): a slow, full-width strip ---------- */
.cover-strip { overflow: hidden; padding-block: 12px 28px; }
.cover-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
@media (hover: hover) and (pointer: fine) { .cover-strip:hover .cover-track { animation-play-state: paused; } }
/* With JavaScript the strip is moved by script and can be dragged with the mouse or a finger */
.cover-strip.is-draggable { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cover-strip.is-draggable .cover-track { animation: none; will-change: transform; }
.cover-strip.is-dragging { cursor: grabbing; }
.cover-strip.is-draggable img { -webkit-user-drag: none; pointer-events: none; }
.covers { display: flex; gap: clamp(14px, 1.6vw, 24px); padding-right: clamp(14px, 1.6vw, 24px); }
.covers li { flex: none; width: clamp(150px, 14vw, 220px); transition: transform 0.6s var(--ease); }
.covers img { display: block; width: 100%; height: auto; aspect-ratio: 590 / 800; object-fit: cover; box-shadow: 0 24px 48px -24px #000; }
.covers li:hover { transform: translateY(-8px); }
@media (prefers-reduced-motion: reduce) {
  .cover-track { width: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .cover-track .covers[aria-hidden="true"] { display: none; }
  .cover-track .covers { flex-wrap: wrap; }
}

/* ---------- Gentle settle-in as items enter the screen (always visible) ---------- */
.reveal-on [data-reveal]:not(.is-in) { transform: translateY(32px); }
.reveal-on [data-reveal] { transition: transform 1.2s var(--ease); }

/* ---------- Scroll-driven motion (values set by main.js; static without it) ---------- */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--teak); transform-origin: left; transform: scaleX(var(--sp, 0));
}
.hero { --p: 0; }
.hero-slides, .hero-media video { transform: translateY(calc(var(--p) * 18%)) scale(calc(1 + var(--p) * 0.12)); }
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide { opacity: 0; animation: heroSlide 24s linear infinite; animation-delay: calc(var(--i) * 6s - 1.2s); }
.hero-slide:first-child { opacity: 1; }
@keyframes heroSlide {
  0% { opacity: 0; transform: scale(1.16); }
  5% { opacity: 1; }
  25% { opacity: 1; }
  31% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
.hero-video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero.has-video .hero-video { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-slide:first-child { opacity: 1 !important; } }
.hero-content { opacity: calc(1 - var(--p) * 1.7); transform: translateY(calc(var(--p) * -90px)); }

/* Horizontal reel (Home) */
.reel { position: relative; padding-block: var(--section); }
.reel-track {
  display: flex; align-items: flex-end; gap: clamp(16px, 2vw, 32px);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px;
}
.reel-track::-webkit-scrollbar { display: none; }
.reel-intro { flex: none; width: min(380px, 78vw); display: grid; gap: 18px; align-self: center; scroll-snap-align: start; }
.reel-intro h2 { font-size: var(--step-3); }
.reel-hint { font-family: var(--f-mono); font-size: var(--step--2); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teak); }
.reel-item { flex: none; display: grid; gap: 12px; cursor: zoom-in; scroll-snap-align: start; }
.reel-item img { height: clamp(260px, 52vh, 420px); width: auto; max-width: none; object-fit: cover; background: var(--hull); transition: filter 0.6s var(--ease); }
.reel-item:hover img { filter: brightness(1.08); }
.reel-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: var(--step--1); color: var(--mist); }
.reel-cap span { color: var(--foam); }
.reel-cap b { font-family: var(--f-mono); font-weight: 400; font-size: var(--step--2); letter-spacing: 0.1em; color: var(--teak); font-variant-numeric: tabular-nums; }
/* Wide screens: the section pins and vertical scrolling moves the reel sideways */
.reel.is-pinned { padding-block: 0; }
.reel.is-pinned .reel-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.reel.is-pinned .reel-track { overflow: visible; scroll-snap-type: none; transform: translateX(calc(var(--p, 0) * var(--dist, 0px) * -1)); will-change: transform; }
.reel.is-pinned .reel-item img { height: min(56vh, 600px); }

/* Statement: words light up as it scrolls into view */
.statement { --p: 1; }
.statement-quote .w { opacity: clamp(0.16, calc(var(--p) * (var(--n) + 4) - var(--i)), 1); transition: opacity 0.2s linear; }

/* ---------- Motion layer (html.motion is set by main.js unless reduced motion is on) ---------- */
/* Hero: letterbox opening and letters surfacing from blur */
.motion .hero-media { animation: drift 14s var(--ease) both, letterbox 1.9s cubic-bezier(0.7, 0, 0.2, 1) both; }
@keyframes letterbox { from { clip-path: inset(16% 10% 16% 10%); } to { clip-path: inset(0); } }
.motion .hero-content > h1 { animation: none; }
.hero h1 .word { display: inline-block; white-space: nowrap; }
.hero h1 .ch { display: inline-block; white-space: pre; }
.motion .hero h1 .ch { animation: letterIn 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(0.55s + var(--i) * 55ms); }
@keyframes letterIn { from { transform: translateY(45%) scale(1.08); filter: blur(14px); } to { transform: none; filter: blur(0); } }

/* Headings slide up out of a mask */
.motion .line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.motion .line-mask > span { display: block; transform: translateY(105%); transition: transform 1.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.motion .is-in > .line-mask > span, .motion .line-mask.is-in > span { transform: none; }

/* Images unveil with a curtain while easing out of a zoom */
.motion [data-wipe] { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s cubic-bezier(0.7, 0, 0.2, 1); }
.motion [data-wipe].is-in { clip-path: inset(0); }
.motion [data-wipe] img { transform: scale(1.3); transition: transform 2s var(--ease); }
.motion [data-wipe].is-in img { transform: scale(1); }
.motion .cat[data-wipe].is-in:hover img, .motion .brief:hover .brief-media[data-wipe].is-in img { transform: scale(1.05); }

/* Logbook leans with scroll speed */
.marquee { transform: skewX(var(--skew, 0deg)); }

/* Reel: the frame nearest the centre comes forward */
.reel.is-pinned .reel-item { transform: scale(calc(1 - var(--d, 0) * 0.1)); opacity: calc(1 - var(--d, 0) * 0.45); transform-origin: center bottom; }
.reel-progress { position: absolute; left: max(var(--gutter), env(safe-area-inset-left, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: clamp(32px, 6vh, 64px); height: 1px; background: var(--line); }
.reel-progress::after { content: ""; position: absolute; inset: 0; background: var(--teak); transform-origin: left; transform: scaleX(var(--p, 0)); }
.reel:not(.is-pinned) .reel-progress { display: none; }

/* Statement background eases out of a zoom as it scrolls in */
.statement-media { transform: scale(calc(1.25 - var(--p) * 0.25)); }

/* Custom cursor (fine pointers only) */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--foam); color: var(--foam);
  font-family: var(--f-mono); font-size: var(--step--2); letter-spacing: 0.16em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(var(--s, 0));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Category grid (Home) ---------- */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.cat { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4.3; max-width: 100%; background: var(--hull); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.cat::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--glass) 0%, var(--shade) 50%);
  transition: opacity 0.6s var(--ease);
}
.cat-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: grid; gap: 8px;
  padding: clamp(20px, 2.4vw, 32px);
}
.cat-label h3 { font-size: var(--step-1); font-weight: 400; letter-spacing: 0.12em; }
.cat-label .eyebrow { color: var(--foam); opacity: 0.72; }
.cat-label .go {
  font-family: var(--f-display); font-stretch: 112%; font-size: var(--step--2);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--teak);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.cat:hover img, .cat:focus-visible img { transform: scale(1.05); }
.cat:hover .go, .cat:focus-visible .go { opacity: 1; transform: none; }
@media (hover: none) { .cat-label .go { opacity: 1; transform: none; } }
@media (max-width: 1080px) { .categories { grid-template-columns: repeat(2, 1fr); } .cat { aspect-ratio: 4 / 5; } }
@media (max-width: 560px) { .categories { grid-template-columns: 1fr; } .cat { aspect-ratio: 4 / 3.4; } }

/* ---------- Masonry gallery ---------- */
.masonry { columns: 3 300px; column-gap: 6px; }
.shot {
  position: relative; display: block; overflow: hidden;
  break-inside: avoid; margin-bottom: 6px;
  background: var(--hull); cursor: zoom-in;
}
.shot img { width: 100%; height: auto; transition: transform 1.4s var(--ease), opacity 0.6s var(--ease); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; gap: 16px; align-items: end;
  padding: 48px 20px 18px;
  background: linear-gradient(to top, var(--glass), var(--shade));
  font-size: var(--step--1); line-height: 1.4;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.shot figcaption .eyebrow { color: var(--foam); opacity: 0.7; white-space: nowrap; }
.shot:hover img { transform: scale(1.03); }
.shot:hover figcaption, .shot:focus-visible figcaption { opacity: 1; transform: none; }
@media (hover: none) { .shot figcaption { opacity: 1; transform: none; } }
.shot--tour { cursor: pointer; border: 1px solid var(--line); transition: border-color 0.4s var(--ease); }
.shot--tour figure {
  aspect-ratio: 4 / 3; max-width: 100%;
  background: radial-gradient(120% 90% at 80% 0%, var(--line), var(--hull) 60%);
}
.shot--tour figcaption { opacity: 1; transform: none; background: none; font-size: var(--step-0); }
.shot--tour:hover { border-color: var(--teak); }
.shot--tour figure { position: relative; }
.shot--tour .tour-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.shot--tour:hover .tour-cover { opacity: 0.7; transform: none; }
.shot--tour figcaption { z-index: 1; background: linear-gradient(to top, var(--glass), var(--shade)); }
.tour-name {
  display: grid; gap: 6px;
  font-family: var(--f-display); font-stretch: 118%; font-size: var(--step-1);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.tour-name small {
  font-family: var(--f-mono); font-size: var(--step--2); letter-spacing: 0.14em; color: var(--teak);
}
.badge-360 {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--foam); background: var(--glass);
  font-family: var(--f-display); font-stretch: 112%; font-size: 0.75rem; letter-spacing: 0.08em;
}

/* ---------- Films (video cards) ---------- */
.films { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 6px; }
.film { display: grid; gap: 14px; align-content: start; cursor: pointer; }
.film.shot { background: none; gap: 12px; padding-bottom: 14px; cursor: pointer; }
.film-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; background: var(--hull); }
.film-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.film-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--glass), var(--shade) 60%);
}
.film-play {
  position: absolute; left: 50%; top: 50%; z-index: 1; translate: -50% -50%;
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--foam); background: var(--glass);
  transition: background-color 0.4s var(--ease), scale 0.4s var(--ease);
}
.film-play::before {
  content: ""; position: absolute; left: 26px; top: 21px;
  border-style: solid; border-width: 11px 0 11px 17px;
  border-color: var(--shade) var(--shade) var(--shade) var(--foam);
}
.film:hover .film-media img, .film:focus-visible .film-media img { transform: scale(1.04); }
.film:hover .film-play, .film:focus-visible .film-play { scale: 1.08; border-color: var(--teak); }
.film-meta { display: grid; gap: 4px; padding-right: 12px; }
.film-title {
  font-family: var(--f-display); font-stretch: 112%; font-size: var(--step--1);
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* Video player dialog */
.player {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--abyss); color: var(--foam);
}
.player::backdrop { background: var(--abyss); }
.player[open] { display: grid; grid-template-rows: auto 1fr; animation: fade 0.4s var(--ease); }
.player-stage {
  display: grid; place-items: center; min-height: 0;
  padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) calc(var(--gutter) + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
}
.player-frame { width: min(100%, calc((100vh - 140px) * 16 / 9)); aspect-ratio: 16 / 9; background: var(--hull); }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-title { font-family: var(--f-display); font-stretch: 112%; font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; }
.player-actions { display: flex; align-items: center; gap: 20px; }

/* ---------- Filter bar (Portfolio) ---------- */
.filters {
  display: flex; gap: 8px 28px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.filter {
  position: relative; padding-block: 14px;
  font-family: var(--f-display); font-stretch: 112%;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mist);
  transition: color 0.3s var(--ease);
}
.filter:hover { color: var(--foam); }
.filter[aria-pressed="true"] { color: var(--foam); }
.filter[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--teak);
}
@media (max-width: 720px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 24px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filter { white-space: nowrap; flex: none; }
}
.filter .count { font-family: var(--f-mono); letter-spacing: 0.05em; color: var(--mist); margin-left: 6px; }

/* ---------- Clients ---------- */
.clients {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  border-top: 1px solid var(--line);
}
.clients li {
  display: flex; align-items: center; min-height: 92px;
  padding: 20px 24px 20px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-stretch: 110%; font-weight: 400;
  font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mist);
  transition: color 0.3s var(--ease);
}
.clients li:hover { color: var(--foam); }

/* Pull quote under the client list (Home) */
.pull {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px clamp(32px, 6vw, 96px);
  align-items: end; margin-top: clamp(56px, 8vw, 104px);
}
.pull blockquote p { font-size: var(--step-2); font-weight: 200; line-height: 1.4; max-width: 34ch; }
.pull blockquote p::before { content: "“"; color: var(--teak); }
.pull blockquote p::after { content: "”"; color: var(--teak); }
.pull figcaption { display: grid; gap: 6px; justify-items: start; }
.pull figcaption strong { font-weight: 500; }
.pull .link-arrow { margin-top: 14px; }
@media (max-width: 760px) { .pull { grid-template-columns: 1fr; } }

/* ---------- Logo walls (clients on Home, magazines on About) ---------- */
.logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
.logos li { position: relative; aspect-ratio: 3 / 2; max-width: 100%; background: var(--paper); overflow: hidden; }
/* Each logo fills most of its box (scaled up when the file is small), keeping its proportions */
.logos img { position: absolute; inset: 14% 9%; width: 82%; height: 72%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.5s var(--ease); }
.logos li:hover img { transform: scale(1.06); }
.logos--small { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 4px; }
.logos--small li { aspect-ratio: 2 / 1; }
.logos--small img { inset: 16% 10%; width: 80%; height: 68%; }
@media (max-width: 1000px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } .logos--small { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; filter: grayscale(0.2); }
.quote .avatar { margin-bottom: 10px; }

/* ---------- CTA band ---------- */
.cta { border-top: 1px solid var(--line); }
.section.cta { padding-top: clamp(64px, 8vw, 112px); }
.cta-inner { display: grid; gap: 28px; justify-items: start; }
.cta h2 { font-size: var(--step-3); max-width: 18ch; }
.cta p { color: var(--mist); max-width: 52ch; }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(56px, 9vw, 128px));
  padding-bottom: clamp(40px, 6vw, 80px);
}
.page-head .wrap { display: grid; gap: 22px; }
.page-head h1 { font-size: var(--step-4); font-weight: 200; }

/* ---------- Split rows (About, Services) ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.split > * { min-width: 0; }
.split-media { position: sticky; top: calc(var(--header-h) + 32px); max-width: 400px; }
.split-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
.split-body { display: grid; gap: 40px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-media { position: static; max-width: 360px; }
}

.facts { display: grid; border-top: 1px solid var(--line); }
.facts div {
  display: grid; grid-template-columns: minmax(96px, 9rem) 1fr; gap: 24px;
  padding-block: 18px; border-bottom: 1px solid var(--line);
}
.facts dt { font-family: var(--f-mono); font-size: var(--step--1); color: var(--teak); font-variant-numeric: tabular-nums; }
.facts dd { margin: 0; color: var(--foam); }

.inline-list { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--mist); }
.list-block { display: grid; gap: 14px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 2px; }
.quote {
  display: grid; gap: 28px; align-content: space-between;
  padding: clamp(28px, 4vw, 56px);
  background: var(--hull);
}
.quote blockquote p {
  font-size: var(--step-2); font-weight: 300; line-height: 1.4;
}
.quote blockquote p::before { content: "“"; color: var(--teak); }
.quote blockquote p::after { content: "”"; color: var(--teak); }
.quote--feature { grid-column: 1 / -1; }
.quote--feature blockquote p { font-size: clamp(1.5rem, 3vw, 2.375rem); font-weight: 200; max-width: 40ch; }
.quote figcaption { display: grid; gap: 4px; }
.quote figcaption strong { font-weight: 500; }
/* Home: three brokers side by side under the client logos */
.quotes-label { margin: clamp(56px, 8vw, 104px) 0 20px; }
.quotes--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quotes--three blockquote p { font-size: var(--step-1); }
.quotes-more { margin-top: 24px; }
@media (max-width: 1000px) { .quotes--three { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(88vh, 860px);
  border-top: 1px solid var(--line);
}
.service:nth-of-type(even) .service-media { order: 2; }
.service-media { position: relative; overflow: hidden; background: var(--hull); }
.service-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-body {
  display: grid; align-content: center; gap: 28px;
  padding-block: clamp(48px, 8vw, 120px);
  padding-left: max(clamp(24px, 6vw, 96px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(24px, 6vw, 96px), env(safe-area-inset-right, 0px));
}
.service-body h2 { font-size: var(--step-3); }
.ticks { display: grid; border-top: 1px solid var(--line); }
.ticks li {
  display: grid; grid-template-columns: 28px 1fr; gap: 8px;
  padding-block: 13px; border-bottom: 1px solid var(--line);
  color: var(--mist);
}
.ticks li::before { content: "—"; color: var(--teak); }
@media (max-width: 900px) {
  .service { grid-template-columns: 1fr; min-height: 0; }
  .service:nth-of-type(even) .service-media { order: 0; }
  .service-media { aspect-ratio: 4 / 3; max-width: 100%; }
  .service-body {
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  }
}

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; gap: 14px; align-content: start;
  padding: clamp(24px, 3vw, 40px);
  background: var(--hull);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono); font-size: var(--step--1); color: var(--teak);
}
.steps h3 { font-family: var(--f-display); font-stretch: 112%; font-size: var(--step-0); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.steps p { color: var(--mist); font-size: 0.9375rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(48px, 7vw, 120px); align-items: start;
}
.contact-grid > * { min-width: 0; }
@media (min-width: 901px) { .contact-grid .direct { position: sticky; top: calc(var(--header-h) + 32px); } }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 34px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 32px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend {
  font-family: var(--f-mono); font-size: var(--step--2);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist);
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; color: var(--foam);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 10px 0 12px;
  transition: border-color 0.3s var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, var(--shade) 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, var(--shade) 50%);
  background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--hull); color: var(--foam); }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--mist); opacity: 0.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--teak); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 10px; }
.checks label {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--f-body); font-size: var(--step-0); letter-spacing: 0; text-transform: none; color: var(--foam);
}
.checks input { width: 16px; height: 16px; accent-color: var(--teak); }
.form-foot { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.form-status { color: var(--mist); font-size: var(--step--1); max-width: 46ch; }
.form-status.is-ok { color: var(--foam); }
.form-note { color: var(--mist); font-size: var(--step--1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jotform { display: grid; gap: 16px; min-width: 0; }
.jotform-fallback { display: grid; gap: 22px; justify-items: start; padding: clamp(32px, 5vw, 56px); background: var(--hull); border: 1px solid var(--line); }
.jotform-fallback h2 { font-size: var(--step-3); }
.jotform-frame { display: block; width: 100%; height: 1500px; border: 0; background: var(--abyss); }
/* The form has 24px of inner padding; pull it out on wide screens so its text lines up with the page */
@media (min-width: 901px) { .jotform-frame { width: calc(100% + 48px); margin-inline: -24px; max-width: none; } }
.form-note a, .legal a { color: var(--foam); text-decoration: underline; text-decoration-color: var(--teak); text-underline-offset: 3px; }

/* ---------- Legal pages ---------- */
.legal { display: grid; gap: 44px; max-width: 72ch; }
.legal section { display: grid; gap: 14px; }
.legal h2 {
  font-family: var(--f-display); font-stretch: 112%; font-size: var(--step-0); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.legal p, .legal li { color: var(--mist); }
.legal strong { color: var(--foam); font-weight: 500; }
.legal ul { display: grid; gap: 10px; padding-left: 1.2em; list-style: square; }
.legal li::marker { color: var(--teak); }

.direct { display: grid; gap: 40px; }
.direct-item { display: grid; gap: 8px; }
.direct-item .value {
  font-family: var(--f-display); font-stretch: 110%; font-weight: 300;
  font-size: var(--step-1); letter-spacing: 0.04em; overflow-wrap: anywhere;
}
.direct-item .row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.copy-btn {
  font-family: var(--f-mono); font-size: var(--step--2); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mist); border-bottom: 1px solid var(--line); padding-block: 2px;
}
.copy-btn:hover { color: var(--foam); }
.notice { display: grid; gap: 14px; padding: 28px; background: var(--hull); }
.notice h2 { font-size: var(--step-1); font-weight: 400; letter-spacing: 0.1em; }
.notice p { color: var(--mist); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 7vw, 96px) calc(32px + env(safe-area-inset-bottom, 0px));
  color: var(--mist); font-size: var(--step--1);
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
}
.footer-grid > * { min-width: 0; }
.footer-grid h2 {
  font-family: var(--f-mono); font-size: var(--step--2); font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); margin-bottom: 14px;
}
.footer-grid ul { display: grid; gap: 6px; }
.footer-grid a { color: var(--foam); transition: color 0.3s var(--ease); overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--teak); }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand .brand-name { color: var(--foam); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: var(--step--2); letter-spacing: 0.06em;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--abyss); color: var(--foam);
}
.lightbox::backdrop { background: var(--abyss); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade 0.4s var(--ease); }
.lb-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 16px max(var(--gutter), env(safe-area-inset-left, 0px));
}
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 0 max(var(--gutter), 64px); }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-caption {
  padding: 16px max(var(--gutter), env(safe-area-inset-left, 0px)) calc(20px + env(safe-area-inset-bottom, 0px));
  text-align: center; color: var(--mist); font-size: var(--step--1);
}
.lb-btn {
  display: grid; place-items: center; width: 48px; height: 48px;
  font-size: 1.25rem; color: var(--mist); transition: color 0.3s var(--ease);
}
.lb-btn:hover { color: var(--foam); }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.lb-prev { left: max(8px, env(safe-area-inset-left, 0px)); }
.lb-next { right: max(8px, env(safe-area-inset-right, 0px)); }
.lb-count { font-family: var(--f-mono); font-size: var(--step--2); letter-spacing: 0.14em; color: var(--mist); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .lb-stage { padding: 0; } .lb-prev, .lb-next { display: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Speciality landing pages ---------- */
.landing-banner { margin: 0 0 clamp(40px, 6vw, 80px); overflow: hidden; background: var(--hull); }
.landing-banner img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.landing-split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  color: var(--foam); font-size: var(--step-1); font-weight: 300;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--f-mono); color: var(--teak); transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { color: var(--mist); max-width: 62ch; padding: 0 0 22px; }
.related { display: flex; flex-wrap: wrap; gap: 12px 40px; }
@media (max-width: 900px) {
  .landing-banner img { aspect-ratio: 4 / 3; }
  .landing-split { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp button (every page) ---------- */
.wa-float {
  position: fixed; z-index: 40;
  right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.35);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
body.nav-open .wa-float { display: none; }
@media print { .wa-float { display: none; } }

/* ---------- Case study ---------- */
.cs-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; margin: 0; }
.cs-facts div { background: var(--hull); padding: 22px 24px 26px; }
.cs-facts dt { margin-bottom: 10px; color: var(--teak); }
.cs-facts dd { margin: 0; line-height: 1.5; }
.cs-story { display: grid; gap: clamp(40px, 6vw, 72px); }
.cs-block h2 { font-size: var(--step-3); margin-bottom: 20px; }
@media (max-width: 1000px) { .cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cs-facts { grid-template-columns: 1fr; } }
.statement-credit { z-index: 1; }
.statement-credit a { color: var(--foam); border-bottom: 1px solid var(--teak); padding-bottom: 3px; transition: color 0.3s var(--ease); }
.statement-credit a:hover { color: var(--teak); }
.page-head-link { margin-top: 20px; }
.cs-more { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin-top: 32px; }
