/* PEO Logic homepage
   Type: Newsreader (display) + Hanken Grotesk (text), self-hosted.
   One accent (lime), used sparingly. Hairlines instead of cards. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-italic.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour */
  --ivory: #f3f4ee;
  --paper: #fbfbf8;
  --rule: #d5d8cb;
  --ink: #17211b;
  --ink-soft: #4b574f;
  --forest: #1b3a2b;
  --forest-deep: #12291e;
  --forest-rule: rgba(246, 243, 234, 0.18);
  --on-forest: #f6f3ea;
  --on-forest-soft: rgba(246, 243, 234, 0.74);
  --lime: #dcef8f;
  --lime-hover: #cfe672;

  /* type */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --fs-display: clamp(2.6rem, 1.35rem + 5.1vw, 6rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.1vw, 3.4rem);
  --fs-h3: clamp(1.3rem, 1.18rem + 0.4vw, 1.55rem);
  --fs-lede: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  /* space */
  --gutter: clamp(1.25rem, 0.6rem + 2.8vw, 3rem);
  --section: clamp(4.5rem, 2.5rem + 7vw, 9rem);
  --maxw: 1320px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }

:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 2px; }
.process :focus-visible, .site-footer :focus-visible { outline-color: var(--lime); }
[tabindex="-1"]:focus { outline: none; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--forest); color: var(--on-forest); padding: .75rem 1rem; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* ---------- shared type ---------- */
.h2 {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 350;
  line-height: 1.06;
  letter-spacing: -0.018em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
.h2 em, .hero__title em { font-style: italic; font-weight: 330; }

/* ---------- buttons & links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem;
  border-radius: 999px;
  font: 600 0.9375rem/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer; border: 0;
  -webkit-tap-highlight-color: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  --ease-swap: cubic-bezier(.7, 0, .2, 1);
  transition: color .45s var(--ease-swap), transform .15s ease;
}
/* hover: a fill rises from below in a soft curve while the label rolls up */
.button::before {
  content: ""; position: absolute; z-index: -1;
  left: -10%; right: -10%; top: 0; height: 140%;
  background: var(--fill);
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  transform: translateY(105%);
  transition: transform .55s var(--ease-swap), border-radius .55s var(--ease-swap);
}
.button__label { position: relative; display: block; overflow: hidden; line-height: 1.3; }
.button__label > span { display: block; transition: transform .55s var(--ease-swap); }
.button__label > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; width: 100%; }
@media (hover: hover) {
  .button:hover, .button:focus-visible {
    color: var(--fill-ink);
    /* once the fill has risen, take its colour so no edge of the base shows */
    background-color: var(--fill);
    transition: color .45s var(--ease-swap), transform .15s ease, background-color 0s linear .45s;
  }
  .button:hover::before, .button:focus-visible::before { transform: translateY(-15%); border-radius: 0; }
  .button:hover .button__label > span, .button:focus-visible .button__label > span { transform: translateY(-100%); }
}
.button:active { transform: scale(.97); }
.button--forest { background: var(--forest); color: var(--on-forest); --fill: var(--lime); --fill-ink: var(--forest-deep); }
.button--lime { background: var(--lime); color: var(--forest-deep); --fill: var(--on-forest); --fill-ink: var(--forest-deep); }

.text-link {
  font-weight: 600; font-size: 0.9375rem;
  text-decoration: none;
  padding-block: .35rem;
  /* two-layer underline: a quiet rule, and an ink rule that draws across on hover */
  background:
    linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat,
    linear-gradient(var(--rule), var(--rule)) left bottom / 100% 1px no-repeat;
  transition: background-size .3s cubic-bezier(.2, .7, .3, 1);
}
.text-link:hover, .text-link:focus-visible { background-size: 100% 1px, 100% 1px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ivory) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 2rem;
  transition: height .3s cubic-bezier(.2, .7, .3, 1);
}
.brand { display: block; transition: opacity .2s ease; }
.brand:hover { opacity: .75; }
.brand img { width: clamp(132px, 100px + 5vw, 170px); height: auto; } /* full client logo incl. tagline */

.site-nav { display: flex; align-items: center; gap: 2.5rem; }
.site-nav__list { display: flex; gap: clamp(1.25rem, 2.4vw, 2.25rem); }
.site-nav__list a {
  font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  padding-block: .5rem;
  background: linear-gradient(currentColor, currentColor) left calc(100% - 2px) / 0 1px no-repeat;
  transition: background-size .3s cubic-bezier(.2, .7, .3, 1), color .2s ease;
}
.site-nav__list a:hover, .site-nav__list a[aria-current="true"] { background-size: 100% 1px; }
.site-nav__list a[aria-current="true"] { color: var(--forest); }
.site-nav__contact { display: none; }

.menu-toggle, .header-cta { display: none; }
.button--small { min-height: 40px; padding: 0 1.1rem; font-size: .875rem; }

@media (min-width: 900px) and (max-width: 1099px) {
  .site-nav { gap: 1.5rem; }
}

@media (max-width: 899px) {
  :root { --header-h: 68px; }
  .site-header__inner { gap: .75rem; }
  .site-header.menu-is-open { background: var(--ivory); border-bottom-color: var(--rule); }
  .header-cta { display: inline-flex; margin-left: auto; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .6rem;
    min-height: 44px; padding: 0 .25rem;
    background: none; border: 0; color: var(--ink);
    font: 600 0.9375rem var(--sans); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle__icon { position: relative; display: block; width: 20px; height: 10px; }
  .menu-toggle__icon::before, .menu-toggle__icon::after {
    content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
    transition: transform .3s cubic-bezier(.2, .7, .3, 1), top .3s cubic-bezier(.2, .7, .3, 1);
  }
  .menu-toggle__icon::before { top: 0; }
  .menu-toggle__icon::after { top: 8.5px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 4.25px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 4.25px; transform: rotate(-45deg); }

  /* full-height panel under the header */
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 2rem;
    padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--ivory);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-.75rem);
    transition: opacity .25s ease, transform .3s cubic-bezier(.2, .7, .3, 1), visibility 0s linear .3s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list li { opacity: 0; transform: translateY(.5rem); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .7, .3, 1); }
  .site-nav.is-open .site-nav__list li { opacity: 1; transform: none; }
  .site-nav.is-open .site-nav__list li:nth-child(2) { transition-delay: .04s; }
  .site-nav.is-open .site-nav__list li:nth-child(3) { transition-delay: .08s; }
  .site-nav.is-open .site-nav__list li:nth-child(4) { transition-delay: .12s; }
  .site-nav__list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.1rem 0; border-bottom: 1px solid var(--rule);
    font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2rem); font-weight: 350; background: none;
  }
  .site-nav__list a[aria-current="true"] { font-style: italic; }
  .site-nav__list a:active { color: var(--forest); }
  .site-nav__cta { align-self: stretch; min-height: 52px; }
  .site-nav__contact { display: grid; gap: .35rem; margin-top: auto; font-size: var(--fs-small); color: var(--ink-soft); }
  .site-nav__contact a { color: var(--ink); font-weight: 600; text-decoration: none; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 359px) {
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
}

/* back to top */
.to-top {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--rule);
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink); cursor: pointer;
  box-shadow: 0 8px 24px -12px rgba(18, 41, 30, .45);
  opacity: 0; visibility: hidden; transform: translateY(.5rem);
  transition: opacity .25s ease, transform .3s cubic-bezier(.2, .7, .3, 1), visibility 0s linear .3s, background-color .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--forest); color: var(--on-forest); border-color: var(--forest); }
.to-top:active { transform: scale(.94); }
.to-top svg { width: 16px; height: 16px; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(2.5rem, 1rem + 5vw, 5.5rem); }
.hero__title {
  font-family: var(--serif);
  font-size: var(--fs-display);
  font-weight: 320;
  line-height: 0.98;
  letter-spacing: -0.028em;
  max-width: 22ch;
  text-wrap: balance;
}
.mark {
  /* the single COAD-style highlight on the page */
  background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 88% / 100% 30%;
  padding-inline: .04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* page-load moment: headline words rise, the highlight draws, the photo unveils.
   The page's one orchestrated motion; skipped for reduced motion and without JS. */
@media (prefers-reduced-motion: no-preference) {
  /* room around each word so italic overhangs and descenders are never clipped */
  .js .hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .12em .22em .04em; margin: 0 -.12em -.22em -.04em; }
  .js .hero__title.is-settled .w { overflow: visible; }
  /* hidden state is set while the loader is up; the sequence plays once the page is ready */
  .js .hero__title .w > span { display: inline-block; transform: translateY(110%); }
  .js .hero__title .mark { background-size: 0% 30%; }
  .js .hero__media img { clip-path: inset(0 0 0 100%); transform: scale(1.08); }
  .js .hero__copy { opacity: 0; transform: translateY(1rem); }
  .js.is-ready .hero__title .w > span { animation: rise 1s cubic-bezier(.2, .75, .1, 1) forwards; animation-delay: calc(var(--i) * 55ms + 120ms); }
  .js.is-ready .hero__title .mark { animation: highlight .9s cubic-bezier(.7, 0, .2, 1) 1s forwards; }
  .js.is-ready .hero__media img { animation: unveil 1.3s cubic-bezier(.7, 0, .2, 1) .35s forwards; }
  .js.is-ready .hero__copy { animation: settle .9s cubic-bezier(.2, .75, .1, 1) .75s forwards; }
}
@keyframes rise { to { transform: none; } }
@keyframes highlight { to { background-size: 100% 30%; } }
@keyframes unveil { to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes settle { to { opacity: 1; transform: none; } }
.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  margin-top: clamp(2rem, 1rem + 3vw, 4rem);
}
.hero__lede { font-size: var(--fs-lede); line-height: 1.55; color: var(--ink-soft); max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2rem; }
.hero__phone { margin-top: 1.5rem; font-size: var(--fs-small); color: var(--ink-soft); }
.hero__phone a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule); }
.hero__phone a:hover { border-color: currentColor; }
.hero__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 40%; }

@media (min-width: 1000px) {
  .hero__body {
    grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr);
    gap: clamp(2.5rem, 5vw, 5.5rem);
    align-items: end;
    /* let the photo run to the right edge of the viewport */
    max-width: none;
    padding-right: 0;
    margin-left: max(0px, calc((100vw - var(--maxw)) / 2 - var(--gutter)));
    width: auto;
  }
  .hero__copy { padding-bottom: .25rem; }
  .hero__media img { aspect-ratio: 16 / 8.6; }
}
@media (max-width: 999px) {
  .hero__media { margin-inline: calc(var(--gutter) * -1); }
}

/* ---------- what we do ---------- */
.intro { padding-block: var(--section); }
.intro__grid { display: grid; gap: clamp(3rem, 2rem + 4vw, 5.5rem); }
.intro__lead { display: grid; gap: 1.5rem; }
.intro__lead .h2 { font-size: clamp(2.3rem, 1.5rem + 3vw, 4.25rem); max-width: 13ch; }
.intro__lead p { color: var(--ink-soft); max-width: 44ch; font-size: var(--fs-lede); line-height: 1.55; }
/* four promises as columns of a ledger: a firm rule above, the word, the line */
.ledger { display: grid; gap: 0 clamp(1.5rem, 3vw, 3rem); counter-reset: ledger; }
.ledger__row { padding: 1.25rem 0 2rem; border-top: 1px solid var(--rule); position: relative; }
.ledger__row::before { /* ink segment that marks each column */
  content: ""; position: absolute; left: 0; top: -1px; width: 2.5rem; height: 1px; background: var(--ink);
  transition: width .5s cubic-bezier(.7, 0, .2, 1);
}
.ledger__key {
  display: block; margin-bottom: .75rem;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); font-weight: 340;
  line-height: 1.15; color: var(--forest);
}
.ledger__row p { font-size: 1.0625rem; line-height: 1.55; max-width: 34ch; }

@media (min-width: 640px) {
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .intro__lead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; align-items: end; }
  .ledger { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- process ---------- */
.process {
  background: var(--forest);
  color: var(--on-forest);
  padding-block: clamp(4.5rem, 2rem + 6vw, 7.5rem);
}
.process__head { display: grid; gap: 1.75rem; align-items: end; }
.process__head .h2 em { color: var(--lime); }
.process__aside p { color: var(--on-forest-soft); max-width: 34ch; margin-bottom: 1.5rem; }

.stages { margin-top: clamp(3rem, 2rem + 3vw, 5rem); display: grid; counter-reset: stage; }
.stage { position: relative; padding: 0 0 2.25rem 3.25rem; }
.stage::before { /* timeline rule */
  content: ""; position: absolute; left: .45rem; top: .5rem; bottom: -.5rem;
  width: 1px; background: var(--forest-rule);
}
.stage:last-child::before { display: none; }
.stage::after { /* node */
  content: ""; position: absolute; left: 0; top: .1rem;
  width: .95rem; height: .95rem; border-radius: 50%;
  background: var(--forest); border: 1px solid var(--lime);
}
.stage__num {
  display: block;
  font-family: var(--serif); font-style: italic; font-weight: 330;
  font-size: 1rem; line-height: 1; color: var(--lime);
  margin-bottom: .6rem; letter-spacing: .02em;
}
.stage__title { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 380; line-height: 1.18; letter-spacing: -0.01em; text-wrap: balance; }
.stage p { margin-top: .75rem; color: var(--on-forest-soft); font-size: var(--fs-small); line-height: 1.6; max-width: 40ch; }
.stage::after { transition: background-color .25s ease, transform .3s cubic-bezier(.2, .7, .3, 1); }
.stage p { transition: color .25s ease; }
@media (hover: hover) {
  .stage:hover::after { background: var(--lime); transform: scale(1.15); }
  .stage:hover p { color: var(--on-forest); }
  .ledger__row:hover::before { width: 100%; }
}
/* tablet: number + title beside the description keeps the timeline short */
@media (min-width: 600px) and (max-width: 999px) {
  .stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 2rem; align-items: start; }
  .stage__num { grid-column: 1; }
  .stage__title { grid-column: 1; }
  .stage p { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; padding-top: 1.35rem; }
}

@media (min-width: 1000px) {
  .process__head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 4rem; }
  .process__aside { justify-self: end; }
  .stages { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 2.5vw, 2.75rem); }
  .stage { padding: 2.75rem 0 0; }
  .stage::before { left: 0; right: calc(clamp(1.5rem, 2.5vw, 2.75rem) * -1); top: .45rem; bottom: auto; width: auto; height: 1px; }
  .stage:last-child::before { display: block; right: 0; }
  .stage__num { font-size: clamp(2.6rem, 1.5rem + 1.8vw, 3.6rem); margin-bottom: 1.25rem; letter-spacing: -0.02em; }
}

/* ---------- why ---------- */
.why { padding-block: var(--section); background: var(--paper); }
.why__grid { display: grid; gap: 2.5rem; }
.why__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 55% 50%; }
.why__copy p { color: var(--ink-soft); max-width: 50ch; }
.why__copy .h2 { margin-bottom: 1.75rem; max-width: 18ch; }
.why__copy p + p { margin-top: 1.1rem; }
@media (min-width: 1000px) {
  .why__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(3rem, 7vw, 8rem); align-items: center; }
}
@media (max-width: 999px) {
  .why__media { margin-inline: calc(var(--gutter) * -1); order: 2; }
  .why__media img { aspect-ratio: 4 / 3; }
}

/* questions: native <details>; main.js animates open/close and keeps one open at a time */
.faq { display: grid; gap: 1.5rem; margin-top: clamp(4rem, 2.5rem + 5vw, 7rem); }
.faq__title { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 380; line-height: 1.2; }
.faq__list { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.375rem); font-weight: 380; line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { /* plus that turns into a minus */
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: background-size .2s ease;
}
.faq__item[open] summary::after { background-size: 14px 1.5px, 1.5px 0; }
.faq__item summary { transition: color .2s ease; -webkit-tap-highlight-color: transparent; }
.faq__item summary:hover { color: var(--forest); }
.faq__item summary:focus-visible { outline-offset: 4px; }
.faq__item[open] summary { color: var(--forest); }
.faq__body { overflow: hidden; }
.faq__item p { padding: 0 2.5rem 1.5rem 0; color: var(--ink-soft); max-width: 62ch; }
@media (min-width: 1000px) {
  .faq { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 8vw, 9rem); }
}

/* ---------- partners ---------- */
.partners { padding-block: var(--section); }
.partners__head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.partners__head p { color: var(--ink-soft); max-width: 40ch; }
@media (min-width: 1000px) {
  .partners__head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 4rem; align-items: end; }
}
.partner-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.partner-grid li { display: flex; min-height: 6.5rem; border-bottom: 1px solid var(--rule); }
.partner-grid li:nth-child(odd) { border-right: 1px solid var(--rule); }
.partner-grid a { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem .75rem; }
/* every mark rendered in one ink colour; --h evens out optical size between logos */
.partner-grid img {
  height: calc(var(--h, 1.5rem) * var(--logo-scale, 1)); width: auto; max-width: 100%;
  filter: brightness(0); opacity: .72;
  transition: opacity .2s ease;
}
.partner-grid a:hover img, .partner-grid a:focus-visible img { opacity: 1; }

@media (min-width: 360px) {
  .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partner-grid li { min-height: 5.25rem; --logo-scale: .78; }
  .partner-grid li:nth-child(odd) { border-right: 0; }
  .partner-grid li:not(:nth-child(3n)) { border-right: 1px solid var(--rule); }
}
@media (min-width: 640px) { .partner-grid li { min-height: 7rem; --logo-scale: 1; } }
@media (min-width: 1200px) {
  .partner-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
  .partner-grid li { min-height: 8rem; border-bottom: 0; --logo-scale: .9; }
  .partner-grid li:not(:nth-child(3n)) { border-right: 0; }
  .partner-grid li:not(:last-child) { border-right: 1px solid var(--rule); }
}

/* ---------- closing ---------- */
.closing { padding-block: var(--section); background: var(--paper); border-top: 1px solid var(--rule); }
.closing__grid { display: grid; gap: 2.5rem; }
.closing__title {
  font-family: var(--serif); font-size: clamp(2.4rem, 1.5rem + 3vw, 4.25rem);
  font-weight: 320; line-height: 1.02; letter-spacing: -0.025em; max-width: 12ch; text-wrap: balance;
  margin-bottom: 1.75rem;
}
.closing__copy p { color: var(--ink-soft); max-width: 40ch; margin-bottom: 2rem; }

/* inquiry form */
.inquiry { border-top: 1px solid var(--ink); padding-top: 1.75rem; }
.inquiry__title { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 380; line-height: 1.2; margin-bottom: 1.5rem; }
.inquiry__grid { display: grid; gap: 1.25rem 1.5rem; }
.field { display: grid; gap: .45rem; align-content: start; }
.field label { font-size: var(--fs-small); font-weight: 500; }
.field__optional { color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #b9bdae; border-radius: 4px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select {
  appearance: none; padding-right: 2.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2317211b' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .9rem center;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(27, 58, 43, .18); }
.field [aria-invalid="true"] { border-color: #a3341f; }
.field__error { font-size: .875rem; color: #a3341f; }
.inquiry__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
@media (min-width: 640px) {
  .inquiry__grid { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
}
.contact-list { margin: 2.5rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--rule); max-width: 26rem; }
.contact-list div { display: grid; grid-template-columns: 5rem 1fr; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.contact-list dt { font-size: var(--fs-small); color: var(--ink-soft); }
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
@media (min-width: 1000px) {
  .closing__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 7vw, 8rem); align-items: start; }
  .closing__copy { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- footer ---------- */
.site-footer { background: var(--forest-deep); color: var(--on-forest); padding-top: clamp(3.5rem, 2rem + 4vw, 5.5rem); }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; }
.site-footer__tagline {
  grid-column: 1 / -1;
  font-family: var(--serif); font-weight: 320; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1.05; letter-spacing: -0.02em;
}
.site-footer__tagline em { font-style: italic; color: var(--lime); }
.site-footer__label { font: 500 0.9375rem/1 var(--sans); color: var(--on-forest-soft); margin-bottom: 1.25rem; }
.site-footer__col li + li { margin-top: .6rem; }
.site-footer__col a { text-decoration: none; font-size: var(--fs-small); overflow-wrap: anywhere; }
.site-footer__col a:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.site-footer__base { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.site-footer__base p { padding-block: 1.5rem; border-top: 1px solid var(--forest-rule); font-size: .875rem; color: var(--on-forest-soft); }
@media (min-width: 800px) {
  .site-footer__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 2fr) minmax(0, 3fr); }
  .site-footer__tagline { grid-column: auto; }
}

/* ---------- footer signature: the client wordmark at full width ---------- */
.site-footer__mark { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(.75rem, 1.5vw, 1.5rem); }
.site-footer__mark img { display: block; width: 100%; height: auto; }

/* ---------- why: photo runs to the left edge, mirroring the hero ---------- */
@media (min-width: 1000px) {
  .why__grid {
    max-width: none; width: auto; padding-left: 0; margin-left: 0;
    margin-right: max(0px, calc((100vw - var(--maxw)) / 2 - var(--gutter)));
  }
  .why__media img { aspect-ratio: 6 / 5; }
}

/* ---------- form: editorial underlined fields ---------- */
.field input, .field select, .field textarea {
  min-height: 44px; padding: .55rem 0;
  background-color: transparent; border: 0; border-bottom: 1px solid #a9ae9e; border-radius: 0;
  font-size: 1.0625rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select { background-color: transparent; background-position: right .1rem center; padding-right: 1.75rem; }
.field textarea { min-height: 6rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--forest); box-shadow: 0 1px 0 var(--forest); }
.field [aria-invalid="true"] { border-bottom-color: #a3341f; box-shadow: 0 1px 0 #a3341f; }
.field label { font-size: .875rem; color: var(--ink-soft); }
.inquiry__grid { gap: 1.75rem 2rem; }
.inquiry__foot { margin-top: 2.25rem; }
.inquiry.is-sent .inquiry__grid, .inquiry.is-sent .inquiry__foot, .inquiry.is-sent .inquiry__title { display: none; }
.inquiry__done { padding: .5rem 0 1rem; }
.inquiry__done-title { font-family: var(--serif); font-weight: 320; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1rem; }
.inquiry__done p:not(.inquiry__done-title) { color: var(--ink-soft); max-width: 40ch; margin-bottom: 1.5rem; }
.inquiry__done strong { color: var(--ink); font-weight: 600; }
.inquiry__done .text-link { border: 0; background-color: transparent; cursor: pointer; font-family: inherit; color: inherit; padding-inline: 0; }
@media (prefers-reduced-motion: no-preference) {
  .inquiry__done:not([hidden]) { animation: fadeIn .6s cubic-bezier(.2, .75, .1, 1) both; }
}

/* ---------- process: the timeline draws itself once, when it scrolls into view ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .process:not(.is-inview) .stage > *,
  .js .process:not(.is-inview) .stage::after { opacity: 0; }
  .js .process:not(.is-inview) .stage::before { transform: scaleY(0); }
  .js .process.is-inview .stage::before { transform-origin: top; animation: drawY .7s cubic-bezier(.7, 0, .2, 1) backwards; animation-delay: calc(var(--i, 0) * .14s); }
  .js .process.is-inview .stage::after { animation: pop .5s cubic-bezier(.2, .75, .1, 1.4) backwards; animation-delay: calc(var(--i, 0) * .14s + .05s); }
  .js .process.is-inview .stage > * { animation: fadeIn .7s cubic-bezier(.2, .75, .1, 1) backwards; animation-delay: calc(var(--i, 0) * .14s + .15s); }
  @media (min-width: 1000px) {
    .js .process:not(.is-inview) .stage::before { transform: scaleX(0); }
    .js .process.is-inview .stage::before { transform-origin: left; animation-name: drawX; }
  }
}
@keyframes drawX { from { transform: scaleX(0); } }
@keyframes drawY { from { transform: scaleY(0); } }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(.75rem); } }

/* headlines made of two sentences: each sentence starts its own line */
.h2 .line { display: block; }
.intro__lead .h2 { max-width: 21ch; }
.why__copy .h2 { max-width: 20ch; }

/* ---------- loader: first visit per session only ---------- */
.loader { display: none; }
.is-loading .loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--forest-deep); color: var(--on-forest);
}
.is-loading body { overflow: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 1.5rem; width: min(70vw, 360px); }
.loader__mark { overflow: hidden; width: 100%; }
.loader__mark img { width: 100%; height: auto; transform: translateY(105%); animation: loader-rise .9s cubic-bezier(.2, .75, .1, 1) .15s forwards; }
.loader__bar { position: relative; width: 100%; height: 1px; background: var(--forest-rule); overflow: hidden; }
.loader__bar::after {
  content: ""; position: absolute; inset: 0; background: var(--lime);
  transform: scaleX(0); transform-origin: left;
  animation: loader-fill 1.1s cubic-bezier(.65, 0, .35, 1) .3s forwards;
}
.loader__tag { font-size: .8125rem; letter-spacing: .02em; color: var(--on-forest-soft); opacity: 0; animation: loader-fade .6s ease .7s forwards; }
/* exit: the panel lifts away to reveal the page */
.loader.is-leaving { animation: loader-lift .8s cubic-bezier(.7, 0, .2, 1) forwards; }
.loader.is-leaving .loader__inner { animation: loader-fade-out .35s ease forwards; }
@keyframes loader-rise { to { transform: none; } }
@keyframes loader-fill { to { transform: scaleX(1); } }
@keyframes loader-fade { to { opacity: 1; } }
@keyframes loader-fade-out { to { opacity: 0; transform: translateY(-1rem); } }
@keyframes loader-lift { to { transform: translateY(-100%); } }

/* hold the page (not the loader) until the web fonts are ready: no fallback-font flash */
.fonts-pending .site-header, .fonts-pending main, .fonts-pending .site-footer { visibility: hidden; }
