/* ==========================================================================
   Servilamina Summit Mexicana — site.css
   Sober, editorial, industrial. Flat colour, hairlines, square corners.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #f2f1ed;
  --ink: #101315;
  --accent: #15b5aa;
  --danger: #c8423b;

  /* semantic (light by default) */
  --fg: var(--ink);
  --fg-2: #3a4045;
  --fg-3: #62696e;
  --line: rgba(16, 19, 21, .14);
  --placeholder: #dcdbd6;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);

  --pad: clamp(20px, 4.4vw, 72px);
  --gap: clamp(16px, 2.2vw, 32px);
  --max: 1520px;
  --header-h: 76px;
  --section: clamp(96px, 12vw, 176px);

  /* solid offset shadow behind photos: a darker tone of the paper on light
     backgrounds (like a real cast shadow), white on dark */
  --shadow: #cfccc5;
  --shadow-off: clamp(10px, 1.25vw, 20px);
}

.theme-dark,
.site-footer {
  --fg: #eef0f0;
  --fg-2: #c3c8cb;
  --fg-3: #8f979c;
  --line: rgba(255, 255, 255, .16);
  --placeholder: #1b1f22;
  --shadow: #ffffff;
  background: var(--ink);
  color: var(--fg);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button {
  font: inherit; color: inherit; background: none; border: 0;
  padding: 0; margin: 0; cursor: pointer; border-radius: 0;
}
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote, address { margin: 0; padding: 0; }
ol, ul { list-style: none; }
address { font-style: normal; }
strong { font-weight: 600; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 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;
}

.skip {
  position: fixed; left: var(--pad); top: 12px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff; font-size: 14px;
  transform: translateY(-160%); transition: transform .4s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

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

/* ---------- Type ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.label::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.kicker {
  display: block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.display {
  font-stretch: 112%;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .96;
}

.h2 {
  font-size: clamp(34px, 4.7vw, 76px);
  font-stretch: 110%;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.02;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.h3 {
  font-size: clamp(28px, 2.8vw, 44px);
  font-stretch: 108%;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.06;
}

.quote {
  font-size: clamp(25px, 2.75vw, 44px);
  font-stretch: 104%;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.24;
  text-indent: -.42em;
  text-wrap: pretty;
}

/* ---------- Links & buttons ---------- */
.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding-bottom: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.link-arrow::before,
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
}
.link-arrow::before { background: var(--line); }
.link-arrow::after {
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .7s var(--ease);
}
.link-arrow:hover::after,
.link-arrow:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .6s var(--ease); }
.link-arrow:hover .i-out { transform: translate(2px, -2px); }
.link-arrow:hover .i-down { transform: translateY(2px); }
.link-arrow:hover .i-up { transform: translateY(-2px); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 58px;
  padding: 0 30px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
.btn__roll { position: relative; display: block; overflow: hidden; line-height: 1.4; }
.btn__roll > span { display: block; transition: transform .7s var(--ease); }
.btn__roll > span::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
}
.btn svg { width: 16px; height: 16px; transition: transform .7s var(--ease); }
.btn:hover { background: var(--accent); color: var(--ink); }
.btn:hover .btn__roll > span { transform: translateY(-100%); }
.btn:hover svg { transform: translateX(4px); }
.btn[disabled] { cursor: progress; opacity: .6; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  color: #fff;
  transition: transform .7s var(--ease), background-color .5s ease, color .5s ease;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity .5s ease;
}
.site-header.is-solid,
html:not(.js) .site-header { background: var(--paper); color: var(--ink); }
.site-header.is-solid::after,
html:not(.js) .site-header::after { opacity: 1; }
html:not(.js) .brand img { filter: none; }
.site-header.is-hidden { transform: translateY(-101%); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: opacity 1.2s ease .2s, transform 1.4s var(--ease) .2s;
}
.js:not(.is-loaded) .header__inner { opacity: 0; transform: translateY(-14px); }

.brand { position: relative; z-index: 2; display: block; }
.brand img {
  width: auto;
  height: 22px;
  filter: brightness(0) invert(1);
  transition: filter .5s ease;
}
.site-header.is-solid .brand img { filter: none; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px); }
.nav__list { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px); }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .005em;
}
.nav__link > span { display: inline-block; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .7s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left center; }
.nav__sep { width: 1px; height: 14px; background: currentColor; opacity: .35; }
.nav__lang {
  padding: 8px 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  opacity: .85;
  transition: opacity .3s ease;
}
.nav__lang:hover { opacity: 1; }
.nav__foot { display: none; }
.nav-toggle { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.hero__zoom {
  position: absolute;
  inset: 0;
  transition: transform 2.8s var(--ease), opacity 1.6s ease;
}
.js .hero__zoom { transform: scale(1.14); opacity: 0; }
.js.is-loaded .hero__zoom { transform: none; opacity: 1; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: rgba(9, 11, 12, .52); }

.hero__content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: clamp(24px, 4.5vh, 48px);
  will-change: transform, opacity;
}
.hero .label { color: rgba(255, 255, 255, .8); }
.hero__title {
  margin: clamp(18px, 3vh, 30px) 0 clamp(32px, 7vh, 84px);
  font-size: clamp(48px, min(9.4vw, 16.5vh), 156px);
}
.hero__rule {
  height: 1px;
  background: rgba(255, 255, 255, .32);
  transform-origin: left center;
  transition: transform 2s var(--ease) .8s;
}
.js .hero__rule { transform: scaleX(0); }
.js.is-loaded .hero__rule { transform: none; }

.hero__meta {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 18px;
  padding-top: 22px;
  align-items: start;
}
.hero__text {
  grid-column: 1 / span 5;
  max-width: 50ch;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .86);
}
.hero__plants {
  grid-column: 7 / span 3;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .74);
}
.hero__controls {
  grid-column: 10 / span 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}

.video-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34);
  transition: box-shadow .4s ease;
}
.video-toggle:hover { box-shadow: inset 0 0 0 1px #fff; }
.video-toggle svg { width: 14px; height: 14px; }
.video-toggle .i-play { display: none; }
.video-toggle[data-state="paused"] .i-play { display: block; }
.video-toggle[data-state="paused"] .i-pause { display: none; }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .74);
}
.scroll-cue__line {
  position: relative;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: rgba(255, 255, 255, .24);
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateY(-100%);
  animation: cue 2.6s var(--ease-io) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ==========================================================================
   Section heads
   ========================================================================== */
.sec-head {
  row-gap: 24px;
  margin-bottom: clamp(56px, 7.5vw, 120px);
  align-items: baseline;
}
.sec-head__label { grid-column: 1 / span 3; }
.sec-head__title { grid-column: 4 / span 9; }

/* ==========================================================================
   About
   ========================================================================== */
.about__head { row-gap: 32px; }
.about__label { grid-column: 1 / span 3; align-self: start; padding-top: 4px; }
.about__statement { grid-column: 4 / span 9; }
.about__statement .h2 { max-width: 18ch; }

.about__cols { margin-top: clamp(64px, 8vw, 120px); row-gap: 56px; }
.about__mission { grid-column: 4 / span 4; }
.about__history { grid-column: 9 / span 4; }
.about__mission p {
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.5;
  letter-spacing: -.005em;
  color: var(--fg-3);
}
.about__mission strong { font-weight: 500; color: var(--fg); }
.about__history p { color: var(--fg-2); }

.about__facts { margin-top: clamp(80px, 10vw, 152px); row-gap: 56px; align-items: end; }
.figures { grid-column: 1 / span 5; position: relative; }
.figures::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
}
.figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 16px;
  padding: 22px 0 20px;
}
.figure__num {
  grid-column: 1;
  grid-row: 1;
  font-size: clamp(60px, 6.8vw, 116px);
  font-stretch: 115%;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .86;
  font-variant-numeric: tabular-nums;
}
.figure__plus { color: var(--accent); font-weight: 300; margin-right: .04em; }
.figure__label {
  grid-column: 2;
  grid-row: 1;
  max-width: 15ch;
  padding-bottom: .4em;
  text-align: right;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.photo { position: relative; overflow: hidden; background: var(--placeholder); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Solid offset shadow that slides out once the photo has been revealed */
.lift { position: relative; isolation: isolate; }
.lift::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--shadow);
  transform: translate(var(--shadow-off), var(--shadow-off));
  transition: transform 1.3s var(--ease) 1.2s, opacity .5s ease 1.2s;
}
.js .lift:not(.is-in)::before { transform: none; opacity: 0; }

/* ---------- Map of plants ---------- */
.about__map { grid-column: 7 / span 6; }
/* --k = viewBox units per CSS pixel (set by JS), keeps strokes at a fixed pixel width */
.map { position: relative; --k: 1; }
.map__svg { width: 100%; height: auto; overflow: visible; }
.map__land,
.map__isles {
  fill: none;
  stroke: var(--fg);
  stroke-width: calc(2.5 * var(--k));
  stroke-linejoin: round;
}
.map__land {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.4s var(--ease-io) .1s;
}
.map__isles { transition: opacity 1.2s ease 1.4s; }
.map__lead {
  fill: none;
  stroke: var(--accent);
  stroke-width: calc(1.25 * var(--k));
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .9s var(--ease-io) var(--ld, 1.9s);
}
.js .map:not(.is-in) .map__land,
.js .map:not(.is-in) .map__lead { stroke-dashoffset: 1; }
.js .map:not(.is-in) .map__isles { opacity: 0; }

/* labels sit in the sea at the end of each leader line, never over a coastline */
.map__pins { position: absolute; inset: 0; pointer-events: none; }
.pin__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform .9s var(--ease) var(--pd, 1.6s);
}
.pin__dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: pin-pulse 3.2s var(--ease) var(--pd, 1.6s) infinite;
}
@keyframes pin-pulse {
  0% { transform: scale(.3); opacity: .9; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}
.pin__label {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg);
  transform: translate(calc(6px + var(--lx, 0px)), -50%);
  transition: opacity .8s ease var(--lt, 2.5s), transform 1s var(--ease) var(--lt, 2.5s);
}
.pin__label--l { transform: translate(calc(-100% - 6px - var(--lx, 0px)), -50%); }
.js .map:not(.is-in) .pin__dot { transform: scale(0); }
.js .map:not(.is-in) .pin__label { opacity: 0; --lx: -8px; }

/* ==========================================================================
   Processes (sticky media + list)
   ========================================================================== */
.proc__media { display: none; }
.proc__list { grid-column: 1 / -1; }
.proc__item {
  display: grid;
  grid-template-columns: minmax(44px, 72px) minmax(0, 1fr);
  column-gap: var(--gap);
  padding: clamp(32px, 4vw, 52px) 0 clamp(36px, 4.4vw, 60px);
}
.proc__list::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--line);
}
.proc__num {
  padding-top: .9em;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--fg-3);
  transition: color .6s ease;
}
.proc__name {
  font-size: clamp(30px, 3.5vw, 54px);
  font-stretch: 110%;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.02;
  transition: color .7s ease;
}
.proc__desc {
  max-width: 44ch;
  margin-top: 16px;
  color: var(--fg-2);
  transition: opacity .7s ease;
}
.proc__body .link-arrow { margin-top: 26px; transition: opacity .7s ease; }
.proc__thumb {
  width: calc(100% - var(--shadow-off));
  max-width: 420px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: calc(28px + var(--shadow-off));
  background: var(--placeholder);
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--shadow);
}

@media (min-width: 960px) {
  .proc.is-ready .proc__media {
    grid-column: 1 / span 5;
    position: sticky;
    top: calc(var(--header-h) + 20px);
    align-self: start;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-h) - 48px);
    max-height: 860px;
  }
  .proc.is-ready .proc__list { grid-column: 7 / span 6; }
  .proc.is-ready .proc__item { min-height: 38vh; }
  .proc.is-ready .proc__thumb { display: none; }

  .proc.is-ready .proc__item:not(.is-active) .proc__name { color: rgba(16, 19, 21, .26); }
  .proc.is-ready .proc__item:not(.is-active) .proc__desc,
  .proc.is-ready .proc__item:not(.is-active) .link-arrow { opacity: .5; }
  .proc.is-ready .proc__item.is-active .proc__num { color: var(--fg); }
}

.proc__frame {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-right: var(--shadow-off);
  overflow: hidden;
  background: var(--placeholder);
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--shadow);
}
.proc__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.14);
}
.proc[data-dir="up"] .proc__img { clip-path: inset(0 0 100% 0); }
.proc .proc__img.is-prev { z-index: 2; clip-path: inset(0); transform: none; }
.proc .proc__img.is-active {
  z-index: 3;
  clip-path: inset(0);
  transform: none;
  transition: clip-path 1.25s var(--ease-io), transform 1.9s var(--ease);
}

.proc__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: calc(var(--shadow-off) + 18px);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--fg-3);
}
.proc__now { color: var(--fg); }
.proc__bar { position: relative; flex: 1; height: 1px; background: var(--line); }
.proc__bar i {
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform-origin: left center;
  transform: scaleX(calc(var(--n, 1) / 6));
  transition: transform 1s var(--ease);
}

/* ---------- Value-added services (list styles, used inside .svc-panel) ---------- */
.svc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap);
}
.svc { position: relative; padding: 24px 0 44px; }
.svc::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .9s var(--ease);
}
.svc:hover::after { transform: scaleX(1); transform-origin: left center; }
.svc__title {
  margin-bottom: 10px;
  font-size: 20px;
  font-stretch: 104%;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.svc__text { max-width: 34ch; font-size: 15px; line-height: 1.6; color: var(--fg-2); }

/* ---------- Services: plant photo with a dark translucent right half ---------- */
.section--flush { padding-bottom: 0; }
.svc-band {
  position: relative;
  margin-top: var(--section);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
}
.svc-band__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.svc-band__img {
  position: absolute;
  /* shifted so the operator and the coil sit in the clear (left) half */
  left: -33%;
  top: -8%;
  width: 133%;
  max-width: none;
  height: 116%;
  object-fit: cover;
  transform: translate3d(0, var(--y, 0px), 0);
  will-change: transform;
}
.svc-band__shade {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  right: 0;
  z-index: 0;
  background: rgba(16, 19, 21, .68);
}
.js .svc-band__shade[data-reveal="wipe"]:not(.is-in) { clip-path: inset(0 0 0 100%); }
.svc-band .wrap { position: relative; z-index: 1; }
.svc-panel {
  grid-column: 7 / span 6;
  padding: clamp(88px, 10vw, 152px) 0 clamp(88px, 10vw, 152px) clamp(24px, 3.2vw, 56px);
  --fg: #eef0f0;
  --fg-2: #c9ced1;
  --fg-3: #8f979c;
  --line: rgba(255, 255, 255, .2);
  color: var(--fg);
}
.svc-panel__title { margin-bottom: clamp(24px, 3vw, 44px); }
.svc-panel .svc { padding-bottom: 32px; }

/* ==========================================================================
   CEO + philosophy (dark)
   ========================================================================== */
.ceo { row-gap: 40px; align-items: end; }
.ceo__label { grid-column: 1 / -1; margin-bottom: clamp(40px, 6vw, 96px); }
.ceo__photo { grid-column: 1 / span 2; }
.ceo__photo .photo { aspect-ratio: 4 / 5; background: #e8eaeb; }
.ceo__photo img { object-position: 50% 18%; }
.ceo__quote { grid-column: 4 / span 7; }
.ceo__by {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(28px, 3vw, 44px);
}
.ceo__by::before { content: ""; width: 40px; height: 1px; background: var(--accent); }
.ceo__name { font-weight: 500; font-size: 17px; }
.ceo__role {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.philo {
  margin-top: var(--section);
  padding-top: var(--section);
  border-top: 1px solid var(--line);
}
.philo__copy { grid-column: 4 / span 7; }
.philo__copy > p { max-width: 56ch; color: var(--fg-2); }
.philo__creed { margin: clamp(28px, 3vw, 44px) 0; }

.ring-wrap { margin-top: clamp(80px, 10vw, 152px); row-gap: 56px; align-items: center; }
.ring { grid-column: 1 / span 5; width: 100%; max-width: 520px; }
.ring svg { width: 100%; height: auto; overflow: visible; }
.ring-legend { grid-column: 7 / span 6; position: relative; }
.ring-legend::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
}
.ring-legend li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 16px;
  padding: 18px 0 20px;
}
.ring-legend__n {
  padding-top: .35em;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--fg-3);
  transition: color .4s ease;
}
.ring-legend__t {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.4;
  color: var(--fg-2);
  transition: color .4s ease, transform .7s var(--ease);
}
.ring-legend li.is-hl .ring-legend__n { color: var(--accent); }
.ring-legend li.is-hl .ring-legend__t { color: var(--fg); transform: translateX(8px); }

.ring__track { fill: none; stroke: var(--line); stroke-width: 1; }
.ring__draw {
  fill: none;
  stroke: rgba(255, 255, 255, .62);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.6s var(--ease-io) .1s;
}
.ring__draw--in { stroke: rgba(255, 255, 255, .4); transition-delay: .7s; }
.ring__arrow { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: square; }
.ring__node circle {
  fill: var(--ink);
  stroke: rgba(255, 255, 255, .8);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill .4s ease, stroke .4s ease, transform .6s var(--ease);
}
.ring__node text {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  fill: var(--fg-3);
  transition: fill .4s ease;
}
.ring__node.is-hl circle { fill: var(--accent); stroke: var(--accent); transform: scale(1.6); }
.ring__node.is-hl text { fill: #fff; }
.ring__dot { fill: var(--accent); }
.ring__core { fill: var(--accent); }
.ring__node,
.ring__arrow,
.ring__dot { transition: opacity .9s ease 1.6s; }
.js .ring:not(.is-in) .ring__draw { stroke-dashoffset: 1; }
.js .ring:not(.is-in) .ring__node,
.js .ring:not(.is-in) .ring__arrow,
.js .ring:not(.is-in) .ring__dot { opacity: 0; }

/* ==========================================================================
   Policies (accordion)
   ========================================================================== */
.acc { position: relative; }
.acc::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
}
.acc__btn {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
  padding: clamp(26px, 3.2vw, 44px) 0;
  text-align: left;
}
.acc__num {
  grid-column: 1 / span 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--fg-3);
  transition: color .5s ease;
}
.acc__num::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: scale(0);
  transition: transform .6s var(--ease);
}
.acc__title {
  grid-column: 4 / span 8;
  font-size: clamp(28px, 3.4vw, 52px);
  font-stretch: 110%;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.04;
  transition: transform .8s var(--ease);
}
.acc__icon { grid-column: 12; justify-self: end; position: relative; width: 22px; height: 22px; }
.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(50% - .75px);
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .8s var(--ease);
}
.acc__icon::after { transform: rotate(90deg); }
.acc__item.is-open .acc__icon::after { transform: rotate(0deg); }
.acc__item.is-open .acc__icon::before { transform: rotate(180deg); }
.acc__btn:hover .acc__title { transform: translateX(12px); }
.acc__btn:hover .acc__num,
.acc__item.is-open .acc__num { color: var(--fg); }
.acc__btn:hover .acc__num::before,
.acc__item.is-open .acc__num::before { transform: scale(1); }

.acc__panel { display: grid; grid-template-rows: 1fr; }
.acc.is-ready .acc__panel { transition: grid-template-rows .9s var(--ease); }
.acc.is-ready .acc__item:not(.is-open) .acc__panel { grid-template-rows: 0fr; }
.acc__inner { min-height: 0; overflow: hidden; }
.acc__text {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-bottom: clamp(36px, 4.4vw, 64px);
}
.acc__text p {
  grid-column: 4 / span 7;
  max-width: 68ch;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.7;
  color: var(--fg-2);
}
.acc.is-ready .acc__text p { transition: opacity .6s ease, transform .9s var(--ease); }
.acc.is-ready .acc__item.is-open .acc__text p { transition-delay: .18s; }
.acc.is-ready .acc__item:not(.is-open) .acc__text p { opacity: 0; transform: translateY(-10px); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__body { row-gap: 72px; }
.locations { grid-column: 1 / span 5; position: relative; }
.locations::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
}
.loc { display: grid; gap: 12px; padding: 26px 0 30px; }
.loc__city {
  font-size: clamp(24px, 2.3vw, 34px);
  font-stretch: 108%;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.loc__addr { font-size: 15px; line-height: 1.65; color: var(--fg-2); }
.loc .link-arrow { margin-top: 6px; }

.contact__form { grid-column: 7 / span 6; }
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 30px;
}
.field { position: relative; padding-top: 24px; }
.field--full { grid-column: 1 / -1; }
.field__input {
  display: block;
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 18px;
  line-height: 1.4;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
textarea.field__input { min-height: 132px; resize: vertical; }
.field__input::placeholder { color: transparent; }
.field__label {
  position: absolute;
  left: 0;
  top: 34px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--fg-3);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .6s var(--ease), color .4s ease;
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  transform: translateY(-30px) scale(.72);
  color: var(--fg);
}
.field__line {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .8s var(--ease);
  pointer-events: none;
}
.field__input:focus ~ .field__line { transform: scaleX(1); }
.field__input:user-invalid ~ .field__line { transform: scaleX(1); background: var(--danger); }

.captcha {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 8px;
}
.captcha__q {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.captcha__q strong {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
}
.captcha .field { width: 170px; flex: none; padding-top: 0; }
.captcha .field__input { text-align: right; -moz-appearance: textfield; }
.captcha .field__input::placeholder { color: var(--fg-3); }
.captcha .field__input::-webkit-outer-spin-button,
.captcha .field__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__foot { grid-column: 1 / -1; padding-top: 10px; }
.form-msg {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.form-msg:empty { display: none; }
.form-msg::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: translateY(-1px);
}
.form-msg.is-error::before { background: var(--danger); }
.form-msg.is-shown { animation: msg-in .8s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: clamp(88px, 11vw, 168px) 0 28px; }
.footer__top { row-gap: 56px; align-items: start; }
.footer__logo {
  grid-column: 1 / span 6;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center; /* centred within the left half of the footer */
}
.footer__logo img { width: 260px; }
.footer__col { grid-column: span 2; }
.footer__col--first { grid-column: 7 / span 2; }
.footer__h {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.footer__col li + li { margin-top: 8px; }
.footer__col a { color: var(--fg-2); transition: color .3s ease; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  margin-top: clamp(80px, 10vw, 140px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-3);
}
.footer__bottom .link-arrow { color: var(--fg-2); }

/* ==========================================================================
   Reveal system (only active while JS runs; content is visible without it)
   ========================================================================== */
.js [data-reveal] {
  transition:
    opacity 1.1s cubic-bezier(.25, .1, .25, 1) var(--d, 0s),
    transform 1.4s var(--ease) var(--d, 0s);
}
.js [data-reveal="up"]:not(.is-in),
.js [data-reveal="rule"]:not(.is-in) { opacity: 0; transform: translate3d(0, 28px, 0); }

[data-reveal="rule"] { position: relative; }
[data-reveal="rule"]::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--line);
  transform-origin: left center;
  transition: transform 1.8s var(--ease) var(--d, 0s);
}
.js [data-reveal="rule"]:not(.is-in)::before { transform: scaleX(0); }

/* both states must be inset() shapes so the clip-path actually interpolates */
.js [data-reveal="clip"] { transition: clip-path 1.6s var(--ease-io) var(--d, 0s); }
.js [data-reveal="clip"]:not(.is-in) { clip-path: inset(100% 0 0 0); }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="clip"] img { transition: transform 2.2s var(--ease) var(--d, 0s); }
.js [data-reveal="clip"]:not(.is-in) img { transform: scale(1.22); }

.js [data-reveal="wipe"] { transition: clip-path 1.8s var(--ease-io) var(--d, 0s); }
.js [data-reveal="wipe"]:not(.is-in) { clip-path: inset(0 100% 0 0); }
.js [data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0); }

.js [data-reveal="ring"],
.js [data-reveal="map"] { transition: none; }

.js [data-reveal="words"] { transition: none; }
.js [data-reveal="words"]:not(.is-split) { visibility: hidden; }
.w {
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  padding: .12em .04em .2em;
  margin: -.12em -.04em -.2em;
  text-indent: 0; /* inline-blocks inherit the parent's hanging indent otherwise */
}
.w__i {
  display: inline-block;
  transition: transform 1.3s var(--ease) calc(var(--d, 0s) + var(--wd, 0ms));
}
.js [data-reveal="words"]:not(.is-in) .w__i { transform: translate3d(0, 112%, 0); }

/* ==========================================================================
   Page (language) transitions — progressive enhancement
   ========================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .45s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .8s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .about__mission { grid-column: 4 / span 4; }
  .about__history { grid-column: 8 / span 5; }
  .ceo__quote { grid-column: 4 / span 9; }
}

@media (max-width: 959px) {
  :root { --header-h: 64px; }

  .grid > * { grid-column: 1 / -1; }

  /* mobile menu */
  .nav-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
  }
  .nav-toggle i {
    grid-area: 1 / 1;
    width: 24px;
    height: 1.5px;
    background: currentColor;
    transition: transform .8s var(--ease);
  }
  .nav-toggle i:first-child { transform: translateY(-4px); }
  .nav-toggle i:last-child { transform: translateY(4px); }
  .menu-open .nav-toggle i:first-child { transform: rotate(45deg); }
  .menu-open .nav-toggle i:last-child { transform: rotate(-45deg); }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: calc(var(--header-h) + 40px) var(--pad) 28px;
    background: var(--ink);
    color: #fff;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .9s var(--ease-io), visibility 0s linear .9s;
  }
  .menu-open .nav {
    clip-path: inset(0);
    visibility: visible;
    transition: clip-path .9s var(--ease-io), visibility 0s;
  }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: auto; }
  .nav__link {
    padding: 0;
    overflow: hidden;
    font-size: clamp(38px, 10.5vw, 64px);
    font-stretch: 110%;
    letter-spacing: -.03em;
    line-height: 1.12;
  }
  .nav__link::after { display: none; }
  .nav__link > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease); }
  .menu-open .nav__link > span { transform: none; transition-delay: calc(.32s + var(--i, 0) * .07s); }
  .nav__sep { display: none; }
  .nav__lang, .nav__foot { opacity: 0; transition: opacity .6s ease; }
  .menu-open .nav__lang,
  .menu-open .nav__foot { opacity: 1; transition-delay: .6s; }
  .nav__lang { font-size: 13px; }
  .nav__foot {
    display: block;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8f979c;
  }
  .menu-open { overflow: hidden; }
  .menu-open .site-header { color: #fff; background: transparent; }
  .menu-open .site-header::after { opacity: 0; }
  .menu-open .site-header .brand img { filter: brightness(0) invert(1); }

  /* hero */
  .hero__meta { grid-template-columns: minmax(0, 1fr) auto; }
  .hero__text { grid-column: 1 / -1; font-size: 15px; }
  .hero__plants { grid-column: 1; display: flex; flex-wrap: wrap; gap: 0 18px; align-self: center; }
  .hero__controls { grid-column: 2; }
  .scroll-cue { display: none; }

  /* about */
  .about__statement .h2 { max-width: none; }
  .about__facts { align-items: start; }

  /* services */
  .svc-list { grid-template-columns: minmax(0, 1fr); }

  /* ceo */
  .ceo__label { margin-bottom: 8px; }
  .ceo__photo { width: 50%; }

  /* ring */
  .ring { max-width: 380px; justify-self: center; }

  /* accordion */
  .acc__btn { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
  .acc__num { grid-column: 1; grid-row: 1; }
  .acc__title { grid-column: 1; grid-row: 2; }
  .acc__icon { grid-column: 2; grid-row: 1 / span 2; }
  .acc__text p { grid-column: 1 / -1; }

  /* contact */
  .captcha { flex-direction: column; align-items: stretch; }
  .captcha .field { width: 100%; }
  .captcha .field__input { text-align: left; }

  /* footer */
  .footer__col,
  .footer__col--first { grid-column: span 6; }
  .lift { margin-right: var(--shadow-off); }

  /* services: photo on top, panel overlapping its lower edge */
  .svc-band { padding-bottom: clamp(48px, 10vw, 80px); }
  .svc-band__media { position: relative; inset: auto; z-index: 0; height: 72vw; }
  .svc-band__img { left: 0; width: 100%; object-position: 45% 50%; }
  .svc-band__shade { display: none; }
  .svc-panel { margin-top: -16vw; padding: clamp(28px, 6vw, 48px); background: rgba(16, 19, 21, .68); }

  .footer__logo img { width: 180px; }
  .pin__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
  .pin__label { font-size: 10px; }
}

@media (max-width: 599px) {
  body { font-size: 16px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .form .field { grid-column: 1 / -1; }
  .proc__item { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .proc__num { padding-top: 0; }
  .figure__label { max-width: 12ch; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}
