:root{
  --ink:#0a2f24;
  --ink-2:#123e31;
  --green:#0d6a4c;
  --green-2:#2c8a66;
  --lime:#b8d832;
  --mint:#e9f4ed;
  --mist:#f5f8f4;
  --cream:#fbfaf4;
  --line:rgba(10,47,36,.13);
  --muted:#6d7e76;
  --white:#fff;
  --shadow:0 28px 80px rgba(14,63,47,.12);
  --radius:28px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--ink);font-family:'DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.55;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,textarea{font:inherit}
::selection{background:var(--lime);color:var(--ink)}
.container{width:min(1220px,calc(100% - 48px));margin:auto}
.eyebrow{font-size:.75rem;letter-spacing:.22em;text-transform:uppercase;font-weight:600;color:var(--green)}
.display{font-family:'Playfair Display',Georgia,serif;letter-spacing:-.045em;line-height:.94;font-weight:500}
.muted{color:var(--muted)}
.btn{display:inline-flex;align-items:center;gap:.75rem;padding:.9rem 1.15rem;border-radius:999px;border:1px solid var(--line);transition:background-color .25s ease,border-color .25s ease,color .25s ease,transform .25s ease;font-weight:500;cursor:pointer}
.btn.primary{background:var(--ink);color:white;border-color:var(--ink)}
.btn.primary:hover{background:var(--green);border-color:var(--green);transform:translateY(-2px)}
.btn.ghost:hover{background:white;transform:translateY(-2px)}
.icon-arrow{width:18px;height:18px;display:inline-block}

/* navigation */
.site-header{position:fixed;top:0;left:0;width:100%;z-index:50;padding:18px 0;transition:padding .3s ease,background-color .3s ease,border-color .3s ease}
.site-header.scrolled{padding:10px 0;background:rgba(251,250,244,.82);backdrop-filter:blur(18px);border-bottom:1px solid rgba(10,47,36,.08)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand img{height:43px;width:auto}
.nav-links{display:flex;align-items:center;gap:30px;font-size:.92rem}
.nav-links a{position:relative}
.nav-links a:after{content:'';position:absolute;left:0;bottom:-7px;width:0;height:1px;background:var(--green);transition:width .25s ease}
.nav-links a:hover:after,.nav-links a.active:after{width:100%}
.nav-cta{display:flex;align-items:center;gap:10px}
.menu-btn{display:none;border:0;background:transparent;padding:8px;cursor:pointer}
.menu-btn span{display:block;width:24px;height:1px;background:var(--ink);margin:6px 0}

/* home hero */
.hero{min-height:100svh;padding:150px 0 74px;display:flex;align-items:center;position:relative;isolation:isolate;background:
 radial-gradient(circle at 83% 18%,rgba(184,216,50,.22),transparent 25%),
 radial-gradient(circle at 14% 74%,rgba(13,106,76,.09),transparent 25%),
 var(--cream)}
.hero:before{content:'';position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(10,47,36,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(10,47,36,.035) 1px,transparent 1px);background-size:70px 70px;mask-image:linear-gradient(to bottom,black,transparent 75%);z-index:-2}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:72px;align-items:center}
.hero h1{font-size:clamp(4rem,8vw,8.2rem);margin:.15em 0 .2em;max-width:820px}
.hero h1 em{color:var(--green);font-weight:500}
.hero-copy{font-size:1.05rem;max-width:610px;color:#54675f;margin:0 0 30px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.hero-art{position:relative;min-height:610px;display:grid;place-items:center}
.orbit{position:absolute;border:1px solid rgba(13,106,76,.14);border-radius:50%;animation:spin 24s linear infinite}
.orbit.o1{width:560px;height:560px}
.orbit.o2{width:420px;height:420px;animation-direction:reverse;animation-duration:18s}
.orbit:before{content:'';width:9px;height:9px;border-radius:50%;background:var(--lime);position:absolute;top:13%;left:12%;box-shadow:0 0 0 10px rgba(184,216,50,.13)}
@keyframes spin{to{transform:rotate(360deg)}}
.bottle-stage{position:relative;width:min(430px,90%);border-radius:240px 240px 34px 34px;padding:30px;background:linear-gradient(150deg,rgba(255,255,255,.86),rgba(233,244,237,.6));border:1px solid rgba(255,255,255,.85);box-shadow:var(--shadow);backdrop-filter:blur(12px);overflow:hidden}
.bottle-stage:after{content:'';position:absolute;inset:auto -30% -12% -30%;height:35%;background:radial-gradient(ellipse,rgba(13,106,76,.18),transparent 66%);filter:blur(22px)}
.bottle-stage img{position:relative;z-index:2;width:100%;border-radius:210px 210px 22px 22px;mix-blend-mode:multiply}
.hero-chip{position:absolute;background:rgba(255,255,255,.88);backdrop-filter:blur(12px);border:1px solid rgba(10,47,36,.09);box-shadow:0 12px 35px rgba(10,47,36,.09);border-radius:18px;padding:12px 15px;font-size:.82rem;z-index:4}
.hero-chip strong{display:block;font-size:1.18rem;color:var(--ink);font-family:'Playfair Display',serif}
.hero-chip.depth{left:-2%;top:20%}.hero-chip.ph{right:-3%;bottom:24%}
.hero-note{display:flex;gap:16px;align-items:center;margin-top:34px;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.hero-note:before{content:'';width:42px;height:1px;background:var(--green)}

/* ticker */
.ticker{overflow:hidden;border-block:1px solid var(--line);background:white}
.ticker-track{display:flex;width:max-content;animation:ticker 28s linear infinite;padding:13px 0}
.ticker-track span{font-family:'Playfair Display',serif;font-size:1.05rem;white-space:nowrap;margin-right:54px;color:var(--ink-2)}
.ticker-track i{font-style:normal;color:var(--lime);margin-left:54px}
@keyframes ticker{to{transform:translateX(-50%)}}

section{padding:120px 0}
.section-head{display:grid;grid-template-columns:.8fr 1.2fr;gap:60px;align-items:end;margin-bottom:56px}
.section-head h2{font-size:clamp(3rem,6vw,6.5rem);margin:8px 0 0}
.section-head p{max-width:600px;margin:0 0 10px;color:var(--muted);font-size:1.02rem}

/* source */
.source-section{background:var(--ink);color:white;position:relative;overflow:hidden}
.source-section:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 80% 20%,rgba(184,216,50,.12),transparent 26%),linear-gradient(90deg,transparent 49.8%,rgba(255,255,255,.06) 50%,transparent 50.2%);pointer-events:none}
.source-section .eyebrow{color:#b9d9c7}.source-section .muted{color:#b3c2bb}
.source-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:70px;align-items:center}
.depth-visual{position:relative;min-height:680px;border:1px solid rgba(255,255,255,.14);border-radius:32px;overflow:hidden;background:#09271f}
.layer{position:absolute;left:0;right:0;border-top:1px solid rgba(255,255,255,.14);display:flex;align-items:flex-start;justify-content:space-between;padding:20px 26px;color:#b9c9c2;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase}
.layer.l1{top:15%;height:22%;background:linear-gradient(#15392f,#123128)}.layer.l2{top:37%;height:25%;background:linear-gradient(#0d2c24,#0a251e)}.layer.l3{top:62%;height:38%;background:linear-gradient(#081f1a,#061815)}
.well-line{position:absolute;left:50%;top:7%;bottom:8%;width:2px;background:linear-gradient(var(--lime),#9edcb8);box-shadow:0 0 28px rgba(184,216,50,.3)}
.well-dot{position:absolute;left:calc(50% - 8px);bottom:14%;width:18px;height:18px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 15px rgba(184,216,50,.09),0 0 0 34px rgba(184,216,50,.04)}
.depth-big{position:absolute;right:28px;bottom:28px;font-family:'Playfair Display',serif;font-size:5.4rem;line-height:1;color:white}.depth-big small{display:block;font-family:'DM Sans',sans-serif;font-size:.75rem;letter-spacing:.18em;text-transform:uppercase;color:#9fb0a8;margin-top:10px}
.source-copy h2{font-size:clamp(3.7rem,6vw,6.6rem);margin:12px 0 28px}.source-copy p{color:#bac7c1;max-width:570px;font-size:1.03rem}
.source-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:36px}.source-stat{padding:24px;border:1px solid rgba(255,255,255,.13);border-radius:20px;background:rgba(255,255,255,.03)}.source-stat strong{display:block;font-family:'Playfair Display',serif;font-size:2.35rem;color:white}.source-stat span{font-size:.82rem;color:#aabcb3}

/* minerals */
.minerals{background:linear-gradient(180deg,var(--cream),#f1f7f2)}
.mineral-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:24px}
.mineral-main{min-height:560px;border-radius:32px;background:#eef4ef;position:relative;overflow:hidden;border:1px solid var(--line);padding:48px}
.mineral-main:before{content:'';position:absolute;width:520px;height:520px;border-radius:50%;border:1px solid rgba(13,106,76,.12);right:-90px;top:20px;box-shadow:0 0 0 70px rgba(13,106,76,.035),0 0 0 145px rgba(13,106,76,.022);pointer-events:none;z-index:0}
.mineral-value{font-family:'Playfair Display',serif;font-size:clamp(5rem,10vw,9rem);line-height:.85;color:var(--green);position:relative;z-index:2}.mineral-value small{font-family:'DM Sans',sans-serif;font-size:1rem;letter-spacing:.1em;color:var(--muted)}
.mineral-main h3{font-size:2.1rem;margin:34px 0 10px;position:relative}.mineral-main p{max-width:470px;color:var(--muted);position:relative}
.mineral-side{display:grid;grid-template-columns:1fr 1fr;gap:14px}.mineral-card{border-radius:24px;padding:25px;background:white;border:1px solid var(--line);min-height:160px;display:flex;flex-direction:column;justify-content:space-between;transition:transform .25s ease,box-shadow .25s ease}.mineral-card:hover{transform:translateY(-4px);box-shadow:0 16px 35px rgba(10,47,36,.07)}.mineral-card strong{font-family:'Playfair Display',serif;font-size:2.2rem}.mineral-card span{font-size:.78rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}

/* product range */
.products-section{background:white}
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.product-card{border-radius:32px;overflow:hidden;background:var(--mist);border:1px solid var(--line);position:relative;min-height:620px;display:flex;flex-direction:column}
.product-image{height:450px;overflow:hidden;background:linear-gradient(150deg,#fff,#eaf1db)}
.product-image img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.2,.75,.25,1);mix-blend-mode:multiply}.product-card:hover .product-image img{transform:scale(1.03)}
.product-meta{padding:26px;display:flex;align-items:end;justify-content:space-between;gap:20px}.product-meta h3{font-family:'Playfair Display',serif;font-size:2.1rem;margin:0 0 3px}.product-meta p{margin:0;color:var(--muted);font-size:.85rem}.product-index{font-size:.76rem;letter-spacing:.15em;color:var(--green)}

/* factory */
.factory-section{padding:0;background:white}
.factory-wrap{min-height:780px;position:relative;display:flex;align-items:end;overflow:hidden}
.factory-wrap img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.factory-wrap:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,24,19,.08),rgba(6,24,19,.8))}
.factory-copy{position:relative;z-index:2;color:white;padding:70px 0;width:100%}.factory-copy .eyebrow{color:#d5e5d8}.factory-copy h2{font-size:clamp(3.2rem,7vw,7rem);max-width:840px;margin:10px 0 18px}.factory-copy p{max-width:620px;color:#d8e0dc}.factory-pills{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}.factory-pills span{padding:10px 14px;border:1px solid rgba(255,255,255,.25);border-radius:999px;font-size:.8rem;background:rgba(255,255,255,.07);backdrop-filter:blur(12px)}

/* quality */
.quality-section{background:#eef4ef}.quality-grid{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line);margin-top:52px}.quality-card{padding:34px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:rgba(255,255,255,.36);min-height:210px}.quality-card .num{font-family:'Playfair Display',serif;font-size:3rem}.quality-card h3{font-size:1rem;margin:20px 0 8px}.quality-card p{font-size:.86rem;color:var(--muted);margin:0}
.cert-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}.cert-row span{padding:10px 15px;border-radius:999px;background:white;border:1px solid var(--line);font-size:.82rem;font-weight:500}

/* brand statement */
.statement{background:var(--cream);padding:140px 0;text-align:center}.statement .display{font-size:clamp(3.2rem,7vw,7.5rem);max-width:1040px;margin:12px auto 30px}.statement .display em{color:var(--green)}

/* contact */
.contact-section{background:var(--ink);color:white}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px}.contact-section h2{font-size:clamp(3.5rem,6vw,6.4rem);margin:10px 0 20px}.contact-section p{color:#b8c7c0}.contact-list{display:grid;gap:12px;margin-top:34px}.contact-item{border-top:1px solid rgba(255,255,255,.14);padding-top:15px;display:flex;justify-content:space-between;gap:25px;font-size:.9rem}.contact-item span{color:#8ca398}.contact-item a:hover{color:var(--lime)}
.form-card{background:white;color:var(--ink);border-radius:30px;padding:34px}.form-card h3{font-family:'Playfair Display',serif;font-size:2.2rem;margin:0 0 24px}.form-grid{display:grid;gap:14px}.form-grid input,.form-grid textarea{width:100%;border:1px solid rgba(10,47,36,.14);border-radius:14px;padding:14px 15px;background:#fbfcfa;outline:none}.form-grid input:focus,.form-grid textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(13,106,76,.08)}.form-grid textarea{min-height:120px;resize:vertical}.form-status{font-size:.82rem;color:var(--green);display:none}

/* inner pages */
.page-hero{padding:175px 0 90px;background:radial-gradient(circle at 82% 20%,rgba(184,216,50,.16),transparent 24%),var(--cream);border-bottom:1px solid var(--line)}
.page-hero h1{font-size:clamp(4rem,8vw,8rem);margin:10px 0 20px;max-width:980px}.page-hero p{max-width:720px;color:var(--muted);font-size:1.08rem}
.editorial-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px;align-items:stretch}.editorial-card{border-radius:30px;border:1px solid var(--line);overflow:hidden;background:white}.editorial-card.pad{padding:42px}.editorial-card img{width:100%;height:100%;object-fit:cover;min-height:480px}.editorial-card h2{font-family:'Playfair Display',serif;font-size:3.2rem;line-height:1.02;margin:12px 0 18px}.editorial-card p{color:var(--muted)}
.data-table{width:100%;border-collapse:collapse;background:white;border:1px solid var(--line);border-radius:20px;overflow:hidden}.data-table th,.data-table td{padding:15px 18px;text-align:left;border-bottom:1px solid var(--line)}.data-table th{font-size:.76rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:600}.data-table tr:last-child td{border-bottom:0}.data-table td:last-child{text-align:right;font-weight:600}
.timeline{position:relative;padding-left:28px}.timeline:before{content:'';position:absolute;left:5px;top:4px;bottom:4px;width:1px;background:var(--line)}.timeline-item{position:relative;margin-bottom:30px}.timeline-item:before{content:'';position:absolute;left:-28px;top:8px;width:11px;height:11px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 6px rgba(184,216,50,.15)}.timeline-item h3{margin:0 0 7px;font-family:'Playfair Display',serif;font-size:1.65rem}.timeline-item p{margin:0;color:var(--muted)}

/* footer */
footer{background:#061c16;color:#c2d0ca;padding:58px 0 30px}.footer-grid{display:grid;grid-template-columns:minmax(270px,1.35fr) minmax(140px,.72fr) minmax(160px,.78fr) minmax(285px,1.18fr);grid-template-areas:"brand discover company contact";gap:clamp(34px,4.2vw,66px);align-items:start}.footer-brand{grid-area:brand}.footer-discover{grid-area:discover}.footer-company{grid-area:company}.footer-contact{grid-area:contact}.footer-brand img{height:48px;filter:brightness(0) invert(1);opacity:.96}.footer-brand p{max-width:360px;margin:15px 0 0;color:#8fa49b;font-size:.88rem;line-height:1.65}.footer-col h4{color:#fff;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;margin:3px 0 17px}.footer-col>a{display:block;color:#a3b4ac;margin:9px 0;font-size:.88rem;line-height:1.5;transition:color .2s ease}.footer-col>a:hover{color:#fff}.footer-contact h4{margin-bottom:16px}.footer-contact-block{padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.09)}.footer-meta-label{display:block;margin-bottom:8px;color:#7f978c;font-size:.68rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase}.footer-contact address{margin:0;color:#b3c2bb;font-size:.82rem;font-style:normal;line-height:1.62}.footer-contact-links{display:grid;gap:0;margin-top:10px}.footer-contact-links a{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:baseline;gap:10px;margin:0;padding:6px 0;color:#a3b4ac;font-size:.8rem}.footer-contact-links a span{color:#728a7f;font-size:.68rem;letter-spacing:.07em;text-transform:uppercase}.footer-contact-links a strong{font-weight:500;overflow-wrap:anywhere}.footer-contact-links a:hover strong{color:#fff}.footer-follow{margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.09)}.footer-follow .footer-meta-label{margin-bottom:9px}.footer-social-links{display:flex;flex-wrap:wrap;gap:16px}.footer-social-links a{color:#a3b4ac;font-size:.82rem}.footer-social-links a:hover{color:#fff}.footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:46px;padding-top:22px;display:flex;justify-content:space-between;gap:20px;color:#6f887c;font-size:.78rem}
@media (max-width:1120px){.footer-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-areas:"brand contact" "discover company";column-gap:46px;row-gap:36px}}

.reveal{opacity:1;transform:none}
.js-reveal .reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s ease}
.js-reveal .reveal.in{opacity:1;transform:none}

@media (max-width:980px){
 .container{width:min(100% - 34px,900px)}
 .nav-links{position:fixed;inset:74px 16px auto 16px;background:rgba(251,250,244,.97);backdrop-filter:blur(18px);border:1px solid var(--line);border-radius:22px;padding:22px;flex-direction:column;align-items:flex-start;transform:translateY(-15px);opacity:0;pointer-events:none;transition:opacity .25s ease,transform .25s ease;box-shadow:var(--shadow)}
 .nav-links.open{opacity:1;transform:none;pointer-events:auto}.menu-btn{display:block}.nav-cta .btn{display:none}
 .hero-grid,.source-grid,.mineral-grid,.contact-grid,.section-head,.editorial-grid{grid-template-columns:1fr}.hero-art{min-height:540px;margin-top:10px}.hero h1{font-size:clamp(3.6rem,13vw,6.8rem)}
 .section-head{gap:20px}.mineral-main{min-height:470px}.product-grid{grid-template-columns:1fr 1fr}.quality-grid{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-areas:"brand contact" "discover company";column-gap:46px;row-gap:36px}
}
@media (max-width:640px){
 .container{width:min(100% - 24px,600px)}
 .brand img{height:36px}.site-header{padding:12px 0}.hero{padding-top:115px}.hero-grid{gap:20px}.hero h1{font-size:3.9rem}.hero-copy{font-size:.96rem}.hero-art{min-height:450px}.orbit.o1{width:430px;height:430px}.orbit.o2{width:330px;height:330px}.bottle-stage{width:330px;padding:20px}.hero-chip.depth{left:0;top:16%}.hero-chip.ph{right:0;bottom:16%}
 section{padding:82px 0}.source-section{padding:90px 0}.depth-visual{min-height:530px}.depth-big{font-size:4rem}.source-copy h2{font-size:3.5rem}.source-stats{grid-template-columns:1fr 1fr}.mineral-main{padding:28px;min-height:430px}.mineral-value{font-size:5.7rem}.mineral-side{grid-template-columns:1fr 1fr}.mineral-card{padding:20px}.mineral-card strong{font-size:1.85rem}.product-grid{grid-template-columns:1fr}.product-card{min-height:auto}.quality-grid{grid-template-columns:1fr}.factory-wrap{min-height:680px}.footer-grid{grid-template-columns:1fr}.footer-bottom{flex-direction:column}.contact-item{flex-direction:column;gap:4px}.page-hero{padding:135px 0 70px}.page-hero h1{font-size:4rem}.editorial-card.pad{padding:28px}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}.reveal,.js-reveal .reveal{opacity:1;transform:none}}

/* DEVIDA HQ Google Maps CTA */
.map-cta-section { padding-top: 1rem; }
.map-cta-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem,4vw,3rem);
  border: 1px solid rgba(10,47,36,.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 20%, rgba(189,220,84,.18), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(242,247,237,.96));
  box-shadow: 0 24px 70px rgba(10,47,36,.08);
}
.map-cta-copy h2 { margin: .45rem 0 .75rem; }
.map-cta-copy p { margin: 0; max-width: 56ch; }

.contact-address address{font-style:normal;text-align:right;line-height:1.55;max-width:360px;font-weight:600}
.hq-address-panel{margin-top:1.15rem;padding-top:1rem;border-top:1px solid rgba(10,47,36,.12)}
.hq-address-panel span{display:block;margin-bottom:.4rem;font-size:.72rem;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);font-weight:700}
.hq-address-panel address{font-style:normal;line-height:1.6;color:var(--ink);font-weight:650}
.map-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .8rem;
}
@media (max-width: 780px) {
  .map-cta-card { grid-template-columns: 1fr; }
  .map-cta-actions { justify-content: flex-start; }
  .map-cta-actions .btn { width: 100%; justify-content: center; }
  .contact-address address{max-width:none;text-align:left;}
}

/* Keep all content and links above the decorative mineral circle */
.mineral-main > * { position: relative; z-index: 2; }
.mineral-main .btn { position: relative; z-index: 3; pointer-events: auto; touch-action: manipulation; }


/* Language switcher */
.language-switcher{
  display:flex;align-items:center;gap:3px;padding:3px;
  border:1px solid var(--line);border-radius:999px;
  background:rgba(255,255,255,.72);backdrop-filter:blur(12px)
}
.language-switcher button{
  border:0;background:transparent;color:var(--muted);cursor:pointer;
  min-width:32px;height:30px;padding:0 8px;border-radius:999px;
  font-size:.72rem;font-weight:600;letter-spacing:.02em;transition:.2s ease
}
.language-switcher button:hover{color:var(--ink)}
.language-switcher button.active{background:var(--ink);color:white}


/* FAQ */
.faq-section{
  background:linear-gradient(180deg,#f4f7f2 0%,#fbfaf4 100%);
  border-top:1px solid var(--line)
}
.faq-list{
  margin-top:48px;border-top:1px solid var(--line)
}
.faq-item{
  border-bottom:1px solid var(--line);background:transparent
}
.faq-item summary{
  list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;
  gap:24px;padding:25px 4px;font-family:'Playfair Display',serif;
  font-size:clamp(1.25rem,2.2vw,1.8rem);line-height:1.2;color:var(--ink)
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-plus{
  width:34px;height:34px;border-radius:50%;border:1px solid var(--line);
  display:grid;place-items:center;flex:0 0 auto;font-family:'DM Sans',sans-serif;
  font-size:1.25rem;font-weight:300;transition:.25s ease
}
.faq-item[open] .faq-plus{transform:rotate(45deg);background:var(--ink);color:white}
.faq-answer{padding:0 58px 25px 4px}
.faq-answer p{margin:0;max-width:850px;color:var(--muted);font-size:1rem}
.faq-more{margin-top:30px}
.faq-page-section{padding-top:70px}
.faq-list-wide{max-width:980px;margin-inline:auto}
.faq-contact{
  margin:70px auto 0;max-width:980px;padding:32px;border-radius:28px;background:white;
  border:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:28px
}
.faq-contact h2{font-family:'Playfair Display',serif;font-size:clamp(1.8rem,3vw,2.7rem);margin:7px 0 0}

@media (max-width:980px){
  .nav{gap:10px}
  .nav-cta{gap:6px}
  .language-switcher button{min-width:29px;padding:0 6px;font-size:.67rem}
}
@media (max-width:640px){
  .language-switcher{padding:2px;gap:1px}
  .language-switcher button{min-width:27px;height:28px;padding:0 5px;font-size:.62rem}
  .faq-list{margin-top:30px}
  .faq-item summary{padding:21px 2px;font-size:1.25rem}
  .faq-answer{padding:0 42px 22px 2px}
  .faq-contact{flex-direction:column;align-items:flex-start;padding:25px}
}


/* Refined Simplified Chinese typography for Malaysian Chinese readers */
html[lang="zh-Hans-MY"] body{
  font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei','Noto Sans CJK SC','Source Han Sans SC',sans-serif;
  line-height:1.72;
}
html[lang="zh-Hans-MY"] .display,
html[lang="zh-Hans-MY"] .hero h1,
html[lang="zh-Hans-MY"] .source-copy h2,
html[lang="zh-Hans-MY"] .contact-section h2,
html[lang="zh-Hans-MY"] .editorial-card h2,
html[lang="zh-Hans-MY"] .faq-item summary,
html[lang="zh-Hans-MY"] .faq-contact h2{
  font-family:'Songti SC','STSong','Noto Serif CJK SC','Source Han Serif SC',serif;
  letter-spacing:-.015em;
  line-height:1.08;
  font-weight:600;
}
html[lang="zh-Hans-MY"] .eyebrow,
html[lang="zh-Hans-MY"] .hero-note,
html[lang="zh-Hans-MY"] .mineral-card span,
html[lang="zh-Hans-MY"] .footer-col h4{
  letter-spacing:.08em;
  text-transform:none;
}
html[lang="zh-Hans-MY"] .hero-copy,
html[lang="zh-Hans-MY"] .section-head p,
html[lang="zh-Hans-MY"] .page-hero p,
html[lang="zh-Hans-MY"] .faq-answer p{
  line-height:1.82;
}


/* Why DEVIDA — mineral signature + Malaysian lifestyle */
.why-devida-section{position:relative;overflow:hidden;padding:110px 0;background:linear-gradient(180deg,#fbfaf4 0%,#f0f5ed 100%);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.why-devida-intro{max-width:1040px;margin-bottom:54px}.why-devida-intro .display{max-width:920px;margin:12px 0 24px}.why-lead{max-width:820px;font-size:1.08rem;line-height:1.78;color:var(--muted)}
.signature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.signature-card{min-height:330px;padding:28px;border:1px solid var(--line);border-radius:24px;background:rgba(255,255,255,.8);display:flex;flex-direction:column}
.signature-card-primary{background:var(--ink);color:white;border-color:transparent}.signature-card-primary p,.signature-card-primary .signature-kicker{color:rgba(255,255,255,.7)}
.signature-kicker{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.13em;color:var(--muted)}
.signature-number{margin-top:34px;font-family:'Playfair Display',serif;font-size:clamp(2.9rem,5vw,4.7rem);line-height:.95;letter-spacing:-.055em}
.signature-number small{font-family:'DM Sans',sans-serif;font-size:.85rem;letter-spacing:0}.signature-card h3{font-size:1.28rem;margin:18px 0 10px}.signature-card p{margin:auto 0 0;color:var(--muted);font-size:.9rem;line-height:1.6}
.ratio-visual{display:flex;align-items:center;gap:10px;margin-top:31px;font-family:'Playfair Display',serif;line-height:.9}.ratio-visual strong{font-size:clamp(3.7rem,6vw,5.6rem);font-weight:500}.ratio-visual span{font-size:2.6rem;color:var(--green)}
.ratio-card{border-color:rgba(13,106,76,.22);background:rgba(236,246,235,.95)}
.malaysia-life{margin-top:18px;padding:46px;border-radius:30px;background:#0b3428;color:white;display:grid;grid-template-columns:.9fr 1.1fr;gap:58px;align-items:center}
.malaysia-life .eyebrow{color:#acd7ad}.malaysia-life-copy h3{font-family:'Playfair Display',serif;font-size:clamp(2rem,4vw,3.7rem);line-height:1.03;margin:12px 0 20px}.malaysia-life-copy p{color:rgba(255,255,255,.7);line-height:1.75}.malaysia-life-copy .btn{margin-top:20px;color:white;border-color:rgba(255,255,255,.26)}
.malaysia-life-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.12)}
.life-point{min-height:180px;padding:24px;background:#0b3428;display:flex;gap:18px}.life-point>span{font-size:.68rem;letter-spacing:.12em;color:#acd7ad;font-weight:700}.life-point h4{margin:0 0 9px;font-size:1rem}.life-point p{margin:0;color:rgba(255,255,255,.62);font-size:.85rem;line-height:1.58}
.mineral-note{margin:20px 0 0;font-size:.72rem;line-height:1.6;color:var(--muted);max-width:940px}
@media(max-width:1050px){.signature-grid{grid-template-columns:1fr 1fr}.malaysia-life{grid-template-columns:1fr;gap:35px}}
@media(max-width:640px){.why-devida-section{padding:78px 0}.signature-grid{grid-template-columns:1fr}.signature-card{min-height:280px}.malaysia-life{padding:27px;border-radius:23px}.malaysia-life-grid{grid-template-columns:1fr}.life-point{min-height:142px}}


/* Mineral profile signature ratio */
.mineral-balance-section{padding:100px 0;background:#edf3ea;border-top:1px solid var(--line)}
.balance-layout{display:grid;grid-template-columns:.88fr 1.12fr;gap:18px;align-items:stretch}
.balance-hero{padding:46px;border-radius:28px;background:var(--ink);color:white}
.balance-hero .eyebrow{color:#acd7ad}.balance-hero .display{margin:14px 0 20px}.balance-hero p{color:rgba(255,255,255,.7);line-height:1.72}
.balance-ratio{display:flex;align-items:center;gap:12px;margin:38px 0 10px;font-family:'Playfair Display',serif}.balance-ratio strong{font-size:clamp(4.3rem,9vw,7.8rem);line-height:.8;font-weight:500}.balance-ratio span{font-size:3.2rem;color:#acd7ad}
.balance-points{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.balance-point{padding:27px;border-radius:22px;background:white;border:1px solid var(--line);display:flex;gap:18px;align-items:flex-start}
.balance-point>span{font-family:'Playfair Display',serif;font-size:2.15rem;line-height:1;color:var(--green);min-width:82px}.balance-point h3{margin:0 0 8px;font-size:.96rem}.balance-point p{margin:0;color:var(--muted);font-size:.84rem;line-height:1.58}
@media(max-width:900px){.balance-layout{grid-template-columns:1fr}.balance-points{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.mineral-balance-section{padding:72px 0}.balance-hero{padding:28px}.balance-points{grid-template-columns:1fr}}

/* 2026-08 responsive QA refinements */
/* Match Why DEVIDA typography to the rest of the site's editorial hierarchy. */
.why-devida-intro{max-width:1100px}
.why-devida-intro .display{max-width:980px}
.why-lead{max-width:860px;font-size:1.02rem;line-height:1.72}
.signature-kicker{font-size:.75rem;line-height:1.45}
.signature-number small{font-size:.95rem}
.signature-card h3{font-size:1.4rem;line-height:1.2}
.signature-card p{font-size:1rem;line-height:1.68}
.malaysia-life-copy p{font-size:1.02rem;line-height:1.72}
.life-point h4{font-size:1.08rem;line-height:1.25}
.life-point p{font-size:.96rem;line-height:1.62}
.mineral-note{font-size:.86rem;line-height:1.65}

/* Collapse the full desktop navigation before labels begin wrapping on tablets/small laptops. */
@media (max-width:1100px){
  .nav{gap:10px}
  .nav-links{position:fixed;inset:74px 16px auto 16px;max-height:calc(100dvh - 90px);overflow-y:auto;overscroll-behavior:contain;background:rgba(251,250,244,.97);backdrop-filter:blur(18px);border:1px solid var(--line);border-radius:22px;padding:22px;flex-direction:column;align-items:flex-start;gap:22px;transform:translateY(-15px);opacity:0;pointer-events:none;transition:opacity .25s ease,transform .25s ease;box-shadow:var(--shadow)}
  .nav-links.open{opacity:1;transform:none;pointer-events:auto}
  .menu-btn{display:block}
  .nav-cta .btn{display:none}
  .hero-chip.depth{left:1%}
  .hero-chip.ph{right:1%}
}

/* Keep approved hero/product composition fully inside narrow viewports. */
@media (max-width:640px){
  .hero{overflow:hidden}
  .hero h1{font-size:clamp(3.15rem,16vw,3.9rem)}
  .hero-art{width:100%;min-width:0;overflow:visible}
  .bottle-stage{width:min(330px,100%);max-width:100%}
  .orbit.o1{width:min(430px,132vw);height:min(430px,132vw)}
  .orbit.o2{width:min(330px,104vw);height:min(330px,104vw)}
  .hero-chip{max-width:46%;padding:10px 12px;font-size:.76rem}
  .hero-chip strong{font-size:1.05rem}
  .hero-chip.depth{left:4px}
  .hero-chip.ph{right:4px}
  .page-hero h1{font-size:clamp(3rem,15vw,4rem);overflow-wrap:anywhere}
  .why-devida-section .display{font-size:clamp(2.95rem,14vw,4.1rem)}
  .why-lead{font-size:1rem;line-height:1.7}
  .signature-card{padding:26px;min-height:300px}
  .signature-card p{font-size:1rem}
  .malaysia-life-copy p{font-size:1rem}
  .life-point p{font-size:.96rem}
}

/* Extra-small phones: prevent the 330px stage and long UI labels from silently clipping. */
@media (max-width:360px){
  .container{width:calc(100% - 22px)}
  .hero h1{font-size:clamp(2.9rem,16vw,3.35rem)}
  .hero-art{min-height:420px}
  .bottle-stage{width:100%;padding:17px}
  .hero-chip{max-width:48%;font-size:.72rem}
  .hero-chip strong{font-size:.98rem}
  .language-switcher button{min-width:25px;padding:0 4px}
  .faq-item summary{font-size:1.18rem}
}

/* Landscape phones need a scrollable navigation panel rather than clipped menu items. */
@media (max-width:900px) and (max-height:500px){
  .nav-links{inset:62px 12px 10px 12px;max-height:calc(100dvh - 72px);padding:16px 20px;gap:15px;border-radius:18px}
  .nav-links a{padding:2px 0}
}

/* 2026-08 mobile footer correction */
.footer-brand img{
  width:min(190px,100%);
  height:auto;
  aspect-ratio:520/207;
  object-fit:contain;
  object-position:left center;
}
@media (max-width:640px){
  footer{padding:38px 0 24px}
  footer .container{width:calc(100% - 32px)}
  .footer-grid{grid-template-columns:1fr;grid-template-areas:"brand" "contact" "discover" "company";gap:30px}
  .footer-brand{margin:0;padding:0}
  .footer-brand img{width:150px;height:auto;margin:0 0 14px}
  .footer-brand p{max-width:100%;margin:0;font-size:.92rem;line-height:1.62}.footer-contact-block{padding-bottom:14px}.footer-contact address{font-size:.88rem;line-height:1.58}.footer-contact-links a{grid-template-columns:54px minmax(0,1fr);padding:5px 0;font-size:.86rem}.footer-social-links{gap:18px}
  .footer-col{margin:0;padding:0}
  .footer-col h4{margin:0 0 12px;font-size:.78rem;line-height:1.3}
  .footer-col a{margin:0;padding:6px 0;font-size:.94rem;line-height:1.45}
  .footer-bottom{margin-top:30px;padding-top:18px;gap:8px;font-size:.75rem;line-height:1.55}
}
@media (max-width:360px){
  footer{padding-top:32px}
  footer .container{width:calc(100% - 28px)}
  .footer-grid{gap:26px}
  .footer-brand img{width:140px}
}

/* Final mobile contact/footer refinement */
@media (max-width:640px){
  .contact-section{padding-bottom:54px}
  .contact-grid{gap:34px}
  .form-card{padding:26px 20px;border-radius:26px}
  .form-card h3{font-size:1.9rem;margin-bottom:20px}
  .form-grid{gap:12px}
  .form-grid input,.form-grid textarea{font-size:16px}
  .form-grid textarea{min-height:116px}
  .form-status{font-size:.86rem;line-height:1.5}
  footer{padding:30px 0 22px}
  .footer-grid{gap:24px}
  .footer-contact{padding-bottom:4px}
  .footer-discover,.footer-company{padding-top:2px}
  .footer-brand img{width:124px;margin-bottom:10px}
  .footer-brand p{font-size:.86rem;line-height:1.52}
  .footer-col h4{margin-bottom:8px}
  .footer-col a{padding:4px 0;font-size:.9rem}
  .footer-bottom{margin-top:24px;padding-top:16px}
}
@media (max-width:360px){
  .footer-brand img{width:116px}
}

/* Final compact mobile contact form */
@media (max-width:640px){
  .lang-switch button,.lang-switch a{white-space:nowrap}
  .form-card{
    padding:24px 20px 22px;
    border-radius:26px;
  }
  .form-card h3{
    font-size:clamp(1.72rem,8vw,2.05rem);
    line-height:1.08;
    margin:0 0 18px;
  }
  .form-grid{gap:11px}
  .form-grid input{
    min-height:0;
    height:58px;
    padding:0 16px;
    border-radius:16px;
  }
  .form-grid textarea{
    min-height:108px;
    height:108px;
    padding:16px;
    border-radius:16px;
    resize:vertical;
  }
  .form-grid button,.form-card button[type="submit"]{
    min-height:0;
    height:58px;
    padding:0 20px;
    border-radius:999px;
    font-size:1rem;
  }
  .form-status{
    margin-top:12px;
    font-size:.84rem;
    line-height:1.45;
  }
}
@media (max-width:390px){
  .form-card{padding:22px 17px 20px}
  .form-card h3{font-size:1.72rem;margin-bottom:16px}
  .form-grid input{height:54px}
  .form-grid textarea{height:100px;min-height:100px}
  .form-grid button,.form-card button[type="submit"]{height:54px}
}
@media (max-width:340px){
  .form-card h3{font-size:1.58rem}
  .form-grid input{height:52px}
  .form-grid textarea{height:94px;min-height:94px}
  .form-grid button,.form-card button[type="submit"]{height:52px}
}

/* Chinese mobile hero refinement — English/BM unaffected */
@media (max-width:640px){
  html[lang="zh"] .hero h1,
  html[lang="zh-CN"] .hero h1,
  body.lang-zh .hero h1{
    font-size:clamp(3.05rem,13.5vw,3.75rem);
    line-height:.98;
    letter-spacing:-.045em;
    font-weight:650;
    text-wrap:balance;
    max-width:100%;
  }
  html[lang="zh"] .hero .eyebrow,
  html[lang="zh-CN"] .hero .eyebrow,
  body.lang-zh .hero .eyebrow{
    letter-spacing:.09em;
    font-size:.76rem;
  }
  html[lang="zh"] .hero .lead,
  html[lang="zh-CN"] .hero .lead,
  body.lang-zh .hero .lead{
    font-size:1rem;
    line-height:1.72;
    letter-spacing:.015em;
  }
}
@media (max-width:390px){
  html[lang="zh"] .hero h1,
  html[lang="zh-CN"] .hero h1,
  body.lang-zh .hero h1{
    font-size:clamp(2.75rem,13vw,3.2rem);
    line-height:1;
  }
}
@media (max-width:340px){
  html[lang="zh"] .hero h1,
  html[lang="zh-CN"] .hero h1,
  body.lang-zh .hero h1{
    font-size:2.6rem;
  }
}

/* Site-wide Chinese mobile typography normalization */
@media (max-width:640px){
  html[lang="zh"] h1, html[lang="zh"] h2,
  html[lang="zh-CN"] h1, html[lang="zh-CN"] h2,
  body.lang-zh h1, body.lang-zh h2{
    overflow-wrap:break-word;
    word-break:keep-all;
    text-wrap:balance;
    max-width:100%;
  }

  html[lang="zh"] h1, html[lang="zh-CN"] h1, body.lang-zh h1{
    font-size:clamp(2.75rem,12.5vw,3.55rem);
    line-height:1.02;
    letter-spacing:-.04em;
    font-weight:650;
  }
  html[lang="zh"] h2, html[lang="zh-CN"] h2, body.lang-zh h2{
    font-size:clamp(2.25rem,10vw,3rem);
    line-height:1.08;
    letter-spacing:-.035em;
    font-weight:650;
  }

  html[lang="zh"] .display, html[lang="zh"] .section-title,
  html[lang="zh-CN"] .display, html[lang="zh-CN"] .section-title,
  body.lang-zh .display, body.lang-zh .section-title{
    font-size:clamp(2.25rem,10vw,3rem);
    line-height:1.08;
    letter-spacing:-.035em;
    max-width:100%;
  }

  html[lang="zh"] .dark-section h2,
  html[lang="zh-CN"] .dark-section h2,
  body.lang-zh .dark-section h2{
    font-size:clamp(2.15rem,9.6vw,2.85rem);
    line-height:1.08;
  }

  html[lang="zh"] p, html[lang="zh-CN"] p, body.lang-zh p{
    overflow-wrap:anywhere;
  }
}
@media (max-width:390px){
  html[lang="zh"] h1, html[lang="zh-CN"] h1, body.lang-zh h1{
    font-size:clamp(2.55rem,12vw,3rem);
  }
  html[lang="zh"] h2, html[lang="zh-CN"] h2, body.lang-zh h2,
  html[lang="zh"] .display, html[lang="zh-CN"] .display, body.lang-zh .display,
  html[lang="zh"] .section-title, html[lang="zh-CN"] .section-title, body.lang-zh .section-title{
    font-size:clamp(2.05rem,9.7vw,2.55rem);
  }
}
@media (max-width:340px){
  html[lang="zh"] h1, html[lang="zh-CN"] h1, body.lang-zh h1{font-size:2.4rem}
  html[lang="zh"] h2, html[lang="zh-CN"] h2, body.lang-zh h2,
  html[lang="zh"] .display, html[lang="zh-CN"] .display, body.lang-zh .display,
  html[lang="zh"] .section-title, html[lang="zh-CN"] .section-title, body.lang-zh .section-title{
    font-size:1.95rem;
  }
}

/* Formal BM: site-wide mobile typography refinement */
@media (max-width:640px){
  html[lang="ms"] h1, html[lang="ms"] h2, body.lang-ms h1, body.lang-ms h2{
    max-width:100%;
    overflow-wrap:break-word;
    text-wrap:balance;
  }
  html[lang="ms"] h1, body.lang-ms h1{
    font-size:clamp(2.65rem,11.5vw,3.45rem);
    line-height:1.01;
    letter-spacing:-.045em;
  }
  html[lang="ms"] h2, body.lang-ms h2,
  html[lang="ms"] .display, body.lang-ms .display,
  html[lang="ms"] .section-title, body.lang-ms .section-title{
    font-size:clamp(2.2rem,9.5vw,2.9rem);
    line-height:1.07;
    letter-spacing:-.035em;
  }
  html[lang="ms"] p, body.lang-ms p{
    line-height:1.62;
  }
  html[lang="ms"] .dark-section h2, body.lang-ms .dark-section h2{
    font-size:clamp(2.1rem,9vw,2.7rem);
    line-height:1.07;
  }
}
@media (max-width:390px){
  html[lang="ms"] h1, body.lang-ms h1{font-size:clamp(2.45rem,11vw,2.9rem)}
  html[lang="ms"] h2, body.lang-ms h2,
  html[lang="ms"] .display, body.lang-ms .display,
  html[lang="ms"] .section-title, body.lang-ms .section-title{
    font-size:clamp(2rem,9vw,2.45rem);
  }
}
@media (max-width:340px){
  html[lang="ms"] h1, body.lang-ms h1{font-size:2.3rem}
  html[lang="ms"] h2, body.lang-ms h2,
  html[lang="ms"] .display, body.lang-ms .display,
  html[lang="ms"] .section-title, body.lang-ms .section-title{font-size:1.9rem}
}

/* Final BM mobile refinement */
@media (max-width:640px){
  html[lang="ms"] .malaysia-life-copy h3,
  body.lang-ms .malaysia-life-copy h3,
  html[lang="ms"] .dark-section h2,
  body.lang-ms .dark-section h2{
    font-size:clamp(1.95rem,8.4vw,2.5rem);
    line-height:1.08;
    letter-spacing:-.03em;
    text-wrap:balance;
  }
  html[lang="ms"] .malaysia-life-copy p,
  body.lang-ms .malaysia-life-copy p{
    line-height:1.58;
  }
}
@media (max-width:390px){
  html[lang="ms"] .malaysia-life-copy h3,
  body.lang-ms .malaysia-life-copy h3,
  html[lang="ms"] .dark-section h2,
  body.lang-ms .dark-section h2{font-size:clamp(1.85rem,8vw,2.25rem)}
}

/* Final English homepage mobile hero balance */
@media (max-width:640px){
  html[lang="en"] .hero h1,
  body.lang-en .hero h1{
    font-size:clamp(3.15rem,13vw,4rem);
    line-height:.93;
    letter-spacing:-.052em;
    max-width:100%;
    text-wrap:balance;
  }
  html[lang="en"] .hero-copy p,
  body.lang-en .hero-copy p{
    font-size:clamp(1rem,4.2vw,1.12rem);
    line-height:1.55;
    max-width:39rem;
  }
  html[lang="en"] .hero-actions,
  body.lang-en .hero-actions{
    gap:.65rem;
  }
  html[lang="en"] .hero-actions .btn,
  body.lang-en .hero-actions .btn{
    min-height:56px;
    padding:.9rem 1.15rem;
  }
}
@media (max-width:390px){
  html[lang="en"] .hero h1,
  body.lang-en .hero h1{
    font-size:clamp(2.85rem,12.7vw,3.35rem);
    line-height:.94;
  }
  html[lang="en"] .hero-copy p,
  body.lang-en .hero-copy p{
    font-size:1rem;
    line-height:1.5;
  }
}
@media (max-width:340px){
  html[lang="en"] .hero h1,
  body.lang-en .hero h1{font-size:2.7rem}
}

/* Chinese mobile: hard containment fix for source/depth sections */
@media (max-width:640px){
  html[lang="zh-Hans-MY"],
  html[lang="zh-Hans-MY"] body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }

  html[lang="zh-Hans-MY"] main,
  html[lang="zh-Hans-MY"] section,
  html[lang="zh-Hans-MY"] .container,
  html[lang="zh-Hans-MY"] .source-section,
  html[lang="zh-Hans-MY"] .source-grid,
  html[lang="zh-Hans-MY"] .source-copy,
  html[lang="zh-Hans-MY"] .depth-visual,
  html[lang="zh-Hans-MY"] .depth-card,
  html[lang="zh-Hans-MY"] .stat-grid{
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box;
  }

  html[lang="zh-Hans-MY"] .source-grid,
  html[lang="zh-Hans-MY"] .stat-grid{
    grid-template-columns:minmax(0,1fr) !important;
  }

  html[lang="zh-Hans-MY"] .depth-visual,
  html[lang="zh-Hans-MY"] .depth-card{
    width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
    transform:none !important;
    overflow:hidden !important;
  }

  html[lang="zh-Hans-MY"] .source-copy h1,
  html[lang="zh-Hans-MY"] .source-copy h2,
  html[lang="zh-Hans-MY"] .source-copy h3,
  html[lang="zh-Hans-MY"] .source-copy p,
  html[lang="zh-Hans-MY"] .source-copy .display{
    max-width:100% !important;
    min-width:0 !important;
    overflow-wrap:anywhere;
  }

  html[lang="zh-Hans-MY"] .stat-grid > *,
  html[lang="zh-Hans-MY"] .depth-card > *{
    min-width:0 !important;
    max-width:100% !important;
  }
}

/* Prevent any page-level horizontal canvas from escaping the phone viewport */
@media (max-width:430px){
  html[lang="zh-Hans-MY"] body > *,
  html[lang="zh-Hans-MY"] main > *{
    max-width:100vw;
  }
}


/* 2026-08 hard mobile viewport fix
   Applied globally so language switching cannot create a different page width. */
@media (max-width:640px){
  html, body{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }

  /* Force the dark source section to the real viewport width even if a translated
     child develops a large intrinsic width. */
  .source-section{
    position:relative !important;
    left:50% !important;
    width:100vw !important;
    min-width:100vw !important;
    max-width:100vw !important;
    margin-left:-50vw !important;
    margin-right:-50vw !important;
    overflow:hidden !important;
  }

  .source-section > .container.source-grid{
    width:calc(100% - 32px) !important;
    max-width:none !important;
    min-width:0 !important;
    margin-left:auto !important;
    margin-right:auto !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:38px !important;
  }

  .source-grid > *,
  .source-copy,
  .depth-visual,
  .source-stats,
  .source-stat{
    min-width:0 !important;
    max-width:100% !important;
  }

  .depth-visual{
    width:100% !important;
    min-height:520px !important;
    transform:none !important;
  }

  .layer{
    left:0 !important;
    right:0 !important;
    width:100% !important;
    min-width:0 !important;
    gap:14px;
    padding-left:18px !important;
    padding-right:18px !important;
  }
  .layer span{
    min-width:0;
    max-width:48%;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .layer span:last-child{text-align:right}

  .depth-big{
    right:18px !important;
    max-width:52%;
    font-size:clamp(3.1rem,14vw,4rem) !important;
  }

  .source-copy h2,
  .source-copy p{
    width:auto !important;
    max-width:100% !important;
    overflow-wrap:anywhere;
  }

  .source-stats{
    width:100% !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  }

  /* Hero visual chips must stay entirely inside the viewport. */
  .hero-art{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow:hidden !important;
  }
  .hero-chip.depth{
    left:8px !important;
    right:auto !important;
  }
  .hero-chip.ph{
    right:8px !important;
    left:auto !important;
  }
  .hero-chip{
    max-width:42% !important;
    white-space:normal !important;
  }

  .ticker{
    width:100% !important;
    max-width:100vw !important;
    overflow:hidden !important;
  }
}

@media (max-width:390px){
  .source-section > .container.source-grid{
    width:calc(100% - 24px) !important;
  }
  .source-stats{
    grid-template-columns:minmax(0,1fr) !important;
  }
  .hero-chip{
    max-width:40% !important;
    padding:9px 10px !important;
  }
}


/* Chinese homepage hero: keep both information cards fully visible */
@media (max-width:640px){
  html[lang="zh-Hans-MY"] .hero-art{
    position:relative !important;
    overflow:hidden !important;
  }

  html[lang="zh-Hans-MY"] .hero-chip.depth{
    left:18px !important;
    right:auto !important;
    width:auto !important;
    max-width:120px !important;
  }

  html[lang="zh-Hans-MY"] .hero-chip.ph{
    left:auto !important;
    right:24px !important;
    width:96px !important;
    max-width:96px !important;
    min-width:96px !important;
    box-sizing:border-box !important;
    transform:translateX(-10px) !important;
  }

  html[lang="zh-Hans-MY"] .hero-chip.ph span,
  html[lang="zh-Hans-MY"] .hero-chip.ph strong{
    display:block !important;
    width:100% !important;
    white-space:normal !important;
    overflow:visible !important;
  }
}

@media (max-width:390px){
  html[lang="zh-Hans-MY"] .hero-chip.depth{
    left:12px !important;
  }
  html[lang="zh-Hans-MY"] .hero-chip.ph{
    right:16px !important;
    width:90px !important;
    max-width:90px !important;
    min-width:90px !important;
    transform:translateX(-8px) !important;
  }
}


/* Chinese homepage compact mobile scale — align with contact page proportions */
@media (max-width:640px){
  html[lang="zh-Hans-MY"] .hero{
    padding-top:26px !important;
    padding-bottom:34px !important;
  }

  html[lang="zh-Hans-MY"] .hero-copy{
    max-width:100% !important;
  }

  html[lang="zh-Hans-MY"] .hero .eyebrow,
  html[lang="zh-Hans-MY"] .hero-kicker{
    font-size:.78rem !important;
    line-height:1.35 !important;
    letter-spacing:.16em !important;
    margin-bottom:14px !important;
  }

  html[lang="zh-Hans-MY"] .hero h1{
    font-size:clamp(2.5rem,10.6vw,3.15rem) !important;
    line-height:.96 !important;
    letter-spacing:-.035em !important;
    max-width:100% !important;
    margin-bottom:16px !important;
    text-wrap:balance !important;
  }

  html[lang="zh-Hans-MY"] .hero-copy p{
    font-size:.98rem !important;
    line-height:1.55 !important;
    max-width:100% !important;
    margin-bottom:20px !important;
  }

  html[lang="zh-Hans-MY"] .hero-actions{
    gap:10px !important;
    margin-top:0 !important;
    flex-wrap:wrap !important;
  }

  html[lang="zh-Hans-MY"] .hero-actions .btn{
    min-height:50px !important;
    padding:.78rem 1rem !important;
    font-size:.95rem !important;
  }

  html[lang="zh-Hans-MY"] .hero-note,
  html[lang="zh-Hans-MY"] .hero-proof{
    margin-top:18px !important;
    font-size:.8rem !important;
    line-height:1.45 !important;
  }

  html[lang="zh-Hans-MY"] .hero-art{
    margin-top:24px !important;
    min-height:470px !important;
  }

  html[lang="zh-Hans-MY"] .hero-art img{
    max-height:430px !important;
    object-fit:contain !important;
  }

  html[lang="zh-Hans-MY"] .hero-chip.depth{
    top:56px !important;
    left:14px !important;
  }

  html[lang="zh-Hans-MY"] .hero-chip.ph{
    top:300px !important;
    right:18px !important;
    transform:none !important;
  }

  html[lang="zh-Hans-MY"] .hero-chip{
    font-size:.78rem !important;
    line-height:1.25 !important;
    padding:10px 12px !important;
    border-radius:16px !important;
  }

  html[lang="zh-Hans-MY"] .hero-chip strong{
    font-size:1rem !important;
    margin-top:3px !important;
  }
}

@media (max-width:390px){
  html[lang="zh-Hans-MY"] .hero{
    padding-top:22px !important;
  }

  html[lang="zh-Hans-MY"] .hero h1{
    font-size:clamp(2.28rem,10.2vw,2.75rem) !important;
    line-height:.97 !important;
  }

  html[lang="zh-Hans-MY"] .hero-copy p{
    font-size:.94rem !important;
    line-height:1.5 !important;
  }

  html[lang="zh-Hans-MY"] .hero-actions .btn{
    min-height:48px !important;
    font-size:.9rem !important;
    padding:.72rem .9rem !important;
  }

  html[lang="zh-Hans-MY"] .hero-art{
    min-height:430px !important;
    margin-top:20px !important;
  }

  html[lang="zh-Hans-MY"] .hero-art img{
    max-height:395px !important;
  }

  html[lang="zh-Hans-MY"] .hero-chip.ph{
    top:275px !important;
    right:14px !important;
  }
}

/* =========================================================
   2026-08 FINAL ORDERLY TYPOGRAPHY & ALIGNMENT SYSTEM
   One master grid for section introductions; one rhythm for cards.
   ========================================================= */

/* Keep long marketing copy readable and visually even. */
p{ text-wrap:pretty; }

/* Homepage section introductions now share the same proportions. */
.section-head,
.why-devida-intro.section-head{
  width:100%;
  max-width:none;
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);
  gap:56px;
  align-items:end;
  margin-bottom:52px;
}
.section-head > div,
.section-head > p,
.why-devida-intro.section-head > div,
.why-devida-intro.section-head > p{
  min-width:0;
}
.section-head .eyebrow,
.section-head h2,
.section-head p,
.why-devida-intro.section-head .eyebrow,
.why-devida-intro.section-head h2,
.why-devida-intro.section-head p{
  text-align:left;
}
.section-head h2,
.why-devida-intro.section-head h2.display{
  font-size:clamp(3.35rem,5.2vw,5.2rem);
  line-height:.96;
  letter-spacing:-.045em;
  font-weight:500;
  max-width:760px;
  margin:8px 0 0;
  text-wrap:balance;
}
.section-head p,
.why-devida-intro.section-head > p.why-lead{
  width:100%;
  max-width:540px;
  justify-self:start;
  align-self:end;
  margin:0 0 5px;
  color:var(--muted);
  font-size:1rem;
  line-height:1.66;
}
.why-devida-intro.section-head h2.display span{
  display:block;
  white-space:normal;
}

/* WHY DEVIDA cards: every label, metric, heading and paragraph follows one baseline. */
.signature-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  align-items:stretch;
}
.signature-card{
  min-height:360px;
  padding:30px;
}
.signature-kicker{
  min-height:2.7em;
  font-size:.72rem;
  line-height:1.35;
  letter-spacing:.13em;
}
.signature-number,
.ratio-visual{
  min-height:88px;
  margin-top:24px;
  display:flex;
  align-items:baseline;
}
.signature-number{
  font-size:clamp(3.25rem,4.8vw,4.6rem);
}
.ratio-visual{
  gap:9px;
}
.ratio-visual strong{
  font-size:clamp(3.8rem,5.5vw,5rem);
}
.signature-card h3{
  min-height:2.55em;
  display:flex;
  align-items:flex-start;
  margin:15px 0 10px;
  font-size:1.28rem;
  line-height:1.28;
}
.signature-card p{
  margin:auto 0 0;
  font-size:.94rem;
  line-height:1.62;
  text-align:left;
}
.signature-card-primary p,
.signature-card-primary .signature-kicker{
  color:rgba(255,255,255,.72);
}

/* Shared copy alignment across the rest of the homepage. */
.source-copy,
.factory-copy,
.quality-card,
.mineral-card,
.life-point,
.malaysia-life-copy,
.contact-grid{
  text-align:left;
}
.source-copy p,
.factory-copy p,
.malaysia-life-copy p,
.contact-section .contact-grid > div:first-child > p{
  max-width:600px;
}

/* CJK typography: use a local CJK serif and the actual language code set by i18n.js. */
html[lang="zh-Hans-MY"] .display,
html[lang="zh-Hans-MY"] h1,
html[lang="zh-Hans-MY"] h2{
  font-family:"Songti SC","STSong","Noto Serif CJK SC",serif;
  letter-spacing:-.025em;
  word-break:keep-all;
}
html[lang="zh-Hans-MY"] p,
html[lang="zh-Hans-MY"] .signature-kicker,
html[lang="zh-Hans-MY"] .eyebrow{
  overflow-wrap:anywhere;
}

/* Tablet: clean single-column introductions and two-column signature cards. */
@media (max-width:1050px){
  .signature-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:900px){
  .section-head,
  .why-devida-intro.section-head{
    grid-template-columns:minmax(0,1fr);
    gap:18px;
    align-items:start;
    margin-bottom:42px;
  }
  .section-head h2,
  .why-devida-intro.section-head h2.display{
    max-width:760px;
    font-size:clamp(3rem,8vw,4.4rem);
  }
  .section-head p,
  .why-devida-intro.section-head > p.why-lead{
    max-width:680px;
    margin:0;
    align-self:start;
  }
}

/* Mobile: identical text gutter, comfortable line lengths and no forced headline wrapping. */
@media (max-width:640px){
  .section-head,
  .why-devida-intro.section-head{
    gap:14px;
    margin-bottom:34px;
  }
  .section-head h2,
  .why-devida-intro.section-head h2.display{
    font-size:clamp(2.55rem,11vw,3.35rem);
    line-height:.99;
    letter-spacing:-.038em;
    max-width:100%;
  }
  .section-head p,
  .why-devida-intro.section-head > p.why-lead{
    max-width:100%;
    font-size:.98rem;
    line-height:1.62;
  }
  .signature-grid{grid-template-columns:minmax(0,1fr);gap:12px;}
  .signature-card{min-height:0;padding:26px;}
  .signature-kicker{min-height:0;}
  .signature-number,.ratio-visual{min-height:0;margin-top:22px;}
  .signature-card h3{min-height:0;margin-top:14px;}
  html[lang="zh-Hans-MY"] .section-head h2,
  html[lang="zh-Hans-MY"] .why-devida-intro.section-head h2.display{
    font-size:clamp(2.15rem,9.6vw,2.8rem);
    line-height:1.08;
    letter-spacing:-.02em;
  }
}

/* Final language-specific mobile guardrails. The fixed header must never overlap translated hero copy. */
@media (max-width:640px){
  html[lang="zh-Hans-MY"] .hero{
    padding-top:112px !important;
    padding-bottom:48px !important;
  }
  html[lang="zh-Hans-MY"] .hero-copy{
    font-size:.96rem !important;
    line-height:1.7 !important;
    margin-bottom:24px !important;
  }
  html[lang="zh-Hans-MY"] .page-hero{
    padding-top:128px;
  }
}
@media (max-width:390px){
  html[lang="zh-Hans-MY"] .hero{
    padding-top:104px !important;
  }
}

/* =========================================================
   2026-08 CHINESE FINAL LANGUAGE & LAYOUT PASS
   Simplified Chinese for Malaysia: natural CJK wrapping,
   balanced desktop scale, and a native system font stack.
   ========================================================= */
html[lang="zh-Hans-MY"] body{
  font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC","Noto Sans SC",system-ui,-apple-system,"Segoe UI",sans-serif;
}

html[lang="zh-Hans-MY"] .display,
html[lang="zh-Hans-MY"] h1,
html[lang="zh-Hans-MY"] h2{
  font-family:"Noto Serif SC","Source Han Serif SC","Songti SC","STSong","SimSun","Microsoft YaHei",serif;
  letter-spacing:-.018em;
  word-break:normal;
  overflow-wrap:break-word;
  line-break:strict;
  text-wrap:balance;
}

html[lang="zh-Hans-MY"] h3,
html[lang="zh-Hans-MY"] h4,
html[lang="zh-Hans-MY"] p,
html[lang="zh-Hans-MY"] summary,
html[lang="zh-Hans-MY"] address,
html[lang="zh-Hans-MY"] .eyebrow,
html[lang="zh-Hans-MY"] .signature-kicker{
  word-break:normal;
  overflow-wrap:break-word;
  line-break:strict;
}

/* The English split headline is retained structurally, but Chinese must wrap
   within its own grid column instead of painting into the paragraph column. */
html[lang="zh-Hans-MY"] .section-head h2,
html[lang="zh-Hans-MY"] .why-devida-intro.section-head h2.display{
  font-size:clamp(3.1rem,3.65vw,3.85rem);
  line-height:1.08;
  letter-spacing:-.018em;
  max-width:100%;
}
html[lang="zh-Hans-MY"] .why-devida-intro.section-head h2.display span{
  display:block;
  white-space:normal;
  max-width:100%;
}
html[lang="zh-Hans-MY"] .section-head p,
html[lang="zh-Hans-MY"] .why-devida-intro.section-head > p.why-lead{
  line-height:1.72;
}

/* Long translated hero lines use a calmer editorial scale on desktop. */
html[lang="zh-Hans-MY"] .hero h1{
  font-size:clamp(4rem,6.15vw,6.6rem);
  line-height:1.01;
  letter-spacing:-.025em;
  word-break:normal;
  overflow-wrap:break-word;
}
html[lang="zh-Hans-MY"] .page-hero h1{
  font-size:clamp(3.7rem,5.35vw,5.55rem);
  line-height:1.06;
  letter-spacing:-.02em;
  max-width:940px;
}
html[lang="zh-Hans-MY"] .source-copy h2,
html[lang="zh-Hans-MY"] .contact-section h2{
  font-size:clamp(3.25rem,4.8vw,5rem);
  line-height:1.06;
}
html[lang="zh-Hans-MY"] .statement .display{
  font-size:clamp(3.2rem,5.2vw,5.45rem);
  line-height:1.06;
}
html[lang="zh-Hans-MY"] .editorial-card h2{
  font-size:clamp(2.35rem,3.2vw,2.9rem);
  line-height:1.1;
}
html[lang="zh-Hans-MY"] .malaysia-life-copy h3{
  font-size:clamp(2.15rem,3.25vw,3.15rem);
  line-height:1.1;
}

/* Chinese card labels are not Latin uppercase labels; give them cleaner rhythm. */
html[lang="zh-Hans-MY"] .signature-kicker,
html[lang="zh-Hans-MY"] .eyebrow,
html[lang="zh-Hans-MY"] .footer-meta-label,
html[lang="zh-Hans-MY"] .footer-col h4{
  letter-spacing:.1em;
}

@media (max-width:900px){
  html[lang="zh-Hans-MY"] .section-head h2,
  html[lang="zh-Hans-MY"] .why-devida-intro.section-head h2.display{
    font-size:clamp(2.8rem,7vw,3.7rem);
    line-height:1.08;
  }
  html[lang="zh-Hans-MY"] .page-hero h1{
    font-size:clamp(3.1rem,7.6vw,4.35rem);
  }
}

@media (max-width:640px){
  html[lang="zh-Hans-MY"] .section-head h2,
  html[lang="zh-Hans-MY"] .why-devida-intro.section-head h2.display{
    font-size:clamp(2.1rem,9.2vw,2.75rem);
    line-height:1.1;
  }
  html[lang="zh-Hans-MY"] .page-hero h1{
    font-size:clamp(2.55rem,10.5vw,3.25rem);
    line-height:1.08;
  }
  html[lang="zh-Hans-MY"] .source-copy h2,
  html[lang="zh-Hans-MY"] .contact-section h2,
  html[lang="zh-Hans-MY"] .statement .display{
    font-size:clamp(2.2rem,9.4vw,2.9rem);
    line-height:1.1;
  }
  html[lang="zh-Hans-MY"] .signature-card h3{
    line-height:1.4;
  }
  html[lang="zh-Hans-MY"] .footer-contact address{
    line-height:1.72;
  }
}


/* =========================================================
   DEVIDA premium homepage entrance — 2026-08-29
   Short, session-only cinematic reveal. No blocking loader.
   ========================================================= */
.premium-intro{
  position:fixed;inset:0;z-index:9999;display:grid;place-items:center;
  background:
    radial-gradient(circle at 50% 46%,rgba(185,216,50,.12),transparent 29%),
    linear-gradient(145deg,#fbfaf4 0%,#f4f8f1 52%,#edf5ef 100%);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .48s cubic-bezier(.22,.61,.36,1),visibility .48s ease,transform .58s cubic-bezier(.22,.61,.36,1);
  overflow:hidden;transform:scale(1.008)
}
html.intro-running .premium-intro{opacity:1;visibility:visible;pointer-events:auto;transform:scale(1)}
html.intro-running.intro-ending .premium-intro{opacity:0;transform:scale(1.012);pointer-events:none}
.premium-intro:before,.premium-intro:after{content:'';position:absolute;pointer-events:none}
.premium-intro:before{
  width:min(76vw,820px);aspect-ratio:1;border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%);
  border:1px solid rgba(10,47,36,.065);box-shadow:0 0 0 90px rgba(255,255,255,.12),0 0 0 180px rgba(255,255,255,.08)
}
.premium-intro:after{
  inset:-30% -55%;background:linear-gradient(112deg,transparent 41%,rgba(255,255,255,.78) 49%,rgba(189,220,84,.12) 52%,transparent 60%);
  transform:translateX(-42%) rotate(-3deg)
}
html.intro-running .premium-intro:after{animation:devidaIntroSweep 1.72s .14s cubic-bezier(.2,.72,.2,1) both}
.premium-intro-light{
  position:absolute;width:70vw;height:18vh;left:15vw;top:42%;border-radius:50%;
  background:radial-gradient(ellipse,rgba(117,191,154,.2),rgba(255,255,255,0) 68%);filter:blur(34px);opacity:.56
}
.premium-intro-inner{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;text-align:center;padding:24px}
.premium-intro-logo{width:clamp(150px,18vw,245px);height:auto;opacity:0;transform:translateY(12px) scale(.975);filter:drop-shadow(0 16px 34px rgba(10,47,36,.08))}
html.intro-running .premium-intro-logo{animation:devidaLogoIn .82s .16s cubic-bezier(.2,.75,.25,1) forwards}
.premium-intro-rule{width:clamp(120px,14vw,190px);height:1px;margin:22px 0 13px;background:rgba(10,47,36,.11);overflow:hidden;opacity:0}
.premium-intro-rule span{display:block;width:100%;height:100%;background:linear-gradient(90deg,transparent,var(--green),var(--lime),transparent);transform:translateX(-100%)}
html.intro-running .premium-intro-rule{animation:devidaSoftIn .4s .58s ease forwards}
html.intro-running .premium-intro-rule span{animation:devidaRule 1.16s .58s cubic-bezier(.22,.61,.36,1) forwards}
.premium-intro-origin{font-size:.68rem;font-weight:700;letter-spacing:.28em;color:rgba(10,47,36,.56);opacity:0;transform:translateY(6px)}
html.intro-running .premium-intro-origin{animation:devidaSoftIn .6s .82s ease forwards}
@keyframes devidaLogoIn{to{opacity:1;transform:none}}
@keyframes devidaSoftIn{to{opacity:1;transform:none}}
@keyframes devidaRule{to{transform:translateX(100%)}}
@keyframes devidaIntroSweep{from{transform:translateX(-42%) rotate(-3deg)}to{transform:translateX(42%) rotate(-3deg)}}

/* Keep the established hero composition, but reveal it in a more editorial sequence. */
html.intro-running .site-header,
html.intro-running .hero-copy-block,
html.intro-running .hero-art,
html.intro-running .ticker{opacity:0}
html.intro-running .hero-copy-block{transform:translateY(24px)}
html.intro-running .hero-art{transform:translateY(18px) scale(.985)}
html.intro-complete .site-header{animation:devidaNavIn .62s .02s cubic-bezier(.2,.75,.25,1) both}
html.intro-complete .hero-copy-block{animation:devidaHeroCopyIn .8s .05s cubic-bezier(.2,.75,.25,1) both}
html.intro-complete .hero-art{animation:devidaHeroArtIn .9s .22s cubic-bezier(.2,.75,.25,1) both}
html.intro-complete .ticker{animation:devidaTickerIn .55s .58s ease both}
@keyframes devidaNavIn{from{opacity:0;transform:translateY(-9px)}to{opacity:1;transform:none}}
@keyframes devidaHeroCopyIn{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@keyframes devidaHeroArtIn{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}
@keyframes devidaTickerIn{from{opacity:0}to{opacity:1}}

/* A restrained light ripple between the hero and source story. */
.premium-water-divider{position:relative;height:18px;margin:-1px 0 0;overflow:hidden;background:linear-gradient(180deg,#fff,rgba(244,248,241,.45));transform:none!important}
.premium-water-divider:before{content:'';position:absolute;left:8%;right:8%;top:8px;height:1px;background:linear-gradient(90deg,transparent,rgba(10,47,36,.12) 18%,rgba(10,47,36,.12) 82%,transparent)}
.premium-water-divider span{position:absolute;top:4px;left:-24%;width:24%;height:9px;border-radius:50%;background:linear-gradient(90deg,transparent,rgba(189,220,84,.38),rgba(13,106,76,.18),transparent);filter:blur(3px);opacity:0}
.js-reveal .premium-water-divider.reveal.in span{animation:devidaWaterPass 1.35s .08s cubic-bezier(.22,.61,.36,1) both}
@keyframes devidaWaterPass{0%{left:-24%;opacity:0}18%{opacity:.9}82%{opacity:.72}100%{left:100%;opacity:0}}

/* Small premium refinements to existing scroll reveals; layout stays unchanged. */
.js-reveal .product-grid .product-card.reveal:nth-child(2),
.js-reveal .quality-grid .quality-card.reveal:nth-child(2){transition-delay:.07s}
.js-reveal .product-grid .product-card.reveal:nth-child(3),
.js-reveal .quality-grid .quality-card.reveal:nth-child(3){transition-delay:.14s}
.js-reveal .quality-grid .quality-card.reveal:nth-child(4){transition-delay:.21s}
.product-card,.quality-card,.signature-card{transition-property:transform,box-shadow,border-color,background-color;transition-duration:.34s;transition-timing-function:cubic-bezier(.2,.75,.25,1)}
@media (hover:hover) and (pointer:fine){
  .product-card:hover,.quality-card:hover,.signature-card:hover{transform:translateY(-4px)}
}

@media(max-width:640px){
  .premium-intro-logo{width:160px}
  .premium-intro-origin{font-size:.59rem;letter-spacing:.22em}
  .premium-intro:before{width:92vw}
  html.intro-complete .hero-art{animation-delay:.14s}
}
@media (prefers-reduced-motion:reduce){
  /* The DEVIDA brand opening is intentionally retained on refresh on every device.
     Other continuous/decorative motion on the site still follows Reduce Motion. */
  html .premium-intro{display:grid!important;transition:opacity .48s cubic-bezier(.22,.61,.36,1),visibility .48s ease,transform .58s cubic-bezier(.22,.61,.36,1)!important}
  html.intro-running .premium-intro:after{animation:devidaIntroSweep 1.72s .14s cubic-bezier(.2,.72,.2,1) both!important}
  html.intro-running .premium-intro-logo{animation:devidaLogoIn .82s .16s cubic-bezier(.2,.75,.25,1) forwards!important}
  html.intro-running .premium-intro-rule{animation:devidaSoftIn .4s .58s ease forwards!important}
  html.intro-running .premium-intro-rule span{animation:devidaRule 1.16s .58s cubic-bezier(.22,.61,.36,1) forwards!important}
  html.intro-running .premium-intro-origin{animation:devidaSoftIn .6s .82s ease forwards!important}
  html.intro-running .site-header,html.intro-running .hero-copy-block,html.intro-running .hero-art,html.intro-running .ticker{opacity:0!important}
  html.intro-running .hero-copy-block{transform:translateY(24px)!important}
  html.intro-running .hero-art{transform:translateY(18px) scale(.985)!important}
  html.intro-complete .site-header{animation:devidaNavIn .62s .02s cubic-bezier(.2,.75,.25,1) both!important}
  html.intro-complete .hero-copy-block{animation:devidaHeroCopyIn .8s .05s cubic-bezier(.2,.75,.25,1) both!important}
  html.intro-complete .hero-art{animation:devidaHeroArtIn .9s .14s cubic-bezier(.2,.75,.25,1) both!important}
  html.intro-complete .ticker{animation:devidaTickerIn .55s .58s ease both!important}
  .premium-water-divider span{display:none}
}


/* Native enquiry email action — social in-app browser compatibility */
.form-grid .contact-mail-link{
  width:100%;
  min-height:58px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.mail-app-fallback{
  margin-top:2px;
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(10,47,36,.18);
  border-radius:999px;
  color:var(--green);
  font-weight:700;
  text-align:center;
}
.mail-app-fallback[hidden]{display:none!important}
@media (max-width:390px){.form-grid .contact-mail-link{min-height:54px}}
@media (max-width:340px){.form-grid .contact-mail-link{min-height:52px}}


/* iPhone / iPad enquiry email-app chooser */
html.mail-choice-open{overflow:hidden}
.mail-choice-overlay{
  position:fixed;
  inset:0;
  z-index:10050;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:18px;
  background:rgba(4,24,18,.42);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
.mail-choice-overlay[hidden]{display:none!important}
.mail-choice-sheet{
  width:min(100%,520px);
  max-height:min(80vh,620px);
  overflow:auto;
  border:1px solid rgba(10,47,36,.12);
  border-radius:28px;
  padding:10px 16px calc(16px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.98);
  box-shadow:0 24px 70px rgba(4,24,18,.24);
}
.mail-choice-grab{width:38px;height:5px;margin:2px auto 14px;border-radius:999px;background:rgba(10,47,36,.18)}
.mail-choice-sheet h3{margin:0;text-align:center;color:var(--green);font-size:1.24rem;letter-spacing:-.015em}
.mail-choice-sheet>p{margin:5px 0 15px;text-align:center;color:rgba(10,47,36,.68);font-size:.92rem}
.mail-choice-actions{display:grid;gap:9px}
.mail-choice-option{
  min-height:68px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:10px 13px;
  border:1px solid rgba(10,47,36,.12);
  border-radius:18px;
  background:#fff;
  color:var(--green);
  text-decoration:none;
  -webkit-tap-highlight-color:transparent;
}
.mail-choice-option:active{transform:scale(.985);background:rgba(244,248,241,.92)}
.mail-choice-icon{
  flex:0 0 42px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:rgba(10,47,36,.07);
  font-weight:800;
  font-size:1.05rem;
}
.mail-choice-option span:last-child{display:grid;gap:2px;min-width:0}
.mail-choice-option strong{font-size:1rem;line-height:1.15}
.mail-choice-option small{font-size:.78rem;line-height:1.2;color:rgba(10,47,36,.58);font-weight:500}
.mail-choice-cancel{
  width:100%;
  min-height:52px;
  margin-top:10px;
  border:0;
  border-radius:18px;
  background:rgba(10,47,36,.07);
  color:var(--green);
  font:inherit;
  font-weight:750;
}
@media(min-width:700px){
  .mail-choice-overlay{align-items:center}
}


/* =========================================================
   DEVIDA smooth-operation pass — 2026-08-29
   Keeps the visual design while reducing work during scroll
   and pausing continuous motion when it is off-screen.
   ========================================================= */
html.intro-running .premium-intro,
html.intro-running .premium-intro-logo,
html.intro-running .premium-intro:after,
html.intro-complete .site-header,
html.intro-complete .hero-copy-block,
html.intro-complete .hero-art{
  will-change:transform,opacity;
}
html.intro-complete .site-header,
html.intro-complete .hero-copy-block,
html.intro-complete .hero-art{
  animation-fill-mode:both;
}
html:not(.intro-running) .premium-intro{will-change:auto}
.hero.motion-paused .orbit,
.ticker.motion-paused .ticker-track,
html.motion-suspended .orbit,
html.motion-suspended .ticker-track{
  animation-play-state:paused!important;
}
.ticker-track,.orbit{transform:translateZ(0)}

/* Fixed translucent blur is one of the biggest causes of scroll jank on
   iPhone/iPad and other touch devices. Use visually equivalent solid glass
   surfaces there, while retaining the full blur effect on desktop. */
@media (pointer:coarse){
  .site-header.scrolled{
    background:rgba(251,250,244,.965);
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
  .nav-links{
    background:rgba(251,250,244,.985)!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  /* Keep the original premium hero/product glass exactly as before.
     Only non-hero utility surfaces lose blur on touch devices. */
  .language-switcher,.factory-pills span{
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
  .language-switcher{background:rgba(255,255,255,.94)}
  .premium-intro-light{filter:blur(22px)}
  .premium-intro-logo{filter:drop-shadow(0 10px 22px rgba(10,47,36,.06))}
}

@media (max-width:640px){
  .js-reveal .reveal{transform:translateY(18px);transition-duration:.58s}
  .product-image img{transition-duration:.32s}
}


/* Hero visual lock — restored to the user's approved previous version.
   Do not simplify these values in mobile performance passes. */
.bottle-stage{background:linear-gradient(150deg,rgba(255,255,255,.86),rgba(233,244,237,.6));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.hero-chip{background:rgba(255,255,255,.88);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
