/* 3D Verket theme
   Design read: Swedish print-on-demand service for makers, engineers and small companies.
   Precise, workshop-industrial, light and dark. Cool zinc neutrals with one signal-orange accent.
   Dials: VARIANCE 6, MOTION 5, DENSITY 4.
   Radius rule: cards, panels and photos 14px. Buttons and inputs 10px. Chips and swatches round. */

:root {
  --bg: #f4f4f5;
  --surface: #fcfcfd;
  --surface-2: #ececee;
  --ink: #17171a;
  --ink-2: #3f3f46;
  --muted: #5f5f69;
  --line: #dedee3;
  --line-2: #cfcfd6;
  --accent: #e8703a;
  --accent-ink: #17171a;
  --accent-text: #a8441c;
  --ok: #1f7a4d;
  --err: #b42318;
  --r-card: 14px;
  --r-ctl: 10px;
  --shadow: 0 1px 2px rgb(24 24 27 / .06), 0 14px 32px -18px rgb(24 24 27 / .28);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101012;
    --surface: #18181b;
    --surface-2: #212125;
    --ink: #ededf0;
    --ink-2: #d4d4d8;
    --muted: #a1a1aa;
    --line: #2a2a2f;
    --line-2: #3a3a41;
    --accent: #e8703a;
    --accent-ink: #101012;
    --accent-text: #f59a6b;
    --ok: #4cc38a;
    --err: #ff7b6b;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 18px 40px -20px rgb(0 0 0 / .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16.5px; line-height: 1.6; font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
::selection { background: color-mix(in oklab, var(--accent) 35%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: .6rem 1rem; border-radius: var(--r-ctl); background: var(--ink); color: var(--bg); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: 0 1.2rem; border-radius: var(--r-ctl); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .975rem; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-sm { min-height: 40px; padding: 0 .95rem; font-size: .925rem; }
.btn-lg { min-height: 52px; padding: 0 1.45rem; font-size: 1.02rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 86%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: color-mix(in oklab, var(--ink) 85%, var(--accent)); }
.btn .icon { width: 1.1em; height: 1.1em; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.text-link .icon { transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.eyebrow { margin: 0 0 .8rem; font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.12rem; letter-spacing: -.03em; }
.brand-mark { width: 30px; height: 30px; }
.custom-logo { max-height: 40px; width: auto; }
.primary-nav { margin-right: auto; }
.nav-list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: .5rem .75rem; border-radius: var(--r-ctl); color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; white-space: nowrap; transition: background-color .15s, color .15s; }
.nav-list a:hover { background: var(--surface-2); color: var(--ink); }
.nav-list .current-menu-item > a, .nav-list .current_page_item > a { color: var(--ink); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.cart-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-ctl); color: var(--ink); }
.cart-link:hover { background: var(--surface-2); }
.cart-link .icon { width: 22px; height: 22px; }
.tdv-cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; font-family: var(--mono); }
.tdv-cart-count[hidden] { display: none; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: transparent; color: var(--ink); place-items: center; cursor: pointer; }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav[hidden] { display: none; }
.mobile-nav nav { display: grid; gap: 1rem; padding-block: 1rem 1.5rem; }
.mobile-list { list-style: none; margin: 0; padding: 0; }
.mobile-list a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.15rem; font-weight: 550; }
@media (max-width: 1023px) {
  .primary-nav { display: none; }
  .menu-toggle { display: grid; }
  .header-inner { justify-content: space-between; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); min-height: min(640px, calc(100dvh - var(--header-h) - 120px)); }
.hero-copy h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 680; max-width: 11ch; }
.hero-sub { margin: 1.4rem 0 0; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 40ch; line-height: 1.55; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-stage {
  position: relative; aspect-ratio: 1 / 1; max-height: max(380px, min(640px, calc(100dvh - var(--header-h) - 140px))); width: 100%; border-radius: var(--r-card); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(110% 80% at 50% 0%, var(--surface) 0%, var(--surface-2) 70%);
  border: 1px solid var(--line);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease); }
.hero-stage.is-live .hero-canvas { opacity: 1; }
.hero-fallback { position: absolute; inset: 0; z-index: -1; }
.hero-fallback img { width: 100%; height: 100%; object-fit: cover; }
.hero-stage.is-live .hero-fallback { display: none; }
.hero-drop-hint {
  position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1rem; border-radius: var(--r-ctl); background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); font-size: .925rem; color: var(--ink-2);
}
.hero-drop-over { position: absolute; inset: 10px; display: grid; place-items: center; border: 2px dashed var(--accent); border-radius: calc(var(--r-card) - 4px); background: color-mix(in oklab, var(--surface) 75%, transparent); opacity: 0; pointer-events: none; transition: opacity .2s; }
.hero-drop-over span { display: inline-flex; align-items: center; gap: .5rem; font-weight: 650; font-size: 1.15rem; }
.hero-stage.is-over .hero-drop-over { opacity: 1; }
@media (max-width: 560px) {
  .hero-drop-hint { left: 10px; right: 10px; bottom: 10px; padding: .5rem .75rem; font-size: .85rem; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-stage { aspect-ratio: 4 / 3.4; }
  .hero-copy h1 { max-width: 13ch; }
}

/* ---------- facts strip ---------- */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0 auto; padding-block: 1.4rem; }
.facts-list li { display: flex; align-items: flex-start; gap: .85rem; padding: .25rem 1.25rem; border-left: 1px solid var(--line); }
.facts-list li:first-child { border-left: 0; padding-left: 0; }
.facts-list .icon { width: 26px; height: 26px; color: var(--accent-text); margin-top: .1rem; }
.facts-list strong { display: block; font-weight: 650; font-size: .98rem; letter-spacing: -.01em; }
.facts-list span { display: block; color: var(--muted); font-size: .875rem; line-height: 1.4; }
@media (max-width: 900px) {
  .facts-list { grid-template-columns: 1fr 1fr; row-gap: 1.25rem; }
  .facts-list li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) {
  .facts-list { grid-template-columns: 1fr; }
  .facts-list li { border-left: 0; padding-left: 0; }
}

/* ---------- sections ---------- */
.site-main > section h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); letter-spacing: -.035em; line-height: 1.06; }
.section-head { margin-bottom: 2.25rem; max-width: 40rem; }
.section-link { margin: 1.75rem 0 0; }

.how { padding: clamp(4rem, 9vw, 7rem) 0; }
.how-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.how-media { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); }
.how-media img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1.75rem; }
.steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.step-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-ctl); background: var(--surface); border: 1px solid var(--line); color: var(--accent-text); }
.step-icon .icon { width: 24px; height: 24px; }
.steps h3 { font-size: 1.2rem; letter-spacing: -.015em; margin-top: .2rem; }
.steps p { margin: .35rem 0 0; color: var(--muted); max-width: 46ch; }
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-media { aspect-ratio: 16 / 10; }
}

/* ---------- materials bento ---------- */
.materials { padding: clamp(4rem, 8vw, 6rem) 0; background: var(--surface); border-block: 1px solid var(--line); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(200px, auto)); grid-auto-rows: auto; gap: 12px; }
.tile {
  position: relative; display: flex; overflow: hidden; border-radius: var(--r-card); text-decoration: none; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--ease);
}
.tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tile-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .3rem; padding: 1.35rem; width: 100%; }
.tile-name { font-size: 1.55rem; font-weight: 680; letter-spacing: -.035em; line-height: 1.1; }
.tile-tag { color: var(--muted); font-size: .95rem; }
.tile-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; }
.tile-heat { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.tile-colors { display: inline-flex; }
.tile-colors i { width: 16px; height: 16px; margin-left: -4px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 2px var(--bg), inset 0 0 0 1px rgb(0 0 0 / .12); }
.tile-hero { grid-column: span 2; grid-row: span 2; min-height: 420px; color: #f4f4f5; border-color: transparent; background: #1b1b1e; }
.tile-photo { position: absolute; inset: 0; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile-hero:hover .tile-photo img { transform: scale(1.03); }
.tile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 10 12 / 0) 35%, rgb(10 10 12 / .82) 100%); }
.tile-hero .tile-name { font-size: clamp(2rem, 3.6vw, 3rem); }
.tile-hero .tile-tag, .tile-hero .tile-heat { color: rgb(244 244 245 / .82); }
.tile-hero .tile-colors i { box-shadow: 0 0 0 2px #1b1b1e, inset 0 0 0 1px rgb(255 255 255 / .15); }
.tile-stripes { background: repeating-linear-gradient(-55deg, var(--bg) 0 10px, var(--surface-2) 10px 11px); }
.tile-accent { background: color-mix(in oklab, var(--accent) 14%, var(--bg)); border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); }
.tile-accent .tile-colors i { box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 14%, var(--bg)), inset 0 0 0 1px rgb(0 0 0 / .12); }
.tile-row { grid-column: span var(--span, 1); min-height: 0; }
.tile-row .tile-body { flex-direction: row; align-items: center; flex-wrap: wrap; gap: .25rem 1.25rem; padding-block: 1.1rem; }
.tile-row .tile-meta { margin: 0 0 0 auto; padding: 0; }
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(180px, auto); }
  .tile-row { min-height: 0; }
  .tile-hero { grid-column: span 2; grid-row: auto; min-height: 340px; }
  .tile-row { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile-hero, .tile-row { grid-column: auto; }
  .tile { min-height: 168px; }
  .tile-row .tile-body { flex-direction: column; align-items: flex-start; }
  .tile-row .tile-meta { margin: 0; padding-top: 1rem; width: 100%; }
}

/* ---------- pricing ---------- */
.pricing { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.price-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.price-copy p { color: var(--muted); max-width: 44ch; margin: 1rem 0 0; }
.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .6rem; }
.checks li { display: flex; align-items: center; gap: .65rem; font-weight: 500; }
.checks .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: color-mix(in oklab, var(--accent) 18%, transparent); color: var(--accent-text); }
.estimator { padding: 1.5rem; border-radius: var(--r-card); background: var(--bg); border: 1px solid var(--line); }
.est-group { border: 0; margin: 0 0 1.4rem; padding: 0; }
.est-group legend, .est-label { display: flex; justify-content: space-between; width: 100%; margin-bottom: .6rem; padding: 0; font-weight: 600; font-size: .9rem; }
.est-label output { font-family: var(--mono); font-weight: 500; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 3px; border-radius: var(--r-ctl); background: var(--surface-2); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 40px; padding: 0 .4rem; border-radius: calc(var(--r-ctl) - 3px); font-size: .9rem; font-weight: 600; white-space: nowrap; transition: background-color .15s; }
.seg input:checked + span { background: var(--surface); box-shadow: 0 1px 2px rgb(20 20 24 / .12), 0 0 0 1px var(--line); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; margin: 0; }
.est-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); font-family: var(--mono); }
.est-out { display: grid; gap: .2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.est-label-sm { font-size: .85rem; color: var(--muted); }
.est-out strong { font-family: var(--mono); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.est-note { font-size: .82rem; color: var(--muted); }
@media (max-width: 900px) { .price-panel { grid-template-columns: 1fr; } }

/* ---------- business ---------- */
.business { padding: 0 0 clamp(4rem, 8vw, 6.5rem); }
.business-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.business-copy > p:not(.eyebrow) { color: var(--muted); margin: 1rem 0 0; max-width: 46ch; }
.business-copy .btn { margin-top: 2rem; }
.business-media { margin: 0; aspect-ratio: 5 / 4; border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); }
.business-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .business-grid { grid-template-columns: 1fr; }
  .business-media { order: -1; aspect-ratio: 16 / 10; }
}

/* ---------- faq ---------- */
.faq { padding: clamp(4rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-head p { margin: 1rem 0 0; }
@media (min-width: 901px) { .faq-head { position: sticky; top: calc(var(--header-h) + 2rem); } }
.faq-list details, .entry-content details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary, .entry-content summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.06rem; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker, .entry-content summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 20px; height: 20px; color: var(--muted); transition: transform .25s var(--ease); }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list details p { margin: 0 0 1.25rem; color: var(--muted); max-width: 60ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- cta band ---------- */
.cta-band { padding: 0 0 clamp(3rem, 6vw, 5rem); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--r-card); background: var(--accent); color: var(--accent-ink); }
.cta-inner h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
.cta-inner p { margin: .5rem 0 0; font-size: 1.05rem; opacity: .85; }
@media (max-width: 760px) { .cta-inner { flex-direction: column; align-items: flex-start; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-top: 3.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-brand p { color: var(--muted); max-width: 36ch; margin: 1rem 0; }
.footer-mail { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 550; text-decoration: none; }
.footer-mail:hover span { text-decoration: underline; }
.footer-col h2 { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { text-decoration: none; color: var(--ink-2); }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-block: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- pages ---------- */
.page-header { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.25rem); }
.page-header-compact { padding-bottom: 1.5rem; }
.page-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.04em; line-height: 1.04; max-width: 20ch; }
.page-lede { margin: 1rem 0 0; font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.entry-content { padding-bottom: clamp(3rem, 7vw, 6rem); }
.page-narrow .entry-content { max-width: 760px; }
.entry-content.is-full, .entry-content.is-shop { max-width: none; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.2em; letter-spacing: -.03em; }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.8em; }
.entry-content p, .entry-content li { color: var(--ink-2); }
.entry-content a:not(.btn):not(.tdv-btn):not(.button) { color: var(--accent-text); text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; }
.entry-content li + li { margin-top: .35em; }
.entry-content summary { font-size: 1.05rem; }
.entry-content summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); flex: none; }
.entry-content details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.entry-content details > *:not(summary) { margin: 0 0 1.2rem; color: var(--muted); }
.entry-content .wp-block-details + .wp-block-details { margin-top: 0; }
.entry-content table:not(.shop_table):not(.tdv-compare) { width: 100%; border-collapse: collapse; }
.entry-content table:not(.shop_table):not(.tdv-compare) td, .entry-content table:not(.shop_table):not(.tdv-compare) th { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.entry-content .wp-block-columns { gap: 2rem; }
.entry-content .wp-block-group.is-card, .info-card { padding: 1.5rem; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }

.empty-state { display: grid; justify-items: start; gap: 1rem; padding: clamp(3rem, 10vw, 7rem) 0; }
.empty-state h1, .empty-state h2 { font-size: clamp(2rem, 4vw, 3rem); }
.empty-state p { margin: 0; color: var(--muted); max-width: 46ch; }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 2rem; padding-bottom: 4rem; }
.post-card h2 { font-size: 1.3rem; margin: .25rem 0 .5rem; }
.post-card h2 a { text-decoration: none; }
.post-card p { color: var(--muted); margin: 0; }
.post-thumb img { border-radius: var(--r-card); aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 1rem; }
.post-date { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin: 0; }

/* ---------- WooCommerce (classic cart, checkout, account) ---------- */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce .button.alt, .woocommerce button.button.alt, .woocommerce a.button.alt {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.15rem; border-radius: var(--r-ctl);
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); font: inherit; font-weight: 600; font-size: .95rem; line-height: 1; transition: background-color .2s, transform .15s var(--ease);
}
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover { background: var(--line); color: var(--ink); }
.woocommerce .button.alt, .woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce a.checkout-button, .woocommerce #place_order {
  background: var(--accent); color: var(--accent-ink); border-color: transparent;
}
.woocommerce .button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover, .woocommerce #place_order:hover { background: color-mix(in oklab, var(--accent) 86%, var(--ink)); color: var(--accent-ink); }
.woocommerce .button:active { transform: translateY(1px); }
.woocommerce a.checkout-button { min-height: 52px; font-size: 1.05rem; }
.woocommerce .button:disabled, .woocommerce .button.disabled { opacity: .5; }
.woocommerce .quantity .qty { width: 4.5em; min-height: 40px; border-radius: var(--r-ctl); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-align: center; font-family: var(--mono); }

.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); padding: 1rem 1.25rem 1rem 3rem; list-style: none;
}
.woocommerce-error { border-left-color: var(--err); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent-text); }
.woocommerce-error::before { color: var(--err); }
.woocommerce-message .button, .woocommerce-info .button { min-height: 36px; }

.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); border-collapse: separate; overflow: hidden; margin-bottom: 2rem; }
.woocommerce table.shop_table th { font-size: .8rem; font-weight: 600; color: var(--muted); padding: 1rem 1.1rem; }
.woocommerce table.shop_table td { border-top: 1px solid var(--line); padding: 1rem 1.1rem; vertical-align: middle; }
.woocommerce table.shop_table td.product-thumbnail img, .woocommerce table.shop_table .tdv-thumb { width: 72px; height: 72px; border-radius: var(--r-ctl); background: var(--surface-2); object-fit: contain; }
.woocommerce table.shop_table .tdv-line-name { display: block; margin-bottom: .35rem; }
.woocommerce table.shop_table td.product-price, .woocommerce table.shop_table td.product-subtotal, .woocommerce table.shop_table .amount { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.woocommerce td.product-name dl.variation { display: grid; grid-template-columns: auto 1fr; gap: .1rem .75rem; margin: .35rem 0 0; font-size: .85rem; color: var(--muted); }
.woocommerce td.product-name dl.variation dt { font-weight: 500; margin: 0; float: none; clear: none; }
.woocommerce td.product-name dl.variation dd { margin: 0; float: none; padding: 0; }
.woocommerce td.product-name dl.variation dd p { margin: 0; }
.woocommerce a.remove { color: var(--muted) !important; border-radius: 50%; }
.woocommerce a.remove:hover { background: var(--err); color: #fff !important; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { width: 100%; max-width: 460px; }
.woocommerce .cart-collaterals { display: flex; justify-content: flex-end; }
.woocommerce-cart .cart-collaterals .cart_totals tr td, .woocommerce-cart .cart-collaterals .cart_totals tr th { border-top-color: var(--line); }
.woocommerce .wc-proceed-to-checkout a.checkout-button { display: flex; width: 100%; margin-bottom: 0; }
.woocommerce table.cart td.actions .coupon .input-text { width: 170px; }
.woocommerce .includes_tax, .woocommerce .includes_tax .amount { font-size: .8rem; font-weight: 400; color: var(--muted); }
.cart_totals h2, #order_review_heading, .woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3, .woocommerce-order h2, .woocommerce-column__title { font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: 1rem; }
.woocommerce table.shop_table tfoot th, .woocommerce .cart_totals th { color: var(--ink); font-size: .95rem; }
.woocommerce .order-total .amount { font-size: 1.25rem; font-weight: 650; }
.woocommerce ul#shipping_method li { margin-bottom: .4rem; }
.woocommerce-shipping-destination, .woocommerce-shipping-calculator { font-size: .875rem; color: var(--muted); }
.woocommerce .coupon .input-text, .woocommerce form .form-row .input-text, .woocommerce form .form-row select, .woocommerce-page form .form-row .input-text, .select2-container .select2-selection--single, .woocommerce form .form-row textarea {
  min-height: 46px; padding: .65rem .85rem; border-radius: var(--r-ctl); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: .975rem;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ink); line-height: 26px; padding-left: 0; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }
.select2-dropdown { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--accent); color: var(--accent-ink); }
.select2-search--dropdown .select2-search__field { background: var(--bg); color: var(--ink); border-color: var(--line-2); }
.woocommerce form .form-row .input-text:focus, .woocommerce form .form-row select:focus, .woocommerce form .form-row textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.woocommerce form .form-row label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; line-height: 1.4; }
.woocommerce form .form-row .required { color: var(--err); text-decoration: none; }
.woocommerce form .form-row { margin-bottom: 1rem; padding: 0; }
.woocommerce-checkout #customer_details { margin-bottom: 2rem; }
@media (min-width: 1024px) {
  .woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 3rem; align-items: start; }
  .woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
  .woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
  .woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { width: 100%; float: none; }
  .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 2; }
  .woocommerce-checkout #order_review { position: sticky; top: calc(var(--header-h) + 16px); }
}
.woocommerce-checkout #order_review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.25rem; }
.woocommerce-checkout #order_review table.shop_table { border: 0; background: transparent; margin-bottom: 1rem; }
.woocommerce-checkout #order_review table.shop_table th, .woocommerce-checkout #order_review table.shop_table td { padding: .7rem 0; }
#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment { background: var(--bg); border-radius: var(--r-card); border: 1px solid var(--line); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--line); }
.woocommerce-checkout #payment div.payment_box { background: var(--surface-2); color: var(--ink-2); border-radius: var(--r-ctl); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--surface-2); }
.woocommerce-terms-and-conditions-wrapper { font-size: .875rem; color: var(--muted); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 2rem; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.woocommerce-account .woocommerce-MyAccount-navigation li + li { border-top: 1px solid var(--line); }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: .8rem 1.1rem; text-decoration: none; color: var(--ink-2); }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { color: var(--ink); font-weight: 650; background: var(--surface-2); }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.checkout_coupon { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: 1.5rem; }
.woocommerce-cart .cart-empty { font-size: 1.1rem; }
.woocommerce .return-to-shop .button { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.woocommerce-order-overview { padding: 1.25rem !important; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.woocommerce ul.order_details li { border-right-color: var(--line); }
@media (max-width: 768px) {
  .woocommerce table.shop_table_responsive tr td, .woocommerce-page table.shop_table_responsive tr td { padding: .6rem 1rem; }
  .woocommerce table.shop_table_responsive tr, .woocommerce-page table.shop_table_responsive tr { border-top: 1px solid var(--line); }
  .woocommerce table.shop_table_responsive tr:nth-child(2n) td { background: transparent; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-hero > * { animation: rise .9s var(--ease) both; }
  .reveal-hero > *:nth-child(2) { animation-delay: .08s; }
  .reveal-hero > *:nth-child(3) { animation-delay: .16s; }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
