/* Graziana Comizzoli · site styles */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-normal.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-normal.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest-950: #0B1A12;
  --forest-900: #10241A;
  --forest-800: #173324;
  --night: #111617;          /* the dark field of the leaf photograph */
  --ivory: #F6F1E7;
  --ivory-2: #EFE8DA;
  --gold: #B39256;
  --gold-light: #D8BE86;
  --gold-deep: #7A5C28;
  --ink: #17201A;
  --ink-soft: #2B332D;
  --ink-muted: #545C53;
  --on-dark: #F6F1E7;
  --on-dark-muted: rgba(246, 241, 231, 0.84);
  --hairline-dark: rgba(216, 190, 134, 0.3);
  --hairline-light: rgba(23, 32, 26, 0.16);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --max: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --gap: clamp(16px, 2vw, 24px);
  --section: clamp(104px, 13vw, 184px);
  --header: 4.75rem;          /* 76px at default size; scales with enlarged text */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-curtain: cubic-bezier(0.77, 0, 0.18, 1);
  --focus: var(--gold-deep);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
  scrollbar-color: var(--gold-deep) var(--forest-950);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-wrap: break-word;
}

::selection { background: var(--gold-light); color: var(--forest-950); }

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; text-wrap: pretty; }
/* Long words break only when enlarged text would otherwise overflow (WCAG 1.4.4). */
h1, h2, h3, .wordmark, .btn, .hero-role { overflow-wrap: anywhere; }

.site-header, .hero, .journey, .quote, .contact, .site-footer, .skip { --focus: var(--gold-light); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.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: 16px; top: -64px; z-index: 40;
  padding: 12px 18px; background: var(--ivory); color: var(--forest-950);
  font-size: 0.9375rem; text-decoration: none;
}
.skip:focus { top: 16px; }

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

/* ---------- Type roles ---------- */

h2 {
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.9vw, 1.6875rem);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.prose > p + p { margin-top: 1.35rem; }
.prose > .lede { margin-bottom: 2.25rem; }
.prose > p:not(.lede) { max-width: 62ch; }

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75em;
  min-height: 54px; padding: 0 30px;
  border: 1px solid transparent;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
/* A fill that sweeps in from the left on hover and leaves to the right. */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: right center;
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left center; }
.btn svg { width: 15px; height: 15px; flex: none; transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translate(2px, -2px); }
.hero-actions .btn-gold:hover svg { transform: translateY(3px); }

.btn-gold { background: var(--gold-light); color: var(--forest-950); }
.btn-gold::before { background: var(--ivory); }
.btn-ghost { border-color: var(--hairline-dark); color: var(--on-dark); }
.btn-ghost::before { background: rgba(216, 190, 134, 0.14); }
.btn-ghost:hover { border-color: var(--gold-light); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  background: rgba(11, 26, 18, 0.96);
  color: var(--on-dark);
  border-bottom: 1px solid var(--hairline-dark);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.5s var(--ease-out);
}
/* Transparent over the hero only while the scroll script is running. */
.js .site-header:not(.is-scrolled):not(.is-solid) { background: transparent; border-bottom-color: transparent; }
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled { background: rgba(11, 26, 18, 0.9); backdrop-filter: saturate(1.2) blur(16px); }
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px;
  min-height: var(--header);
}

.wordmark {
  margin: 0;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.1;
  letter-spacing: -0.005em; text-decoration: none; color: inherit;
}
.wordmark em { font-style: italic; font-weight: 400; }

.site-header ul { display: flex; gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.site-header nav a {
  position: relative; display: block; padding-block: 12px;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--on-dark-muted);
  transition: color 0.25s var(--ease);
}
.site-header nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px;
  background: currentColor; transform: scaleX(0); transition: transform 0.4s var(--ease-out);
}
.site-header nav a:hover { color: var(--on-dark); }
.site-header nav a:hover::after { transform: scaleX(1); }
.site-header nav .nav-cta { color: var(--gold-light); }

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header) + clamp(40px, 8vh, 96px));
  background: var(--forest-950);
  color: var(--on-dark);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 65% at 80% 28%, rgba(44, 84, 64, 0.45), transparent 70%),
    radial-gradient(40% 50% at 8% 95%, rgba(179, 146, 86, 0.10), transparent 70%);
}

.hero-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: end;
}
.hero-copy { grid-column: 1 / 8; padding-bottom: clamp(56px, 7vw, 104px); }

.hero-title {
  margin: 0 0 1.75rem;
  font-size: clamp(3.5rem, 7.4vw, 6rem);
  font-weight: 400; line-height: 0.98; letter-spacing: -0.03em;
  color: var(--on-dark);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero-title .line > * { display: inline-block; }
.hero-title em { font-style: italic; padding-left: 0.6em; letter-spacing: -0.02em; }

.hero-role {
  margin-bottom: 1.75rem;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.6;
  color: var(--gold-light);
}

.hero-lede {
  max-width: 36ch; margin-bottom: 2.75rem;
  font-size: clamp(1.125rem, 1.35vw, 1.25rem); line-height: 1.7; letter-spacing: 0.005em;
  color: var(--on-dark-muted);
}

.hero-portrait { grid-column: 8 / 13; position: relative; margin: 0; padding-bottom: 32px; }
.portrait-wrap { position: relative; isolation: isolate; }
.portrait-wrap::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; z-index: -1;
  border: 1px solid var(--hairline-dark);
}
.portrait-frame { position: relative; overflow: hidden; aspect-ratio: 1536 / 1864; background: var(--forest-900); }
.portrait-frame picture, .still picture { height: 100%; }
.portrait-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.08);
}
.hero-portrait figcaption {
  display: flex; align-items: center; gap: 14px; margin-top: 44px;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-dark-muted);
}
.hero-portrait figcaption::before { content: ""; width: 28px; height: 1px; background: var(--gold-light); }

/* Credentials band: three facts set as an editorial line, not a stats strip. */
.credentials {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0; padding: 0; list-style: none;
}
.credentials::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--hairline-dark);
  transform-origin: left center;
}
.credentials li { padding: 34px 32px 52px 0; font-size: 1rem; line-height: 1.6; color: var(--on-dark-muted); }
.credentials li + li { padding-left: 32px; border-left: 1px solid var(--hairline-dark); }
.credentials em {
  display: block; margin-bottom: 0.4rem;
  font-family: var(--serif); font-size: clamp(1.5rem, 2.1vw, 1.875rem); line-height: 1.2; letter-spacing: -0.01em;
  color: var(--gold-light);
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.split-head { grid-column: 1 / 6; }
.split-body { grid-column: 7 / 13; }
@media (min-width: 901px) {
  .split-head { position: sticky; top: calc(var(--header) + 48px); align-self: start; }
}

.still { position: relative; margin: 3rem 0 0; overflow: hidden; aspect-ratio: 4 / 5; max-height: 52vh; background: var(--forest-900); }
.still img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.08); }
.still::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(216, 190, 134, 0.25); pointer-events: none; }

.list-title {
  margin: clamp(64px, 7vw, 96px) 0 1rem;
  font-family: var(--sans); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-deep);
}
.expertise-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px;
  margin: 0; padding: 0; list-style: none;
}
.expertise-list li { padding: 18px 0 22px; font-size: 1.0625rem; line-height: 1.5; color: var(--ink); }

/* Rules that draw in when their list scrolls into view. */
.rules > * { position: relative; }
.rules > *::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--hairline-light);
  transform-origin: left center;
}
.journey .rules > *::before, .rules.on-dark > *::before { background: var(--hairline-dark); }

/* Percorso */
.journey { position: relative; isolation: isolate; background: var(--forest-950); color: var(--on-dark); }
.journey::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(45% 55% at 100% 0%, rgba(44, 84, 64, 0.35), transparent 70%);
}
.journey h2, .journey h3 { color: var(--on-dark); }
.section-head { max-width: 46rem; margin-bottom: clamp(56px, 7vw, 96px); }
.section-intro { max-width: 46ch; margin-top: 1.5rem; color: var(--on-dark-muted); }

.milestones { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--hairline-dark); }
.milestone {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: baseline;
  padding-block: clamp(40px, 4.5vw, 60px);
}
.milestone-tag {
  grid-column: 1 / 4;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-light);
}
.milestone h3 { grid-column: 4 / 8; font-size: clamp(1.625rem, 2.3vw, 2.125rem); line-height: 1.18; letter-spacing: -0.01em; }
.milestone > p:last-child { grid-column: 8 / 13; color: var(--on-dark-muted); }
.milestone a { color: var(--gold-light); text-underline-offset: 4px; }
.milestone a:hover { color: var(--ivory); }

/* Citazione */
.quote { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--on-dark); }
.quote-media { position: absolute; inset: 0 auto 0 0; z-index: -1; width: min(60%, 1100px); overflow: hidden; }
.quote-media picture, .quote-media img { width: 100%; height: 100%; }
.quote-media img { object-fit: cover; object-position: left center; transform: translate3d(0, var(--py, 0px), 0) scale(1.12); }
.quote-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(17, 22, 23, 0) 50%, var(--night) 100%);
}
.quote-inner {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding-block: clamp(128px, 16vw, 232px);
}
.quote blockquote { grid-column: 7 / 13; margin: 0; }
.quote blockquote p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.2; letter-spacing: -0.015em;
  text-wrap: balance;
}
.quote footer {
  display: flex; align-items: center; gap: 14px; margin-top: 2.25rem;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-light);
}
.quote footer::before { content: ""; width: 32px; height: 1px; background: currentColor; }

/* Visione */
.signature { margin-top: 2.5rem; font-family: var(--serif); font-style: italic; font-size: 1.75rem; color: var(--gold-deep); }

.principles { margin: clamp(80px, 10vw, 144px) 0 0; border-bottom: 1px solid var(--hairline-light); }
.principles > div {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: baseline; padding-block: 30px 34px;
}
.principles dt { grid-column: 1 / 6; font-family: var(--serif); font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); }
.principles dd { grid-column: 7 / 13; margin: 0; color: var(--ink-muted); }

/* Contatti */
.contact { position: relative; isolation: isolate; background: var(--forest-900); color: var(--on-dark); }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 70% at 0% 100%, rgba(179, 146, 86, 0.10), transparent 70%);
}
.contact h2 { color: var(--on-dark); }
.contact-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: end;
}
.contact-head { grid-column: 1 / 8; }
.contact-body { grid-column: 9 / 13; }
.contact h2 { max-width: 15ch; font-size: clamp(2.5rem, 5vw, 4.75rem); line-height: 1.04; }
.contact-text { max-width: 44ch; margin-bottom: 2.25rem; color: var(--on-dark-muted); }
.contact-text a { color: var(--gold-light); }
.contact-text a:hover { color: var(--ivory); }
.contact .actions { flex-direction: column; }
.contact .btn { justify-content: space-between; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: clamp(64px, 8vw, 104px) 40px;
  background: var(--forest-950); color: var(--on-dark-muted);
  border-top: 1px solid var(--hairline-dark);
}
.footer-mark {
  padding-bottom: clamp(32px, 4vw, 56px); margin-bottom: 28px;
  border-bottom: 1px solid var(--hairline-dark);
  font-family: var(--serif); font-size: clamp(2.75rem, 7.6vw, 6rem); line-height: 1; letter-spacing: -0.03em;
  color: var(--on-dark);
}
.footer-mark em { font-style: italic; color: var(--gold-light); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 48px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer nav a {
  padding-block: 10px;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; transition: color 0.25s var(--ease);
}
.site-footer nav a:hover { color: var(--gold-light); }
.copyright { font-size: 0.875rem; }

/* Film grain in the backgrounds only, under text and photographs. Must follow the section
   rules above, whose `background` shorthands reset background-image. */
body, .hero, .journey, .quote, .contact, .site-footer { background-image: url("../img/grain.png"); }

/* ---------- Legal pages ---------- */

.legal { padding: calc(var(--header) + clamp(64px, 10vw, 128px)) 0 var(--section); }
.legal-inner { max-width: 46rem; }
.legal h1 { margin-bottom: 1rem; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; }
.legal .updated { margin-bottom: 3rem; color: var(--ink-muted); font-size: 1rem; }
.legal h2 { margin: 3rem 0 1rem; font-size: 1.75rem; line-height: 1.25; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: 1rem; }
.legal ul { margin: 1rem 0 0; padding-left: 1.25rem; }
.legal li + li { margin-top: 0.5rem; }
.legal a { color: var(--gold-deep); }
.legal .back { display: inline-block; margin-top: 3.5rem; }

.not-found .hero { display: flex; align-items: center; min-height: 100svh; padding-block: 96px; }
.not-found .hero-role { margin-bottom: 1.25rem; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Hero: the one authored moment. The name rises out of its line masks while the portrait
     is unveiled from below; everything waits for the fonts (html.is-ready, set by site.js). */
  .js .hero-title .line > * { transform: translateY(105%); }
  .js .hero-role, .js .hero-lede, .js .hero-actions, .js .hero-portrait figcaption { opacity: 0; transform: translateY(14px); }
  .js .portrait-frame { clip-path: inset(100% 0 0 0); }
  /* The entrance zoom lives on <picture> so the img's parallax transform never inherits a transition. */
  .js .portrait-frame picture { transform: scale(1.13); }
  .js .portrait-wrap::before { opacity: 0; }
  .js .credentials::before { transform: scaleX(0); }

  .is-ready .hero-title .line > * { transform: none; transition: transform 1.15s var(--ease-out); }
  .is-ready .hero-title .line + .line > * { transition-delay: 0.12s; }
  .is-ready .hero-role, .is-ready .hero-lede, .is-ready .hero-actions, .is-ready .hero-portrait figcaption {
    opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease-out);
  }
  .is-ready .hero-role { transition-delay: 0.45s; }
  .is-ready .hero-lede { transition-delay: 0.55s; }
  .is-ready .hero-actions { transition-delay: 0.65s; }
  .is-ready .hero-portrait figcaption { transition-delay: 1.15s; }
  .is-ready .portrait-frame { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--ease-curtain) 0.1s; }
  .is-ready .portrait-frame picture { transform: none; transition: transform 2s var(--ease-out) 0.1s; }
  .is-ready .portrait-wrap::before { opacity: 1; transition: opacity 1.2s var(--ease) 1s; }
  .is-ready .credentials::before { transform: none; transition: transform 1.6s var(--ease-out) 0.8s; }

  /* Supporting: a quiet fade for blocks, and rules that draw in for lists. */
  .js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .credentials[data-reveal] { opacity: 1; transform: none; }

  .js .rules > *::before { transform: scaleX(0); transition: transform 1.2s var(--ease-out); }
  .js .rules > * > *, .js .expertise-list > li { transition: opacity 0.8s var(--ease); }
  .js .rules:not(.is-in) > * > *, .js .expertise-list:not(.is-in) > li { opacity: 0; }
  .js .rules.is-in > *::before { transform: none; }
  .js .rules.is-in > :nth-child(2)::before, .js .rules.is-in > :nth-child(2) > * { transition-delay: 0.12s; }
  .js .rules.is-in > :nth-child(3)::before, .js .rules.is-in > :nth-child(3) > * { transition-delay: 0.24s; }
  .js .rules.is-in > :nth-child(4)::before { transition-delay: 0.36s; }
  .js .rules.is-in > :nth-child(5)::before { transition-delay: 0.48s; }
  .js .rules.is-in > :nth-child(6)::before { transition-delay: 0.6s; }
  .js .expertise-list.is-in > li:nth-child(n+3) { transition-delay: 0.2s; }
  .js .expertise-list.is-in > li:nth-child(n+5) { transition-delay: 0.4s; }

  /* Keyboard focus never lands on something still invisible: a focused group shows at once. */
  .js [data-reveal]:focus-within, .js .hero-actions:focus-within, .js .rules:focus-within > * > * {
    opacity: 1; transform: none; transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header.is-hidden { transform: none; }
  /* Hover feedback stays, but appears instantly instead of sweeping or sliding. */
  .btn::before, .btn svg, .site-header nav a::after { transition: none; }
  .btn:hover svg, .hero-actions .btn-gold:hover svg { transform: none; }
}

/* Sections not yet scrolled into view must still print, and the dark sections keep their
   backgrounds so their light text stays readable. */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* PDF renderers seam a tiled pattern into a visible grid; paper gets flat colour. */
  body, .hero, .journey, .quote, .contact, .site-footer { background-image: none !important; }
  .js [data-reveal], .js .hero-title .line > *, .js .hero-role, .js .hero-lede, .js .hero-actions,
  .js .hero-portrait figcaption, .js .rules > * > *, .js .expertise-list > li {
    opacity: 1 !important; transform: none !important;
  }
  .js .portrait-frame { clip-path: none !important; }
  /* Transformed images cannot split across pages; print them flat and keep figures whole. */
  .portrait-frame picture, .portrait-frame img, .still img, .quote-media img { transform: none !important; }
  .hero-portrait, .still, .quote-media, .milestone, .principles > div, .credentials li { break-inside: avoid; }
  .js .rules > *::before, .js .credentials::before { transform: none !important; }
  .site-header, .skip { display: none; }
  .hero { padding-top: 64px; }
  .legal { padding-top: 48px; }
  .split-head { position: static; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .split, .milestone, .quote-inner, .principles > div { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .hero-portrait, .split-head, .split-body,
  .milestone-tag, .milestone h3, .milestone > p:last-child,
  .quote blockquote, .principles dt, .principles dd { grid-column: 1 / -1; }

  .hero-copy { padding-bottom: 56px; }
  .hero-portrait { max-width: 480px; margin-right: 28px; }

  .credentials { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  .credentials li, .credentials li + li { padding: 26px 0 30px; border-left: 0; }
  .credentials li + li { border-top: 1px solid var(--hairline-dark); }

  .split-head { margin-bottom: 2.5rem; }
  .still { aspect-ratio: 4 / 3; max-height: none; margin-top: 2.25rem; }

  .milestone { row-gap: 12px; }
  .principles > div { row-gap: 8px; }

  .quote-media { position: relative; inset: auto; width: 100%; aspect-ratio: 1 / 1; }
  .quote-media::after { background: linear-gradient(180deg, rgba(17, 22, 23, 0) 45%, var(--night) 100%); }
  .quote-inner { padding-block: 0 104px; margin-top: -64px; }

  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-head, .contact-body { grid-column: 1 / -1; }
  .contact-body { max-width: 420px; margin-top: 2rem; }
}

@media (max-width: 720px) {
  .hide-sm { display: none; }
  .expertise-list { grid-template-columns: minmax(0, 1fr); }
  .hero-title em { padding-left: 0.45em; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .actions .btn { flex: 1 1 auto; }
}
