/* Hanntec Engineering website
   Colours come from the logo. Edit the tokens below to retheme. */

@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --navy-950: #04122B;    /* footer */
  --navy-900: #061833;    /* dark sections */
  --navy-800: #0A2550;    /* placeholder tiles */
  --blue: #0B3A82;        /* logo blue */
  --blue-600: #1A5DC8;    /* focus rings, links on light */
  --sky: #8DB8F7;         /* lines on dark */
  --red: #C8142F;         /* buttons and accents (logo red, brightened to read on dark) */
  --red-hover: #A50F26;
  --ink: #0E1A33;         /* body text */
  --muted: #46526B;       /* secondary text, 7.8:1 on white */
  --sheet: #F1F4F9;
  --line: #D5DDEA;
  --field: #AEBBD2;

  --r: 22px;
  --r-sm: 12px;
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1.125rem; line-height: 1.6; color: var(--ink); background: #fff; }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; border-radius: 4px; }
.site-header:not(.is-solid) :focus-visible, .hero :focus-visible, .page-hero :focus-visible,
.section--dark :focus-visible, .section--blue :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: .6em 1em; background: #fff; color: var(--blue); border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.h-display {
  margin-bottom: .3em;
  font: 700 clamp(2.5rem, 5vw, 4.25rem)/1 var(--font-display);
  letter-spacing: -.005em;
  color: var(--blue);
  text-wrap: balance;
}
.h-display--lg { font-size: clamp(2.5rem, 5.6vw, 4.75rem); }
.h-display--md { font-size: clamp(2.25rem, 4.2vw, 3.5rem); }
.h-display--sm { font-size: clamp(1.875rem, 3vw, 2.5rem); }
.lead { max-width: 52ch; font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--muted); }
.section--dark .h-display, .section--blue .h-display { color: #fff; }
.section--dark .lead, .section--blue .lead { color: rgba(255, 255, 255, .88); }

.textlink { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; color: var(--blue-600); text-decoration: none; border-bottom: 2px solid transparent; }
.textlink:hover { border-color: currentColor; }
.textlink .icon { width: 1.1em; height: 1.1em; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 32px; height: 32px; }
.icon--xl { width: 48px; height: 48px; margin-bottom: 18px; color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.6em; font: 600 1.0625rem/1.2 var(--font-body);
  text-decoration: none; border: 2px solid transparent; border-radius: var(--r-sm); cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--sm { padding: .6em 1.1em; font-size: .9375rem; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hover); }
.btn--outline { color: var(--blue); border-color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Header (transparent over the dark hero, solid after scrolling) ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; transition: background-color .25s, color .25s, box-shadow .25s; }
.site-header.is-solid { color: var(--ink); background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: block; line-height: 0; }
.brand img { display: block; width: 178px; height: auto; }
.brand__dark { display: none !important; }
.site-header.is-solid .brand__light { display: none; }
.site-header.is-solid .brand__dark { display: block !important; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3em; padding: .55em .9em;
  font: 600 1.0625rem/1.2 var(--font-body); color: inherit; text-decoration: none;
  background: none; border: 0; border-radius: 10px; cursor: pointer;
}
.nav__link:hover, .has-menu.open > .nav__link { background: rgba(255, 255, 255, .14); }
.site-header.is-solid .nav__link:hover, .site-header.is-solid .has-menu.open > .nav__link { background: var(--sheet); }
.nav__link[aria-current="page"], .nav__link[data-current="true"] { box-shadow: inset 0 -3px 0 var(--red); border-radius: 10px 10px 0 0; }
.nav .btn { margin-left: 10px; }

.has-menu { position: relative; }
.menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px;
  color: var(--ink); background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(4, 18, 43, .28);
}
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-menu.open .menu { display: block; }
@media (hover: hover) and (min-width: 901px) { .has-menu:hover .menu { display: block; } }
.menu a { display: block; padding: .6em .8em; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: 8px; }
.menu a:hover { background: var(--sheet); }
.menu a[aria-current="page"] { color: var(--red); }

.nav-toggle { display: none; width: 48px; height: 48px; padding: 0; align-items: center; justify-content: center; color: inherit; background: none; border: 2px solid rgba(255, 255, 255, .5); border-radius: 12px; cursor: pointer; }
.site-header.is-solid .nav-toggle { border-color: var(--line); }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 22px; color: var(--ink); background: #fff; box-shadow: 0 18px 28px rgba(4, 18, 43, .2);
  }
  .nav.open { display: flex; }
  .nav__link { justify-content: space-between; padding: .85em .2em; font-size: 1.1875rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link[aria-current="page"] { color: var(--red); box-shadow: none; }
  .has-menu .menu { display: block; position: static; min-width: 0; padding: 0; box-shadow: none; }
  .has-menu .menu::before { display: none; }
  .nav__link--menu { display: none; }
  .menu a { padding: .85em .2em; font-size: 1.1875rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 18px 0 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--sheet { background: var(--sheet); }
.section--dark { color: #fff; background: var(--navy-900); }
.section--blue { color: #fff; background: var(--blue); }
.section__head { max-width: 60ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head .lead { margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.split > .h-display { margin: 0; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

.cover { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* Placeholder surface used until a real photo is added */
.svc, .sec, .media, .person__photo { background-color: var(--navy-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: max(700px, 100svh); padding: calc(var(--header-h) + 48px) 0 72px; color: #fff;
  background: var(--navy-900);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(141, 184, 247, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(141, 184, 247, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
/* Video hero: poster first, the looping video fades in over it once it plays (see site.js) */
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--navy-900); }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__video { opacity: 0; transition: opacity .8s ease; }
.hero__video.is-playing { opacity: 1; }
/* navy wash: strongest behind the headline on the left and under the header at the top */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(6, 24, 51, .7) 0, rgba(6, 24, 51, 0) 26%),
    linear-gradient(90deg, rgba(6, 24, 51, .92) 0%, rgba(6, 24, 51, .8) 38%, rgba(6, 24, 51, .38) 72%, rgba(6, 24, 51, .22) 100%);
}
.hero--video::before { display: none; }
.hero--video .hero__lead { color: #fff; }
.hero__toggle {
  position: absolute; right: var(--gutter); bottom: 24px; display: grid; place-items: center;
  width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%;
  background: rgba(6, 24, 51, .55); color: #fff; cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.hero__toggle[hidden] { display: none; }
.hero__toggle:hover { background: rgba(6, 24, 51, .85); border-color: #fff; }
.hero__toggle:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hero__toggle svg { width: 18px; height: 18px; fill: currentColor; }
.hero__toggle-play, .hero__toggle[aria-pressed="true"] .hero__toggle-pause { display: none; }
.hero__toggle[aria-pressed="true"] .hero__toggle-play { display: block; }
@media (prefers-reduced-motion: reduce) {
  .hero__video, .hero__toggle { display: none !important; }
}

.hero__art {
  position: absolute; z-index: -1; right: -1vw; bottom: 5%; width: min(54vw, 880px);
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.hero__inner { position: relative; }
.hero__title { max-width: 7.5em; margin-bottom: .3em; font: 700 clamp(3.5rem, 8.6vw, 8.25rem)/.9 var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.hero__lead { max-width: 28ch; font-size: clamp(1.25rem, 1.9vw, 1.625rem); line-height: 1.45; color: rgba(255, 255, 255, .92); }
.hero__note { position: absolute; right: var(--gutter); bottom: 16px; max-width: 380px; margin: 0; text-align: right; color: rgba(255, 255, 255, .72); }

@media (max-width: 900px) {
  /* text first, drawing underneath */
  .hero { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 0; padding-bottom: 40px; }
  .hero__inner { order: 1; width: min(1240px, 100% - 2 * var(--gutter)); }
  .hero__art { order: 2; position: relative; right: auto; bottom: auto; width: min(560px, 100% - 2 * var(--gutter)); margin: 32px auto 0; -webkit-mask-image: none; mask-image: none; }
  .hero__note { order: 3; position: static; max-width: none; margin: 16px var(--gutter) 0; text-align: left; }
  /* video hero on tablets and phones: the photo fills the hero, text sits on the darker lower part */
  .hero--video { justify-content: flex-end; min-height: min(760px, 92svh); padding-bottom: 48px; }
  .hero--video .hero__poster, .hero--video .hero__video { object-position: 84% 50%; }
  .hero--video .hero__media::after {
    background:
      linear-gradient(to bottom, rgba(6, 24, 51, .7) 0, rgba(6, 24, 51, 0) 22%),
      linear-gradient(0deg, rgba(6, 24, 51, .95) 0%, rgba(6, 24, 51, .82) 45%, rgba(6, 24, 51, .4) 100%);
  }
}

/* Drawing that draws itself in (the page's one load animation) */
.iso { display: block; width: 100%; height: auto; overflow: visible; }
.iso .grid { stroke: var(--sky); stroke-opacity: .13; stroke-width: 1; }
.iso .shape { stroke: var(--sky); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.iso .shape.thin { stroke-width: 1; stroke-opacity: .75; }
.iso text { fill: var(--sky); font: 500 14px var(--font-body); }
.iso.is-animating .grid { opacity: 0; animation: fade 1s ease .1s forwards; }
.iso.is-animating .shape {
  stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0;
  animation: draw 1.3s cubic-bezier(.4, .1, .2, 1) forwards, fillin .8s ease forwards;
  animation-delay: calc(var(--i, 0) * 120ms + 300ms), calc(var(--i, 0) * 120ms + 1000ms);
}
.iso.is-animating text { opacity: 0; animation: fade .6s ease forwards; animation-delay: calc(var(--i, 0) * 120ms + 1100ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Page heads (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy-900);
  padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(48px, 6vw, 80px);
}

/* The rounded square echoes the boxed H in the logo */
.page-hero::after {
  content: ""; position: absolute; z-index: -1; right: clamp(16px, 7vw, 120px); bottom: -22%; width: min(26vw, 340px); aspect-ratio: 1;
  border: clamp(12px, 1.6vw, 20px) solid rgba(200, 20, 47, .8); border-radius: 12%;
}
.page-hero__title { margin-bottom: .2em; font: 700 clamp(3.25rem, 7.5vw, 6.5rem)/.95 var(--font-display); letter-spacing: -.01em; }
.page-hero__lead { max-width: 34ch; margin: 0; font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.45; color: rgba(255, 255, 255, .9); }

/* ---------- Service tiles ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc {
  position: relative; isolation: isolate; display: flex; align-items: flex-end; overflow: hidden;
  min-height: clamp(300px, 33vw, 440px); padding: clamp(24px, 3vw, 40px);
  color: #fff; text-decoration: none; border-radius: var(--r);
}
.svc__icon { position: absolute; z-index: 0; top: 28px; right: 28px; width: clamp(64px, 8vw, 112px); height: auto; color: var(--sky); opacity: .5; stroke-width: 1.1; }
.svc::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(4, 18, 43, .96) 0%, rgba(4, 18, 43, .9) 38%, rgba(4, 18, 43, .55) 62%, rgba(4, 18, 43, .1) 90%); }
.svc::before { content: ""; position: absolute; left: 0; bottom: 0; z-index: 4; width: 0; height: 6px; background: var(--red); transition: width .35s ease; }
.svc:hover::before, .svc:focus-visible::before { width: 100%; }
.svc__body { position: relative; z-index: 3; display: grid; gap: 8px; }
.svc__title { font: 700 clamp(2.125rem, 3.6vw, 3.125rem)/1 var(--font-display); }
.svc__text { max-width: 32ch; font-size: 1.125rem; line-height: 1.45; color: rgba(255, 255, 255, .92); }
.svc__more { display: inline-flex; align-items: center; gap: .5em; margin-top: 6px; font-weight: 600; }
.svc__more .icon { width: 1.2em; height: 1.2em; transition: transform .2s; }
.svc:hover .svc__more .icon { transform: translateX(5px); }
.svc__label { position: absolute; z-index: 3; left: 16px; top: 12px; margin: 0; color: rgba(255, 255, 255, .7); }
@media (max-width: 760px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } .svc { min-height: 280px; } }

/* Five delivery tiles: three on the first row, two on the second */
.svc-grid--five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.svc-grid--five .svc { grid-column: span 2; }
.svc-grid--five .svc:nth-child(n+4) { grid-column: span 3; }
.svc--sm { min-height: clamp(250px, 24vw, 320px); padding: clamp(20px, 2.4vw, 30px); }
.svc--sm .svc__title { font-size: clamp(1.75rem, 2.5vw, 2.25rem); }
.svc--sm .svc__text { font-size: 1.0625rem; }
@media (max-width: 900px) {
  .svc-grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid--five .svc, .svc-grid--five .svc:nth-child(n+4) { grid-column: auto; }
  .svc-grid--five .svc:last-child { grid-column: span 2; }
}
@media (max-width: 560px) {
  .svc-grid--five { grid-template-columns: minmax(0, 1fr); }
  .svc-grid--five .svc:last-child { grid-column: auto; }
}
.section__head--sub { margin-top: clamp(56px, 8vw, 104px); }

/* ---------- The two lead services ---------- */
.lead-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.leadcard {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(28px, 3.6vw, 52px); color: #fff; text-decoration: none; border-radius: var(--r);
  background-color: var(--navy-900);
}
.leadcard { --pad: clamp(28px, 3.6vw, 52px); }
.leadcard:focus-visible, .svc:focus-visible, .sec:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: var(--r); }
/* photo across the top of each lead card, fading into the navy */
.leadcard__media { position: relative; display: block; align-self: stretch; margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 26px; aspect-ratio: 16 / 7; overflow: hidden; }
.leadcard__media::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to bottom, rgba(6, 24, 51, 0) 45%, rgba(6, 24, 51, .95) 100%); }
.leadcard__media + .leadcard__icon { position: relative; z-index: 3; margin-top: -64px; }
.leadcard__icon { width: 56px; height: 56px; margin-bottom: 28px; color: var(--sky); stroke-width: 1.4; }
.leadcard__title { font: 700 clamp(2.5rem, 4.4vw, 3.75rem)/.98 var(--font-display); text-wrap: balance; }
.leadcard__text { margin-top: 12px; font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.45; color: rgba(255, 255, 255, .92); }
.leadcard__points { display: grid; gap: 10px; width: 100%; margin: 28px 0 30px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .22); }
.leadcard__points span { position: relative; padding-left: 26px; color: rgba(255, 255, 255, .92); }
.leadcard__points span::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 3px; background: #FF4B64; border-radius: 2px; }
.leadcard .svc__more { margin-top: auto; }
.leadcard:hover .svc__more .icon { transform: translateX(5px); }
.leadcard:hover { background-color: #082046; }
@media (max-width: 800px) { .lead-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Process steps (a real sequence, so numbered) ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px); }
.steps li { position: relative; padding-top: 64px; }
.steps li::before { content: ""; position: absolute; top: 21px; left: 22px; right: calc(-1 * clamp(18px, 2.4vw, 36px)); height: 2px; background: var(--field); }
.steps li:last-child::before { display: none; }
.steps__n { position: absolute; top: 0; left: 0; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; font: 700 1.5rem/1 var(--font-display); color: #fff; background: var(--red); border-radius: 50%; }
.steps h3 { margin-bottom: .2em; font: 700 clamp(1.875rem, 2.6vw, 2.375rem)/1 var(--font-display); color: var(--blue); }
.steps p { margin: 0; max-width: 26ch; color: var(--muted); }
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .steps li::before { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps li { padding: 0 0 0 64px; }
  .steps li::before { display: none; }
}

/* Lifecycle bar on the Services page: four phases, each listing its services */
.steps--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .steps--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps--four { grid-template-columns: minmax(0, 1fr); } }
.steps h3 a { color: inherit; text-decoration: none; }
.steps h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.steps__links { display: grid; gap: 4px; max-width: none !important; margin-top: 8px !important; }
.steps__links a { font-weight: 600; line-height: 1.35; color: var(--blue-600); text-decoration: none; }
.steps__links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* A to Z capability index */
.cap-index { columns: 4 220px; column-gap: clamp(24px, 4vw, 56px); }
.cap-index li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.cap-index a { display: block; padding: .6em 0; font-weight: 600; color: var(--ink); text-decoration: none; }
.cap-index a:hover { color: var(--red); }
.cap-index + .draft { margin-top: 24px; }

/* ---------- Sector bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(210px, 21vw, 270px); gap: 16px; }
.sec {
  position: relative; isolation: isolate; display: flex; align-items: flex-end; overflow: hidden; padding: 24px;
  color: #fff; text-decoration: none; border-radius: var(--r); transition: background-color .2s;
}
.sec--big { grid-column: span 2; grid-row: span 2; padding: clamp(24px, 3vw, 40px); }
.sec--wide { grid-column: span 2; }
.sec:hover { background-color: #0E3470; }
.sec__icon { position: absolute; z-index: 0; top: 22px; left: 24px; width: 40px; height: 40px; color: var(--sky); }
.sec--big .sec__icon { top: clamp(24px, 3vw, 40px); left: clamp(24px, 3vw, 40px); width: 64px; height: 64px; }
.sec::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(4, 18, 43, .94) 0%, rgba(4, 18, 43, .62) 45%, rgba(4, 18, 43, 0) 88%); }
.sec::before { content: ""; position: absolute; left: 0; bottom: 0; z-index: 4; width: 0; height: 5px; background: var(--red); transition: width .35s ease; }
.sec:hover::before, .sec:focus-visible::before { width: 100%; }
.sec__body { position: relative; z-index: 3; display: grid; gap: 6px; }
.sec__title { font: 700 1.875rem/1 var(--font-display); }
.sec--big .sec__title { font-size: clamp(2.5rem, 4vw, 3.5rem); }
.sec__text { max-width: 34ch; font-size: 1.0625rem; line-height: 1.4; color: rgba(255, 255, 255, .9); }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec--wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 220px; }
  .sec--big, .sec--wide { grid-column: auto; grid-row: auto; }
  .sec--big .sec__title { font-size: 2.25rem; }
}

/* ---------- Before / after ---------- */
.compare-wrap { display: block; }
/* heading and intro on the left, button on the right, full-width slider underneath */
.compare-text { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.compare-text > .h-display, .compare-text > .lead, .compare-text > .draft { grid-column: 1; }
.compare-text > .btn { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin-bottom: 1.4em; }
@media (max-width: 700px) { .compare-text { grid-template-columns: minmax(0, 1fr); } .compare-text > .btn { grid-column: 1; grid-row: auto; justify-self: start; margin: 0; } }
.compare-text .lead { margin-bottom: 1.4em; }
.compare { position: relative; aspect-ratio: 1900 / 980; overflow: hidden; border-radius: var(--r); background: var(--navy-900); --pos: 50%; --c: 50%; --feather: 6%; }
.compare__layer { position: absolute; inset: 0; background-size: cover; background-position: center; }
.compare__after { background-image: var(--after, image-set(url("../img/hero/after.webp") type("image/webp"), url("../img/hero/after.jpg") type("image/jpeg"))), url("../img/hero/after.svg"); }
/* The "before" photo is revealed through a soft-edged mask, so the two photos blend instead of cutting */
.compare__before {
  background-image: var(--before, image-set(url("../img/hero/before.webp") type("image/webp"), url("../img/hero/before.jpg") type("image/jpeg"))), url("../img/hero/before.svg");
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--c) - var(--feather)), transparent calc(var(--c) + var(--feather)));
  mask-image: linear-gradient(90deg, #000 calc(var(--c) - var(--feather)), transparent calc(var(--c) + var(--feather)));
}
.compare__bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; }
.compare__handle { position: absolute; top: 50%; left: var(--pos); width: 52px; height: 52px; margin: -26px 0 0 -26px; display: grid; place-items: center; color: var(--blue); background: #fff; border-radius: 50%; box-shadow: 0 2px 14px rgba(4, 18, 43, .4); }
.compare__handle .icon { width: 26px; height: 26px; }
.compare__tag { position: absolute; top: 16px; padding: .3em .9em; font: 700 .9375rem/1.3 var(--font-body); color: var(--navy-900); background: rgba(255, 255, 255, .94); border-radius: 999px; }
.compare__tag--l { left: 16px; }
.compare__tag--r { right: 16px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare:has(input:focus-visible) .compare__handle { outline: 3px solid #fff; box-shadow: 0 0 0 7px var(--blue-600); }


/* ---------- Client wheel (3D ring: drag, arrows, keyboard, auto-turns, pausable) ---------- */
.wheel {
  --w: 240px; --h: 136px; --R: 530px; --n: 13; --px: 28px; --py: 22px;
  position: relative; height: calc(var(--h) + 96px); overflow: hidden; perspective: calc(var(--R) * 3.4);
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; border-radius: var(--r);
}
.wheel:active { cursor: grabbing; }
.wheel:focus-visible { outline-offset: -3px; }
.wheel__ring { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--R) * -1)); will-change: transform; }
.wheel__item {
  position: absolute; left: 50%; top: 50%; width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
  transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--R)); backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.wheel__card { display: grid; place-items: center; width: 100%; height: 100%; padding: var(--py) var(--px); background: #fff; border-radius: 20px; box-shadow: 0 14px 34px rgba(6, 24, 51, .14), 0 1px 0 rgba(6, 24, 51, .06); }
.wheel__card img { display: block; max-width: calc(var(--w) - 2 * var(--px)); max-height: calc(var(--h) - 2 * var(--py)); width: auto; height: auto; object-fit: contain; pointer-events: none; }
.wheel__controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; }
.wheel__btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; color: var(--blue); background: #fff; border: 2px solid var(--line); border-radius: 50%; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.wheel__btn:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.wheel__btn--text { width: auto; padding: 0 1.3em; font: 600 .9375rem/1 var(--font-body); border-radius: 999px; }
.wheel__btn .icon { width: 22px; height: 22px; }
.icon--flip { transform: scaleX(-1); }
@media (max-width: 900px) { .wheel { --w: 200px; --h: 114px; --R: 440px; } }
@media (max-width: 560px) { .wheel { --w: 168px; --h: 98px; --R: 372px; --px: 20px; --py: 14px; } }
/* ---------- Call to action ---------- */
.cta__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 56px; }
.cta__grid .h-display { margin-bottom: .2em; }
.cta__grid .lead { margin: 0; }
.cta .actions { margin: 0; }

/* ---------- About ---------- */
.prose__lead { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.45; color: var(--ink); }
.prose p { max-width: 60ch; }
.prose--page h2 { margin: 1.6em 0 .3em; font: 700 2rem/1.1 var(--font-display); color: var(--blue); }
.prose--page > .draft { margin-bottom: 1.5em; }

.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 44px); }
.person { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 0; text-align: left; color: inherit; background: none; border: 0; cursor: pointer; }
.person__frame { position: relative; display: block; width: calc(100% - 12px); margin: 0 12px 20px 0; }
.person__frame::before { content: ""; position: absolute; inset: 0; border: 3px solid var(--red); border-radius: var(--r); transform: translate(12px, 12px); transition: transform .2s; }
.person:hover .person__frame::before { transform: translate(16px, 16px); }
.person__photo { position: relative; isolation: isolate; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); }
.person__initials { font: 700 clamp(3.25rem, 6vw, 5rem)/1 var(--font-display); color: #fff; }
.person__name { font: 700 1.75rem/1.1 var(--font-display); color: var(--blue); }
.person__creds { font: 600 1rem var(--font-body); color: var(--muted); white-space: nowrap; }
.person__role { margin-top: 4px; color: var(--muted); }
.person__more { display: inline-flex; align-items: center; gap: .15em; margin-top: 8px; font-weight: 600; color: var(--blue-600); }
.person__more .icon { width: 1.1em; height: 1.1em; }
.person:hover .person__more { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .people { gap: 28px 14px; } .person__name { font-size: 1.5rem; } }

dialog.profile { position: fixed; width: min(800px, 100% - 32px); max-height: calc(100dvh - 32px); padding: clamp(24px, 4vw, 48px); overflow: auto; color: var(--ink); background: #fff; border: 0; border-radius: var(--r); }
dialog.profile::backdrop { background: rgba(4, 18, 43, .72); }
.profile__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 46px; height: 46px; color: var(--blue); background: var(--sheet); border: 0; border-radius: 12px; cursor: pointer; }
.profile__close:hover { background: var(--line); }
.profile__close .icon { width: 22px; height: 22px; }
.profile__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; padding-top: 8px; }
.profile__grid h3 { margin-bottom: .1em; padding-right: 46px; font: 700 clamp(2.25rem, 4vw, 3rem)/1 var(--font-display); color: var(--blue); }
.profile__role { font-weight: 600; color: var(--muted); }
@media (max-width: 600px) { .profile__grid { grid-template-columns: minmax(0, 1fr); } .person__frame--lg { max-width: 180px; } }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px); }
.values li { padding-top: 22px; border-top: 3px solid rgba(255, 255, 255, .35); }
.values h3 { margin-bottom: .2em; font: 700 clamp(2rem, 3vw, 2.5rem)/1 var(--font-display); }
.values p { margin: 0; color: rgba(255, 255, 255, .9); }
@media (max-width: 900px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .values { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Service detail ---------- */
.service { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.services__group + .service { border-top: 0; padding-top: clamp(28px, 4vw, 48px); }
.service--flip .service__media { order: -1; }
.services__group { padding-top: clamp(48px, 7vw, 88px); }
.services__group--ruled { border-top: 1px solid var(--line); }
.services__group .lead { margin: 0; }
.service .h-display { margin-bottom: .3em; }
.service__note { font-weight: 600; color: var(--blue); }
.dashes { display: grid; gap: 10px; margin: 26px 0; }
.dashes li { position: relative; padding-left: 28px; }
.dashes li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 3px; background: var(--red); border-radius: 2px; }
.media { position: relative; isolation: isolate; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); }
.media--wide { aspect-ratio: 16 / 9; }
.media__icon { width: 24%; height: auto; color: var(--sky); opacity: .5; stroke-width: 1.1; }
.media__label { position: absolute; z-index: 3; left: 16px; bottom: 12px; margin: 0; color: rgba(255, 255, 255, .7); }
@media (max-width: 900px) {
  .service { grid-template-columns: minmax(0, 1fr); }
  .service--flip .service__media { order: 0; }
  .service__media { max-width: 600px; }
}

/* ---------- Sectors page ---------- */
.sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 56px); }
.sector .media { margin-bottom: 24px; }
.sector .h-display { margin-bottom: .2em; }
.sector p { max-width: 50ch; color: var(--muted); }
@media (max-width: 760px) { .sectors { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.details { display: grid; gap: 30px; }
.details li { display: flex; gap: 18px; }
.details .icon { margin-top: 3px; color: var(--red); }
.details__label { display: block; font-size: 1rem; font-weight: 600; color: var(--muted); }
.details a:not(.textlink) { font: 700 clamp(1.875rem, 2.6vw, 2.25rem)/1.1 var(--font-display); color: var(--blue); text-decoration: none; overflow-wrap: anywhere; }
.details a:not(.textlink):hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__details .draft { margin-top: 28px; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }

.form { padding: clamp(24px, 4vw, 44px); background: var(--sheet); border-radius: var(--r); }
.form > .h-display { margin-bottom: .6em; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field label { display: block; margin-bottom: 6px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { display: block; width: 100%; padding: .7em .9em; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--field); border-radius: var(--r-sm); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(26, 93, 200, .3); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--red); }
.field__error { margin: 6px 0 0; font-size: 1rem; font-weight: 600; color: var(--red-hover); }
.field--check { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.field--check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--blue); }
.field--check label { margin: 0; font-weight: 400; }
.field--check .field__error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { margin: 16px 0 0; font-weight: 600; }
.form__status.is-ok { color: var(--blue); }
.form__status.is-error { color: var(--red-hover); }
.form__status a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.form .btn[aria-busy="true"] { cursor: progress; opacity: .75; }
/* confirmation shown in place of the form once an enquiry is sent */
.form--done { align-self: start; }
.form--done:focus { outline: none; }
.form--done .icon--xl { color: var(--blue); }
.form--done > p { max-width: 52ch; }
.form__summary { display: grid; gap: 10px; margin: 22px 0; padding: 18px 20px; background: #fff; border-radius: 12px; border: 1px solid rgba(11, 58, 130, .12); }
.form__summary div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; }
.form__summary dt { font-weight: 600; color: var(--blue); }
.form__summary dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 520px) { .form__summary div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Footer ---------- */
.site-footer { padding-bottom: 56px; color: #D5E0F2; background: var(--navy-950); } /* bottom space keeps the copyright clear of the draft-notes button */
.site-footer a { color: #fff; text-decoration: none; }
.footer-base a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, 1fr); gap: 40px; padding-block: clamp(48px, 6vw, 80px) 40px; }
.footer-brand img { display: block; width: 200px; height: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 32ch; margin: 0; }
.footer-h { margin-bottom: 14px; font: 700 1.375rem/1.2 var(--font-display); color: #fff; }
.footer-list { display: grid; gap: 0; }
.footer-list a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-social { display: inline-flex; align-items: center; gap: .5em; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .9375rem; }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---------- Draft helpers (hide with the "Draft notes" button, remove before launch) ---------- */
.draft { margin: .6em 0 0; font-size: .8125rem; line-height: 1.4; color: #5A6580; }
.hero .draft, .section--dark .draft, .section--blue .draft, .page-hero .draft { color: rgba(255, 255, 255, .75); }
.draft--field { display: inline-block; padding: .2em .6em; color: #5A4300 !important; background: #FFF1BF; border-radius: 6px; }
html.drafts-off .draft, html.drafts-off .is-empty { display: none; }
.draft-toggle { position: fixed; left: 16px; bottom: 16px; z-index: 70; padding: .75em 1.1em; font: 600 .8125rem/1 var(--font-body); color: #fff; background: var(--navy-900); border: 2px solid #fff; border-radius: 999px; box-shadow: 0 4px 14px rgba(4, 18, 43, .45); cursor: pointer; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 1.0625rem; }
  .brand img { width: 150px; }
  .hero__title { font-size: clamp(3.25rem, 17vw, 4.5rem); }
  .actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  /* show the finished drawing straight away */
  .iso.is-animating .shape { stroke-dasharray: none; stroke-dashoffset: 0; fill-opacity: 1; }
  .iso.is-animating .grid, .iso.is-animating text { opacity: 1; }
}

/* ---------- Browser surfaces and text wrapping ---------- */
::selection { color: #fff; background: var(--blue); }
input, textarea { caret-color: var(--red); }
a { text-underline-offset: 3px; }
p, li { text-wrap: pretty; }

/* ---------- Contact: what happens next ---------- */
.next { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.next .h-display { margin-bottom: .5em; }
.next__steps { display: grid; gap: 16px; padding: 0; list-style: none; counter-reset: next; }
.next__steps li { position: relative; padding-left: 48px; counter-increment: next; }
.next__steps li::before { content: counter(next); position: absolute; left: 0; top: -.1em; display: grid; place-items: center; width: 32px; height: 32px; font: 700 1.125rem/1 var(--font-display); color: #fff; background: var(--blue); border-radius: 50%; }
.next__steps strong { display: block; color: var(--ink); }
.next__note { margin: 20px 0 0; font-size: 1rem; color: var(--muted); }
.btn:disabled { opacity: .55; cursor: progress; }
.steps__links a { display: block; padding: .35em 0; }

/* ---------- Case studies ---------- */
.section__head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; max-width: none; }
.section__head--row .h-display { margin: 0; }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.case { display: flex; flex-direction: column; overflow: hidden; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, box-shadow .2s; }
.case:hover { border-color: var(--blue); box-shadow: 0 14px 30px rgba(6, 24, 51, .12); }
.case:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.case__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-800); }
.case__body { display: grid; gap: 8px; padding: 22px 24px 26px; }
.case__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9375rem; font-weight: 600; color: var(--muted); }
.case__meta span:first-child { color: var(--red); }
.case__title { font: 700 clamp(1.5rem, 2.2vw, 1.875rem)/1.05 var(--font-display); color: var(--blue); }
.case__figure { color: var(--ink); }
.case__figure strong { font: 700 1.5rem/1 var(--font-display); color: var(--blue); }
.case .svc__more { color: var(--blue-600); margin-top: 4px; }
.case:hover .svc__more .icon { transform: translateX(5px); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px 32px; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0 0 clamp(24px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.facts dt { font-size: .9375rem; font-weight: 600; color: var(--muted); }
.facts dd { margin: 2px 0 0; font: 700 1.375rem/1.2 var(--font-display); color: var(--ink); }
.facts dd a { color: var(--blue); }
.compare--case { margin-bottom: clamp(28px, 4vw, 48px); }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.figures li { display: grid; gap: 6px; padding: 24px 26px; color: #fff; background: var(--navy-900); border-radius: var(--r); }
.figures strong { font: 700 clamp(2.25rem, 4vw, 3.25rem)/1 var(--font-display); }
.figures span { color: rgba(255, 255, 255, .88); }
.case-story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.case-story .h-display { margin-bottom: .4em; }
.case-story .dashes { margin: 0; }
@media (max-width: 900px) { .case-story { grid-template-columns: minmax(0, 1fr); } }
.quote { max-width: 46rem; margin: 0; }
.quote blockquote { margin: 0; font: 600 clamp(1.5rem, 2.8vw, 2.125rem)/1.25 var(--font-display); color: var(--blue); }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption { margin-top: 16px; font-weight: 600; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }

/* draft-only helpers: prompts shown on unpublished project pages */
.prompt { margin: 12px 0; padding: 14px 18px; font-size: 1rem; color: #5A4300; background: #FFF1BF; border: 1px dashed #C9A227; border-radius: 10px; }
.preview-bar { padding: 12px 0; font-weight: 600; color: #5A4300; background: #FFF1BF; border-bottom: 1px solid #E6CF7A; }

/* sector filter on the Projects page (appears from four projects) */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter__btn { min-height: 44px; padding: 0 18px; font: 600 .9375rem/1 var(--font-body); color: var(--blue); background: #fff; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; }
.filter__btn[aria-pressed="true"] { color: #fff; background: var(--blue); border-color: var(--blue); }
.case[hidden] { display: none; }
/* long page titles stay clear of the red frame motif */
.page-hero__title { max-width: 15ch; }
