/* =========================================================
   AEVUM — Age intelligence
   A local-first, precision age calculator
   ========================================================= */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f2efe8;
  --bg-deep: #e9e5db;
  --surface: #fbf9f4;
  --surface-raised: #fdfbf7;
  --surface-soft: #f5f1e9;
  --ink: #15231d;
  --ink-soft: #48564e;
  --muted: #768078;
  --faint: #9aa29b;
  --line: rgba(21, 35, 29, 0.12);
  --line-strong: rgba(21, 35, 29, 0.2);
  --accent: #c7de7b;
  --accent-bright: #d6ea91;
  --accent-deep: #687d35;
  --accent-ink: #233118;
  --accent-wash: #e6edcf;
  --forest: #10251c;
  --forest-2: #17362a;
  --cream: #f6f1e5;
  --clay: #b96c4e;
  --error: #9e3f35;
  --focus: #667c2f;
  --header-bg: rgba(242, 239, 232, 0.82);
  --result-bg: linear-gradient(148deg, #11271e 0%, #0a1812 68%, #0d1e16 100%);
  --result-ink: #f5f0e4;
  --result-soft: #c4cec4;
  --result-muted: #8fa096;
  --result-line: rgba(245, 240, 228, 0.1);
  --result-surface: rgba(245, 240, 228, 0.055);
  --lime-bg: #dfe8c3;
  --lime-ink: #132317;
  --lime-soft: #506044;
  --lime-line: rgba(19, 35, 23, 0.16);
  --shadow-sm: 0 1px 2px rgba(18, 32, 25, 0.04), 0 8px 24px -18px rgba(18, 32, 25, 0.22);
  --shadow-md: 0 2px 4px rgba(18, 32, 25, 0.03), 0 30px 70px -42px rgba(18, 32, 25, 0.42);
  --shadow-lg: 0 40px 100px -52px rgba(7, 18, 12, 0.62);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", "Avenir Next", "Segoe UI", Helvetica, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --bg: #0b1411;
  --bg-deep: #08110d;
  --surface: #111d17;
  --surface-raised: #15221b;
  --surface-soft: #0e1a14;
  --ink: #f1ede2;
  --ink-soft: #c3ccc5;
  --muted: #92a097;
  --faint: #6f7e75;
  --line: rgba(243, 239, 227, 0.11);
  --line-strong: rgba(243, 239, 227, 0.2);
  --accent: #d1e58a;
  --accent-bright: #def09e;
  --accent-deep: #b9cf71;
  --accent-ink: #172113;
  --accent-wash: #24321d;
  --forest: #10251c;
  --forest-2: #1c3c2e;
  --cream: #f6f1e5;
  --error: #e58d80;
  --focus: #d1e58a;
  --header-bg: rgba(11, 20, 17, 0.82);
  --result-bg: linear-gradient(148deg, #173126 0%, #0b1913 72%);
  --result-line: rgba(245, 240, 228, 0.12);
  --lime-bg: #1a2a1f;
  --lime-ink: #e9efd8;
  --lime-soft: #a5b699;
  --lime-line: rgba(230, 240, 210, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.18), 0 8px 24px -18px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.14), 0 30px 70px -42px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 40px 100px -52px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 760px 580px at 91% -9%, rgba(176, 204, 104, 0.27), transparent 68%),
    radial-gradient(ellipse 620px 560px at -4% 23%, rgba(199, 135, 103, 0.11), transparent 62%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s ease, color 0.4s ease;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(ellipse 820px 620px at 94% -8%, rgba(179, 207, 106, 0.1), transparent 65%),
    radial-gradient(ellipse 620px 540px at -4% 27%, rgba(171, 94, 65, 0.08), transparent 62%),
    var(--bg);
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

img,
svg {
  display: block;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

button,
select {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.noscript-banner {
  position: relative;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(158, 63, 53, 0.18);
  background: #f3e4dd;
  color: #672c24;
  font-size: 11px;
  text-align: center;
}

.noscript-banner strong {
  font-weight: 600;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .page-grain {
  opacity: 0.035;
  mix-blend-mode: soft-light;
}

.shell {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-inline: clamp(22px, 3.2vw, 48px);
}

.micro-label {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  transition: border-color 0.3s ease, background-color 0.4s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 1400px;
  min-height: 82px;
  margin: 0 auto;
  padding-inline: clamp(22px, 3.2vw, 48px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 0.94;
}

.brand-tagline {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6.8px;
  font-weight: 500;
  letter-spacing: 0.19em;
  line-height: 1.2;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 31px;
}

.primary-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.primary-nav a::after {
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-deep);
  content: "";
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--ink);
}

.primary-nav a.is-active::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.privacy-pill svg {
  color: var(--accent-deep);
}

.header-clock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.clock-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(104, 125, 53, 0.09);
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  place-items: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.icon-sun {
  display: none;
}

html[data-theme="dark"] .icon-moon {
  display: none;
}

html[data-theme="dark"] .icon-sun {
  display: block;
}

/* =========================================================
   Hero + calculator
   ========================================================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: start;
  gap: clamp(34px, 4.3vw, 72px);
  padding-top: clamp(42px, 5vw, 70px);
  padding-bottom: clamp(66px, 7vw, 96px);
}

.hero-copy {
  max-width: 592px;
  padding-top: 5px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8.4px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow-line {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--ink);
  opacity: 0.45;
}

.eyebrow-version {
  margin-left: 3px;
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.hero-title {
  max-width: 610px;
  margin-top: 20px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(62px, 6.3vw, 92px);
  font-weight: 400;
  letter-spacing: -0.038em;
  line-height: 0.84;
}

.hero-title em {
  color: var(--ink);
  font-weight: 400;
}

.hero-title em::after {
  display: inline-block;
  width: 0.26em;
  height: 0.26em;
  margin: 0 0 0.04em 0.08em;
  border-radius: 50%;
  background: var(--accent-deep);
  content: "";
  vertical-align: baseline;
}

.hero-lede {
  max-width: 455px;
  margin-top: 25px;
  color: var(--ink-soft);
  font-size: 14.5px;
  letter-spacing: -0.005em;
  line-height: 1.7;
}

/* Form card */

.birth-form {
  position: relative;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid rgba(21, 35, 29, 0.1);
  border-radius: 24px;
  background: rgba(253, 251, 247, 0.86);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

html[data-theme="dark"] .birth-form {
  border-color: var(--line);
  background: rgba(17, 29, 23, 0.9);
}

.form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.form-head h2 {
  margin-top: 5px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

.sample-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-top: 4px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sample-chip span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-deep);
}

.sample-chip.is-hidden {
  opacity: 0;
  transform: translateY(-3px);
  pointer-events: none;
}

.birth-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.field-label-row label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.field-hint {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7.7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.date-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 112px;
  gap: 7px;
}

.date-segment {
  position: relative;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.date-segment:hover {
  border-color: var(--line-strong);
}

.date-segment:focus-within {
  border-color: var(--accent-deep);
  background: var(--surface-raised);
  box-shadow: 0 0 0 3px rgba(199, 222, 123, 0.22);
}

.date-segment input,
.date-segment select {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.date-segment--day input {
  padding: 0 10px 0 15px;
  font-size: 19px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.date-segment--day input::placeholder {
  color: var(--faint);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.date-segment--month {
  min-width: 0;
}

.date-segment--month select {
  position: relative;
  z-index: 1;
  padding: 0 34px 0 15px;
  appearance: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.date-segment--year input {
  padding: 0 12px 0 15px;
  font-size: 19px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.055em;
}

.date-segment--year input::placeholder {
  color: var(--faint);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.date-segment.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(158, 63, 53, 0.09);
}

.field-help {
  min-height: 15px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.field-help.is-error {
  color: var(--error);
}

.form-options {
  margin-top: 15px;
  border-top: 1px dashed var(--line);
}

.precision-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 0 2px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
  text-align: left;
  transition: color 0.2s ease;
}

.precision-trigger:hover {
  color: var(--ink);
}

.precision-trigger-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.precision-trigger-main svg {
  color: var(--muted);
}

.precision-value {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.7px;
  font-weight: 400;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.precision-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  animation: panel-in 0.24s var(--ease) both;
}

.precision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-field label,
.mini-field-head label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mini-field label span,
.mini-field-head label span {
  color: var(--faint);
  font-size: 7px;
  font-weight: 400;
  text-transform: uppercase;
}

.mini-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-clear {
  margin-bottom: 6px;
  padding: 0;
  background: transparent;
  color: var(--accent-deep);
  font-size: 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mini-field input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.mini-field input:focus {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(199, 222, 123, 0.2);
}

.mini-field input.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(158, 63, 53, 0.09);
}

.precision-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 8.2px;
  line-height: 1.5;
}

.precision-note svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(158, 63, 53, 0.22);
  border-radius: 9px;
  background: rgba(158, 63, 53, 0.06);
  color: var(--error);
  font-size: 9.5px;
  line-height: 1.45;
}

.form-error svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 54px;
  margin-top: 17px;
  padding: 0 9px 0 20px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.primary-button:hover {
  background: var(--forest-2);
  box-shadow: 0 12px 28px -16px rgba(15, 35, 25, 0.55);
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(0);
}

.button-icon {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(246, 241, 229, 0.1);
  place-items: center;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.primary-button:hover .button-icon {
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateX(2px);
}

html[data-theme="dark"] .primary-button {
  background: var(--accent);
  color: var(--accent-ink);
}

html[data-theme="dark"] .primary-button:hover {
  background: var(--accent-bright);
}

html[data-theme="dark"] .button-icon {
  background: rgba(23, 33, 19, 0.1);
}

html[data-theme="dark"] .primary-button:hover .button-icon {
  background: rgba(23, 33, 19, 0.16);
}

.local-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 11px;
  color: var(--faint);
  font-size: 8.2px;
  line-height: 1.4;
  text-align: center;
}

.local-note svg {
  flex-shrink: 0;
  color: var(--accent-deep);
}

/* =========================================================
   Result card
   ========================================================= */

.result-wrap {
  position: relative;
  min-width: 0;
}

.result-card {
  position: relative;
  display: flex;
  min-height: 642px;
  flex-direction: column;
  overflow: hidden;
  padding: 31px 33px 22px;
  border: 1px solid rgba(245, 240, 228, 0.09);
  border-radius: 30px;
  background: var(--result-bg);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--result-ink);
  isolation: isolate;
  transition: background 0.4s ease, border-color 0.4s ease;
}

html[data-theme="dark"] .result-card {
  border-color: rgba(245, 240, 228, 0.14);
}

.result-card::before {
  position: absolute;
  top: -190px;
  right: -140px;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 222, 123, 0.14) 0%, rgba(199, 222, 123, 0.02) 48%, transparent 68%);
  content: "";
  pointer-events: none;
}

.result-card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 76px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
  opacity: 0.45;
}

.result-decor {
  position: absolute;
  top: -205px;
  right: -225px;
  z-index: -1;
  width: 630px;
  color: #f5f0e4;
  opacity: 0.9;
  pointer-events: none;
}

.result-decor svg {
  width: 100%;
  height: auto;
}

.result-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.result-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.result-kicker {
  color: var(--result-muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.preview-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  border: 1px solid rgba(199, 222, 123, 0.3);
  border-radius: 4px;
  background: rgba(199, 222, 123, 0.08);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.preview-chip.is-hidden {
  opacity: 0;
  transform: translateY(-2px);
}

.as-of {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding-top: 1px;
  color: var(--result-muted);
  font-family: var(--mono);
  font-size: 7.8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-align: right;
}

.as-of > span:last-child {
  white-space: nowrap;
}

.live-dot {
  position: relative;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(199, 222, 123, 0.12);
}

.live-dot.is-static {
  background: var(--result-soft);
  box-shadow: none;
}

.live-dot:not(.is-static)::after {
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(199, 222, 123, 0.32);
  border-radius: 50%;
  content: "";
  animation: pulse 2.6s ease-out infinite;
}

.result-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding-bottom: 24px;
}

.age-block {
  min-width: 0;
}

.age-caption {
  display: block;
  margin-bottom: 8px;
  color: var(--result-muted);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.age-number-line {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.age-big {
  color: var(--result-ink);
  font-family: var(--serif);
  font-size: clamp(104px, 9.5vw, 146px);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.68;
  white-space: nowrap;
}

.age-word {
  margin-bottom: 9px;
  color: var(--result-muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.age-exact {
  margin-top: 17px;
  color: var(--result-soft);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.age-exact b {
  color: var(--result-ink);
  font-size: 15px;
  font-weight: 500;
}

.age-exact span {
  margin-inline: 6px;
  color: rgba(245, 240, 228, 0.36);
}

.age-origin {
  margin-top: 5px;
  color: var(--result-muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.025em;
}

.orbit-wrap {
  display: flex;
  flex: 0 0 168px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  align-self: stretch;
  margin-left: 10px;
  padding-left: 26px;
  border-left: 1px solid var(--result-line);
}

.orbit-label {
  color: var(--result-muted);
  font-family: var(--mono);
  font-size: 6.8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.orbit-visual {
  position: relative;
  width: 148px;
  height: 148px;
}

.orbit-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orbit-tick-ring {
  stroke: rgba(245, 240, 228, 0.16);
  stroke-width: 1;
  stroke-dasharray: 1 6;
}

.orbit-track {
  stroke: rgba(245, 240, 228, 0.09);
  stroke-width: 2;
}

.orbit-progress {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-width: 2.5;
  stroke-dasharray: 383.27;
  stroke-dashoffset: 96;
  filter: drop-shadow(0 0 5px rgba(199, 222, 123, 0.3));
  transform: rotate(-90deg);
  transform-origin: 74px 74px;
  transition: stroke-dashoffset 1s var(--ease);
}

.orbit-endpoint {
  fill: var(--accent);
  filter: drop-shadow(0 0 4px rgba(199, 222, 123, 0.5));
  transition: cx 1s var(--ease), cy 1s var(--ease);
}

.orbit-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding-top: 3px;
  text-align: center;
}

.orbit-center strong {
  color: var(--result-ink);
  font-family: var(--serif);
  font-size: 37px;
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.orbit-center span {
  color: var(--result-muted);
  font-family: var(--mono);
  font-size: 6.4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.orbit-center b {
  margin-top: 2px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.orbit-center b::before {
  content: "→ ";
  font-size: 7px;
  opacity: 0.7;
}

.next-birthday-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--result-line);
  border-bottom: 1px solid var(--result-line);
}

.line-label {
  color: var(--result-muted);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.line-value {
  color: var(--result-soft);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: right;
}

.result-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2px;
}

.result-stat {
  padding: 16px 0 13px;
}

.result-stat + .result-stat {
  padding-left: 21px;
  border-left: 1px solid var(--result-line);
}

.result-stat span {
  display: block;
  margin-bottom: 4px;
  color: var(--result-muted);
  font-family: var(--mono);
  font-size: 6.9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-stat strong {
  display: block;
  color: var(--result-ink);
  font-family: var(--sans);
  font-size: clamp(20px, 1.9vw, 26px);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.seconds-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
  padding: 9px 11px;
  border: 1px solid var(--result-line);
  border-radius: 8px;
  background: var(--result-surface);
}

.seconds-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--result-muted);
  font-family: var(--mono);
  font-size: 6.8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.seconds-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.seconds-bar strong {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: 0.015em;
}

.result-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 8px;
  margin-top: 11px;
}

.result-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  border-radius: 9px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.result-button:active {
  transform: translateY(1px);
}

.result-button--ghost {
  border: 1px solid var(--result-line);
  background: transparent;
  color: var(--result-soft);
}

.result-button--ghost:hover {
  border-color: rgba(245, 240, 228, 0.24);
  background: var(--result-surface);
  color: var(--result-ink);
}

.result-button--solid {
  background: var(--cream);
  color: var(--forest);
}

.result-button--solid:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.result-signature {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 14px;
  color: rgba(245, 240, 228, 0.28);
  font-family: var(--mono);
  font-size: 6.2px;
  letter-spacing: 0.12em;
}

.result-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px 0;
  color: var(--muted);
}

.caption-mark {
  color: var(--accent-deep);
  font-size: 8px;
}

.result-caption p {
  font-size: 9.5px;
  letter-spacing: 0.01em;
  text-align: center;
}

.result-caption span {
  color: var(--ink-soft);
}

/* =========================================================
   Section foundations
   ========================================================= */

.section {
  padding-top: clamp(72px, 8vw, 112px);
  scroll-margin-top: 80px;
}

.section-heading {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.section-index {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.index-number {
  color: var(--ink);
}

.index-line {
  width: 42px;
  height: 1px;
  background: var(--line-strong);
}

.section-heading-row {
  display: grid;
  grid-template-columns: 1fr minmax(290px, 0.56fr);
  align-items: end;
  gap: 60px;
  margin-top: clamp(28px, 3.5vw, 44px);
}

.section-heading h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(52px, 5.9vw, 82px);
  font-weight: 400;
  letter-spacing: -0.038em;
  line-height: 0.86;
}

.section-heading h2 em {
  font-weight: 400;
}

.section-intro {
  max-width: 430px;
  justify-self: end;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.72;
}

/* =========================================================
   Resolution section
   ========================================================= */

.resolution-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.46fr) minmax(320px, 0.9fr);
  gap: 16px;
  margin-top: clamp(30px, 3.8vw, 48px);
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 27px clamp(22px, 2.2vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-header h3 {
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6.7px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.panel-badge svg {
  color: var(--accent-deep);
}

.panel-badge--plain {
  border-color: var(--lime-line);
  color: var(--lime-soft);
}

.calendar-age {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: clamp(13px, 1.9vw, 25px);
  margin-top: clamp(25px, 3vw, 38px);
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.calendar-component {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calendar-component strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(52px, 5.2vw, 70px);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.74;
}

.calendar-component span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.component-divider {
  width: 1px;
  height: 33px;
  margin-bottom: 3px;
  background: var(--line);
}

.component-aside {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
  padding-bottom: 4px;
  text-align: right;
}

.component-aside span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6.7px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.component-aside strong {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.unit-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.unit {
  min-width: 0;
  padding: 13px 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.unit:nth-child(3n) {
  border-right: 0;
}

.unit:nth-child(n + 4) {
  border-bottom: 0;
}

.unit-label {
  display: block;
  margin-bottom: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.unit strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15px, 1.45vw, 18px);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
}

.panel-note {
  max-width: 57ch;
  color: var(--faint);
  font-size: 8.7px;
  line-height: 1.55;
}

.inline-link {
  padding: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}

.inline-link:hover {
  color: var(--accent-deep);
}

.panel-foot-mark {
  flex-shrink: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6.4px;
  letter-spacing: 0.08em;
}

/* Birthday panel */

.birthday-panel {
  display: flex;
  flex-direction: column;
  border-color: var(--lime-line);
  background: var(--lime-bg);
  color: var(--lime-ink);
}

.birthday-panel-decor {
  position: absolute;
  right: -52px;
  bottom: -72px;
  width: 330px;
  color: var(--lime-ink);
  opacity: 0.52;
  pointer-events: none;
}

.birthday-panel-decor svg {
  width: 100%;
  height: auto;
}

.birthday-panel .micro-label {
  color: var(--lime-soft);
}

.birthday-count {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 48px);
}

.birthday-count > strong {
  color: var(--lime-ink);
  font-family: var(--serif);
  font-size: clamp(82px, 8vw, 104px);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.66;
}

.birthday-count-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 3px;
}

.birthday-count-copy span:first-child {
  color: var(--lime-ink);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.birthday-count-copy span:last-child {
  max-width: 125px;
  color: var(--lime-soft);
  font-size: 8.5px;
  line-height: 1.4;
}

.birthday-title {
  position: relative;
  z-index: 1;
  margin-top: 31px;
  color: var(--lime-ink);
  font-family: var(--serif);
  font-size: clamp(30px, 2.7vw, 37px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

.birthday-date {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: var(--lime-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.birthday-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.7fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 30px;
}

.birthday-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--lime-line);
}

.birthday-meta span {
  color: var(--lime-soft);
  font-family: var(--mono);
  font-size: 6.3px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.birthday-meta strong {
  color: var(--lime-ink);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
}

.birthday-progress {
  position: relative;
  z-index: 1;
  margin-top: 17px;
}

.birthday-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
  color: var(--lime-soft);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.035em;
}

.progress-track {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--lime-line);
}

.progress-fill {
  display: block;
  width: 74%;
  height: 100%;
  border-radius: inherit;
  background: var(--lime-ink);
  transition: width 1s var(--ease);
}

/* =========================================================
   Milestones
   ========================================================= */

.milestone-panel {
  position: relative;
  margin-top: clamp(30px, 3.8vw, 48px);
  padding: 25px clamp(22px, 2.5vw, 34px) 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.milestone-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.milestone-legend {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6.8px;
  letter-spacing: 0.04em;
}

.milestone-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 5px;
  height: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.legend-dot--past {
  background: var(--ink);
  border-color: var(--ink);
}

.legend-dot--now {
  background: var(--accent);
  border-color: var(--accent-deep);
}

.legend-dot--future {
  background: transparent;
}

.milestone-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 18px);
  margin-top: 24px;
}

.track-line {
  position: absolute;
  top: 7px;
  right: calc(16.666% - 6px);
  left: 7px;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--line-strong) 0%,
    var(--line-strong) 50%,
    var(--line) 50%,
    var(--line) 100%
  );
  pointer-events: none;
}

.milestone-entry {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-top: 26px;
}

.milestone-node {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  place-items: center;
}

.milestone-node span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.2s ease;
}

.milestone-entry.is-past .milestone-node {
  border-color: var(--ink);
  background: var(--ink);
}

.milestone-entry.is-past .milestone-node span {
  background: var(--surface);
}

.milestone-entry.is-today .milestone-node {
  border-color: var(--accent-deep);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(199, 222, 123, 0.2);
}

.milestone-entry.is-today .milestone-node span {
  background: var(--accent-ink);
}

.milestone-entry.is-future .milestone-node {
  border-color: var(--line-strong);
  background: var(--surface);
}

.milestone-status {
  margin-bottom: 7px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6.4px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.milestone-entry.is-today .milestone-status {
  color: var(--accent-deep);
}

.milestone-name {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.milestone-date {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.005em;
  line-height: 1.45;
}

.milestone-entry.is-today .milestone-date {
  color: var(--ink-soft);
}

.milestone-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.milestone-panel-foot p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.foot-star {
  color: var(--accent-deep);
  font-size: 8px;
}

.milestone-count {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7.3px;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

/* =========================================================
   Signature
   ========================================================= */

.signature-panel {
  margin-top: clamp(30px, 3.8vw, 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.signature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 25px clamp(22px, 2.5vw, 32px);
  border-bottom: 1px solid var(--line);
}

.signature-heading h3 {
  margin-top: 5px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.signature-stamp {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6px;
  line-height: 1.45;
  letter-spacing: 0.12em;
}

.stamp-ring {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.stamp-ring::before,
.stamp-ring::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.stamp-ring::before {
  inset: 7px;
  border: 1px dashed var(--line-strong);
}

.stamp-ring::after {
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: var(--accent-deep);
  transform: translate(-50%, -50%);
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.signature-cell {
  position: relative;
  display: flex;
  min-height: 154px;
  flex-direction: column;
  padding: 22px 23px 20px;
  overflow: hidden;
  background: var(--surface);
}

.signature-cell--wide {
  grid-column: span 2;
  background:
    radial-gradient(circle at 88% 15%, rgba(199, 222, 123, 0.25), transparent 44%),
    var(--surface);
}

.signature-index {
  position: absolute;
  top: 19px;
  right: 20px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.06em;
}

.signature-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signature-value {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--ink);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.signature-value--day {
  font-family: var(--serif);
  font-size: clamp(35px, 3.3vw, 45px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.9;
}

.signature-symbol {
  color: var(--accent-deep);
  font-family: var(--serif), "Apple Symbols", "Segoe UI Symbol", serif;
  font-size: 1.25em;
  font-variant-emoji: text;
  line-height: 0.9;
}

.signature-sub {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  color: var(--faint);
  font-size: 8.2px;
  line-height: 1.45;
}

.signature-art {
  position: absolute;
  right: 23px;
  bottom: 7px;
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: 108px;
  line-height: 1;
  opacity: 0.1;
  pointer-events: none;
  transform: rotate(8deg);
}

.signature-cell--wide .signature-art {
  right: 34px;
  opacity: 0.17;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  position: relative;
  margin-top: clamp(80px, 10vw, 132px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 700px 400px at 12% 10%, rgba(199, 222, 123, 0.07), transparent 65%),
    #0d2018;
  color: var(--cream);
}

.site-footer::before {
  position: absolute;
  top: -340px;
  right: -120px;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(246, 241, 229, 0.055);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(246, 241, 229, 0.018), 0 0 0 190px rgba(246, 241, 229, 0.012);
  content: "";
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding-top: 51px;
  padding-bottom: 22px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.12fr auto;
  gap: clamp(35px, 6vw, 88px);
  align-items: start;
}

.footer-brand .brand {
  color: var(--cream);
}

.footer-brand .brand-tagline {
  color: rgba(246, 241, 229, 0.44);
}

.footer-line {
  margin-top: 20px;
  color: rgba(246, 241, 229, 0.78);
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.footer-line em {
  color: var(--accent);
}

.footer-privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 385px;
  padding-top: 4px;
}

.privacy-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid rgba(246, 241, 229, 0.15);
  border-radius: 50%;
  color: var(--accent);
  place-items: center;
}

.footer-privacy strong {
  display: block;
  color: var(--cream);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.footer-privacy p {
  max-width: 30ch;
  margin-top: 5px;
  color: rgba(246, 241, 229, 0.5);
  font-size: 9.5px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 120px;
  padding-top: 4px;
}

.footer-links .micro-label {
  margin-bottom: 3px;
  color: rgba(246, 241, 229, 0.4);
}

.footer-links button,
.footer-links a {
  padding: 0;
  background: transparent;
  color: rgba(246, 241, 229, 0.7);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.footer-links button:hover,
.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 45px;
  padding-top: 16px;
  border-top: 1px solid rgba(246, 241, 229, 0.09);
  color: rgba(246, 241, 229, 0.36);
  font-family: var(--mono);
  font-size: 6.8px;
  letter-spacing: 0.04em;
}

.footer-engine {
  color: rgba(246, 241, 229, 0.5);
}

/* =========================================================
   Dialogs and toast
   ========================================================= */

.info-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 48px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 120px -30px rgba(3, 10, 6, 0.55);
}

.info-dialog::backdrop {
  background: rgba(4, 12, 8, 0.56);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.info-dialog[open] {
  animation: dialog-in 0.3s var(--ease) both;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 25px 0;
}

.dialog-close {
  display: grid;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  place-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dialog-close:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.info-dialog h2 {
  padding: 14px 25px 8px;
  font-family: var(--serif);
  font-size: clamp(35px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.93;
}

.info-dialog h2 em {
  color: var(--ink-soft);
}

.dialog-body {
  max-height: min(540px, calc(100vh - 220px));
  padding: 15px 25px 29px;
  overflow-y: auto;
}

.dialog-body p {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.72;
}

.dialog-body p + p {
  margin-top: 12px;
}

.dialog-body h3 {
  margin: 22px 0 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dialog-aside {
  margin-top: 25px !important;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
  font-family: var(--serif);
  font-size: 20px !important;
  font-style: italic;
}

.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  z-index: 200;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border: 1px solid rgba(246, 241, 229, 0.14);
  border-radius: 9px;
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 18px 45px -20px rgba(0, 0, 0, 0.6);
  font-size: 10.5px;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   Motion
   ========================================================= */

@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.85);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rise {
  from {
    transform: translateY(14px);
  }
  to {
    transform: translateY(0);
  }
}

.reveal {
  animation: rise 0.8s var(--ease) both;
}

.reveal:nth-child(2) {
  animation-delay: 0.07s;
}

.reveal:nth-child(3) {
  animation-delay: 0.12s;
}

.reveal--delay {
  animation-delay: 0.16s;
}

.reveal {
  animation-delay: var(--reveal-delay, 0s);
}

.reveal:nth-child(2) {
  --reveal-delay: 0.05s;
}

.reveal:nth-child(3) {
  --reveal-delay: 0.1s;
}

.reveal :is(.result-wrap, .birth-form) {
  --reveal-delay: 0.14s;
}

.reveal--delay {
  --reveal-delay: 0.16s;
}

html.is-revealing .section-heading,
html.is-revealing .panel,
html.is-revealing .milestone-panel,
html.is-revealing .signature-panel {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.is-revealing .section-heading.is-visible,
html.is-revealing .panel.is-visible,
html.is-revealing .milestone-panel.is-visible,
html.is-revealing .signature-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
  .header-inner {
    gap: 20px;
  }

  .primary-nav {
    gap: 23px;
  }

  .header-tools {
    gap: 13px;
  }

  .privacy-pill {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 32px;
  }

  .hero-title {
    font-size: clamp(58px, 6.5vw, 78px);
  }

  .result-card {
    padding-inline: 26px;
  }

  .age-big {
    font-size: clamp(96px, 10.7vw, 128px);
  }

  .orbit-wrap {
    flex-basis: 154px;
    padding-left: 20px;
  }

  .orbit-visual {
    width: 138px;
    height: 138px;
  }

  .calendar-age {
    gap: 15px;
  }

  .component-aside {
    display: none;
  }

  .section-heading-row {
    grid-template-columns: 1fr minmax(270px, 0.58fr);
    gap: 38px;
  }

  .footer-top {
    gap: 34px;
  }
}

@media (max-width: 980px) {
  .primary-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-tools {
    grid-column: 2;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 42px;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero-title {
    max-width: 680px;
    font-size: clamp(66px, 10vw, 88px);
  }

  .hero-lede {
    max-width: 500px;
  }

  .birth-form {
    max-width: none;
  }

  .result-card {
    min-height: 0;
    padding: 31px 34px 23px;
  }

  .age-big {
    font-size: clamp(118px, 16vw, 150px);
  }

  .orbit-wrap {
    flex-basis: 182px;
  }

  .orbit-visual {
    width: 160px;
    height: 160px;
  }

  .result-main {
    margin-top: 42px;
  }

  .result-signature {
    margin-top: 15px;
  }

  .resolution-grid {
    grid-template-columns: 1fr;
  }

  .birthday-panel {
    min-height: 470px;
  }

  .birthday-count {
    margin-top: 36px;
  }

  .birthday-meta {
    margin-top: 38px;
  }

  .section-heading-row {
    gap: 36px;
  }

  .milestone-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px 24px;
  }

  .track-line {
    display: none;
  }

  .milestone-entry {
    padding-top: 23px;
  }

  .milestone-entry::before {
    position: absolute;
    top: 15px;
    right: 0;
    left: 24px;
    height: 1px;
    background: var(--line);
    content: "";
  }

  .milestone-entry:nth-child(3n + 1)::before {
    left: 0;
    background: transparent;
  }

  .milestone-node {
    top: 3px;
  }

  .milestone-panel-foot {
    margin-top: 22px;
  }

  .signature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signature-cell--wide {
    grid-column: span 2;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }

  .footer-links {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding-top: 0;
  }

  .footer-links .micro-label {
    margin: 0 4px 0 0;
  }

  .footer-bottom {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .shell {
    padding-inline: 20px;
  }

  .header-inner {
    min-height: 70px;
    padding-inline: 20px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 22px;
  }

  .header-clock {
    display: none;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 66px;
  }

  .hero-title {
    margin-top: 17px;
    font-size: clamp(56px, 14vw, 72px);
  }

  .hero-lede {
    margin-top: 20px;
    font-size: 13.5px;
  }

  .birth-form {
    margin-top: 27px;
    padding: 20px;
    border-radius: 20px;
  }

  .form-head h2 {
    font-size: 24px;
  }

  .date-row {
    grid-template-columns: 72px minmax(0, 1fr) 95px;
  }

  .date-segment {
    height: 54px;
  }

  .date-segment--day input,
  .date-segment--year input {
    padding-left: 12px;
    font-size: 18px;
  }

  .date-segment--month select {
    padding-left: 12px;
    font-size: 13px;
  }

  .precision-trigger {
    align-items: flex-start;
  }

  .precision-value {
    text-align: right;
    white-space: normal;
  }

  .precision-grid {
    grid-template-columns: 1fr;
  }

  .result-card {
    padding: 24px 21px 18px;
    border-radius: 24px;
  }

  .result-top {
    align-items: flex-start;
  }

  .result-heading {
    flex-wrap: wrap;
    gap: 5px 8px;
  }

  .as-of {
    margin-left: auto;
    text-align: right;
  }

  .result-main {
    display: block;
    margin-top: 37px;
    padding-bottom: 20px;
  }

  .age-big {
    font-size: clamp(96px, 29vw, 122px);
  }

  .age-word {
    margin-bottom: 6px;
  }

  .orbit-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin: 28px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--result-line);
    border-left: 0;
    align-self: auto;
  }

  .orbit-visual {
    width: 94px;
    height: 94px;
  }

  .orbit-label {
    order: 2;
    margin-left: auto;
    align-self: flex-start;
  }

  .orbit-center strong {
    font-size: 26px;
  }

  .orbit-center span {
    font-size: 5.5px;
  }

  .orbit-center b {
    font-size: 8px;
  }

  .next-birthday-line {
    align-items: flex-start;
    gap: 12px;
  }

  .line-value {
    max-width: 58%;
    font-size: 9px;
  }

  .result-stat {
    padding: 14px 0 11px;
  }

  .result-stat + .result-stat {
    padding-left: 13px;
  }

  .result-stat strong {
    font-size: clamp(18px, 5vw, 22px);
  }

  .seconds-bar {
    gap: 8px;
  }

  .seconds-bar strong {
    font-size: 9.5px;
  }

  .result-actions {
    grid-template-columns: 1fr 1fr;
  }

  .result-signature {
    display: none;
  }

  .result-caption {
    padding-top: 12px;
  }

  .result-caption p {
    max-width: 290px;
    line-height: 1.55;
  }

  .section {
    padding-top: 68px;
  }

  .section-heading {
    padding-top: 17px;
  }

  .section-heading-row {
    display: block;
    margin-top: 26px;
  }

  .section-heading h2 {
    font-size: clamp(48px, 13.5vw, 64px);
  }

  .section-intro {
    max-width: 480px;
    margin-top: 19px;
    justify-self: auto;
    font-size: 12px;
  }

  .resolution-grid {
    margin-top: 27px;
  }

  .panel {
    padding: 21px 19px;
    border-radius: 22px;
  }

  .panel-header h3 {
    font-size: 13px;
  }

  .calendar-age {
    gap: 13px;
    margin-top: 26px;
    padding-bottom: 20px;
  }

  .calendar-component strong {
    font-size: clamp(48px, 14vw, 61px);
  }

  .calendar-component span {
    font-size: 6.4px;
  }

  .component-divider {
    height: 28px;
  }

  .unit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .unit {
    padding: 11px 12px;
  }

  .unit:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .unit:nth-child(2n) {
    border-right: 0;
  }

  .unit:nth-child(n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .unit:nth-child(n + 5) {
    border-bottom: 0;
  }

  .unit strong {
    font-size: 15px;
  }

  .panel-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .panel-foot-mark {
    display: none;
  }

  .birthday-panel {
    min-height: 430px;
  }

  .birthday-count > strong {
    font-size: clamp(76px, 23vw, 94px);
  }

  .birthday-title {
    font-size: 32px;
  }

  .birthday-meta {
    padding-top: 29px;
  }

  .milestone-panel {
    margin-top: 28px;
    padding: 20px 19px 18px;
    border-radius: 22px;
  }

  .milestone-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .milestone-track {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 18px;
    padding-left: 23px;
  }

  .track-line {
    display: block;
    top: 7px;
    right: auto;
    bottom: 32px;
    left: 7px;
    width: 1px;
    height: auto;
    background: var(--line);
  }

  .milestone-entry {
    padding: 0 0 19px 0;
  }

  .milestone-entry::before {
    display: none;
  }

  .milestone-node {
    top: 1px;
    left: -23px;
  }

  .milestone-entry:last-child {
    padding-bottom: 4px;
  }

  .milestone-status {
    margin-bottom: 4px;
  }

  .milestone-name {
    font-size: 12px;
  }

  .milestone-date {
    font-size: 8px;
  }

  .milestone-panel-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 17px;
  }

  .milestone-count {
    white-space: normal;
  }

  .signature-head {
    padding: 21px 19px;
  }

  .signature-heading h3 {
    font-size: 22px;
  }

  .signature-stamp {
    display: none;
  }

  .signature-cell {
    min-height: 139px;
    padding: 18px 17px;
  }

  .signature-value {
    font-size: 19px;
  }

  .signature-value--day {
    font-size: clamp(33px, 9vw, 40px);
  }

  .signature-sub {
    font-size: 7.5px;
  }

  .signature-art {
    right: 14px;
    font-size: 84px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .footer-links .micro-label {
    flex-basis: 100%;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-top: 31px;
  }

  .footer-inner {
    padding-top: 38px;
    padding-bottom: 20px;
  }

  .info-dialog h2 {
    padding-inline: 20px;
  }

  .dialog-head {
    padding-inline: 20px;
  }

  .dialog-body {
    padding-inline: 20px;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: clamp(49px, 14vw, 58px);
  }

  .date-row {
    grid-template-columns: 64px minmax(0, 1fr) 84px;
    gap: 5px;
  }

  .date-segment--day input,
  .date-segment--year input {
    padding-left: 10px;
    font-size: 16px;
  }

  .date-segment--month select {
    padding-left: 10px;
    font-size: 12px;
  }

  .date-segment--month .select-chevron {
    right: 10px;
  }

  .age-big {
    font-size: 91px;
  }

  .age-exact {
    font-size: 12.5px;
  }

  .age-exact b {
    font-size: 13.5px;
  }

  .result-heading {
    max-width: 65%;
  }

  .as-of {
    max-width: 35%;
    white-space: normal;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }

  .result-button {
    height: 39px;
  }

  .calendar-component strong {
    font-size: 47px;
  }

  .signature-cell {
    min-height: 128px;
  }

  .signature-value {
    font-size: 17px;
  }

  .signature-value--day {
    font-size: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  html.is-revealing .section-heading,
  html.is-revealing .panel,
  html.is-revealing .milestone-panel,
  html.is-revealing .signature-panel {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Print
   ========================================================= */

@page {
  margin: 14mm;
}

@media print {
  html.is-revealing .section-heading,
  html.is-revealing .panel,
  html.is-revealing .milestone-panel,
  html.is-revealing .signature-panel {
    opacity: 1 !important;
    transform: none !important;
  }

  :root {
    --bg: #fff;
    --surface: #fff;
    --surface-soft: #f6f5f1;
    --ink: #111;
    --ink-soft: #333;
    --muted: #666;
    --faint: #777;
    --line: #ddd;
    --line-strong: #bbb;
    --accent: #d8e7a2;
    --result-bg: #fff;
    --result-ink: #111;
    --result-soft: #333;
    --result-muted: #666;
    --result-line: #ddd;
    --result-surface: #f7f7f4;
    --lime-bg: #f3f5ea;
    --lime-ink: #111;
    --lime-soft: #555;
    --lime-line: #ddd;
  }

  body {
    background: #fff !important;
    color: #111;
    font-size: 11pt;
  }

  .page-grain,
  .site-header,
  .site-footer,
  .primary-nav,
  .hero-copy .eyebrow,
  .hero-copy .hero-lede,
  .birth-form,
  .result-caption,
  .result-actions,
  .toast,
  .info-dialog,
  .section-intro,
  .section-heading-row > .section-intro,
  .panel-foot-mark,
  .inline-link {
    display: none !important;
  }

  .shell {
    max-width: none;
    padding-inline: 0;
  }

  .hero {
    display: block;
    padding: 0 0 18pt;
  }

  .hero-copy {
    max-width: none;
    padding: 0;
  }

  .hero-title {
    max-width: none;
    margin: 0 0 12pt;
    font-size: 30pt;
    line-height: 0.95;
  }

  .hero-title em::after {
    display: none;
  }

  .result-wrap {
    max-width: none;
  }

  .result-card {
    min-height: 0;
    padding: 18pt;
    border: 1px solid #ccc;
    background: #fff !important;
    box-shadow: none;
    color: #111;
  }

  .result-decor,
  .result-card::before,
  .result-card::after {
    display: none;
  }

  .result-kicker,
  .preview-chip,
  .as-of,
  .age-caption,
  .age-word,
  .age-origin,
  .orbit-label {
    color: #666 !important;
  }

  .age-big,
  .age-exact b,
  .orbit-center strong,
  .result-stat strong,
  .line-value {
    color: #111 !important;
  }

  .age-exact,
  .result-stat span,
  .line-label,
  .seconds-label {
    color: #444 !important;
  }

  .orbit-wrap {
    padding-left: 20px;
    border-color: #ddd;
  }

  .orbit-track,
  .orbit-tick-ring {
    stroke: #ddd;
  }

  .orbit-progress {
    stroke: #6b7a43;
    filter: none;
  }

  .orbit-endpoint {
    fill: #6b7a43;
    filter: none;
  }

  .next-birthday-line,
  .result-stat + .result-stat {
    border-color: #ddd;
  }

  .seconds-bar {
    border-color: #ddd;
    background: #f6f6f2;
  }

  .seconds-bar strong {
    color: #3f4a27;
  }

  .result-signature {
    display: none;
  }

  .section {
    padding-top: 24pt;
    break-inside: avoid;
  }

  .section-heading {
    padding-top: 9pt;
    border-color: #ccc;
  }

  .section-heading-row {
    display: block;
    margin-top: 12pt;
  }

  .section-heading h2 {
    font-size: 28pt;
  }

  .section-intro {
    margin-top: 6pt;
    color: #444;
  }

  .resolution-grid {
    display: block;
    margin-top: 12pt;
  }

  .panel {
    margin-bottom: 10pt;
    padding: 14pt;
    border-color: #ddd;
    background: #fff;
    box-shadow: none;
    break-inside: avoid;
  }

  .birthday-panel {
    background: #f4f6ea;
    color: #111;
  }

  .unit-grid {
    background: #fafaf7;
  }

  .calendar-age,
  .calendar-component strong,
  .birthday-count > strong,
  .birthday-title,
  .birthday-meta strong {
    color: #111 !important;
  }

  .birthday-count > strong {
    font-size: 66pt;
  }

  .birthday-meta {
    margin-top: 15pt;
  }

  .milestone-panel {
    margin-top: 12pt;
    padding: 14pt;
    border-color: #ddd;
    box-shadow: none;
    break-inside: avoid;
  }

  .milestone-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13pt;
  }

  .track-line {
    display: none;
  }

  .milestone-entry {
    padding-top: 18pt;
  }

  .milestone-entry::before {
    display: none;
  }

  .milestone-node {
    top: 0;
    left: 0;
  }

  .milestone-panel-foot {
    margin-top: 14pt;
  }

  .signature-panel {
    margin-top: 12pt;
    break-inside: avoid;
  }

  .signature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .signature-cell--wide {
    grid-column: span 1;
  }

  .signature-cell {
    min-height: 90pt;
  }

  .signature-art {
    display: none;
  }

  .birthday-panel-decor {
    display: none;
  }

  .progress-fill {
    background: #67753f;
  }
}
