/* ==========================================================================
   INGABO KREATIVE — Core styles
   1. Fonts   2. Design tokens   3. Reset & base   4. Typography
   5. Layout primitives   6. Page sections
   Components (buttons, nav, cards, lightbox, forms) live in components.css.
   Breakpoints (mobile-first, min-width): 600px · 900px · 1200px · 1600px
   ========================================================================== */

/* 1. Fonts — self-hosted variable fonts (assets/fonts) ------------------- */
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 400 750;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}

/* 2. Design tokens ------------------------------------------------------- */
:root {
  /* Colour — from the Ingabo Kreative logo */
  --c-navy: #0A2471;         /* Brand navy: dark sections, buttons, logo on light */
  --c-navy-deep: #061650;    /* Hover / pressed navy */
  --c-navy-2: #13307F;       /* Raised surface on navy */
  --c-yellow: #FFB90B;       /* Brand yellow: the dot on the i */
  --c-yellow-soft: #FFCA45;  /* Yellow hover */
  --c-ink: #0E1838;          /* Body text (navy-black) */
  --c-ink-2: var(--c-navy-2);
  --c-ivory: #F7F6F2;        /* Main background */
  --c-sand: #ECEEF5;         /* Quiet alternate background (navy tint) */
  --c-white: #FFFFFF;
  --c-stone: #5A6075;        /* Secondary text on light (AA on ivory) */
  --c-grey: #B4BCDC;         /* Secondary text on navy (AA) */
  --c-accent: var(--c-yellow);       /* Accent on navy: rules, numbers, details */
  --c-accent-deep: var(--c-navy);    /* Accent on light backgrounds */
  --c-line: rgba(14, 24, 56, 0.14);
  --c-line-dark: rgba(255, 255, 255, 0.18);
  --c-scrim: 6, 20, 72;      /* RGB of the navy used for photo overlays */
  --c-whatsapp: #187A42;     /* Deepened WhatsApp green: 5.4:1 with white text (AA) */
  --c-error: #B3261E;
  --c-success: #2E6B45;

  /* Typography */
  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.8125rem;                                  /* 13px captions */
  --fs-sm: 0.9375rem;                                  /* 15px labels, meta */
  --fs-base: 1.0625rem;                                /* 17px body */
  --fs-md: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);  /* lead text */
  --fs-lg: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);   /* h4 / card titles */
  --fs-xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.625rem);   /* h3 / statements */
  --fs-2xl: clamp(2.25rem, 1.6rem + 2.6vw, 4rem);      /* h2 */
  --fs-3xl: clamp(2.5rem, 1.4rem + 4.6vw, 6.25rem);    /* h1 / display */
  --fs-hero: clamp(2.375rem, 0.9rem + 6.2vw, 7.5rem);  /* hero display */

  --lh-tight: 0.95;
  --lh-snug: 1.15;
  --lh-body: 1.6;
  --lh-statement: 1.22;

  --wdth-display: 118%;   /* Wide cut for display caps */
  --wdth-heading: 108%;
  --wdth-body: 100%;

  --tracking-display: -0.01em;
  --tracking-tight: -0.02em;
  --tracking-label: 0.02em;

  /* Spacing (4px base) */
  --s-1: 0.25rem;  --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;
  --section-y: clamp(4.5rem, 3rem + 7vw, 10rem);
  --gutter: clamp(1rem, 0.4rem + 3vw, 3rem);
  --grid-gap: clamp(0.75rem, 0.4rem + 1.2vw, 1.5rem);

  /* Containers */
  --container: 1360px;
  --container-narrow: 880px;
  --measure: 62ch;

  /* Radii — kept deliberately small */
  --r-0: 0;
  --r-1: 2px;
  --r-2: 4px;
  --r-round: 999px;

  /* Shadows — used only for floating UI */
  --shadow-float: 0 10px 30px -12px rgba(6, 20, 72, 0.5);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 160ms;
  --dur-2: 320ms;
  --dur-3: 700ms;
  --dur-hero: 1400ms;

  /* Layers */
  --z-header: 50;
  --z-float: 60;
  --z-menu: 70;
  --z-lightbox: 100;

  --header-h: 72px;
}

/* 3. Reset & base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  min-height: 100vh;
  background: var(--c-ivory);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-stretch: var(--wdth-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, picture, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--c-accent); color: var(--c-ink); }

:focus-visible {
  outline: 2px solid var(--c-accent-deep);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--c-accent); }

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 200;
  padding: var(--s-3) var(--s-4);
  background: var(--c-navy);
  color: var(--c-ivory);
  text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* 4. Typography ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-sans);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  font-stretch: var(--wdth-heading);
  text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-3xl); line-height: 1; }
h2, .h2 { font-size: var(--fs-2xl); line-height: 1.05; }
h3, .h3 { font-size: var(--fs-xl); }
h4, .h4 { font-size: var(--fs-lg); }
h5, .h5 { font-size: var(--fs-md); }
h6, .h6 { font-size: var(--fs-base); }

.display {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  font-stretch: var(--wdth-display);
  text-transform: uppercase;
}
.display--section {
  font-size: var(--fs-3xl);
}

.lead {
  font-size: var(--fs-md);
  line-height: 1.55;
  max-width: 46ch;
}
.statement {
  font-family: var(--f-sans);
  font-weight: 450;
  font-size: var(--fs-xl);
  line-height: var(--lh-statement);
  letter-spacing: -0.02em;
  font-stretch: 100%;
  text-wrap: pretty;
}
.statement--xl {
  font-size: clamp(1.875rem, 1.2rem + 2.8vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.prose p + p { margin-top: 1em; }
.prose { max-width: var(--measure); }
.muted { color: var(--c-stone); }
.on-dark .muted { color: var(--c-grey); }
.caption {
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
  color: var(--c-stone);
}
.on-dark .caption { color: var(--c-grey); }
.label {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
}

/* 5. Layout primitives --------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--flush-top { padding-top: 0; }
.on-dark {
  background: var(--c-navy);
  color: var(--c-ivory);
}
.bg-sand { background: var(--c-sand); }

.section-head {
  display: grid;
  gap: var(--s-5);
  margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}
.section-head p { max-width: 44ch; }
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
    gap: var(--s-8);
  }
  .section-head--split p { justify-self: end; }
}

.stack > * + * { margin-top: var(--stack, var(--s-5)); }

/* Shared image frame: fixed ratio prevents layout shift, fallback colour while loading */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--c-sand);
  border-radius: var(--r-1);
}
.on-dark .frame { background: var(--c-ink-2); }
.frame > img, .frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-2-3 { aspect-ratio: 2 / 3; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-21-9 { aspect-ratio: 21 / 9; }

/* Image-fallback state set by main.js when a file fails to load */
img.is-broken {
  opacity: 0;
}
.frame:has(img.is-broken)::after {
  content: "Image coming soon";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: var(--fs-sm);
  color: var(--c-stone);
}

/* Reveal — applied only to image groups, never to body text */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* 6. Page sections ======================================================= */

/* ---- Hero (home) ---- */
.hero {
  position: relative;
  background: var(--c-navy);
  color: var(--c-ivory);
}
.hero__frame {
  position: relative;
  height: min(88svh, 980px);
  min-height: 520px;
  overflow: hidden;
  background: var(--c-navy);
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--dur-hero) var(--ease-in-out);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide picture { display: block; width: 100%; height: 100%; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 8s linear;
}
.hero__slide.is-active img { transform: scale(1); }
.hero__frame::after {
  /* Legibility scrim for headline + header only */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(var(--c-scrim),0.55) 0%, rgba(var(--c-scrim),0) 22%),
    linear-gradient(to top, rgba(var(--c-scrim),0.78) 0%, rgba(var(--c-scrim),0.15) 45%, rgba(var(--c-scrim),0) 70%);
  pointer-events: none;
}
.hero__title-wrap {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  z-index: 2;
}
.hero__title { max-width: 14ch; }
.hero__title span { display: block; }
.hero__plate {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  top: calc(var(--header-h) + var(--s-3));
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
  color: rgba(247, 245, 240, 0.86);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.hero__plate p { display: flex; gap: var(--s-3); align-items: baseline; }
.hero__plate-count { color: var(--c-accent); font-variant-numeric: tabular-nums; }
.hero__plate-caption { display: none; }
.hero__toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-round);
  border: 1px solid rgba(247, 245, 240, 0.4);
  color: var(--c-ivory);
  transition: background-color var(--dur-2), color var(--dur-2);
}
.hero__toggle:hover { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-navy); }
.hero__toggle svg { width: 12px; height: 12px; }
.hero__toggle .i-play,
.hero__toggle.is-paused .i-pause { display: none; }
.hero__toggle.is-paused .i-play { display: block; }
.hero__below {
  display: grid;
  gap: var(--s-6);
  padding-block: var(--s-7) var(--s-8);
}
.hero__below .lead { color: rgba(247, 245, 240, 0.86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__scroll {
  display: none;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--c-grey);
  text-decoration: none;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--c-accent) 0 50%, var(--c-line-dark) 50% 100%);
  background-size: 100% 200%;
  animation: scrollcue 2.4s var(--ease-in-out) infinite;
}
@keyframes scrollcue {
  0% { background-position: 0 100%; }
  60%, 100% { background-position: 0 -100%; }
}
/* Orchestrated page-load sequence (the one motion moment) */
.hero__title span,
.hero__below > * {
  animation: rise 900ms var(--ease-out) both;
}
.hero__title span:nth-child(2) { animation-delay: 120ms; }
.hero__below > *:nth-child(1) { animation-delay: 320ms; }
.hero__below > *:nth-child(2) { animation-delay: 420ms; }
.hero__below > *:nth-child(3) { animation-delay: 520ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@media (min-width: 900px) {
  .hero__plate-caption { display: inline; }
  .hero__below {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: var(--s-8);
  }
  .hero__scroll { display: inline-flex; }
}

/* ---- Page hero (inner pages) ---- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 7rem));
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 5rem);
}
.page-hero__inner {
  display: grid;
  gap: var(--s-6);
}
.page-hero__crumb {
  font-size: var(--fs-sm);
  color: var(--c-stone);
}
.page-hero__crumb a { text-decoration: none; }
.page-hero__crumb a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .page-hero__inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
    gap: var(--s-8);
  }
}
.page-hero__image {
  margin-top: clamp(2rem, 1rem + 3vw, 4rem);
}

/* ---- Intro / brand statement ---- */
.intro {
  display: grid;
  gap: var(--s-7);
}
.intro__statement { max-width: 22ch; }
.intro__body {
  display: grid;
  gap: var(--s-6);
  align-content: start;
}
.intro__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
  align-items: start;
}
.intro__images .frame:nth-child(2) { margin-top: 18%; }
@media (min-width: 900px) {
  .intro {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--grid-gap);
    row-gap: var(--s-8);
  }
  .intro__statement { grid-column: 1 / span 9; }
  .intro__body { grid-column: 1 / span 4; align-self: end; }
  .intro__images { grid-column: 6 / span 7; }
}

/* ---- Services overview (home) ---- */
.services-grid {
  display: grid;
  gap: clamp(2.5rem, 2rem + 2vw, 4rem) var(--grid-gap);
}
@media (max-width: 599px) {
  .services-grid .frame { aspect-ratio: 4 / 3; }
}
@media (min-width: 600px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid > :nth-child(even) { margin-top: var(--s-8); }
}
@media (min-width: 1200px) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services-grid > :nth-child(even) { margin-top: 0; }
  .services-grid > :nth-child(3n + 2) { margin-top: var(--s-9); }
}

/* ---- Selected works (home) ---- */
.works__footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--c-line);
}

/* ---- Why choose us ---- */
.why {
  display: grid;
  gap: var(--s-7);
}
.why__aside { display: grid; gap: var(--s-6); align-content: start; }
.why__list { display: grid; }
.why__item {
  display: grid;
  gap: var(--s-2);
  padding-block: var(--s-5);
  border-top: 1px solid var(--c-line);
}
.why__item:last-child { border-bottom: 1px solid var(--c-line); }
.why__item h3 {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
  font-stretch: 108%;
  line-height: 1.15;
}
.why__item p { color: var(--c-stone); max-width: 52ch; }
@media (min-width: 900px) {
  .why { grid-template-columns: 5fr 7fr; gap: var(--s-9); }
  .why__aside { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
  .why__item { grid-template-columns: 1fr 1.25fr; gap: var(--s-6); align-items: baseline; padding-block: var(--s-6); }
}

/* ---- Process ---- */
.process {
  display: grid;
  gap: 0;
  counter-reset: step;
}
.process__step {
  position: relative;
  display: grid;
  gap: var(--s-3);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--c-line-dark);
}
.process__num {
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  color: var(--c-accent);
  font-weight: 500;
}
.process__step h3 {
  font-size: var(--fs-xl);
  font-stretch: var(--wdth-display);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  font-weight: 650;
}
.process__step p { color: var(--c-grey); max-width: 34ch; }
@media (min-width: 900px) {
  .process { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); }
  .process__step { padding-top: var(--s-6); padding-right: var(--s-4); }
  .process__step::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--c-accent);
  }
}

/* ---- Testimonials ---- */
.testimonials {
  display: grid;
  gap: var(--s-7);
}
@media (min-width: 900px) {
  .testimonials { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); }
}

/* ---- Final CTA ---- */
.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(6rem, 4rem + 10vw, 12rem);
}
.final-cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.final-cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.62; }
.final-cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--c-scrim),0.88) 0%, rgba(var(--c-scrim),0.6) 55%, rgba(var(--c-scrim),0.15) 100%);
}
.final-cta__inner { display: grid; gap: var(--s-6); justify-items: start; }
.final-cta__inner > h2 { max-width: 15ch; }
.final-cta__inner .lead { color: rgba(247, 245, 240, 0.86); }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); }

/* ---- Services page: detailed services ---- */
.service-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  background: rgba(247, 246, 242, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-block: 1px solid var(--c-line);
}
.service-nav ul {
  display: flex;
  gap: var(--s-5);
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: var(--s-4);
  white-space: nowrap;
}
.service-nav ul::-webkit-scrollbar { display: none; }
.service-nav a {
  font-size: var(--fs-sm);
  color: var(--c-stone);
  text-decoration: none;
  padding-block: var(--s-1);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-1), border-color var(--dur-1);
}
.service-nav a:hover, .service-nav a.is-current { color: var(--c-navy); border-color: var(--c-navy); }

.service-detail {
  display: grid;
  gap: var(--s-6);
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 7rem);
  border-top: 1px solid var(--c-line);
  scroll-margin-top: calc(var(--header-h) + 64px);
}
.service-detail:first-child { border-top: 0; }
.service-detail__media { order: -1; }
.service-detail__body { display: grid; gap: var(--s-5); align-content: start; }
.service-detail__intro {
  font-family: var(--f-sans);
  font-weight: 450;
  font-size: var(--fs-md);
  line-height: 1.45;
  max-width: 34ch;
}
.service-detail__receive h3 {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  margin-bottom: var(--s-3);
}
.check-list { display: grid; gap: var(--s-2); }
.check-list li {
  position: relative;
  padding-left: 1.5rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.75rem;
  height: 1px;
  background: var(--c-accent-deep);
}
.service-detail__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
@media (min-width: 900px) {
  .service-detail {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: start;
  }
  .service-detail__media { order: 0; grid-column: 1 / span 6; position: sticky; top: calc(var(--header-h) + 80px); }
  .service-detail__body { grid-column: 8 / span 5; }
  .service-detail:nth-child(even) .service-detail__media { grid-column: 7 / span 6; }
  .service-detail:nth-child(even) .service-detail__body { grid-column: 1 / span 5; grid-row: 1; }
}

.not-sure {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 900px) {
  .not-sure { grid-template-columns: 1.2fr 1fr; align-items: end; gap: var(--s-8); }
}

/* ---- About page ---- */
.about-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: end;
}
.about-collage .frame:first-child { grid-column: span 2; }
@media (min-width: 900px) {
  .about-collage { grid-template-columns: 5fr 2.2fr 2.6fr 2.2fr; }
  .about-collage .frame:first-child { grid-column: auto; }
  .about-collage .frame:nth-child(3) { margin-bottom: var(--s-8); }
}
.split {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: var(--s-9); }
}
.principles {
  display: grid;
  gap: var(--s-7) var(--grid-gap);
}
@media (min-width: 600px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .principles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.principle {
  display: grid;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-line-dark);
  align-content: start;
}
.principle h3 {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
  font-stretch: 108%;
  line-height: 1.15;
}
.principle p { color: var(--c-grey); }
.editable-note {
  display: inline-block;
  padding: var(--s-1) var(--s-3);
  border: 1px dashed var(--c-accent-deep);
  color: var(--c-accent-deep);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
}
.on-dark .editable-note { border-color: var(--c-accent); color: var(--c-accent); }

/* ---- Contact page ---- */
.contact-layout {
  display: grid;
  gap: var(--s-8);
}
.contact-aside {
  display: grid;
  gap: var(--s-7);
  align-content: start;
}
.contact-channels { display: grid; gap: var(--s-5); }
.contact-channel {
  display: grid;
  gap: var(--s-1);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--c-line);
}
.contact-channel dt { font-size: var(--fs-sm); color: var(--c-stone); }
.contact-channel dd { font-size: var(--fs-md); }
.contact-channel dd a { text-decoration: none; }
.contact-channel dd a:hover { text-decoration: underline; }
@media (max-width: 999px) {
  /* On phones and tablets the form matters more than the photo */
  .contact-aside > .frame { display: none; }
}
@media (min-width: 1000px) {
  .contact-layout { grid-template-columns: 4fr 7fr; gap: var(--s-9); }
  .contact-aside { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
}

/* ---- 404 ---- */
.not-found {
  min-height: 80vh;
  display: grid;
  align-content: center;
  gap: var(--s-6);
  padding-top: var(--header-h);
}

.statement-block { max-width: 28ch; }
