/* ==========================================================================
   Phytoexo — Supercritical CO₂ Extraction Systems
   Light theme: warm paper + ink + copper. Fraunces / Archivo.
   Image-led, Eden-style: big photography, short copy, compact cards.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-2: #f2f5ea;
  --card: #ffffff;
  --ink: #24211c;
  --ink-2: #38352d;
  --muted: #4f4b42;
  --faint: #6b675d;
  --line: rgba(36, 33, 28, 0.15);
  --line-strong: rgba(36, 33, 28, 0.3);
  --copper: #7cb342;
  --copper-deep: #4f7f1f;
  --copper-soft: #e9f2da;
  --heading: #4e7d22;

  --font-display: "Times New Roman", "Nimbus Roman", "Liberation Serif",
    "Songti SC", "SimSun", Times, serif;
  --font-body: "Times New Roman", "Nimbus Roman", "Liberation Serif",
    "Songti SC", "SimSun", Times, serif;

  --fs-h2: clamp(2.05rem, 3.5vw, 3rem);
  --fs-body: clamp(1.07rem, 1.15vw, 1.18rem);
  --fs-small: 1.08rem;
  --fs-micro: 0.95rem;

  --space-section: clamp(72px, 9vw, 120px);
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
::selection {
  background: var(--copper);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 1px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- type ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--heading);
}

/* ---------- layout ---------- */
.wrap {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.section {
  padding-block: var(--space-section);
  border-top: 1px solid var(--line);
}
.section--flush {
  border-top: 0;
}
.section-head {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-index {
  font-size: clamp(1.3rem, 1.75vw, 1.5625rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.section-index span {
  color: var(--ink);
}
.section-title {
  font-size: var(--fs-h2);
  line-height: 1.15;
  letter-spacing: -0.005em;
  max-width: 20em;
  margin-inline: auto;
}
.section-title--wide {
  max-width: 26em;
}
.section-aside {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 46em;
  margin: 14px auto 0;
}

/* corner ticks */
.ticks {
  position: relative;
}
.ticks::before,
.ticks::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--line-strong);
  border-style: solid;
  pointer-events: none;
}
.ticks::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}
.ticks::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  transition: background-color 0.22s ease, color 0.22s ease,
    border-color 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 2px 10px rgba(24, 40, 8, 0.08);
}
.btn-copper {
  background: var(--copper);
  color: #fff;
}
.btn-copper:hover {
  background: var(--copper-deep);
  box-shadow: 0 4px 16px rgba(24, 40, 8, 0.22);
}
.btn-light {
  background: #fff;
  color: var(--copper-deep);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 18px rgba(16, 24, 6, 0.25);
}
.btn-light:hover {
  background: var(--copper-soft);
  border-color: var(--copper-soft);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--copper);
  color: var(--copper-deep);
}
.btn-sm {
  padding: 12px 22px;
  font-size: 0.95rem;
}
.link-line {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 4px;
}
.link-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--line-strong);
  transition: background-color 0.3s ease;
}
.link-line:hover::after {
  background: var(--copper);
}
.link-line .arrow {
  color: var(--copper);
  transition: transform 0.25s ease;
}
.link-line:hover .arrow {
  transform: translateX(4px);
}
.link-copper {
  color: var(--copper-deep);
}
.link-copper:hover {
  color: var(--copper);
}

/* ---------- announcement ---------- */
.announce {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
}
.announce-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 38px;
  color: var(--muted);
}
.announce-inner a {
  color: var(--copper-deep);
  font-weight: 600;
}
.announce-inner a:hover {
  color: var(--copper);
}
.announce-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper);
  margin-right: 9px;
  vertical-align: 2px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--header-h);
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 3px;
}
.brand-logo {
  display: block;
  height: 52px;
  width: auto;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: var(--copper-deep);
}
.brand-mark .dot {
  color: var(--copper);
}
.brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  font-size: 1.02rem;
  font-weight: 600;
}
.nav a {
  color: var(--muted);
  transition: color 0.2s ease;
  padding-block: 6px;
}
.nav a:hover {
  color: var(--ink);
}
.nav a.is-active {
  color: var(--copper-deep);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease;
}
.menu-btn span:nth-child(1) {
  top: 18px;
}
.menu-btn span:nth-child(2) {
  top: 25px;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- hero (image-led) ---------- */
.hero {
  position: relative;
  min-height: clamp(500px, 68vh, 680px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #16130e;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: brightness(1.03) contrast(1.02) saturate(1.02);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 22, 12, 0.16) 0%,
    rgba(16, 22, 12, 0.26) 50%,
    rgba(16, 22, 12, 0.36) 100%
  );
}
.hero-content {
  position: relative;
  width: 100%;
  text-align: center;
  padding-inline: var(--gutter);
  padding-block: clamp(40px, 5.5vw, 64px);
  color: #f5efe4;
}
.hero-kicker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.6vw, 5.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  color: #fffdf8;
  margin-bottom: 18px;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.45);
}
.hero-kicker::before {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--copper);
}
.hero-title {
  font-family: var(--font-body);
  font-size: clamp(1.22rem, 1.75vw, 1.5rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(255, 253, 248, 0.97);
  max-width: 34em;
  margin: 0 auto 30px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
}
.hero-lede {
  color: rgba(245, 239, 228, 0.92);
  max-width: 34em;
  margin: 0 auto 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 26px;
}
.hero .link-line {
  color: #fffdf8;
}
.hero .link-line::after {
  background: rgba(255, 253, 248, 0.4);
}
.hero .link-line:hover::after {
  background: var(--copper);
}

/* stats strip */
.stats-strip {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 30px 20px 28px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat + .stat {
  padding-left: 20px;
}
.stat:last-child {
  border-right: 0;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 4.9vw, 4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat-value em {
  font-style: normal;
  color: var(--copper-deep);
}
.stat-label {
  margin-top: 9px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- split / approach ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split .section-head {
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}
.split .section-index {
  padding-top: 0;
}
.split-copy p {
  color: var(--muted);
  max-width: 38em;
}
.split-copy p + p {
  margin-top: 1em;
}
.split-copy .link-line {
  margin-top: 26px;
}
.split .section-head,
.lab-teaser .section-head {
  text-align: left;
  margin-bottom: 18px;
}
.split .section-index,
.lab-teaser .section-index {
  margin-bottom: 6px;
}
.split .section-title,
.lab-teaser .section-title {
  margin-inline: 0;
}
.capability-list {
  border-top: 1px solid var(--line);
  margin-top: 34px;
}
.capability-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.capability-list .cap-no {
  font-size: var(--fs-micro);
  color: var(--copper);
  letter-spacing: 0.06em;
}
.capability-list h3 {
  font-size: 1.16rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.capability-list p {
  font-size: 0.99rem;
  color: var(--muted);
}
.split-visual {
  position: relative;
  border: 1px solid var(--line);
  background: var(--card);
  padding: clamp(20px, 3vw, 38px);
  color: var(--ink-2);
}
.split-visual svg {
  width: 100%;
  height: auto;
}

/* scrolling photo marquee (essential oils, left→right) */
.marquee-panel {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--card);
  padding: clamp(14px, 1.8vw, 20px);
}
.marquee {
  position: relative;
  height: clamp(190px, 20vw, 260px);
  overflow: hidden;
  border-radius: 6px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 5%,
    #000 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 5%,
    #000 95%,
    transparent 100%
  );
}
.marquee-track {
  display: flex;
  flex-direction: row;
  width: max-content;
  animation: marquee-right 46s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee img {
  display: block;
  height: clamp(190px, 20vw, 260px);
  width: auto;
  border-radius: 6px;
  margin-right: 14px;
}
@keyframes marquee-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee {
    height: auto;
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee-track {
    animation: none;
  }
}
.marquee-panel .fig-caption {
  margin-top: 6px;
}
.process-fig,
.phase-fig {
  color: var(--ink-2);
}

/* fig captions */
.fig-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-micro);
  font-weight: 500;
  color: var(--muted);
}
.fig-caption .fig-no {
  color: var(--copper-deep);
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}

/* ---------- systems grid (home) ---------- */
.sys-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 26px);
}
.sys-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(40, 40, 20, 0.05);
}
.sys-card figure {
  overflow: hidden;
}
.sys-card img {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.sys-card:hover img {
  transform: scale(1.03);
}
.sys-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: clamp(20px, 2.4vw, 30px);
}
.sys-card h3 {
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  line-height: 1.2;
}
.sys-card p {
  font-size: 1rem;
  color: var(--muted);
}
.sys-card .link-line {
  margin-top: 6px;
  font-size: 0.98rem;
}
.sys-card .btn {
  margin-top: 10px;
}
.split-copy .btn {
  margin-top: 26px;
}
.lab-teaser .btn {
  margin-top: 24px;
}

/* ---------- values (photo cards) ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
}
.value {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-height: clamp(340px, 28vw, 400px);
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.value::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 15, 10, 0.45);
  pointer-events: none;
}
.value:nth-child(1)::before {
  background: rgba(83, 129, 168, 0.82);
}
.value:nth-child(2)::before {
  background: rgba(106, 154, 48, 0.82);
}
.value:nth-child(3)::before {
  background: rgba(84, 96, 82, 0.82);
}
.value > * {
  position: relative;
}
.value h3 {
  font-size: 1.5rem;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 8px;
}
.value p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.02rem;
  font-weight: 500;
  max-width: 30em;
  margin-inline: auto;
}

/* ---------- process ---------- */
.process-fig {
  border: 1px solid var(--line);
  background: var(--card);
  padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 36px) 18px;
  color: var(--ink-2);
}
.process-fig svg {
  width: 100%;
  height: auto;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
.prose-block {
  max-width: 42em;
}
.prose-block p {
  color: var(--muted);
}
.prose-block p + p {
  margin-top: 1.1em;
}
.prose-block .lead-line {
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 500;
}
.pull-fact {
  margin-top: 30px;
  border-left: 2px solid var(--copper);
  padding: 4px 0 4px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  line-height: 1.4;
  color: var(--ink);
  max-width: 30em;
}

/* ---------- lab teaser ---------- */
.lab-teaser {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.lab-teaser .section-head {
  grid-template-columns: 1fr;
  margin-bottom: 16px;
}
.lab-teaser .section-index {
  padding-top: 0;
}
.lab-teaser p {
  color: var(--muted);
  max-width: 36em;
}
.lab-teaser p + p {
  margin-top: 1em;
}
.lab-teaser .link-line {
  margin-top: 24px;
}
.lab-figure {
  background: var(--card);
  border: 1px solid var(--line);
  padding: clamp(16px, 2.4vw, 26px);
}
.lab-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: #689a34;
  color: #ffffff;
}
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 96px);
}
.cta-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.12;
  color: #fffdf8;
}
.cta-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  justify-self: end;
}
.cta-side p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.22rem;
  font-weight: 500;
  max-width: 26em;
}
.cta-band .btn-light {
  background: #ffffff;
  color: var(--copper-deep);
}
.cta-side .link-line {
  color: #fffdf8;
}
.cta-side .link-line::after {
  background: rgba(255, 253, 248, 0.4);
}

/* ---------- footer ---------- */
.footer {
  background: #e9eff3;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(26px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 72px) 40px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-logo-img {
  display: block;
  height: 64px;
  width: auto;
  margin-bottom: 14px;
}
.footer-logo .dot {
  color: var(--copper);
}
.footer-note {
  color: var(--muted);
  font-size: var(--fs-small);
  max-width: 24em;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 1rem;
}
.footer-col ul a {
  color: var(--ink-2);
}
.footer-col ul a:hover {
  color: var(--copper-deep);
}
.footer-contact p {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.65;
}
.footer-contact a {
  color: var(--copper-deep);
  font-weight: 600;
}
.footer-word {
  font-family: var(--font-display);
  font-size: clamp(60px, 11vw, 150px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(79, 127, 31, 0.34);
  user-select: none;
  transform: translateY(12%);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-block: 20px 24px;
  font-size: var(--fs-micro);
  color: var(--faint);
  position: relative;
  background: transparent;
}

/* ---------- page hero (subpages) ---------- */
.page-hero {
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(36px, 4.5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.page-hero .section-index {
  padding-top: 0;
  margin-bottom: 16px;
}
.page-title {
  font-size: clamp(2.5rem, 4.7vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  max-width: 15em;
}
.page-lede {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 1.4rem;
  line-height: 1.6;
  max-width: 38em;
}
.page-lede strong {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.15em;
}

/* ---------- product detail ---------- */
.system-detail {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
  align-items: center;
}
.system-detail:first-of-type {
  border-top: 0;
}
.system-detail--flip .system-detail-body {
  order: 2;
}
.system-detail--flip .system-detail-fig {
  order: 1;
}
.system-detail .system-tag {
  color: var(--ink);
  font-size: clamp(1.3rem, 1.75vw, 1.5625rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.system-detail h2 {
  font-size: var(--fs-h2);
  line-height: 1.12;
  margin-bottom: 18px;
  max-width: 13em;
}
.system-detail-body p {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 36em;
}
.system-detail-body p + p {
  margin-top: 1em;
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
  margin-bottom: 28px;
}
.feature-tags li {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--card);
}
/* plain bullet features (product page) */
.feature-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 30px;
  max-width: 36em;
}
.feature-list li {
  position: relative;
  padding-left: 28px;
  font-size: 1.06rem;
  color: var(--ink-2);
}
.feature-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--copper);
  font-weight: 400;
}
.system-detail-fig {
  border: 1px solid var(--line);
  background: var(--card);
  padding: clamp(18px, 2.6vw, 30px);
}
.system-detail-fig img {
  width: 100%;
  height: auto;
}
.system-detail-fig img.img-cap {
  max-width: 320px;
  margin-inline: auto;
}

/* ---------- advisory ---------- */
.advisory {
  border: 1px solid var(--line);
  background: var(--card);
  padding: clamp(26px, 3.6vw, 48px);
}
.advisory h2 {
  font-size: var(--fs-h2);
  line-height: 1.12;
  margin-bottom: 12px;
  max-width: 16em;
}
.advisory > p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 42em;
  margin-bottom: 30px;
}
.advisory ol {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 44px;
  border-top: 1px solid var(--line);
}
.advisory li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
  color: var(--ink-2);
}
.advisory .adv-no {
  color: var(--copper);
  font-size: var(--fs-small);
  padding-top: 2px;
}

/* ---------- extraction page ---------- */
.phase-fig,
.fractionation-fig {
  border: 1px solid var(--line);
  background: var(--card);
  padding: clamp(18px, 2.6vw, 34px);
  color: var(--ink-2);
}
.fractionation-fig svg,
.phase-fig svg {
  width: 100%;
  height: auto;
}
.fractionation-legend {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
}
.fractionation-legend li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.fractionation-legend .s-no {
  color: var(--copper);
}

/* ---------- services ---------- */
.service-list {
  border-top: 1px solid var(--line-strong);
}
.service {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(18px, 3.4vw, 54px);
  padding: clamp(24px, 3.4vw, 40px) 6px;
  border-bottom: 1px solid var(--line);
}
.service-no {
  font-family: var(--font-display);
  color: var(--copper);
  padding-top: 4px;
}
.service h3 {
  font-size: clamp(1.5rem, 2.1vw, 1.8rem);
  line-height: 1.2;
  margin-bottom: 8px;
}
.service p {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 32em;
}
.service-note {
  align-self: start;
  font-size: 1.02rem;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: clamp(14px, 2vw, 24px);
}
.service-note strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

/* ---------- about ---------- */
.vision-band {
  background: var(--copper-deep);
  color: #fff;
}
.vision {
  max-width: 44em;
  margin-inline: auto;
  text-align: center;
  padding-block: clamp(52px, 6vw, 80px);
}
.vision blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.9vw, 2.4rem);
  line-height: 1.3;
  color: #ffffff;
}
.vision blockquote::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  margin: 0 auto 28px;
}
.vision cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.app-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
}
.app-list li {
  padding: 22px 24px 24px 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.4;
}
.app-list li:nth-child(3n) {
  border-right: 0;
  padding-right: 0;
}
.app-list li:not(:nth-child(3n + 1)) {
  padding-left: 24px;
}
.app-list .app-no {
  display: block;
  font-size: var(--fs-micro);
  color: var(--copper);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.patents-strip {
  border: 1px solid var(--line);
  background: var(--card);
  padding: clamp(16px, 2.2vw, 28px);
}
.patents-strip img {
  width: 100%;
  height: auto;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.contact-details {
  border-top: 1px solid var(--line-strong);
}
.contact-details dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.04rem;
}
.contact-details dt {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 600;
  padding-top: 2px;
}
.contact-details dd {
  color: var(--ink);
}
.contact-details dd a {
  color: var(--copper-deep);
}
.contact-note {
  margin-top: 22px;
  font-size: var(--fs-small);
  color: var(--muted);
  max-width: 30em;
}
.inquiry-form {
  border: 1px solid var(--line);
  background: var(--card);
  padding: clamp(24px, 3vw, 38px);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: var(--fs-small);
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1.04rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 12px 14px;
  transition: border-color 0.2s ease;
  width: 100%;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--copper);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
  opacity: 0.7;
}
.form-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.form-hint {
  font-size: var(--fs-micro);
  color: var(--muted);
  max-width: 30em;
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 52vh;
  display: flex;
  align-items: center;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 13vw, 9rem);
  line-height: 1;
  color: var(--copper);
}

/* ---------- schematic palette ---------- */
.svg-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.85;
}
.svg-line--faint {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.4;
}
.svg-copper {
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.2;
}
.svg-copper-fill {
  fill: var(--copper);
  opacity: 0.9;
}
.svg-label {
  fill: var(--faint);
  font-family: var(--font-body);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}
.svg-label--copper {
  fill: var(--copper);
  font-family: var(--font-body);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}
.svg-dash {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.8;
  stroke-dasharray: 3 4;
  opacity: 0.35;
}

/* ---------- reveal ---------- */
.js .reveal-fig {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js .reveal-fig.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal-fig {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .split,
  .lab-teaser,
  .cta-inner,
  .two-col,
  .contact-grid,
  .system-detail {
    grid-template-columns: 1fr;
  }
  .system-detail--flip .system-detail-body,
  .system-detail--flip .system-detail-fig {
    order: 0;
  }
  .values {
    grid-template-columns: 1fr;
  }
  .value {
    min-height: 320px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .advisory ol {
    grid-template-columns: 1fr;
  }
  .service {
    grid-template-columns: 48px 1fr;
  }
  .service-note {
    grid-column: 2;
    border-left: 0;
    padding-left: 0;
    margin-top: 8px;
  }
  .app-list {
    grid-template-columns: 1fr 1fr;
  }
  .app-list li:nth-child(3n) {
    border-right: 1px solid var(--line);
    padding-right: 24px;
    padding-left: 0;
  }
  .app-list li:nth-child(2n) {
    border-right: 0;
    padding-left: 24px;
  }
}

@media (max-width: 860px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }
  .brand-logo {
    height: 42px;
  }
  .marquee {
    height: 200px;
  }
  .marquee img {
    height: 200px;
  }
  .nav {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 max(24px, 8vw);
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    z-index: 90;
  }
  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    color: var(--ink);
    padding-block: 9px;
  }
  .nav a.is-active {
    color: var(--copper-deep);
  }
  .menu-btn {
    display: block;
    z-index: 95;
  }
  .header-actions .btn-sm {
    display: none;
  }
  .section-head {
    grid-template-columns: 1fr;
  }
  .section-aside {
    grid-column: 1;
  }
  .section-index {
    padding-top: 0;
    margin-bottom: 4px;
  }
  .sys-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 18px 18px 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .stat + .stat {
    padding-left: 18px;
  }
  .stat:nth-child(2n) {
    border-right: 0;
  }
  .stat:nth-child(2n + 1) {
    padding-left: 0;
  }
  .cta-side {
    justify-self: start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .announce-inner {
    justify-content: center;
  }
  .announce-inner a {
    display: none;
  }
  .contact-details dl {
    grid-template-columns: 100px 1fr;
  }
  .app-list {
    grid-template-columns: 1fr;
  }
  .app-list li {
    border-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 70vh;
  }
  .hero-kicker {
    font-size: clamp(2.4rem, 10.5vw, 3rem);
  }
  .hero-title {
    font-size: 1.1rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: 0;
    padding-left: 0 !important;
  }
  .page-title {
    font-size: clamp(1.8rem, 7.6vw, 2.4rem);
  }
}
