:root {
  --black: #111111;
  --black-soft: #191919;
  --graphite: #292929;
  --graphite-light: #373737;
  --paper: #f2f2f0;
  --paper-muted: #d8d8d4;
  --yellow: #f5b000;
  --yellow-soft: #d89c00;
  --ink: #151515;
  --white: #ffffff;
  --muted: #b7b7b2;
  --line: rgba(255, 255, 255, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--black);
  background-image:
    linear-gradient(115deg, rgba(255,255,255,.025), transparent 34%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.025 .08' numOctaves='4' seed='8'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .18 0 0 0 0 .18 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

button, select, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  min-height: 74px;
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 3vw, 46px);
  border-bottom: 1px solid var(--line);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.brand {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 0;
  min-height: 46px;
  align-content: center;
  color: var(--white);
  font-size: .67rem;
  line-height: 1.02;
  white-space: nowrap;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}
.brand span:first-child { color: var(--yellow); }
.brand span:not(:first-child) { color: var(--white); }
.brand:hover { transform: translateY(-1px) scale(1.035); }
.main-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(15px, 1.7vw, 24px);
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  color: var(--paper-muted);
  font-size: .67rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.nav-link.is-active { color: var(--white); }
.nav-link.is-active::after, .nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover { color: var(--white); transform: translateY(-1px) scale(1.025); }
.nav-link small {
  padding: 2px 4px;
  border: 1px solid rgba(245,176,0,.48);
  border-radius: 4px;
  color: var(--yellow);
  font-size: .45rem;
  line-height: 1;
  letter-spacing: .06em;
}
.nav-link.is-disabled { color: #858585; cursor: default; }
.menu-toggle {
  display: none;
  position: relative;
  z-index: 3;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--black-soft);
  color: var(--white);
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, top .2s ease;
}
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }
.hero {
  min-height: min(860px, calc(100vh - 74px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 445px);
  gap: clamp(34px, 3.5vw, 48px);
  align-items: center;
  padding: 46px 0 64px;
}
.hero-copy { position: relative; z-index: 2; min-width: 0; container-type: inline-size; }
.eyebrow {
  margin: 0 0 22px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .11em;
}
.eyebrow span {
  display: inline-block;
  margin-right: 8px;
  padding: 5px 8px;
  background: var(--yellow);
  color: var(--ink);
  transform: rotate(-1.5deg);
}
.eyebrow .results-eyebrow-tag {
  margin-right: 0;
  margin-left: 8px;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2 {
  font-family: "Dela Gothic One", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: -.035em;
  word-spacing: .2em;
}
.hero h1 {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: 0;
  font-size: min(4.35rem, 9.6cqw);
  line-height: .98;
  pointer-events: none;
}
.hero-word {
  display: inline-block;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}
mark {
  display: inline-block;
  padding: 2px 10px 8px;
  background: var(--yellow);
  color: var(--ink);
  transform: rotate(-1deg);
  border-radius: 7px;
}
.hero-accent-lockup {
  display: inline-grid;
  width: max-content;
  max-width: 100%;
  transform: rotate(-1deg);
  transform-origin: right center;
}
.hero-accent-lockup mark { transform: none; }
.hero-control-line {
  word-spacing: normal;
  width: 100%;
  margin-top: 7px;
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(.62rem, 1.7cqw, .86rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .045em;
  text-align: right;
  white-space: nowrap;
}
.hero-control-line span { color: var(--yellow); }
.hero-lede {
  width: min(620px, 92%);
  margin: 28px 0 0;
  color: var(--paper-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}
.calculator {
  position: relative;
  min-width: 0;
  padding: 38px 28px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #b7b3aa;
  border-radius: 14px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, .4), inset 0 1px 0 #fff;
}
.grommet {
  position: absolute;
  z-index: 2;
  width: 15px;
  height: 15px;
  border: 1px solid #8a8984;
  border-radius: 50%;
  background: radial-gradient(circle, #242421 0 24%, #888781 26% 34%, transparent 36%), conic-gradient(from 40deg, #b5b3ab, #faf9f5, #8a8881, #ecebe5, #b5b3ab);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65), 0 1px 2px rgba(0,0,0,.22);
}
.grommet-top-left { top: 15px; left: 15px; }
.grommet-top-right { top: 15px; right: 15px; }
.grommet-bottom-left { bottom: 15px; left: 15px; }
.grommet-bottom-right { right: 15px; bottom: 15px; }
.calculator-label, .section-title-row {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.calculator-label { margin-bottom: 28px; }
.step {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-weight: 800;
}
.calculator-label p, .mini-kicker {
  margin: 0;
  font-weight: 800;
  letter-spacing: .04em;
}
.calculator-label small { color: #666; }
.date-grid {
  display: grid;
  grid-template-columns: minmax(68px, .62fr) minmax(138px, 1.55fr) minmax(108px, 1.1fr);
  gap: 10px;
}
.date-grid label span {
  display: block;
  margin: 0 0 7px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}
select {
  width: 100%;
  min-height: 52px;
  padding: 0 30px 0 10px;
  border: 1px solid #aaa;
  border-radius: 13px;
  background: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M2 2l5 5 5-5' fill='none' stroke='%23151515' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
select:hover { border-color: var(--yellow-soft); }
select:focus { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(245,176,0,.16); }
select:focus-visible, button:focus-visible, a:focus-visible, .map-card:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.primary-button {
  width: 100%;
  min-height: 58px;
  margin-top: 18px;
  padding: 14px 17px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #f8c340;
  border-bottom: 5px solid #aa7500;
  border-radius: 13px;
  background: linear-gradient(180deg, #ffc735 0%, var(--yellow) 68%, #e7a500 100%);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 9px 18px rgba(166,112,0,.28), inset 0 1px 0 rgba(255,255,255,.65);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.primary-button .button-label { width: 100%; text-align: center; }
.primary-button:hover { transform: translateY(-2px); background: linear-gradient(180deg, #ffd25d 0%, #ffbc16 68%, #e7a500 100%); box-shadow: 0 13px 24px rgba(166,112,0,.34), inset 0 1px 0 rgba(255,255,255,.7); }
.primary-button:active { transform: translateY(3px); border-bottom-width: 2px; box-shadow: 0 4px 9px rgba(166,112,0,.25), inset 0 1px 0 rgba(255,255,255,.55); }
.privacy-note {
  margin: 14px 0 0;
  color: #666;
  font-size: .72rem;
  line-height: 1.4;
}

.results {
  padding: 104px 0 74px;
  border-top: 1px solid var(--line);
}
.results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}
.results-heading h2, .cta-copy h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.9rem);
  line-height: 1.02;
}
.results-heading-accent { color: var(--yellow); }
.paper-note {
  position: relative;
  flex: 0 0 265px;
  padding: 25px 24px 24px;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 48% 40%, rgba(255,255,255,.78), transparent 64%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130' viewBox='0 0 130 130'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' seed='25'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .4 0 0 0 0 .38 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='130' height='130' filter='url(%23p)' opacity='.17'/%3E%3C/svg%3E");
  color: var(--ink);
  box-shadow: 8px 8px 0 rgba(245,176,0,.88);
  transform: rotate(2deg);
  border-radius: 14px;
}
.paper-note::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1.5px dashed rgba(92,92,85,.58);
  border-radius: 9px;
}
.paper-note strong { display: block; font-size: 1.2rem; }
.paper-note span { display: block; margin-top: 6px; color: #595959; font-size: .8rem; }

.portrait-map-scroll {
  overflow-x: auto;
  padding: 8px 8px 22px;
  scrollbar-color: var(--yellow) #2a2a2a;
}
.portrait-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(36, 18px);
  grid-template-rows: 56px 58px 56px 30px 56px 30px 56px 58px 56px;
  gap: 0;
  width: max-content;
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
  padding: 22px 0 12px;
}
.portrait-map::before {
  content: none;
}
.map-card {
  position: relative;
  min-height: 56px;
  min-width: 0;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #716d64;
  border-radius: 14px;
  background: linear-gradient(145deg, #5a5751 0%, #413f3a 100%);
  color: var(--paper);
  text-align: center;
  box-shadow: 0 6px 14px rgba(0,0,0,.28);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease, color .22s ease;
}
.map-card.is-building {
  opacity: 0;
  transform: translateY(24px) scale(.9);
  animation: portrait-card-in .48s cubic-bezier(.2,.82,.25,1) forwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}
button.map-card { cursor: pointer; }
button.map-card:hover {
  border-color: var(--yellow);
  background: linear-gradient(145deg, #716b5c 0%, #4b473e 100%);
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 10px 22px rgba(0,0,0,.3);
}
.map-card.base {
  background: linear-gradient(145deg, #d8d7d2 0%, #bcbab4 100%);
  border-color: #aaa8a1;
  color: var(--ink);
}
button.map-card.is-active {
  border-color: #e8a72a;
  background: linear-gradient(145deg, #2d2b25 0%, #1d1c19 100%);
  color: #f0aa2b;
  transform: translateY(-2px);
  box-shadow: 0 7px 17px rgba(0,0,0,.26), inset 0 0 0 1px rgba(245,176,0,.12);
}
.map-card.base::before {
  content: none;
}
.map-position {
  position: absolute;
  z-index: 2;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--paper);
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
}
.map-archetype {
  position: relative;
  z-index: 1;
  font-family: "Dela Gothic One", Impact, sans-serif;
  font-size: 1rem;
  line-height: 1.1;
}
@keyframes portrait-card-in {
  0% { opacity: 0; transform: translateY(24px) scale(.9); }
  65% { opacity: 1; transform: translateY(-4px) scale(1.025); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.map-caption {
  margin: 2px 0 36px;
  color: var(--muted);
  font-size: .8rem;
  text-align: center;
}

.archetype-focus {
  display: grid;
  grid-template-columns: 90px 1fr;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 48% 40%, rgba(255,255,255,.72), transparent 62%),
    linear-gradient(118deg, rgba(255,255,255,.42), transparent 42%, rgba(23,23,20,.045)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' seed='17'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .38 0 0 0 0 .36 0 0 0 .17 0'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23p)' opacity='.2'/%3E%3C/svg%3E");
  color: var(--ink);
  border: 1px solid #fff;
  box-shadow: 10px 10px 0 #3a3a3a;
  border-radius: 16px;
  overflow: hidden;
}
.focus-number {
  position: relative;
  margin: 0;
  padding: 22px 0;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(255,255,255,.2), transparent 34%, rgba(151,91,0,.1) 100%),
    linear-gradient(180deg, #f8bc1f 0%, #f1aa00 100%);
  color: #c78900;
  border: 0;
  border-right: 1px solid rgba(121,75,0,.18);
  border-radius: 0;
  box-shadow:
    inset 3px 0 7px rgba(255,255,255,.24),
    inset -5px 0 10px rgba(139,82,0,.16),
    inset 0 2px 1px rgba(255,255,255,.28);
  text-shadow:
    1px 1px 1px rgba(255,224,125,.72),
    -1px -1px 1px rgba(126,77,0,.34);
}
.focus-number span {
  display: block;
  width: max-content;
  margin-left: -.42em;
  font-family: "Dela Gothic One", Impact, sans-serif;
  font-size: 3.6rem;
  line-height: .9;
  letter-spacing: -.08em;
  white-space: nowrap;
  transform: scaleY(1.24);
  transform-origin: left top;
}
.focus-main { padding: clamp(30px, 5vw, 50px); }
.focus-label,
.position-talents h4 {
  margin: 0 0 8px;
  color: #666;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.focus-main h3 {
  margin: 0 0 20px;
  font-family: "Dela Gothic One", Impact, sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.light-shadow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.light-shadow > div,
.position-talents {
  position: relative;
  padding: 25px 19px 19px;
  border: 1.5px dashed rgba(103,103,96,.48);
  background-color: #fff;
  background-image:
    radial-gradient(ellipse at 48% 42%, rgba(255,255,255,.82), transparent 64%),
    linear-gradient(118deg, rgba(255,255,255,.36), transparent 47%, rgba(35,35,30,.035)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130' viewBox='0 0 130 130'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' seed='13'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .4 0 0 0 0 .38 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='130' height='130' filter='url(%23p)' opacity='.17'/%3E%3C/svg%3E");
  border-radius: 16px;
}
.light-shadow span {
  position: absolute;
  top: -13px;
  right: 18px;
  z-index: 2;
  display: block;
  margin: 0;
  padding: 6px 12px;
  background: var(--yellow);
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(128,84,0,.2);
  font-size: .68rem;
  font-weight: 800;
}
.light-shadow p { margin: 0; font-size: .92rem; }
.focus-copy p + p { margin-top: 24px; }
.focus-copy p + p.story-theme-continuation { margin-top: 8px; }
.position-talents { margin-top: 24px; padding: 16px 19px 22px; }
.position-talents h4 {
  margin: 0 0 16px;
  line-height: 1.4;
}
.talents-copy { font-size: .92rem; font-weight: 400; }
.talents-copy p { margin: 0; }
.position-story { margin-top: 0; min-height: 62px; }
.position-story .talents-copy p + p { margin-top: 24px; }
.position-story .talents-copy p + p.story-theme-continuation { margin-top: 8px; }
.position-story .talents-copy ul { margin: 12px 0 0; padding-left: 22px; }
.position-story .talents-copy li + li { margin-top: 8px; }
.position-story .talents-copy .position-story-note { margin-top: 20px; font-size: .72rem; font-style: italic; }
.light-shadow[hidden] { display: none; }
.position-more-note { margin: 20px 0 0; font-size: .72rem; font-style: italic; }

.extra-section { padding: 90px 0 80px; }
.extra-section .step { border-color: var(--yellow); color: var(--yellow); }
.section-title-row h3 {
  margin: 4px 0 0;
  font-family: "Dela Gothic One", Impact, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  line-height: 1.08;
  word-spacing: .2em;
}
.extra-section .mini-kicker,
#extra-title { white-space: nowrap; }
.extra-heading-accent { color: var(--yellow); }
.extra-grid {
  margin-top: 28px;
  padding-block: 10px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.extra-card {
  min-height: 160px;
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(2.5em, 1fr) minmax(2.7em, auto);
  align-content: stretch;
  gap: 13px;
  border: 1.5px dashed rgba(255,255,255,.42);
  background:
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.008) 58%, rgba(0,0,0,.16)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035 .11' numOctaves='4' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .32 0 0 0 0 .32 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='.22'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 52% 42%, #303030 0%, #252525 48%, #191919 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.075), 0 18px 34px rgba(0,0,0,.24);
  border-radius: 12px;
}
.extra-position { color: var(--yellow); font-size: .68rem; font-weight: 800; }
.extra-card { text-align: left; color: var(--white); cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.extra-card[aria-pressed="true"] { transform: translateY(-8px); }
@media (hover: hover) {
  .extra-card:hover { transform: translateY(-8px); }
}
.extra-card:focus-visible { outline: 2px solid var(--paper-muted); outline-offset: 4px; }
.extra-description {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  margin-top: 32px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 16px;
  background: rgba(255,255,255,.065);
  box-shadow: 10px 10px 0 rgba(0,0,0,.22);
  overflow: hidden;
}
.extra-description .extra-description-number { padding: 20px 0; min-height: 0; display: flex; align-items: center; justify-content: flex-start; }
.extra-description .focus-number span { margin: 0 0 0 -.16em; width: max-content; font-size: 3rem; line-height: .9; letter-spacing: -.06em; transform: scaleY(1.24); transform-origin: left center; }
.extra-description-main { padding: 24px; min-width: 0; }
.extra-description .focus-label { color: var(--paper-muted); font-size: .875rem; white-space: normal; overflow-wrap: anywhere; }
.extra-description h3 { margin: 0; font-family: "Dela Gothic One", Impact, sans-serif; font-size: 1.5rem; line-height: 1.2; }
#extra-description-text { margin: 20px 0 0; color: var(--paper-muted); font-size: 1rem; line-height: 1.65; }
@media (max-width: 620px) {
  .extra-description { grid-template-columns: 64px minmax(0, 1fr); }
  .extra-description .focus-number span { font-size: 2.4rem; }
  .extra-description-main { padding: 20px 16px; }
  .extra-description h3 { font-size: 1.2rem; }
}
.extra-title {
  min-width: 0;
  overflow-wrap: anywhere;
  display: flex;
  align-items: flex-end;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.35;
}
.extra-archetype {
  align-self: center;
  font-family: "Dela Gothic One", Impact, sans-serif;
  font-size: clamp(.78rem, 1.05vw, .9rem);
  line-height: 1.15;
  letter-spacing: -.035em;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
}

.cta-block {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 7vw, 86px);
  align-items: center;
  padding: clamp(42px, 7vw, 78px);
  border: 1px solid rgba(245,176,0,.65);
  background:
    linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.008) 58%, rgba(245,176,0,.018)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.03 .1' numOctaves='4' seed='12'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .3 0 0 0 0 .3 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='.2'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 52% 42%, #303030 0%, #242424 50%, #181818 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 22px 48px rgba(0,0,0,.24);
  border-radius: 18px;
}
.cta-copy p:last-child { max-width: 620px; color: var(--paper-muted); }
.cta-card {
  position: relative;
  padding: 32px;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 48% 40%, rgba(255,255,255,.78), transparent 64%),
    linear-gradient(120deg, rgba(255,255,255,.35), transparent 47%, rgba(35,35,30,.04)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' seed='21'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .4 0 0 0 0 .38 0 0 0 .15 0'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23p)' opacity='.18'/%3E%3C/svg%3E");
  border: 1px solid rgba(92,92,85,.32);
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
  color: var(--ink);
  transform: rotate(-1deg);
  border-radius: 14px;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1.5px dashed rgba(92,92,85,.58);
  border-radius: 9px;
}
.cta-stamp {
  position: absolute;
  top: -15px;
  right: 22px;
  padding: 7px 11px;
  background: var(--yellow);
  font-size: .7rem;
  font-weight: 800;
  transform: rotate(3deg);
  border-radius: 8px;
}
.cta-card ul { margin: 0; padding: 0; list-style: none; }
.cta-card li { padding: 11px 0 11px 28px; border-bottom: 1px solid #c7c7c1; font-size: .88rem; }
.cta-card li::before { content: "✓"; margin-left: -28px; margin-right: 12px; color: #9b6d00; font-weight: 800; }
.consult-link {
  display: block;
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed #777;
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 10px;
}
.consult-link:hover { border-color: var(--yellow-soft); }

.tariff-section {
  grid-template-columns: minmax(0, 1fr);
  gap: 72px;
  padding: clamp(24px, 4vw, 48px);
}
.tariff-section .cta-copy { max-width: 860px; }
.tariff-section .cta-copy h2 { font-size: clamp(2rem, 4.5vw, 4rem); }
.tariff-section .cta-copy p:last-child { max-width: 760px; }
.tariff-section .next-chapter { max-width: 920px; }
.next-chapter h2 { margin: 0 0 clamp(24px, 3vw, 36px); }
.next-chapter h2 span { color: var(--yellow); }
.next-chapter-text { max-width: 780px; }
.next-chapter-text p {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.75;
  color: var(--paper-muted);
}
.next-chapter-text strong { color: var(--paper); font-weight: 700; }
.next-chapter-text .next-chapter-outcome {
  max-width: none;
  margin-top: clamp(24px, 3vw, 36px);
  padding-left: clamp(18px, 2.5vw, 28px);
  border-left: 3px solid var(--yellow);
}
.next-chapter-outcome strong { color: var(--yellow); }
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.tariff-card {
  min-width: 0;
  padding: 48px 28px 26px;
  font-size: .78125rem;
  line-height: 1.5;
  transform: none;
}
.tariff-card h3 {
  top: -22px;
  left: 50%;
  right: auto;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateX(-50%) rotate(1deg);
  text-align: center;
  margin: 0;
  padding: 14px 42px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: normal;
}
.tariff-subtitle {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(161,109,0,.38);
  border-radius: 9px;
  background: rgba(245,176,0,.06);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.5;
}
.tariff-subtitle em { font-weight: 600; }
.tariff-card h3 .grommet { top: 50%; transform: translateY(-50%); }
.tariff-bolt-left { left: 12px; }
.tariff-bolt-right { right: 12px; }
.tariff-intro p { margin: 0 0 12px; }
.tariff-card strong { font-weight: 700; }
.tariff-card h4 { margin: 22px 0 6px; font-size: .875rem; }
.tariff-card .tariff-results li {
  position: relative;
  padding: 10px 0 10px 23px;
  font-size: .78125rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(21,21,21,.13);
}
.tariff-card .tariff-results li::before {
  position: absolute;
  left: 0;
  margin: 0;
  color: #a16d00;
}
.tariff-details { margin-top: 16px; border-block: 1px solid rgba(21,21,21,.2); }
.tariff-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding-block: 10px;
  list-style: none;
  font-size: .8125rem;
  font-weight: 700;
  cursor: pointer;
}
.tariff-details summary::-webkit-details-marker { display: none; }
.tariff-details summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.tariff-toggle { position: relative; width: 24px; height: 24px; flex: 0 0 24px; }
.tariff-toggle::before, .tariff-toggle::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 4px;
  width: 16px;
  height: 2px;
  background: currentColor;
}
.tariff-toggle::after { transform: rotate(90deg); }
.tariff-details[open] .tariff-toggle::after { transform: rotate(0); }
.tariff-details ul { padding: 0 0 14px 20px; list-style: disc; }
.tariff-details li { padding: 5px 0; border: 0; font-size: .78125rem; }
.tariff-details li::before { content: none; }
.tariff-card .primary-button { margin-top: 18px; min-height: 50px; padding: 12px 14px; font-size: .78125rem; }
.tariff-card .tariff-price {
  margin: 24px 0 0;
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.tariff-placeholder { display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; }
.tariff-personal { grid-column: 1 / -1; min-height: 280px; }
@media (max-width: 800px) {
  .tariff-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tariff-card h3 { font-size: clamp(.85rem, 3.6vw, 1.05rem); padding: 14px 36px; }
  .tariff-personal { grid-column: auto; }
  .tariff-section.cta-block { padding: 28px 14px; }
  .tariff-card { padding: 46px 22px 24px; }
  .tariff-placeholder { min-height: 280px; }
}

.site-footer {
  display: grid;
  gap: 20px;
  padding: 30px 0 34px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
}
.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
.site-footer a { color: var(--yellow); text-decoration: none; }
.footer-contacts {
  display: grid;
  justify-items: end;
  gap: 10px;
}
.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  line-height: 1;
}
.footer-contact-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-contact-icon .icon-fill {
  fill: currentColor;
  stroke: none;
}
.telegram-icon {
  fill: currentColor;
  stroke: none;
}
.telegram-icon .telegram-fold {
  fill: var(--graphite);
}
.footer-contact:hover { color: var(--yellow-soft); }
.footer-owner {
  display: grid;
  gap: 6px;
  color: #aaa9a3;
  font-size: .72rem;
  line-height: 1.35;
}
.footer-owner strong {
  color: #f2f2ed;
  font-weight: 800;
}
.footer-legal {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer-legal-title {
  color: #f2f2ed;
  font-size: .64rem;
  letter-spacing: .12em;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
}
.legal-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #858580;
  font-size: .7rem;
  line-height: 1.45;
}
.legal-link small {
  padding: 2px 5px;
  border: 1px solid rgba(245,176,0,.28);
  border-radius: 5px;
  color: var(--yellow-soft);
  font-size: .45rem;
  letter-spacing: .08em;
  white-space: nowrap;
}
.footer-copyright {
  color: #777771;
  font-size: .64rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .main-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: rgba(17,17,17,.98);
    box-shadow: 0 20px 35px rgba(0,0,0,.34);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .main-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-link {
    justify-content: space-between;
    min-height: 48px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: .72rem;
  }
  .nav-link:last-child { border-bottom: 0; }
  .nav-link::after { display: none; }
  .nav-link.is-active { border-radius: 8px; background: rgba(245,176,0,.1); color: var(--yellow); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding-right: 20px; }
  .hero h1 { width: 100%; font-size: clamp(3rem, 9vw, 4.8rem); }
  .calculator { width: min(620px, calc(100% - 12px)); margin: 0 auto; }
  .results-heading { align-items: flex-start; }
  .extra-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-block { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .page-shell { width: min(100% - 24px, 1180px); }
  .topbar { min-height: 60px; }
  .hero { padding: 42px 0 64px; gap: 38px; }
  .hero h1 { font-size: clamp(2rem, 9.5vw, 3.35rem); }
  .hero-lede { width: 100%; }
  .calculator { width: 100%; padding: 30px 20px; }
  .date-grid { grid-template-columns: minmax(60px, .62fr) minmax(130px, 1.55fr) minmax(100px, 1.1fr); }
  .results { padding-top: 74px; }
  .results-heading { display: block; }
  .paper-note { width: 90%; margin: 28px auto 0; }
  .portrait-map-scroll {
    width: 100%;
    margin: 0;
    padding: 8px 0 4px;
    overflow-x: hidden;
  }
  .portrait-map-scroll::after {
    content: "ПРОВЕДИ В СТОРОНУ →";
    display: block;
    margin-top: 8px;
    color: var(--yellow);
    font-size: .68rem;
    font-weight: 800;
    text-align: right;
  }
  .archetype-focus { grid-template-columns: 1fr; }
  .focus-number { min-height: 72px; padding: 14px 20px; align-content: center; justify-content: start; }
  .light-shadow { grid-template-columns: 1fr; }
  .extra-section { padding: 74px 0 64px; }
  .extra-section .mini-kicker {
    font-size: clamp(.68rem, 3.2vw, .88rem);
    letter-spacing: .02em;
  }
  #extra-title {
    font-size: clamp(1.02rem, 4.55vw, 1.45rem);
    letter-spacing: -.025em;
  }
  .portrait-map {
    --mobile-map-unit: calc(2.7778vw - .6667px);
    grid-template-columns: repeat(36, var(--mobile-map-unit));
    grid-template-rows:
      calc(8.642vw - 2.074px)
      calc(8.951vw - 2.148px)
      calc(8.642vw - 2.074px)
      calc(4.63vw - 1.111px)
      calc(8.642vw - 2.074px)
      calc(4.63vw - 1.111px)
      calc(8.642vw - 2.074px)
      calc(8.951vw - 2.148px)
      calc(8.642vw - 2.074px);
    width: 100%;
    margin: 0;
    padding: 18px 0 10px;
  }
  .map-card { min-height: 0; border-radius: clamp(7px, 2.4vw, 12px); }
  .map-position { top: -14px; font-size: clamp(.5rem, 2vw, .62rem); }
  .map-archetype { font-size: clamp(.58rem, 2.7vw, 1rem); }
  .extra-grid {
    width: calc(100% + 12px);
    margin-right: -12px;
    padding-right: 12px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 320px);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .extra-grid::-webkit-scrollbar { display: none; }
  .extra-card { min-height: 148px; scroll-snap-align: start; }
  .cta-block { padding: 34px 20px; }
  .cta-card { padding: 27px 20px; }
  .site-footer { gap: 18px; padding: 26px 0 30px; }
  .footer-main { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer-contacts { justify-items: start; }
  .legal-links { display: grid; gap: 9px; }
}

.portrait-workspace {
  max-width: 1000px;
  margin-inline: auto;
  scroll-margin-top: 8px;
}
.portrait-workspace .portrait-map-scroll { padding-bottom: 4px; padding-top: 0; }
.portrait-workspace .map-caption { margin: 0 0 10px; }
.portrait-workspace .archetype-focus { grid-template-columns: 82px minmax(0, 1fr); }
.portrait-workspace .focus-number { padding: 20px 0; min-height: 0; }
.portrait-workspace .focus-number span { font-size: 3.25rem; }
.portrait-workspace .focus-main { padding: 18px 20px; }
.portrait-workspace .focus-label { margin-bottom: 4px; }
.portrait-workspace .focus-main h3 { margin-bottom: 14px; font-size: 1.3rem; line-height: 1.2; }
.portrait-workspace .light-shadow { gap: 10px; }
.portrait-workspace .light-shadow > div { padding: 18px 10px 9px; }
.portrait-workspace .light-shadow span { top: -10px; right: 10px; padding: 4px 9px; }
.portrait-workspace .light-shadow p { line-height: 1.35; }

/* Desktop: spacious portrait with the description beginning at the fold. */
@media (min-width: 1024px) {
  .results { padding-top: 0; }
  .results-screen { padding: 20px 0 24px; scroll-margin-top: 0; }
  .results-heading { align-items: center; gap: 40px; margin-bottom: 24px; }
  .results-heading h2 { font-size: clamp(2rem, 3.1vw, 2.8rem); line-height: 1.08; }
  .results-heading .eyebrow { margin-bottom: 10px; }
  .paper-note { flex-basis: 350px; padding: 24px 28px; }
  .paper-note span { font-size: 1rem; line-height: 1.45; }
  .portrait-workspace { width: 100%; max-width: 1000px; display: block; }
  .portrait-workspace .portrait-map-scroll {
    min-height: max(490px, calc(100svh - 310px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px 12px;
    overflow: visible;
  }
  .portrait-workspace .portrait-map {
    width: 648px;
    flex: 0 0 648px;
    grid-template-columns: repeat(36, 18px);
    grid-template-rows: 56px 58px 56px 30px 56px 30px 56px 58px 56px;
    padding: 22px 0 12px;
  }
  .portrait-workspace .map-card { min-height: 56px; border-radius: 14px; }
  /* Equal corner offsets give a 45-degree diagonal; corner distance is 2/3 of the prior gap. */
  .portrait-workspace .map-card[data-position="13"] { grid-column: 2 / span 4 !important; translate: 15.066242042523228px 37.06624204252323px; }
  .portrait-workspace .map-card[data-position="14"] { grid-column: 26 / span 4 !important; translate: -15.066242042523228px 37.06624204252323px; }
  .portrait-workspace .map-caption { margin: 8px 0 28px; font-size: .875rem; }
  .portrait-workspace .archetype-focus { grid-template-columns: 82px minmax(0, 1fr); }
  .portrait-workspace .focus-main { padding: 22px 24px; }
  .portrait-workspace .focus-label { font-size: .875rem; margin-bottom: 8px; }
  .portrait-workspace .focus-main h3 { font-size: 1.5rem; margin-bottom: 24px; }
  .portrait-workspace .light-shadow { grid-template-columns: 1fr 1fr; gap: 18px; }
  .portrait-workspace .light-shadow > div { padding: 24px 18px 18px; }
  .portrait-workspace .light-shadow p { font-size: 1rem; line-height: 1.5; }
  .portrait-workspace .light-shadow span { font-size: .875rem; }
}

@media (max-width: 620px) {
  .portrait-workspace .archetype-focus { grid-template-columns: 1fr; }
  .portrait-workspace .focus-number {
    width: 86px;
    min-height: 82px;
    margin: 0;
    padding: 14px 0;
  }
  .portrait-workspace .focus-number span { font-size: 3rem; }
  .portrait-workspace .focus-main { padding: 14px 12px 16px; }
  .portrait-workspace .portrait-map-scroll::after { display: none; }
}

@media (max-width: 400px) {
  .date-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .date-grid label:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
  }
}

#purchase-modal{padding:0;border:2px solid #151515;background:#f2f2f0;width:min(600px,calc(100vw - 24px));max-width:600px;height:min(900px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);overflow:hidden}#purchase-modal::backdrop{background:rgba(0,0,0,.8)}#purchase-frame{width:100%;height:100%;border:0;display:block}#purchase-close{position:absolute;right:10px;top:8px;width:36px;height:36px;border:0;background:#f2f2f0;color:#151515;font:30px Arial;cursor:pointer;z-index:2}#purchase-close:focus-visible{outline:3px solid #f5b000}

#purchase-modal{width:min(520px,calc(100vw - 32px));height:580px;max-height:calc(100dvh - 96px);margin:auto}#purchase-close{width:28px;height:28px;font-size:26px;right:6px;top:6px}@media(max-width:480px){#purchase-modal{max-height:calc(100dvh - 56px);width:calc(100vw - 28px)}}

#purchase-modal{width:min(440px,calc(100vw - 32px));height:490px;border-radius:14px;border:1px solid #c7c7c1;box-shadow:0 18px 60px #0008}#purchase-frame{border-radius:14px}#purchase-close{border-radius:50%;background:#f2f2f0}@media(max-width:480px){#purchase-modal{width:min(440px,calc(100vw - 32px))}}
