/* North Pacific Energy — site stylesheet
   Layout concept: a strict corporate grid on white. Photography runs edge to edge behind
   the page headers, under a deep-blue veil that keeps the white headline readable.
   Content sits in ruled panels on a twelve-column grid. Two brand devices recur and
   nothing else decorates: the three-colour bar (red, orange, yellow) that opens a
   section, and one large curved corner, the horizon arc of the logo. */

:root {
  /* colour: taken from the logo, plus the hull red and work-light yellow of the imagery */
  --ink: #0a2b3c;
  --blue: #00587c;
  --blue-deep: #06425e;
  --teal: #0098b0;
  --orange: #fd8602;
  --yellow: #f7b916;
  --red: #c9432f;
  --paper: #ffffff;
  --mist: #f1f5f7;
  --sky: #dcebf0;
  --line: #d3dee3;
  --muted: #48606d;
  --veil: 6, 38, 54;

  /* type */
  --font-display: "Space Grotesk", "Inter Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Onest", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-meta: 0.8125rem;
  --fs-small: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 0.45vw + 1.02rem, 1.3125rem);
  --fs-h3: clamp(1.1875rem, 0.35vw + 1.1rem, 1.375rem);
  --fs-h2: clamp(1.75rem, 1.5vw + 1.25rem, 2.625rem);
  --fs-h1: clamp(2.125rem, 2.4vw + 1.35rem, 3.5rem);
  --fs-numeral: clamp(3rem, 4.5vw + 1rem, 5.5rem);

  /* space and shape */
  --wrap: 82rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(3.5rem, 6.5vw, 6.5rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --curve: clamp(2.5rem, 6vw, 5.5rem);
  --radius: 0.375rem;
  --topbar-h: 2.5rem;
  --bar-h: 6.5rem;
  --bar-h-stuck: 4.75rem;
  --header-h: var(--bar-h-stuck);
  --shadow: 0 1px 2px rgba(10, 43, 60, 0.06), 0 14px 34px -18px rgba(10, 43, 60, 0.32);
  --bar: linear-gradient(90deg, var(--red) 0 33.4%, var(--orange) 33.4% 66.7%, var(--yellow) 66.7%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.022em; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.026em; }
h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.22; letter-spacing: -0.012em; }
p { margin: 0; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
table { border-collapse: collapse; }
::selection { background: var(--yellow); color: var(--ink); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; border-radius: 0 0 0.5rem 0.5rem; }
.skip:focus { top: 0; color: var(--paper); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

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

/* ---------- shared text blocks ---------- */
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); max-width: 38em; }
.prose { display: grid; gap: 1.1em; max-width: 40em; }
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.meta { font-family: var(--font-display); font-size: var(--fs-meta); font-weight: 600; letter-spacing: 0.005em; color: var(--blue); }
.note { font-size: var(--fs-small); color: var(--muted); max-width: 46em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3.125rem; padding: 0.7rem 1.5rem; border-radius: var(--radius);
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; border: 2px solid var(--blue); background: var(--blue); color: var(--paper);
  cursor: pointer; transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: var(--paper); }
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.text-link { font-family: var(--font-display); font-weight: 600; color: var(--blue); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.32em; }
.text-link:hover { color: var(--blue-deep); text-decoration-color: var(--red); text-decoration-thickness: 2px; }

/* ---------- preloader: the full logo, and the cargo route drawing itself from origin to destination ---------- */
.preloader { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: var(--paper); transition: opacity 0.2s ease; }
.js .preloader { display: grid; animation: preloader-failsafe 0.4s ease 6s forwards; }
.preloader.is-done { opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s linear 0.4s; animation: none; }
.preloader__inner { display: grid; justify-items: center; gap: 1.5rem; }
.preloader img { width: clamp(8.5rem, 22vw, 11rem); height: auto; }
.preloader__route { width: 11rem; height: 1.5rem; overflow: visible; }
.preloader__route path { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.preloader__from { fill: var(--yellow); }
.preloader__to { fill: var(--paper); stroke: var(--line); stroke-width: 2; }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: no-preference) {
  .preloader img { animation: preloader-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .preloader__route path { animation: preloader-draw 1.5s cubic-bezier(0.6, 0, 0.3, 1) infinite; }
  .preloader__to { animation: preloader-arrive 1.5s linear infinite; }
  @keyframes preloader-rise { from { transform: translateY(0.9rem); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes preloader-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 62% { stroke-dashoffset: 0; opacity: 1; } 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
  @keyframes preloader-arrive { 0%, 58% { fill: var(--paper); stroke: var(--line); } 64%, 88% { fill: var(--red); stroke: var(--red); } 100% { fill: var(--paper); stroke: var(--line); } }
}
@media (prefers-reduced-motion: reduce) { .preloader__route path { stroke-dashoffset: 0; } .preloader__to { fill: var(--red); stroke: var(--red); } }

/* ---------- header: a slim contact bar, then the full logo beside the menu ---------- */
.header { position: sticky; top: calc(-1 * var(--topbar-h) - 1px); z-index: 50; background: var(--paper); box-shadow: 0 1px 0 var(--line); transition: box-shadow 0.2s ease; }
.header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 14px 28px -22px rgba(10, 43, 60, 0.5); }
.topbar { background: var(--mist); border-bottom: 1px solid var(--line); font-size: var(--fs-meta); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--topbar-h); }
.topbar__contact { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); min-width: 0; }
.topbar a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: var(--topbar-h); color: var(--ink); text-decoration: none; white-space: nowrap; }
.topbar a:hover { color: var(--blue); text-decoration: underline; }
.topbar svg { width: 0.95rem; height: 0.95rem; color: var(--blue); flex: none; }
.topbar__tools { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.5rem); flex: none; }
.topbar__profile { font-family: var(--font-display); font-weight: 600; }

/* language switch: two fixed options, the current one carries the yellow of the logo's sun */
.lang { display: inline-flex; align-items: center; gap: 0.15rem; flex: none; }
.topbar .lang a { justify-content: center; min-width: 2.375rem; min-height: 1.75rem; padding: 0 0.5rem; border-radius: 0.25rem; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.topbar .lang a:hover { color: var(--blue); text-decoration: none; background: var(--paper); }
.topbar .lang a[aria-current="true"] { background: var(--yellow); color: var(--ink); }

.header__bar { position: relative; display: flex; align-items: stretch; gap: clamp(1rem, 2vw, 2.5rem); min-height: var(--bar-h); transition: min-height 0.22s ease; }
.header.is-stuck .header__bar { min-height: var(--bar-h-stuck); }
.brand { display: flex; align-items: center; flex: none; margin-right: auto; padding-block: 0.5rem; text-decoration: none; }
.brand img { height: 5.5rem; width: auto; transition: height 0.22s ease; }
.header.is-stuck .brand img { height: 3.875rem; }

.nav-toggle { display: none; align-self: center; align-items: center; gap: 0.6rem; min-height: 2.875rem; padding: 0.4rem 0.95rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.nav-toggle__bars { width: 1.15rem; height: 0.75rem; position: relative; display: inline-block; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease; }
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: calc(50% - 1px); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { bottom: calc(50% - 1px); transform: rotate(-45deg); }

.nav { display: flex; }
.nav__list { display: flex; align-items: stretch; gap: clamp(0.25rem, 1.1vw, 1.5rem); list-style: none; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { position: relative; display: inline-flex; align-items: center; align-self: stretch; padding: 0 0.3rem; font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav__link::after { content: ""; position: absolute; left: 0.3rem; right: 0.3rem; bottom: 0; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; }
.nav__link:hover { color: var(--blue); }
.nav__item:hover > .nav__link::after, .nav__item:focus-within > .nav__link::after, .nav__link[aria-current="page"]::after, .nav__item.is-section > .nav__link::after { transform: scaleX(1); }
.nav__link[aria-current="page"], .nav__item.is-section > .nav__link { color: var(--blue); }
.nav__sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 2.75rem; margin-left: -0.15rem; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 0.25rem; }
.nav__sub-toggle svg { width: 0.7rem; height: 0.7rem; transition: transform 0.2s ease; }
.nav__sub-toggle[aria-expanded="true"] svg, .nav__item:hover > .nav__sub-toggle svg { transform: rotate(180deg); }
.nav__sub { list-style: none; position: absolute; top: 100%; left: -0.75rem; min-width: 18.5rem; padding: 0.6rem; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); display: none; }
.nav__sub a { display: block; padding: 0.65rem 0.9rem; border-radius: 0.25rem; font-family: var(--font-display); font-size: 0.95rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--mist); color: var(--blue); }
.nav__item--mega { position: static; }
.nav__sub--mega { left: auto; right: var(--gutter); width: min(54rem, calc(100vw - 2 * var(--gutter))); padding: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0.5rem; }
.nav__sub--mega > li:first-child, .nav__sub--mega > .nav__group { grid-column: 1 / -1; }
.nav__sub--mega > li:first-child a, .nav__group a { font-weight: 600; color: var(--blue); }
.nav__group { margin-top: 0.4rem; padding-top: 0.4rem; border-top: 1px solid var(--line); }
.nav__item--cta { margin-left: 0.25rem; }
.nav .btn { min-height: 2.875rem; padding: 0.5rem 1.35rem; font-size: 0.975rem; white-space: nowrap; }

@media (min-width: 66.001rem) and (max-width: 84rem) {
  .nav__link { font-size: 0.925rem; padding-inline: 0.2rem; }
  .nav__sub-toggle { width: 1.25rem; }
  .nav .btn { font-size: 0.925rem; padding-inline: 1.05rem; }
}
@media (min-width: 66.001rem) {
  .nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub, .nav__sub.is-open { display: block; }
  .nav__item:hover > .nav__sub--mega, .nav__item:focus-within > .nav__sub--mega, .nav__sub--mega.is-open { display: grid; }
}
@media (max-width: 66rem) {
  :root { --bar-h: 5.5rem; --bar-h-stuck: 4.5rem; }
  .brand img { height: 4.5rem; }
  .header.is-stuck .brand img { height: 3.625rem; }
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 0.5rem var(--gutter) 1.75rem; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 3px solid var(--orange); box-shadow: var(--shadow); max-height: calc(100vh - var(--bar-h)); max-height: calc(100dvh - var(--bar-h)); overflow-y: auto; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__item, .nav__item--mega { position: relative; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__link { flex: 1; padding: 0.9rem 0; font-size: 1.125rem; white-space: normal; }
  .nav__link::after { content: none; }
  .nav__sub-toggle { width: 3rem; height: 3rem; margin: 0; }
  .nav__sub-toggle svg { width: 0.9rem; height: 0.9rem; }
  .nav__item:hover > .nav__sub-toggle svg { transform: none; }
  .nav__item > .nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav__sub, .nav__sub--mega { position: static; width: 100%; min-width: 0; padding: 0 0 0.5rem 1rem; border: 0; border-left: 3px solid var(--yellow); border-radius: 0; box-shadow: none; margin-bottom: 0.9rem; }
  .nav__sub.is-open { display: block; }
  .nav__sub--mega.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__sub a { padding: 0.6rem 0.5rem; font-size: 1rem; color: var(--muted); }
  .nav__item--cta { margin: 1.25rem 0 0; border-bottom: 0; }
  .nav .btn { width: 100%; }
}
@media (max-width: 40rem) {
  .topbar .topbar__mail, .topbar .topbar__profile { display: none; }
  .nav__sub--mega.is-open { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 30rem) {
  :root { --bar-h: 5rem; --bar-h-stuck: 4.25rem; }
  .brand img { height: 4.125rem; }
  .header.is-stuck .brand img { height: 3.375rem; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nav-toggle { padding: 0.4rem 0.85rem; }
}

/* ---------- picture headers: the photograph fills the back, a blue veil keeps the white text readable ---------- */
.hero, .page-hero { position: relative; isolation: isolate; display: grid; color: var(--paper); background: var(--blue-deep); overflow: hidden; border-bottom-right-radius: var(--curve); }
.hero__media, .page-hero .banner { position: absolute; inset: 0; z-index: -1; margin: 0; }
.hero__media::after, .page-hero .banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--veil), 0.8) 0%, rgba(var(--veil), 0.72) 38%, rgba(var(--veil), 0.44) 60%, rgba(var(--veil), 0.06) 100%); }
.hero__title, .hero .lead, .page-hero__grid h1, .page-hero .lead, .crumbs { text-shadow: 0 1px 3px rgba(var(--veil), 0.55); }
.page-hero--plain .page-hero__grid h1, .page-hero--plain .lead, .page-hero--plain .crumbs { text-shadow: none; }
.hero__pic { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero__pic.is-active { opacity: 1; }
.hero__pic img, .page-hero .banner img { width: 100%; height: 100%; object-fit: cover; }

/* home */
.hero__inner { display: flex; align-items: center; min-height: clamp(30rem, calc(100vh - 9rem), 43rem); min-height: clamp(30rem, calc(100svh - 9rem), 43rem); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.hero__copy { display: grid; gap: clamp(1.5rem, 2.4vw, 2.25rem); width: 100%; max-width: 42rem; min-width: 0; }
.hero__copy::before { content: ""; width: 3.5rem; height: 4px; background: var(--bar); }
.hero__slides { display: grid; }
.hero__slide { grid-area: 1 / 1; display: grid; gap: clamp(1.1rem, 1.8vw, 1.6rem); align-content: start; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s linear 0.6s; }
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.6s ease, visibility 0s; }
.hero__title { font-size: clamp(2.125rem, 2.7vw + 1.2rem, 3.625rem); line-height: 1.06; letter-spacing: -0.03em; color: var(--paper); }
.hero .lead, .page-hero .lead { color: rgba(255, 255, 255, 0.95); max-width: 36em; }
.hero .btn { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.hero .btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.hero .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.9); color: var(--paper); }
.hero .btn--ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.hero :focus-visible, .page-hero :focus-visible { outline-color: var(--yellow); }
.hero__controls { display: flex; align-items: center; gap: 0.5rem; }
.hero__arrow { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.75); background: transparent; color: var(--paper); display: grid; place-items: center; cursor: pointer; transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease; }
.hero__arrow:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.hero__arrow svg { width: 1rem; height: 1rem; }
.hero__dots { display: flex; align-items: center; gap: 0.35rem; margin-inline: 0.35rem; }
.hero__dots button { width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.hero__dots span { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.5); transition: background-color 0.3s ease; }
.hero__dots button:hover span { background: var(--paper); }
.hero__dots button[aria-current="true"] span { background: linear-gradient(90deg, var(--orange), var(--yellow)); }

/* interior pages */
.page-hero { align-items: end; min-height: clamp(19rem, 32vw, 26.5rem); }
.page-hero > .wrap { display: grid; align-content: end; gap: clamp(1rem, 2vw, 1.5rem); padding-block: clamp(2rem, 4vw, 3rem) clamp(2.25rem, 4.5vw, 3.5rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; list-style: none; font-size: var(--fs-small); color: rgba(255, 255, 255, 0.92); }
.crumbs li + li::before { content: "/"; margin-right: 0.6rem; color: rgba(255, 255, 255, 0.6); }
.crumbs a { color: var(--paper); text-decoration: none; }
.crumbs a:hover { color: var(--paper); text-decoration: underline; }
.crumbs [aria-current] { color: rgba(255, 255, 255, 0.92); }
.page-hero__grid { display: grid; gap: clamp(0.9rem, 1.6vw, 1.25rem); max-width: 47rem; }
.page-hero__grid::before { content: ""; width: 3.5rem; height: 4px; background: var(--bar); }
.page-hero__grid h1 { color: var(--paper); }

/* interior pages without a picture */
.page-hero--plain { min-height: 0; color: var(--ink); background: var(--mist); border-bottom: 1px solid var(--line); border-radius: 0; }
.page-hero--plain .crumbs { color: var(--muted); }
.page-hero--plain .crumbs li + li::before { color: var(--line); }
.page-hero--plain .crumbs a { color: var(--muted); }
.page-hero--plain .crumbs a:hover { color: var(--blue); }
.page-hero--plain .crumbs [aria-current] { color: var(--ink); }
.page-hero--plain .page-hero__grid { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(1.5rem, 5vw, 5rem); align-items: end; }
.page-hero--plain .page-hero__grid::before { grid-column: 1 / -1; }
.page-hero--plain .page-hero__grid h1 { color: var(--ink); }
.page-hero--plain .lead { color: var(--muted); }
.page-hero--plain :focus-visible { outline-color: var(--teal); }

@media (max-width: 52rem) {
  .hero__media::after, .page-hero .banner::after { background: linear-gradient(180deg, rgba(var(--veil), 0.64) 0%, rgba(var(--veil), 0.74) 100%); }
  .hero__inner { min-height: clamp(27rem, calc(100vh - 8rem), 38rem); min-height: clamp(27rem, calc(100svh - 8rem), 38rem); }
  .page-hero--plain .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
}

.banner { position: relative; overflow: hidden; background: var(--sky); aspect-ratio: 21 / 8; border-radius: var(--radius) var(--radius) var(--curve) var(--radius); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .banner { aspect-ratio: auto; border-radius: 0; }
@media (max-width: 40rem) { .banner { aspect-ratio: 4 / 3; } .page-hero .banner { aspect-ratio: auto; } }
.caption { display: block; margin-top: 0.75rem; font-size: var(--fs-meta); color: var(--muted); }

/* ---------- facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 0 0 var(--radius) var(--radius); }
.facts > div { padding: 1.25rem clamp(1rem, 2vw, 1.75rem) 1.35rem; min-width: 0; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts dt { font-family: var(--font-display); font-size: var(--fs-meta); font-weight: 500; letter-spacing: 0.005em; color: var(--muted); }
.facts dd { margin-top: 0.3rem; font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.012em; overflow-wrap: anywhere; }
@media (max-width: 56rem) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(odd) { border-left: 0; }
  .facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 26rem) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.25rem); }
.section--flush-top { padding-top: 0; }
.section--mist, .section--arc { background: var(--mist); }
.section--mist.section--flush-top, .section--arc.section--flush-top { padding-top: var(--section); }
.section__head { display: grid; gap: 1.1rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); max-width: 50rem; }
.section__head::before { content: ""; width: 3rem; height: 4px; background: var(--bar); }
.section__head--split { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(1.5rem, 5vw, 5rem); align-items: end; }
.section__head--split::before { grid-column: 1 / -1; }
.section__head--split h2 { max-width: 14em; }
.section__head p { color: var(--muted); font-size: var(--fs-lead); line-height: 1.55; max-width: 36em; }
@media (max-width: 52rem) { .section__head--split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- pictures: straight edges, one curved corner ---------- */
.shape { position: relative; overflow: hidden; background: var(--sky); border-radius: var(--radius); }
.shape img { width: 100%; height: 100%; object-fit: cover; }
.shape--land { aspect-ratio: 3 / 2; }
.shape--wide { aspect-ratio: 16 / 9; }
.shape--tall { aspect-ratio: 4 / 5; }
.shape--square { aspect-ratio: 1; }
.shape--circle { aspect-ratio: 5 / 4; }
.shape--arch, .shape--circle, .shape--leaf-a, .shape--leaf-b, .shape--leaf-c, .shape--leaf-d { border-radius: var(--radius) var(--radius) var(--curve) var(--radius); }

/* ---------- split: text beside media ---------- */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); row-gap: 2rem; align-items: center; }
.split__text { grid-column: span 6; display: grid; gap: 1.5rem; min-width: 0; }
.split__media { grid-column: 8 / -1; min-width: 0; }
.split--flip .split__text { grid-column: 7 / -1; order: 2; }
.split--flip .split__media { grid-column: 1 / span 5; order: 1; }
.split--top { align-items: start; }
.split__text > h2:first-child::before { content: ""; display: block; width: 3rem; height: 4px; margin-bottom: 1.1rem; background: var(--bar); }
@media (max-width: 52rem) {
  .split__text, .split__media, .split--flip .split__text, .split--flip .split__media { grid-column: 1 / -1; order: 0; }
  .split__media { max-width: 34rem; }
}

/* ---------- services (home): three picture cards ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.service { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease; }
.service:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--sky); }
.service__media { aspect-ratio: 3 / 2; border-radius: 0; min-width: 0; }
.service__media img { transition: transform 0.6s ease; }
.service:hover .service__media img { transform: scale(1.04); }
.service__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; padding: clamp(1.25rem, 2vw, 1.75rem); border-top: 3px solid var(--orange); min-width: 0; }
.service:nth-child(2) .service__body { border-top-color: var(--yellow); }
.service:nth-child(3) .service__body { border-top-color: var(--red); }
.service__body p { color: var(--muted); }
.service__body h3 { font-size: clamp(1.3125rem, 0.6vw + 1.15rem, 1.5625rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.service__body .text-link { margin-top: auto; padding-top: 0.35rem; }
@media (max-width: 60rem) { .services { grid-template-columns: minmax(0, 1fr); } .service { flex-direction: row; } .service__media { flex: 0 0 40%; aspect-ratio: auto; min-height: 12rem; } .service__body { border-top: 0; border-left: 3px solid var(--orange); } .service:nth-child(2) .service__body { border-left-color: var(--yellow); } .service:nth-child(3) .service__body { border-left-color: var(--red); } }
@media (max-width: 38rem) { .service { flex-direction: column; } .service__media { flex: none; aspect-ratio: 3 / 2; min-height: 0; } .service__body, .service:nth-child(2) .service__body, .service:nth-child(3) .service__body { border-left: 0; border-top: 3px solid var(--orange); } .service:nth-child(2) .service__body { border-top-color: var(--yellow); } .service:nth-child(3) .service__body { border-top-color: var(--red); } }

/* ---------- route: the cargo's journey on one line ---------- */
.route { position: relative; }
.route__line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 7.5rem; overflow: visible; }
.route__line path { fill: none; stroke: var(--teal); stroke-width: 2; vector-effect: non-scaling-stroke; }
.route__list { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; counter-reset: stop; }
.route__stop { position: relative; padding: 9.25rem 1rem 0; text-align: center; counter-increment: stop; min-width: 0; }
.route__stop::before { content: ""; position: absolute; left: 50%; top: var(--y, 5rem); width: 1.125rem; height: 1.125rem; margin: -0.5625rem 0 0 -0.5625rem; border-radius: 50%; background: var(--paper); border: 3px solid var(--blue); box-shadow: 0 0 0 6px var(--mist); }
.route__stop:first-child::before { border-color: var(--yellow); background: var(--yellow); }
.route__stop:last-child::before { border-color: var(--red); background: var(--red); }
.route__stop h3 { font-size: 1.1875rem; font-weight: 600; }
.route__stop h3::before { content: counter(stop, decimal-leading-zero); display: block; margin-bottom: 0.5rem; font-size: var(--fs-meta); font-weight: 600; letter-spacing: 0.06em; color: var(--blue); }
.route__stop p { margin-top: 0.5rem; font-size: var(--fs-small); color: var(--muted); }
.route--paper .route__stop::before { box-shadow: 0 0 0 6px var(--paper); }
@media (max-width: 56rem) {
  .route__line { display: none; }
  .route__list { grid-template-columns: minmax(0, 1fr); gap: 0; border-left: 2px solid var(--teal); margin-left: 0.5rem; }
  .route__stop { padding: 0 0 2rem 1.75rem; text-align: left; }
  .route__stop:last-child { padding-bottom: 0; }
  .route__stop::before { left: -1px; top: 0.6rem; }
}

/* ---------- ruled lists ---------- */
.rule-list { list-style: none; border-top: 2px solid var(--ink); }
.rule-list > li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0.5rem clamp(1rem, 3vw, 3rem); padding: 1.4rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rule-list h3 { font-size: clamp(1.1875rem, 0.6vw + 1.05rem, 1.5rem); font-weight: 600; letter-spacing: -0.018em; }
.rule-list p { color: var(--muted); }
.rule-list p + p { margin-top: 0.6rem; }
.rule-list .tag { display: block; margin-top: 0.75rem; font-size: var(--fs-small); color: var(--ink); }
.rule-list .tag b { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-meta); letter-spacing: 0.005em; color: var(--muted); margin-right: 0.5rem; }
@media (max-width: 40rem) { .rule-list > li { grid-template-columns: minmax(0, 1fr); } }

.check-list { list-style: none; display: grid; gap: 0.7rem; }
.check-list li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.8rem; height: 3px; background: var(--orange); }
.check-list strong { color: var(--ink); font-weight: 600; }

/* ---------- numbered stages (only for real sequences) ---------- */
.stages { list-style: none; counter-reset: stage; display: grid; border-top: 2px solid var(--ink); }
.stage { counter-increment: stage; display: grid; grid-template-columns: minmax(0, 5.5rem) minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 0.6rem clamp(1rem, 3vw, 3rem); padding: clamp(1.35rem, 2.6vw, 2.1rem) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.stage::before { content: counter(stage, decimal-leading-zero); font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 2vw + 1.2rem, 3rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--blue); font-variant-numeric: tabular-nums; }
.stage h3 { font-weight: 600; }
.stage p { color: var(--muted); }
@media (max-width: 46rem) { .stage { grid-template-columns: minmax(0, 3.75rem) minmax(0, 1fr); } .stage p { grid-column: 2; } .stage::before { font-size: 2rem; } }

/* ---------- panels in columns ---------- */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col { display: grid; gap: 0.8rem; align-content: start; padding: clamp(1.25rem, 2.2vw, 2rem); background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 0 0 var(--radius) var(--radius); min-width: 0; }
.col h3 { font-weight: 600; }
.col p { color: var(--muted); }
.col h3 + .check-list { margin-top: 0.3rem; }
@media (max-width: 56rem) { .cols, .cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38rem) { .cols, .cols--2, .cols--4 { grid-template-columns: minmax(0, 1fr); } }

/* named principles: each panel opens with one colour of the palette */
.keywords { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); gap: var(--gap); }
.keyword { display: grid; gap: 0.65rem; align-content: start; padding: clamp(1.25rem, 2.2vw, 1.9rem); background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 0 0 var(--radius) var(--radius); min-width: 0; }
.keyword:nth-child(2) { border-top-color: var(--teal); }
.keyword:nth-child(3) { border-top-color: var(--orange); }
.keyword:nth-child(4) { border-top-color: var(--red); }
.keyword h3 { font-size: clamp(1.3125rem, 0.6vw + 1.15rem, 1.5625rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.keyword p { color: var(--muted); }

/* big numeral with caption */
.numeral { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-numeral); line-height: 0.85; letter-spacing: -0.05em; color: var(--blue); font-variant-numeric: tabular-nums; }
.numeral + .meta { display: block; margin-top: 0.75rem; }

/* ---------- data table ---------- */
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 0 0 var(--radius) var(--radius); }
.data { width: 100%; min-width: 44rem; font-size: var(--fs-small); }
.data th, .data td { text-align: left; vertical-align: top; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.data tbody tr:last-child th, .data tbody tr:last-child td { border-bottom: 0; }
.data thead th { background: var(--mist); font-family: var(--font-display); font-size: var(--fs-meta); font-weight: 600; letter-spacing: 0.005em; color: var(--ink); white-space: nowrap; }
.data tbody th { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; color: var(--blue); white-space: nowrap; }
.data tbody th small { display: block; margin-top: 0.15rem; font-family: var(--font-body); font-size: var(--fs-meta); font-weight: 400; letter-spacing: 0; color: var(--muted); white-space: normal; }
.data td { color: var(--muted); }
.data--spec tbody th { font-size: 1.0625rem; color: var(--ink); white-space: normal; min-width: 11rem; }
.data--spec td:nth-child(2) { color: var(--ink); font-weight: 500; min-width: 15rem; }

/* on phones a wide table becomes a stack of labelled rows instead of a sideways scroll */
@media (max-width: 46rem) {
  .table-wrap { overflow-x: visible; }
  .data { min-width: 0; display: block; }
  .data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .data tbody, .data tr { display: block; }
  .data tr { padding: 1.1rem 1.1rem; border-bottom: 1px solid var(--line); }
  .data tbody tr:last-child { border-bottom: 0; }
  .data th, .data td { display: block; padding: 0; border: 0; }
  .data tbody th { white-space: normal; margin-bottom: 0.5rem; font-size: 1.25rem; }
  .data td { padding-top: 0.45rem; }
  .data td[data-label]::before { content: attr(data-label); display: block; font-family: var(--font-display); font-size: var(--fs-meta); font-weight: 600; letter-spacing: 0.005em; color: var(--ink); }
  .data--spec tbody th { font-size: 1.125rem; min-width: 0; margin-bottom: 0.2rem; }
  .data--spec td:nth-child(2) { min-width: 0; padding-top: 0; }
  .data--spec td[data-label]::before { content: none; }
}

.spec { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 0 0 var(--radius) var(--radius); }
.spec dt, .spec dd { padding: 0.9rem 1.15rem; border-bottom: 1px solid var(--line); }
.spec dt:last-of-type, .spec dd:last-of-type { border-bottom: 0; }
.spec dt { font-family: var(--font-display); font-size: var(--fs-meta); font-weight: 500; letter-spacing: 0.005em; color: var(--muted); background: var(--mist); align-self: stretch; display: flex; align-items: center; }
.spec dd { font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.005em; overflow-wrap: anywhere; }
@media (max-width: 34rem) { .spec { grid-template-columns: minmax(0, 1fr); } .spec dt { border-bottom: 0; padding-bottom: 0.35rem; background: none; } .spec dd { padding-top: 0; } }

.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); border-top: 2px solid var(--ink); }
.glossary > div { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.glossary dt { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.glossary dd { margin-top: 0.35rem; color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 40rem) { .glossary { grid-template-columns: minmax(0, 1fr); } }

/* ---------- who-does-what chain ---------- */
.chain { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; position: relative; }
.chain::before { content: ""; position: absolute; left: 10%; right: 10%; top: 1.75rem; height: 2px; background: repeating-linear-gradient(90deg, var(--blue) 0 10px, transparent 10px 18px); }
.chain li { position: relative; display: grid; gap: 0.5rem; justify-items: center; text-align: center; padding: 0 0.75rem; min-width: 0; }
.chain__node { position: relative; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--blue); color: var(--blue); }
.chain__node svg { width: 1.5rem; height: 1.5rem; }
.chain li:first-child .chain__node { border-color: var(--yellow); }
.chain li:last-child .chain__node { border-color: var(--red); color: var(--red); }
.chain h3 { font-size: 1.125rem; font-weight: 600; margin-top: 0.4rem; }
.chain p { font-size: var(--fs-small); color: var(--muted); }
.chain__role { font-size: var(--fs-meta); letter-spacing: 0.005em; font-family: var(--font-display); font-weight: 600; color: var(--blue); }
.coordination { margin-top: clamp(1.75rem, 3vw, 2.5rem); padding: 1.1rem 1.5rem; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0.25rem 1rem; text-align: center; background: var(--paper); }
.coordination strong { font-family: var(--font-display); font-weight: 600; color: var(--blue); }
.coordination span { color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 52rem) {
  .chain { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .chain::before { left: 1.75rem; right: auto; top: 1.75rem; bottom: 1.75rem; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--blue) 0 10px, transparent 10px 18px); }
  .chain li { grid-template-columns: 3.5rem minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 1.25rem; padding: 0; }
  .chain__node { grid-row: span 3; }
  .chain h3 { margin-top: 0; }
  .coordination { justify-content: flex-start; text-align: left; }
}

/* ---------- link panels with a picture ---------- */
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.panel { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; transition: box-shadow 0.25s ease, transform 0.25s ease; }
.panel .shape { border-radius: 0; }
.panel .shape img { transition: transform 0.6s ease; }
.panel h3 { padding: clamp(1.25rem, 2vw, 1.75rem) clamp(1.25rem, 2vw, 1.75rem) 0; border-top: 3px solid var(--orange); font-size: clamp(1.3125rem, 0.6vw + 1.15rem, 1.5625rem); font-weight: 600; letter-spacing: -0.02em; }
.panel p { padding: 0.7rem clamp(1.25rem, 2vw, 1.75rem) clamp(1.25rem, 2vw, 1.75rem); color: var(--muted); }
.panel:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-3px); }
.panel:hover h3 { color: var(--blue); }
.panel:hover .shape img { transform: scale(1.04); }
@media (max-width: 44rem) { .panels { grid-template-columns: minmax(0, 1fr); } }

/* ---------- pull statement ---------- */
.statement { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 1.8vw + 1.05rem, 2.5rem); line-height: 1.16; letter-spacing: -0.026em; max-width: 22em; text-wrap: balance; }
.statement::before { content: ""; display: block; width: 3.5rem; height: 4px; margin-bottom: 1.5rem; background: var(--bar); }

/* ---------- band: a wide picture with a panel set over its corner ---------- */
.band { position: relative; }
.band__media { aspect-ratio: 21 / 8; overflow: hidden; border-radius: var(--radius) var(--radius) var(--radius) var(--curve); background: var(--sky); }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__panel { position: relative; margin: calc(-1 * clamp(3rem, 9vw, 8rem)) clamp(0rem, 3vw, 2.5rem) 0 auto; width: min(100%, 36rem); background: var(--paper); padding: clamp(1.5rem, 3.5vw, 2.75rem); border-top: 4px solid var(--orange); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); display: grid; gap: 1.1rem; }
.band__panel p { color: var(--muted); }
@media (max-width: 40rem) { .band__media { aspect-ratio: 4 / 3; } .band__panel { margin: -2.5rem 0.75rem 0; width: auto; } }

/* ---------- closing call ---------- */
.closing { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(1.25rem, 4vw, 4rem); align-items: center; padding: clamp(1.5rem, 4vw, 3.25rem); background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: 0 var(--radius) var(--curve) 0; }
.closing h2 { max-width: 13em; }
.closing__side { display: grid; gap: 1.35rem; }
.closing__side p { color: var(--muted); }
@media (max-width: 52rem) { .closing { grid-template-columns: minmax(0, 1fr); } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-top: var(--section); }
@media (max-width: 56rem) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.contact-list > div { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-family: var(--font-display); font-size: var(--fs-meta); font-weight: 500; letter-spacing: 0.005em; color: var(--muted); }
.contact-list dd { margin-top: 0.3rem; font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact-list dd a { color: var(--ink); text-decoration-color: var(--line); }
.contact-list dd a:hover { color: var(--blue); }
.contact-list dd small { display: block; margin-top: 0.2rem; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-small); color: var(--muted); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.25rem; padding: clamp(1.5rem, 3.5vw, 2.75rem); background: var(--mist); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 0 0 var(--radius) var(--radius); }
.form h2 { grid-column: 1 / -1; font-size: clamp(1.5rem, 1vw + 1.2rem, 2rem); }
.form .note { grid-column: 1 / -1; }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-size: var(--fs-small); font-weight: 600; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 3.125rem; padding: 0.75rem 0.95rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field__error { font-size: var(--fs-small); color: var(--red); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__status { font-size: var(--fs-small); color: var(--ink); max-width: 30em; }
@media (max-width: 34rem) { .form { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer: brand, three link lists, contact; then the newsletter and profile panel, and the legal line ---------- */
.footer { background: var(--mist); padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
.footer::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, var(--blue) 0 58%, var(--teal) 58% 76%, var(--orange) 76% 88%, var(--yellow) 88% 95%, var(--red) 95%); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 2.2fr) minmax(0, 1.05fr); gap: clamp(2rem, 4.5vw, 4.5rem); padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); }
.footer__brand { display: grid; gap: 1.1rem; align-content: start; justify-items: start; }
.footer__brand img { width: 8.25rem; height: auto; }
.footer__brand p { color: var(--muted); font-size: var(--fs-small); max-width: 19em; }
.footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.footer h2 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); margin-bottom: 1rem; }
.footer h2::after { content: ""; display: block; width: 1.75rem; height: 3px; margin-top: 0.6rem; background: var(--orange); }
.footer ul { list-style: none; display: grid; gap: 0.6rem; }
.footer li a { color: var(--ink); text-decoration: none; font-size: var(--fs-small); }
.footer li a:hover { color: var(--blue); text-decoration: underline; }
.footer address { font-style: normal; font-size: var(--fs-small); color: var(--muted); display: grid; gap: 0.6rem; justify-items: start; }
.footer address a { color: var(--ink); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.footer address a:hover { color: var(--blue); text-decoration: underline; }
.footer__cta { margin-top: 1rem; font-size: var(--fs-small); }
/* newsletter and profile download: one ruled panel, two cells, the controls on a shared row */
.footer__actions { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); grid-template-rows: auto auto auto; background: var(--paper); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.subscribe, .download { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0.95rem; align-content: start; min-width: 0; padding: clamp(1.25rem, 2.4vw, 1.75rem) clamp(1.25rem, 2.6vw, 2rem) clamp(1.1rem, 2vw, 1.4rem); border-top: 3px solid var(--orange); }
.download { border-top-color: var(--blue); border-left: 1px solid var(--line); }
.subscribe__text, .download__text { min-width: 0; display: grid; gap: 0.2rem; align-content: start; }
.subscribe__text strong, .download__text strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.012em; color: var(--ink); }
.subscribe__text span, .download__text span { font-size: var(--fs-small); color: var(--muted); }
.subscribe__row { display: flex; align-items: stretch; min-width: 0; }
.subscribe__row input[type="email"] { flex: 1 1 auto; min-width: 0; min-height: 3.125rem; padding: 0.75rem 0.95rem; border: 1.5px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--paper); color: var(--ink); font: inherit; }
.subscribe__row input[type="email"]::placeholder { color: var(--muted); opacity: 1; }
.subscribe__row input[type="email"]:hover { border-color: var(--muted); }
.subscribe__row input[type="email"]:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--blue); position: relative; z-index: 1; }
.subscribe__row input[type="email"][aria-invalid="true"], .subscribe__row input[type="email"][aria-invalid="true"]:focus-visible { border-color: var(--red); }
.subscribe__row .btn { flex: 0 0 auto; border-radius: 0 var(--radius) var(--radius) 0; background: var(--orange); border-color: var(--orange); color: var(--ink); }
.subscribe__row .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.subscribe__row .btn[disabled] { opacity: 0.6; cursor: default; }
.subscribe__foot { display: grid; gap: 0.3rem; align-content: start; min-width: 0; }
.subscribe__note { font-size: var(--fs-meta); color: var(--muted); }
.subscribe__note a { color: var(--ink); }
.subscribe__note a:hover { color: var(--blue); }
.subscribe__status { font-size: var(--fs-small); font-weight: 500; color: var(--ink); }
.subscribe__status[data-state="error"] { color: var(--red); }
.subscribe__status:empty { display: none; }
.download .btn { justify-self: start; align-self: start; }
.footer__legal { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--fs-meta); color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer__legal a { color: var(--ink); white-space: nowrap; }
.footer__legal a:hover { color: var(--blue); }
@media (max-width: 64rem) { .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer__nav { grid-column: 1 / -1; order: 3; } }
@media (max-width: 52rem) { .footer__actions { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; } .subscribe, .download { grid-row: auto; grid-template-rows: none; } .download { border-left: 0; } }
@media (max-width: 36rem) { .footer__top { grid-template-columns: minmax(0, 1fr); } .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); order: 0; } .download .btn { width: 100%; justify-self: stretch; } }
@media (max-width: 23rem) { .subscribe__row { flex-direction: column; gap: 0.5rem; } .subscribe__row input[type="email"] { border-right: 1.5px solid var(--line); border-radius: var(--radius); } .subscribe__row .btn { border-radius: var(--radius); } }

/* ---------- product hub ---------- */
.catalog { display: grid; gap: clamp(2.25rem, 4.5vw, 3.75rem); }
.catalog__group { display: grid; grid-template-columns: minmax(0, 0.27fr) minmax(0, 1fr); gap: 1.25rem clamp(1.5rem, 3vw, 3rem); align-items: start; padding-top: clamp(1.5rem, 3vw, 2.25rem); border-top: 2px solid var(--ink); }
.catalog__group > header { display: grid; gap: 0.5rem; }
.catalog__group > header h2 { font-weight: 600; }
.catalog__group > header p { color: var(--muted); font-size: var(--fs-small); }
.catalog__items { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: var(--gap); }
@media (max-width: 56rem) { .catalog__group { grid-template-columns: minmax(0, 1fr); } }
.catalog__items a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 1rem; align-content: start; height: 100%; padding: 1.25rem 1.35rem 1.35rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; text-decoration: none; color: var(--ink); transition: box-shadow 0.25s ease, border-color 0.2s ease; }
.catalog__items h3 { grid-column: 1; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.018em; }
.catalog__items p { grid-column: 1; color: var(--muted); font-size: var(--fs-small); }
.catalog__items .go { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--blue); transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease; }
.catalog__items .go svg { width: 0.9rem; height: 0.9rem; }
.catalog__items a:hover { box-shadow: var(--shadow); border-left-color: var(--orange); }
.catalog__items a:hover h3 { color: var(--blue); }
.catalog__items a:hover .go { background: var(--orange); border-color: var(--orange); color: var(--ink); }

/* product names as a tidy grid of links */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.75rem), 1fr)); gap: 0.6rem; list-style: none; }
.chips a { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; height: 100%; min-height: 3rem; padding: 0.55rem 0.95rem; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 0 0.25rem 0.25rem 0; font-family: var(--font-display); font-size: 0.95rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: border-color 0.18s ease, background-color 0.18s ease; }
.chips a::after { content: ""; flex: none; width: 0.45rem; height: 0.45rem; border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: rotate(45deg); }
.chips a:hover { border-color: var(--blue); border-left-color: var(--orange); color: var(--blue); }

/* ---------- WhatsApp shortcut, bottom left (the chat widget takes bottom right) ---------- */
.wa { position: fixed; left: calc(1rem + env(safe-area-inset-left, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #128c7e; color: #ffffff; display: grid; place-items: center; box-shadow: 0 0.6rem 1.4rem -0.5rem rgba(10, 43, 60, 0.55); transition: transform 0.18s ease, background-color 0.18s ease; }
.wa:hover { background: #0b6b60; color: #ffffff; transform: translateY(-2px); }
.wa svg { width: 1.9rem; height: 1.9rem; }
.site.nav-open .wa { display: none; }
@media (max-width: 40rem) { .wa { width: 3.1rem; height: 3.1rem; } .wa svg { width: 1.65rem; height: 1.65rem; } }

/* ---------- legal text pages ---------- */
.legal { display: grid; grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr); gap: 0.5rem clamp(1.5rem, 4vw, 4rem); padding: clamp(1.5rem, 3vw, 2.5rem) 0; border-top: 1px solid var(--line); }
.legal:first-of-type { border-top: 0; padding-top: var(--section); }
.legal h2 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.legal > div { display: grid; gap: 0.9em; max-width: 44em; color: var(--muted); }
.legal strong { color: var(--ink); font-weight: 600; }
@media (max-width: 46rem) { .legal { grid-template-columns: minmax(0, 1fr); } }

/* ---------- utilities ---------- */
.stack { display: grid; gap: 1.5rem; }
.stack--lg { gap: clamp(2rem, 4vw, 3.5rem); }
.mt { margin-top: clamp(2rem, 4vw, 3.5rem); }
.center { text-align: center; justify-items: center; }
.toast { position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 80; max-width: min(34rem, calc(100vw - 2rem)); padding: 0.9rem 1.25rem; background: var(--ink); color: var(--paper); border-radius: var(--radius); font-size: var(--fs-small); box-shadow: 0 1rem 2rem -1rem rgba(10, 43, 60, 0.5); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }

@media print {
  .header, .footer__actions, .nav-toggle, .skip, .wa, .hero__controls, .preloader { display: none !important; }
  .hero, .page-hero { color: var(--ink); background: none; border-radius: 0; }
  .hero__media, .page-hero .banner { display: none; }
  .hero__title, .page-hero__grid h1, .hero .lead, .page-hero .lead, .crumbs, .crumbs a { color: var(--ink); }
  .footer { margin-top: 2rem; background: none; }
  body { font-size: 11pt; }
}
