/* =====================================================================
   新中韩 · Mobile & Tablet v2 — "Night & Day" luxury panel system (2026-11-04)
   Linked with media="(max-width:980px), (hover:none) and (pointer:coarse)".
   A non-touch desktop (>=981, mouse) never applies this file, so PC stays pixel-identical.
   Copy is untouched; only presentation.
   ===================================================================== */
:root{
  --m2-night:#0A1633;--m2-night2:#10224D;--m2-night3:#152B5E;
  --m2-day:#F7F2E8;--m2-sand:#EFE7D7;--m2-paper:#FFFDF8;
  --m2-ink:#121A2E;--m2-body:#3A3F4B;--m2-muted:#5A5547;
  --m2-bronze:#7E5C1E;           /* gold-family accent for light panels: 5.5:1 on ivory */
  --m2-gold:#E3C383;             /* accent on navy: 10:1 */
  --m2-cream:#F5EFE3;--m2-cream2:rgba(245,239,227,.84);
  --m2-line-d:rgba(126,92,30,.22);--m2-line-n:rgba(227,195,131,.24);
  --m2-mb:calc(64px + env(safe-area-inset-bottom));
}

/* ---------------------------------------------------------------------
   A. HOMEPAGE — phone + tablet (<=980)
   --------------------------------------------------------------------- */
@media (max-width:980px){
  html{scroll-snap-type:y proximity}
  body{background:var(--m2-day)}

  /* header: brand legibility */
  .brand-t b{letter-spacing:.06em}
  .brand-t small{font-size:8.4px;letter-spacing:.06em;color:rgba(245,239,227,.78)}
  .nav a{color:var(--m2-cream)}
  .nav-x a,.nav-x span{font-size:14px;color:var(--m2-cream2)}

  /* panel frame: every section opens as one full screen */
  main>.sec{min-height:calc(100svh - var(--hh));display:flex;flex-direction:column;justify-content:center;
    padding:clamp(56px,9svh,96px) 0 calc(var(--m2-mb) + clamp(28px,5svh,56px));scroll-snap-align:start;border-top:0!important}
  main>.sec>.wrap{width:calc(100% - var(--pad)*2)}

  /* shared type scale */
  .eyebrow{font-size:12px;font-weight:600;letter-spacing:.28em;color:var(--m2-bronze)}
  .eyebrow::before,.eyebrow::after{width:20px;background:currentColor;opacity:.55}
  .shead{margin-bottom:clamp(26px,4.5svh,40px)}
  .shead h2{margin-top:14px;font-size:clamp(30px,8.6vw,34px);font-weight:600;letter-spacing:.18em;margin-right:-.18em;line-height:1.3;color:var(--m2-ink)}
  .shead h2::after{width:32px;background:var(--m2-bronze);opacity:.7}
  .shead p{max-width:24em;font-size:15.5px;line-height:1.85;color:var(--m2-muted)}
  .shead p .nw{color:inherit}

  /* night panels */
  #philosophy,#operation,#news{background:
      radial-gradient(120% 60% at 100% 0%,rgba(227,195,131,.13),rgba(227,195,131,0) 60%),
      radial-gradient(90% 50% at 0% 100%,rgba(60,90,170,.22),rgba(60,90,170,0) 70%),
      linear-gradient(180deg,var(--m2-night2),var(--m2-night) 70%)}
  #philosophy .eyebrow,#operation .eyebrow,#news .eyebrow{color:var(--m2-gold)}
  #philosophy .shead h2,#operation .shead h2,#news .shead h2{color:var(--m2-cream)}
  #philosophy .shead h2::after,#operation .shead h2::after,#news .shead h2::after{background:var(--m2-gold)}
  #philosophy .shead p,#operation .shead p,#news .shead p{color:var(--m2-cream2)}
  /* day panels */
  #about,#contact{background:var(--m2-day)}
  #services,#future{background:linear-gradient(180deg,var(--m2-day),var(--m2-sand))}

  /* ---------- 01 HERO: full-bleed photo with deep navy scrim ---------- */
  .hero{min-height:100svh;background:var(--m2-night);scroll-snap-align:start}
  .hero-bg{background:url(img/ep-pd-hero-960.webp) 58% 50%/cover no-repeat,var(--m2-night)}
  .hero-bg::after{background:
     linear-gradient(180deg,rgba(7,14,34,.80) 0%,rgba(7,14,34,.6) 24%,rgba(7,14,34,.6) 44%,rgba(7,14,34,.76) 62%,rgba(7,14,34,.94) 100%)}
  .hero-in{min-height:calc(100svh - var(--hh));padding:clamp(18px,4svh,48px) 0 calc(var(--m2-mb) + clamp(14px,2.6svh,28px));justify-content:flex-start}
  .badge{flex-direction:column;gap:6px;padding:0;border:0;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;white-space:normal}
  .badge .ic{font-size:16px;background:var(--m2-gold)}
  .badge .b-t{display:flex;flex-direction:column;align-items:center;gap:6px}
  .b-en{font-size:clamp(11px,3vw,12px);font-weight:600;letter-spacing:.16em;color:var(--m2-gold)}
  .b-sep{display:none}
  .b-zh{font-size:clamp(13px,3.6vw,14.5px);letter-spacing:.24em;margin-right:-.24em;color:var(--m2-cream)}
  .hero-t{margin-top:clamp(14px,3.4svh,30px);font-size:clamp(40px,min(12vw,7.6svh),64px);line-height:1.2;filter:drop-shadow(0 2px 18px rgba(0,0,0,.55))}
  .hero-s{margin-top:clamp(10px,2svh,18px);font-size:clamp(15px,4vw,16px);line-height:1.8;color:var(--m2-cream);text-shadow:0 1px 10px rgba(0,0,0,.55)}
  .hero-btns{gap:10px;padding-top:clamp(14px,3svh,26px)}
  .btn-gold,.btn-dark{height:clamp(46px,7.4svh,52px);font-size:15px}
  .btn-dark{color:var(--m2-cream);background:rgba(7,14,34,.42);border-color:rgba(227,195,131,.75)}
  .hstats{grid-template-columns:repeat(4,minmax(0,1fr));max-width:560px;margin-top:clamp(14px,2.8svh,24px);border-top:1px solid rgba(227,195,131,.32)}
  .hstat,.hstat:nth-child(odd){padding:clamp(10px,1.8svh,14px) 2px 0;border:0}
  .hstat:not(:last-child){border-right:1px solid rgba(227,195,131,.22)}
  .hstat>.ic{display:none}
  .hstat b{font-size:clamp(20px,5.6vw,27px)}
  .hstat span{font-size:12px;letter-spacing:.04em;color:var(--m2-cream2);white-space:nowrap}

  /* ---------- 02 ABOUT: sticky full-screen photo, editorial sheet slides over ---------- */
  #about{padding:0;justify-content:flex-start;overflow:visible}
  #about>.wrap{width:100%}
  #about .about{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
  #about .about-r{grid-row:1;grid-column:1;position:sticky;top:var(--hh);z-index:0;width:100%;height:calc(100svh - var(--hh));min-height:0;max-height:none;aspect-ratio:auto;margin:0;border-radius:0}
  #about .about-r img{width:100%;height:100%;object-fit:cover}
  #about .about-cap{top:0;bottom:auto;padding:clamp(20px,4svh,32px) var(--pad) 90px;background:linear-gradient(180deg,rgba(7,14,34,.84),rgba(7,14,34,.4) 60%,rgba(7,14,34,0))}
  #about .about-cap b,#about .about-cap span{text-shadow:0 1px 8px rgba(0,0,0,.5)}
  #about .about-cap b{font-size:12.5px;letter-spacing:.2em;color:var(--m2-cream)}
  #about .about-cap span{font-size:13px;color:var(--m2-cream2)}
  #about .about-l{grid-row:1;grid-column:1;position:relative;z-index:1;align-self:start;margin-top:calc(100svh - var(--hh) - min(44svh,360px));
    padding:clamp(34px,5svh,48px) var(--pad) calc(var(--m2-mb) + 48px);background:var(--m2-day);border-radius:22px 22px 0 0;box-shadow:0 -24px 48px -12px rgba(7,14,34,.35)}
  #about .about-l::before{content:"";position:absolute;top:12px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:rgba(126,92,30,.28)}
  #about .eyebrow{color:var(--m2-bronze);font-weight:600}
  #about .shead{margin-bottom:26px}
  #about .shead h2{font-size:clamp(30px,8.6vw,34px);color:var(--m2-ink)}
  #about .about-l h3{font-size:clamp(21px,5.8vw,24px);line-height:1.55;color:var(--m2-ink)}
  #about .about-l p{font-size:16px;line-height:1.95;color:var(--m2-body)}
  #about .astats{border-top:1px solid var(--m2-line-d)}
  #about .astat b{font-weight:400;color:#8A5A12}
  #about .astat span{font-size:13.5px;color:var(--m2-muted)}

  /* ---------- 03 PHILOSOPHY (night): screen 1 head + wheel, screen 2 six tenets ---------- */
  #philosophy .philo{gap:clamp(28px,5svh,44px)}
  #philosophy .wheel-card{background:none}
  #philosophy .wheel{width:min(320px,80vw,46svh);filter:drop-shadow(0 18px 40px rgba(0,0,0,.45))}
  #philosophy .pcards{scroll-snap-align:start;scroll-margin-top:calc(var(--hh) + 24px);border-top:1px solid var(--m2-line-n)}
  #philosophy .pcard{background:none;border-bottom:1px solid var(--m2-line-n);padding:18px 2px}
  #philosophy .pcard .pill{color:var(--m2-cream);font-size:19px}
  #philosophy .pcard .pill em{color:var(--m2-gold);font-weight:500}
  #philosophy .pcard .pill small{font-size:11.5px;color:var(--m2-gold)}
  #philosophy .pcard p{font-size:15.5px;color:var(--m2-cream2)}

  /* ---------- 04 SERVICES (day): 3 service cards + photo triptych ---------- */
  #services .svc{background:var(--m2-paper);border:1px solid var(--m2-line-d);border-radius:14px;box-shadow:0 24px 44px -30px rgba(60,40,10,.45)}
  #services .svc h3{color:var(--m2-ink)}
  #services .svc h3 em{color:var(--m2-bronze)}
  #services .svc h3 .svc-tag{font-size:13px;font-weight:600;color:var(--m2-bronze)}
  #services .svc ul.svc-l li{font-size:15px;line-height:1.6;color:var(--m2-body)}
  #services .btn-pill{color:var(--m2-bronze);border-color:rgba(126,92,30,.55)}
  #services .btn-pill .ic{background:var(--m2-bronze)}
  #services .prod3{scroll-snap-align:start;scroll-margin-top:calc(var(--hh) + 14px)}
  #services .prod{border-radius:14px;overflow:hidden;box-shadow:0 22px 40px -26px rgba(7,14,34,.65)}
  #services .prod img{z-index:0}
  #services .prod::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
    background:linear-gradient(180deg,rgba(7,14,34,.78) 0%,rgba(7,14,34,.2) 38%,rgba(7,14,34,.18) 55%,rgba(7,14,34,.82) 100%)}
  #services .prod h3{z-index:2;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.6)}
  #services .prod .glass{z-index:2;background:rgba(7,14,34,.55);border-color:rgba(227,195,131,.28)}
  #services .prod .glass b{color:var(--m2-cream)}
  #services .prod .glass span{color:var(--m2-cream2)}
  #services .prod-go{z-index:3}

  /* ---------- 05 OPERATION (night): carousel with pagination, then the 5-step flow ---------- */
  #operation .op{background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.025));border:1px solid var(--m2-line-n);border-radius:14px;box-shadow:none}
  #operation .op h3{color:var(--m2-cream)}
  #operation .op h3 em{color:var(--m2-gold)}
  #operation .op p{font-size:15px;color:var(--m2-cream2)}
  #operation .op .ic{background:var(--m2-gold);opacity:.95}
  #operation .flow{scroll-snap-align:start;scroll-margin-top:calc(var(--hh) + 20px);border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));border-color:rgba(227,195,131,.34);box-shadow:none}
  #operation .flow h3{color:var(--m2-cream)}
  #operation .flow b{color:var(--m2-gold)}
  #operation .flow small{font-size:14.5px;color:var(--m2-cream2)}
  /* carousel pagination on night */
  #operation .cdots b,#news .cdots b{background:rgba(227,195,131,.35)}
  #operation .cdots b.on,#news .cdots b.on{background:var(--m2-gold)}
  #operation .cbar,#news .cbar{background:rgba(227,195,131,.2)}
  #operation .cbar i,#news .cbar i{background:var(--m2-gold)}
  #operation .ccount,#news .ccount{font-size:12.5px;color:var(--m2-cream2)}
  .cdots b{width:6px;height:6px}
  .cdots b.on{width:22px}
  .ccount{font-size:12.5px;color:var(--m2-muted)}

  /* ---------- 06 FUTURE (day): two vision cards, then the 2030 goals on navy ---------- */
  #future .fcard{background:var(--m2-paper);border:1px solid var(--m2-line-d);border-radius:14px}
  #future .fcard h3{color:var(--m2-ink)}
  #future .fcard h3::after{background:var(--m2-bronze)}
  #future .fcard p{font-size:15.5px;color:var(--m2-body)}
  #future .fcard .num{color:rgba(126,92,30,.2)}
  #future .goals{scroll-snap-align:start;scroll-margin-top:calc(var(--hh) + 20px);border-radius:14px;border:1px solid rgba(227,195,131,.4);
    background:radial-gradient(120% 60% at 100% 0%,rgba(227,195,131,.16),transparent 60%),linear-gradient(170deg,var(--m2-night3),var(--m2-night) 78%);box-shadow:0 26px 50px -28px rgba(7,14,34,.85)}
  #future .goals h3{color:var(--m2-cream)}
  #future .goals-en{font-size:12px;color:var(--m2-gold)}
  #future .gg{border-top-color:var(--m2-line-n)}
  #future .g{border-color:var(--m2-line-n)!important}
  #future .g b{background:none;-webkit-background-clip:border-box;background-clip:border-box;color:var(--m2-gold)}
  #future .g span{font-size:13.5px;color:var(--m2-cream2)}
  #future .gbar{color:var(--m2-gold);border-color:rgba(227,195,131,.6)}

  /* ---------- 07 NEWS (night): polished photo carousel ---------- */
  #news .nbig,#news .nitem{background:var(--m2-night2);border:1px solid var(--m2-line-n);border-radius:14px;box-shadow:0 26px 50px -30px rgba(0,0,0,.9)}
  #news .meta{font-size:12.5px;font-weight:600;color:var(--m2-gold)}
  #news .nbig h3,#news .nitem h3{color:var(--m2-cream)}
  #news .nbig a,#news .nitem a{color:var(--m2-gold)}
  #news .nbig a .ic,#news .nitem a .ic{background:var(--m2-gold)}

  /* ---------- 08 CONTACT (day) ---------- */
  #contact .cnavy li{font-size:15.5px}
  #contact .coop small{font-size:12.5px;color:var(--m2-cream2)}
  #contact .cr{background:var(--m2-paper);border-radius:14px}
  #contact .cr h3{color:var(--m2-ink)}
  #contact .cr p a{color:var(--m2-ink)}
  #contact .mini{color:var(--m2-bronze);border-color:rgba(126,92,30,.5)}
  #contact .chips span{color:var(--m2-bronze);border-color:rgba(126,92,30,.4)}
  #contact .cr>.ic{color:var(--m2-bronze)}

  /* footer + sticky CTA */
  .ftr{background:var(--m2-night)}
  .ftr-in{font-size:12.5px;color:rgba(245,239,227,.74);padding-bottom:calc(var(--m2-mb) + 18px)}
  .ftr nav a{font-size:14px;color:var(--m2-cream)}
  .mbar{background:rgba(8,15,36,.86);border-top:1px solid rgba(227,195,131,.3);box-shadow:0 -12px 30px -14px rgba(0,0,0,.6)}
  .mbar a{color:var(--m2-cream);letter-spacing:.24em}

  /* reveal & hero entrance (motion-safe only) */
  @media (prefers-reduced-motion:no-preference){
    .hero-bg{animation:m2-kb 2.8s cubic-bezier(.2,.7,.2,1) both}
    .hero-in>*{animation:m2-up 1.1s cubic-bezier(.2,.7,.2,1) both}
    .hero-in>:nth-child(2){animation-delay:.12s}.hero-in>:nth-child(3){animation-delay:.24s}
    .hero-in>:nth-child(4){animation-delay:.36s}.hero-in>:nth-child(5){animation-delay:.48s}
  }
  @keyframes m2-kb{from{transform:scale(1.08)}to{transform:none}}
  @keyframes m2-up{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
}

/* phone-only refinements */
@media (max-width:640px){
  #services .prod3{gap:10px}
  #services .prod{aspect-ratio:auto;height:max(170px,calc((100svh - var(--hh) - var(--m2-mb) - 56px)/3))}
  #services .prod .glass{padding:9px 12px}
  #services .prod .glass span{display:none}
  #future .goals{padding:30px 20px 24px}
}
@media (max-width:359px){
  .hstat span{font-size:11.5px;letter-spacing:0}
}

/* tablet portrait 641–980 */
@media (min-width:641px) and (max-width:980px){
  .hero-bg{background-image:url(img/ep-pd-hero-1920.webp)}
  .shead h2{font-size:38px}
  .shead p{font-size:16.5px}
  #about .about{grid-template-columns:minmax(0,1fr)}
  #about .about-l{padding-left:max(40px,calc(50% - 400px));padding-right:max(40px,calc(50% - 400px));margin-top:calc(100svh - var(--hh) - 40svh)}
  #about .about-l p{font-size:17px}
  #philosophy .pcards{grid-template-columns:1fr 1fr;column-gap:36px}
  #services .prod{aspect-ratio:3/4}
  #services .prod h3{font-size:20px}
  #services .prod .glass b{font-size:14px}
  .hstat span{font-size:13.5px}
}

/* phone landscape */
@media (orientation:landscape) and (max-height:500px){
  main>.sec{min-height:0;justify-content:flex-start}
  html{scroll-snap-type:none}
  #about .about-r{position:relative;top:0;height:70vh}
  #about .about-l{margin-top:0;border-radius:0}
  #about .about{grid-template-columns:minmax(0,1fr)}
  #about .about-r,#about .about-l{grid-row:auto}
}

/* ---------------------------------------------------------------------
   B. ENTRY & DETAIL PAGES — phone + tablet (<=980)
   --------------------------------------------------------------------- */
@media (max-width:980px){
  .ep{--gd-d:#7A5A20;--s5:#4F5B6E;--s6:#384456;scroll-padding-top:64px;scroll-snap-type:y proximity}
  .ep .ep-hero{height:calc(100svh - 64px);min-height:480px;max-height:1000px;align-items:flex-end;scroll-snap-align:start}
  .ep .ep-hero-ov{background:linear-gradient(180deg,rgba(10,22,48,.55) 0%,rgba(10,22,48,.24) 28%,rgba(10,22,48,.5) 46%,rgba(10,22,48,.8) 66%,rgba(10,22,48,.94) 100%)}
  .ep .ep-hero .ep-eb{color:#F3D292;text-shadow:0 1px 10px rgba(0,0,0,.6)}
  .ep .ep-hero-in{padding:0 28px clamp(56px,11svh,110px)}
  .ep .ep-hero-in::after{content:"";display:block;width:1px;height:40px;margin:28px auto 0;background:linear-gradient(180deg,rgba(243,210,146,.9),rgba(243,210,146,0))}
  .ep .ep-eb{font-size:12px;font-weight:600;letter-spacing:.26em;margin-right:-.26em;color:#F0D9A6}
  .ep .ep-h1{font-size:clamp(32px,9vw,46px);font-weight:500;line-height:1.3;text-shadow:0 2px 20px rgba(0,0,0,.5)}
  .ep .ep-sub{font-size:15.5px;line-height:1.85;color:rgba(255,255,255,.92);text-shadow:0 1px 10px rgba(0,0,0,.5)}
  .ep .ep-act{scroll-snap-align:start}
  .ep .ep-eb2{font-size:12px;font-weight:600;letter-spacing:.3em;margin-right:-.3em}
  .ep .ep-h2{font-weight:500;color:#0F172A}
  .ep .ep-gl{background:#A07A3A}
  .ep .ep-num{font-weight:400;color:#8A6424}
  .ep .ep-dash{color:#7A5A20}
  .ep .ep-ch.row h4,.ep .ep-ch h4{font-weight:500}
  .ep .ep-list{font-family:var(--sans);font-size:15.5px;line-height:1.7;color:#384456}
  .ep .ep-mark{font-size:12.5px}
  .ep .ep-card{border-radius:14px}
  .ep .ep-card-ov{background:linear-gradient(to top,rgba(10,22,48,.94) 0%,rgba(10,22,48,.55) 50%,rgba(10,22,48,.12) 85%)}
  .ep .ep-meta{font-size:12.5px;font-weight:600;letter-spacing:.24em;color:#F3D292}
  .ep .ep-link{font-size:14px;color:#F3D9A8}
  .ep .ep-banner-b p,.ep .ep-as p,.ep .ep-pd-sub,.ep .ct-lead,.ep .ct-qf-h p{font-family:var(--sans);font-size:15.5px;line-height:1.9}
  /* detail pages */
  .ep .dt-intro p{font-family:var(--sans);font-size:16px;line-height:1.95;color:#384456}
  .ep .dt-facts dt{font-size:13.5px}
  .ep .dt-facts dd{font-size:15px}
  .ep .dt-hl-i{background:#FFFDF8;border:1px solid rgba(197,168,128,.45);border-radius:14px;padding:22px 20px}
  .ep .dt-hl-i h4{font-weight:500}
  .ep .dt-hl-i p{font-family:var(--sans);font-size:15px;line-height:1.85}
  .ep .dt-dn{font-weight:400;color:#8A6424}
  .ep .dt-place{font-size:14px}
  .ep .dt-db h4{font-weight:500}
  .ep .dt-db p{font-family:var(--sans);font-size:15.5px;line-height:1.9}
  .ep .dt-db .dt-stay{font-size:15px;font-weight:600;letter-spacing:.04em}
  .ep .dt-note{font-family:var(--sans);font-size:15px}
  .ep .dt-fig{border-radius:12px}
  .ep .dt-cta-c{font-size:15px;color:rgba(255,255,255,.84)}
  .ep .dt-cta p{color:rgba(255,255,255,.88)}
  /* custom-tour atlas: readability only (layout untouched) */
  .ep .ct-hint,.ep .ct-mp-lead,.ep .ct-msg,.ep .ct-iti-note{font-size:13.5px}
  .ep .ct-f label,.ep .ct-lab{font-size:13px}
  .ep .ct-li-a{font-size:13px;font-weight:600;color:#6E4F17;border-color:rgba(122,90,32,.6)}
  .ep .ct-li.on .ct-li-a{color:#F3D292}
  .ep .ct-ne{font-size:14px}
  .ep .ct-cat{font-size:13px!important}
  .ep .ct-iti-day p{font-family:var(--sans);font-size:15px}
}
@media (max-width:640px){
  .ep{scroll-padding-top:56px}
  .ep .ep-hero{height:calc(100svh - 56px);min-height:460px}
  .ep .ep-hero-in{padding:0 22px clamp(48px,10svh,90px)}
  .ep .ep-act{padding-top:72px}
  .ep .ep-h2{font-size:27px}
  .ep .ep-ch.row h4{font-size:20px}
  .ep .ep-card h4{font-size:20px}
  .ep .dt-day{grid-template-columns:1fr;gap:10px}
}
@media (max-width:980px) and (orientation:landscape) and (max-height:500px){
  .ep .ep-hero{height:auto;min-height:300px}
  .ep{scroll-snap-type:none}
}
@media (max-width:980px){#custom-tour-modal .ep-hero{height:min(78svh,760px);min-height:420px}}

/* ---------------------------------------------------------------------
   C. TOUCH >=981 (iPad landscape / iPad Pro): keep the desktop layout, fix readability only
   --------------------------------------------------------------------- */
@media (min-width:981px) and (hover:none) and (pointer:coarse){
  .eyebrow{font-weight:600;color:#7E5C1E}
  .shead p{color:#4F4A3F}
  .svc h3 .svc-tag{color:#7E5C1E}
  #services .prod::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(7,14,34,.55),rgba(7,14,34,.08) 40%,rgba(7,14,34,.12) 60%,rgba(7,14,34,.7))}
  #services .prod img{z-index:0}
  #services .prod h3,#services .prod .glass{z-index:2}
  #services .prod-go{z-index:3}
  .ep{--gd-d:#7A5A20;--s5:#4F5B6E;--s6:#384456}
  .ep .ep-hero-ov{background:linear-gradient(180deg,rgba(10,22,48,.74),rgba(10,22,48,.7) 45%,rgba(10,22,48,.86))}
  .ep .ep-hero .ep-eb{font-size:12px;font-weight:600;color:#F3D292;text-shadow:0 1px 10px rgba(0,0,0,.6)}
  .ep .ct-v.on{color:#0F1E36!important}
  .ep .ct-stats span,.ep .ct-li-t small{font-size:12px}
  .ep .ct-zoom button.rs{font-size:12px!important;letter-spacing:0}
  .sec .eyebrow,.cx .cx-en{font-size:12px;color:#7E5C1E}
  #operation .eyebrow{color:#E3C383}
  .pcard .pill em{color:#9C7A3C}
  .svc .svc-b em{color:#8A6424}
  .sec .shead p,.pcard p{color:#4F5B6E;font-size:14.5px}
  .svc .svc-l li{color:#384456;font-size:14px}
  #operation .op p{color:rgba(226,232,240,.94);font-size:14.5px}
  .nitem .meta{color:#7A5A20}
  .nitem .nsum{font-size:14.5px}
  .goals .goals-en{color:#8A4A0C}
  #about .about-cap span{color:rgba(255,255,255,.92)}
  .ep .ep-eb2{font-size:12px;font-weight:600}
  .ep .ep-num,.ep .dt-dn{color:#8A6424}.ep .ep-dash{color:#7A5A20}
  .ep .ep-list{font-size:15px}
  .ep .ep-meta{font-size:12px}
  .ep .dt-stay{font-weight:600}
  .ep .ct-li-a{font-size:12.5px;color:#6E4F17;border-color:rgba(122,90,32,.6)}
  .ep .ct-li.on .ct-li-a{color:#F3D292}
}

@media (max-width:980px){
  #philosophy .pcard .pill small{font-size:12px}
  .ep .ct-stats span,.ep .ct-li-t small{font-size:12px}
  .ep .ct-zoom button.rs{font-size:12px!important;letter-spacing:0}
  .ep .ct-hint,.ep .ct-ne{font-size:15px}
  .ep .ct-v.on{color:#0F1E36!important}
  .ftr-in{font-size:13px}
}

/* D. touch >=981: desktop layout uses #id selectors; out-specify them for readability only */
@media (min-width:981px) and (hover:none) and (pointer:coarse){
  html body #about .eyebrow,html body #philosophy .eyebrow,html body #services .eyebrow,html body #future .eyebrow,html body #news .eyebrow,html body #contact .eyebrow{color:#7E5C1E;font-size:12px}
  html body #operation .eyebrow{color:#E3C383;font-size:12px}
  html body #philosophy .pill em{color:#9C7A3C}
  html body #services .svc-b em,html body #future .fcard .num,html body #contact .cx-n,html body .cx .cx-n{color:#8A6424}
  html body #services .svc h3 .svc-tag{color:#7E5C1E}
  html body #about .about-cap{background:linear-gradient(to top,rgba(6,10,22,.82),rgba(6,10,22,.5) 50%,rgba(6,10,22,0))}
  html body #about .about-cap span{color:rgba(255,255,255,.92)}
  html body #about .about-cap b,html body #about .about-cap span{text-shadow:0 1px 8px rgba(0,0,0,.5)}
  html body #news .nitem .meta{color:#7A5A20;font-weight:400}
  html body #future .goals-en{color:#8A4A0C}
  html body .sec .shead p,html body #philosophy .shead p,html body #philosophy .pcard p,html body #news .nw{color:#4F5B6E}
}
@media (min-width:981px) and (hover:none) and (pointer:coarse){
  html body #services .svc ul.svc-l li{font-size:14px}
  html body #philosophy .pcard p,html body .sec .shead p,html body #philosophy .shead p,html body #operation .op p,html body #future .fcard p,html body #news .nitem .nsum{font-size:14.5px}
}

/* hero caption pill: guaranteed contrast over bright photo areas (touch / tablet / phone only) */
@media (max-width:980px), (hover:none) and (pointer:coarse){
  .ep .ep-hero .ep-eb.ep-cap{background:rgba(10,22,51,.62);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border-color:rgba(227,195,131,.55)}
}
@media (max-width:980px), (hover:none) and (pointer:coarse){
  .ep .ep-hero .ep-eb{background:rgba(10,22,51,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);padding:6px 14px;border-radius:999px;display:inline-block}
  .ep .ep-dash{color:#5E4413}
  .ep .ct-route-t>span{font-size:12px}
}
@media (min-width:981px) and (hover:none) and (pointer:coarse){
  html body .ep .ep-eb,html body .ep .ep-mark{font-size:12px}
  html body .ep .ct-ne,html body .ep .ct-hint{font-size:14px}
  html body .ep .dt-note,html body .ep .dt-stay{font-size:14.5px}
}

/* ---------------------------------------------------------------------
   E. MOBILE ≤900 — 典藏 product cards (group / free / portfolios)
   iOS Safari: aspect-ratio on .ep-card collapses to 0 when the layer was
   [hidden] and images use loading=lazy inside .ep overflow scroller →
   heading shows, cards occupy no height. Desktop ≥901 untouched.
   --------------------------------------------------------------------- */
@media (max-width:900px){
  .ep{scroll-snap-type:none}
  .ep .ep-act,.ep .ep-hero{scroll-snap-align:none}
  .ep .ep-cards{
    display:flex!important;
    flex-direction:column;
    align-items:stretch;
    gap:16px;
    margin-top:28px!important;
    max-width:none;
    width:100%;
  }
  .ep .ep-card,
  .ep .ep-cards.r43 .ep-card,
  :is(#route-operation-modal,#service-detail-modal,#jeju-freestyle-modal,#jeju-group-modal,#product-design-modal) .ep-card,
  :is(#route-operation-modal,#service-detail-modal,#jeju-freestyle-modal,#jeju-group-modal,#product-design-modal) .ep-cards.r43 .ep-card{
    aspect-ratio:auto;
    height:auto;
    min-height:0;
    width:100%;
    border-radius:14px;
    overflow:hidden;
    background:#0F1E36;
  }
  /* padding-top aspect box — reliable intrinsic height on WebKit */
  .ep .ep-card::before{
    content:"";
    display:block;
    width:100%;
    padding-top:75%; /* 4:3 */
    pointer-events:none;
  }
  .ep .ep-card img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:0;
    pointer-events:none;
  }
  /* overlays must NOT steal taps from .ep-card-go (v89 regression) */
  .ep .ep-card-ov{z-index:1;pointer-events:none}
  .ep .ep-card-b{
    z-index:4; /* above go so pe:auto children (njmap) receive taps; pe:none lets rest fall through to go */
    pointer-events:none;
    min-height:0!important;
    max-height:100%;
    padding:16px 16px 14px;
    box-sizing:border-box;
  }
  .ep .ep-card-go{
    z-index:3;
    pointer-events:auto;
    -webkit-tap-highlight-color:rgba(197,168,128,.25);
  }
  .ep .ep-card .njmap-b.in-card{
    position:relative;
    z-index:5;
    pointer-events:auto;
    margin-top:12px;
    max-width:100%;
  }
  .ep .ep-card h4{
    white-space:normal!important;
    font-size:clamp(16px,4.6vw,19px);
    line-height:1.35;
    letter-spacing:.03em;
  }
  .ep .ep-card .ep-link{margin-top:6px}
  .ep .ep-act2{padding-bottom:64px}
  /* detail layers (.ep-sr) — mobile editorial polish, content unchanged */
  .ep.ep-sr .sr-hero{min-height:min(52svh,420px)}
  .ep.ep-sr .sr-hero-in{padding:0 22px clamp(36px,8svh,72px)}
  .ep.ep-sr .sr-h1{font-size:clamp(26px,7.2vw,36px);line-height:1.3}
  .ep.ep-sr .sr-sec{padding-left:20px;padding-right:20px}
  .ep.ep-sr .sr-hl{grid-template-columns:1fr;gap:16px}
  .ep.ep-sr .sr-day{grid-template-columns:1fr;gap:12px}
  .ep.ep-sr .sr-dimg{order:-1;border-radius:12px;overflow:hidden}
  .ep.ep-sr .sr-idx{display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;gap:8px;padding-bottom:8px}
  .ep.ep-sr .sr-idx a{flex:none}
  /* detail hero: map CTA contrast (atlas2 .njmap-b.in is navy-on-transparent; unreadable on dark hero) */
  .ep.ep-sr .sr-hero .njmap-b.in,
  .ep.ep-sr .sr-hero-in > .njmap-b.in{
    display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0;
    margin:14px auto 0;padding:11px 16px;min-height:42px;max-width:min(100%,340px);
    background:#C5A880;background-image:linear-gradient(180deg,#D4B896,#C5A880 55%,#B89768);
    border:1px solid rgba(243,210,146,.95);
    color:#0F1E36!important;-webkit-text-fill-color:#0F1E36;
    font-size:12.5px!important;font-weight:600;letter-spacing:.04em;line-height:1.35;
    white-space:normal;text-align:center;
    box-shadow:0 10px 28px -10px rgba(0,0,0,.55);
    pointer-events:auto;-webkit-tap-highlight-color:rgba(243,210,146,.25)
  }
  .ep.ep-sr .sr-hero .njmap-b.in .njmap-t1,
  .ep.ep-sr .sr-hero .njmap-b.in .njmap-t2,
  .ep.ep-sr .sr-hero .njmap-b.in .njmap-sep,
  .ep.ep-sr .sr-hero-in > .njmap-b.in .njmap-t1,
  .ep.ep-sr .sr-hero-in > .njmap-b.in .njmap-t2,
  .ep.ep-sr .sr-hero-in > .njmap-b.in .njmap-sep{
    color:#0F1E36!important;-webkit-text-fill-color:#0F1E36;white-space:nowrap;font-weight:600
  }
  .ep.ep-sr .sr-hero .njmap-b.in:active,
  .ep.ep-sr .sr-hero-in > .njmap-b.in:active{
    background:#B89768;background-image:none;border-color:#F3D292
  }
  /* detail hero eyebrow: fit 390px without awkward mid-phrase wrap */
  .ep.ep-sr .sr-eb{
    font-size:10px;letter-spacing:.12em;margin-right:-.12em;
    line-height:1.35;max-width:100%;
    white-space:normal;overflow-wrap:anywhere;text-wrap:balance
  }
  @media (max-width:400px){
    .ep.ep-sr .sr-eb{font-size:9.5px;letter-spacing:.08em;margin-right:-.08em}
  }
}

