/* ==========================================================================
   Inventory Timing Partners
   --------------------------------------------------------------------------
   Type     Besley (headings) and Archivo (text). Both SIL OFL, self-hosted.
   Palette  Evergreen, kraft, pine, chalk, ink, and one signal yellow.
   Motif    The interval line: two ticks and the span between them.
   ========================================================================== */

@font-face {
  font-family: "Besley";
  src: url("../fonts/besley-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --evergreen: #173a2e;
  --evergreen-deep: #0f2a21;
  --evergreen-mid: #2c5a48;
  --kraft: #d3b27e;
  --kraft-deep: #a9834c;
  --pine: #ecdcb8;
  --chalk: #f4f5f0;
  --paper: #fcfcf9;
  --ink: #0e1b15;
  --ink-soft: #415048;
  --signal: #f4c63d;

  --rule: rgb(14 27 21 / 0.16);
  --rule-strong: rgb(14 27 21 / 0.55);

  --font-display: "Besley", "Rockwell", "Roboto Slab", Georgia, serif;
  --font-text: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --wrap: 84rem;
  --gutter: clamp(1.25rem, 4.6vw, 4.5rem);
  --section: clamp(4.5rem, 9vw, 9.5rem);
  --radius: 4px;
  --header-h: 4.75rem;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.014em;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--signal);
  border-radius: 2px;
}

::selection {
  background: var(--signal);
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--signal);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius);
}

.skip:focus {
  top: 1rem;
}

/* ---------- Layout ---------- */

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

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

.band--evergreen {
  background: var(--evergreen-deep);
  color: var(--chalk);
  --rule: rgb(244 245 240 / 0.2);
  --rule-strong: rgb(244 245 240 / 0.7);
  --ink-soft: rgb(244 245 240 / 0.78);
}

.band--kraft {
  background: var(--kraft);
  --rule: rgb(14 27 21 / 0.22);
  --ink-soft: #2f3a33;
}

.band--pine {
  background: var(--pine);
  --ink-soft: #3a463f;
}

.band--paper {
  background: var(--paper);
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .split--even {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .split--form {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .split__sticky {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

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

.display,
.title,
.heading {
  font-family: var(--font-display);
  font-weight: 500;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.7rem, 1.35rem + 5.6vw, 6.1rem);
  line-height: 0.99;
  letter-spacing: -0.022em;
}

.display--page {
  font-size: clamp(2.5rem, 1.5rem + 4.2vw, 5rem);
  line-height: 1.02;
  max-width: 17ch;
}

.display--page.lines {
  max-width: 21ch;
}

.title {
  font-size: clamp(1.95rem, 1.35rem + 2vw, 2.9rem);
  line-height: 1.07;
  letter-spacing: -0.016em;
  max-width: 22ch;
}

.title--wide {
  max-width: 26ch;
}

.lines span {
  display: block;
}

.heading {
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  line-height: 1.18;
  letter-spacing: -0.008em;
}

.lede {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  line-height: 1.5;
  max-width: 34em;
  color: var(--ink-soft);
}

.prose {
  max-width: 38em;
  color: var(--ink-soft);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.note {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  font-stretch: 92%;
}

.stack > * + * {
  margin-top: 1.5rem;
}

.stack-lg > * + * {
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

/* ---------- Interval line (two ticks and the span between) ---------- */

.interval {
  position: relative;
  height: 13px;
  color: var(--rule-strong);
}

.interval::before {
  content: "";
  position: absolute;
  inset: 6px 0 auto 0;
  border-top: 1.5px solid currentColor;
}

.interval::after {
  content: "";
  position: absolute;
  inset: 0;
  border-inline: 1.5px solid currentColor;
}

/* ---------- Buttons and links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.6rem;
  border: 1.5px solid var(--evergreen);
  border-radius: var(--radius);
  background: var(--evergreen);
  color: var(--chalk);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.button:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.button:active {
  transform: translateY(1px);
}

.button--signal {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}

.button--signal:hover {
  background: var(--chalk);
  border-color: var(--chalk);
  color: var(--ink);
}

.button--compact {
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.97rem;
}

.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.18s ease, color 0.18s ease;
}

.link:hover {
  text-decoration-color: var(--signal);
  text-decoration-thickness: 3px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 2rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--chalk);
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.3s ease;
  view-transition-name: site-header;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  flex: none;
  width: 2rem;
  height: 2rem;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-nav {
  display: none;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
}

.site-nav a {
  position: relative;
  padding-block: 0.4rem;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header__cta {
  display: none;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
}

@media (max-width: 26rem) {
  .brand__name {
    white-space: normal;
    max-width: 9.5em;
  }
}

@media (min-width: 62rem) {
  .site-nav,
  .site-header__cta {
    display: inline-flex;
  }

  .menu-button {
    display: none;
  }
}

/* Without JavaScript the menu button can't open anything: show the links instead. */
.no-js .menu-button {
  display: none;
}

.no-js .site-header__inner {
  flex-wrap: wrap;
  padding-block: 0.75rem;
}

.no-js .site-nav {
  display: flex;
  flex-wrap: wrap;
}

/* Pages that open on a dark band: the header sits over it until the page scrolls. */
.js .has-dark-hero .site-header {
  position: fixed;
  inset: 0 0 auto 0;
}

.has-dark-hero .site-header:not(.is-solid) {
  background: transparent;
  border-bottom-color: transparent;
  color: var(--chalk);
}

.no-js .has-dark-hero .site-header {
  position: static;
  background: var(--evergreen-deep);
}

.no-js .has-dark-hero .hero,
.no-js .has-dark-hero .page-hero--photo {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.has-dark-hero .site-header:not(.is-solid) .button {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}

.has-dark-hero .site-header:not(.is-solid) .button:hover {
  background: var(--chalk);
  border-color: var(--chalk);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

/* ---------- Menu (small screens) ---------- */

.site-menu {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--evergreen-deep);
  color: var(--chalk);
}

.site-menu::backdrop {
  background: var(--evergreen-deep);
}

.site-menu[open] {
  display: flex;
  flex-direction: column;
  animation: menu-in 0.28s ease both;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-0.75rem);
  }
}

.site-menu__bar {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  padding-inline: var(--gutter);
}

.site-menu__links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem var(--gutter);
}

.site-menu__links a {
  display: block;
  padding-block: 0.9rem;
  border-bottom: 1px solid rgb(244 245 240 / 0.2);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.site-menu__links a[aria-current="page"] {
  color: var(--signal);
}

.site-menu__foot {
  padding: 1.25rem var(--gutter) 2rem;
}

.site-menu__foot .button {
  width: 100%;
}

/* ---------- Home hero ---------- */

.hero {
  padding-top: calc(var(--header-h) + clamp(2rem, 4.6vw, 4.25rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(1.75rem, 3.2vw, 2.75rem);
}

.hero__copy > * + * {
  margin-top: clamp(1.4rem, 2.6vw, 2.2rem);
}

.hero .lede {
  max-width: 30em;
}

/* Sized so the first sentence sets on one line at desktop widths
   and breaks after "your" on narrow screens. */
.hero__head {
  font-size: clamp(2.2rem, 11vw, 5.3rem);
}

@media (min-width: 64rem) {
  .hero__head {
    grid-area: head;
    font-size: min(6.3vw, 5.3rem);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    grid-template-areas:
      "head head"
      "copy stage"
      "time time";
    align-items: start;
    column-gap: clamp(2rem, 4vw, 4.5rem);
  }

  .hero__copy {
    grid-area: copy;
    padding-top: 0.75rem;
  }

  .model__stage {
    grid-area: stage;
    justify-self: end;
    margin-top: clamp(-9rem, -7.6vw, -4rem);
  }

  .model__time {
    grid-area: time;
  }
}

/* The model: 20 pallets that pass from ITP to the customer over the arrangement. */

.model__stage {
  position: relative;
  margin-inline: auto;
  width: 100%;
  max-width: 38rem;
}

.model__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.floor {
  fill: rgb(244 245 240 / 0.055);
  stroke: rgb(244 245 240 / 0.22);
  stroke-width: 1;
}

.floor-line {
  stroke: rgb(244 245 240 / 0.1);
  stroke-width: 1;
}

.floor-tape {
  stroke: var(--signal);
  stroke-width: 2.5;
  stroke-dasharray: 9 7;
  opacity: 0.75;
}

.pallet-top {
  fill: #cdb382;
}

.pallet-left {
  fill: #a88b58;
}

.pallet-right {
  fill: #8d7244;
}

.pallet-gap {
  fill: rgb(15 42 33 / 0.6);
}

.c-top,
.c-left,
.c-right,
.seam,
.tag {
  transition: fill 0.55s ease, stroke 0.55s ease, opacity 0.4s ease;
}

.c-top {
  fill: #f6f6f0;
}

.c-left {
  fill: #dfe3da;
}

.c-right {
  fill: #c2cbc1;
}

.seam {
  fill: none;
  stroke: rgb(15 42 33 / 0.2);
  stroke-width: 1;
}

.tag {
  fill: var(--evergreen);
}

.stack.is-released .c-top {
  fill: #e3c48f;
}

.stack.is-released .c-left {
  fill: #c9a56a;
}

.stack.is-released .c-right {
  fill: #ac8850;
}

.stack.is-released .seam {
  stroke: rgb(70 48 16 / 0.34);
}

.stack.is-released .tag {
  opacity: 0;
}

.stack__body {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.model__key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-stretch: 92%;
  font-weight: 500;
}

.model__key span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.model__key i {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 2px;
  background: #f1f2ec;
}

.model__key .is-yours i {
  background: #d7b57c;
}

.model__key b {
  min-width: 1.5em;
  font-weight: 700;
  font-size: 1.15rem;
  font-stretch: 100%;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.model__time {
  padding-top: clamp(1.25rem, 3vw, 2.25rem);
  border-top: 1px solid var(--rule);
}

.model__status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  min-height: 3.3em;
}

.model__day {
  min-width: 4.4em;
  font-weight: 700;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  font-stretch: 88%;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.model__phase {
  color: var(--ink-soft);
  max-width: 44em;
}

.scrub {
  --pct: 0;
  --thumb: 1.1rem;
  position: relative;
  margin-top: 0.75rem;
  padding-bottom: 4.6rem;
}

.scrub input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  background: transparent;
  cursor: grab;
}

.scrub input:active {
  cursor: grabbing;
}

.scrub input::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(to right, var(--signal) calc(var(--pct) * 1%), rgb(244 245 240 / 0.38) 0);
  border-radius: 2px;
}

.scrub input::-moz-range-track {
  height: 3px;
  background: rgb(244 245 240 / 0.38);
  border-radius: 2px;
}

.scrub input::-moz-range-progress {
  height: 3px;
  background: var(--signal);
  border-radius: 2px;
}

.scrub input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--thumb);
  height: 2.2rem;
  margin-top: calc(-1.1rem + 1.5px);
  border: 0;
  border-radius: 3px;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgb(15 42 33 / 0.9);
  transition: transform 0.15s ease;
}

.scrub input::-moz-range-thumb {
  width: var(--thumb);
  height: 2.2rem;
  border: 0;
  border-radius: 3px;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgb(15 42 33 / 0.9);
}

.scrub input:hover::-webkit-slider-thumb {
  transform: scaleY(1.12);
}

.scrub input:focus-visible {
  outline: none;
  box-shadow: none;
}

.scrub input:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px var(--evergreen-deep), 0 0 0 7px var(--chalk);
}

.scrub input:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px var(--evergreen-deep), 0 0 0 7px var(--chalk);
}

.scrub__marks {
  position: absolute;
  inset: 2.75rem calc(var(--thumb) / 2) 0;
  pointer-events: none;
}

.scrub__marks li {
  position: absolute;
  left: calc(var(--at) / 90 * 100%);
  top: 0;
  width: 9.5rem;
  margin-left: -4.75rem;
  padding-top: 0.9rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.3;
  font-stretch: 90%;
  color: var(--ink-soft);
}

.scrub__marks li::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1.05rem;
  width: 1.5px;
  height: 1.6rem;
  background: rgb(244 245 240 / 0.55);
}

.scrub__marks li:first-child {
  margin-left: 0;
  text-align: left;
}

.scrub__marks li:first-child::before {
  left: 0;
}

.scrub__marks li:last-child {
  margin-left: -9.5rem;
  text-align: right;
}

.scrub__marks li:last-child::before {
  left: auto;
  right: 0;
}

.scrub__marks b {
  display: block;
  color: var(--chalk);
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 47.99rem) {
  .scrub {
    padding-bottom: 4rem;
  }

  .scrub__marks li:not(:first-child):not(:last-child) span {
    display: none;
  }

  .scrub__marks li {
    width: 5rem;
    margin-left: -2.5rem;
  }

  .scrub__marks li:first-child,
  .scrub__marks li:last-child {
    width: 10rem;
    white-space: nowrap;
  }

  .scrub__marks li:last-child {
    margin-left: -10rem;
  }

  .scrub__marks li:nth-child(even):not(:last-child) b {
    display: none;
  }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding-top: clamp(3.5rem, 8vw, 7rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.page-hero__inner > * + * {
  margin-top: clamp(1.4rem, 2.6vw, 2.2rem);
}

.page-hero .interval {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.page-hero--photo {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(46rem, 88svh);
  padding-top: calc(var(--header-h) + 4rem);
  color: var(--chalk);
  --ink-soft: rgb(244 245 240 / 0.86);
}

.page-hero--photo .photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgb(15 42 33 / 0.78) 0%, rgb(15 42 33 / 0) 30%),
    linear-gradient(90deg, rgb(15 42 33 / 0.72) 0%, rgb(15 42 33 / 0.35) 45%, rgb(15 42 33 / 0) 80%);
}

/* ---------- Photographs (duotone: evergreen shadows, pine highlights) ---------- */

.photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--evergreen);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(1.02);
}

.photo::before,
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.photo::before {
  z-index: 1;
  background: var(--evergreen-deep);
  mix-blend-mode: lighten;
}

.photo::after {
  z-index: 2;
  background: var(--pine);
  mix-blend-mode: multiply;
}

.photo--shade::after {
  background: linear-gradient(to top, #6f8c7b 0%, var(--pine) 70%);
}

.photo--top img {
  object-position: 50% 0;
}

.photo--upper img {
  object-position: 50% 20%;
}

.photo--ratio {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}

.photo--wide {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
}

/* ---------- Statement over a photograph ---------- */

.statement {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(26rem, 62vw, 44rem);
  padding-block: clamp(3rem, 7vw, 6rem);
  color: var(--chalk);
}

.statement .photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.statement::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(15 42 33 / 0.86) 0%, rgb(15 42 33 / 0.6) 42%, rgb(15 42 33 / 0) 78%);
}

.statement__text {
  max-width: 21ch;
  font-size: clamp(2rem, 1.2rem + 3.3vw, 4.25rem);
  line-height: 1.04;
}

/* ---------- The gap diagram ---------- */

.gap {
  isolation: isolate;
  display: grid;
  gap: 0.9rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: 0.95rem;
  font-stretch: 92%;
  line-height: 1.3;
}

.gap__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.gap__who {
  font-weight: 600;
}

.gap__track {
  position: relative;
  height: 3.4rem;
}

.gap__track::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  border-top: 1.5px solid var(--rule);
}

/* The shaded block between the two dates is the gap itself. */
.gap__track--from::after,
.gap__track--to::after {
  content: "";
  position: absolute;
  left: 12%;
  width: 60%;
  z-index: -1;
  background: rgb(211 178 126 / 0.42);
}

.gap__track--from::after {
  top: 50%;
  bottom: -0.9rem;
}

.gap__track--to::after {
  top: 0;
  bottom: 50%;
}

.gap__event {
  position: absolute;
  top: 50%;
  left: var(--at);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transform: translateY(-50%);
  white-space: nowrap;
  font-weight: 500;
}

.gap__event::before {
  content: "";
  flex: none;
  width: 0.85rem;
  height: 0.85rem;
  margin-left: -0.425rem;
  border-radius: 50%;
  background: var(--evergreen);
}

.gap__event--flip {
  flex-direction: row-reverse;
  transform: translate(-100%, -50%);
}

.gap__event--flip::before {
  margin-left: 0;
  margin-right: -0.425rem;
}

.gap__span {
  position: relative;
  margin-left: 12%;
  width: 60%;
  padding-top: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.gap__span .interval {
  position: absolute;
  inset: 0 0 auto 0;
  color: var(--evergreen);
}

/* ---------- Situations (plain list with rules) ---------- */

.rows {
  border-top: 1.5px solid var(--ink);
}

.rows > li,
.rows > div {
  display: grid;
  gap: 0.6rem;
  padding-block: clamp(1.4rem, 2.6vw, 2rem);
  border-bottom: 1px solid var(--rule);
}

.rows p {
  color: var(--ink-soft);
  max-width: 36em;
}

@media (min-width: 44rem) {
  .rows--cols > li,
  .rows--cols > div {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2rem;
    align-items: baseline;
  }
}

/* ---------- Steps (a real sequence, so it is numbered) ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-top: 1.6rem;
  border-top: 1.5px solid var(--ink);
}

.steps > li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 2rem + 2vw, 3.8rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.steps > li::after {
  content: "";
  position: absolute;
  left: 0;
  top: -7px;
  width: 1.5px;
  height: 13px;
  background: var(--ink);
}

.steps p {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  max-width: 30em;
}

@media (min-width: 44rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 72rem) {
  .steps--row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 2.5vw, 2.75rem);
  }
}

/* Long-form steps on the process page */

.process {
  counter-reset: step;
}

.process > li {
  counter-increment: step;
  display: grid;
  gap: 1.25rem 3rem;
  padding-block: clamp(2.25rem, 5vw, 4rem);
  border-top: 1.5px solid var(--ink);
}

.process > li:last-child {
  border-bottom: 1.5px solid var(--ink);
}

.process__head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

.process__head::before {
  content: counter(step);
  flex: none;
  min-width: 1.1em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 2rem + 2.6vw, 4.4rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--evergreen);
}

.process__head h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem);
  line-height: 1.1;
}

.process__body {
  color: var(--ink-soft);
}

.process__body > * + * {
  margin-top: 1rem;
}

.process__body h3 {
  margin-top: 1.75rem;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--ink);
}

@media (min-width: 60rem) {
  .process > li {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.ticks > li {
  position: relative;
  padding-left: 1.6rem;
}

.ticks > li + li {
  margin-top: 0.55rem;
}

.ticks > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.8rem;
  border-top: 1.5px solid currentColor;
}

/* ---------- Who we serve list ---------- */

.sectors {
  border-top: 1.5px solid var(--ink);
}

.sectors > li {
  border-bottom: 1px solid var(--rule);
}

.sector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(5.5rem, 16vw, 11rem);
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 1.25rem;
  text-decoration: none;
  transition: padding 0.25s ease, background-color 0.25s ease;
}

.sector h3 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem);
  line-height: 1.1;
}

.sector p {
  margin-top: 0.45rem;
  color: var(--ink-soft);
  max-width: 32em;
}

.sector .photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}

.sector .photo img {
  transition: transform 0.6s ease;
}

.sector--wide {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}

.sector--wide p {
  margin-top: 0;
  max-width: 34em;
}

.sector--wide .photo {
  aspect-ratio: 16 / 10;
}

@media (min-width: 60rem) {
  .sector--wide {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3.4fr);
    gap: 3rem;
  }
}

a.sector:hover {
  background: var(--paper);
  padding-inline: 1rem;
}

a.sector:hover .photo img {
  transform: scale(1.06);
}

/* ---------- Definition grid (pricing drivers, firm facts) ---------- */

.facts {
  display: grid;
  gap: 0 clamp(1.5rem, 3vw, 3rem);
  border-top: 1.5px solid var(--ink);
}

.facts > div {
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--rule);
}

.facts dt {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.facts dd {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  max-width: 30em;
}

@media (min-width: 40rem) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.facts--plain dt {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 0.95rem;
  font-stretch: 92%;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.facts--plain dd {
  margin-top: 0.3rem;
  color: var(--ink);
  font-size: 1.1rem;
}

/* ---------- Questions ---------- */

.faq {
  border-top: 1.5px solid var(--ink);
  interpolate-size: allow-keywords;
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  position: relative;
  display: block;
  padding: 1.35rem 3.25rem 1.35rem 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 1.1rem;
  border-top: 2px solid currentColor;
  transition: transform 0.25s ease;
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::after {
  transform: rotate(0deg);
}

.faq summary:hover {
  color: var(--evergreen-mid);
}

.faq__answer {
  padding: 0 3.25rem 1.6rem 0;
  max-width: 44em;
  color: var(--ink-soft);
}

.faq__answer > * + * {
  margin-top: 0.9rem;
}

.faq details::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete;
}

.faq details[open]::details-content {
  block-size: auto;
}

.faq-group + .faq-group {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.faq-group.split {
  row-gap: 1.25rem;
}

/* ---------- Comparison table ---------- */

.compare {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.98rem;
  line-height: 1.45;
}

.compare caption {
  caption-side: bottom;
  padding-top: 1.25rem;
  text-align: left;
}

.compare th,
.compare td {
  padding: 1.1rem 1.25rem 1.1rem 0;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.compare thead th {
  padding-bottom: 0.9rem;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  vertical-align: bottom;
}

.compare tbody th {
  width: 15%;
  font-weight: 600;
  font-stretch: 92%;
}

.compare td {
  color: var(--ink-soft);
}

.compare .is-itp {
  background: var(--pine);
  color: var(--ink);
  padding-inline: 1.25rem;
}

.compare thead .is-itp {
  border-radius: var(--radius) var(--radius) 0 0;
}

@media (max-width: 59.99rem) {
  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td,
  .compare caption {
    display: block;
    width: auto;
  }

  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .compare tbody tr {
    padding-block: 1.5rem;
    border-top: 1.5px solid var(--ink);
  }

  .compare tbody th {
    width: auto;
    padding: 0 0 0.75rem;
    border: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.3rem;
    font-stretch: 100%;
  }

  .compare td {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .compare td:last-child {
    border-bottom: 0;
  }

  .compare td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    font-stretch: 92%;
    color: var(--ink);
  }

  .compare .is-itp {
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    border-bottom: 0;
  }
}

/* ---------- Fit lists ---------- */

.fit {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.fit h3 {
  padding-bottom: 1rem;
  border-bottom: 1.5px solid currentColor;
}

.fit li {
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 44rem) {
  .fit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Closing call ---------- */

.closing {
  position: relative;
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

.closing .interval {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.closing__grid {
  display: grid;
  gap: 2rem;
}

.closing .title {
  max-width: 16ch;
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.6rem);
  line-height: 1;
}

@media (min-width: 60rem) {
  .closing__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 4rem;
  }
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 1.5rem;
}

.form__row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 40rem) {
  .form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field label,
.field legend {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  font-size: 0.98rem;
}

.field .optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.5;
}

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230e1b15' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.75rem;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--ink);
  background: #fff;
}

.field [aria-invalid="true"] {
  border-color: #9a2a16;
  background: #fff6f3;
}

.field__error {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #8a2413;
}

.field__hint {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.form__trap {
  position: absolute;
  left: -200vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--evergreen);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--pine);
  font-weight: 500;
}

.form__status[data-state="error"],
.form__status[data-state="offline"] {
  border-left-color: #9a2a16;
  background: #fbe9e3;
}

.form__status:empty {
  display: none;
}

.panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--pine);
}

.panel .steps > li::before {
  font-size: 2.2rem;
}

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

.legal {
  max-width: 44rem;
}

.legal h2 {
  margin-top: 2.75rem;
  font-size: 1.6rem;
}

.legal p,
.legal ul {
  margin-top: 1rem;
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal li + li {
  margin-top: 0.4rem;
}

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

.site-footer {
  padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem;
  background: var(--evergreen-deep);
  color: var(--chalk);
  --rule: rgb(244 245 240 / 0.2);
  --rule-strong: rgb(244 245 240 / 0.7);
  --ink-soft: rgb(244 245 240 / 0.72);
}

/* When a page ends on the evergreen closing band, the footer continues it. */
main:has(> .closing:last-child) + .site-footer {
  padding-top: 0;
}

main:has(> .closing:last-child) + .site-footer .site-footer__grid {
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--rule);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem 3rem;
}

.site-footer__about p {
  margin-top: 1.25rem;
  max-width: 26em;
  color: var(--ink-soft);
}

.site-footer h2 {
  margin-bottom: 0.9rem;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 0.95rem;
  font-stretch: 92%;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.site-footer li + li {
  margin-top: 0.55rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer li a:hover {
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
}

.site-footer__legal {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.75rem 3rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (min-width: 48rem) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr));
  }

  .site-footer__legal {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  }

  .site-footer__legal p:last-child {
    text-align: right;
  }
}

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

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.22s;
}

/* One orchestrated moment: the inventory arrives when the home page opens.
   The script adds .has-arrived afterwards so the entrance never replays. */
.js .model:not(.has-arrived) .stack__body {
  animation: stack-in 0.55s cubic-bezier(0.2, 0.9, 0.25, 1) both;
  animation-delay: calc(var(--i) * 38ms + 150ms);
}

@keyframes stack-in {
  from {
    opacity: 0;
    transform: translateY(-34px);
  }
}

.stack.is-released .stack__body {
  animation: stack-hop 0.5s ease;
}

@keyframes stack-hop {
  40% {
    transform: translateY(-9px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .site-menu,
  .scrub,
  .skip {
    display: none !important;
  }

  .band,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
    padding-block: 1.5rem;
  }
}
