/* Living atlas: scoped to the public homepage. See docs/LANDING_ATLAS.md. */
.page-landing-atlas { --atlas-plum: var(--nec-ink); --atlas-sage: var(--nec-accent); --atlas-muted: var(--nec-muted); --atlas-rule: var(--nec-line); background: var(--paper); color: var(--atlas-plum); padding-bottom: 0; }
.page-landing-atlas .container { max-width: 1380px; padding-inline: 48px; }
.page-landing-atlas .navbar { position: relative; border: 0; padding: 0; background: var(--paper); }
.page-landing-atlas .navbar .container { align-items: center; min-height: 78px; }
.page-landing-atlas .navbar .container::after { content: ""; position: absolute; bottom: 0; inset-inline: max(48px, calc((100% - 1284px) / 2)); border-bottom: 1px solid var(--atlas-rule); }
.page-landing-atlas .nav-brand { font-size: 30px; letter-spacing: -1px; }
.page-landing-atlas .nav-links { align-items: center; padding: 0; gap: 34px; }
.page-landing-atlas .nav-links a { font-size: 15px; font-weight: 500; }
.page-landing-atlas .atlas-account-link { border-left: 1px solid var(--atlas-rule); padding-left: 30px; }
.page-landing-atlas a:focus-visible, .page-landing-atlas button:focus-visible { outline: 3px solid var(--atlas-sage); outline-offset: 6px; }
.atlas-main { margin: 0; }
.atlas-hero { display: grid; grid-template-columns: 40% minmax(0, 60%); align-items: center; padding: 28px 0 22px; }
.atlas-hero-copy { padding: 35px 0 20px; position: relative; z-index: 1; }
.atlas-hero-title { font-family: var(--font-serif); font-size: clamp(56px, 6.05vw, 84px); line-height: .99; font-weight: 600; letter-spacing: -.035em; color: var(--atlas-plum); max-width: 11.5ch; margin: 0 0 24px; }
.atlas-hero-title-secondary { font-size: clamp(42px, 4.8vw, 68px); max-width: 14ch; }
.atlas-dek { color: var(--atlas-muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; max-width: 30ch; margin: 0; }
.atlas-dek.atlas-dek-quote { font-size: 16px; font-style: italic; line-height: 1.5; max-width: 46ch; }
.atlas-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; margin-top: 28px; }
.atlas-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 54px; padding: 13px 24px; background: var(--atlas-sage); color: #fff; border: 1px solid var(--atlas-sage); border-radius: 3px; font-size: 16px; font-weight: 500; text-decoration: none; }
.atlas-button:hover { background: #3d492b; color: #fff; text-decoration: none; }
.atlas-text-link { display: inline-block; color: var(--atlas-sage); text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; font-size: 15px; font-weight: 600; padding-block: 10px; }
.atlas-text-link:hover { color: var(--atlas-plum); }
.atlas-hero-art { margin: 0; min-width: 0; }
.atlas-hero-art img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: contain; filter: brightness(1.04); mix-blend-mode: multiply; }
.atlas-hero-art img[data-atlas-src] { filter: brightness(1.1); }
.atlas-supply-diagram { --supply-producer: #ad6379; --supply-processor: #559f9e; --supply-wholesale: #b8a457; --supply-retail: #c49065; --supply-consumer: #546e91; --supply-ink: #432d39; --supply-paper: #f9faf8; }
.atlas-supply-scene { position: relative; width: 92%; max-width: 650px; aspect-ratio: 1000 / 860; margin-inline: auto; }
.atlas-supply-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.atlas-supply-canvas[hidden], .atlas-supply-fallback[hidden] { display: none; }
.atlas-supply-fallback { position: absolute; inset: 40% 12% auto; text-align: center; }
.atlas-supply-fallback a { color: var(--atlas-sage); text-underline-offset: 4px; }
.atlas-terrain-scene { position: relative; width: 100%; aspect-ratio: 1; max-height: 620px; }
.atlas-terrain-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.atlas-terrain-canvas[hidden], .atlas-terrain-percentage[hidden], .atlas-terrain-fallback[hidden] { display: none; }
.atlas-terrain-percentage { position: absolute; bottom: 5%; right: 5%; color: var(--atlas-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.atlas-terrain-fallback { position: absolute; inset: 45% 10% auto; text-align: center; color: var(--atlas-muted); }
.atlas-terrain-color[data-terrain-color="land"] { color: #b8cbb3; }
.atlas-terrain-color[data-terrain-color="earth"] { color: #decbb5; }
.atlas-terrain-color[data-terrain-color="water"] { color: #a4c7d8; }
.atlas-terrain-color[data-terrain-color="stone"] { color: #e8e4da; }
.atlas-terrain-color[data-terrain-color="river"] { color: #417f9b; }
.atlas-recipe-graph { padding-inline: 14px; --recipe-core: #694259; --recipe-vegetables: #718963; --recipe-depth: #ac8c61; --recipe-crunch: #9e86b2; --recipe-paper: #f9faf8; }
.atlas-recipe-frame { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; margin-inline: auto; }
.atlas-recipe-network { position: absolute; inset: 32px; display: block; width: calc(100% - 64px); height: calc(100% - 64px); }
.atlas-recipe-graph[data-recipe-state="unavailable"] .atlas-recipe-frame { display: none; }
.atlas-recipe-network[hidden], .atlas-recipe-fallback[hidden] { display: none; }
.atlas-recipe-fallback { min-height: 220px; padding: 48px 24px; color: var(--atlas-muted); }
.atlas-recipe-controls { position: absolute; inset: 0; padding: 0; margin: 0; border: 0; min-width: 0; pointer-events: none; }
.atlas-recipe-control { position: absolute; --recipe-accent: #7d9270; }
.atlas-recipe-control[data-recipe-edge="top"] { top: 0; left: 36px; right: 36px; height: 25px; }
.atlas-recipe-control[data-recipe-edge="bottom"] { bottom: 0; left: 36px; right: 36px; height: 25px; }
.atlas-recipe-control[data-recipe-edge="left"] { left: 0; top: 36px; bottom: 36px; width: 25px; }
.atlas-recipe-control[data-recipe-edge="right"] { right: 0; top: 36px; bottom: 36px; width: 25px; }
.atlas-recipe-control[data-recipe-branch="depth"] { --recipe-accent: #b29979; }
.atlas-recipe-control[data-recipe-branch="crunch"] { --recipe-accent: #a291b3; }
.atlas-recipe-control[data-recipe-branch="expansion"] { --recipe-accent: #829caa; }
.atlas-recipe-control input[type="range"] { appearance: none; display: block; width: 100%; min-width: 0; height: 25px; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; opacity: .8; cursor: default; accent-color: var(--recipe-accent); }
.atlas-recipe-control input[type="range"]::-webkit-slider-runnable-track { height: 2px; border: 0; background: transparent; box-shadow: none; }
.atlas-recipe-control input[type="range"]::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; margin-top: -4.5px; border: 2px solid var(--paper); border-radius: 50%; background: var(--recipe-accent); box-shadow: 0 0 0 1px var(--recipe-accent); }
.atlas-recipe-control input[type="range"]::-moz-range-track { height: 2px; border: 0; background: transparent; box-shadow: none; }
.atlas-recipe-control input[type="range"]::-moz-range-progress { border: 0; background: transparent; box-shadow: none; }
.atlas-recipe-control input[type="range"]::-moz-range-thumb { width: 7px; height: 7px; border: 2px solid var(--paper); border-radius: 50%; background: var(--recipe-accent); box-shadow: 0 0 0 1px var(--recipe-accent); }
.atlas-recipe-control:is([data-recipe-edge="left"], [data-recipe-edge="right"]) input { writing-mode: vertical-lr; direction: rtl; width: 25px; height: 100%; }
.atlas-recipe-control:is([data-recipe-edge="left"], [data-recipe-edge="right"]) input::-webkit-slider-runnable-track { width: 2px; height: 100%; }
.atlas-recipe-control:is([data-recipe-edge="left"], [data-recipe-edge="right"]) input::-webkit-slider-thumb { margin-top: 0; margin-left: -4.5px; }
.atlas-recipe-control:is([data-recipe-edge="left"], [data-recipe-edge="right"]) input::-moz-range-track { width: 2px; height: 100%; }
.atlas-carousel-stage { display: grid; touch-action: pan-y pinch-zoom; }
.atlas-slide { grid-area: 1 / 1; min-width: 0; }
/* Retain the tallest slide's space while hidden/inert slides stay inaccessible. */
.atlas-slide[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.atlas-carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 26px; }
.atlas-carousel-controls[hidden] { display: none; }
.atlas-carousel-choices { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.atlas-carousel-choices button { min-height: 44px; padding: 10px 0; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--atlas-muted); font-family: var(--font-sans); font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.atlas-carousel-choices button span { margin-right: 8px; font-size: 11px; color: var(--atlas-sage); }
.atlas-carousel-choices button[aria-pressed="true"] { color: var(--atlas-plum); border-bottom-color: var(--atlas-plum); }
.atlas-carousel-choices button:hover { color: var(--atlas-plum); border-bottom-color: var(--atlas-rule); }
.atlas-carousel-arrows { display: flex; flex-shrink: 0; gap: 8px; }
.atlas-carousel-arrows button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--atlas-rule); border-radius: 50%; background: transparent; color: var(--atlas-plum); font-size: 23px; cursor: pointer; }
.atlas-carousel-arrows button:hover { border-color: var(--atlas-plum); }
.atlas-tools { border-top: 1px solid var(--atlas-rule); padding: 26px 0 48px; }
.atlas-tools h2, .atlas-about h2 { margin: 0 0 22px; font-size: 42px; font-weight: 600; line-height: 1.1; letter-spacing: -.025em; }
.atlas-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.atlas-tool { display: block; min-width: 0; text-decoration: none; color: var(--atlas-plum); }
.atlas-tool-image { width: 100%; aspect-ratio: 1.65; overflow: hidden; border: 1px solid #d8d9d1; background: #f9faf8; }
/* Native captures have 80% pixel content in their canvas at the host's 125% scale. */
.atlas-tool-image img { width: 125%; height: 125%; max-width: none; object-fit: cover; display: block; transition: transform 200ms ease; }
.atlas-tool-image-mantra { container-type: inline-size; display: grid; align-content: center; justify-items: center; gap: 18px; padding: 24px; color: var(--ink); }
.atlas-mantra-phrase { margin: 0; max-width: 24ch; font-family: "EB Garamond", var(--font-serif); font-size: clamp(20px, 8cqi, 34px); font-weight: 500; line-height: 1.12; text-align: center; overflow-wrap: anywhere; }
.atlas-tool-image-mantra.is-long-mantra .atlas-mantra-phrase { font-size: clamp(14px, 5cqi, 24px); }
.atlas-mantra-spiral { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.atlas-tool-image-biology { display: grid; grid-template-columns: 1fr 1.15fr; background: #fff; }
.atlas-tool-image-biology span { min-width: 0; overflow: hidden; aspect-ratio: 300 / 350; align-self: center; }
.atlas-tool-image-biology span:last-child { aspect-ratio: 1; }
.atlas-tool h3 { font-family: var(--font-serif); font-size: clamp(25px, 2.5vw, 34px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; margin: 16px 0 9px; }
.atlas-tool h3 span { display: inline-block; margin-left: 7px; }
.atlas-tool p { color: var(--atlas-muted); font-size: 15px; line-height: 1.5; margin: 0; }
.atlas-tool:hover { text-decoration: none; }
.atlas-tool:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.atlas-tool:hover img { transform: scale(1.025); }
.atlas-tool-image-map img, .atlas-tool:hover .atlas-tool-image-map img { width: 140%; height: 140%; transform: translate(-13%, -12%); transition: none; }
.atlas-introduction { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; border-block: 1px solid var(--atlas-rule); padding: 55px 0 60px; }
.atlas-introduction h2 { font-size: clamp(42px, 4.5vw, 62px); line-height: 1; letter-spacing: -.03em; font-weight: 500; margin: 0 0 25px; }
.atlas-introduction-copy { max-width: 650px; }
.atlas-introduction-copy p { font-size: 17px; line-height: 1.65; color: var(--atlas-muted); margin: 0 0 18px; }
.atlas-introduction-copy p.atlas-introduction-lead { font-family: var(--font-serif); font-size: 30px; line-height: 1.2; color: var(--atlas-plum); }
.atlas-introduction-copy a, .atlas-about a { color: var(--atlas-sage); text-underline-offset: 3px; }
.atlas-reading-links { display: flex; gap: 12px 28px; flex-wrap: wrap; margin-bottom: 20px; }
.atlas-about { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; padding: 45px 0 30px; scroll-margin-top: 24px; }
.atlas-about h2 { font-size: 34px; }
.atlas-about p { font-size: 15px; line-height: 1.7; color: var(--atlas-muted); margin: 0 0 15px; max-width: 650px; }
.atlas-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--atlas-rule); padding: 22px 0 28px; }
.atlas-footer a { color: var(--atlas-muted); font-size: 12px; text-decoration: none; padding-block: 8px; }
.atlas-footer a:first-child { font-family: var(--font-serif); font-size: 20px; font-weight: 600; color: var(--atlas-plum); }
.atlas-footer a:hover { text-decoration: underline; }
@media (min-width: 1001px) {
  .page-landing-atlas .nav-hamburger { display: none; }
  .page-landing-atlas .nav-links { display: flex !important; flex-direction: row; width: auto; order: initial; }
  .page-landing-atlas .nav-links a { width: auto; border-bottom: 0; padding-block: 10px; }
}
@media (max-width: 1000px) {
  .page-landing-atlas .container { padding-inline: 30px; }
  .page-landing-atlas .navbar .container::after { inset-inline: 30px; }
  .page-landing-atlas .nav-links { gap: 0; padding-top: 8px; }
  .page-landing-atlas .atlas-account-link { border-left: 0; padding-left: .5rem; }
  .atlas-hero { grid-template-columns: 43% minmax(0, 57%); }
  .atlas-hero h1 { font-size: 64px; }
  .atlas-hero-title-secondary { font-size: clamp(34px, 4.8vw, 48px); }
  .atlas-actions { gap: 10px 20px; }
  .atlas-button { padding-inline: 18px; }
  .atlas-tool-grid { gap: 20px; }
  .atlas-introduction, .atlas-about { gap: 35px; }
}
@media (max-width: 700px) {
  .page-landing-atlas .container { padding-inline: 22px; }
  .page-landing-atlas .navbar .container { min-height: 72px; padding-block: 10px; }
  .page-landing-atlas .navbar .container::after { inset-inline: 22px; }
  .page-landing-atlas .nav-brand { font-size: 26px; }
  .atlas-hero { grid-template-columns: minmax(0, 1fr); padding: 28px 0 22px; }
  .atlas-hero-copy { padding: 0; }
  .atlas-hero h1 { font-size: clamp(52px, 12vw, 74px); max-width: 11ch; margin-bottom: 20px; }
  .atlas-hero-title-secondary { font-size: clamp(36px, 10vw, 58px); max-width: 15ch; }
  .atlas-carousel-controls { align-items: flex-end; gap: 12px; }
  .atlas-carousel-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
  .atlas-carousel-choices button { font-size: 12px; }
  .atlas-carousel-choices button span { display: none; }
  .atlas-dek { font-size: 17px; max-width: 34ch; }
  .atlas-actions { margin-top: 22px; gap: 10px 22px; }
  .atlas-button { min-height: 50px; font-size: 15px; }
  .atlas-text-link { font-size: 14px; }
  .atlas-hero-art { margin-top: 24px; }
  .atlas-supply-scene { width: 100%; }
  .atlas-recipe-graph { padding-inline: 0; }
  .atlas-tools { padding: 26px 0 36px; }
  .atlas-tools h2 { font-size: 36px; }
  .atlas-tool-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .atlas-tool h3 { font-size: 31px; margin-top: 12px; }
  .atlas-tool-image { aspect-ratio: 1.75; }
  .atlas-introduction, .atlas-about { grid-template-columns: minmax(0, 1fr); gap: 15px; padding: 32px 0; }
  .atlas-introduction h2 { font-size: 45px; margin-bottom: 15px; }
  .atlas-introduction-copy p { font-size: 16px; }
  .atlas-introduction-copy p.atlas-introduction-lead { font-size: 27px; }
  .atlas-about h2 { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-tool-image img { transition: none; }
  .atlas-tool:hover img { transform: none; }
}
