/* ==========================================================================
   Jignesh Plywood — v2
   Warm white, full-bleed interiors, quiet type, considered motion.
   ========================================================================== */

:root {
  --paper: #f5f2ec;
  --paper-2: #ece6dc;
  --white: #fffdf9;
  --ink: #1a1815;
  --ink-2: #5b544b;
  --ink-3: #8a8277;
  --line: #ddd5c8;
  --wood: #9a5d2c;
  --wood-deep: #774520;
  --wood-soft: #d9b98f;
  --night: #1c1a17;
  --night-2: #282521;
  --on-night: #efe9df;
  --on-night-2: #b9b0a3;
  --wa: #1d7a4b;
  --wa-deep: #155f3a;
  --error: #a3261b;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-2xl: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  --fs-3xl: clamp(2.75rem, 1.6rem + 5vw, 6rem);

  --sp-1: 0.5rem; --sp-2: 1rem; --sp-3: 1.5rem; --sp-4: 2rem; --sp-5: 3rem; --sp-6: 4.5rem;
  --sp-7: clamp(4.5rem, 3rem + 6vw, 9rem);

  --wrap: 80rem;
  --r-sm: 6px; --r: 14px; --r-lg: 22px;
  --header-h: 4.75rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-1: 180ms; --t-2: 360ms; --t-3: 800ms; --t-4: 1200ms;

  --z-header: 50; --z-bar: 40; --z-menu: 60;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-base); line-height: 1.65;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, iframe, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 2.5px solid var(--wood); outline-offset: 3px; border-radius: 4px; }
.is-night :focus-visible, .hero :focus-visible { outline-color: var(--wood-soft); }

.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 100; padding: .6rem 1rem; background: var(--ink); color: var(--white); border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(100% - 5rem, var(--wrap)); } }

/* ---------- type ---------- */
.t-3xl { font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -0.045em; line-height: 1.0; }
.t-2xl { font-size: var(--fs-2xl); letter-spacing: -0.04em; }
.t-xl { font-size: var(--fs-xl); }
.t-lg { font-size: var(--fs-lg); letter-spacing: -0.02em; line-height: 1.3; }
.lead { font-size: var(--fs-md); color: var(--ink-2); max-width: 40rem; line-height: 1.7; }
.is-night .lead { color: var(--on-night-2); }
.muted { color: var(--ink-2); }
.kicker { font-size: var(--fs-sm); font-weight: 600; color: var(--wood); margin-bottom: var(--sp-2); display: block; }
.is-night .kicker { color: var(--wood-soft); }
.accent { color: var(--wood); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.1rem; padding: .8rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; touch-action: manipulation;
  overflow: hidden; isolation: isolate;
  transition: color var(--t-2) var(--ease), border-color var(--t-2) var(--ease), background-color var(--t-2) var(--ease), transform var(--t-1) var(--ease);
}
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; transition: transform var(--t-2) var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
/* fill sweeps up from below on hover */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform var(--t-2) var(--ease); border-radius: inherit; }
.btn:hover::before { transform: translateY(0); }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark::before { background: var(--wood); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light::before { background: var(--wood-soft); }
.btn--ghost { border-color: currentColor; color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--white); border-color: var(--ink); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost-light::before { background: #fff; }
.btn--ghost-light:hover { color: var(--ink); border-color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa::before { background: var(--wa-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 2px;
  transition: background-size var(--t-2) var(--ease), color var(--t-1);
}
.link-arrow:hover { background-size: 100% 1.5px; color: var(--wood); }
.link-arrow svg { width: 1rem; height: 1rem; transition: transform var(--t-2) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.is-night .link-arrow { color: var(--on-night); }
.is-night .link-arrow:hover { color: var(--wood-soft); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header); height: var(--header-h);
  color: var(--ink); background: rgba(245, 242, 236, 0.9); border-bottom: 1px solid var(--line);
  transition: background-color var(--t-2) var(--ease), color var(--t-2) var(--ease), border-color var(--t-2) var(--ease), transform var(--t-2) var(--ease);
}
@supports (backdrop-filter: blur(10px)) { .site-header { background: rgba(245, 242, 236, 0.78); backdrop-filter: saturate(1.4) blur(14px); } }
body { padding-top: var(--header-h); }
body.has-hero { padding-top: 0; }
.has-hero .site-header:not(.is-solid) { background: transparent; color: #fff; border-color: transparent; backdrop-filter: none; }
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner { height: 100%; display: flex; align-items: center; gap: var(--sp-3); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
/* wordmark logo: JIGNESH over — PLYWOOD — */
.wordmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; font-size: 1.2rem; }
.wordmark b { font-weight: 750; letter-spacing: .26em; margin-right: -.26em; }
.wordmark small { display: flex; align-items: center; gap: .55em; font-size: .42em; font-weight: 600; letter-spacing: .42em; margin-right: -.42em; margin-top: .55em; opacity: .75; }
.wordmark small::before, .wordmark small::after { content: ""; width: 1.4em; height: 1px; background: currentColor; opacity: .5; }
@media (max-width: 380px) { .wordmark { font-size: 1.05rem; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px;
  border: 1.5px solid currentColor; background: transparent; cursor: pointer; font-weight: 600; font-size: .92rem;
}
.nav-toggle__icon { width: 1.1rem; height: .75rem; position: relative; }
.nav-toggle__icon span { position: absolute; left: 0; right: 0; height: 1.6px; background: currentColor; transition: transform var(--t-2) var(--ease), top var(--t-2) var(--ease); }
.nav-toggle__icon span:first-child { top: 0; }
.nav-toggle__icon span:last-child { top: calc(100% - 1.6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:first-child { top: calc(50% - .8px); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:last-child { top: calc(50% - .8px); transform: rotate(-45deg); }

/* mobile menu: full-screen sheet */
.site-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-menu);
  background: var(--paper); color: var(--ink); overflow-y: auto;
  padding: var(--sp-3) 1.25rem calc(var(--sp-5) + env(safe-area-inset-bottom));
  visibility: hidden; opacity: 0; transform: translateY(-12px);
  transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease), visibility 0s linear var(--t-2);
}
.site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease); }
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-list a:not(.btn), .nav-sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 3.5rem;
  font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
}
.nav-list a[aria-current="page"] { color: var(--wood); }
.nav-sub-toggle svg { width: 1rem; height: 1rem; transition: transform var(--t-2) var(--ease); }
.nav-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-sub { display: none; padding: 0 0 var(--sp-2); }
.nav-sub.is-open { display: grid; gap: .25rem; }
.nav-sub a { font-size: 1.05rem; font-weight: 500; min-height: 2.75rem; color: var(--ink-2); }
.nav-sub a small { display: none; }
.nav-cta { margin-top: var(--sp-3); }
.nav-cta .btn { width: 100%; }
body.menu-open { overflow: hidden; }
/* backdrop-filter would make the header the containing block of the fixed menu sheet */
body.menu-open .site-header, body.menu-open.has-hero .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); color: var(--ink); border-color: var(--line); transform: none; }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    position: static; inset: auto; visibility: visible; opacity: 1; transform: none; background: none; color: inherit;
    padding: 0; overflow: visible; transition: none;
  }
  .nav-list { display: flex; align-items: center; gap: .25rem; }
  .nav-list > li { border: 0; position: relative; }
  .nav-list > li > a:not(.btn), .nav-sub-toggle {
    font-size: .95rem; font-weight: 550; min-height: 2.75rem; padding: 0 .9rem; letter-spacing: 0; width: auto; gap: .35rem;
    border-radius: 999px; transition: background-color var(--t-1);
  }
  .nav-list > li > a:not(.btn):hover, .nav-sub-toggle:hover { background: rgba(127, 110, 90, .12); }
  .nav-list > li > a:not(.btn)[aria-current="page"] { color: inherit; background: rgba(127, 110, 90, .14); }
  .nav-sub {
    display: grid; position: absolute; top: calc(100% + .6rem); left: 50%; width: 32rem; padding: .75rem;
    grid-template-columns: 1fr 1fr; gap: .25rem;
    background: var(--white); color: var(--ink); border-radius: var(--r); box-shadow: 0 30px 60px -20px rgba(26,24,21,.3), 0 0 0 1px rgba(26,24,21,.06);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease), visibility 0s linear var(--t-2);
  }
  .nav-sub.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease); }
  .nav-sub a { display: block; min-height: 0; padding: .8rem .9rem; border-radius: 10px; font-size: .98rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
  .nav-sub a small { display: block; font-weight: 450; font-size: .82rem; color: var(--ink-3); margin-top: .2rem; }
  .nav-sub a:hover { background: var(--paper); }
  .nav-cta { margin: 0 0 0 .6rem; }
  .nav-cta .btn { width: auto; min-height: 2.75rem; padding: .6rem 1.2rem; }
  .has-hero .site-header:not(.is-solid) .nav-cta .btn--dark { background: #fff; color: var(--ink); }
}

/* ---------- mobile action bar ---------- */
.action-bar {
  position: fixed; inset: auto 0 0 0; z-index: var(--z-bar); display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(245,242,236,.96); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform var(--t-2) var(--ease);
}
.action-bar.is-shown { transform: none; }
.action-bar .btn { min-height: 3rem; border-radius: 12px; }
.action-bar .btn--ghost { background: var(--white); }
@media (min-width: 1080px) { .action-bar { display: none; } }
@media (max-width: 1079px) { .site-footer { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding-block: var(--sp-7); }
.section--tight { padding-block: var(--sp-6); }
.section--paper2 { background: var(--paper-2); }
.section--white { background: var(--white); }
.is-night { background: var(--night); color: var(--on-night); }
.sec-head { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-6); }
@media (min-width: 960px) {
  .sec-head--split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: var(--sp-6); }
}

/* ==========================================================================
   HERO (home) — crossfading interiors, slow push-in, line-by-line headline
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--night); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1400ms var(--ease-in-out); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transform-origin: 60% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .hero__slide.is-active img { animation: push-in 9000ms linear forwards; }
}
@keyframes push-in { from { transform: scale(1.12); } to { transform: scale(1.0); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,18,15,.62) 0%, rgba(20,18,15,.35) 40%, rgba(20,18,15,0) 70%),
    linear-gradient(180deg, rgba(20,18,15,.5) 0%, rgba(20,18,15,0) 25%, rgba(20,18,15,.1) 55%, rgba(20,18,15,.8) 100%);
}
.hero__content { position: relative; z-index: 2; padding-block: calc(var(--header-h) + var(--sp-5)) var(--sp-5); }
.hero__title, .hero__lead { text-shadow: 0 2px 24px rgba(0,0,0,.25); }
@media (max-width: 767px) {
  .hero::after { background: linear-gradient(180deg, rgba(20,18,15,.55) 0%, rgba(20,18,15,.5) 40%, rgba(20,18,15,.55) 65%, rgba(20,18,15,.85) 100%); }
  .hero .hero__tabs { gap: 1rem; width: 100%; flex-wrap: nowrap; }
  .hero .hero__tab { flex: 1 1 0; min-width: 0; font-size: .85rem; }
  .hero .hero__tab .bar { width: 100%; }
  .hero .hero__foot { margin-top: var(--sp-4); }
}
.hero__title { font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -0.05em; line-height: .98; max-width: 14ch; }
.hero__lead { margin-top: var(--sp-3); max-width: 34rem; font-size: var(--fs-md); color: rgba(255,255,255,.88); }
.hero__actions { margin-top: var(--sp-4); }
.hero__foot {
  margin-top: var(--sp-6); padding-top: var(--sp-3); border-top: 1px solid rgba(255,255,255,.28);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); align-items: center; justify-content: space-between;
}
.hero__tabs { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hero__tab {
  background: none; border: 0; color: rgba(255,255,255,.62); cursor: pointer; padding: .4rem 0; min-height: 2.75rem;
  display: grid; gap: .45rem; font-weight: 600; font-size: .92rem; text-align: left; transition: color var(--t-2);
}
.hero__tab[aria-selected="true"], .hero__tab:hover { color: #fff; }
.hero__tab .bar { display: block; width: 6.5rem; height: 2px; background: rgba(255,255,255,.28); overflow: hidden; border-radius: 2px; }
.hero__tab .bar i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__tab[aria-selected="true"] .bar i { animation: bar-fill var(--slide-ms, 6500ms) linear forwards; }
.hero.is-paused .hero__tab[aria-selected="true"] .bar i { animation-play-state: paused; }
@keyframes bar-fill { to { transform: scaleX(1); } }
.hero__pause {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff; cursor: pointer; font-size: .85rem; font-weight: 600;
}
.hero__pause svg { width: .9rem; height: .9rem; }
.hero__meta { display: flex; gap: var(--sp-3); flex-wrap: wrap; font-size: .9rem; color: rgba(255,255,255,.8); }
.hero__meta span { display: inline-flex; gap: .45rem; align-items: center; }
.hero__meta svg { width: 1rem; height: 1rem; }

/* line reveal used on load (hero) and on scroll ([data-split]) */
.split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split-line > span { display: inline-block; will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero .split-line > span { transform: translateY(110%); transition: transform 1100ms var(--ease); transition-delay: calc(250ms + var(--i, 0) * 110ms); }
  .js .hero.is-ready .split-line > span { transform: none; }
  .js .hero [data-hero-fade] { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: calc(650ms + var(--i, 0) * 120ms); }
  .js .hero.is-ready [data-hero-fade] { opacity: 1; transform: none; }

  .js [data-split] .split-line > span { transform: translateY(110%); transition: transform 1000ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-split].is-in .split-line > span { transform: none; }
}

/* ==========================================================================
   PAGE HERO (inner pages) — split: text + tall image that unmasks
   ========================================================================== */
.page-hero { padding-block: var(--sp-6) var(--sp-6); }
.page-hero__grid { display: grid; gap: var(--sp-5); align-items: end; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--sp-6); } }
.page-hero h1 { font-size: var(--fs-3xl); letter-spacing: -0.05em; line-height: 1; }
.page-hero .lead { margin-top: var(--sp-3); }
.page-hero__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { display: flex; gap: .5rem; font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: var(--sp-3); }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--wood); }

/* ==========================================================================
   REVEALS
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(12% 6% 12% 6% round var(--r-lg)); transition: clip-path 1300ms var(--ease); }
  .js [data-reveal="mask"] img { transform: scale(1.15); transition: transform 1600ms var(--ease); }
  .js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
  .js [data-reveal="mask"].is-in img { transform: scale(1); }
}
[data-parallax] { will-change: transform; }

/* ==========================================================================
   STATEMENT + STATS
   ========================================================================== */
.statement { font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.03em; line-height: 1.25; max-width: 30ch; }
.statement .muted { color: var(--ink-3); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4) var(--sp-3); margin-top: var(--sp-6); border-top: 1px solid var(--line); padding-top: var(--sp-4); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num { font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: .6rem; color: var(--ink-2); font-size: var(--fs-sm); max-width: 16rem; }

/* ==========================================================================
   ANATOMY — exploded board, driven by scroll
   ========================================================================== */
.anatomy { position: relative; overflow-x: clip; }
html { overflow-x: clip; }
.anatomy__grid { display: grid; gap: var(--sp-5); }
@media (min-width: 960px) {
  .anatomy { height: 260vh; }
  .anatomy__sticky { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; }
  .anatomy__grid { grid-template-columns: 1fr 1.1fr; gap: var(--sp-6); align-items: center; }
}
.anatomy__steps { display: grid; gap: 0; margin-top: var(--sp-4); border-top: 1px solid var(--line-night, rgba(255,255,255,.14)); }
.anatomy__step { display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--sp-2); padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.14); opacity: .42; transition: opacity var(--t-2) var(--ease); }
.anatomy__step.is-active { opacity: 1; }
.anatomy__step .mm { font-variant-numeric: tabular-nums; color: var(--wood-soft); font-weight: 600; font-size: var(--fs-sm); padding-top: .15rem; }
.anatomy__step h3 { font-size: 1.05rem; letter-spacing: -0.01em; font-weight: 650; }
.anatomy__step p { color: var(--on-night-2); font-size: .92rem; margin-top: .2rem; }

.board { position: relative; height: min(70vh, 34rem); perspective: 1600px; }
.board__stack { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-38deg); top: 8%; }
.board__layer {
  position: absolute; left: 12%; right: 12%; top: 18%; bottom: 18%; border-radius: 4px;
  transform: translateZ(calc(var(--z, 0) * 1px)); transition: transform 120ms linear, box-shadow 200ms;
  box-shadow: 0 1px 0 rgba(0,0,0,.25), 0 40px 60px -30px rgba(0,0,0,.6);
}
.anatomy__sticky > .section { padding-block: var(--sp-5); }
@media (min-width: 960px) and (max-height: 820px) {
  .anatomy__step { padding: .6rem 0; }
  .anatomy__step p { display: none; }
  .anatomy .lead { font-size: 1rem; }
}
.board__layer--face { background: linear-gradient(115deg, #e3c497, #c89c66 60%, #d8b17d); }
.board__layer--face::before, .board__layer--cross::before, .board__layer--core::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .55; }
.board__layer--face::before { background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(120,70,30,.18) 14px 15px, transparent 15px 33px, rgba(120,70,30,.12) 33px 35px); }
.board__layer--cross { background: linear-gradient(115deg, #b98552, #a06c3b); }
.board__layer--cross::before { background: repeating-linear-gradient(0deg, transparent 0 9px, rgba(70,40,15,.25) 9px 10px); }
.board__layer--core { background: linear-gradient(115deg, #caa173, #b88a57); }
.board__layer--core::before { background: repeating-linear-gradient(0deg, transparent 0 18px, rgba(60,35,12,.35) 18px 19px), repeating-linear-gradient(90deg, transparent 0 22px, rgba(70,40,15,.12) 22px 23px); }
.board__layer--glue { background: rgba(240, 220, 170, .55); box-shadow: none; }
@media (max-width: 959px) { .board { height: 22rem; } }

/* ==========================================================================
   GRADES — five cards with a water-resistance meter
   ========================================================================== */
.grades { display: grid; gap: 1rem; }
@media (min-width: 700px) { .grades { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grades { grid-template-columns: repeat(5, 1fr); } }
.grade-card {
  position: relative; display: flex; flex-direction: column; gap: .9rem; padding: var(--sp-3); min-height: 19rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none;
  transition: transform var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease), border-color var(--t-2);
}
.grade-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(26,24,21,.35); border-color: transparent; }
.grade-card__name { font-size: 2.4rem; font-weight: 650; letter-spacing: -0.05em; line-height: 1; }
.grade-card__std { font-size: var(--fs-sm); font-weight: 600; color: var(--wood); }
.grade-card p { color: var(--ink-2); font-size: .95rem; }
.grade-card .link-arrow { margin-top: auto; font-size: .92rem; }
.meter { display: grid; gap: .35rem; }
.meter__label { font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.meter__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.meter__bar i { height: 5px; border-radius: 3px; background: var(--paper-2); }
.meter__bar i.on { background: linear-gradient(90deg, #6aa0b8, #2f6f8f); }
.meter--fire .meter__bar i.on { background: linear-gradient(90deg, #e0a24a, #b8541f); }
@media (prefers-reduced-motion: no-preference) {
  .js .grade-card .meter__bar i.on { transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease); transition-delay: calc(300ms + var(--n) * 90ms); }
  .js .grade-card.is-in .meter__bar i.on { transform: none; }
}

/* ==========================================================================
   ROOMS — tabs with crossfading picture
   ========================================================================== */
.rooms { display: grid; gap: var(--sp-4); }
@media (min-width: 1000px) { .rooms { grid-template-columns: 1.35fr 1fr; gap: var(--sp-5); align-items: stretch; } }
.rooms__tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: var(--sp-4); }
.tab {
  min-height: 2.9rem; padding: .55rem 1.15rem; border-radius: 999px; border: 1.5px solid var(--line); background: transparent;
  font-weight: 600; cursor: pointer; transition: background-color var(--t-1), color var(--t-1), border-color var(--t-1);
}
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.rooms__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
@media (min-width: 1000px) { .rooms__media { aspect-ratio: auto; min-height: 34rem; } }
.rooms__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 700ms var(--ease), transform 1400ms var(--ease); }
.rooms__media img.is-active { opacity: 1; transform: none; }
.rooms__panel { display: flex; flex-direction: column; }
.rooms__body { display: grid; gap: var(--sp-3); }
.rooms__body h3 { font-size: var(--fs-xl); }
.spec-list { display: grid; border-top: 1px solid var(--line); }
.spec-list div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--ink-3); font-size: var(--fs-sm); font-weight: 600; padding-top: .1rem; }
.spec-list dd { font-weight: 550; }
@media (prefers-reduced-motion: no-preference) { .rooms__body.is-swapping { animation: swap-in 500ms var(--ease); } }
@keyframes swap-in { from { opacity: 0; transform: translateY(10px); } }

/* ==========================================================================
   SURFACES / FEATURE SPLIT
   ========================================================================== */
.feature { display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 960px) { .feature { grid-template-columns: 1fr 1fr; gap: var(--sp-6); } .feature--flip > :first-child { order: 2; } }
.feature__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.feature__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.feature__media--wide { aspect-ratio: 4 / 3; }
.feature__body { display: grid; gap: var(--sp-3); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; min-height: 2.3rem; padding: .35rem .95rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .9rem; font-weight: 550; }
.is-night .chip { background: transparent; border-color: rgba(255,255,255,.22); color: var(--on-night); }

/* ==========================================================================
   PRODUCT CARDS (image cards)
   ========================================================================== */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); text-decoration: none; transition: transform var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(26,24,21,.35); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: var(--sp-3); display: grid; gap: .6rem; flex: 1; align-content: start; }
.card__body h3 { font-size: 1.35rem; letter-spacing: -0.025em; }
.card__body p { color: var(--ink-2); font-size: .95rem; }
.card__body .link-arrow { margin-top: .4rem; justify-self: start; font-size: .92rem; }
.card__tag { font-size: .8rem; font-weight: 650; color: var(--wood); }

/* ---------- icon features ---------- */
.icons { display: grid; gap: var(--sp-4) var(--sp-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .icons { grid-template-columns: repeat(4, 1fr); } }
.icon-feat { display: grid; gap: .6rem; align-content: start; }
.icon-feat svg { width: 2.4rem; height: 2.4rem; color: var(--wood); stroke-width: 1.4; }
.is-night .icon-feat svg { color: var(--wood-soft); }
.icon-feat h3 { font-size: 1.05rem; letter-spacing: -0.01em; font-weight: 650; }
.icon-feat p { color: var(--ink-2); font-size: .92rem; }
.is-night .icon-feat p { color: var(--on-night-2); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.table { min-width: 44rem; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: var(--fs-sm); color: var(--ink-3); font-weight: 650; background: var(--paper); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th { font-weight: 700; }
.table tbody tr { transition: background-color var(--t-1); }
.table tbody tr:hover { background: var(--paper); }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--paper-2); }
.dots i.on { background: #2f6f8f; }

/* ---------- grade detail rows (plywood page) ---------- */
.grade-rows { display: grid; border-top: 1px solid var(--line); }
.grade-row { display: grid; gap: var(--sp-3); padding-block: var(--sp-5); border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .grade-row { grid-template-columns: 14rem 1fr 1fr; gap: var(--sp-5); } }
.grade-row__name { font-size: var(--fs-2xl); font-weight: 650; letter-spacing: -0.05em; line-height: 1; }
.grade-row__std { color: var(--wood); font-weight: 600; margin-top: .5rem; font-size: var(--fs-sm); }
.grade-row h3 { font-size: var(--fs-lg); margin-bottom: .6rem; }
.grade-row p { color: var(--ink-2); }
.uses { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--sp-2); }

/* ---------- checklist ---------- */
.checks { display: grid; gap: 1rem; }
@media (min-width: 800px) { .checks { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
.check { display: grid; grid-template-columns: 2rem 1fr; gap: .9rem; padding: var(--sp-3); background: var(--white); border-radius: var(--r); border: 1px solid var(--line); }
.check svg { width: 1.6rem; height: 1.6rem; color: var(--wood); }
.check h2, .check h3 { font-size: 1.08rem; letter-spacing: -0.01em; font-weight: 650; margin-bottom: .3rem; }
.check p { color: var(--ink-2); font-size: .94rem; }

/* ==========================================================================
   MARQUEE (brands)
   ========================================================================== */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: var(--sp-4); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: var(--sp-6); width: max-content; }
.marquee__item { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.5rem); font-weight: 600; letter-spacing: -0.04em; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: var(--sp-6); }
.marquee__item::after { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--wood); }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; gap: var(--sp-3) var(--sp-5); } .marquee__item[aria-hidden="true"] { display: none; } }

/* ==========================================================================
   MINI CALCULATOR (home) + full calculator
   ========================================================================== */
.mini-calc { display: grid; gap: var(--sp-5); }
@media (min-width: 960px) { .mini-calc { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--sp-6); } }
.mini-calc__panel { background: var(--night-2); border-radius: var(--r-lg); padding: var(--sp-4); display: grid; gap: var(--sp-3); }
.range-field { display: grid; gap: .6rem; }
.range-field__top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.range-field output { font-variant-numeric: tabular-nums; font-size: 1.15rem; color: var(--wood-soft); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 2.75rem; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--wood-soft) var(--p, 50%), rgba(255,255,255,.18) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--wood-soft); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; }
.calc-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: var(--sp-3); border-top: 1px solid rgba(255,255,255,.14); }
.calc-result__num { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 650; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-result__label { font-size: .82rem; color: var(--on-night-2); margin-top: .4rem; }
.note { font-size: .85rem; color: var(--ink-3); }
.is-night .note { color: var(--on-night-2); }

/* full calculator */
.calc { display: grid; gap: var(--sp-5); }
@media (min-width: 1080px) { .calc { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.units { display: grid; gap: 1rem; }
.unit { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-3); display: grid; gap: 1rem; }
@media (prefers-reduced-motion: no-preference) { .unit.is-new { animation: swap-in 450ms var(--ease); } }
.unit__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.unit__head h3 { font-size: 1.1rem; letter-spacing: -0.01em; font-weight: 650; }
.unit__grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .unit__grid { grid-template-columns: 2fr repeat(4, 1fr); } }
.unit__grid .field--type { grid-column: 1 / -1; }
@media (min-width: 700px) { .unit__grid .field--type { grid-column: auto; } }
.check-field { display: flex !important; align-items: center; gap: .7rem; min-height: 3.1rem; cursor: pointer; font-weight: 550 !important; }
.check-field input { width: 1.35rem; height: 1.35rem; accent-color: var(--wood); flex: none; }
.summary { position: sticky; top: calc(var(--header-h) + 1.25rem); background: var(--night); color: var(--on-night); border-radius: var(--r-lg); padding: var(--sp-4); display: grid; gap: var(--sp-3); }
.summary h2 { font-size: var(--fs-lg); }
.summary__rows { display: grid; border-top: 1px solid rgba(255,255,255,.14); }
.summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.summary__row span { color: var(--on-night-2); font-size: .95rem; }
.summary__row strong { font-size: 1.6rem; font-weight: 650; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.summary__row strong small { font-size: .85rem; font-weight: 500; color: var(--on-night-2); letter-spacing: 0; margin-left: .25rem; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: .4rem; align-content: start; }
.field label, .legend { font-weight: 600; font-size: .95rem; }
.req { color: var(--wood); }
.hint { font-size: .85rem; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 3.1rem; padding: .75rem .95rem; border: 1.5px solid #cfc5b5; border-radius: 10px; background: var(--white);
  font-size: 1rem; transition: border-color var(--t-1), box-shadow var(--t-1);
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b544b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem; padding-right: 2.5rem; }
.textarea { min-height: 7.5rem; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--wood); box-shadow: 0 0 0 4px rgba(154, 93, 44, .18); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--error); }
.error { display: flex; gap: .4rem; align-items: center; color: var(--error); font-size: .85rem; font-weight: 600; }
.error[hidden] { display: none; }
.error svg { width: 1rem; height: 1rem; flex: none; }
.row-2 { display: grid; gap: var(--sp-3); }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.items { display: grid; gap: .9rem; margin-top: .75rem; }
.item { display: grid; gap: .8rem; padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
@media (min-width: 640px) { .item { grid-template-columns: 1.5fr 1.2fr .6fr auto; align-items: end; } }
@media (prefers-reduced-motion: no-preference) { .item.is-new { animation: swap-in 400ms var(--ease); } }
.item .field label { font-size: .82rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 3.1rem; min-height: 3.1rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink-2); cursor: pointer; transition: border-color var(--t-1), color var(--t-1); }
.icon-btn:hover { border-color: var(--error); color: var(--error); }
.icon-btn svg { width: 1.1rem; height: 1.1rem; }
.error-summary { border: 2px solid var(--error); border-radius: var(--r); padding: var(--sp-3); background: #fff6f3; }
.error-summary h2 { font-size: 1.05rem; letter-spacing: 0; margin-bottom: .5rem; }
.error-summary ul { list-style: disc; padding-left: 1.2rem; }
.error-summary a { color: var(--error); font-weight: 600; }
.file-drop { display: grid; gap: .55rem; justify-items: start; padding: 1.1rem; border: 1.5px dashed #cfc5b5; border-radius: 10px; background: var(--white); transition: border-color var(--t-1), background-color var(--t-1), box-shadow var(--t-1); }
.file-drop > svg { width: 1.5rem; height: 1.5rem; color: var(--wood); }
.file-drop:focus-within { border-color: var(--wood); box-shadow: 0 0 0 4px rgba(154, 93, 44, .18); }
.file-drop.is-drag { border-color: var(--wood); background: #faf5ec; }
.input-file { max-width: 100%; font-size: .95rem; color: var(--ink-2); cursor: pointer; }
.input-file:focus { outline: none; }
.input-file::file-selector-button { margin-right: .9rem; min-height: 2.75rem; padding: .55rem 1.1rem; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: inherit; font-weight: 600; cursor: pointer; transition: background-color var(--t-1); }
.input-file::file-selector-button:hover { background: var(--wood); }
.input-file[aria-invalid="true"] { color: var(--error); }
.form-status { padding: var(--sp-3); border-radius: var(--r); background: #e6f2ea; border-left: 4px solid var(--wa); }
.form-status[hidden] { display: none; }

.contact-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 1080px) { .contact-grid { grid-template-columns: 1.45fr 1fr; align-items: start; } }
.info-card { background: var(--night); color: var(--on-night); border-radius: var(--r-lg); padding: var(--sp-4); display: grid; gap: var(--sp-3); }
.info-list { display: grid; gap: var(--sp-3); }
.info-list dt { font-size: .82rem; font-weight: 600; color: var(--on-night-2); margin-bottom: .2rem; }
.info-list dd { font-size: 1.05rem; font-weight: 550; }
.info-list a { text-decoration: none; }
.info-list a:hover { color: var(--wood-soft); }
.map { border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); min-height: 24rem; }
.map iframe { width: 100%; height: 100%; min-height: 24rem; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; color: #fff; border-radius: var(--r-lg); min-height: 30rem; display: grid; align-items: end; isolation: isolate; }
.cta-band__bg { position: absolute; inset: -10% 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,18,15,.82) 0%, rgba(20,18,15,.45) 55%, rgba(20,18,15,.15) 100%); }
.cta-band__inner { padding: var(--sp-5) var(--sp-4); display: grid; gap: var(--sp-3); max-width: 40rem; }
@media (min-width: 768px) { .cta-band__inner { padding: var(--sp-6); } }
.cta-band .lead { color: rgba(255,255,255,.85); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--night); color: var(--on-night-2); }
.footer-top { padding-block: var(--sp-6) var(--sp-5); display: grid; gap: var(--sp-5); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-big { font-size: var(--fs-2xl); color: var(--on-night); letter-spacing: -0.045em; line-height: 1.02; font-weight: 600; max-width: 12ch; }
.footer-col h2 { font-size: .85rem; font-weight: 650; color: var(--on-night); letter-spacing: 0; margin-bottom: 1rem; }
.footer-col li + li { margin-top: .55rem; }
.footer-col a { text-decoration: none; transition: color var(--t-1); }
.footer-col a:hover { color: var(--wood-soft); }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--sp-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .85rem; }
.footer-brand { display: inline-flex; color: var(--on-night); margin-top: var(--sp-4); }
.footer-brand .wordmark { font-size: 1.5rem; }

/* utilities */
.mt-1 { margin-top: var(--sp-1); } .mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); } .mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.center { text-align: center; margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}

/* ---------- blog ---------- */
.post-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--ink-3); }
.toc { max-width: 44rem; margin: 0 auto var(--sp-5); padding: var(--sp-3); background: var(--paper-2); border-radius: var(--r); }
.toc h2 { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .02em; color: var(--wood); margin-bottom: .6rem; }
.toc ol { list-style: decimal; padding-left: 1.25rem; display: grid; gap: .35rem; }
.toc a { text-decoration: none; font-weight: 550; }
.toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose { max-width: 44rem; margin-inline: auto; font-size: var(--fs-md); line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-xl); margin-top: 2.2em; }
.prose h3 { font-size: var(--fs-lg); margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--wood); }
.prose a { color: var(--wood-deep); text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose .table-wrap { margin-block: 1.6em; }
.prose .table { min-width: 38rem; font-size: .92rem; line-height: 1.5; }
.prose .note { margin-top: .6em; }
.callout { margin-top: 2em !important; padding: var(--sp-3); background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--wood); border-radius: var(--r); font-size: var(--fs-base); }
.callout strong { display: block; margin-bottom: .3rem; font-size: var(--fs-md); }
.post-cta { max-width: 44rem; margin: 0 auto; padding: var(--sp-4); background: var(--night); color: var(--on-night); border-radius: var(--r-lg); }
.post-cta h2 { font-size: var(--fs-xl); }
.post-cta p { margin-top: .6rem; color: var(--on-night-2); }
.post-cta .btn-row { margin-top: var(--sp-3); }
.post-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.post-card h2, .post-card h3 { font-size: var(--fs-lg); line-height: 1.2; }
.post-card .card__body { display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-card__meta { margin-top: auto; padding-top: .4rem; font-size: .85rem; color: var(--ink-3); }
article .page-hero h1 { font-size: var(--fs-2xl); }
article .page-hero__grid { align-items: center; }
