/* ==========================================================================
   KawaDiary — Inbound trekking & 5,000 m peak consulting
   Static site stylesheet
   1. Design tokens
   2. Reset & base
   3. Layout primitives
   4. Header & navigation
   5. Hero & page headers
   6. Sections & components
   7. Forms
   8. Footer
   9. Motion & utilities
   10. Responsive
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --ink: #141c19;
  --ink-2: #22302b;
  --muted: #6c7a72;
  --muted-2: #8d9a93;
  --line: #dcd6c9;
  --line-soft: #e7e2d7;
  --paper: #f6f3ec;
  --paper-2: #efeae0;
  --white: #ffffff;
  --forest: #142821;
  --forest-2: #1c352c;
  --accent: #b0542e;
  --accent-dark: #8f411f;
  --snow: #eef2f1;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino,
    "Book Antiqua", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 9vw, 132px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 82px;
}

/* 2. Reset & base -------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

svg {
  display: block;
}

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

p {
  margin: 0 0 1.1em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* 3. Layout primitives --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--tight {
  padding-block: clamp(56px, 6vw, 88px);
}

.section--paper-2 {
  background: var(--paper-2);
}

.section--dark {
  background: var(--forest);
  color: var(--snow);
}

.section--hairline {
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.split--media {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.stack-sm > * + * {
  margin-top: 16px;
}

/* 4. Header & navigation ------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  padding-inline: var(--gutter);
  color: var(--white);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    height 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-open,
.site-header.is-solid {
  height: 68px;
  background: rgba(246, 243, 236, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  color: var(--ink);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  z-index: 2;
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.brand__word {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand__word em {
  font-style: italic;
  opacity: 0.72;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.nav__link {
  position: relative;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-block: 6px;
  opacity: 0.82;
  transition: opacity 0.3s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.nav__link:hover {
  opacity: 1;
}

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

.nav__link[aria-current="page"] {
  opacity: 1;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 11px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

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

.site-header.is-scrolled .header__cta:hover,
.site-header.is-open .header__cta:hover,
.site-header.is-solid .header__cta:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bars {
  position: relative;
  width: 22px;
  height: 10px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle__bars span:first-child {
  top: 0;
}

.nav-toggle__bars span:last-child {
  bottom: 0;
}

.site-header.is-open .nav-toggle__bars span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.site-header.is-open .nav-toggle__bars span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 96px var(--gutter) 48px;
  background: var(--forest);
  color: var(--snow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.45s var(--ease),
    visibility 0.4s;
}

.mobile-panel.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-panel a {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 2.9rem);
  line-height: 1.25;
  padding-block: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.mobile-panel a span {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.45);
}

.mobile-panel__foot {
  margin-top: 32px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}

/* 5. Hero & page headers ------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(94vh, 860px);
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(40px, 6vw, 72px);
  color: var(--white);
  overflow: hidden;
  background: var(--forest);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  animation: heroZoom 14s var(--ease) forwards;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(10, 20, 17, 0.55) 0%,
      rgba(10, 20, 17, 0) 20%
    ),
    linear-gradient(
      180deg,
      rgba(10, 20, 17, 0.58) 0%,
      rgba(10, 20, 17, 0.22) 36%,
      rgba(10, 20, 17, 0.7) 100%
    ),
    linear-gradient(90deg, rgba(10, 20, 17, 0.34) 0%, rgba(10, 20, 17, 0) 62%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__eyebrow {
  margin-bottom: clamp(20px, 3vw, 30px);
  color: rgba(255, 255, 255, 0.78);
}

.hero__title {
  font-size: clamp(2.7rem, 7.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  max-width: 15ch;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.hero__title em {
  font-style: italic;
  font-weight: 300;
}

.hero__lead {
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(44px, 7vw, 88px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero__foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__foot li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__foot li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.scroll-cue svg {
  animation: nudge 2.4s ease-in-out infinite;
}

/* Inner page header */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(58vh, 520px);
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: clamp(36px, 5vw, 64px);
  color: var(--white);
  overflow: hidden;
  background: var(--forest);
}

.page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 20, 17, 0.62) 0%,
    rgba(10, 20, 17, 0.34) 28%,
    rgba(10, 20, 17, 0.42) 62%,
    rgba(10, 20, 17, 0.8) 100%
  );
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1;
  max-width: 18ch;
}

.page-hero p {
  max-width: 52ch;
  margin-top: 20px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
}

/* The hero eyebrows are <p> elements and would otherwise inherit the
   paragraph scale above, so their own type size is restated. */
.hero p.eyebrow,
.page-hero p.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  max-width: none;
  margin: 0 0 18px;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb span {
  opacity: 0.5;
}

/* 6. Sections & components ----------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* Hero sits above the .eyebrow colour rule in source order, so it is
   restated here for the light-on-photograph variant. */
.hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.section--dark .eyebrow,
.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.66);
}

h2.display {
  font-size: clamp(1.9rem, 3.6vw, 2.95rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

h2.display em {
  font-style: italic;
  font-weight: 300;
}

.display-sm {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.2;
}

.lead {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.68;
  color: var(--ink-2);
  max-width: 60ch;
}

.section--dark .lead {
  color: rgba(238, 242, 241, 0.78);
}

.muted {
  color: var(--muted);
}

.section--dark .muted {
  color: rgba(238, 242, 241, 0.6);
}

.body-copy {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.72;
  max-width: 58ch;
}

.section--dark .body-copy {
  color: rgba(238, 242, 241, 0.76);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 68px);
}

.section-head p {
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn svg {
  transition: transform 0.4s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn--primary:hover {
  background: var(--white);
  border-color: var(--white);
}

.btn--dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn--dark:hover {
  background: var(--forest-2);
  border-color: var(--forest-2);
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--outline:hover {
  border-color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: gap 0.35s var(--ease), opacity 0.3s var(--ease);
}

.text-link:hover {
  gap: 16px;
}

/* Manifesto block */
.manifesto {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.manifesto__statement {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

.manifesto__statement em {
  font-style: italic;
  color: var(--accent);
}

.manifesto__body > p:first-child {
  margin-top: 6px;
  font-size: 1rem;
}

.sig {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.sig strong {
  color: var(--ink);
  font-weight: 500;
}

/* Pillars / cards */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
}

.pillar {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}

.pillar:hover {
  border-color: var(--line);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -32px rgba(20, 28, 25, 0.4);
}

.pillar__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}

.pillar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.pillar:hover .pillar__media img {
  transform: scale(1.045);
}

.pillar__num {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 11px;
  background: rgba(20, 28, 25, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}

.pillar__body {
  padding: clamp(20px, 2.2vw, 30px);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pillar__body h3 {
  font-size: 1.42rem;
  line-height: 1.18;
  margin-bottom: 12px;
}

.pillar__body p {
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--muted);
  margin-bottom: 22px;
}

.pillar__body .text-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.68rem;
}

/* Journeys list */
.journey-list {
  border-top: 1px solid var(--line);
}

.journey {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.5fr) minmax(0, 1fr) 110px 40px;
  gap: clamp(12px, 2vw, 32px);
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease), background 0.4s var(--ease);
}

.journey:hover {
  padding-left: 10px;
  background: rgba(255, 255, 255, 0.5);
}

.journey__idx {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.journey__name {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.42rem);
  line-height: 1.2;
}

.journey__name span {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.journey__meta {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.journey__alt {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-align: right;
  color: var(--ink-2);
}

.journey__arrow {
  justify-self: end;
  color: var(--muted-2);
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
}

.journey:hover .journey__arrow {
  transform: translateX(5px);
  color: var(--ink);
}

/* Stats band */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.stat {
  background: var(--forest);
  padding: clamp(24px, 3vw, 40px) clamp(18px, 2vw, 28px);
}

.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(238, 242, 241, 0.6);
  line-height: 1.5;
}

/* Quote */
.quote-block {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.quote-block__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}

.quote-block__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}

.quote-block blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2.05rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.quote-block blockquote em {
  font-style: italic;
}

.quote-cite {
  display: block;
  margin-top: 26px;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote-solo {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.quote-solo .eyebrow {
  justify-content: center;
}

.quote-solo blockquote {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.9vw, 2.35rem);
  line-height: 1.34;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.quote-solo blockquote em {
  font-style: italic;
  color: var(--accent);
}

/* Feature rows (services) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(40px, 5vw, 72px);
}

.feature-row + .feature-row {
  border-top: 1px solid var(--line);
}

.feature-row--reverse .feature-row__media {
  order: 2;
}

.feature-row__media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--paper-2);
}

.feature-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-row__body h3 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.feature-row__body p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.72;
  max-width: 48ch;
}

.spec-list {
  margin: 26px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.86rem;
}

.spec-list li span:first-child {
  color: var(--muted);
  letter-spacing: 0.04em;
}

.spec-list li span:last-child {
  text-align: right;
  color: var(--ink);
}

/* Numbered principles */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.principle {
  background: var(--forest);
  padding: clamp(24px, 3vw, 40px);
}

.principle__num {
  display: block;
  margin-bottom: 18px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(238, 242, 241, 0.45);
}

.principle h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.principle p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.68;
  color: rgba(238, 242, 241, 0.68);
}

/* Process timeline */
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(16px, 4vw, 64px);
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
}

.timeline__step {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 8px;
}

.timeline__body h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  margin-bottom: 10px;
}

.timeline__body p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 62ch;
}

.section--dark .timeline,
.section--dark .timeline li {
  border-color: rgba(255, 255, 255, 0.14);
}

.section--dark .timeline__step {
  color: rgba(238, 242, 241, 0.42);
}

.section--dark .timeline__body p {
  color: rgba(238, 242, 241, 0.66);
}

/* Two column lists */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
  color: var(--ink-2);
}

.section--dark .check-list li {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  color: rgba(238, 242, 241, 0.8);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 20px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.section--dark .check-list li::before {
  background: var(--accent);
}

.check-list li.is-neg::before {
  background: var(--muted-2);
}

/* Data table */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--ink);
  text-align: left;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.data-table td {
  padding: 18px 12px 18px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table td:first-child {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink);
}

.data-table th:last-child,
.data-table td:last-child {
  text-align: right;
  padding-right: 0;
}

/* Accordion */
.accordion {
  border-top: 1px solid var(--line);
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.35;
}

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

.accordion summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.35s var(--ease);
}

.accordion details[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.accordion .accordion__body {
  padding-bottom: 26px;
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.72;
}

.accordion .accordion__body p:last-child {
  margin-bottom: 0;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 9vw, 120px);
  color: var(--white);
  background: var(--forest);
  text-align: center;
}

.cta-band__media {
  position: absolute;
  inset: 0;
}

.cta-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 20, 17, 0.62),
    rgba(10, 20, 17, 0.72)
  );
}

.cta-band__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-band h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.08;
  max-width: 20ch;
  margin-bottom: 20px;
}

.cta-band p {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 32px;
}

/* Team */
.team-feature {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.team-feature__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}

.team-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.team-card {
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}

.team-card h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.team-card__role {
  display: block;
  margin-bottom: 14px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.team-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.68;
}

/* Info cards (contact) */
.info-list {
  border-top: 1px solid var(--line);
}

.info-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.info-item__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-item__value {
  font-size: 1rem;
  line-height: 1.55;
}

.info-item__value a {
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}

.info-item__value a:hover {
  border-color: var(--ink);
}

/* 7. Forms --------------------------------------------------------------- */
.form {
  display: grid;
  gap: 22px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.98rem;
  transition: border-color 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.65;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236c7a72' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 24px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
}

.form__note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 40ch;
}

.form__status {
  margin: 0;
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  background: rgba(176, 84, 46, 0.07);
  font-size: 0.88rem;
  color: var(--ink-2);
}

.form__status[hidden] {
  display: none;
}

/* 8. Footer -------------------------------------------------------------- */
.site-footer {
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: 32px;
  background: var(--forest);
  color: rgba(238, 242, 241, 0.72);
  font-size: 0.88rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand {
  color: var(--snow);
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 30ch;
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(238, 242, 241, 0.6);
}

.footer-col h4 {
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(238, 242, 241, 0.45);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  transition: color 0.3s var(--ease);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: rgba(238, 242, 241, 0.45);
}

.footer-bottom ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom a:hover {
  color: rgba(238, 242, 241, 0.85);
}

/* 9. Motion & utilities -------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes heroZoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

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

.mt-0 {
  margin-top: 0;
}

.mt-24 {
  margin-top: 24px;
}

.mt-40 {
  margin-top: 40px;
}

/* 10. Responsive --------------------------------------------------------- */
@media (max-width: 1080px) {
  .pillars {
    grid-template-columns: 1fr 1fr;
  }

  .pillar:last-child {
    grid-column: span 2;
  }

  .pillar:last-child .pillar__media {
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 72px;
  }

  .nav,
  .header__cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .split,
  .manifesto,
  .section-head,
  .feature-row,
  .quote-block,
  .team-feature {
    grid-template-columns: 1fr;
  }

  .section-head {
    gap: 20px;
  }

  .feature-row--reverse .feature-row__media {
    order: 0;
  }

  .feature-row__media {
    aspect-ratio: 16 / 10;
  }

  .journey {
    grid-template-columns: 40px minmax(0, 1fr) 112px 24px;
    row-gap: 6px;
  }

  .journey__alt {
    white-space: nowrap;
  }

  .journey__meta {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .journey__alt {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }

  .journey__arrow {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .team-list {
    grid-template-columns: 1fr;
  }

  .quote-block__portrait {
    max-width: 260px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 720px) {
  .pillars {
    grid-template-columns: 1fr;
  }

  .journey {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 6px;
    padding: 22px 0;
  }

  .journey__idx,
  .journey__arrow {
    display: none;
  }

  .journey__name {
    grid-column: 1;
    grid-row: 1;
  }

  .journey__alt {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    padding-top: 4px;
    white-space: nowrap;
  }

  .journey__meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .pillar:last-child {
    grid-column: auto;
    flex-direction: column;
  }

  .pillar:last-child .pillar__media {
    flex: none;
    aspect-ratio: 4 / 3;
  }

  .check-grid,
  .form__row {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline__step {
    padding-top: 0;
  }

  .hero {
    min-height: min(88vh, 720px);
  }

  .hero__title {
    max-width: 12ch;
  }

  .hero__foot {
    font-size: 0.66rem;
    gap: 10px 20px;
  }

  .hero__foot ul {
    gap: 8px 18px;
  }

  .scroll-cue {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .data-table {
    min-width: 560px;
  }
}

@media (max-width: 420px) {
  .btn {
    width: 100%;
  }

  .hero__actions {
    width: 100%;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Error page ------------------------------------------------------------- */
.error-page {
  display: flex;
  align-items: center;
  min-height: 82vh;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: var(--section-y);
}

.error-page__inner {
  max-width: 620px;
}

.error-page__code {
  font-family: var(--serif);
  font-size: clamp(4rem, 11vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: #cbc3b1;
  margin: 0 0 20px;
}

.error-page h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  margin-bottom: 18px;
}

.error-page p {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 32px;
}

.error-page .hero__actions {
  gap: 12px;
}
