/* =========================================================
   PHIVARA — Ecosystem page
   Extends css/main.css design tokens (--gold, --ink, --olive, --cream...)
   ========================================================= */

:root{
  /* Matches the eco-ring diagram exactly: olive-soft / gold / ink / terracotta */
  --tone-longevity:var(--olive-soft);
  --tone-longevity-soft:rgba(170,160,143,.16);
  --tone-dermatology:var(--gold);
  --tone-dermatology-soft:rgba(184,149,96,.16);
  --tone-wellness:var(--ink);
  --tone-wellness-soft:rgba(48,46,42,.10);
  --tone-plastic:var(--terracotta);
  --tone-plastic-soft:rgba(157,130,103,.16);
}

/* ---------- Breadcrumb spacing fix (shared subbar sits right under sticky header) ---------- */
.breadcrumb-subbar{ position:relative; z-index:5; }

.eco-hero + .eco-section{ margin-top:30px; }

/* ============ HERO ============ */
.eco-hero{
  position:relative; overflow:hidden; min-height:720px; padding:104px 0;
  display:flex; align-items:center;
  background:
    radial-gradient(circle at 10% 18%, rgba(184,149,96,.26), transparent 31rem),
    radial-gradient(circle at 88% 26%, rgba(196,137,156,.2), transparent 32rem),
    linear-gradient(120deg,#f4ede2 0%,#fffaf2 46%,#f0e8df 100%);
  border-bottom:1px solid rgba(141,112,71,.18);
  box-shadow:inset 0 -50px 80px rgba(105,78,43,.045);
}
.eco-hero::before{
  content:"";
  position:absolute;
  z-index:0;
  width:680px;
  height:680px;
  left:-270px;
  top:-290px;
  border:1px solid rgba(184,149,96,.2);
  border-radius:50%;
  box-shadow:
    0 0 0 70px rgba(184,149,96,.035),
    0 0 0 140px rgba(184,149,96,.025);
  pointer-events:none;
}
.eco-hero::after{
  content:"PHIVARA  •  THE ART OF BEAUGEVITY";
  position:absolute;
  right:26px;
  bottom:22px;
  color:rgba(72,62,49,.32);
  font-family:var(--sans);
  font-size:8px;
  font-weight:600;
  letter-spacing:.24em;
  writing-mode:vertical-rl;
}
.eco-hero-split{ display:grid; grid-template-columns:1.08fr .92fr; gap:76px; align-items:center; position:relative; z-index:2; }
.eco-hero-head{ max-width:520px; text-align:left; position:relative; z-index:2; }
.eco-hero-head .eyebrow{ justify-content:flex-start; }
.eco-hero-head h1{
  font-size:clamp(34px,4.6vw,52px); font-weight:300; margin:24px 0 22px; line-height:1.22;
  background:linear-gradient(100deg,var(--ink) 10%,var(--gold) 45%,var(--terracotta) 65%,var(--ink) 92%);
  background-size:220% auto; -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:ecoTitleDrift 9s ease-in-out infinite;
}
@keyframes ecoTitleDrift{ 50%{ background-position:100% 50%; } }
.eco-hero-head p{ font-size:16.5px; line-height:1.9; color:var(--ink-soft); font-weight:300; margin-bottom:34px; }
.eco-hero-head .cta-row{ display:flex; }
.eco-hero .btn-outline-dark{
  min-width:190px;
  color:#fff;
  border-color:var(--ink);
  background:var(--ink);
  box-shadow:0 16px 34px rgba(48,46,42,.17);
}
.eco-hero .btn-outline-dark:hover{
  color:#fff;
  border-color:var(--gold);
  background:var(--gold);
  box-shadow:0 20px 40px rgba(184,149,96,.25);
}
@media(max-width:900px){
  .eco-hero{ min-height:0; padding:76px 0; }
  .eco-hero::after{ right:12px; bottom:14px; }
  .eco-hero-split{ grid-template-columns:1fr; gap:36px; text-align:center; }
  .eco-hero-head{ max-width:100%; text-align:center; margin:0 auto; }
  .eco-hero-head .eyebrow{ justify-content:center; }
  .eco-hero-head .cta-row{ justify-content:center; }
}

/* Ambient cursor-follow orb */
.eco-orb{
  position:absolute; z-index:1; width:340px; height:340px; border-radius:50%; pointer-events:none;
  background:radial-gradient(circle,rgba(184,149,96,.22),rgba(184,149,96,0) 70%);
  transform:translate(-50%,-50%); opacity:0; transition:opacity .5s ease; mix-blend-mode:multiply;
}
.eco-orb.visible{ opacity:1; }

/* Ring diagram */
.eco-ring-wrap{ position:relative; width:min(500px,88vw); aspect-ratio:1/1; margin:0 auto; z-index:2; }
.eco-ring-svg{ position:absolute; inset:0; width:100%; height:100%; animation:ecoRingSpin 120s linear infinite; }
.eco-ring-bg{ fill:none; stroke:var(--line); stroke-width:1.5; }
.eco-ring-seg{ fill:none; stroke-width:14; stroke-linecap:round; stroke-dasharray:195 634; transition:stroke-width .4s ease, opacity .4s ease; }
.eco-seg-longevity{ stroke:var(--olive-soft); }
.eco-seg-dermatology{ stroke:var(--gold); }
.eco-seg-wellness{ stroke:var(--ink); }
.eco-seg-plastic{ stroke:var(--terracotta); }
@keyframes ecoRingSpin{ to{ transform:rotate(360deg); } }

.eco-ring-core{
  position:absolute; inset:24%; border-radius:50%; background:#fff; display:flex; flex-direction:column;
  align-items:center; justify-content:center; text-align:center; gap:6px; padding:8%;
  box-shadow:0 22px 60px rgba(62,57,49,.13); animation:ecoCoreBreathe 5s ease-in-out infinite;
}
@keyframes ecoCoreBreathe{ 50%{ box-shadow:0 28px 76px rgba(153,110,80,.2); transform:scale(1.02); } }
.eco-ring-core img{ height:auto; margin-bottom:4px; }
.eco-ring-core strong{ font-family:var(--serif); font-weight:500; letter-spacing:.1em; font-size:clamp(13px,1.6vw,16px); color:var(--olive-dark); }
.eco-ring-core span{ font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-soft); }

.eco-ring-tags{ position:absolute; inset:0; }
.eco-ring-tag{
  position:absolute; display:inline-flex; align-items:center; gap:8px; background:var(--cream-card);
  border:1px solid var(--line); border-radius:40px; padding:10px 17px; font-size:12.5px; font-weight:500;
  color:var(--olive-dark); box-shadow:0 10px 26px rgba(50,42,24,.08); text-decoration:none; cursor:pointer;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease; white-space:nowrap;
}
.eco-ring-tag:hover{ transform:translateY(-4px); box-shadow:0 18px 36px rgba(50,42,24,.14); }
.eco-tag-dot{ width:9px; height:9px; border-radius:50%; flex:0 0 auto; }
.tag-longevity{ top:10%; left:4%; } .tag-longevity .eco-tag-dot{ background:var(--olive-soft); }
.tag-dermatology{ top:10%; right:4%; } .tag-dermatology .eco-tag-dot{ background:var(--gold); }
.tag-wellness{ bottom:12%; left:4%; } .tag-wellness .eco-tag-dot{ background:var(--ink); }
.tag-plastic{ bottom:12%; right:4%; } .tag-plastic .eco-tag-dot{ background:var(--terracotta); }
.eco-ring-wrap:has(.tag-longevity:hover) .eco-ring-seg{ opacity:.3; }
.eco-ring-wrap:has(.tag-longevity:hover) .eco-seg-longevity{ opacity:1; stroke-width:20; }
.eco-ring-wrap:has(.tag-dermatology:hover) .eco-ring-seg{ opacity:.3; }
.eco-ring-wrap:has(.tag-dermatology:hover) .eco-seg-dermatology{ opacity:1; stroke-width:20; }
.eco-ring-wrap:has(.tag-wellness:hover) .eco-ring-seg{ opacity:.3; }
.eco-ring-wrap:has(.tag-wellness:hover) .eco-seg-wellness{ opacity:1; stroke-width:20; }
.eco-ring-wrap:has(.tag-plastic:hover) .eco-ring-seg{ opacity:.3; }
.eco-ring-wrap:has(.tag-plastic:hover) .eco-seg-plastic{ opacity:1; stroke-width:20; }

@media(max-width:640px){
  .eco-ring-wrap{ width:92vw; }
  .eco-ring-tag{ font-size:11px; padding:7px 12px; gap:6px; }
  .tag-longevity,.tag-wellness{ left:0; }
  .tag-dermatology,.tag-plastic{ right:0; }
}

/* ============ CATEGORY SECTIONS ============ */
/* Layout E — portrait image ribbon flush to the section edge, content fills the rest */
.eco-section{ position:relative; padding:96px 0; overflow:hidden; scroll-margin-top:120px; }
.eco-section:nth-of-type(even){ background:linear-gradient(135deg,#F1ECE3,#FCFAF6 55%,#EBE4D9); }
.eco-section-grid{ position:relative; z-index:2; }
.eco-content{ max-width:600px; }
.eco-section:not(.reverse) .eco-content{ margin-left:clamp(240px,26vw,380px); }
.eco-section.reverse .eco-content{ margin-left:0; margin-right:clamp(240px,26vw,380px); }
@media(max-width:900px){
  .eco-section{ display:flex; flex-direction:column; }
  .eco-content{ margin-left:0 !important; margin-right:0 !important; max-width:100%; }
}

.eco-tone-eyebrow{ display:flex; align-items:center; gap:14px; font-family:var(--sans); font-weight:600; letter-spacing:.28em; text-transform:uppercase; font-size:12.5px; margin-bottom:18px; }
.eco-tone-eyebrow::before{ content:""; width:30px; height:2px; border-radius:2px; }
.tone-longevity .eco-tone-eyebrow{ color:var(--tone-longevity); } .tone-longevity .eco-tone-eyebrow::before{ background:var(--tone-longevity); }
.tone-dermatology .eco-tone-eyebrow{ color:var(--tone-dermatology); } .tone-dermatology .eco-tone-eyebrow::before{ background:var(--tone-dermatology); }
.tone-wellness .eco-tone-eyebrow{ color:var(--tone-wellness); } .tone-wellness .eco-tone-eyebrow::before{ background:var(--tone-wellness); }
.tone-plastic .eco-tone-eyebrow{ color:var(--tone-plastic); } .tone-plastic .eco-tone-eyebrow::before{ background:var(--tone-plastic); }

.eco-content h2{ font-size:clamp(24px,3vw,34px); font-weight:400; line-height:1.32; margin-bottom:20px; }
.eco-content p.eco-desc{ font-size:15.5px; line-height:1.95; color:var(--ink-soft); font-weight:300; margin-bottom:26px; max-width:560px; }

.eco-chip-row{ display:flex; flex-wrap:wrap; gap:9px; margin-bottom:34px; }
.eco-chip{
  font-size:12px; font-weight:500; padding:8px 15px; border-radius:30px; border:1px solid var(--line);
  color:var(--ink-soft); background:#fff; transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tone-longevity .eco-chip:hover{ border-color:var(--tone-longevity); color:var(--tone-longevity); transform:translateY(-3px); box-shadow:0 10px 20px var(--tone-longevity-soft); }
.tone-dermatology .eco-chip:hover{ border-color:var(--tone-dermatology); color:var(--tone-dermatology); transform:translateY(-3px); box-shadow:0 10px 20px var(--tone-dermatology-soft); }
.tone-wellness .eco-chip:hover{ border-color:var(--tone-wellness); color:var(--tone-wellness); transform:translateY(-3px); box-shadow:0 10px 20px var(--tone-wellness-soft); }
.tone-plastic .eco-chip:hover{ border-color:var(--tone-plastic); color:var(--tone-plastic); transform:translateY(-3px); box-shadow:0 10px 20px var(--tone-plastic-soft); }

/* Link cards: doctors / programs / articles for this category */
.eco-links{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.eco-link-card{
  display:flex; flex-direction:column; gap:12px; padding:20px 18px; border-radius:12px; background:#fff;
  border:1px solid var(--line); text-decoration:none; color:inherit; transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s ease;
}
.eco-link-card .eco-link-icon{ width:34px; height:34px; display:flex; align-items:center; justify-content:center; border-radius:50%; }
.eco-link-card .eco-link-icon svg{ width:18px; height:18px; stroke-width:1.7; }
.eco-link-card .eco-link-label{ font-size:13.5px; font-weight:600; color:var(--ink); line-height:1.4; }
.eco-link-card .eco-link-arrow{ margin-top:auto; display:flex; align-items:center; gap:6px; font-size:11.5px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }
.eco-link-card .eco-link-arrow svg{ width:13px; height:13px; transition:transform .3s ease; }
.eco-link-card:hover .eco-link-arrow svg{ transform:translateX(4px); }
.eco-link-card:hover{ transform:translateY(-6px); }

.tone-longevity .eco-link-icon{ background:var(--tone-longevity-soft); color:var(--tone-longevity); }
.tone-longevity .eco-link-arrow{ color:var(--tone-longevity); }
.tone-longevity .eco-link-card:hover{ border-color:var(--tone-longevity); box-shadow:0 22px 46px var(--tone-longevity-soft); }
.tone-dermatology .eco-link-icon{ background:var(--tone-dermatology-soft); color:var(--tone-dermatology); }
.tone-dermatology .eco-link-arrow{ color:var(--tone-dermatology); }
.tone-dermatology .eco-link-card:hover{ border-color:var(--tone-dermatology); box-shadow:0 22px 46px var(--tone-dermatology-soft); }
.tone-wellness .eco-link-icon{ background:var(--tone-wellness-soft); color:var(--tone-wellness); }
.tone-wellness .eco-link-arrow{ color:var(--tone-wellness); }
.tone-wellness .eco-link-card:hover{ border-color:var(--tone-wellness); box-shadow:0 22px 46px var(--tone-wellness-soft); }
.tone-plastic .eco-link-icon{ background:var(--tone-plastic-soft); color:var(--tone-plastic); }
.tone-plastic .eco-link-arrow{ color:var(--tone-plastic); }
.tone-plastic .eco-link-card:hover{ border-color:var(--tone-plastic); box-shadow:0 22px 46px var(--tone-plastic-soft); }

@media(max-width:640px){ .eco-links{ grid-template-columns:1fr; } }

/* ---------- Visual ribbon (edge-to-edge portrait strip) ---------- */
.eco-visual{ position:absolute; top:0; bottom:0; left:0; width:clamp(220px,22vw,340px); z-index:1; }
.eco-section.reverse .eco-visual{ left:auto; right:0; }
.eco-visual-frame-wrap{ position:relative; width:100%; height:100%; }
.eco-visual-frame{
  position:relative; width:100%; height:100%; border-radius:0 26px 26px 0; background:#fff;
  box-shadow:0 30px 70px rgba(62,57,49,.14); border:1px solid var(--line); overflow:hidden;
  transition:box-shadow .4s ease;
}
.eco-section.reverse .eco-visual-frame{ border-radius:26px 0 0 26px; }
.eco-visual-frame-wrap:hover .eco-visual-frame{ box-shadow:0 38px 84px rgba(62,57,49,.2); }
.eco-visual-media{ position:absolute; inset:0; }
.eco-visual-media img{
  width:100%; height:100%; object-fit:cover; display:block; transform:scale(1.08);
  animation:ecoKenburns 16s ease-in-out infinite alternate;
}
.eco-visual-frame-wrap:hover .eco-visual-media img{ animation-play-state:running; filter:saturate(1.08); }
@keyframes ecoKenburns{ 0%{ transform:scale(1.06) translate(0,0); } 100%{ transform:scale(1.2) translate(-2.5%,-2%); } }
.eco-visual-tint{ position:absolute; inset:0; mix-blend-mode:multiply; opacity:.5; animation:ecoTintPulse 6s ease-in-out infinite; }
@keyframes ecoTintPulse{ 0%,100%{ opacity:.38; } 50%{ opacity:.58; } }
.tone-longevity .eco-visual-tint{ background:linear-gradient(200deg,var(--tone-longevity) 0%,transparent 60%); }
.tone-dermatology .eco-visual-tint{ background:linear-gradient(200deg,var(--tone-dermatology) 0%,transparent 60%); }
.tone-wellness .eco-visual-tint{ background:linear-gradient(200deg,var(--tone-wellness) 0%,transparent 60%); }
.tone-plastic .eco-visual-tint{ background:linear-gradient(200deg,var(--tone-plastic) 0%,transparent 60%); }

@media(max-width:900px){
  .eco-visual{ position:relative; top:auto; bottom:auto; left:auto; right:auto; order:-1; width:100%; height:240px; margin-bottom:32px; }
  .eco-visual-frame,.eco-section.reverse .eco-visual-frame{ border-radius:20px; }
}

@media(prefers-reduced-motion:reduce){
  .eco-ring-svg, .eco-hero-head h1, .eco-visual-media img, .eco-visual-tint{
    animation:none !important;
  }
  .eco-visual-media img{ transform:scale(1.02) !important; }
}

/* ============ CATEGORY SECTIONS — EDITORIAL REDESIGN ============ */
.eco-section{
  --section-tone:var(--gold);
  min-height:760px;
  padding:108px 0;
  isolation:isolate;
  background:
    radial-gradient(circle at 8% 16%, color-mix(in srgb, var(--section-tone) 9%, transparent), transparent 27rem),
    linear-gradient(135deg,#f8f5ef 0%,#fff 50%,#f4efe7 100%);
  border-top:1px solid rgba(92,77,54,.09);
}
.eco-section:nth-of-type(even){
  background:
    radial-gradient(circle at 92% 15%, color-mix(in srgb, var(--section-tone) 10%, transparent), transparent 28rem),
    linear-gradient(135deg,#efe9df 0%,#fbf9f5 48%,#f7f2eb 100%);
}
.eco-section::before{
  content:"";
  position:absolute;
  z-index:-1;
  width:520px;
  height:520px;
  right:-250px;
  bottom:-280px;
  border:1px solid color-mix(in srgb, var(--section-tone) 24%, transparent);
  border-radius:50%;
  box-shadow:
    0 0 0 52px color-mix(in srgb, var(--section-tone) 4%, transparent),
    0 0 0 105px color-mix(in srgb, var(--section-tone) 3%, transparent);
}
.eco-section.reverse::before{ right:auto; left:-250px; }
.tone-longevity{ --section-tone:var(--tone-longevity); }
.tone-dermatology{ --section-tone:var(--tone-dermatology); }
.tone-wellness{ --section-tone:#67645d; }
.tone-plastic{ --section-tone:var(--tone-plastic); }

.eco-section-grid{
  min-height:544px;
  display:flex;
  align-items:center;
}
.eco-content{
  width:min(59%,690px);
  max-width:none;
  padding:56px 54px 52px;
  margin:0 0 0 auto !important;
  position:relative;
  z-index:3;
  border:1px solid rgba(105,88,61,.13);
  border-radius:4px 28px 28px 4px;
  background:rgba(255,253,249,.9);
  box-shadow:0 32px 80px rgba(67,57,43,.1);
  backdrop-filter:blur(14px);
}
.eco-section.reverse .eco-content{
  margin:0 auto 0 0 !important;
  border-radius:28px 4px 4px 28px;
}
.eco-content::after{
  content:"";
  position:absolute;
  top:26px;
  right:28px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--section-tone);
  box-shadow:
    0 0 0 7px color-mix(in srgb, var(--section-tone) 10%, transparent),
    0 0 0 14px color-mix(in srgb, var(--section-tone) 5%, transparent);
}
.eco-section.reverse .eco-content::after{ right:auto; left:28px; }

.eco-tone-eyebrow{
  margin-bottom:20px;
  color:var(--section-tone) !important;
  font-size:11px;
  letter-spacing:.24em;
}
.eco-tone-eyebrow::before{ width:40px; background:var(--section-tone) !important; }
.eco-content h2{
  max-width:570px;
  margin-bottom:20px;
  font-size:clamp(27px,3vw,39px);
  line-height:1.28;
  font-weight:400;
  letter-spacing:-.018em;
}
.eco-content p.eco-desc{
  max-width:590px;
  margin-bottom:23px;
  padding-left:18px;
  border-left:1px solid color-mix(in srgb, var(--section-tone) 40%, transparent);
  font-size:14.5px;
  line-height:1.9;
}
.eco-chip-row{ gap:7px; margin-bottom:29px; }
.eco-chip{
  padding:7px 13px;
  border-color:color-mix(in srgb, var(--section-tone) 24%, var(--line));
  background:color-mix(in srgb, var(--section-tone) 5%, #fff);
  font-size:11.5px;
}
.eco-chip:hover{
  color:var(--section-tone) !important;
  border-color:var(--section-tone) !important;
  box-shadow:0 9px 20px color-mix(in srgb, var(--section-tone) 14%, transparent) !important;
}

.eco-links{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  padding-top:25px;
  border-top:1px solid rgba(105,88,61,.12);
}
.eco-link-card{
  min-height:146px;
  gap:9px;
  padding:16px 15px 14px;
  border:0;
  border-radius:12px;
  background:rgba(255,255,255,.72);
  box-shadow:inset 0 0 0 1px rgba(105,88,61,.11);
}
.eco-link-card .eco-link-icon{
  width:31px;
  height:31px;
  color:var(--section-tone) !important;
  background:color-mix(in srgb, var(--section-tone) 12%, #fff) !important;
}
.eco-link-card .eco-link-icon svg{ width:16px; height:16px; }
.eco-link-card .eco-link-label{ font-size:12.5px; }
.eco-link-card .eco-link-arrow{
  color:var(--section-tone) !important;
  font-size:10.5px;
  letter-spacing:.04em;
}
.eco-link-card:hover{
  border-color:transparent !important;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--section-tone) 45%, transparent),
    0 18px 34px color-mix(in srgb, var(--section-tone) 13%, transparent) !important;
}

.eco-visual{
  top:86px;
  bottom:86px;
  left:max(24px,calc((100vw - 1200px) / 2));
  width:min(42vw,500px);
  z-index:2;
}
.eco-section.reverse .eco-visual{
  left:auto;
  right:max(24px,calc((100vw - 1200px) / 2));
}
.eco-visual::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:22px -22px -22px 22px;
  border:1px solid color-mix(in srgb, var(--section-tone) 45%, transparent);
  background:color-mix(in srgb, var(--section-tone) 7%, #f8f4ed);
  box-shadow:14px 18px 42px rgba(49,42,31,.08);
}
.eco-section.reverse .eco-visual::before{ inset:22px 22px -22px -22px; }
.eco-visual::after{
  content:"01  /  04";
  position:absolute;
  z-index:4;
  right:-22px;
  bottom:-22px;
  min-width:118px;
  padding:16px 20px;
  color:#fff;
  background:color-mix(in srgb, var(--section-tone) 84%, #3d3932);
  box-shadow:0 16px 34px rgba(49,42,31,.18);
  font-family:var(--serif);
  font-size:17px;
  font-style:italic;
  letter-spacing:.14em;
  text-align:center;
  white-space:nowrap;
}
.tone-dermatology .eco-visual::after{ content:"02  /  04"; }
.tone-wellness .eco-visual::after{ content:"03  /  04"; }
.tone-plastic .eco-visual::after{ content:"04  /  04"; }
.eco-section.reverse .eco-visual::after{ right:auto; left:-22px; }
.eco-visual-frame{
  border:0;
  border-radius:4px 86px 4px 4px;
  box-shadow:0 28px 64px rgba(52,44,33,.18);
}
.eco-section.reverse .eco-visual-frame{ border-radius:86px 4px 4px 4px; }
.eco-visual-frame::after{
  content:"";
  position:absolute;
  inset:12px;
  z-index:3;
  border:1px solid rgba(255,255,255,.55);
  border-radius:2px 76px 2px 2px;
  pointer-events:none;
}
.eco-section.reverse .eco-visual-frame::after{ border-radius:76px 2px 2px 2px; }
.eco-visual-media img{ transform:scale(1.02); animation:ecoKenburns 18s ease-in-out infinite alternate; }
.eco-visual-tint{
  opacity:.34;
  background:
    linear-gradient(to top,rgba(26,24,21,.3),transparent 42%),
    linear-gradient(145deg,color-mix(in srgb, var(--section-tone) 30%, transparent),transparent 60%) !important;
}

@media(max-width:1080px){
  .eco-section{ min-height:700px; padding:82px 0; }
  .eco-section-grid{ min-height:536px; }
  .eco-visual{ top:70px; bottom:70px; width:39vw; left:24px; }
  .eco-section.reverse .eco-visual{ right:24px; }
  .eco-content{ width:64%; padding:43px 38px 40px; }
  .eco-content h2{ font-size:clamp(25px,3.4vw,35px); }
}

@media(max-width:900px){
  .eco-section{
    display:flex;
    flex-direction:column;
    min-height:0;
    padding:66px 0 72px;
  }
  .eco-section::before{ display:none; }
  .eco-section-grid{
    min-height:0;
    display:flex;
    flex-direction:column;
    gap:0;
  }
  .eco-visual,
  .eco-section.reverse .eco-visual{
    position:relative;
    inset:auto;
    order:-1;
    width:min(100%,600px);
    height:auto;
    aspect-ratio:4/3;
    margin:0 auto;
  }
  .eco-visual-frame,
  .eco-section.reverse .eco-visual-frame{
    border-radius:4px 66px 4px 4px;
  }
  .eco-section.reverse .eco-visual-frame{ border-radius:66px 4px 4px 4px; }
  .eco-visual-frame::after{ border-radius:2px 58px 2px 2px; }
  .eco-section.reverse .eco-visual-frame::after{ border-radius:58px 2px 2px 2px; }
  .eco-content,
  .eco-section.reverse .eco-content{
    order:1;
    width:calc(100% - 32px);
    margin:-24px auto 0 !important;
    padding:49px 35px 34px;
    border-radius:22px;
  }
  .eco-section.reverse .eco-content::after{ left:auto; right:28px; }
  .eco-visual::before,
  .eco-section.reverse .eco-visual::before{
    inset:14px -10px -14px 10px;
  }
  .eco-section.reverse .eco-visual::before{ inset:14px 10px -14px -10px; }
  .eco-visual::after,
  .eco-section.reverse .eco-visual::after{
    top:22px;
    bottom:auto;
    left:auto;
    right:-10px;
    min-width:104px;
    padding:13px 16px;
    font-size:15px;
  }
  .eco-section.reverse .eco-visual::after{ left:-10px; right:auto; }
}

@media(max-width:640px){
  .eco-section{ padding:48px 0 56px; }
  .eco-visual,
  .eco-section.reverse .eco-visual{
    width:calc(100% - 18px);
    aspect-ratio:1/1;
  }
  .eco-content,
  .eco-section.reverse .eco-content{
    width:100%;
    padding:45px 22px 25px;
  }
  .eco-content h2{ font-size:26px; }
  .eco-content p.eco-desc{ padding-left:14px; font-size:14px; }
  .eco-links{ grid-template-columns:1fr; }
  .eco-link-card{
    min-height:0;
    display:grid;
    grid-template-columns:34px 1fr auto;
    align-items:center;
    gap:11px;
    padding:13px;
  }
  .eco-link-card .eco-link-arrow{ margin-top:0; }
  .eco-link-card .eco-link-arrow > span{ display:none; }
  .eco-link-card .eco-link-arrow svg{ width:17px; height:17px; }
  .eco-visual::after,
  .eco-section.reverse .eco-visual::after{
    right:-4px;
    font-size:14px;
  }
  .eco-section.reverse .eco-visual::after{ left:-4px; right:auto; }
}

/* ============ CATEGORY SECTIONS — IMMERSIVE SPLIT V2 ============ */
.eco-section,
.eco-section:nth-of-type(even){
  --panel-bg:#f8f5ef;
  min-height:620px;
  padding:0;
  display:block;
  isolation:isolate;
  overflow:hidden;
  background:var(--panel-bg);
  border:0;
  scroll-margin-top:96px;
}
.eco-section:nth-of-type(even){ --panel-bg:#efebe4; }
.eco-section::before{
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  width:auto;
  height:auto;
  border:0;
  border-radius:0;
  box-shadow:none;
  pointer-events:none;
  background:
    linear-gradient(90deg,transparent 49.92%,rgba(92,77,54,.14) 50%,transparent 50.08%),
    radial-gradient(circle at 76% 18%,color-mix(in srgb,var(--section-tone) 10%,transparent),transparent 24rem);
}
.eco-section.reverse::before{
  left:0;
  right:0;
  background:
    linear-gradient(90deg,transparent 49.92%,rgba(92,77,54,.14) 50%,transparent 50.08%),
    radial-gradient(circle at 24% 18%,color-mix(in srgb,var(--section-tone) 10%,transparent),transparent 24rem);
}
.eco-section::after{
  content:"PHIVARA  /  BEAUGEVITY";
  position:absolute;
  z-index:3;
  right:28px;
  bottom:24px;
  color:rgba(77,69,58,.38);
  font-family:var(--sans);
  font-size:9px;
  font-weight:600;
  letter-spacing:.24em;
  writing-mode:vertical-rl;
}
.eco-section.reverse::after{ right:auto; left:28px; }

.eco-section-grid{
  position:relative;
  z-index:2;
  min-height:620px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.eco-section.reverse .eco-section-grid{ justify-content:flex-start; }

.eco-content,
.eco-section.reverse .eco-content{
  width:calc(50% - 46px);
  max-width:540px;
  margin:0 !important;
  padding:36px 0;
  border:0;
  border-radius:0;
  background:linear-gradient(rgba(255,255,255,.72),rgba(255,255,255,.72)) left center / 36px 1px no-repeat;
  box-shadow:none;
  backdrop-filter:none;
}
.eco-content::before{
  display:none;
}
.eco-content::after{ display:none; }

.eco-tone-eyebrow{
  position:relative;
  z-index:2;
  margin-bottom:13px;
  color:var(--section-tone) !important;
  font-size:10.5px;
  letter-spacing:.28em;
}
.eco-tone-eyebrow::before{
  width:44px;
  height:1px;
  background:var(--section-tone) !important;
}
.eco-content h2{
  max-width:520px;
  margin-bottom:14px;
  color:var(--ink);
  font-size:clamp(27px,2.8vw,37px);
  font-weight:300;
  line-height:1.25;
  letter-spacing:-.025em;
}
.eco-content p.eco-desc{
  max-width:500px;
  margin-bottom:16px;
  padding:0;
  border:0;
  color:var(--ink-soft);
  font-size:14px;
  line-height:1.72;
}
.eco-chip-row{
  gap:7px;
  margin-bottom:20px;
}
.eco-chip{
  padding:6px 12px;
  border:1px solid color-mix(in srgb,var(--section-tone) 25%,var(--line));
  border-radius:3px;
  color:var(--ink-soft);
  background:rgba(255,255,255,.42);
  font-size:10.5px;
  font-weight:500;
}
.eco-chip:hover{
  transform:translateY(-2px);
  color:var(--section-tone) !important;
  border-color:var(--section-tone) !important;
  box-shadow:0 8px 18px color-mix(in srgb,var(--section-tone) 12%,transparent) !important;
}

.eco-links{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  padding:0;
  border-top:1px solid rgba(86,73,55,.18);
}
.eco-link-card{
  min-height:54px;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  padding:8px 2px;
  border:0;
  border-bottom:1px solid rgba(86,73,55,.18);
  border-radius:0;
  color:inherit;
  background:transparent;
  box-shadow:none;
  transition:padding .35s var(--ease),background .35s ease;
}
.eco-link-card .eco-link-icon{
  width:30px;
  height:30px;
  border:1px solid color-mix(in srgb,var(--section-tone) 28%,transparent);
  border-radius:50%;
  color:var(--section-tone) !important;
  background:transparent !important;
}
.eco-link-card .eco-link-label{
  color:var(--ink);
  font-size:13px;
  font-weight:500;
  line-height:1.45;
}
.eco-link-card .eco-link-arrow{
  margin:0;
  color:var(--section-tone) !important;
  font-size:9.5px;
  letter-spacing:.08em;
}
.eco-link-card:hover{
  padding-left:12px;
  padding-right:10px;
  transform:none;
  border-color:rgba(86,73,55,.18) !important;
  background:rgba(255,255,255,.5);
  box-shadow:none !important;
}

.eco-visual,
.eco-section.reverse .eco-visual{
  position:absolute;
  z-index:1;
  top:0;
  bottom:0;
  left:0;
  right:auto;
  width:50%;
  height:auto;
  margin:0;
}
.eco-section.reverse .eco-visual{
  left:auto;
  right:0;
}
.eco-visual::before{
  content:"";
  position:absolute;
  z-index:3;
  inset:0;
  border:0;
  background:
    linear-gradient(90deg,rgba(24,23,20,.18),transparent 28%,transparent 72%,rgba(24,23,20,.15)),
    linear-gradient(to top,rgba(26,24,21,.46),transparent 46%);
  box-shadow:none;
  pointer-events:none;
}
.eco-section.reverse .eco-visual::before{ inset:0; }
.eco-visual::after{
  content:"THE SCIENCE OF LONGEVITY";
  position:absolute;
  z-index:4;
  left:48px;
  right:auto;
  top:auto;
  bottom:44px;
  min-width:0;
  padding:0 0 0 52px;
  color:#fff;
  background:transparent;
  box-shadow:none;
  font-family:var(--sans);
  font-size:9.5px;
  font-style:normal;
  font-weight:500;
  letter-spacing:.25em;
  text-align:left;
}
.tone-dermatology .eco-visual::after{ content:"DERMATOLOGY, ELEVATED"; }
.tone-wellness .eco-visual::after{ content:"BEAUTY IN BALANCE"; }
.tone-plastic .eco-visual::after{ content:"FORM WITH PRECISION"; }
.eco-section.reverse .eco-visual::after{
  left:auto;
  right:48px;
  padding:0 52px 0 0;
  border-left:0;
  border-right:0;
  background:linear-gradient(rgba(255,255,255,.72),rgba(255,255,255,.72)) right center / 36px 1px no-repeat;
  text-align:right;
}
.eco-visual-frame,
.eco-section.reverse .eco-visual-frame{
  width:100%;
  height:100%;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.eco-visual-frame::after,
.eco-section.reverse .eco-visual-frame::after{ display:none; }
.eco-visual-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.02);
  animation:ecoKenburns 20s ease-in-out infinite alternate;
}
.eco-visual-tint{
  opacity:.24;
  background:linear-gradient(145deg,color-mix(in srgb,var(--section-tone) 40%,transparent),transparent 58%) !important;
}

@media(max-width:1080px){
  .eco-section,
  .eco-section:nth-of-type(even),
  .eco-section-grid{ min-height:600px; }
  .eco-content,
  .eco-section.reverse .eco-content{
    width:calc(50% - 28px);
    padding:30px 0;
  }
  .eco-content::before{ font-size:74px; margin-bottom:-8px; }
  .eco-content h2{ font-size:clamp(26px,3.2vw,34px); }
  .eco-link-card{ min-height:52px; }
}

@media(max-width:900px){
  .eco-section,
  .eco-section:nth-of-type(even){
    min-height:0;
    display:flex;
    flex-direction:column;
    padding:0;
  }
  .eco-section::before,
  .eco-section.reverse::before{ display:none; }
  .eco-section::after,
  .eco-section.reverse::after{ display:none; }
  .eco-section-grid,
  .eco-section.reverse .eco-section-grid{
    min-height:0;
    order:2;
    display:block;
  }
  .eco-content,
  .eco-section.reverse .eco-content{
    width:100%;
    max-width:none;
    margin:0 !important;
    padding:34px 24px;
  }
  .eco-content::before{
    margin:0 0 -7px;
    font-size:64px;
  }
  .eco-visual,
  .eco-section.reverse .eco-visual{
    position:relative;
    inset:auto;
    order:1;
    width:100%;
    height:auto;
    aspect-ratio:2/1;
  }
  .eco-visual::before,
  .eco-section.reverse .eco-visual::before{ inset:0; }
  .eco-visual::after,
  .eco-section.reverse .eco-visual::after{
    left:24px;
    right:auto;
    top:auto;
    bottom:24px;
    min-width:0;
    padding:0 0 0 42px;
    border-left:0;
    border-right:0;
    color:#fff;
    background:linear-gradient(rgba(255,255,255,.72),rgba(255,255,255,.72)) left center / 28px 1px no-repeat;
    box-shadow:none;
    font-size:8.5px;
    text-align:left;
  }
  .eco-visual-frame,
  .eco-section.reverse .eco-visual-frame{ border-radius:0; }
}

@media(max-width:640px){
  .eco-content,
  .eco-section.reverse .eco-content{ padding:32px 22px; }
  .eco-content::before{
    position:absolute;
    top:20px;
    right:22px;
    margin:0;
    font-size:52px;
    opacity:.7;
  }
  .eco-content h2{ font-size:25px; }
  .eco-content p.eco-desc{ font-size:13px; line-height:1.72; }
  .eco-chip-row{
    flex-wrap:nowrap;
    gap:7px;
    margin:0 -22px 18px;
    padding:0 22px 5px;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .eco-chip-row::-webkit-scrollbar{ display:none; }
  .eco-chip{ flex:0 0 auto; }
  .eco-link-card{
    min-height:52px;
    grid-template-columns:30px 1fr auto;
    padding:8px 0;
  }
  .eco-link-card .eco-link-arrow > span{ display:none; }
  .eco-link-card .eco-link-arrow svg{ width:16px; height:16px; }
}

/* ============ CATEGORY SECTIONS — CONTAINED CARDS ============ */
.eco-section,
.eco-section:nth-of-type(even){
  width:min(calc(100% - 48px),1200px);
  margin-right:auto;
  margin-bottom:0;
  margin-left:auto;
  border:0;
  border-top:1px solid rgba(92,77,54,.22);
  border-radius:0;
  box-shadow:none;
}
.eco-section#plastic{
  margin-bottom:56px;
  border-bottom:1px solid rgba(92,77,54,.22);
}
.eco-section::before{
  background:radial-gradient(circle at 80% 16%,color-mix(in srgb,var(--section-tone) 10%,transparent),transparent 22rem);
}
.eco-section.reverse::before{
  background:radial-gradient(circle at 20% 16%,color-mix(in srgb,var(--section-tone) 10%,transparent),transparent 22rem);
}
.eco-visual,
.eco-section.reverse .eco-visual{ width:46%; }
.eco-visual-frame,
.eco-section.reverse .eco-visual-frame{ border-radius:0; }

@media(max-width:900px){
  .eco-section,
  .eco-section:nth-of-type(even){
    width:calc(100% - 28px);
    margin-bottom:0;
    border-radius:0;
  }
  .eco-section#plastic{ margin-bottom:32px; }
  .eco-visual,
  .eco-section.reverse .eco-visual{ width:100%; }
  .eco-visual-frame,
  .eco-section.reverse .eco-visual-frame{ border-radius:0; }
}

/* ============ CATEGORY SECTIONS — EDITORIAL ROWS ============ */
.eco-section,
.eco-section:nth-of-type(even){
  width:min(calc(100% - 64px),1160px);
  min-height:580px;
  margin-bottom:0;
  background:transparent;
  border-top:0;
}
.eco-section#plastic{
  margin-bottom:48px;
  border-bottom:0;
}
.eco-section::before{
  display:block;
  inset:52px auto 52px 46%;
  width:1px;
  height:auto;
  border:0;
  border-radius:0;
  background:linear-gradient(to bottom,transparent,rgba(92,77,54,.2) 15%,rgba(92,77,54,.2) 85%,transparent);
  box-shadow:none;
}
.eco-section.reverse::before{
  left:54%;
  right:auto;
  background:linear-gradient(to bottom,transparent,rgba(92,77,54,.2) 15%,rgba(92,77,54,.2) 85%,transparent);
}
.eco-section::after{
  content:"";
  position:absolute;
  z-index:4;
  top:50%;
  left:calc(46% - 3px);
  right:auto;
  bottom:auto;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--section-tone);
  opacity:.65;
  writing-mode:horizontal-tb;
}
.eco-section.reverse::after{ left:calc(54% - 3px); right:auto; }
.eco-section-grid,
.eco-section.reverse .eco-section-grid{
  width:100%;
  min-height:580px;
  box-sizing:border-box;
}
.eco-content,
.eco-section.reverse .eco-content{
  width:48%;
  max-width:520px;
  padding:44px 0;
}
.eco-visual,
.eco-section.reverse .eco-visual{
  top:52px;
  bottom:52px;
  width:41%;
}
.eco-visual::before,
.eco-section.reverse .eco-visual::before{
  background:
    linear-gradient(90deg,rgba(24,23,20,.12),transparent 34%,transparent 76%,rgba(24,23,20,.09)),
    linear-gradient(to top,rgba(26,24,21,.3),transparent 42%);
}
.eco-visual::after{
  left:0;
  bottom:-29px;
  padding-left:44px;
  color:var(--ink-soft);
  background:linear-gradient(var(--section-tone),var(--section-tone)) left center / 30px 1px no-repeat;
  font-size:8.5px;
}
.eco-section.reverse .eco-visual::after{
  right:0;
  bottom:-29px;
  padding-right:44px;
  color:var(--ink-soft);
  background:linear-gradient(var(--section-tone),var(--section-tone)) right center / 30px 1px no-repeat;
}
.eco-visual-frame,
.eco-section.reverse .eco-visual-frame{
  border-radius:0;
  box-shadow:0 18px 42px rgba(55,47,36,.12);
}
.eco-content h2{ font-size:clamp(27px,2.7vw,35px); }
.eco-content h2 .eco-h2-sub{
  display:block;
  margin-top:6px;
  color:var(--ink-soft);
  font-size:.7em;
  font-weight:300;
  line-height:1.4;
  letter-spacing:0;
}

@media(max-width:900px){
  .eco-section,
  .eco-section:nth-of-type(even){
    width:calc(100% - 32px);
    min-height:0;
  }
  .eco-section#plastic{ margin-bottom:32px; }
  .eco-section::before,
  .eco-section.reverse::before,
  .eco-section::after,
  .eco-section.reverse::after{ display:none; }
  .eco-section-grid,
  .eco-section.reverse .eco-section-grid{ min-height:0; }
  .eco-visual,
  .eco-section.reverse .eco-visual{
    inset:auto;
    width:100%;
    aspect-ratio:16/9;
  }
  .eco-visual::after,
  .eco-section.reverse .eco-visual::after{
    left:18px;
    right:auto;
    bottom:17px;
    padding-left:39px;
    padding-right:0;
    color:#fff;
    background:linear-gradient(rgba(255,255,255,.72),rgba(255,255,255,.72)) left center / 26px 1px no-repeat;
    text-align:left;
  }
  .eco-visual-frame,
  .eco-section.reverse .eco-visual-frame{ box-shadow:none; }
  .eco-content,
  .eco-section.reverse .eco-content{
    width:100%;
    max-width:none;
    padding:36px 0;
  }
}

@media(min-width:901px){
  .eco-section-grid.wrap,
  .eco-section.reverse .eco-section-grid.wrap{
    padding-right:0;
    padding-left:0;
  }
  .eco-content,
  .eco-section.reverse .eco-content{
    width:48%;
  }
}

/* ============ CLOSING CTA ============ */
.eco-cta{ padding:0; background:linear-gradient(135deg,#927448,#AF8D59 52%,#876B43); color:#fff; position:relative; overflow:hidden; }
.eco-cta-inner{ padding:86px 24px; text-align:center; max-width:680px; margin:0 auto; position:relative; z-index:2; }
.eco-cta h2{ color:#fff; font-size:clamp(24px,3.2vw,34px); font-weight:300; margin-bottom:18px; }
.eco-cta p{ color:#F5EBDA; font-size:15.5px; line-height:1.9; margin-bottom:34px; font-weight:300; }
.eco-cta::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(112deg,transparent 20%,rgba(255,255,255,.12) 44%,transparent 62%);
  transform:translateX(-100%); animation:ecoCtaSweep 7s ease-in-out infinite 1.4s;
}
@keyframes ecoCtaSweep{ 0%,58%{ transform:translateX(-100%); } 82%,100%{ transform:translateX(100%); } }

/* ============ eco-visual-media FRAME — option A: inset hairline ============ */
/* Dedicated element (not ::before/::after) so it always renders regardless of
   which earlier .eco-visual-frame pseudo-element rules are active in the cascade above. */
.eco-visual-frame-inset{
  position:absolute; inset:14px; z-index:3; pointer-events:none;
  border:1px solid rgba(255,255,255,.85);
  border-radius:4px;
  box-shadow:0 0 0 1px rgba(20,17,12,.18);
}
@media(max-width:640px){ .eco-visual-frame-inset{ inset:10px; } }

/* ============ SECTION DIVIDER (same treatment as .branch-card divider on contact.html) ============ */
.eco-divider{
  position:relative;
  z-index:2;
  width:min(calc(100% - 64px),1160px);
  height:1px;
  margin:30px auto;
}
.eco-divider::after{
  position:absolute;
  right:0; left:0; top:0;
  height:1px;
  content:"";
  background:linear-gradient(90deg, transparent 0%, rgba(184,149,96,.2) 12%, rgba(184,149,96,.65) 50%, rgba(184,149,96,.2) 88%, transparent 100%);
}
.eco-divider-diamond{
  position:absolute;
  top:0; left:50%;
  z-index:2;
  width:9px; height:9px;
  transform:translate(-50%,-50%) rotate(45deg);
  border:1px solid rgba(184,149,96,.75);
  background:var(--cream,#FBFAF7);
  box-shadow:0 0 10px rgba(184,149,96,.25);
}
@media(max-width:900px){ .eco-divider{ width:calc(100% - 32px); } }
