/* Atlas Sebya v5 — Award Build
   Final art-direction + interaction layer. Loads after atlas-v4.css. */
.atlas-v5{
  --v5-bone:#f2eee7;
  --v5-bone-hi:#f8f4ee;
  --v5-ink:#171514;
  --v5-wine:#792844;
  --v5-wine-dark:#421823;
  --v5-wine-soft:#b9788e;
  --v5-blue:#4457ff;
  --v5-line:rgba(23,21,20,.145);
  --v5-ease:cubic-bezier(.22,.78,.18,1);
  --v5-ease-out:cubic-bezier(.16,1,.3,1);
  --v5-progress:0;
  background:var(--v5-bone);
}
.atlas-v5 *{scroll-margin-top:90px}
.atlas-v5 h1,.atlas-v5 h2,.atlas-v5 h3{text-wrap:balance}
.atlas-v5 p{text-wrap:pretty}

/* ---------------------------------------------------------
   Header: discreet product chrome + reading progress
   --------------------------------------------------------- */
.atlas-v5 .v4-header{
  height:72px;
  background:color-mix(in srgb,var(--v5-bone) 88%,transparent);
  border-bottom-color:rgba(23,21,20,.12);
  box-shadow:none!important;
  transition:background .35s ease,box-shadow .35s ease,border-color .35s ease;
}
.atlas-v5 .v4-header:after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:1px;
  transform-origin:left center;
  transform:scaleX(var(--v5-progress));
  background:linear-gradient(90deg,var(--v5-wine),#b8758b 60%,var(--v5-blue));
  transition:transform .08s linear;
}
.atlas-v5 .v4-header.is-scrolled{
  background:rgba(242,238,231,.92);
  box-shadow:0 12px 50px rgba(31,21,23,.045)!important;
}
.atlas-v5 .v4-wordmark{letter-spacing:.055em}
.atlas-v5 .v4-header .brand small{opacity:.68}
.atlas-v5 .v4-header .nav a{transition:color .25s ease,opacity .25s ease}
.atlas-v5 .v4-header .nav:hover a:not(:hover){opacity:.38}
.atlas-v5 .v4-header-cta{
  border-color:rgba(23,21,20,.18);
  background:rgba(255,255,255,.18);
  backdrop-filter:blur(10px);
}

/* ---------------------------------------------------------
   HERO — split editorial / cartographic field
   --------------------------------------------------------- */
.atlas-v5 .v4-hero{
  min-height:calc(100svh - 72px);
  grid-template-columns:minmax(420px,.96fr) minmax(560px,1.04fr);
  gap:0;
  padding:0 0 0 3.6vw;
  background:var(--v5-bone);
  isolation:isolate;
  overflow:hidden;
}
.atlas-v5 .v4-hero:before{
  content:"";
  position:absolute;
  inset:0 0 0 49%;
  width:auto;height:auto;
  border-radius:0;
  z-index:0;
  background:
    radial-gradient(circle at 39% 53%,rgba(247,239,234,.58) 0 5%,rgba(247,239,234,.18) 14%,transparent 29%),
    radial-gradient(ellipse at 58% 43%,rgba(140,48,77,.64),transparent 34%),
    radial-gradient(ellipse at 93% 18%,rgba(139,88,101,.32),transparent 34%),
    conic-gradient(from 188deg at 49% 51%,#111718 0deg,#27171d 56deg,#72283f 112deg,#311821 168deg,#151718 235deg,#5e2639 314deg,#111718 360deg);
  filter:none;
  pointer-events:none;
}
.atlas-v5 .v4-hero:after{
  content:"";
  position:absolute;
  inset:-14% -8% -14% 44%;
  z-index:1;
  opacity:.88;
  pointer-events:none;
  background:
    repeating-radial-gradient(ellipse at 57% 49%,rgba(255,255,255,.055) 0 1px,transparent 1px 54px),
    conic-gradient(from 242deg at 50% 54%,transparent 0 14%,rgba(255,255,255,.06) 14.4%,transparent 15% 27%,rgba(145,56,83,.17) 29%,transparent 32% 100%);
  transform:rotate(-5deg) scale(1.03);
  mask-image:radial-gradient(ellipse at 61% 50%,#000 0 72%,transparent 88%);
}
.atlas-v5 .v4-hero-grid{
  z-index:2;
  background-size:84px 84px;
  opacity:.82;
  mask-image:linear-gradient(90deg,#000 0 47%,rgba(0,0,0,.12) 66%,transparent 91%);
}
.atlas-v5 .v4-hero-noise{z-index:3;opacity:.025;mix-blend-mode:multiply}
.atlas-v5 .v4-hero-copy{
  z-index:5;
  max-width:620px;
  padding:clamp(48px,7vh,92px) 40px clamp(48px,5vh,76px) 0;
}
.atlas-v5 .v4-systemline{
  width:min(100%,500px);
  margin-bottom:clamp(32px,5vh,64px);
  color:#817a74;
}
.atlas-v5 .v4-eyebrow{font-size:8px;letter-spacing:.235em;margin-bottom:20px}
.atlas-v5 .v4-hero h1{
  max-width:570px;
  font-size:clamp(62px,5.15vw,93px);
  line-height:.91;
  letter-spacing:-.052em;
  text-wrap:balance;
}
.atlas-v5 .v4-hero h1 em{
  color:var(--v5-wine);
  font-style:italic;
  display:inline-block;
  transform:translateX(.012em);
}
.atlas-v5 .v4-hero .hero-lead{
  max-width:430px;
  margin-top:28px;
  font-size:14px;
  line-height:1.62;
  color:#4c4743;
}
.atlas-v5 .v4-date-form{margin-top:31px;max-width:500px}
.atlas-v5 .v4-date-form label{
  background:rgba(255,255,255,.2);
  border-color:rgba(23,21,20,.18);
  transition:border-color .25s ease,background .25s ease,transform .25s ease;
}
.atlas-v5 .v4-date-form label:focus-within{
  border-color:rgba(121,40,68,.58);
  background:rgba(255,255,255,.55);
  transform:translateY(-1px);
}
.atlas-v5 .v4-date-form input{caret-color:var(--v5-wine)}
.atlas-v5 .v4-date-form button,.atlas-v5 .v4-date-form button:hover{
  background:var(--v5-wine)!important;
  box-shadow:0 12px 28px rgba(121,40,68,.15);
  transition:transform .3s var(--v5-ease),box-shadow .3s ease,background .25s ease!important;
}
.atlas-v5 .v4-date-form button:hover{transform:translateY(-2px)!important;box-shadow:0 16px 34px rgba(121,40,68,.24)}
.atlas-v5 .v4-date-form .hero-build-row:after{letter-spacing:.035em;color:#292523}
.atlas-v5 .v4-hero-meta{max-width:430px}
.atlas-v5 .v4-hero-meta>div{min-height:46px}
.atlas-v5 .v4-scroll-cue{z-index:7;bottom:20px;left:3.6vw;color:#756e68}

/* right stage: no visible card — one continuous field */
.atlas-v5 .v4-map{
  z-index:5;
  width:min(47vw,720px);
  max-width:none;
  justify-self:center;
  margin-right:1.5vw;
  aspect-ratio:1;
  transform:translateZ(0);
}
.atlas-v5 .v4-map:before{
  inset:-2%;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%,rgba(255,246,240,.13),transparent 32%),
    radial-gradient(circle at 50% 50%,transparent 0 57%,rgba(255,255,255,.045) 58%,transparent 59%);
  box-shadow:none;
}
.atlas-v5 .v4-map:after{inset:3%;opacity:.72;filter:blur(18px)}
.atlas-v5 .v4-map-halo{inset:3%;opacity:.72;filter:blur(32px)}
.atlas-v5 .v4-map svg{
  inset:9%;width:82%;height:82%;
  filter:drop-shadow(0 14px 28px rgba(12,10,10,.18));
}
.atlas-v5 .v4-map .ring,.atlas-v5 .v4-map .line{stroke:rgba(255,249,245,.34)}
.atlas-v5 .v4-map .ring.faint{stroke:rgba(255,249,245,.13)}
.atlas-v5 .v4-map .line.strong{stroke:rgba(255,255,255,.57)}
.atlas-v5 .v4-map .wine-line{stroke:#d66d91;filter:drop-shadow(0 0 4px rgba(214,109,145,.25))}
.atlas-v5 .v4-map .rose-line{stroke:rgba(255,218,231,.72)}
.atlas-v5 .v4-map .interactive-node{transition:transform .42s var(--v5-ease),opacity .3s ease,filter .3s ease}
.atlas-v5 .v4-map.has-node-focus .interactive-node:not(.is-focus){opacity:.24}
.atlas-v5 .v4-map .interactive-node.is-focus{transform:scale(1.16);filter:drop-shadow(0 0 12px rgba(255,255,255,.22))}
.atlas-v5 .v4-map .interactive-node.is-focus circle{stroke:#fff;stroke-width:2}
.atlas-v5 .v4-map .node.main circle{fill:#812c4a;stroke:#e3a9bc}
.atlas-v5 .v4-map .atlas-hero-insight{
  right:7%;bottom:15%;width:218px;
  background:rgba(22,17,18,.72)!important;
  border-color:rgba(255,255,255,.13)!important;
  box-shadow:0 14px 50px rgba(8,6,7,.2);
}
.atlas-v5 .v4-map .atlas-coordinate{opacity:.78}
.atlas-v5 .v4-map .atlas-route-caption{opacity:.75}

.atlas-v5 .v5-map-field{position:absolute;inset:1%;pointer-events:none;z-index:-1;overflow:hidden;border-radius:50%}
.atlas-v5 .v5-map-field i{position:absolute;border:1px solid rgba(255,255,255,.07);border-radius:50%;transform-origin:center}
.atlas-v5 .v5-map-field i:nth-child(1){width:128%;height:55%;left:-12%;top:22%;transform:rotate(14deg)}
.atlas-v5 .v5-map-field i:nth-child(2){width:112%;height:42%;left:-6%;top:34%;transform:rotate(-22deg)}
.atlas-v5 .v5-map-field i:nth-child(3){width:96%;height:35%;left:1%;top:40%;transform:rotate(56deg)}
.atlas-v5 .v5-map-field i:nth-child(4){width:76%;height:76%;left:12%;top:12%;border-style:dashed;opacity:.65}
.atlas-v5 .v5-map-scan{
  position:absolute;left:12%;right:12%;top:50%;height:1px;z-index:4;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.32) 22%,rgba(215,110,145,.7) 51%,rgba(255,255,255,.2) 75%,transparent);
  opacity:.16;
  transform:translateY(-50%);
}

/* Hero / result motion language */
.atlas-v5.v5-motion-ready .v4-hero-copy>*{animation:v5HeroReveal .85s var(--v5-ease-out) both}
.atlas-v5.v5-motion-ready .v4-hero-copy>*:nth-child(1){animation-delay:.03s}
.atlas-v5.v5-motion-ready .v4-hero-copy>*:nth-child(2){animation-delay:.09s}
.atlas-v5.v5-motion-ready .v4-hero-copy>*:nth-child(3){animation-delay:.15s}
.atlas-v5.v5-motion-ready .v4-hero-copy>*:nth-child(4){animation-delay:.21s}
.atlas-v5.v5-motion-ready .v4-hero-copy>*:nth-child(5){animation-delay:.27s}
.atlas-v5.v5-motion-ready .v4-hero-copy>*:nth-child(6){animation-delay:.33s}
.atlas-v5.v5-motion-ready .v4-map{animation:v5MapReveal 1.15s var(--v5-ease-out) .12s both}
.atlas-v5.v5-motion-ready .v4-map .line,
.atlas-v5.v5-motion-ready .v4-map .wine-line,
.atlas-v5.v5-motion-ready .v4-map .rose-line{stroke-dasharray:900;stroke-dashoffset:900;animation:v5Draw 1.5s var(--v5-ease-out) .42s forwards}
.atlas-v5.v5-motion-ready .v4-map .interactive-node{animation:v5NodeIn .55s var(--v5-ease-out) both}
.atlas-v5.v5-motion-ready .v4-map .interactive-node:nth-of-type(1){animation-delay:.72s}
.atlas-v5.v5-motion-ready .v4-map .interactive-node:nth-of-type(2){animation-delay:.80s}
.atlas-v5.v5-motion-ready .v4-map .interactive-node:nth-of-type(3){animation-delay:.86s}
.atlas-v5.v5-motion-ready .v4-map .interactive-node:nth-of-type(4){animation-delay:.92s}
.atlas-v5.v5-motion-ready .v4-map .interactive-node:nth-of-type(5){animation-delay:.98s}
.atlas-v5 .v4-map.is-atlas-built .v5-map-scan{animation:v5Scan 1.2s var(--v5-ease-out) 1}
.atlas-v5 .v4-map.is-atlas-built .interactive-node{animation:v5NodeCalc .6s var(--v5-ease-out) both}
.atlas-v5 .v4-map.is-atlas-built .interactive-node:nth-of-type(2){animation-delay:.08s}
.atlas-v5 .v4-map.is-atlas-built .interactive-node:nth-of-type(3){animation-delay:.14s}
.atlas-v5 .v4-map.is-atlas-built .interactive-node:nth-of-type(4){animation-delay:.20s}
.atlas-v5 .v4-map.is-atlas-built .interactive-node:nth-of-type(5){animation-delay:.26s}
.atlas-v5.has-atlas-result .v4-map .node.main circle{stroke:var(--v5-blue);stroke-width:1.7;filter:drop-shadow(0 0 15px rgba(68,87,255,.26))}

/* ---------------------------------------------------------
   Calculator/result — product surface, not a dark section
   --------------------------------------------------------- */
.atlas-v5 .v4-calculator{
  position:relative;
  padding:92px 3.6vw 110px;
  grid-template-columns:minmax(260px,.72fr) minmax(500px,1.28fr);
  gap:8vw;
  background:#f8f4ee;
  color:var(--v5-ink);
  overflow:hidden;
}
.atlas-v5 .v4-calculator:before{
  content:"";position:absolute;right:-17vw;top:-22vw;width:56vw;aspect-ratio:1;border-radius:50%;pointer-events:none;
  background:repeating-radial-gradient(circle,rgba(121,40,68,.07) 0 1px,transparent 1px 38px);
  mask-image:radial-gradient(circle,#000,transparent 67%);
}
.atlas-v5 .v4-calculator .calc-intro{position:relative;z-index:2}
.atlas-v5 .v4-calculator .calc-intro h2{font-size:clamp(58px,4.8vw,82px);line-height:.91}
.atlas-v5 .v4-calculator .calc-intro p{font-size:13px;line-height:1.68;color:#655e58}
.atlas-v5 .v4-inline-calc{
  position:relative;z-index:2;
  padding:30px;
  border:1px solid rgba(23,21,20,.15);
  background:rgba(255,255,255,.46);
  box-shadow:0 24px 80px rgba(64,40,47,.055);
  backdrop-filter:blur(5px);
}
.atlas-v5 .v4-inline-calc .date-grid input{color:var(--v5-ink)}
.atlas-v5 .v4-inline-calc>button{background:var(--v5-wine);transition:transform .35s var(--v5-ease),box-shadow .35s ease}
.atlas-v5 .v4-inline-calc>button:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(121,40,68,.15)}
.atlas-v5 .v4-result{
  grid-column:1/-1;
  margin-top:66px;
  background:rgba(255,255,255,.62);
  border:1px solid rgba(23,21,20,.13);
  box-shadow:0 28px 90px rgba(56,38,44,.065);
}
.atlas-v5 .v4-result.is-building{overflow:hidden;position:relative}
.atlas-v5 .v4-result.is-building:after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(110deg,transparent 25%,rgba(121,40,68,.075) 45%,rgba(68,87,255,.055) 55%,transparent 74%);
  transform:translateX(-100%);animation:v5ResultSweep .9s var(--v5-ease-out) both;
}
.atlas-v5 .v4-result .calc-result-zones button{transition:background .28s ease,color .28s ease,transform .28s var(--v5-ease)}
.atlas-v5 .v4-result .calc-result-zones button:hover{background:rgba(121,40,68,.045);transform:translateY(-2px)}

/* ---------------------------------------------------------
   Reading route — scroll-storytelling with synchronized map
   --------------------------------------------------------- */
.atlas-v5 .v4-route{padding:112px 3.6vw 132px;background:#efebe4}
.atlas-v5 .v4-route .section-title{margin-bottom:72px;grid-template-columns:.56fr 1.44fr}
.atlas-v5 .v4-route .section-title h2{font-size:clamp(58px,5vw,86px);line-height:.9}
.atlas-v5 .v5-route-stage{
  display:grid;
  grid-template-columns:minmax(360px,.78fr) minmax(0,1.22fr);
  gap:6vw;
  align-items:start;
}
.atlas-v5 .v5-route-atlas{
  position:sticky;
  top:112px;
  min-height:610px;
  border:1px solid rgba(23,21,20,.14);
  background:
    linear-gradient(rgba(23,21,20,.026) 1px,transparent 1px),
    linear-gradient(90deg,rgba(23,21,20,.026) 1px,transparent 1px),
    rgba(248,244,238,.56);
  background-size:58px 58px;
  padding:22px;
  overflow:hidden;
  box-shadow:0 28px 80px rgba(46,31,36,.045);
}
.atlas-v5 .v5-route-atlas:before{
  content:"";position:absolute;inset:10% 4%;pointer-events:none;
  background:radial-gradient(circle at 50% 46%,rgba(121,40,68,.11),transparent 34%),radial-gradient(circle at 52% 47%,rgba(68,87,255,.04),transparent 16%);
  filter:blur(6px);
}
.atlas-v5 .v5-route-atlas-head{position:relative;z-index:2;display:flex;justify-content:space-between;gap:20px;padding-bottom:14px;border-bottom:1px solid var(--v5-line);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:7px;letter-spacing:.14em;color:#847d77}
.atlas-v5 .v5-route-atlas-head b{font-weight:500;color:var(--v5-wine)}
.atlas-v5 .v5-route-atlas-visual{position:relative;height:360px;margin-top:10px}
.atlas-v5 .v5-route-atlas-visual svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.atlas-v5 .v5-ra-ring,.atlas-v5 .v5-ra-line,.atlas-v5 .v5-ra-route{fill:none;stroke:rgba(23,21,20,.19);stroke-width:.8;vector-effect:non-scaling-stroke}
.atlas-v5 .v5-ra-ring.faint{stroke-dasharray:2 6;opacity:.55}
.atlas-v5 .v5-ra-route{stroke:var(--v5-wine-soft);stroke-width:1.15;stroke-dasharray:4 5;opacity:.5}
.atlas-v5 .v5-ra-node{transition:opacity .35s ease,transform .45s var(--v5-ease);transform-box:fill-box;transform-origin:center}
.atlas-v5 .v5-ra-node circle{fill:#f7f2ec;stroke:#736b65;stroke-width:1.1;transition:fill .3s ease,stroke .3s ease,r .3s ease}
.atlas-v5 .v5-ra-node text{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;text-anchor:middle;fill:#5e5853}
.atlas-v5 .v5-ra-node.is-active{transform:scale(1.13)}
.atlas-v5 .v5-ra-node.is-active circle{fill:var(--v5-wine);stroke:var(--v5-wine)}
.atlas-v5 .v5-ra-node.is-active text{fill:#fff}
.atlas-v5 .v5-route-orbit{position:absolute;border:1px solid rgba(121,40,68,.08);border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%)}
.atlas-v5 .v5-route-orbit.orbit-one{width:76%;aspect-ratio:1}
.atlas-v5 .v5-route-orbit.orbit-two{width:48%;aspect-ratio:1;border-style:dashed}
.atlas-v5 .v5-route-atlas-copy{position:relative;z-index:2;border-top:1px solid var(--v5-line);padding-top:18px;min-height:116px}
.atlas-v5 .v5-route-atlas-copy small{display:block;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:7px;letter-spacing:.14em;color:var(--v5-wine)}
.atlas-v5 .v5-route-atlas-copy strong{display:block;font-family:"Noto Serif Display",Georgia,serif;font-size:34px;font-weight:400;letter-spacing:-.03em;margin-top:5px}
.atlas-v5 .v5-route-atlas-copy p{max-width:360px;font-size:11px;line-height:1.58;color:#706861;margin:7px 0 0}
.atlas-v5 .v5-route-progress{position:absolute;left:0;right:0;bottom:0;height:2px;background:rgba(23,21,20,.07)}
.atlas-v5 .v5-route-progress i{display:block;height:100%;width:20%;background:linear-gradient(90deg,var(--v5-wine),var(--v5-blue));transition:width .55s var(--v5-ease)}
.atlas-v5 .v4-route-list{border-top:1px solid var(--v5-line)}
.atlas-v5 .v4-route-list a{
  position:relative;
  grid-template-columns:54px minmax(150px,.8fr) minmax(0,1.2fr) 96px;
  min-height:128px;
  padding:0 8px 0 0;
  border-bottom-color:var(--v5-line);
  transition:opacity .3s ease,padding .35s var(--v5-ease),background .3s ease;
}
.atlas-v5 .v4-route-list a:before{content:"";position:absolute;left:0;top:50%;width:0;height:1px;background:var(--v5-wine);transition:width .35s var(--v5-ease)}
.atlas-v5 .v4-route-list:hover a:not(:hover),.atlas-v5 .v4-route-list a:not(.is-active-route){opacity:.62}
.atlas-v5 .v4-route-list a.is-active-route,.atlas-v5 .v4-route-list a:hover{opacity:1;padding-left:18px;background:rgba(255,255,255,.26)}
.atlas-v5 .v4-route-list a.is-active-route:before,.atlas-v5 .v4-route-list a:hover:before{width:10px}
.atlas-v5 .v4-route-list h3{font-size:38px}

/* ---------------------------------------------------------
   Arcana index — tactile editorial catalogue
   --------------------------------------------------------- */
.atlas-v5 .v4-arcana{padding:112px 3.6vw 124px;background:#f7f3ed}
.atlas-v5 .v4-arcana-stage{position:relative;min-height:560px;background:rgba(23,21,20,.12);border-color:rgba(23,21,20,.12);box-shadow:0 30px 90px rgba(50,32,38,.045)}
.atlas-v5 .v5-arcana-signal{position:absolute;top:-28px;right:0;display:flex;gap:16px;align-items:center;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:6px;letter-spacing:.13em;color:#8b837d}
.atlas-v5 .v5-arcana-signal b{color:var(--v5-wine);font-weight:500}
.atlas-v5 .v4-arcana-grid a{position:relative;overflow:hidden;background:#f8f4ee;transition:background .35s ease,color .35s ease,transform .35s var(--v5-ease),box-shadow .35s ease}
.atlas-v5 .v4-arcana-grid a:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--v5-wine);transform:scaleX(0);transform-origin:left;transition:transform .35s var(--v5-ease)}
.atlas-v5 .v4-arcana-grid a:hover,.atlas-v5 .v4-arcana-grid a:focus,.atlas-v5 .v4-arcana-grid a.is-active{background:#221a1d;color:#fff;z-index:2;box-shadow:0 12px 28px rgba(20,13,16,.12)}
.atlas-v5 .v4-arcana-grid a:hover:after,.atlas-v5 .v4-arcana-grid a:focus:after,.atlas-v5 .v4-arcana-grid a.is-active:after{transform:scaleX(1)}
.atlas-v5 .v4-arcana-grid a:hover span,.atlas-v5 .v4-arcana-grid a:focus span,.atlas-v5 .v4-arcana-grid a.is-active span{color:#cfc2c5}
.atlas-v5 .v4-arcana-preview{
  background:
    linear-gradient(rgba(23,21,20,.03) 1px,transparent 1px),
    linear-gradient(90deg,rgba(23,21,20,.03) 1px,transparent 1px),
    #f0ebe4;
  background-size:54px 54px;
  min-height:560px;
}
.atlas-v5 .v4-arcana-preview:before{content:"";position:absolute;width:72%;aspect-ratio:1;left:13%;top:4%;border-radius:50%;background:radial-gradient(circle,rgba(121,40,68,.13),transparent 62%);filter:blur(8px)}
.atlas-v5 .v4-arcana-ghost{opacity:.075;filter:blur(.1px);transition:transform .55s var(--v5-ease),opacity .35s ease}
.atlas-v5 .v4-arcana-preview:hover .v4-arcana-ghost{transform:translate(-50%,-54%) scale(1.035);opacity:.1}
.atlas-v5 .v4-arcana-orbit{transition:transform 12s linear}
.atlas-v5 .v4-arcana-preview:hover .v4-arcana-orbit{transform:translate(-50%,-50%) rotate(24deg)}
.atlas-v5 .v4-arcana-preview h3{font-size:43px;line-height:1}
.atlas-v5 .v4-arcana-preview a{transition:letter-spacing .3s var(--v5-ease),color .3s ease}
.atlas-v5 .v4-arcana-preview a:hover{letter-spacing:.15em;color:var(--v5-wine)}

/* ---------------------------------------------------------
   Methodology / journal / artifact refinements
   --------------------------------------------------------- */
.atlas-v5 .v4-method{
  padding:110px 3.6vw 120px;
  background:#e9e2dc;
  border-top:1px solid rgba(23,21,20,.09);
}
.atlas-v5 .v4-method:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(255,255,255,.23),transparent 26% 72%,rgba(121,40,68,.03))}
.atlas-v5 .v5-method-coordinate{position:absolute;right:3.6vw;bottom:26px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:6px;letter-spacing:.14em;color:#8d827f}
.atlas-v5 .v4-method-diagram{opacity:.24;transition:transform .8s var(--v5-ease)}
.atlas-v5 .v4-method.is-inview .v4-method-diagram{transform:translate(-2%,2%) rotate(3deg)}
.atlas-v5 .v4-method-steps>div{transition:padding .3s var(--v5-ease),background .3s ease}
.atlas-v5 .v4-method-steps>div:hover{padding-left:12px;background:rgba(255,255,255,.17)}

.atlas-v5 .v4-journal{padding:112px 3.6vw 126px;background:#f7f3ed}
.atlas-v5 .v4-cover{transition:transform .55s var(--v5-ease),box-shadow .55s ease}
.atlas-v5 .v4-cover:before{transition:transform .7s var(--v5-ease),opacity .4s ease}
.atlas-v5 .v4-cover:after{transition:transform .8s var(--v5-ease),opacity .4s ease}
.atlas-v5 .v4-articles .article:hover .v4-cover{transform:translateY(-5px);box-shadow:0 20px 45px rgba(40,26,31,.09)}
.atlas-v5 .v4-articles .article:hover .v4-cover:before{transform:translate(-50%,-50%) scale(1.15);opacity:.2}
.atlas-v5 .v4-articles .article:hover .v4-cover:after{transform:translate(-50%,-50%) scale(.88);opacity:.28}
.atlas-v5 .v4-articles .article h3{transition:color .25s ease}
.atlas-v5 .v4-articles .article:hover h3{color:var(--v5-wine)}

.atlas-v5 .v4-reading{
  padding:112px 3.6vw 118px;
  background:#eee8e1;
  border-top:1px solid var(--v5-line);
}
.atlas-v5 .v4-reading-artifact{transition:transform .45s var(--v5-ease);transform-style:preserve-3d}
.atlas-v5 .v4-reading-artifact:hover{transform:rotateX(2deg) rotateY(-3deg) translateY(-3px)}
.atlas-v5 .v4-report-card{box-shadow:0 34px 76px rgba(55,25,36,.18)}
.atlas-v5 .v4-report-card.card-front{background:linear-gradient(155deg,#241016 0,#4c1a2b 40%,#7a2a47 72%,#2b101b 100%)}
.atlas-v5 .v4-report-card.card-front:after{content:"";position:absolute;inset:14px;border:1px solid rgba(255,255,255,.08);pointer-events:none}
.atlas-v5 .v5-report-serial{position:absolute;left:18px;bottom:18px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:5.5px;letter-spacing:.12em;font-style:normal;color:rgba(255,255,255,.42)}
.atlas-v5 .v4-reading .reading-copy>a{transition:gap .35s var(--v5-ease),color .25s ease}
.atlas-v5 .v4-reading .reading-copy>a:hover{gap:64px;color:var(--v5-wine)}

.atlas-v5 .v4-closing{padding-top:150px;padding-bottom:166px;background:#f2eee7}
.atlas-v5 .v4-closing-orbit{animation:v5ClosingOrbit 24s linear infinite}
.atlas-v5 .v4-closing>a{transition:background .3s ease,color .3s ease,gap .35s var(--v5-ease),transform .35s var(--v5-ease)}
.atlas-v5 .v4-closing>a:hover{gap:60px;transform:translateY(-2px)}

/* section reveal: masked editorial rather than plain fade */
.atlas-v5.js-ready .v4-route:not(.is-inview),
.atlas-v5.js-ready .v4-arcana:not(.is-inview),
.atlas-v5.js-ready .v4-method:not(.is-inview),
.atlas-v5.js-ready .v4-journal:not(.is-inview),
.atlas-v5.js-ready .v4-reading:not(.is-inview),
.atlas-v5.js-ready .v4-closing:not(.is-inview){opacity:.001;transform:translateY(28px)}
.atlas-v5 .v4-route,.atlas-v5 .v4-arcana,.atlas-v5 .v4-method,.atlas-v5 .v4-journal,.atlas-v5 .v4-reading,.atlas-v5 .v4-closing{transition:opacity .9s var(--v5-ease-out),transform .9s var(--v5-ease-out)}

/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */
@media (min-width:621px) and (max-width:1100px){
  .atlas-v5 .v4-header{padding-left:4vw;padding-right:4vw}
  .atlas-v5 .v4-hero{
    grid-template-columns:minmax(0,1fr)!important;
    min-height:auto;
    padding:54px 4.5vw 62px;
    gap:38px;
  }
  .atlas-v5 .v4-hero:before{
    inset:auto 0 0 0;
    height:47%;
    background:
      linear-gradient(180deg,var(--v5-bone) 0,rgba(242,238,231,.6) 12%,transparent 33%),
      radial-gradient(circle at 50% 54%,rgba(248,240,235,.26),transparent 22%),
      radial-gradient(circle at 57% 54%,rgba(128,43,69,.58),transparent 35%),
      conic-gradient(from 190deg at 53% 57%,#111718,#3a1b25 23%,#742940 43%,#171719 64%,#4b2030 83%,#111718);
  }
  .atlas-v5 .v4-hero:after{inset:50% -12% -8% -12%;mask-image:linear-gradient(180deg,transparent 0,#000 20%)}
  .atlas-v5 .v4-hero-copy{padding:0;max-width:700px}
  .atlas-v5 .v4-hero h1{font-size:clamp(64px,8.8vw,86px);max-width:650px}
  .atlas-v5 .v4-map{width:min(88vw,690px);margin:0 auto;justify-self:center}
  .atlas-v5 .v4-calculator{padding-left:4.5vw;padding-right:4.5vw;grid-template-columns:1fr;gap:32px}
  .atlas-v5 .v5-route-stage{grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr);gap:4vw}
  .atlas-v5 .v5-route-atlas{top:90px;min-height:530px;padding:18px}
  .atlas-v5 .v5-route-atlas-visual{height:300px}
  .atlas-v5 .v4-route-list a{grid-template-columns:42px 1fr 48px;min-height:118px;gap:12px}
  .atlas-v5 .v4-route-list a p{grid-column:2/4;margin-top:-16px;padding-bottom:14px}
  .atlas-v5 .v4-route-list a i{grid-column:3;grid-row:1;font-size:0}
  .atlas-v5 .v4-route-list a i:after{content:"→";font-size:17px}
}

/* ---------------------------------------------------------
   Mobile: own experience, not squeezed desktop
   --------------------------------------------------------- */
@media (max-width:620px){
  .atlas-v5 .v4-header{height:62px;padding:0 18px;background:rgba(242,238,231,.95)}
  .atlas-v5 .v4-hero{
    grid-template-columns:minmax(0,1fr)!important;
    min-height:auto;
    padding:31px 18px 0;
    gap:28px;
    background:var(--v5-bone);
    overflow:hidden;
  }
  .atlas-v5 .v4-hero:before,.atlas-v5 .v4-hero:after{display:none}
  .atlas-v5 .v4-hero-copy{padding:0;max-width:none}
  .atlas-v5 .v4-eyebrow{font-size:6.5px;margin-bottom:13px}
  .atlas-v5 .v4-hero h1{font-size:clamp(43px,12.4vw,55px);line-height:.91;letter-spacing:-.048em;max-width:390px}
  .atlas-v5 .v4-hero .hero-lead{font-size:13px;line-height:1.58;max-width:355px;margin-top:22px}
  .atlas-v5 .v4-date-form{margin-top:24px;max-width:100%}
  .atlas-v5 .v4-date-form .hero-build-row{grid-template-columns:48px 6px 48px 6px 82px 46px;gap:5px}
  .atlas-v5 .v4-date-form label{padding:6px 7px;min-height:46px;background:rgba(255,255,255,.35)}
  .atlas-v5 .v4-date-form .hero-build-row input{font-size:21px!important}
  .atlas-v5 .v4-date-form button,.atlas-v5 .v4-date-form button:hover{width:46px!important;min-width:46px!important;height:46px!important}
  .atlas-v5 .v4-hero-meta{margin-top:23px;max-width:100%}
  .atlas-v5 .v4-hero-meta strong{font-size:20px}
  .atlas-v5 .v4-hero-meta span{font-size:6.2px;line-height:1.3}
  .atlas-v5 .v4-map{
    width:calc(100% + 36px);
    max-width:none;
    margin:2px -18px 0;
    min-width:0;
    aspect-ratio:.94;
    border-radius:0;
    overflow:hidden;
    background:
      radial-gradient(circle at 49% 48%,rgba(247,238,232,.2) 0 5%,transparent 24%),
      radial-gradient(ellipse at 62% 48%,rgba(137,46,74,.55),transparent 36%),
      radial-gradient(ellipse at 91% 9%,rgba(173,116,129,.19),transparent 33%),
      conic-gradient(from 188deg at 52% 54%,#101617 0,#29171e 19%,#6f273f 39%,#25161d 58%,#4b2030 75%,#101617 100%);
    box-shadow:none;
  }
  .atlas-v5 .v4-map:before{display:block;inset:-5%;background:repeating-radial-gradient(circle,rgba(255,255,255,.045) 0 1px,transparent 1px 38px)}
  .atlas-v5 .v4-map:after{inset:-10%;opacity:.68}
  .atlas-v5 .v4-map svg{inset:7%;width:86%;height:86%}
  .atlas-v5 .v4-map .visual-label{left:7%;top:7%}
  .atlas-v5 .v4-map .atlas-route-caption{right:6%;bottom:5%;font-size:4.5px}
  .atlas-v5 .v4-map .visual-note{display:none}
  .atlas-v5 .v4-map .atlas-hero-insight{
    display:block!important;
    left:16px;right:16px;bottom:16px;width:auto;
    transform:translateY(calc(100% + 30px));
    opacity:0;pointer-events:none;
    transition:transform .45s var(--v5-ease),opacity .35s ease;
    padding:14px 16px!important;
  }
  .atlas-v5 .v4-map .atlas-hero-insight:not(:empty){transform:translateY(0);opacity:1;pointer-events:auto}
  .atlas-v5 .v4-scroll-cue{display:none}

  .atlas-v5 .v4-calculator{padding:72px 18px 82px;grid-template-columns:1fr;gap:30px}
  .atlas-v5 .v4-inline-calc{padding:22px 18px}
  .atlas-v5 .v4-result{margin-top:44px;box-shadow:0 18px 55px rgba(56,38,44,.055)}

  .atlas-v5 .v4-route{padding:78px 18px 88px}
  .atlas-v5 .v4-route .section-title{margin-bottom:38px}
  .atlas-v5 .v5-route-stage{grid-template-columns:1fr;gap:22px}
  .atlas-v5 .v5-route-atlas{position:relative;top:auto;min-height:0;padding:16px;background-size:48px 48px}
  .atlas-v5 .v5-route-atlas-visual{height:250px;margin-top:4px}
  .atlas-v5 .v5-route-atlas-copy{min-height:98px;padding-top:14px}
  .atlas-v5 .v5-route-atlas-copy strong{font-size:29px}
  .atlas-v5 .v5-route-atlas-copy p{font-size:10.5px}
  .atlas-v5 .v4-route-list a{grid-template-columns:40px 1fr 34px;min-height:108px;gap:8px;padding-right:0}
  .atlas-v5 .v4-route-list a h3{font-size:31px}
  .atlas-v5 .v4-route-list a p{grid-column:2/4;margin:0 0 12px;font-size:11px}
  .atlas-v5 .v4-route-list a i{grid-column:3;grid-row:1;font-size:0}
  .atlas-v5 .v4-route-list a i:after{content:"→";font-size:16px}
  .atlas-v5 .v4-route-list:hover a:not(:hover),.atlas-v5 .v4-route-list a:not(.is-active-route){opacity:1}
  .atlas-v5 .v4-route-list a.is-active-route{background:rgba(255,255,255,.35);padding-left:10px}

  .atlas-v5 .v4-arcana{padding:78px 18px 88px}
  .atlas-v5 .v5-arcana-signal{display:none}
  .atlas-v5 .v4-arcana-stage{grid-template-columns:1fr;min-height:0}
  .atlas-v5 .v4-arcana-preview{min-height:330px;padding:26px 22px}
  .atlas-v5 .v4-arcana-preview h3{font-size:34px}
  .atlas-v5 .v4-arcana-grid a{min-height:76px}

  .atlas-v5 .v4-method{padding:78px 18px 92px}
  .atlas-v5 .v5-method-coordinate{display:none}
  .atlas-v5 .v4-journal{padding:78px 18px 92px}
  .atlas-v5 .v4-reading{padding:80px 18px 96px}
  .atlas-v5 .v4-reading-artifact{height:340px}
  .atlas-v5 .v4-closing{padding:106px 18px 122px}
  .atlas-v5 .v4-closing h2{font-size:clamp(46px,13vw,57px)}
}

@media (max-width:370px){
  .atlas-v5 .v4-hero{padding-left:15px;padding-right:15px}
  .atlas-v5 .v4-map{width:calc(100% + 30px);margin-left:-15px;margin-right:-15px}
  .atlas-v5 .v4-hero h1{font-size:42px}
  .atlas-v5 .v4-date-form .hero-build-row{grid-template-columns:44px 5px 44px 5px 74px 44px;gap:4px}
  .atlas-v5 .v4-date-form button,.atlas-v5 .v4-date-form button:hover{width:44px!important;min-width:44px!important;height:44px!important}
}

/* Reduced motion: keep the visual language, remove movement. */
@media (prefers-reduced-motion:reduce){
  .atlas-v5 *, .atlas-v5 *:before, .atlas-v5 *:after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}
}

@keyframes v5HeroReveal{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes v5MapReveal{from{opacity:0;transform:scale(.975) translateX(18px);filter:blur(8px)}to{opacity:1;transform:none;filter:none}}
@keyframes v5Draw{to{stroke-dashoffset:0}}
@keyframes v5NodeIn{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}
@keyframes v5NodeCalc{0%{transform:scale(.72);opacity:.35}55%{transform:scale(1.18);opacity:1}100%{transform:scale(1);opacity:1}}
@keyframes v5Scan{0%{top:12%;opacity:0}15%{opacity:.65}85%{opacity:.45}100%{top:88%;opacity:0}}
@keyframes v5ResultSweep{to{transform:translateX(100%)}}
@keyframes v5ClosingOrbit{to{transform:translate(-50%,-50%) rotate(360deg)}}

/* v5.0.1 visual QA corrections */
.atlas-v5 .v4-arcana-ghost{opacity:1;color:rgba(121,40,68,.052)}

@media (min-width:621px) and (max-width:1100px){
  .atlas-v5 .v4-hero:before,.atlas-v5 .v4-hero:after{display:none}
  .atlas-v5 .v4-map{
    width:min(100%,700px);
    aspect-ratio:1.08;
    border-radius:18px;
    overflow:hidden;
    background:
      radial-gradient(circle at 49% 48%,rgba(247,238,232,.19) 0 5%,transparent 24%),
      radial-gradient(ellipse at 61% 47%,rgba(137,46,74,.56),transparent 36%),
      radial-gradient(ellipse at 90% 8%,rgba(173,116,129,.2),transparent 33%),
      conic-gradient(from 188deg at 52% 54%,#101617 0,#29171e 19%,#6f273f 39%,#25161d 58%,#4b2030 75%,#101617 100%);
    box-shadow:0 26px 70px rgba(49,25,34,.12);
  }
  .atlas-v5 .v4-map:before{inset:-8%;background:repeating-radial-gradient(circle,rgba(255,255,255,.045) 0 1px,transparent 1px 48px)}
  .atlas-v5 .v4-map:after{inset:-10%;opacity:.7}
  .atlas-v5 .v4-map svg{inset:7%;width:86%;height:86%}
}

@media (max-width:620px){
  .atlas-v5 .v4-map .atlas-hero-insight{transform:translateY(calc(100% + 30px));opacity:0;pointer-events:none}
  .atlas-v5 .v4-map .atlas-hero-insight.is-open{transform:translateY(0);opacity:1;pointer-events:auto}
}

/* v5.0.2 product-state contrast QA */
.atlas-v5 .v4-calculator .eyebrow.light{color:#817872}
.atlas-v5 .v4-result .calc-result-head>p{color:#5f5853}
.atlas-v5 .v4-result .calc-result-head h3 b{color:var(--v5-wine)}
.atlas-v5 .v4-result .calc-result-head h3 em{color:var(--v5-ink)}
.atlas-v5 .v4-result .calc-result-question p{color:var(--v5-ink)}
.atlas-v5 .v4-result .calc-result-zones button{color:var(--v5-ink)}
.atlas-v5 .v4-result .calc-result-zones strong{color:var(--v5-wine)}
.atlas-v5 .v4-result .calc-result-zones span{color:#746c66}
.atlas-v5 .v4-result .calc-result-zones i{color:var(--v5-wine)}
@media (max-width:620px){
  .atlas-v5 .v4-map .atlas-hero-insight:not(:empty):not(.is-open){transform:translateY(calc(100% + 30px));opacity:0;pointer-events:none}
  .atlas-v5 .v4-map .atlas-hero-insight.is-open{transform:translateY(0);opacity:1;pointer-events:auto}
}
