/* Naturale DS case study pages. Same tokens as the homepage. */
:root {
  --linen: #F4EFE6;
  --paper: #FFFDF8;
  --bark: #3B2F25;
  --bark-soft: #6B5A4A;
  --moss: #6B9B63;
  --sage: #6B9B63;
  --lichen: color-mix(in srgb, #6B9B63 16%, #F4EFE6);
  --rule: #E0D6C4;
  --danger: #A8452C;
  --glass: rgba(255, 253, 248, 0.55);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --glass-shadow: rgba(59, 47, 37, 0.18);
  --glass-ring: rgba(59, 47, 37, 0.09);

  --font-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--1: 0.8125rem; --lh--1: 1.25rem;
  --step-0: 1rem;       --lh-0: 1.5rem;
  --step-1: 1.25rem;    --lh-1: 1.75rem;
  --step-2: 1.5625rem;  --lh-2: 2rem;
  --step-3: 1.9375rem;  --lh-3: 2.25rem;
  --step-4: 2.4375rem;  --lh-4: 2.75rem;

  --max: 76rem;
  --wide: 84rem;
  --prose: 50rem;
  color-scheme: light;
}
@media (min-width: 1024px) {
  :root {
    --step--1: 0.875rem;  --lh--1: 1.25rem;
    --step-0: 1.125rem;   --lh-0: 1.75rem;
    --step-1: 1.5rem;     --lh-1: 2rem;
    --step-2: 2rem;       --lh-2: 2.5rem;
    --step-3: 2.6875rem;  --lh-3: 3rem;
    --step-4: 3.5625rem;  --lh-4: 3.75rem;
  }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --linen: #1D1914; --paper: #25201A; --bark: #EFE6D8; --bark-soft: #BCAB95;
    --moss: #9DC394; --sage: #6B9B63; --lichen: #2C3828; --rule: #3A3229; --danger: #C9603F;
    --glass: rgba(37, 32, 26, 0.55); --glass-edge: rgba(239, 230, 216, 0.14); --glass-shadow: rgba(0, 0, 0, 0.45); --glass-ring: rgba(239, 230, 216, 0.08);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --linen: #1D1914; --paper: #25201A; --bark: #EFE6D8; --bark-soft: #BCAB95;
  --moss: #9DC394; --sage: #6B9B63; --lichen: #2C3828; --rule: #3A3229; --danger: #C9603F;
  --glass: rgba(37, 32, 26, 0.55); --glass-edge: rgba(239, 230, 216, 0.14); --glass-shadow: rgba(0, 0, 0, 0.45); --glass-ring: rgba(239, 230, 216, 0.08);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; padding-top:env(safe-area-inset-top, 0px); padding-bottom:env(safe-area-inset-bottom, 0px); }
body { margin:0; background: var(--paper); color: var(--bark); font-family: var(--font-body); font-size: var(--step-0); line-height: var(--lh-0); font-synthesis: none; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin:0; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; }
a { color: var(--moss); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin:0 auto; padding-left:max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px)); padding-right:max(clamp(16px, 4vw, 48px), env(safe-area-inset-right, 0px)); }
.wrap.wide { max-width: var(--wide); }
.eyebrow { font-size: var(--step--1); line-height: var(--lh--1); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--moss); }
.meta { font-size: var(--step--1); line-height: var(--lh--1); color: var(--bark-soft); }
.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; }

/* nav: same glass capsule as the homepage */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; pointer-events: none; }
.top .wrap { display: flex; justify-content: center; padding-block:16px; }
.glass { pointer-events: auto; position: relative; display: flex; align-items: center; gap:4px; padding:8px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: 0 0 0 1px var(--glass-ring), inset 0 1px 0 var(--glass-edge), 0 12px 32px -16px var(--glass-shadow); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); max-width: 100%; }
.glass a { display: inline-flex; align-items: center; height: 38px; padding:0 16px; border-radius: 999px; font-size: 0.875rem; font-weight: 500; line-height: 1; color: var(--bark); text-decoration: none; transition: color .3s, background .2s; white-space: nowrap; }
.glass a:not(.mark):not(.cv):hover { color: var(--moss); }
.glass a.on { color: var(--moss); background: color-mix(in srgb, var(--sage) 20%, transparent); }
.glass .mark { font-family: var(--font-display); font-weight: 400; font-size: 1.0625rem; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); margin-right:12px; }
.glass .mark .mono { display: none; }
.glass .cv { background: var(--bark); color: var(--paper); margin-left:12px; }
.glass .cv:hover { background: var(--moss); }
.glass .nav-ico { display: none; width: 18px; height: 18px; }
@media (max-width: 719px) { .glass .mark .full { display: none; } .glass .mark .mono { display: inline; } .glass .mark { width: 38px; padding:0; justify-content: center; font-size: 0.875rem; } }
@media (max-width: 479px) {
  .glass { gap:2px; padding:4px; }
  .glass a { height: 38px; padding:0 12px; }
  .glass a.contact { width: 42px; padding:0; justify-content: center; }
  .glass a.contact .lbl { display: none; }
  .glass .nav-ico { display: block; }
  .glass .mark { margin-right:8px; }
  .glass .cv { margin-left:8px; padding:0 16px; }
}
@media (max-width: 349px) {
  .glass a { padding:0 8px; font-size: 0.8125rem; }
  .glass .mark { width: 34px; height: 34px; margin-right:4px; }
  .glass a.contact { width: 38px; }
  .glass .cv { margin-left:8px; padding:0 12px; }
}

/* theme toggle */
.theme { position: fixed; z-index: 6; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 76px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: space-between; padding:0 12px; cursor: pointer; color: var(--bark-soft); background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: 0 0 0 1px var(--glass-ring), inset 0 1px 0 var(--glass-edge), 0 12px 32px -16px var(--glass-shadow); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); }
.theme svg { position: relative; z-index: 1; width: 16px; height: 16px; transition: color .4s, transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.theme .knob { position: absolute; top: 4px; left: 4px; width: 32px; height: 30px; border-radius: 999px; background: color-mix(in srgb, var(--sage) 24%, transparent); transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), border-radius .55s; }
.theme.moving .knob { border-radius: 45% 55% 50% 50% / 60% 45% 55% 40%; }
.theme .sun { color: var(--moss); }
.theme[aria-checked="true"] .knob { transform: translateX(36px); }
.theme[aria-checked="true"] .sun { color: var(--bark-soft); transform: rotate(-45deg) scale(.85); }
.theme[aria-checked="true"] .moon { color: var(--moss); transform: rotate(-15deg); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap:8px; padding:0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap:8px; font-size: 0.8125rem; line-height: 1; font-weight: 500; padding:8px 12px; border-radius: 999px; background: var(--paper); color: var(--bark-soft); border: 1px solid var(--rule); white-space: nowrap; }
.chip svg { width: 13px; height: 13px; flex: none; margin-left:-2px; }
.chip.wip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--moss); }

/* hero */
.hero { padding-block:clamp(48px, 7vw, 96px) clamp(32px, 5vw, 64px); }
.back { display: inline-flex; align-items: center; gap:8px; font-size: var(--step--1); font-weight: 500; color: var(--bark-soft); text-decoration: none; margin-bottom:clamp(32px, 4vw, 48px); }
.back svg { width: 16px; height: 16px; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.back:hover { color: var(--moss); }
.back:hover svg { transform: translateX(-3px); }
.hero h1 { font-size: var(--step-4); line-height: var(--lh-4); max-width: 24ch; margin-top:16px; }
.hero h1 em { font-style: normal; color: var(--moss); }
.hero .lead { font-size: var(--step-1); line-height: var(--lh-1); color: var(--bark-soft); max-width: 52ch; margin-top:24px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:0 24px; margin-top:clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts div { padding-block:16px; border-bottom: 1px solid var(--rule); display: grid; gap:4px; min-width: 0; }
@media (min-width: 720px) { .facts div { border-bottom: 0; } }
.facts dt { font-size: 0.75rem; line-height: 1; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bark-soft); }
.facts dd { font-weight: 500; color: var(--bark); }

/* figures */
.cover { margin-top:clamp(8px, 2vw, 16px); }
.cover img, .shot img { width: 100%; border-radius: 22px; }
.shot { display: grid; gap:12px; }
.shot figcaption { font-size: var(--step--1); line-height: var(--lh--1); color: var(--bark-soft); max-width: var(--prose); }
.shot.framed img { border: 1px solid var(--rule); }

.pair { display: grid; gap:clamp(16px, 2.5vw, 32px); }
@media (min-width: 760px) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* sections */
.sec { padding-block:clamp(64px, 8vw, 96px) 0; }
.sec:last-of-type { padding-bottom:clamp(64px, 8vw, 96px); }
.sec-head { display: grid; gap:12px; margin-bottom:clamp(24px, 3.5vw, 48px); max-width: var(--prose); }
.sec h2 { font-size: var(--step-3); line-height: var(--lh-3); }
.prose { display: grid; gap:16px; max-width: var(--prose); }
.prose p { color: var(--bark); }
.prose .muted { color: var(--bark-soft); }
.stack { display: grid; gap:clamp(32px, 4.5vw, 64px); }
.sub { display: grid; gap:8px; max-width: var(--prose); }
.sub h3 { font-size: var(--step-1); line-height: var(--lh-1); font-weight: 600; }
.sub p { color: var(--bark-soft); }
.band { background: var(--linen); margin-top:clamp(64px, 8vw, 96px); padding-block:clamp(64px, 8vw, 96px); }
.band + .sec { padding-top:clamp(64px, 8vw, 96px); }

/* pull quote */
.pull { font-family: var(--font-display); font-size: var(--step-2); line-height: var(--lh-2); max-width: 26ch; color: var(--bark); text-wrap: balance; }
.pull::before { content: "\201C" / ""; display: block; height: .55em; font-size: 3rem; line-height: 1; color: var(--moss); }

/* tiles: problems, impact */
.tiles { display: grid; gap:16px; padding:0; list-style: none; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { display: grid; gap:12px; align-content: start; padding:clamp(24px, 3vw, 32px); border-radius: 20px; background: var(--paper); border: 1px solid var(--rule); }
.band .tile { background: var(--paper); }
.tile .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lichen); color: var(--moss); }
.tile .ic svg { width: 22px; height: 22px; }
.tile h3 { font-size: var(--step-0); line-height: var(--lh-0); font-weight: 600; }
.tile p { color: var(--bark-soft); }
.tile .big { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.05; color: var(--moss); font-variant-numeric: tabular-nums; }

/* numbered list */
.steps { counter-reset: s; display: grid; gap:24px; padding:0; list-style: none; max-width: var(--prose); }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap:4px 12px; }
.steps > li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--font-display); font-size: var(--step-1); line-height: var(--lh-0); color: var(--moss); font-variant-numeric: tabular-nums; }
.steps b { font-weight: 600; color: var(--bark); }
.steps p { color: var(--bark-soft); }

/* side-by-side story */
.story { display: grid; gap:clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 820px) { .story { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

/* next project */
.next { display: grid; gap:12px; padding:clamp(32px, 5vw, 48px); border-radius: 28px; background: var(--linen); text-decoration: none; color: var(--bark); transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), box-shadow .45s; }
.next .t { display: flex; align-items: center; justify-content: space-between; gap:16px; font-family: var(--font-display); font-size: var(--step-3); line-height: var(--lh-3); }
.next svg { width: 28px; height: 28px; flex: none; color: var(--moss); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.next p { color: var(--bark-soft); max-width: 48ch; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .next:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -26px var(--glass-shadow); } .next:hover svg { transform: translateX(6px); } }

footer { padding-block:32px 48px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap:8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.stack > .sub + .shot, .stack > .sub + .steps { margin-top:calc(-1 * clamp(16px, 2.5vw, 32px)); }

.shot.framed img { max-width: 820px; }

/* video */
.vid { display: grid; gap:12px; }
.vid video { display: block; width: 100%; height: auto; border-radius: 22px; background: #000; }
.vid figcaption { font-size: var(--step--1); line-height: var(--lh--1); color: var(--bark-soft); max-width: var(--prose); }
.vid.phone { max-width: 300px; justify-self: center; width: 100%; }
.vid.phone video { border-radius: 32px; }

/* demo: phone video beside its story */
.demo { display: grid; gap:clamp(24px, 4vw, 64px); align-items: center; }
@media (min-width: 760px) { .demo { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); } .demo.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); } .demo.flip .vid { order: 2; } }
.demo .txt { display: grid; gap:16px; min-width: 0; }
.demo .kicker { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--moss); }
.demo h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: var(--lh-2); text-wrap: balance; }
.demo p { color: var(--bark-soft); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap:8px; padding:0; list-style: none; }
.flow li { display: inline-flex; align-items: center; gap:8px; font-size: 0.8125rem; font-weight: 500; color: var(--bark); }
.flow li + li::before { content: ""; width: 14px; height: 14px; background: currentColor; opacity: .45; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.flow li span { padding:8px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); }
.flow li.hot span { background: var(--lichen); border-color: transparent; color: var(--moss); }
.time { display: inline-flex; align-items: baseline; gap:8px; }
.time b { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1; color: var(--moss); font-variant-numeric: tabular-nums; }
.time span { font-size: var(--step--1); color: var(--bark-soft); }

/* three-up tiles, points list */
@media (min-width: 820px) { .tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.points { display: grid; gap:16px; padding:0; list-style: none; }
.points li { position: relative; padding-left:24px; color: var(--bark-soft); }
.points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.points b { color: var(--bark); font-weight: 600; }

/* ---------- Naturale DS v2 specimens ---------- */
.ds-cover { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding:clamp(32px, 7vw, 96px) clamp(24px, 6vw, 64px); background: linear-gradient(160deg, color-mix(in srgb, #E8C987 14%, var(--linen)), color-mix(in srgb, #7FB3AC 18%, var(--linen))); box-shadow: 0 0 0 1px var(--glass-ring); display: grid; gap:clamp(24px, 4vw, 48px); }
.ds-cover .word { font-family: var(--font-display); font-size: clamp(3rem, 12vw, 7.5rem); line-height: .95; letter-spacing: -0.02em; color: var(--bark); }
.ds-cover .word span { color: var(--moss); }
.ds-cover .row { display: flex; flex-wrap: wrap; align-items: center; gap:12px 24px; }
.ds-cover .dots { display: flex; gap:8px; }
.ds-cover .dots i { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px var(--glass-ring); }
.ds-cover .v { font-size: var(--step--1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bark); padding:8px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.blob { position: absolute; z-index: -1; aspect-ratio: 1; border-radius: 50%; filter: blur(42px); }
.b1 { width: 55%; top: -30%; left: -12%; background: #6B9B63; opacity: .42; }
.b2 { width: 50%; bottom: -35%; right: -8%; background: #7FB3AC; opacity: .45; }
.b3 { width: 34%; top: 25%; right: 22%; background: #E8C987; opacity: .5; }
:root[data-theme="dark"] .b1, :root[data-theme="dark"] .b2 { opacity: .24; } :root[data-theme="dark"] .b3 { opacity: .16; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .b1, :root:not([data-theme="light"]) .b2 { opacity: .24; } :root:not([data-theme="light"]) .b3 { opacity: .16; } }
@media (prefers-reduced-motion: no-preference) {
  .b1 { animation: d1 14s ease-in-out infinite alternate; } .b2 { animation: d2 17s ease-in-out infinite alternate; } .b3 { animation: d3 11s ease-in-out infinite alternate; }
  @keyframes d1 { to { transform: translate(40%, 30%) scale(1.1); } } @keyframes d2 { to { transform: translate(-45%, -35%) scale(.9); } } @keyframes d3 { to { transform: translate(-60%, -40%) scale(1.25); } }
}

.swatches { display: grid; gap:16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); padding:0; list-style: none; }
.sw { border-radius: 20px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper); }
.sw .chipc { height: 108px; display: flex; align-items: flex-end; padding:12px 16px; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.sw .info { padding:12px 16px 16px; display: grid; gap:2px; }
.sw .info b { font-weight: 600; color: var(--bark); }
.sw .info code { font: 500 0.8125rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--bark-soft); }
.sw .info span { font-size: 0.8125rem; line-height: 1.4; color: var(--bark-soft); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); }
.tbl { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--step--1); line-height: var(--lh--1); font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; padding:12px 16px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--bark-soft); background: var(--linen); }
.tbl td { color: var(--bark); }
.pass { display: inline-flex; padding:4px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--lichen); color: var(--bark); }
.pass.large { background: color-mix(in srgb, #E8C987 35%, var(--paper)); }
.mini { display: inline-block; width: 22px; height: 22px; border-radius: 6px; vertical-align: middle; margin-right:8px; box-shadow: 0 0 0 1px var(--glass-ring); }

.grads { display: grid; gap:16px; }
@media (min-width: 760px) { .grads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grad { display: grid; gap:12px; }
.grad .g { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 10; border-radius: 20px; box-shadow: 0 0 0 1px var(--glass-ring); display: grid; place-items: center; }
.grad .g.glow { background: radial-gradient(120% 100% at 25% 15%, color-mix(in srgb, var(--sage) 22%, var(--linen)), var(--linen) 70%); }
.grad .g.pond { background: linear-gradient(160deg, color-mix(in srgb, #E8C987 14%, var(--linen)), color-mix(in srgb, #7FB3AC 18%, var(--linen))); }
.grad .glassq { margin:0 24px; padding:16px 24px; border-radius: 16px; background: color-mix(in srgb, var(--paper) 72%, transparent); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-edge), 0 14px 36px -20px var(--glass-shadow); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); font-family: var(--font-display); font-size: var(--step-1); line-height: var(--lh-1); text-align: center; }
.grad p { font-size: var(--step--1); line-height: var(--lh--1); color: var(--bark-soft); }
.grad p b { color: var(--bark); }

.specimen { display: grid; gap:16px; }
@media (min-width: 760px) { .specimen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.face { padding:clamp(24px, 3vw, 32px); border-radius: 20px; border: 1px solid var(--rule); background: var(--paper); display: grid; gap:12px; align-content: start; }
.face .aa { font-size: clamp(4rem, 10vw, 6rem); line-height: 1; color: var(--bark); }
.face .aa.serif { font-family: var(--font-display); }
.face .aa.sans { font-family: var(--font-body); font-weight: 500; }
.face h3 { font-size: var(--step-0); font-weight: 600; }
.face p { color: var(--bark-soft); font-size: var(--step--1); line-height: var(--lh--1); }
.tbl .s-serif { font-family: var(--font-display); }

.icons { display: grid; gap:12px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); padding:0; list-style: none; }
.icons li { display: grid; justify-items: center; gap:12px; padding:16px 8px 16px; border-radius: 16px; border: 1px solid var(--rule); background: var(--paper); font-size: 0.75rem; color: var(--bark-soft); text-align: center; }
.icons svg { width: 24px; height: 24px; color: var(--bark); }
.icons li:hover svg { color: var(--moss); }
@media (prefers-reduced-motion: no-preference) { .icons li:hover svg { animation: wiggle .7s cubic-bezier(.34, 1.56, .64, 1); } @keyframes wiggle { 30% { transform: rotate(-14deg) scale(1.2); } 60% { transform: rotate(10deg) scale(1.1); } } }

.board { padding:clamp(24px, 3.5vw, 32px); border-radius: 22px; border: 1px solid var(--rule); background: var(--paper); display: grid; gap:24px; }
.board .lbl { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--bark-soft); margin-bottom:12px; }
.board .row { display: flex; flex-wrap: wrap; align-items: center; gap:12px; }
.btn { display: inline-flex; align-items: center; gap:8px; white-space: nowrap; font: 500 var(--step--1)/1 var(--font-body); padding:16px 24px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.btn-primary { background: var(--bark); color: var(--paper); }
.btn-primary:hover { background: var(--moss); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: var(--paper); color: var(--bark); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--sage); background: var(--linen); }
.btn-ghost:hover svg { transform: translateY(2px); }
.chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--moss); }
.chip.metric b { font-weight: 700; color: var(--bark); }
.chip.metric::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.seg2 { position: relative; display: inline-flex; padding:4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); }
.seg2 button { position: relative; z-index: 1; font: 500 var(--step--1)/1 var(--font-body); color: var(--bark); background: transparent; border: 0; border-radius: 999px; padding:12px 16px; cursor: pointer; transition: color .3s; }
.seg2 button[aria-pressed="true"] { color: var(--moss); }
.seg2 .drop { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: color-mix(in srgb, var(--sage) 20%, transparent); transition: left .55s cubic-bezier(.34, 1.56, .64, 1), width .55s cubic-bezier(.34, 1.56, .64, 1), border-radius .55s; }
.seg2 .drop.moving { border-radius: 40% 60% 55% 45% / 60% 45% 55% 40%; }
.navdemo { position: relative; overflow: hidden; isolation: isolate; border-radius: 18px; padding:32px 16px; display: grid; place-items: center; background: linear-gradient(160deg, color-mix(in srgb, #E8C987 14%, var(--linen)), color-mix(in srgb, #7FB3AC 18%, var(--linen))); }
.navdemo .glass { position: relative; }
.navdemo .glass a { cursor: default; }

.motion { display: grid; gap:16px; padding:0; list-style: none; }
@media (min-width: 760px) { .motion { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.motion li { padding:24px; border-radius: 20px; border: 1px solid var(--rule); background: var(--paper); display: grid; gap:12px; align-content: start; }
.motion .track { height: 36px; border-radius: 999px; background: var(--linen); position: relative; }
.motion .ball { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--moss); }
.motion li:hover .ball.spring { transform: translateX(calc(100% * 6)); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.motion li:hover .ball.out { transform: translateX(calc(100% * 6)); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.motion .ball { transition: transform .4s ease; }
.motion code { font: 500 0.75rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--bark-soft); }
.motion h3 { font-size: var(--step-0); font-weight: 600; }
.motion p { font-size: var(--step--1); line-height: var(--lh--1); color: var(--bark-soft); }

.collab { display: grid; gap:16px; padding:0; list-style: none; }
@media (min-width: 760px) { .collab { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.collab li { padding:clamp(24px, 3vw, 32px); border-radius: 20px; background: var(--paper); border: 1px solid var(--rule); display: grid; gap:12px; align-content: start; }
.collab .who { display: flex; gap:8px; flex-wrap: wrap; }
.collab .who span { font-size: 0.75rem; font-weight: 600; padding:4px 8px; border-radius: 999px; background: var(--lichen); color: var(--bark); }
.collab .who span.c { background: color-mix(in srgb, #E8C987 35%, var(--paper)); }
.collab h3 { font-size: var(--step-0); font-weight: 600; }
.collab p { color: var(--bark-soft); }
@media (max-width: 479px) { .navdemo { padding-inline:8px; } .navdemo .glass a:nth-of-type(3) { display: none; } .navdemo .glass .cv { margin-left:4px; } .navdemo .glass .mark { margin-right:4px; } }

/* ---------- Board look, matching the homepage ---------- */
.sec { padding-block:clamp(64px, 10vw, 96px) 0; }
.sec:last-of-type { padding-bottom:clamp(64px, 10vw, 96px); }
.band { background: transparent; margin-top:0; padding-block:clamp(64px, 10vw, 96px) 0; }
.band + .sec { padding-top:clamp(64px, 10vw, 96px); }
.hero { text-align: center; padding-block:clamp(64px, 9vw, 96px) clamp(48px, 6vw, 64px); }
.hero .wrap { display: grid; justify-items: center; }
.hero .chips { justify-content: center; }
.hero h1, .hero .lead { margin-inline:auto; text-wrap: balance; }
.facts { width: 100%; }
.facts div { justify-items: center; text-align: center; }
.sec-head { margin-inline:auto; text-align: center; justify-items: center; margin-bottom:clamp(48px, 5vw, 64px); }
.prose, .sub, .steps { margin-inline:auto; }
.prose > .pull, .sec > .wrap > .pull { margin-inline:auto; text-align: center; }
.next { text-align: center; justify-items: center; }
.next .t { justify-content: center; }
.next p { margin-inline:auto; }
.band h2 { font-size: var(--step-3); line-height: var(--lh-3); }
.pull { max-width: 30ch; }

/* theme toggle: two targets, only the inactive one switches */
.theme { padding:0 4px; gap:4px; justify-content: flex-start; cursor: default; }
.theme button { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 30px; padding:0; border: 0; border-radius: 999px; background: transparent; color: var(--bark-soft); cursor: pointer; }
.theme button[aria-checked="true"] { color: var(--moss); cursor: default; }
.theme button:not([aria-checked="true"]):hover { color: var(--bark); }
.theme button .sun, .theme button .moon { color: inherit; width: 16px; height: 16px; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), color .4s; }
.theme button:not([aria-checked="true"]) svg { transform: scale(.85); }
.theme button:not([aria-checked="true"]):hover svg { transform: scale(1) rotate(-12deg); }
.theme .knob { transform: none; }
.theme[data-mode="dark"] .knob { transform: translateX(36px); }
@keyframes sunIn { 0% { transform: rotate(-120deg) scale(.4); opacity: .3; } 60% { transform: rotate(18deg) scale(1.2); opacity: 1; } 100% { transform: none; } }
@keyframes moonIn { 0% { transform: rotate(70deg) translate(3px, 3px) scale(.4); opacity: .3; } 60% { transform: rotate(-16deg) scale(1.2); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: no-preference) { .theme .pop .sun { animation: sunIn .7s cubic-bezier(.34, 1.56, .64, 1); } .theme .pop .moon { animation: moonIn .7s cubic-bezier(.34, 1.56, .64, 1); } }

.sec-head .eyebrow, .next .eyebrow { padding-left:0.08em; }

/* interaction hints */
.hint { display: inline-flex; align-items: center; gap:8px; justify-self: center; margin:0 auto 16px; padding:8px 16px 8px 12px; border-radius: 999px; background: var(--linen); color: var(--bark-soft); font-size: 0.8125rem; font-weight: 500; }
.sec .wrap > .hint, .icons-wrap > .hint { display: flex; width: max-content; max-width: 100%; }
.hint svg { width: 16px; height: 16px; color: var(--moss); flex: none; }
@media (prefers-reduced-motion: no-preference) { .hint svg { animation: nudge 2.4s ease-in-out infinite; } @keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-2px) rotate(-8deg); } 90% { transform: translateY(1px); } } }
.icons-wrap { display: grid; min-width: 0; }
.icons li, .motion li[tabindex] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.icons li:focus-visible, .motion li:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
.icons li.play svg { color: var(--moss); }
@media (prefers-reduced-motion: no-preference) { .icons li.play svg { animation: wiggle .7s cubic-bezier(.34, 1.56, .64, 1); } }
.motion li.play .ball.spring { transform: translateX(calc(100% * 6)); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.motion li.play .ball.out { transform: translateX(calc(100% * 6)); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
/* pull quote on the pond gradient */
.pull-box { margin-top:clamp(48px, 6vw, 64px); padding:clamp(48px, 7vw, 96px) clamp(24px, 6vw, 64px); border-radius: 28px; display: grid; justify-items: center; text-align: center; background: radial-gradient(60% 80% at 85% 10%, color-mix(in srgb, #7FB3AC 40%, transparent), transparent 70%), radial-gradient(55% 70% at 10% 95%, color-mix(in srgb, #E8C987 45%, transparent), transparent 70%), radial-gradient(40% 60% at 95% 95%, color-mix(in srgb, #6B9B63 30%, transparent), transparent 70%), var(--linen); }
.pull-box .pull { margin:0 auto; text-align: center; max-width: 32ch; font-size: var(--step-3); line-height: var(--lh-3); }

/* scene card */
.pull-box .eyebrow { margin:0 0 16px; padding-left:0; }
.pull-box .scene { margin:0 auto; max-width: 38ch; font-size: var(--step-1); line-height: 1.6; color: var(--bark); text-wrap: balance; }
/* glass nav stays legible over bright cover images */
:root { --glass: rgba(255, 253, 248, 0.82); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --glass: rgba(37, 32, 26, 0.84); } }
:root[data-theme="dark"] { --glass: rgba(37, 32, 26, 0.84); }
.glass { -webkit-backdrop-filter: blur(18px) saturate(120%); backdrop-filter: blur(18px) saturate(120%); }

/* large watch screens, tap to magnify */
.screens { list-style: none; margin:0; padding:0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap:clamp(16px, 2.4vw, 32px); width: 100%; }
.screens li { display: grid; gap:16px; justify-items: center; text-align: center; min-width: 0; }
.screens p { font-size: var(--step--1); line-height: var(--lh--1); color: var(--bark-soft); max-width: 18ch; text-wrap: balance; }
.zoom { all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: 14%/12%; -webkit-tap-highlight-color: transparent; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55); }
.zoom img { display: block; width: 100%; height: auto; }
.zoom:hover { transform: translateY(-4px) scale(1.03); }
.zoom:focus-visible { outline: 2px solid var(--moss); outline-offset: 4px; }
@media (max-width: 859px) {
  .screens { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(64vw, 280px); overflow-x: auto; scroll-snap-type: x mandatory; padding:4px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); margin-inline:calc(-1 * max(16px, env(safe-area-inset-left, 0px))); width: auto; scrollbar-width: none; }
  .screens::-webkit-scrollbar { display: none; }
  .screens li { scroll-snap-align: center; }
}
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding:max(24px, env(safe-area-inset-top, 0px)) 16px max(24px, env(safe-area-inset-bottom, 0px)); background: rgba(29, 25, 20, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin:0; display: grid; gap:16px; justify-items: center; }
.lightbox img { width: auto; height: auto; max-width: min(92vw, 560px); max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); border-radius: 12%/10%; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); transform-origin: center; }
.lightbox figcaption { color: #EFE6D8; font-size: var(--step-0); text-align: center; }
.lb-btn { position: fixed; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(255, 253, 248, .2); background: rgba(255, 253, 248, .12); color: #FFFDF8; }
.lb-btn svg { width: 20px; height: 20px; }
.lb-btn:hover { background: rgba(255, 253, 248, .22); }
.lb-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
.lb-prev { left: calc(16px + env(safe-area-inset-left, 0px)); top: 50%; margin-top:-24px; }
.lb-next { right: calc(16px + env(safe-area-inset-right, 0px)); top: 50%; margin-top:-24px; }
@media (max-width: 719px) { .lb-prev, .lb-next { top: auto; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); margin-top:0; } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } .lightbox figure { margin-bottom:64px; } }

/* embedded prototypes */
.tryit { display: grid; justify-items: center; gap:4px; width: 100%; margin-top:8px; }
.tw-watch { width: 460px; max-width: 100%; height: 560px; border: 0; background: transparent; color-scheme: normal; }
@media (max-width: 480px) { .tw-watch { height: calc((100vw - 32px) * 560 / 460); } }

/* the interactive watch is for larger screens; phones get the auto carousel */
.tryit .btn { margin-top:8px; }
.watch-ov { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(29, 25, 20, .72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.watch-ov[hidden] { display: none; }
.watch-ov iframe { width: 520px; max-width: 94vw; height: min(640px, 92vh); border: 0; background: transparent; color-scheme: normal; }
.watch-ov .lb-close { position: fixed; }
@media (prefers-reduced-motion: no-preference) { .watch-ov.in iframe { animation: wrise .6s cubic-bezier(.34, 1.56, .64, 1) both; } @keyframes wrise { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } } }

/* ---------- story as a match log ---------- */
.saga { padding-top:clamp(64px, 10vw, 96px); --alert: #A64B0E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .saga { --alert: #F0A35E; } }
:root[data-theme="dark"] .saga { --alert: #F0A35E; }
.saga h2 { font-size: var(--step-3); line-height: var(--lh-3); }
.log { list-style: none; margin:0 auto; padding:0; max-width: 48rem; position: relative; --rail: 7rem; }
.log::before, .log::after { content: ""; position: absolute; left: var(--rail); top: var(--l-top, 0); height: var(--l-h, 100%); }
.log::before { border-left: 1px dashed var(--sage); }
.log::after { left: calc(var(--rail) - .5px); width: 2px; border-radius: 2px; background: var(--moss); transform-origin: top; transform: scaleY(var(--p, 1)); }
.beat { position: relative; display: grid; grid-template-columns: calc(var(--rail) - 28px) minmax(0, 1fr) auto; column-gap:64px; align-items: start; padding-block:16px; min-height: 64px; }
.beat .when { font-family: var(--font-display); font-size: var(--step-0); line-height: var(--lh-2); color: var(--moss); text-align: right; white-space: nowrap; }
.beat .when::after { content: ""; position: absolute; z-index: 1; left: calc(var(--rail) - 5.5px); top: calc(18px + var(--lh-2) / 2 - 5.5px); width: 11px; height: 11px; box-sizing: border-box; border-radius: 50%; background: var(--paper); border: 2px solid var(--sage); transition: background .3s, border-color .3s; }
.beat.lit .when::after { background: var(--moss); border-color: var(--moss); }
.beat h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: var(--lh-2); color: var(--bark); }
.beat p:not(.when) { margin-top:4px; color: var(--bark); max-width: 36ch; }
.damage .when, .damage h3 { color: var(--alert); }
.damage.lit .when::after { background: var(--alert); border-color: var(--alert); }

/* small, real-sized watch mockups */
.wm { display: block; width: 116px; padding:8px; border-radius: 34px; background: linear-gradient(145deg, #3a3a3c, #161618 45%, #0b0b0c); box-shadow: inset 0 0 0 1.5px #4a4a4c, 0 14px 28px -18px rgba(0, 0, 0, .55); position: relative; }
.wm::after { content: ""; position: absolute; right: -4px; top: 30%; width: 5px; height: 18px; border-radius: 2px; background: #3a3a3c; }
.wm img { display: block; width: 100%; height: auto; border-radius: 26px; }
.wm.big { width: 168px; border-radius: 46px; padding:12px; }
.wm.big img { border-radius: 37px; }
.reaction { margin:clamp(32px, 5vw, 64px) auto 0; max-width: 26rem; }
.reaction img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .45); }
.moralbox { margin-top:clamp(32px, 4vw, 48px); padding-block:clamp(32px, 5vw, 64px); }
.moralbox .scene { font-family: var(--font-display); font-size: var(--step-2); line-height: var(--lh-2); max-width: 26ch; }
.moralbox .scene b { font-weight: 400; color: var(--alert); }
@media (max-width: 719px) {
  .log { --rail: 5px; }
  .beat { grid-template-columns: minmax(0, 1fr) auto; column-gap:16px; padding-left:32px; }
  .beat .when { grid-column: 1 / -1; text-align: left; font-size: var(--step--1); line-height: 1.6; }
  .beat .when::after { top: calc(18px + 0.8em - 5.5px); }
  .beat .wm { width: 92px; padding:8px; border-radius: 26px; } .beat .wm img { border-radius: 20px; }
  .beat .wm.big { width: 132px; border-radius: 36px; padding:8px; } .beat .wm.big img { border-radius: 29px; }
}
@media (prefers-reduced-motion: no-preference) { .beat.lit.popped .when::after { animation: dotpop .55s cubic-bezier(.34, 1.56, .64, 1); } @keyframes dotpop { 0% { transform: scale(.6); } 60% { transform: scale(1.4); } 100% { transform: none; } } }

.tryit .hint { margin:4px auto 0; }
.ipoints { list-style: none; padding:0; margin:16px 0 0; display: grid; gap:16px; }
.ipoints li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap:16px; align-items: start; color: var(--bark-soft); }
.ipoints li svg { width: 40px; height: 40px; padding:8px; border-radius: 50%; background: var(--linen); color: var(--moss); box-sizing: border-box; }
.ipoints b { color: var(--bark); font-weight: 600; }
.ipoints span { padding-top:8px; }
 

.sec-head.sol-head { margin-top:clamp(48px, 6vw, 64px); margin-bottom:clamp(24px, 3vw, 32px); }
.sec-head:has(> .eyebrow:only-child) { margin-bottom:clamp(12px, 2vw, 24px); }

/* label > headline > subline inside a section */
.subhead { display: grid; gap:8px; justify-items: center; text-align: center; margin:clamp(24px, 4vw, 48px) auto 0; max-width: 40rem; }
.subhead .eyebrow { margin:0; padding-left:0; }
.subhead h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: var(--lh-2); color: var(--bark); }
.subhead p:not(.eyebrow) { color: var(--bark-soft); max-width: 46ch; }

/* information order */
.order { list-style: none; counter-reset: o; margin:0 auto; padding:0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:12px; width: 100%; max-width: 54rem; }
.order li { counter-increment: o; display: grid; gap:4px; padding:16px; border-radius: 18px; background: var(--paper); border: 1px solid var(--rule); }
.order li::before { content: counter(o); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--linen); color: var(--moss); font-weight: 600; font-size: .875rem; margin-bottom:8px; line-height: 1; padding-top: 1px; box-sizing: border-box; font-variant-numeric: tabular-nums; }
.order b { color: var(--bark); font-weight: 600; }
.order span { color: var(--bark-soft); font-size: var(--step--1); line-height: var(--lh--1); }
@media (max-width: 719px) { .order { grid-template-columns: 1fr; } }

/* element cards */
.chgs { list-style: none; margin:0; padding:0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:16px; width: 100%; }
.chgs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chg { display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper); }
.chg-img { display: grid; place-items: center; min-height: 240px; padding:32px; background: #1B1B1B; }
.chg-img img { max-width: 100%; height: auto; max-height: 300px; width: auto; border-radius: 10px; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .8); }
.chg-txt { display: grid; gap:8px; align-content: start; padding:24px 24px 24px; }
.chg-txt .eyebrow { margin:0; padding-left:0; }
.chg-txt h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); line-height: var(--lh-1); color: var(--bark); }
.chg-txt p:not(.eyebrow) { color: var(--bark-soft); font-size: var(--step--1); line-height: 1.6; }
@media (max-width: 859px) { .chgs, .chgs.three { grid-template-columns: 1fr; } }

/* before / after compare */
.ba-wrap { display: grid; justify-items: center; gap:4px; width: 100%; }
.ba { position: relative; width: min(100%, 340px); border-radius: 40px; overflow: hidden; background: #1B1B1B; padding:12px; box-shadow: 0 0 0 2px #2A2622, 0 40px 70px -40px rgba(0, 0, 0, .6); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ba img { display: block; width: 100%; height: auto; border-radius: 30px; }
.ba-old { position: absolute; inset: 10px; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-old img { width: 100%; }
.ba-line { position: absolute; top: 10px; bottom: 10px; left: calc(10px + (100% - 20px) * var(--pos-n, .5)); width: 2px; margin-left:-1px; background: #FFFDF8; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin:-24px 0 0 -24px; border-radius: 50%; display: grid; place-items: center; background: #FFFDF8; color: #3B2F25; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.ba-knob svg { width: 20px; height: 20px; }
.ba-lab { position: absolute; bottom: 24px; padding:4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .02em; background: rgba(27, 27, 27, .82); color: #FFFDF8; pointer-events: none; transition: opacity .2s; }
.ba-lab.l { left: 22px; } .ba-lab.r { right: 22px; background: #E3F45A; color: #1B1B1B; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin:0; opacity: 0; cursor: ew-resize; }
.ba:has(.ba-range:focus-visible) .ba-knob { outline: 3px solid var(--moss); outline-offset: 2px; }
.ba-wrap .hint { margin-top:8px; }
.order li { align-content: start; }
.chg-img { height: 260px; min-height: 0; }
.chg-img img { max-height: 204px; }
.ba-lab { bottom: auto; top: 22px; }

/* steps synced to the video, Journey-style thread */
.vsteps { list-style: none; margin:16px 0 0; padding:0; position: relative; display: grid; gap:0; }
.vsteps::before, .vsteps::after { content: ""; position: absolute; left: 5px; top: 14px; height: calc(100% - 28px); }
.vsteps::before { border-left: 1px dashed var(--sage); }
.vsteps::after { left: 4.5px; width: 2px; border-radius: 2px; background: var(--moss); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform .25s linear; }
.vsteps li { position: relative; display: flex; align-items: center; gap:16px; min-height: 40px; padding-left:32px; color: var(--bark-soft); transition: color .25s; }
.vs-dot { position: absolute; left: 0; top: 50%; width: 11px; height: 11px; margin-top:-4px; box-sizing: border-box; border-radius: 50%; background: var(--paper); border: 2px solid var(--sage); transition: background .25s, border-color .25s, transform .3s cubic-bezier(.34, 1.56, .64, 1); z-index: 1; }
.vsteps li b { font-weight: 500; }
.vsteps li.done .vs-dot { background: var(--moss); border-color: var(--moss); }
.vsteps li.now { color: var(--bark); }
.vsteps li.now b { font-weight: 600; }
.vsteps li.now .vs-dot { background: var(--moss); border-color: var(--moss); transform: scale(1.35); box-shadow: 0 0 0 5px color-mix(in srgb, var(--moss) 22%, transparent); }
.time b { font-family: var(--font-display); font-weight: 400; }

/* time saved */
.tbar { margin-top:24px; display: grid; gap:12px; max-width: 26rem; }

/* paired figures share one frame size */
@media (min-width: 760px) {
  .pair { align-items: stretch; }
  .pair > .shot { display: grid; grid-template-rows: auto 1fr; align-content: start; }
  .pair > .shot img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
}

.story-head { display: grid; gap:12px; justify-items: center; text-align: center; max-width: 40rem; margin:clamp(16px, 3vw, 32px) auto 0; }
.story-head .eyebrow { margin:0; padding-left:0; }
.story-head h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: var(--lh-2); color: var(--bark); text-wrap: balance; }
.story-head + .demo .txt { align-content: center; }
.time span { color: var(--moss); font-weight: 600; }
.story-head.pull-box { max-width: none; width: 100%; margin-top:clamp(24px, 4vw, 48px); padding:clamp(32px, 6vw, 64px) clamp(24px, 6vw, 64px); }
.story-head.pull-box h3 { max-width: 30ch; margin-inline:auto; font-size: var(--step-3); line-height: var(--lh-3); }
.story-head.pull-box + .demo { margin-top:clamp(24px, 3vw, 32px); }
.time { display: grid; gap:8px; justify-items: start; }
.time b { color: var(--moss); }
.time span { font-size: var(--step-0); font-weight: 500; color: var(--bark); }

/* step-by-step journeys */
.subhead p:empty { display: none; }
.sflow-wrap { display: grid; justify-items: center; gap:16px; width: 100%; }
.sflow { list-style: none; margin:0; padding:8px 4px 4px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 210px); gap:clamp(24px, 3vw, 48px); justify-content: center; max-width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sflow::-webkit-scrollbar { display: none; }
.sflow li { position: relative; display: grid; justify-items: center; gap:12px; scroll-snap-align: center; }
.sflow li + li::before { content: ""; position: absolute; top: 14px; right: calc(50% + 22px); width: calc(100% + clamp(20px, 3vw, 44px) - 44px); border-top: 1.5px dashed var(--sage); }
.sf-n { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--moss); color: #FFFDF8; font-size: .8125rem; font-weight: 600; line-height: 1; padding-top: 1px; box-sizing: border-box; font-variant-numeric: tabular-nums; }
.sflow img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--rule); box-shadow: 0 20px 36px -24px rgba(0, 0, 0, .45); background: #fff; }
.sflow p { font-size: var(--step--1); line-height: var(--lh--1); color: var(--bark); text-align: center; max-width: 16ch; }
.sf-total { font-size: var(--step--1); color: var(--bark-soft); }
.sf-total b { display: inline-block; padding:4px 12px; border-radius: 999px; background: var(--linen); color: var(--moss); font-weight: 600; }
@media (max-width: 859px) {
  .sflow { justify-content: start; grid-auto-columns: 62vw; width: calc(100% + 2 * max(16px, env(safe-area-inset-left, 0px))); margin-inline:calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline:max(16px, env(safe-area-inset-left, 0px)); }
}

.chgs.one { grid-template-columns: minmax(0, 32rem); justify-content: center; }

/* ---------- Naturalé: patterns grown on the portfolio ---------- */
:root { --moss-ink: #456B3F; --open-bg: #4A7243; --open-fg: #FFFDF8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --moss-ink: #A9CF9F; --open-bg: #9DC394; --open-fg: #1D1914; } }
:root[data-theme="dark"] { --moss-ink: #A9CF9F; --open-bg: #9DC394; --open-fg: #1D1914; }
.ds2 { gap:32px; }
.ds2 > div { min-width: 0; }
/* section label */
.ds-subhead { display: grid; justify-items: center; gap:8px; text-align: center; }
.ds-subhead h3 { width: min(520px, 100%); margin:0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap:16px; font: 600 .9375rem/1 var(--font-body); color: var(--moss-ink); }
.ds-subhead h3::before, .ds-subhead h3::after { content: ""; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--sage) 60%, var(--rule))); }
.ds-subhead h3::after { transform: scaleX(-1); }
.ds-subhead p { margin:0; color: var(--bark-soft); }
.sh-pill { display: inline-flex; align-items: center; gap:8px; padding:8px 16px; border-radius: 999px; background: color-mix(in srgb, var(--sage) 16%, var(--paper)); border: 1px solid color-mix(in srgb, var(--sage) 40%, transparent); }
.sh-pill svg { width: 16px; height: 16px; }
/* text tags */
.ttags { display: flex; flex-wrap: wrap; margin:0; padding:0; list-style: none; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--moss-ink); }
.ttags li + li::before { content: "·"; margin:0 8px; }
/* app icons */
.ds2 .ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22.5%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 6px 14px -8px rgba(0, 0, 0, .45); overflow: hidden; flex: none; color: inherit; background: none; }
.ds2 .ic svg { width: 78%; height: 78%; }
.ds2 .ic-gainz { background: linear-gradient(160deg, #7FAE76, #3F6E3A); }
.ds2 .ic-closet { background: linear-gradient(160deg, #F2D9A0, #D9A84E); }
.ds2 .ic-ghar-bahar { background: linear-gradient(160deg, #8FC3BB, #3E7D75); }
.ds2 .ic-kuchh-bhi-chalega { background: linear-gradient(160deg, #EE9467, #B5532E); }
.ds2 .kbc-glyph { font-family: 'Tiro Devanagari Hindi', serif; line-height: 1; color: #FFFDF8; font-size: 1.6rem; -webkit-text-stroke: .02em currentColor; paint-order: stroke fill; }
.app-icons { display: flex; flex-wrap: wrap; gap:16px; margin:0; padding:0; list-style: none; }
.app-icons li { width: 76px; display: grid; justify-items: center; gap:8px; font-size: .8125rem; font-weight: 500; text-align: center; }

@media (min-width: 760px) {  .ds2 .lst-row + .lst-row { border-top: 0 !important; } }
.ds2 .lst-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap:16px; padding:var(--rp) 0; }
.ds2 .lst-row + .lst-row { border-top: 1px solid var(--rule); }
.ds2 .lst-txt { display: grid; gap:4px; min-width: 0; margin-top:-2px; }

/* seasonal greeting */
.wish-panel { display: flex; flex-wrap: wrap; justify-content: center; gap:12px; padding:32px 24px; border-radius: 22px; background: var(--bark); }
.fest-wish { font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.2; padding:8px 24px; border-radius: 999px; color: var(--wish); background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 10px 28px -14px rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); }
.f-diwali { --wish: #FFD166; } .f-holi { --wish: #FFB3D6; } .f-durga { --wish: #FFB4A3; } .f-christmas { --wish: #A3EDB8; } .f-newyear { --wish: #9FE2FF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fest-wish { background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .5)); border-color: rgba(255, 255, 255, .9); box-shadow: inset 0 1px 0 #fff, 0 10px 28px -14px rgba(59, 47, 37, .28); } :root:not([data-theme="light"]) .f-diwali { --wish: #A04F00; } :root:not([data-theme="light"]) .f-holi { --wish: #C2185B; } :root:not([data-theme="light"]) .f-durga { --wish: #C0282D; } :root:not([data-theme="light"]) .f-christmas { --wish: #167A3C; } :root:not([data-theme="light"]) .f-newyear { --wish: #0B6BA8; } }
:root[data-theme="dark"] .fest-wish { background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .5)); border-color: rgba(255, 255, 255, .9); box-shadow: inset 0 1px 0 #fff, 0 10px 28px -14px rgba(59, 47, 37, .28); }
:root[data-theme="dark"] .f-diwali { --wish: #A04F00; } :root[data-theme="dark"] .f-holi { --wish: #C2185B; } :root[data-theme="dark"] .f-durga { --wish: #C0282D; } :root[data-theme="dark"] .f-christmas { --wish: #167A3C; } :root[data-theme="dark"] .f-newyear { --wish: #0B6BA8; }

@keyframes dsRotIn { from { opacity: 0; transform: translateY(.3em); } }
.ripples { display: flex; gap:8px; }
.ripples i { width: 8px; height: 8px; border-radius: 99px; background: var(--rule); transition: width .6s cubic-bezier(.34, 1.56, .64, 1), background .4s; }
.ripples i.on { width: 26px; background: var(--sage); }
/* journey thread */
.thread { position: relative; margin:0; padding:0 0 0 32px; list-style: none; display: grid; gap:16px; }
.thread::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--rule); }
.thread::after { content: ""; position: absolute; left: 7px; top: 8px; height: calc(50% + 4px); width: 2px; border-radius: 2px; background: var(--sage); }
.thread li { position: relative; display: grid; gap:2px; }
.thread li::before { content: ""; position: absolute; left: -32px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--rule); box-sizing: border-box; }
.thread li.lit::before { border-color: var(--sage); background: var(--sage); }
.thread li.now::before { box-shadow: 0 0 0 5px color-mix(in srgb, var(--sage) 25%, transparent); }
.thread b { font-weight: 600; }
.thread span { color: var(--bark-soft); font-size: .9375rem; }
/* motion: fade swap + launch */
.motion .ball.fade, .motion .ball.launch { left: calc(50% - 12px); }
.motion li:hover .ball.fade, .motion li.play .ball.fade { animation: dsFade .9s ease both; }

@keyframes dsFade { 30% { opacity: 0; transform: translateY(-6px); } 31% { opacity: 0; transform: translateY(8px); background: var(--pond-sun, #E8C987); } 100% { opacity: 1; transform: none; background: var(--pond-sun, #E8C987); } }
@keyframes dsLaunch { 70% { transform: scale(4); border-radius: 30%; opacity: 1; } 100% { transform: scale(4.6); border-radius: 30%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .motion .ball.fade, .motion .ball.launch, .rot-demo .rot { animation: none !important; transition: none; } }
/* patterns: grouping, glass demo, notes, overflow guards */
.ds2 { gap:48px; }

.pair2 { display: grid; gap:24px; align-items: center; min-width: 0; }
.pair2 > * { min-width: 0; }
@media (min-width: 820px) { .pair2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap:32px; } }
.ds2 .notes { margin:0; padding:0; list-style: none; display: grid; gap:12px; color: var(--bark-soft); line-height: 1.5; }
.ds2 .notes b { color: var(--bark); font-weight: 600; }

.ds2 .app-icons { justify-content: center; }

@media (max-width: 560px) {  .wish-panel { padding:24px 16px; gap:12px; } .fest-wish { font-size: .9375rem; padding:8px 16px; } }
.ds-subhead h3 { gap:12px; }
.board > * { min-width: 0; }
@media (max-width: 360px) { .board { padding:16px 16px; } .navdemo .glass { gap:0; padding:4px; } .navdemo .glass a { padding:0 8px; font-size: .8125rem; } .navdemo .glass .mark { padding:0 12px !important; } }
@media (max-width: 560px) { .ds2 .app-icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:8px; } .ds2 .app-icons li { width: auto; font-size: .75rem; } .ds2 .app-icons .ic { width: min(56px, 100%); height: auto; aspect-ratio: 1; } .ds2 .app-icons .kbc-glyph { font-size: 1.3rem; } }

@media (min-width: 980px) { .grads { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grad .g.water { background: radial-gradient(34% 55% at 20% 35%, rgba(107, 155, 99, .55), transparent 70%), radial-gradient(32% 50% at 48% 70%, rgba(232, 201, 135, .65), transparent 70%), radial-gradient(32% 50% at 72% 30%, rgba(127, 179, 172, .6), transparent 70%), radial-gradient(30% 48% at 88% 75%, rgba(224, 122, 79, .45), transparent 70%), var(--linen); }
.grad .wcard { padding:12px 24px; border-radius: 16px; font-family: var(--font-display); font-size: 1.125rem; color: var(--bark); background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .3)); border: 1px solid rgba(255, 255, 255, .8); box-shadow: inset 0 1px 0 #fff, 0 16px 36px -20px rgba(59, 47, 37, .4); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grad .g.water { opacity: .9; } :root:not([data-theme="light"]) .grad .wcard { background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); border-color: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); } }
:root[data-theme="dark"] .grad .wcard { background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); border-color: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }

/* ---------- Naturalé atoms ---------- */
.atoms { display: grid; gap:16px; }
@media (min-width: 760px) { .atoms { grid-template-columns: repeat(2, minmax(0, 1fr)); } .atoms .wide { grid-column: 1 / -1; } }
.at { min-width: 0; display: grid; gap:16px; align-content: start; padding:clamp(16px, 3vw, 24px); border-radius: 22px; border: 1px solid var(--rule); background: var(--paper); }
.at .lbl { margin:0; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--bark-soft); }
.at .row { display: flex; flex-wrap: wrap; gap:12px; align-items: center; }
.at .col { display: grid; gap:12px; }
.at-note { margin:0; font-size: var(--step--1); line-height: var(--lh--1); color: var(--bark-soft); }
.at .btn { min-height: 48px; padding-block:0; cursor: pointer; }
.at .btn:focus-visible, .ck input:focus-visible + .box, .tg input:focus-visible + .trk, .fld input:focus-visible { outline: 3px solid var(--bark); outline-offset: 2px; }
.at-text { background: none; color: var(--moss-ink); padding-inline:8px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.at-text:hover { color: var(--bark); }
.at .btn:disabled { background: var(--linen); color: color-mix(in srgb, var(--bark-soft) 75%, var(--linen)); border-color: var(--rule); cursor: not-allowed; }
/* checkbox + radio */
.ck { position: relative; display: inline-flex; align-items: center; gap:12px; min-height: 32px; cursor: pointer; }
.ck input, .tg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck .box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--bark-soft); background: var(--paper); color: var(--paper); transition: background .2s, border-color .2s; }
.ck .box svg { width: 14px; height: 14px; transform: scale(0); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.ck input:checked + .box { background: var(--open-bg); border-color: var(--open-bg); color: var(--open-fg); }
.ck input:checked + .box svg { transform: none; }
.ck.rd .box { border-radius: 50%; }
.ck.rd .box::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--open-fg); transform: scale(0); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.ck.rd input:checked + .box::after { transform: none; }
/* toggle */
.tg { position: relative; display: inline-flex; align-items: center; gap:12px; min-height: 32px; cursor: pointer; }
.tg .trk { flex: none; position: relative; width: 46px; height: 28px; border-radius: 999px; background: color-mix(in srgb, var(--bark-soft) 45%, var(--linen)); transition: background .25s; }
.tg .trk i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFDF8; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.tg input:checked + .trk { background: var(--open-bg); }
.tg input:checked + .trk i { transform: translateX(18px); }
/* field */
.fld { display: grid; gap:8px; }
.fld > span { font-size: .875rem; font-weight: 600; color: var(--bark); }
.fld input { font: inherit; font-size: 1rem; color: var(--bark); min-height: 48px; padding:0 16px; border-radius: 12px; border: 1.5px solid var(--bark-soft); background: var(--paper); }
.fld input::placeholder { color: var(--bark-soft); opacity: 1; }
.fld small { font-size: .8125rem; color: var(--bark-soft); }
.fld.bad input { border-color: var(--danger); }
.fld.bad small { color: var(--danger); font-weight: 600; }
/* callouts */
.calls { display: grid; gap:12px; }
@media (min-width: 760px) { .calls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.call { margin:0; display: flex; gap:12px; align-items: flex-start; padding:12px 16px; border-radius: 14px; font-size: .9375rem; line-height: 1.45; color: var(--ink); background: color-mix(in srgb, var(--tone) 12%, var(--paper)); border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent); }
.call svg { flex: none; width: 20px; height: 20px; margin-top:1px; }
.call b { font-weight: 600; }
.c-info { --tone: #7FB3AC; --ink: #2F6A7A; } .c-ok { --tone: #6B9B63; --ink: #456B3F; } .c-warn { --tone: #E8A33D; --ink: #8A4A0B; } .c-err { --tone: #A8452C; --ink: #A8452C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-info { --ink: #9FD3CB; } :root:not([data-theme="light"]) .c-ok { --ink: #A9CF9F; } :root:not([data-theme="light"]) .c-warn { --ink: #F0B66E; } :root:not([data-theme="light"]) .c-err { --tone: #C9603F; --ink: #F08F72; } :root:not([data-theme="light"]) .call { background: color-mix(in srgb, var(--tone) 16%, var(--paper)); } }
:root[data-theme="dark"] .c-info { --ink: #9FD3CB; } :root[data-theme="dark"] .c-ok { --ink: #A9CF9F; } :root[data-theme="dark"] .c-warn { --ink: #F0B66E; } :root[data-theme="dark"] .c-err { --tone: #C9603F; --ink: #F08F72; } :root[data-theme="dark"] .call { background: color-mix(in srgb, var(--tone) 16%, var(--paper)); }
@media (prefers-reduced-motion: reduce) { .ck .box svg, .ck.rd .box::after, .tg .trk i { transition: none; } }
.at { grid-template-columns: minmax(0, 1fr); }
.fld input { width: 100%; min-width: 0; box-sizing: border-box; }
.ck, .tg { max-width: 100%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fld.bad small { color: #F08F72; } :root:not([data-theme="light"]) .fld.bad input { border-color: #F08F72; } }
:root[data-theme="dark"] .fld.bad small { color: #F08F72; } :root[data-theme="dark"] .fld.bad input { border-color: #F08F72; }
/* ---------- atoms: more ---------- */
.sel { position: relative; display: block; }
.sel select { -webkit-appearance: none; appearance: none; width: 100%; font: inherit; font-size: 1rem; color: var(--bark); min-height: 48px; padding:0 48px 0 16px; border-radius: 12px; border: 1.5px solid var(--bark-soft); background: var(--paper); cursor: pointer; }
.sel::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--bark); border-bottom: 2px solid var(--bark); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sel select:focus-visible { outline: 3px solid var(--bark); outline-offset: 2px; }
.fld output { margin-left:8px; font-weight: 600; color: var(--moss-ink); font-variant-numeric: tabular-nums; }
.sl { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin:0; --v: 50%; }
.sl::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--open-bg) var(--v), color-mix(in srgb, var(--bark-soft) 30%, var(--linen)) var(--v)); }
.sl::-moz-range-track { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--bark-soft) 30%, var(--linen)); }
.sl::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--open-bg); }
.sl::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top:-8px; border-radius: 50%; background: #FFFDF8; border: 2px solid var(--open-bg); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.sl::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #FFFDF8; border: 2px solid var(--open-bg); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.sl:focus-visible { outline: 3px solid var(--bark); outline-offset: 4px; border-radius: 8px; }

.tip-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--bark-soft); background: var(--paper); color: var(--bark); font: 700 1rem/1 var(--font-body); cursor: help; }
.tip-btn:focus-visible { outline: 3px solid var(--bark); outline-offset: 2px; }

.prog { display: grid; gap:8px; }
.prog-h { display: flex; justify-content: space-between; font-size: .875rem; color: var(--bark); }
.prog-h b { font-variant-numeric: tabular-nums; color: var(--moss-ink); }
.prog-t { position: relative; overflow: hidden; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--bark-soft) 22%, var(--linen)); }
.prog-t i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--open-bg); }
.prog-t.ind i { width: 35%; animation: indet 1.6s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes indet { from { left: -35%; } to { left: 100%; } }
.at .chips { display: flex; flex-wrap: wrap; gap:8px; margin:0; padding:0; list-style: none; }

.tabbar-demo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 360px; padding:8px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: 0 0 0 1px var(--glass-ring), inset 0 1px 0 var(--glass-edge), 0 12px 32px -16px var(--glass-shadow); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); }
.tabbar-demo button { display: grid; justify-items: center; gap:4px; min-height: 56px; padding:8px 4px; border: 0; border-radius: 16px; background: none; color: var(--bark-soft); font: 500 .75rem/1 var(--font-body); cursor: pointer; transition: background .25s, color .25s; }
.tabbar-demo button svg { width: 22px; height: 22px; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.tabbar-demo button.on { color: var(--moss-ink); background: color-mix(in srgb, var(--sage) 18%, transparent); }
.tabbar-demo button.on svg { transform: translateY(-1px) scale(1.06); }
.tabbar-demo button:focus-visible { outline: 3px solid var(--bark); outline-offset: -2px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap:24px; }
.pg { display: inline-flex; align-items: center; gap:12px; font-size: .875rem; color: var(--bark-soft); font-variant-numeric: tabular-nums; }
.pg button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper); color: var(--bark); cursor: pointer; }
.pg button:hover { border-color: var(--sage); }
.pg button svg { width: 18px; height: 18px; }
.pg button:focus-visible { outline: 3px solid var(--bark); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .prog-t.ind i { animation: none; left: 0; width: 100%; opacity: .4; } }
.fld input.sl { border: 0; padding:0; min-height: 32px; border-radius: 0; background: transparent; }

/* ---------- Naturalé v3 layout ---------- */
.ds-cover { min-height: clamp(260px, 38vw, 420px); align-content: center; justify-items: center; text-align: center; gap:clamp(24px, 3vw, 32px); }
.ds-cover .word { font-size: clamp(2.75rem, 9vw, 5.5rem); line-height: 1; margin:0; }
.ds-cover .word span { color: var(--moss); }
.ds-cover .dots { display: flex; gap:clamp(12px, 1.6vw, 16px); }
.ds-cover .dots i { width: clamp(30px, 4.4vw, 48px); height: clamp(30px, 4.4vw, 48px); }
/* quick nav */
.qnav { position: sticky; top: calc(78px + env(safe-area-inset-top, 0px)); z-index: 4; padding-inline:max(16px, env(safe-area-inset-left, 0px)); pointer-events: none; }

.chap { padding-block:clamp(48px, 7vw, 96px) 0; scroll-margin-top: 150px; }
.chap .wrap { display: grid; gap:8px; justify-items: center; text-align: center; }
.chap .chap-k { margin:0; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--moss-ink); }
.chap h2 { margin:0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 7vw, 4rem); line-height: 1; color: var(--bark); }
.chap .muted { margin:4px 0 0; max-width: 46ch; }

.tbl .sample { padding:4px 12px; border-radius: 8px; font-weight: 500; box-shadow: 0 0 0 1px var(--rule); }
/* gradients: when to use */
.grad .when { font-size: var(--step--1); line-height: var(--lh--1); color: var(--bark-soft); padding-top:8px; border-top: 1px dashed var(--rule); }
.grad .when b { color: var(--moss-ink); font-weight: 600; }

/* scale tabs */
.scale-tabs { display: grid; gap:16px; justify-items: start; }
.scale-tabs > [role="tabpanel"] { width: 100%; display: grid; gap:12px; }
.scale-tabs .sc-note { margin:0; }
.sc-seg button[aria-selected="true"] { color: var(--moss-ink); }
@media (prefers-reduced-motion: no-preference) { .scale-tabs > [role="tabpanel"]:not([hidden]) { animation: scIn .4s cubic-bezier(.2, .8, .2, 1) both; } @keyframes scIn { from { opacity: 0; transform: translateY(6px); } } }
/* motion: 4 across */
@media (min-width: 900px) { .motion.m4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* theme switch demo */
.tg-theme { display: inline-flex; align-items: center; gap:12px; }
.tg-theme > span:last-child { display: grid; line-height: 1.25; }
.tg-theme small { font-size: .75rem; color: var(--bark-soft); }
.theme-demo { position: relative; flex: none; display: inline-flex; gap:4px; padding:4px; width: 76px; height: 40px; box-sizing: border-box; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: 0 0 0 1px var(--glass-ring), inset 0 1px 0 var(--glass-edge); }
.theme-demo .knob { position: absolute; top: 4px; left: 4px; width: 32px; height: 30px; border-radius: 999px; background: color-mix(in srgb, var(--sage) 24%, transparent); transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), border-radius .55s; }
.theme-demo.moving .knob { border-radius: 45% 55% 50% 50% / 60% 45% 55% 40%; }
.theme-demo[data-mode="dark"] .knob { transform: translateX(36px); }
.theme-demo button { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 30px; padding:0; border: 0; border-radius: 999px; background: none; color: var(--bark-soft); cursor: pointer; }
.theme-demo button[aria-checked="true"] { color: var(--moss); }
.theme-demo svg { width: 16px; height: 16px; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.theme-demo button:not([aria-checked="true"]) svg { transform: scale(.85); }
.theme-demo button:focus-visible { outline: 3px solid var(--bark); outline-offset: 1px; }
/* tidy cards */
.at .chips + .ttags { margin-top:2px; }
.atoms.ds2 { gap:16px; }
.ds2 .at .pair2 { align-items: center; }
.ds2 .notes { font-size: .9375rem; }
.scale-tabs > [role="tabpanel"][hidden] { display: none; }

.chap + .chap-body, .chap-body { padding-top:clamp(32px, 4vw, 48px); }
.flds { display: grid; gap:16px; }
@media (min-width: 760px) { .flds { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.atoms { align-items: start; }
/* ---------- v3.1: dynamic tokens, restaurant-style menu ---------- */
.qnav { display: none !important; }
.v-d { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .v-l { display: none; } :root:not([data-theme="light"]) .v-d { display: inline; } }
:root[data-theme="dark"] .v-l { display: none; } :root[data-theme="dark"] .v-d { display: inline; }
.mode-note { display: flex; align-items: center; gap:12px; width: fit-content; max-width: 100%; margin:0 auto 24px; padding:12px 16px; border-radius: 999px; background: var(--linen); color: var(--bark-soft); font-size: .875rem; line-height: 1.4; }
.mode-note svg { flex: none; width: 18px; height: 18px; color: var(--moss); }
.mode-note b { color: var(--bark); font-weight: 600; }
.sw3s { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom:24px; }
.sw3 { border-radius: 20px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper); }
.chip3 { height: 104px; display: flex; align-items: flex-end; padding:12px 16px; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; transition: background .5s ease, color .5s ease; box-shadow: inset 0 -1px 0 var(--rule); }
.sw3 .info { padding:12px 16px 16px; display: grid; gap:2px; }
.sw3 .info b { font-weight: 600; color: var(--bark); }
.sw3 .info code { font: 500 .8125rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--bark-soft); }
.sw3 .info > span { margin-top:4px; font-size: .8125rem; line-height: 1.4; color: var(--bark-soft); }
/* menu */
.dsmenu { position: fixed; z-index: 7; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.dsmenu.show { transform: translate(-50%, 0); }
.dm-btn { display: inline-flex; align-items: center; gap:8px; height: 44px; padding:0 16px 0 16px; border-radius: 999px; border: 0; background: var(--bark); color: var(--paper); font: 600 .9375rem/1 var(--font-body); cursor: pointer; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); }
.dm-btn svg { width: 18px; height: 18px; }
.dm-btn:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; }
.dm-pop { position: absolute; left: 50%; bottom: calc(100% + 10px); width: min(280px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; padding:16px 8px 8px; border-radius: 20px; transform: translateX(-50%); background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .4); }
.dm-pop:not([hidden]) { animation: dmIn .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes dmIn { from { opacity: 0; transform: translate(-50%, 10px) scale(.97); } }

.dm-pop ul { list-style: none; margin:0 0 8px; padding:0; }
.dm-pop a { display: flex; align-items: center; min-height: 40px; padding:0 12px; border-radius: 12px; color: var(--bark-soft); text-decoration: none; font-size: .9375rem; }
.dm-pop a:hover { background: var(--linen); color: var(--bark); }
.dm-pop a.on { background: color-mix(in srgb, var(--sage) 18%, transparent); color: var(--moss-ink); font-weight: 600; }
.dm-pop a:focus-visible { outline: 3px solid var(--bark); outline-offset: -3px; }
section[id^="s-"] { scroll-margin-top: 90px; }
.chap { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: reduce) { .dsmenu { transition: none; } .chip3 { transition: none; } }
.sc-seg button { display: inline-flex; align-items: center; gap:8px; }
.sc-seg .tab-ic { width: 18px; height: 18px; flex: none; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.sc-seg button[aria-selected="true"] .tab-ic { transform: scale(1.08); }
/* v3.2 */
.motion li:hover .ball.spring, .motion li:hover .ball.out { transform: none; }
.motion li:hover .ball.fade, .motion li:hover .ball.launch { animation: none; }
.motion li.play .ball.spring { transform: translateX(calc(100% * 6)); }
.motion li.play .ball.out { transform: translateX(calc(100% * 6)); }
.motion li.play .ball.fade { animation: dsFade .9s ease both; }
.motion li[tabindex] .track::after { content: "Tap to play"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .6875rem; color: var(--bark-soft); opacity: .8; transition: opacity .2s; }
.motion li.play .track::after { content: "Tap to reset"; }
@media (hover: hover) { .motion li[tabindex] .track::after { content: ""; } }
.grad .when { display: grid; gap:4px; }
.grad .when b.u { color: var(--moss-ink); }
.grad .when b.a { color: var(--fire); }
:root { --rain: #2D63A6; --sun: #8A4A0B; --fire: #A8452C; --sprout: #456B3F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --rain: #9CC3F0; --sun: #F0B66E; --fire: #F08F72; --sprout: #A9CF9F; } }
:root[data-theme="dark"] { --rain: #9CC3F0; --sun: #F0B66E; --fire: #F08F72; --sprout: #A9CF9F; }
.c-info { --tone: var(--rain); --ink: var(--rain) !important; } .c-ok { --tone: var(--sprout); --ink: var(--sprout) !important; } .c-warn { --tone: var(--sun); --ink: var(--sun) !important; } .c-err { --tone: var(--fire); --ink: var(--fire) !important; }
.call { background: color-mix(in srgb, var(--tone) 10%, var(--paper)) !important; border-color: color-mix(in srgb, var(--tone) 30%, transparent) !important; }
.fld.bad input { border-color: var(--fire) !important; } .fld.bad small { color: var(--fire) !important; }
.sems { list-style: none; margin:0; padding:0; display: grid; gap:12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.sem { display: flex; gap:12px; align-items: flex-start; padding:16px; border-radius: 16px; border: 1px solid var(--rule); background: var(--paper); }
.sem .dot { flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--c); transition: background .5s; }
.sem div { display: grid; gap:2px; }
.sem b { font-weight: 600; color: var(--bark); }
.sem code { font: 500 .8125rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--bark-soft); }
.sem div > span { font-size: .8125rem; color: var(--bark-soft); }
.s-rain { --c: var(--rain); } .s-sprout { --c: var(--sprout); } .s-sun { --c: var(--sun); } .s-fire { --c: var(--fire); }
.scale-tabs { justify-items: center; }
.scale-tabs .sc-note { text-align: center; justify-self: center; }
.at > .seg2, .at > .sel { justify-self: start; width: fit-content; }
.dm-pop { width: 220px; padding:8px; }
.dm-pop ul { margin:0; display: grid; gap:2px; }
.dm-pop a { justify-content: space-between; gap:12px; min-height: 46px; }
.dm-pop a b { font-family: var(--font-display); font-weight: 400; font-size: 1.0625rem; color: var(--bark); }
.dm-pop a span { font-size: .75rem; color: var(--bark-soft); }
.dm-pop a.on b { color: var(--moss-ink); }
.dm-btn svg { width: 20px; height: 20px; }
/* journey thread draws itself */
.thread.anim { cursor: pointer; outline: none; border-radius: 12px; }
.thread.anim:focus-visible { outline: 3px solid var(--bark); outline-offset: 6px; }
.thread.anim::after { height: 0; transition: height 1.4s cubic-bezier(.65, 0, .35, 1); }
.thread.anim.in::after { height: calc(50% + 4px); }
.thread.anim li::before { transition: background .3s, border-color .3s, box-shadow .4s; }
.thread.anim.in li:nth-child(1)::before { border-color: var(--sage); background: var(--sage); transition-delay: .1s; }
.thread.anim.in li:nth-child(2)::before { border-color: var(--sage); background: var(--sage); box-shadow: 0 0 0 5px color-mix(in srgb, var(--sage) 25%, transparent); transition-delay: .9s; }
.thread.anim li { opacity: .55; transition: opacity .4s; }
.thread.anim.in li:nth-child(1) { opacity: 1; transition-delay: .1s; } .thread.anim.in li:nth-child(2) { opacity: 1; transition-delay: .9s; } .thread.anim.in li:nth-child(3) { opacity: .75; transition-delay: 1.3s; }
@media (prefers-reduced-motion: reduce) { .thread.anim::after, .thread.anim li, .thread.anim li::before { transition: none !important; } }
/* jump to */
.dsmenu { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.dm-btn .jumper { display: grid; place-items: center; width: 20px; height: 20px; }
.dm-btn .jumper svg { width: 20px; height: 20px; transform-origin: 50% 100%; }
.dm-btn.jumping .jumper svg { animation: hop .52s cubic-bezier(.3, 0, .4, 1) infinite; }
@keyframes hop { 0% { transform: translateY(0) scale(1.08, .88); } 25% { transform: translateY(-6px) scale(.94, 1.08); } 50% { transform: translateY(-8px) scale(1); } 75% { transform: translateY(-3px) scale(.98, 1.04); } 100% { transform: translateY(0) scale(1.08, .88); } }
.dm-btn.landed .jumper svg { animation: land .35s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes land { 0% { transform: scale(1.15, .8); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .dm-btn.jumping .jumper svg, .dm-btn.landed .jumper svg { animation: none; } }
.dm-btn.jumping .jumper svg { animation: hop2 .78s cubic-bezier(.3, 0, .3, 1) infinite; }
@keyframes hop2 {
  0% { transform: translateY(0) scale(1, 1); }
  22% { transform: translateY(2px) scale(1.28, .62); }
  34% { transform: translateY(-4px) scale(.82, 1.25); }
  55% { transform: translateY(-15px) scale(.95, 1.05) rotate(-6deg); }
  72% { transform: translateY(-6px) scale(1, 1) rotate(4deg); }
  86% { transform: translateY(1px) scale(1.2, .78); }
  100% { transform: translateY(0) scale(1, 1); }
}
.dm-btn { overflow: visible; }
/* spacing tokens */
:root { --sp-4: 4px; --sp-8: 8px; --sp-12: 12px; --sp-16: 16px; --sp-24: 24px; --sp-32: 32px; --sp-48: 48px; --sp-64: 64px; --sp-96: 96px; }
.tbl-wrap + .sem-head { margin-top:var(--sp-48); }
.sem-head + .sems { margin-top:var(--sp-16); }
.spc { list-style: none; margin:0; padding:0; display: grid; border-radius: 20px; border: 1px solid var(--rule); background: var(--paper); overflow: hidden; }
.spc li { display: grid; grid-template-columns: 112px 44px 92px minmax(0, 1fr); align-items: center; gap:var(--sp-12); padding:var(--sp-12) var(--sp-16); }
.spc li + li { border-top: 1px solid var(--rule); }
.spc .bar { height: 14px; width: var(--w); max-width: 100%; border-radius: 4px; background: color-mix(in srgb, var(--sage) 55%, transparent); transform-origin: left; }
.spc code { font: 600 .8125rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--bark); }
.spc b { font-weight: 600; color: var(--bark); font-size: .9375rem; }
.spc li > span:last-child { font-size: .875rem; color: var(--bark-soft); }
@media (max-width: 560px) { .spc li { grid-template-columns: 96px 1fr; row-gap:2px; } .spc code { grid-column: 2; grid-row: 1; } .spc b { grid-column: 2; grid-row: 1; margin-left:48px; } .spc li > span:last-child { grid-column: 1 / -1; } }
.spc-note { margin:var(--sp-16) 0 0; text-align: center; }
@media (prefers-reduced-motion: no-preference) { .spc.in .bar { animation: barIn .8s cubic-bezier(.2, .8, .2, 1) both; } .spc li:nth-child(2) .bar { animation-delay: .04s; } .spc li:nth-child(3) .bar { animation-delay: .08s; } .spc li:nth-child(4) .bar { animation-delay: .12s; } .spc li:nth-child(5) .bar { animation-delay: .16s; } .spc li:nth-child(6) .bar { animation-delay: .2s; } .spc li:nth-child(7) .bar { animation-delay: .24s; } .spc li:nth-child(8) .bar { animation-delay: .28s; } .spc li:nth-child(9) .bar { animation-delay: .32s; } @keyframes barIn { from { transform: scaleX(0); } } }
@media (max-width: 560px) { .spc li { grid-template-columns: 96px 32px minmax(0, 1fr); row-gap:2px; } .spc code, .spc b { grid-column: auto; grid-row: auto; margin:0; } .spc li > span:last-child { grid-column: 2 / -1; } }
.dm-btn.jumping .jumper svg { animation: hop3 var(--jd, 900ms) linear 1 both; }
@keyframes hop3 {
  0% { transform: translateY(0) scale(1, 1); animation-timing-function: ease-in; }
  14% { transform: translateY(3px) scale(1.32, .6); animation-timing-function: cubic-bezier(.2, .9, .3, 1); }
  24% { transform: translateY(-6px) scale(.8, 1.28); animation-timing-function: ease-out; }
  52% { transform: translateY(-18px) scale(.96, 1.04) rotate(-8deg); animation-timing-function: ease-in; }
  82% { transform: translateY(-2px) scale(.9, 1.15) rotate(3deg); animation-timing-function: ease-out; }
  90% { transform: translateY(2px) scale(1.28, .7); animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
  100% { transform: translateY(0) scale(1, 1); }
}
.spc li { grid-template-columns: 112px 40px minmax(0, 1fr); }
.spc b { font: 600 .9375rem/1 var(--font-body); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .spc li { grid-template-columns: 96px 32px minmax(0, 1fr); } .spc li > span:last-child { grid-column: auto; } }
:root { --sun: #9A4A0A; --fire: #B42318; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sun: #F5A65B; --fire: #F59A92; } }
:root[data-theme="dark"] { --sun: #F5A65B; --fire: #F59A92; }
.h-serif { font-family: var(--font-display); font-weight: 400; }
.h-sans { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.02em; }
.thread.anim.snap::after, .thread.anim.snap li, .thread.anim.snap li::before { transition: none !important; }
.thread.anim::after { transition-duration: 1.6s; }
.tg-mode { font-weight: 600; color: var(--bark); font-size: 1rem; min-width: 3.2em; }
.tg-mode { font-size: inherit; font-weight: 500; }
/* ---------- calendar family (Gainz, Ghar/Bahar) ---------- */
.s-rest { --c: var(--rule); }
.calpair { align-items: start; }
.dcal { width: 100%; max-width: 420px; padding:16px; border-radius: 20px; border: 1px solid var(--rule); background: var(--paper); }
.dc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom:12px; }
.dc-head h4 { margin:0; font: 400 1.25rem/1.2 var(--font-display); }
.dc-nav { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper); color: var(--bark); font-size: 1.25rem; line-height: 1; cursor: pointer; transition: border-color .2s, background .2s; }
.dc-nav:hover:not(:disabled) { border-color: var(--sage); background: var(--linen); }
.dc-nav:disabled { opacity: .35; cursor: default; }
.dc-nav:focus-visible, .dc-day:focus-visible { outline: 3px solid var(--bark); outline-offset: 2px; }
.dc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap:4px; }
.dc-dow { padding-bottom:4px; text-align: center; font-size: .75rem; font-weight: 600; color: var(--bark-soft); }
.dc-day { min-width: 0; aspect-ratio: 1 / 1.15; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding:4px 2px; border: 0; border-radius: 12px; background: var(--linen); color: var(--bark); font: 600 .8125rem/1 var(--font-body); font-variant-numeric: tabular-nums; cursor: pointer; }
.dc-day i { max-width: 100%; overflow: hidden; white-space: nowrap; padding:2px 4px; border-radius: 6px; font: 600 .6875rem/1.2 var(--font-body); font-style: normal; background: var(--c); color: var(--paper); }
.dc-day.rest i { background: none; color: var(--bark-soft); font-weight: 500; }
.dc-day.blank { background: none; cursor: default; }
.dc-day.future { opacity: .4; cursor: default; }
.dc-day.today { box-shadow: inset 0 0 0 2px var(--bark); }
.dc-day[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--moss); }
.dc-day.today[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--moss), inset 0 0 0 4px var(--paper); }
.dstep { display: flex; align-items: center; gap:8px; width: 100%; max-width: 420px; }
.dstep .dc-nav { width: 44px; height: 44px; }
.dpick { position: relative; flex: 1; min-width: 0; min-height: 48px; display: grid; place-items: center; align-content: center; padding:4px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); text-align: center; }
.dpick b { font: 400 1.0625rem/1.2 var(--font-display); }
.dpick small { font-size: .75rem; color: var(--bark-soft); }
.dsum { width: 100%; max-width: 420px; margin:0; padding:4px 16px; list-style: none; border-radius: 20px; border: 1px solid var(--rule); background: var(--paper); }
.dsum li { display: flex; align-items: center; justify-content: space-between; padding:8px 0; border-top: 1px solid var(--rule); }
.dsum li:first-child { border-top: 0; }
.dsum span { display: flex; align-items: center; gap:12px; }
.dsum i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.dsum b { font-weight: 600; font-variant-numeric: tabular-nums; }
.dsum small { font-size: .8125rem; font-weight: 500; color: var(--bark-soft); }
.calpair .notes { margin:0; padding:0; list-style: none; display: grid; gap:12px; color: var(--bark-soft); line-height: 1.5; }
.calpair .notes b { color: var(--bark); font-weight: 600; }
.dpick input { position: absolute; inset: 0; width: 100%; height: 100%; margin:0; padding:0; border: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.dpick:focus-within { outline: 3px solid var(--bark); outline-offset: 2px; }
@media (max-width: 480px) { .dcal { padding:12px; } .dc-grid { gap:4px; } .dc-day i { padding:2px 4px; font-size: .625rem; letter-spacing: -.01em; } .at:has(.dcal) { padding-inline:16px; } }
/* calendar v2: whole-day colour, chevron icons */
.dc-nav { padding:0; line-height: 0; }
.dc-nav svg { display: block; width: 20px; height: 20px; }
.dc-day i { padding:0; border-radius: 0; background: none; color: inherit; font-weight: 500; }
.dc-day.done { background: var(--c); color: var(--paper); }
.dc-day.done i { font-weight: 600; opacity: .92; }
.dc-day.rest i { color: var(--bark-soft); }
.dc-day.today { box-shadow: none; outline: 2px solid var(--bark); outline-offset: 1px; }
.dc-day[aria-pressed="true"], .dc-day.today[aria-pressed="true"] { box-shadow: none; outline: 2.5px solid var(--moss); outline-offset: 1px; }
@media (max-width: 480px) { .dc-day i { padding:0; } }
/* calendar rings inside the cell so neighbours never overlap */
.dc-day.today { outline: 0; box-shadow: inset 0 0 0 2px var(--bark), inset 0 0 0 3.5px var(--paper); }
.dc-day[aria-pressed="true"], .dc-day.today[aria-pressed="true"] { outline: 0; box-shadow: inset 0 0 0 2.5px var(--moss), inset 0 0 0 4px var(--paper); }
.dpick.is-today { border-color: var(--bark); box-shadow: inset 0 0 0 1px var(--bark); }
/* ---------- personal note (In-Class Notes · Why I care): a ruled notebook page ---------- */
.note-card { --ln: 1.8rem; position: relative; margin-top:8px; padding:var(--ln) clamp(24px, 4vw, 32px) calc(var(--ln) * .5) clamp(48px, 7vw, 64px); border-radius: 8px; background-color: var(--paper); --rule-y: calc(var(--ln) / 2 + .35em + 1.5px); /* just under the text baseline, so words sit on the line */ background-image: repeating-linear-gradient(to bottom, transparent 0 var(--rule-y), color-mix(in srgb, var(--rain) 30%, transparent) var(--rule-y) calc(var(--rule-y) + 1px), transparent calc(var(--rule-y) + 1px) var(--ln)); background-origin: content-box; background-clip: content-box; box-shadow: 0 18px 36px -22px rgba(59, 47, 37, .45), 0 1px 3px rgba(59, 47, 37, .1); transform: rotate(-.6deg); }
.note-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(34px, 5vw, 46px); width: 1.5px; background: color-mix(in srgb, var(--fire) 40%, transparent); }
.note-card::after { content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(2deg); background: color-mix(in srgb, var(--sage) 32%, transparent); border-radius: 2px; }
.note-card p { margin:0 0 var(--ln);
}
.note-card p:last-child { margin-bottom:0; }
.note-card p { line-height: var(--ln); color: var(--bark); }
@media (max-width: 480px) { .note-card { transform: none; } }
.note-card { gap:0; } /* .prose is a grid with a gap; on a ruled page only whole lines may separate paragraphs */

/* corners */
.rad { margin-top:var(--sp-48, 48px); }
.rad-head { margin-bottom:var(--sp-24, 24px); }
.rad-head h3 { margin:0 0 var(--sp-8, 8px); }
.rad-scale { list-style: none; margin:0; padding:0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap:var(--sp-12, 12px); }
.rad-scale li { display: flex; flex-direction: column; gap:4px; padding:var(--sp-16, 16px); border: 1px solid var(--rule); border-radius: 16px; background: var(--paper); }
.rad-scale i { display: block; width: 72px; height: 56px; border-radius: var(--r); background: color-mix(in srgb, var(--sage) 35%, transparent); border: 2px solid var(--sage); margin-bottom:8px; }
.rad-scale b { font-weight: 600; color: var(--bark); }
.rad-scale span { font-size: .8125rem; line-height: 1.35; color: var(--bark-soft); }
.rad-demo { display: grid; grid-template-columns: 1fr 1fr; gap:var(--sp-16, 16px); margin-top:var(--sp-24, 24px); }
.rad-demo figure { margin:0; display: flex; flex-direction: column; gap:var(--sp-12, 12px); }
.rad-demo figcaption { font-size: .875rem; color: var(--bark-soft); }
.rad-demo figcaption b { display: block; color: var(--bark); font-weight: 600; }
.rn { border-radius: 24px; padding:16px; background: var(--paper); border: 1px solid var(--rule); }
.rn div { height: 120px; background: var(--linen); border: 1px solid var(--rule); }
.rn.bad div { border-radius: 24px; }
.rn.good div { border-radius: 8px; }
.rn.bad { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fire) 35%, transparent); }
.rn.good { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--sage) 45%, transparent); }
@media (max-width: 720px) { .rad-scale { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rad-demo { grid-template-columns: 1fr; } }

/* top bar, matching the homepage: a separator, then day/night as a single icon button showing the current mode */
:root { --pane-a: rgba(255, 253, 248, 0.85); --pane-b: rgba(255, 253, 248, 0.45); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pane-a: rgba(239, 230, 216, 0.13); --pane-b: rgba(239, 230, 216, 0.04); } }
:root[data-theme="dark"] { --pane-a: rgba(239, 230, 216, 0.13); --pane-b: rgba(239, 230, 216, 0.04); }
.wxctl { position: relative; display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav-sep { width: 1px; height: 20px; margin: 0 6px 0 2px; background: var(--rule); }
.wxctl .theme { position: relative; inset: auto; z-index: auto; width: auto; height: 38px; padding: 0; gap: 0; background: none; box-shadow: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.wxctl .theme .knob, .wxctl .theme button[aria-checked="false"] { display: none; }
.wxctl .theme button, .wxctl .theme button[aria-checked="true"] { width: 38px; height: 38px; color: var(--bark); cursor: pointer; }
.wxctl .theme button:hover, .wxctl .theme button[aria-checked="true"]:hover { color: var(--moss); }
.wxctl .theme button svg { width: 18px; height: 18px; color: inherit !important; }
@media (max-width: 479px) { .wxctl { margin-left: 0; } .nav-sep { margin: 0 2px; } .wxctl .theme button { width: 34px; } }
/* the name sits on a second pane of glass: lifted by a soft shadow, bright top edge instead of an outline */
.glass .mark { background: linear-gradient(180deg, var(--pane-a), var(--pane-b)); box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 -1px 0 color-mix(in srgb, var(--bark) 6%, transparent), 0 1px 2px color-mix(in srgb, var(--bark) 10%, transparent), 0 6px 16px -6px var(--glass-shadow); -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%); transition: box-shadow .3s; }
.glass .mark:hover { box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 -1px 0 color-mix(in srgb, var(--bark) 6%, transparent), 0 2px 4px color-mix(in srgb, var(--bark) 12%, transparent), 0 10px 22px -8px var(--glass-shadow); }

/* the weather icon only lives on the homepage; arriving from there it shows for a beat, then folds away */
.wx-ghost { display: grid; place-items: center; width: 0; height: 38px; overflow: hidden; opacity: 0; color: var(--bark); transition: width .45s cubic-bezier(.4, 0, .2, 1), opacity .25s ease; }
.wx-ghost.in { width: 38px; opacity: 1; transition: none; }
.wx-ghost svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 479px) { .wx-ghost.in { width: 34px; } }
@media (prefers-reduced-motion: reduce) { .wx-ghost { transition: none; } }
