/* ============ Fonts (embedded) ============ */
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "RF Dewi Expanded"; src: url("../fonts/RFDewiExpanded-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ============ Tokens ============ */
:root {
  --blue: #20448e;
  --blue-deep: #1a3876;
  --cream: #f4f4e7;
  --white: #ffffff;
  --line-light: rgba(255,255,255,.5);
  --line-blue: rgba(32,68,142,.35);
  --ph: #c6c6bd;          /* wireframe placeholder grey */
  --ph-dark: #85857d;     /* placeholder under white text */

  --font-display: "RF Dewi Expanded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 3.5vw, 50px);
  --max: 2160px;   /* content width cap: margins stay 50px up to very wide screens */
  --radius: 2px;
  --ease: cubic-bezier(.19, .8, .22, 1);
  --header-h: 88px;
  /* Space between one section's content and the next. Sections that share a background (Projects + News,
     Contact + footer) split it in half each side, so every gap on the home page comes out the same */
  --section-space: clamp(72px, 8vw, 120px);
  --section-half: calc(var(--section-space) / 2);

  /* Type scale: every text style on the page uses one of these six steps (plus the stat numbers) */
  --step-h1: clamp(2.05rem, 4.4vw + .3rem, 4.25rem);   /* 68px desktop: hero only */
  --step-h2: clamp(1.6rem, 2vw + .6rem, 2.5rem);       /* 40px: section headings */
  --step-h3: clamp(1.2rem, .6vw + .9rem, 1.5rem);      /* 24px: project, news and card titles */
  --step-lede: clamp(1.2rem, .5vw + 1rem, 1.5rem);     /* 23-24px: intro paragraph under a section heading */
  --step-body: clamp(1rem, .25vw + .9rem, 1.0625rem);  /* 17px: all paragraphs and form fields */
  --step-small: .875rem;                               /* 14px: nav, buttons, captions, meta */
  --step-label: .75rem;                                /* 12px: uppercase status labels */
  --step-stat: clamp(2.5rem, 2.6vw + 1rem, 3.25rem);   /* 52px: proof stats, below the H1 */

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  background: var(--white);
  color: var(--blue);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -.005em; }
h1 { font-size: var(--step-h1); line-height: 1.04; }
h2 { font-size: var(--step-h2); line-height: 1.12; }
h3 { font-size: var(--step-h3); line-height: 1.18; }
p { margin: 0; }
p + p { margin-top: .9em; }
/* Shared text styles */
.eyebrow { font-size: var(--step-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.lede { font-size: var(--step-lede); line-height: 1.42; letter-spacing: -.005em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }
.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 { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--blue); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ============ Placeholder imagery (swap for <img> later) ============ */
.ph {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top right, transparent calc(50% - .5px), rgba(0,0,0,.1) 50%, transparent calc(50% + .5px)),
    linear-gradient(to bottom right, transparent calc(50% - .5px), rgba(0,0,0,.1) 50%, transparent calc(50% + .5px)),
    var(--ph);
}
.ph::before {
  content: attr(data-label);
  position: absolute; left: 12px; top: 12px;
  font: 500 var(--step-label)/1.3 var(--font-body);
  color: rgba(0,0,0,.45); background: var(--ph);
  padding: 4px 8px; white-space: nowrap; border-radius: var(--radius);
}
.ph--dark { background-color: var(--ph-dark); }
.hero .ph::before { top: auto; left: auto; right: var(--gutter); bottom: calc(8% + 20px); }
.ph--dark::before { background: var(--ph-dark); color: rgba(255,255,255,.7); }
/* When real photos arrive, put an <img> inside .ph's parent with the same class hooks:
   <img class="ph" src="..." alt="..." style="object-fit:cover;width:100%;height:100%"> */
img.ph { width: 100%; height: 100%; object-fit: cover; background: none; }
img.ph::before { content: none; }

.media { position: relative; overflow: hidden; background-color: rgba(32,68,142,.1); }   /* soft brand tint shows while a photo loads */
.media__inner { position: absolute; inset: 0; will-change: transform; }

/* ============ Buttons & links ============ */
.btn {
  display: inline-flex; align-items: center; gap: .45em;
  font: 500 var(--step-small)/1 var(--font-body);
  padding: .78em 1.15em;
  border-radius: var(--radius);
  background: var(--white); color: var(--blue);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .3s ease, color .3s ease, transform .3s var(--ease);
}
.btn:hover { background: var(--cream); }
.btn:active { transform: translateY(1px); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-deep); }
.arrow { display: inline-block; transition: transform .35s var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(3px); }
a:hover .arrow--down { transform: translate(2px, 2px); }

.text-link {
  display: inline-flex; align-items: center; gap: .35em;
  font-size: var(--step-small); font-weight: 500; text-decoration: none;   /* same size as buttons, so they pair evenly */
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.text-link:hover { background-size: 100% 1px; }

/* ============ Header ============ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--white);
  transition: background-color .45s ease, transform .5s var(--ease), box-shadow .45s ease;
}
.site-header.is-solid { background: var(--blue); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height .45s var(--ease); }
.site-header.is-solid .nav { height: 68px; }

/* Logo: inline SVG traced from the supplied PNG, coloured with currentColor */
.logo { display: inline-block; color: inherit; line-height: 0; width: clamp(88px, 8.4vw, 120px); transition: width .45s var(--ease); }
.logo svg, .logo img { width: 100%; height: auto; aspect-ratio: 2001 / 1060; }
.site-header.is-solid .logo { width: clamp(72px, 6vw, 88px); }

.nav__list { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.nav__list a { font-size: var(--step-small); font-weight: 500; text-decoration: none; }
.nav__list a:not(.btn) { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); padding-bottom: 2px; }
.nav__list a:not(.btn):hover, .nav__list a[aria-current="true"] { background-size: 100% 1px; }
.nav__list .btn { padding: .55em 1em; }

.nav__toggle { display: none; background: none; border: 0; color: inherit; font: 500 var(--step-small)/1 var(--font-body); cursor: pointer; padding: 10px 0; gap: 10px; align-items: center; }
.nav__toggle-bars { width: 22px; height: 10px; position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__toggle-bars::before { top: 0; }
.nav__toggle-bars::after { top: calc(100% - 1.5px); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { top: 4px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { top: 4px; transform: rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative; color: var(--white);
  min-height: clamp(560px, 94svh, 940px);
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media .media__inner { inset: -8% 0; }
.hero__media .ph { transform: scale(1.1); transition: transform 2.4s var(--ease); }
.hero.is-loaded .hero__media .ph { transform: scale(1); }
/* Navy shade over the hero photo: kept mainly behind the text (left and bottom), light elsewhere so the photo stays bright */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,26,54,.42) 0%, rgba(14,26,54,.08) 50%, transparent 68%),
    linear-gradient(0deg, rgba(14,26,54,.28) 0%, transparent 40%),
    linear-gradient(180deg, rgba(14,26,54,.22) 0%, transparent 16%);   /* light band at the top keeps the menu readable */
}
.hero__content { padding-bottom: clamp(64px, 12vh, 150px); padding-top: calc(var(--header-h) + 40px); }
.hero__eyebrow { font-size: var(--step-small); font-weight: 500; margin-bottom: 14px; }
.hero h1 { max-width: 13.5em; }
.hero__lede { max-width: 31em; margin-top: 18px; color: rgba(255,255,255,.92); }
.hero .btn { margin-top: 28px; }

/* ============ About ============ */
.about { position: relative; background: var(--blue); color: var(--white); padding-top: var(--section-space); }
.about > .wrap { position: relative; z-index: 1; }   /* content sits above the brand grid */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__copy { max-width: 36em; }
.about__copy h2 { margin-bottom: clamp(20px, 2.4vw, 32px); }
.about__copy p { color: rgba(255,255,255,.82); }
.about__copy .lede { color: var(--white); }
.lede + p { margin-top: 1.2em; }
.about__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.about__more > div { overflow: hidden; }
.about__more h3 { font-size: var(--step-h3); margin: 1.6em 0 .45em; color: var(--white); }
.about__more h3 + p { margin-top: 0; }
.about__more.is-open { grid-template-rows: 1fr; }
.about__copy .btn { margin-top: clamp(28px, 3vw, 40px); }

.people { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.person { margin: 0; }
.person .media { aspect-ratio: 230 / 306; border-radius: var(--radius); }
.person .media__inner { inset: -6% 0; }
.person figcaption { font-size: var(--step-small); margin-top: 0; padding: 12px 14px 6px 0; width: fit-content; background: var(--blue); color: rgba(255,255,255,.85); }   /* solid backing keeps captions clear of the grid lines */
.person figcaption strong { display: block; font-weight: 500; font-size: var(--step-body); color: var(--white); }

/* ============ Proof ============ */
.proof-wrap { position: relative; padding-top: var(--section-space); padding-bottom: var(--section-half); }   /* the narrow blue band under the Proof box */
/* Brand grid. main.js sets left/top/height so it starts just inside Len's portrait, rises two rows above the photos,
   runs off the right edge and finishes two rows behind the Proof box. */
.grid-deco {
  --cell: 42px;
  --overlap: 68px;   /* 60px behind Len's portrait, plus the 8px gap between the photos */
  position: absolute; z-index: 0; right: 0;
  left: 55%; top: 0; height: 0;   /* overwritten by main.js */
  background-image:
    linear-gradient(to right, rgba(255,255,255,.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  border-bottom: 1px solid rgba(255,255,255,.4);
  pointer-events: none;
}
html:not(.js) .grid-deco { display: none; }
.js .grid-deco { clip-path: inset(0 100% 100% 0); transition: clip-path 1.8s var(--ease) .1s; }
.js .grid-deco.in { clip-path: inset(0 0 0 0); }

.proof {
  position: relative; z-index: 1;
  background: var(--cream); color: var(--blue);
  border-radius: var(--radius);
  padding: clamp(36px, 5.5vw, 88px) clamp(24px, 3.4vw, 48px) clamp(36px, 5.5vw, 88px) clamp(24px, 3.4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.proof__intro { max-width: 26em; padding-left: clamp(0px, 2vw, 32px); }
.proof__intro h2 { margin-bottom: 20px; }
/* Stats as "lots": cells divided by fine lines, label top-left, number and note bottom-left */
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--line-blue);
  margin: 0;
}
.stat {
  display: flex; flex-direction: column;
  min-height: clamp(160px, 13vw, 210px);
  padding: 18px clamp(16px, 2vw, 28px) 22px;
}
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat + .stat { border-left: 1px solid var(--line-blue); }
.stat .eyebrow { margin: 0 0 28px; }
.stat dd { margin: 0; }
.stat .stat__num { margin-top: auto; font: 700 var(--step-stat)/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat .stat__note { font-size: var(--step-small); margin-top: 10px; opacity: .8; }

/* ============ Projects ============ */
.projects-section { background: var(--cream); padding-block: var(--section-space); transition: background-color .9s ease; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 2.6vw, 36px); flex-wrap: wrap; }
.section-head p { margin-top: 12px; }

.view-toggle { display: inline-flex; border: 1px solid var(--blue); border-radius: var(--radius); padding: 0; position: relative; }
.view-toggle button {
  position: relative; z-index: 1;
  font: 500 var(--step-small)/1 var(--font-body); letter-spacing: .01em;
  padding: .75em 1.25em; border: 0; background: transparent; color: var(--blue); cursor: pointer;
  transition: color .35s ease;
}
.view-toggle button[aria-pressed="true"] { color: var(--white); }
.view-toggle__pill { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; background: var(--blue); transition: transform .45s var(--ease); }
.view-toggle[data-view="map"] .view-toggle__pill { transform: translateX(100%); }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
/* No overflow clipping on the card itself, so aspect-ratio acts as a minimum and the card can grow when opened */
.project {
  position: relative; border-radius: var(--radius);
  aspect-ratio: 304 / 382; color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.project .media { position: absolute; inset: 0; border-radius: inherit; }
.project .ph { transition: transform 1.4s var(--ease); }
.project:hover .ph { transform: scale(1.045); }
.project:not(.project--soon)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(0deg, rgba(10,16,30,.72) 0%, rgba(10,16,30,.25) 38%, transparent 60%);
}
/* Deeper shade that fades in when the card is opened, so the paragraph stays readable */
.project:not(.project--soon) .media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(10,16,30,.9) 0%, rgba(10,16,30,.7) 40%, rgba(10,16,30,.25) 72%, transparent 92%);
  opacity: 0; transition: opacity .6s ease;
}
.project.is-open .media::after { opacity: 1; }
.project__body { position: relative; z-index: 2; padding: clamp(20px, 2vw, 28px); }
.project__status { font-size: var(--step-label); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.project h3 { margin-bottom: 4px; }
.project .project__address { font-size: var(--step-small); opacity: .85; margin-top: 2px; }

/* Read More: the whole card is the toggle; the revealed link sits above it */
.project__toggle {
  display: inline-flex; gap: .35em; margin-top: 12px; padding: 0;
  font: 500 var(--step-small)/1.4 var(--font-body); color: inherit;   /* button text size, like every action link */
  background: none; border: 0; cursor: pointer;
}
.project__toggle::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.project__toggle .arrow { transition: transform .45s var(--ease); }
.project:hover .project__toggle .arrow { transform: translate(2px, 2px); }
.project.is-open .project__toggle .arrow { transform: rotate(180deg); }
.project__reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .65s var(--ease); }
.project__reveal > div {
  min-height: 0; overflow: hidden;
  padding: 0 4px 4px; margin: 0 -4px;   /* room for the button's focus ring */
  visibility: hidden; opacity: 0;
  transition: opacity .4s ease, visibility 0s linear .65s;
}
.project.is-open .project__reveal { grid-template-rows: 1fr; }
.project.is-open .project__reveal > div { visibility: visible; opacity: 1; transition: opacity .5s ease .15s, visibility 0s; }
.project__reveal p { margin-top: 16px; max-width: 30em; color: rgba(255,255,255,.92); }
.project__reveal .btn { position: relative; z-index: 4; margin-top: 18px; }

.project--soon { background: var(--blue); justify-content: center; }
.project--soon .project__body { padding: clamp(24px, 2.6vw, 40px); }
.project--soon h3 { margin-bottom: 14px; max-width: 11em; }
.project--soon p { max-width: 24em; color: rgba(255,255,255,.92); }
.project--soon .btn { margin-top: 22px; }

/* ============ Map view ============ */
.projects-map__canvas {
  position: relative; z-index: 0; isolation: isolate;   /* keep Leaflet's high z-indexes inside the map, below the fixed header */
  height: clamp(440px, 62vh, 660px); border-radius: var(--radius); overflow: hidden;
  background: #e9e8de; font-family: var(--font-body);
}
.projects-map__canvas .leaflet-tile-pane { filter: sepia(.18) saturate(.85); }   /* warm the basemap towards the brand cream */
.projects-map .leaflet-container { font-family: var(--font-body); font-size: var(--step-body); }   /* beat Leaflet's own font */
.projects-map__error { padding: 40px; color: var(--blue); }
.projects-map .leaflet-control-zoom a { color: var(--blue); }
.projects-map .leaflet-control-attribution { font-size: 10px; }

/* Pins: a square marker on the exact point, with the project name in a tag above it */
.map-pin { position: relative; }
.map-pin::before {
  content: ""; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px;
  background: var(--blue); border: 2px solid var(--white); box-shadow: 0 1px 4px rgba(10,16,30,.35);
}
.map-pin span {
  position: absolute; left: 0; bottom: 14px; transform: translateX(-50%);
  padding: 7px 11px; white-space: nowrap;
  background: var(--blue); color: var(--white); border-radius: var(--radius);
  font: 700 var(--step-small)/1 var(--font-display); letter-spacing: .01em;
  box-shadow: 0 6px 16px -6px rgba(10,16,30,.45);
  transition: background-color .3s ease, transform .35s var(--ease);
}
.map-pin span::after {
  content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--blue); transition: border-color .3s ease;
}
.map-pin:hover span, .map-pin:focus-visible span { background: var(--blue-deep); transform: translate(-50%, -2px); }
.map-pin:hover span::after, .map-pin:focus-visible span::after { border-top-color: var(--blue-deep); }
.map-pin:focus-visible { outline: none; }

/* Pop-up card */
.map-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px -16px rgba(10,16,30,.45); }
.map-popup .leaflet-popup-content { margin: 0; width: min(290px, 72vw) !important; font: inherit; color: var(--blue); line-height: 1.5; }
.map-popup .leaflet-popup-tip { box-shadow: none; }
.map-popup a.leaflet-popup-close-button { color: var(--white); font-size: 22px; width: 32px; height: 32px; top: 4px; right: 4px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.map-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.map-card__body { padding: 16px 18px 18px; }
.map-card .eyebrow { margin: 0 0 8px; }
.map-card__title { font: 700 var(--step-h3)/1.15 var(--font-display); margin: 0 0 2px; }
.map-card__meta { font-size: var(--step-small); margin: 0 0 10px; opacity: .8; }
.map-card p:not([class]) { font-size: var(--step-small); margin: 0; }
.map-card .btn { margin-top: 14px; }
.map-card .btn--blue { color: var(--white); }


/* ============ News ============ */
/* News has its own white background, with a clean edge against the cream Projects section above */
.news-section { background: var(--white); padding-block: var(--section-space); transition: background-color .9s ease; }
.news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px; align-items: center; }
.news__intro { padding-right: clamp(16px, 4vw, 64px); }
.news__intro p { margin-top: 12px; }
.news__intro .btn { margin-top: clamp(28px, 5vw, 64px); }
.news__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; margin: 0; padding: 0; }
.post {
  position: relative; height: 100%;
  background: var(--cream); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(32,68,142,.08);
  transition: box-shadow .5s ease, transform .6s var(--ease);
}
.post:hover { box-shadow: 0 14px 34px -18px rgba(32,68,142,.35); transform: translateY(-3px); }
.post .media { aspect-ratio: 305 / 190; }
.post .ph { transition: transform 1.4s var(--ease); }
.post:hover .ph { transform: scale(1.045); }
.post__body { padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; flex: 1; }
.post .post__meta { font-size: var(--step-label); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
/* Cards use h3 on the home page and h2 on the News page (where each article is a top-level item); both look the same */
.post h2, .post h3 { font-size: var(--step-h3); line-height: 1.18; margin-bottom: 6px; }
.post h2 a, .post h3 a { text-decoration: none; }
.post h2 a::after, .post h3 a::after { content: ""; position: absolute; inset: 0; }
.post__more { margin-top: auto; padding-top: 28px; font-size: var(--step-small); font-weight: 500; display: inline-flex; gap: .35em; }
.post:hover .post__more .arrow { transform: translateX(3px); }

/* ============ Inner pages: cream page header with the brand grid ============ */
.page-hero {
  /* Cream that fades into the white article area below, so there is no hard edge */
  position: relative; overflow: hidden; background: linear-gradient(to bottom, var(--cream) 0%, var(--cream) 50%, var(--white) 100%);
  padding: calc(68px + env(safe-area-inset-top, 0px) + clamp(48px, 7vw, 104px)) 0 clamp(80px, 10vw, 160px);
}
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--step-h1); max-width: 12em; }
.page-hero .lede { max-width: 32em; margin-top: clamp(16px, 2vw, 24px); }
.page-hero__grid {
  position: absolute; right: 0; top: 0; width: min(50vw, 720px); height: 100%; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(32,68,142,.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(32,68,142,.18) 1px, transparent 1px);
  background-size: 42px 42px; background-position: right top;
  /* Fades out to the left and towards the bottom, following the cream-to-white gradient */
  -webkit-mask: linear-gradient(to left, #000 25%, transparent 90%), linear-gradient(to bottom, #000 45%, transparent 95%);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(to left, #000 25%, transparent 90%), linear-gradient(to bottom, #000 45%, transparent 95%);
  mask-composite: intersect;
}
.breadcrumb { margin-bottom: clamp(24px, 3vw, 40px); font-size: var(--step-small); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.breadcrumb a:hover { background-size: 100% 1px; }
.breadcrumb [aria-current] { opacity: .7; }

/* ============ News page ============ */
.news-index { padding-block: 0 clamp(80px, 9vw, 150px); }   /* the page header's white fade provides the space above */
.news-filters {
  display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap;
  padding-bottom: clamp(24px, 3vw, 36px); margin-bottom: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line-blue);
}
.news-filters__group { display: flex; flex-wrap: wrap; gap: 8px; }
.news-filters__group button {
  font: 500 var(--step-small)/1 var(--font-body); color: var(--blue); cursor: pointer;
  padding: .7em 1.1em; border: 1px solid var(--line-blue); border-radius: var(--radius); background: transparent;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.news-filters__group button:hover { border-color: var(--blue); }
.news-filters__group button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.news-filters__count { font-size: var(--step-small); opacity: .75; }

/* More generous than the home page's 8px tiles: this is a growing list people scan card by card */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3vw, 40px) clamp(16px, 1.8vw, 24px); list-style: none; margin: 0; padding: 0; }
.news-grid .post__body { padding: clamp(22px, 2.2vw, 32px); }
.news-grid__feature { grid-column: 1 / -1; }
/* Featured article: image and copy side by side, with a larger title */
.post--feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.post--feature .media { aspect-ratio: auto; min-height: clamp(280px, 30vw, 440px); }
.news-grid .post--feature .post__body { padding: clamp(24px, 3.4vw, 56px); justify-content: center; }
.post--feature h2 { font-size: var(--step-h2); line-height: 1.12; margin-bottom: 14px; max-width: 14em; }
.post--feature p:not(.post__meta) { max-width: 30em; }
.post--feature .post__more { margin-top: 0; }

.news-more { display: grid; justify-items: center; gap: 14px; margin-top: clamp(48px, 5vw, 72px); }
.news-more .btn:hover .arrow { transform: translateY(2px); }
.news-more__status { font-size: var(--step-small); opacity: .75; min-height: 1.4em; }
.news-empty { padding: 40px 0; }
.news-empty button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ============ Contact ============ */
.contact-section { padding-bottom: var(--section-half); background: var(--white); transition: background-color .9s ease; }
/* Approaching the cream footer, everything above it fades to cream too (main.js toggles .tone-footer),
   so the page flows into the footer with no hard edge. */
.js.tone-footer .projects-section, .js.tone-footer .news-section, .js.tone-footer .contact-section { background: var(--cream); }
.contact {
  background: var(--blue); color: var(--white); border-radius: var(--radius);
  padding: clamp(40px, 7vw, 104px) clamp(24px, 3.4vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 96px);
}
.contact__intro { padding-left: clamp(0px, 1.6vw, 24px); }
.contact__intro h2 { margin-bottom: 20px; }
.contact__intro > p { max-width: 24em; color: rgba(255,255,255,.92); }
.contact-name { font-weight: 500; }   /* the named contact above their email, phone and address */
.contact__details { font-style: normal; margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 8px; }
.contact__details a { text-decoration: none; justify-self: start; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.contact__details a:hover { background-size: 100% 1px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 8px; align-content: start; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; display: block;
  font: inherit; color: var(--white);
  background: transparent; border: 0; border-radius: 0;
  border-bottom: 1px solid var(--line-light);
  padding: 22px 0 9px;
  transition: border-color .3s ease, box-shadow .3s ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--white); box-shadow: 0 1px 0 var(--white); }
.field label {
  position: absolute; left: 0; top: 22px;
  color: rgba(255,255,255,.88);
  transform-origin: left top; pointer-events: none;
  transition: transform .35s var(--ease), font-size .35s var(--ease), color .3s ease;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field.has-value label { transform: translateY(-20px); font-size: var(--step-small); color: rgba(255,255,255,.7); }   /* floats up to the Small step */
.field select { cursor: pointer; padding-right: 24px; }
.field select option { color: var(--blue); }
.field--select::after { content: "↓"; position: absolute; right: 0; top: 22px; pointer-events: none; transition: transform .35s var(--ease); }
.field--select:focus-within::after { transform: translateY(2px); }
.field input:user-invalid { border-color: #ffd2c2; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 2px; }
.form__status { font-size: var(--step-small); color: rgba(255,255,255,.9); }

/* Marketing opt-in checkbox */
.check { display: flex; align-items: flex-start; gap: 12px; margin-top: 4px; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 20px; height: 20px; margin: 1px 0 0; border: 1px solid var(--line-light); border-radius: var(--radius);
  background: transparent; cursor: pointer; display: grid; place-content: center;
  transition: background-color .25s ease, border-color .25s ease;
}
.check input::after {
  content: ""; width: 10px; height: 5px; border: solid var(--blue); border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .25s var(--ease);
}
.check input:checked { background: var(--white); border-color: var(--white); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:hover { border-color: var(--white); }
.check label { font-size: var(--step-small); color: rgba(255,255,255,.88); cursor: pointer; }

/* Honeypot: off-screen for people, still in the form for bots */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Privacy notice under the submit button */
.form__legal { grid-column: 1 / -1; font-size: var(--step-label); line-height: 1.6; color: rgba(255,255,255,.7); max-width: 46em; }
.form__legal a { color: var(--white); text-underline-offset: 2px; }
/* reCAPTCHA v3's floating badge is hidden; the attribution text above is Google's permitted alternative */
.grecaptcha-badge { visibility: hidden; }

/* ============ Article page ============ */
/* One centred reading column (~68 characters) for the header and body; images and CTA band run wider */
.article-col { max-width: 760px; margin-inline: auto; }
.page-hero--article { padding-bottom: clamp(64px, 8vw, 120px); }
.page-hero--article h1 { font-size: var(--step-stat); line-height: 1.08; max-width: none; text-wrap: balance; }
.article-meta { font-size: var(--step-label); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }

.article-hero { margin: 0 auto; }
.article-hero .media { aspect-ratio: 16 / 8; border-radius: var(--radius); }
.article-hero figcaption, .prose-figure figcaption { margin-top: 12px; font-size: var(--step-small); opacity: .7; }

.prose { padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 64px); }
.prose > p, .prose > ol { max-width: 68ch; }
.prose p + p, .prose ol + p { margin-top: 1.1em; }
.prose h2 { margin: 2.2em 0 .7em; text-wrap: balance; }
.prose h3 { margin: 1.8em 0 .5em; }
.prose h2 + h3 { margin-top: 1em; }
.prose ol { margin: 1em 0 0; padding-left: 1.4em; display: grid; gap: .5em; }
.prose ol li::marker { font-weight: 700; }
.prose-figure { margin: 2em 0 0; }
.prose-figure .media { aspect-ratio: 16 / 10; border-radius: var(--radius); }

/* Pull quote, style 1: large statement in the display face between two fine rules */
.pullquote { margin: clamp(40px, 5vw, 64px) 0; padding-block: clamp(28px, 3vw, 40px); border-block: 1px solid var(--line-blue); }
.pullquote blockquote { margin: 0; }
.pullquote blockquote p { font: 700 var(--step-h2)/1.18 var(--font-display); letter-spacing: -.005em; text-wrap: balance; }
.pullquote blockquote p::before { content: "\201C"; }
.pullquote blockquote p::after { content: "\201D"; }
.pullquote figcaption { margin-top: 20px; font-size: var(--step-small); }
.pullquote figcaption strong { display: block; font-size: var(--step-body); font-weight: 500; }
/* Pull quote, style 2: quieter, in the lede size with a rule down the left */
.pullquote--rule { padding: 4px 0 4px clamp(20px, 2.4vw, 32px); border-block: 0; border-left: 2px solid var(--blue); }
.pullquote--rule blockquote p { font: 400 var(--step-lede)/1.42 var(--font-body); }

/* CTA, style 1: image card inside the article */
.cta-card {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); margin: clamp(40px, 5vw, 64px) 0;
  background: var(--cream); border-radius: var(--radius); overflow: hidden;
}
.cta-card__media { min-height: 260px; }
.cta-card__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.cta-card .eyebrow { margin-bottom: 10px; }
.cta-card__title { font: 700 var(--step-h3)/1.18 var(--font-display); margin-bottom: 8px; }
.cta-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 22px; }

/* CTA, style 2: full-width blue band with the brand grid */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius);
  background: var(--blue); color: var(--white);
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: end; gap: 28px 48px;
  padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 64px);
}
.cta-band__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: 42px 42px; background-position: right top;
  -webkit-mask: linear-gradient(to left, #000 15%, transparent 70%); mask: linear-gradient(to left, #000 15%, transparent 70%);
}
.cta-band .eyebrow { margin-bottom: 14px; opacity: .75; }
.cta-band__title { font: 700 var(--step-h2)/1.12 var(--font-display); max-width: 16em; text-wrap: balance; }
.cta-band__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.article-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: clamp(32px, 4vw, 48px); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-blue); }
.related { padding-block: clamp(48px, 6vw, 88px) clamp(80px, 9vw, 150px); }
.related h2 { margin-bottom: clamp(24px, 3vw, 36px); }

/* ============ Slide-out contact form (sub-pages) ============ */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,16,30,.45);
  opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 210; width: min(560px, 100%); overflow-y: auto; overscroll-behavior: contain;
  background: var(--blue); color: var(--white);
  padding: calc(env(safe-area-inset-top, 0px) + 28px) clamp(24px, 4vw, 48px) calc(env(safe-area-inset-bottom, 0px) + 40px);
  box-shadow: -24px 0 60px -30px rgba(10,16,30,.6);
  transform: translateX(100%); visibility: hidden;
  transition: transform .6s var(--ease), visibility 0s linear .6s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .6s var(--ease); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.drawer__head .eyebrow { margin: 0; opacity: .7; }
.drawer__close {
  display: grid; place-content: center; width: 40px; height: 40px; flex: none; cursor: pointer;
  background: transparent; color: var(--white); font-size: 26px; line-height: 1;
  border: 1px solid var(--line-light); border-radius: var(--radius); transition: border-color .3s ease, transform .35s var(--ease);
}
.drawer__close:hover { border-color: var(--white); transform: rotate(90deg); }
.drawer__title { margin: clamp(28px, 4vw, 44px) 0 14px; }
.drawer__intro { color: rgba(255,255,255,.88); max-width: 30em; }
/* Phone, email and address sit after the form as a secondary option */
.drawer__details { margin-top: clamp(32px, 4vw, 44px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line-light); }
.drawer__details .eyebrow { margin-bottom: 14px; opacity: .7; }
.drawer__details address { font-style: normal; display: grid; gap: 8px; justify-items: start; }
.drawer__details a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.drawer__details a:hover { background-size: 100% 1px; }
.drawer .form { margin-top: clamp(28px, 4vw, 40px); }

/* ============ Footer ============ */
.site-footer { background: var(--cream); color: var(--blue); padding-top: clamp(64px, 7vw, 104px); overflow: hidden; }
.site-footer--joined { padding-top: var(--section-half); }   /* home page: the Contact section above fades into it */
.site-footer a { text-decoration: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .eyebrow { margin-bottom: 18px; opacity: .7; }
.footer__row { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
/* Display-sized, but a paragraph rather than a heading so the page keeps one H1 */
.footer__tagline { font: 700 var(--step-h2)/1.12 var(--font-display); letter-spacing: -.005em; max-width: 11em; }
.footer__cta .btn { margin-top: 24px; }
.footer__col a, .footer__bar a:not(.footer__top-btn) {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease);
}
.footer__col a:hover, .footer__bar a:not(.footer__top-btn):hover { background-size: 100% 1px; }
.footer__sub { display: block; font-size: var(--step-small); opacity: .7; }
.footer__col address { font-style: normal; display: grid; gap: 10px; justify-items: start; }

/* Sign-off: the logo sits on a full-bleed band of the brand grid */
.footer__sign { position: relative; margin-top: clamp(56px, 7vw, 104px); }
.footer__grid {
  position: absolute; inset: 0 calc(var(--gutter) * -1 - max(0px, (100vw - var(--max)) / 2));
  background-image:
    linear-gradient(to right, rgba(32,68,142,.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(32,68,142,.2) 1px, transparent 1px);
  background-size: 42px 42px;
  border-bottom: 1px solid rgba(32,68,142,.2);   /* closes the last row in the grid's own line colour, full width */
}
.js .footer__grid { clip-path: inset(0 100% 100% 0); transition: clip-path 1.8s var(--ease) .1s; }
.js .footer__sign.in .footer__grid { clip-path: inset(0 0 0 0); }
.footer__logo { position: relative; display: block; width: min(52%, 760px); padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 3vw, 40px); color: var(--blue); }
.footer__logo svg, .footer__logo img { width: 100%; height: auto; aspect-ratio: 2001 / 1060; }

.footer__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-block: 22px calc(28px + env(safe-area-inset-bottom, 0px));
  font-size: var(--step-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.footer__bar > div { display: flex; gap: 28px; flex-wrap: wrap; opacity: .85; }
.footer__bar p { margin: 0; }
.footer__top-btn {
  display: inline-grid; place-content: center; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line-blue); border-radius: var(--radius); font-size: var(--step-body);
  transition: border-color .3s ease, background-color .3s ease, color .3s ease, transform .35s var(--ease);
}
.footer__top-btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); transform: translateY(-2px); }

/* ============ Motion: scroll reveals ============ */
/* Word-masked heading reveal (JS splits words; text stays as real text for SEO) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.wi { display: inline-block; }
.js [data-split] .wi { transform: translateY(108%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 60ms + var(--d, 0ms)); }
.js [data-split].in .wi { transform: none; }

/* Supporting copy: a quiet fade that follows its heading */
.js [data-fade] { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-fade].in { opacity: 1; transform: none; }

/* Imagery: curtain reveal from the top with a slow settle */
.js [data-clip] { clip-path: inset(0 0 100% 0); transition: clip-path 1.25s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-clip].in { clip-path: inset(0 0 0 0); }
.js [data-clip] .ph { transform: scale(1.14); transition: transform 1.8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-clip].in .ph { transform: scale(1); }
.js .project[data-clip].in:hover .ph, .js .post [data-clip].in .ph { transition-delay: 0ms; }
.js .project[data-clip].in:hover .ph, .js .post:hover [data-clip].in .ph { transform: scale(1.045); }

/* Touch screens: taller tap areas for short text links (breadcrumb, footer lists) without changing the layout */
@media (pointer: coarse) {
  .breadcrumb a, .footer__col a { display: inline-block; padding-block: 6px; margin-block: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0ms !important; animation-duration: .01ms !important; }
  .js [data-split] .wi, .js [data-fade], .js [data-clip], .js [data-clip] .ph, .hero__media .ph { transform: none !important; opacity: 1 !important; clip-path: none !important; }
  .js .grid-deco, .js .footer__grid { clip-path: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .footer__cta { grid-column: 1 / -1; }
  .proof { grid-template-columns: 1fr; }
  .proof__intro { padding-left: 0; max-width: 34em; }
  .news { grid-template-columns: 1fr; gap: 32px; }
  .news__intro { display: grid; grid-template-columns: 1fr auto; align-items: end; padding-right: 0; }
  .news__intro .btn { margin-top: 0; grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 860px) {
  .cta-card, .cta-band { grid-template-columns: minmax(0, 1fr); }
  .cta-card__media { min-height: 0; aspect-ratio: 16 / 9; }
  .cta-band { align-items: start; }
  .post--feature { grid-template-columns: minmax(0, 1fr); }
  .post--feature .media { min-height: 0; aspect-ratio: 16 / 10; }
  :root { --header-h: 72px; }
  .nav__toggle { display: inline-flex; position: relative; z-index: 2; }
  .nav__list {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px;
    padding: calc(env(safe-area-inset-top, 0px) + 80px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 40px);
    background: var(--blue);
    opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s;
  }
  .nav__list a:not(.btn) { font: 700 1.9rem/1.1 var(--font-display); }
  .nav__list .btn { margin-top: 12px; font-size: 1rem; }
  .nav.is-open .nav__list { opacity: 1; visibility: visible; transition: opacity .4s ease; }
  .nav.is-open .logo { position: relative; z-index: 2; }

  .about__grid { grid-template-columns: 1fr; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects .project--soon { grid-column: 1 / -1; aspect-ratio: auto; min-height: 260px; }
  .contact { grid-template-columns: 1fr; }
  .contact__intro { padding-left: 0; }
  .grid-deco { --cell: 32px; --overlap: 48px; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .footer__row { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .footer__logo { width: 82%; }
  .projects-map__canvas { height: 540px; }
  .map-card img { height: 96px; }
  .map-card p:not([class]) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
  .projects { grid-template-columns: minmax(0, 1fr); }
  .project { aspect-ratio: 4 / 4.4; }
  .news__intro { display: block; }
  .news__intro .btn { margin-top: 24px; }
  .news__list { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 0; padding: 18px 0 22px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line-blue); }
  .stat .eyebrow { margin-bottom: 18px; }
}
