/* ==========================================================================
   Maris Marine & Energy
   1. Fonts
   2. Design tokens
   3. Reset & base
   4. Typography system
   5. Texture system
   6. Components
   7. Header & navigation
   8. Sections: hero, about, solutions, edge, contact, footer
   9. Motion
   10. Responsive
   ========================================================================== */

/* ── 1. Fonts ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Michroma";
  src: url("../fonts/michroma.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── 2. Design tokens ───────────────────────────────────────────────────── */

:root {
  /* -- Type families ---------------------------------------------------- */
  --font-display: "Michroma", "Eurostile", "Bahnschrift", sans-serif;
  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* -- Type scale ---------------------------------------------------------
     Fluid ramp: min value at a 360px viewport, max value at 1600px.
     100 micro-label · 200 label · 300 ui · 400 body · 500 lead
     600 card title · 700 pillar title · 800 service title
     900 section title · 1000 hero                                           */
  --fs-100: clamp(11px, 10.42px + 0.16vw, 13px);
  --fs-200: clamp(13px, 12.42px + 0.16vw, 15px);
  --fs-300: clamp(15px, 14.42px + 0.16vw, 17px);
  --fs-400: clamp(16px, 15.13px + 0.24vw, 19px);
  --fs-500: clamp(18px, 16.55px + 0.4vw, 23px);
  --fs-600: clamp(20px, 17.97px + 0.56vw, 27px);
  --fs-700: clamp(23px, 20.39px + 0.73vw, 32px);
  --fs-800: clamp(30px, 24.61px + 1.5vw, 49px);
  --fs-900: clamp(34px, 25.29px + 2.42vw, 64px);
  --fs-1000: clamp(30px, 9.68px + 5.65vw, 100px);

  /* -- Line height ------------------------------------------------------- */
  --lh-display: 1.06;
  --lh-tight: 1.14;
  --lh-snug: 1.28;
  --lh-normal: 1.45;
  --lh-relaxed: 1.62;

  /* -- Letter spacing ---------------------------------------------------- */
  --ls-display: -0.03em;
  --ls-tight: -0.015em;
  --ls-normal: 0;
  --ls-label: 0.14em;

  /* -- Weight ------------------------------------------------------------ */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* -- Colour ------------------------------------------------------------ */
  --navy-900: #0f2352;
  --navy-800: #17357f;
  --navy-700: #243976;
  --navy-600: #2a4fae;
  --navy-400: #7fa8ff;

  --green-700: #0b6f36;
  --green-600: #0e7a3d;
  --green-500: #0e9347;
  --green-400: #2fbb62;
  --green-300: #4fe08a;

  --sand-100: #faf6ee;
  --sand-200: #f3ecdf;
  --line-sand: #cfc3a7;

  --ink-900: #14180f;
  --ink-700: #2b3128;
  --ink-600: #4c5247;
  --ink-400: #7c8177;
  --line-grey: #d5d7d1;

  --on-dark: #ffffff;
  --on-dark-soft: rgba(255, 255, 255, 0.82);

  /* -- Space ------------------------------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 44px;
  --space-8: 60px;
  --space-9: 80px;
  --space-10: clamp(56px, 6vw, 104px);
  --space-section: clamp(72px, 7.6vw, 144px);

  /* -- Layout ------------------------------------------------------------ */
  --shell: min(90vw, 1500px);
  --header-h: clamp(80px, 6.6vw, 116px);
  /* The logo is sized by HEIGHT, at a fixed ~70% of the header, so the bar
     always keeps clearance. Sizing it by width let it outgrow --header-h. */
  --brand-h: clamp(48px, 4.7vw, 82px);
  --radius-sm: 4px;

  /* -- Texture ------------------------------------------------------------
     117deg matches the slash angle of the Maris logo mark (63deg from the
     horizontal). Every texture in the system is cut on this one angle.       */
  --texture-angle: 117deg;
  --texture-fine: repeating-linear-gradient(
    var(--texture-angle),
    currentColor 0 1.5px,
    transparent 1.5px 10px
  );
  --texture-bold: repeating-linear-gradient(
    var(--texture-angle),
    currentColor 0 9px,
    transparent 9px 24px
  );

  /* -- Motion ------------------------------------------------------------ */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.32s;
}

/* ── 3. Reset & base ────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink-700);
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--green-300);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--green-600);
  color: #fff;
  font-size: var(--fs-300);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus {
  top: var(--space-4);
}

/* ── 4. Typography system ───────────────────────────────────────────────── */

/* Display role — Michroma. Reserved for the hero and for section and
   service titles; never used below --fs-800.                                */
.hero__title,
.section-title,
.service__title {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-display);
  line-height: var(--lh-display);
  text-wrap: balance;
}

.section-title {
  font-size: var(--fs-900);
  color: var(--navy-800);
}
.section-title--invert {
  color: var(--on-dark);
}

/* Body role — Manrope. */
.prose {
  max-width: 62ch;
  font-size: var(--fs-400);
  line-height: var(--lh-relaxed);
  color: var(--ink-600);
  text-wrap: pretty;
}
.prose p + p {
  margin-top: 1.5em;
}
.prose--invert {
  color: var(--on-dark-soft);
}

/* Label role. */
.eyebrow {
  margin-bottom: var(--space-4);
  font-size: var(--fs-200);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--green-600);
}

.gradient-text {
  background-image: linear-gradient(100deg, var(--navy-400) 0%, var(--green-300) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.gradient-text--light {
  background-image: linear-gradient(100deg, var(--navy-600) 0%, var(--green-500) 92%);
}

/* ── 5. Texture system ──────────────────────────────────────────────────── */

/* Full-bleed slash field, laid over a panel background. */
.texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.texture--fine {
  background-image: var(--texture-fine);
}
.texture--bold {
  background-image: var(--texture-bold);
  -webkit-mask-image: radial-gradient(125% 105% at 100% 0%, #000 0%, transparent 60%);
  mask-image: radial-gradient(125% 105% at 100% 0%, #000 0%, transparent 60%);
}
.texture--light {
  color: #fff;
  opacity: 0.06;
}
.texture--ink {
  color: var(--navy-800);
  opacity: 0.05;
}

/* The logo mark itself, masked so it can take any brand colour. */
.mark {
  display: none;
}

@supports (mask-image: url("../brand/maris-pattern.svg")) or
  (-webkit-mask-image: url("../brand/maris-pattern.svg")) {
  .mark {
    display: block;
    position: absolute;
    z-index: 0;
    width: var(--mark-w, 280px);
    aspect-ratio: 143.46 / 209.51;
    background-color: currentColor;
    pointer-events: none;
    -webkit-mask: url("../brand/maris-pattern.svg") no-repeat center / contain;
    mask: url("../brand/maris-pattern.svg") no-repeat center / contain;
  }
}

.mark--panel-tr {
  --mark-w: clamp(130px, 15vw, 280px);
  right: 3%;
  top: -7%;
  color: #fff;
  opacity: 0.12;
}
.mark--panel-bl {
  --mark-w: clamp(130px, 15vw, 280px);
  left: 2%;
  bottom: -9%;
  color: #fff;
  opacity: 0.09;
}
.mark--green {
  color: var(--green-500);
  opacity: 0.14;
}
.mark--navy {
  color: var(--navy-700);
  opacity: 0.1;
}

/* ── 6. Components ──────────────────────────────────────────────────────── */

.rule {
  border: 0;
  border-top: 1px solid var(--line-sand);
  margin: var(--space-10) 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.15em 2.15em;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: var(--fs-300);
  font-weight: var(--fw-bold);
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--dur-med) var(--ease),
    color var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}
.btn--primary {
  background: var(--green-600);
  color: #fff;
  min-width: 9em;
}
.btn--primary:hover {
  background: var(--green-500);
}
.btn--outline {
  min-width: 12em;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.btn--outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy-800);
}

.icon {
  width: 34px;
  height: 34px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg {
  width: 40px;
  height: 40px;
  stroke-width: 2.6;
}

/* ── 7. Header & navigation ─────────────────────────────────────────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  transition: background-color var(--dur-med) var(--ease),
    box-shadow var(--dur-med) var(--ease);
}
.site-header[data-scrolled] {
  background: rgba(15, 35, 82, 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 30px rgba(9, 21, 50, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: var(--header-h);
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.brand img {
  height: var(--brand-h);
  width: auto;
  max-width: none;
  filter: brightness(0) invert(1);
}
.brand--footer img {
  height: auto;
  width: clamp(180px, 16vw, 250px);
  filter: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.4vw, 58px);
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
}
.site-nav__list a {
  display: block;
  padding: 0.4em 0;
  font-size: var(--fs-300);
  font-weight: var(--fw-medium);
  color: var(--on-dark);
  transition: color var(--dur-fast) var(--ease);
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="true"] {
  color: var(--green-300);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  height: 100%;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur-med) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] i:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] i:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] i:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── 8a. Hero ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-top: var(--header-h);
  overflow: hidden;
  color: var(--on-dark);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(23, 55, 143, 0.82);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: var(--space-9);
  z-index: 2;
}
.hero__title {
  font-size: var(--fs-1000);
}
.hero__title span {
  display: block;
}
.hero__title-accent {
  color: var(--green-300);
}
.hero__lead {
  max-width: 44ch;
  margin-top: var(--space-6);
  font-size: var(--fs-500);
  line-height: var(--lh-normal);
  color: var(--on-dark-soft);
  text-wrap: pretty;
}
.hero .btn {
  margin-top: var(--space-9);
}

/* ── 8b. Sections & panels ──────────────────────────────────────────────── */

.section,
.panel {
  position: relative;
  isolation: isolate;
  padding-block: var(--space-section);
  overflow: hidden;
  scroll-margin-top: var(--header-h);
}
.section--sand {
  background: var(--sand-200);
}
.panel--navy {
  background: var(--navy-800);
  color: var(--on-dark);
}
.panel--light {
  background: #fff;
  color: var(--ink-700);
}

/* ── 8c. About ──────────────────────────────────────────────────────────── */

.about__title {
  margin-bottom: var(--space-10);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 76px);
  align-items: start;
}
.about__copy {
  max-width: 68ch;
}

.map-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 190 / 145;
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-sm);
}
.map {
  width: 100%;
  height: 100%;
}
.map__sea {
  fill: #d3e2ee;
}
.map__land {
  fill: #fbf8f1;
  stroke: rgba(23, 53, 127, 0.35);
  stroke-width: 0.7;
  stroke-linejoin: round;
}
.map__water {
  font-family: var(--font-sans);
  font-size: 5.4px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-anchor: middle;
  fill: rgba(23, 53, 127, 0.42);
}
.map__city {
  fill: rgba(23, 53, 127, 0.45);
}
.map__city-label {
  font-family: var(--font-sans);
  font-size: 5px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  fill: rgba(23, 53, 127, 0.55);
}
.map__pin text {
  font-family: var(--font-sans);
  font-size: 6.8px;
  font-weight: var(--fw-bold);
  fill: var(--navy-900);
  paint-order: stroke;
  stroke: #fbf8f1;
  stroke-width: 2.6;
  stroke-linejoin: round;
}
.map__pin--flip text {
  text-anchor: end;
}
.map__pin-dot {
  fill: var(--green-400);
}
.map__pin-icon {
  fill: none;
  stroke: #14306b;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 88px);
}
.pillar__title {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  font-size: var(--fs-700);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  color: var(--navy-800);
}
.pillar__title .icon {
  color: var(--green-500);
}
.pillar p {
  max-width: 52ch;
  padding-left: calc(34px + var(--space-4));
  font-size: var(--fs-400);
  line-height: var(--lh-relaxed);
  color: var(--ink-600);
}
.pillar p + p {
  margin-top: 1.1em;
}

/* ── 8d. Solutions ──────────────────────────────────────────────────────── */

.solutions__title {
  margin-bottom: clamp(56px, 9vw, 170px);
}
.service {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: start;
}
.service--reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
.service__title {
  font-size: var(--fs-800);
  margin-bottom: var(--space-8);
  width: fit-content;
}
.service__title--standalone {
  margin-bottom: clamp(32px, 4vw, 72px);
}
.service--reverse .service__copy {
  padding-top: var(--space-2);
}
.service__figure {
  margin: 0;
}
.service__figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.service__figure--lower {
  margin-top: clamp(0px, 6vw, 96px);
}

/* ── 8e. Our edge ───────────────────────────────────────────────────────── */

.edge__title {
  margin-bottom: var(--space-10);
}
.edge__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 60px);
}
.edge-card__title {
  margin-bottom: var(--space-5);
  font-size: var(--fs-600);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  color: var(--ink-900);
  text-wrap: balance;
}
.edge-card p {
  font-size: var(--fs-400);
  line-height: var(--lh-relaxed);
  color: var(--ink-600);
  text-wrap: pretty;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 56px);
}
.value {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.value .icon {
  color: var(--green-500);
}
.value p {
  font-size: var(--fs-500);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--ink-900);
}
.value strong,
.value span {
  display: block;
}
.value span {
  font-weight: var(--fw-medium);
}

/* ── 8f. Contact ────────────────────────────────────────────────────────── */

.contact {
  background: var(--navy-800);
  color: var(--on-dark);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: center;
}
.contact__intro {
  max-width: 44ch;
  margin-top: var(--space-6);
  font-size: var(--fs-400);
  line-height: var(--lh-relaxed);
  color: var(--on-dark-soft);
  text-wrap: pretty;
}

.contact__panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: clamp(24px, 2.5vw, 38px);
}
.contact-item + .contact-item {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.contact-item .icon {
  color: var(--on-dark);
  transition: color var(--dur-fast) var(--ease);
}
.contact-item__body {
  display: block;
}
.contact-item__label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--fs-200);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--green-300);
}
.contact-item__value {
  display: block;
  font-size: var(--fs-500);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  color: var(--on-dark);
  transition: color var(--dur-fast) var(--ease);
}
.contact-item--link {
  transition: background-color var(--dur-fast) var(--ease);
}
.contact-item--link:hover {
  background: rgba(255, 255, 255, 0.09);
}
.contact-item--link:hover .icon,
.contact-item--link:hover .contact-item__value {
  color: var(--green-300);
}

/* ── 8g. Legal pages (Terms of Use, Privacy Policy) ─────────────────────── */

.legal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-800);
  color: var(--on-dark);
  padding-block: calc(var(--header-h) + clamp(48px, 5vw, 88px)) clamp(48px, 5vw, 88px);
}
.legal-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: var(--fs-900);
  letter-spacing: var(--ls-display);
  line-height: var(--lh-display);
  color: var(--on-dark);
}
.legal-hero__meta {
  margin-top: var(--space-5);
  font-size: var(--fs-200);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  color: var(--on-dark-soft);
}

.legal__grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + var(--space-5));
}
.toc__list {
  counter-reset: toc;
  margin-top: var(--space-2);
  border-top: 1px solid var(--line-grey);
}
.toc__list li {
  counter-increment: toc;
  border-bottom: 1px solid var(--line-grey);
}
.toc__list a {
  display: flex;
  gap: var(--space-3);
  padding: 0.7em 0;
  font-size: var(--fs-300);
  line-height: var(--lh-snug);
  color: var(--ink-600);
  transition: color var(--dur-fast) var(--ease);
}
.toc__list a::before {
  content: counter(toc) ".";
  flex: none;
  min-width: 1.6em;
  font-weight: var(--fw-bold);
  color: var(--green-600);
}
.toc__list a:hover {
  color: var(--navy-800);
}

.legal__body {
  max-width: 72ch;
}
.legal__intro {
  font-size: var(--fs-500);
  line-height: var(--lh-relaxed);
  color: var(--ink-700);
  text-wrap: pretty;
}
.legal__section {
  margin-top: clamp(40px, 4vw, 68px);
  scroll-margin-top: calc(var(--header-h) + var(--space-5));
}
.legal__heading {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  font-size: var(--fs-600);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  color: var(--navy-800);
  text-wrap: balance;
}
.legal__num {
  flex: none;
  color: var(--green-500);
}
.legal__section p,
.legal__list {
  font-size: var(--fs-400);
  line-height: var(--lh-relaxed);
  color: var(--ink-600);
  text-wrap: pretty;
}
.legal__section p + p,
.legal__section p + .legal__list,
.legal__list + p {
  margin-top: 1.15em;
}
.legal__list li {
  position: relative;
  padding-left: 1.6em;
}
.legal__list li + li {
  margin-top: 0.6em;
}
.legal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--green-500);
}
.legal__body a {
  color: var(--green-600);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.legal__body a:hover {
  color: var(--navy-800);
}

/* ── 8g. Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  background: #fff;
  padding-block: clamp(56px, 6vw, 100px) clamp(28px, 3vw, 48px);
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 72px);
  padding-bottom: clamp(40px, 4.5vw, 76px);
}
.site-footer__heading {
  margin-bottom: var(--space-5);
  font-size: var(--fs-300);
  font-weight: var(--fw-bold);
  color: var(--ink-900);
}
.site-footer__column li + li {
  margin-top: var(--space-3);
}
.site-footer__column a {
  font-size: var(--fs-300);
  color: var(--ink-400);
  transition: color var(--dur-fast) var(--ease);
}
.site-footer__column a:hover {
  color: var(--green-600);
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4) var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-grey);
  font-size: var(--fs-200);
  color: var(--ink-400);
}
.site-footer__legal {
  display: flex;
  gap: var(--space-7);
}
.site-footer__legal a:hover {
  color: var(--green-600);
}
.site-footer__legal-accent {
  color: var(--green-600);
}

/* ── 9. Motion ──────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── 10. Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 1120px) {
  :root {
    --shell: min(92vw, 900px);
  }
  .about__grid,
  .service,
  .service--reverse {
    grid-template-columns: minmax(0, 1fr);
  }
  .service--reverse .service__figure {
    order: 2;
  }
  .service__figure--lower {
    margin-top: 0;
  }
  .about__copy,
  .prose {
    max-width: 68ch;
  }
  .map-card {
    max-width: 560px;
  }
  .edge__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--space-8);
  }
  .contact__intro {
    max-width: 60ch;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 3;
  }
  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: var(--space-6);
    padding: calc(var(--header-h) + var(--space-6)) 7vw var(--space-9);
    background: var(--navy-900);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease),
      visibility var(--dur-med);
  }
  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav__list li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .site-nav__list a {
    padding: var(--space-5) 0;
    font-family: var(--font-display);
    font-size: var(--fs-600);
    letter-spacing: var(--ls-tight);
  }
  .site-nav .btn {
    align-self: flex-start;
    margin-top: var(--space-4);
  }
  .pillars,
  .values {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }
  .legal__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }
  .toc {
    position: static;
  }
  .pillar p {
    padding-left: 0;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100vw - 40px);
  }
  .hero__inner {
    padding-block: var(--space-8);
  }
  .hero .btn {
    margin-top: var(--space-8);
  }
  .edge__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }
  .site-footer__bottom {
    flex-direction: column;
  }
  .mark--panel-tr,
  .mark--panel-bl {
    --mark-w: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
