/* ════════════════════════════════════════════
   TIMBR — Timber & Ash design system
   ════════════════════════════════════════════ */

/* ---- tokens ---- */
:root,
:root[data-theme="light"] {
  --ivory:      #F1ECE0;   /* ground */
  --paper:      #FAF6EC;   /* surface */
  --ink:        #201C16;   /* primary text */
  --ink-soft:   #38322A;
  --muted:      #6B6357;   /* secondary text */
  --line:       #DBD2C2;   /* hairlines */
  --line-soft:  #E6DFD1;
  --oak:        #B4763F;   /* accent */
  --oak-deep:   #935A2C;   /* accent hover / pressed */
  --walnut:     #1D1710;   /* dark section ground */
  --walnut-ink: #F0EADE;
  --walnut-mut: #AC9C84;
  --walnut-line:#3A3020;
  --on-oak:     #FBF7EF;
  --grain:      .09;

  --shadow-sm: 0 1px 2px rgba(33,28,22,.05);
  --shadow-md: 0 24px 60px -34px rgba(33,28,22,.45);

  --f-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --f-body:    "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "Consolas", monospace;

  --maxw: 1220px;
  --pad:  clamp(20px, 5vw, 64px);
  --nav-h: 72px;
}

:root[data-theme="dark"] {
  --ivory:      #17130C;
  --paper:      #221D14;
  --ink:        #F0EADE;
  --ink-soft:   #D9D2C4;
  --muted:      #A09684;
  --line:       #332C20;
  --line-soft:  #2A2419;
  --oak:        #D0975F;
  --oak-deep:   #E4AE78;
  --walnut:     #0F0C07;
  --walnut-ink: #F0EADE;
  --walnut-mut: #978B76;
  --walnut-line:#2B2418;
  --on-oak:     #17130C;
  --grain:      .06;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 30px 70px -34px rgba(0,0,0,.8);
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; border-radius: 2px; }

/* ---- paper grain (tactile warmth) — plain opacity, no blend, so it never janks scroll ---- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 3; pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }

/* ---- shared type ---- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 11px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--oak); }
.eyebrow--onDark { color: var(--walnut-mut); }

.section-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.4vw, 3.1rem);
  line-height: 1.05; letter-spacing: -.02em;
  text-wrap: balance; max-width: 20ch;
}
.section-lede {
  color: var(--muted); max-width: 54ch;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .05em;
  padding: 14px 22px; border-radius: 3px;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  will-change: transform;
}
.btn--solid { background: var(--oak); color: var(--on-oak); }
.btn--solid:hover { background: var(--oak-deep); transform: translateY(-2px); }
.btn--ghost { color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--oak); color: var(--oak); transform: translateY(-2px); }

/* ════ NAV ════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 0 var(--pad);
  background: color-mix(in srgb, var(--ivory) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.brand { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand-mark { font-family: var(--f-body); font-weight: 500; font-size: 25px; letter-spacing: -.01em; }
.brand-mark .dot { color: var(--oak); }
.brand-sub { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em;
  color: var(--ink-soft); position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--oak); transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 14px; }
/* theme toggle — animated sun/moon, no border (Uiverse.io by Type-Delta) */
.themeToggle { color: var(--muted); width: 24px; height: 24px; display: inline-block; margin-right: 8px; transition: color .25s; }
.st-sunMoonThemeToggleBtn { position: relative; cursor: pointer; }
.st-sunMoonThemeToggleBtn:hover { color: var(--oak); }
.st-sunMoonThemeToggleBtn .themeToggleInput { opacity: 0; width: 100%; aspect-ratio: 1; margin: 0; cursor: pointer; }
.st-sunMoonThemeToggleBtn svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transition: transform .4s ease; transform: rotate(40deg); }
.st-sunMoonThemeToggleBtn svg .sunMoon { transform-origin: center center; transition: inherit; transform: scale(1); }
.st-sunMoonThemeToggleBtn svg .sunRay { transform-origin: center center; transform: scale(0); }
.st-sunMoonThemeToggleBtn svg mask > circle { transition: transform .64s cubic-bezier(.41,.64,.32,1.575); transform: translate(0px, 0px); }
.st-sunMoonThemeToggleBtn svg .sunRay2 { animation-delay: .05s !important; }
.st-sunMoonThemeToggleBtn svg .sunRay3 { animation-delay: .1s !important; }
.st-sunMoonThemeToggleBtn svg .sunRay4 { animation-delay: .17s !important; }
.st-sunMoonThemeToggleBtn svg .sunRay5 { animation-delay: .25s !important; }
.st-sunMoonThemeToggleBtn .themeToggleInput:checked + svg { transform: rotate(90deg); }
.st-sunMoonThemeToggleBtn .themeToggleInput:checked + svg mask > circle { transform: translate(16px, -3px); }
.st-sunMoonThemeToggleBtn .themeToggleInput:checked + svg .sunMoon { transform: scale(.55); }
.st-sunMoonThemeToggleBtn .themeToggleInput:checked + svg .sunRay { animation: showRay1832 .4s ease 0s 1 forwards; }
@keyframes showRay1832 { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .st-sunMoonThemeToggleBtn svg, .st-sunMoonThemeToggleBtn svg * { transition: none !important; animation: none !important; } }

.hamburger { display: none; width: 40px; height: 40px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.hamburger span { width: 20px; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
.hamburger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 55;
  background: var(--paper); border-bottom: 1px solid var(--line);
  display: none; flex-direction: column; padding: 18px var(--pad) 28px; gap: 6px;
  box-shadow: var(--shadow-md);
}
.drawer:not([hidden]) { display: flex; }
.drawer a { font-family: var(--f-mono); font-size: 15px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.drawer .btn { margin-top: 14px; border-bottom: 0; }

/* ════ HERO (full-bleed) ════ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media-full { position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120% 100% at 62% 45%, #4a3320 0%, #241810 55%, #140d07 88%); }
.hero-media-full img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-full::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20,14,8,.5) 0%, rgba(20,14,8,.14) 20%, rgba(20,14,8,.32) 50%, rgba(20,14,8,.64) 74%, rgba(20,14,8,.93) 100%),
    linear-gradient(90deg, rgba(20,14,8,.76) 0%, rgba(20,14,8,.36) 42%, rgba(20,14,8,.1) 66%, rgba(20,14,8,.5) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) clamp(54px, 8vw, 108px); }
.hero-copy { max-width: 62%; }
.hero .eyebrow--onDark { color: rgba(245,241,234,.82); }
.hero-title {
  font-family: var(--f-display); font-weight: 700; color: #F6F2EA;
  font-size: clamp(2.9rem, 8vw, 6rem);
  line-height: .98; letter-spacing: -.03em; margin: 22px 0 24px;
  text-shadow: 0 2px 34px rgba(12,8,3,.5), 0 1px 4px rgba(12,8,3,.35);
}
.hero-title .line { display: block; }
.hero-title .line--accent { color: var(--oak); font-weight: 800; }
.hero-lede { color: rgba(245,241,234,.84); max-width: 44ch; font-size: clamp(1.02rem, 1.5vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn--onDark { color: #F6F2EA; border-color: rgba(246,242,234,.42); }
.btn--onDark:hover { color: #F6F2EA; border-color: #F6F2EA; }
.hero-index {
  position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 2;
  list-style: none; display: flex; flex-direction: column; gap: 16px; text-align: right;
  color: rgba(246,242,234,.94); font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  text-shadow: 0 1px 16px rgba(16,10,5,.9);
}
.hero-index li { display: flex; gap: 10px; align-items: baseline; justify-content: flex-end; }
.hero-index span { color: var(--oak); font-weight: 500; }
.hero-repr {
  position: absolute; right: var(--pad); bottom: 14px; z-index: 2;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: rgba(245,241,234,.58);
}

/* marquee */
.marquee { margin-top: 0; border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; }
.marquee-track {
  display: flex; align-items: center; gap: 26px; width: max-content;
  font-family: var(--f-display); font-size: clamp(1.1rem, 2vw, 1.7rem); font-weight: 500;
  animation: marquee 42s linear infinite;
}
.marquee-track .sep { color: var(--oak); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ════ generic section ════ */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 6.5vw, 72px) var(--pad); }
.section.why { padding-top: clamp(30px, 4vw, 60px); padding-bottom: clamp(32px, 4.2vw, 46px); }
.section.materials { padding-top: clamp(32px, 4.2vw, 46px); }
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(30px, 4.5vw, 52px); }

/* what we do */
.what-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.what-card { padding: 32px 26px 40px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; transition: background .3s; }
.what-card:nth-child(4n) { border-right: 0; }
.what-card:hover { background: var(--paper); }
.what-idx { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.01em; }
.what-card p { color: var(--muted); font-size: .98rem; }

/* ════ CATEGORIES ════ */
.cats { padding: clamp(38px, 5vw, 52px) 0 clamp(58px, 8vw, 94px); overflow: hidden; }
.cats-head { max-width: var(--maxw); margin: 0 auto 34px; padding: 0 var(--pad); display: flex; flex-direction: column; gap: 16px; }
.cats-viewport {
  width: 100%; overflow-x: auto; scroll-snap-type: none;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.cats-viewport::-webkit-scrollbar { display: none; }
.cats-track {
  display: flex; gap: 20px; padding: 0 var(--pad);
  width: max-content; will-change: transform;
}
.cat-card {
  position: relative; flex: 0 0 auto; width: clamp(240px, 30vw, 340px); aspect-ratio: 3 / 4;
  border-radius: 6px; overflow: hidden; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px; color: #F5F1EA; isolation: isolate; cursor: pointer;
}
.cat-card::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--img) center/cover no-repeat; transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.cat-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,15,10,.15) 0%, rgba(20,15,10,.72) 100%);
}
.cat-card:hover::before { transform: scale(1.06); }
.cat-no { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; opacity: .85; }
.cat-name { font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -.01em; }
.cats-hint { max-width: var(--maxw); margin: 26px auto 0; padding: 0 var(--pad); font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ════ MANUFACTURING (dark) ════ */
.mfg { position: relative; overflow: hidden; background: var(--walnut); color: var(--walnut-ink); padding: clamp(38px, 5.2vw, 55px) var(--pad); }
.mfg::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("assets/mfg-bg.jpg") center/cover no-repeat;
  opacity: .07; mix-blend-mode: luminosity;
}
.mfg::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 70% at 12% -5%, rgba(196,138,74,.20), transparent 62%),
    radial-gradient(50% 60% at 100% 108%, rgba(150,90,40,.16), transparent 60%);
}
.mfg > * { position: relative; z-index: 1; }
.mfg-head { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.mfg-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.03; letter-spacing: -.025em; max-width: 16ch; text-wrap: balance; }
.mfg-lede { color: var(--walnut-mut); max-width: 56ch; font-size: clamp(1rem, 1.4vw, 1.14rem); }

.process { list-style: none; max-width: var(--maxw); margin: clamp(32px, 5vw, 56px) auto 0; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; padding-top: 34px; }
.process-line { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--walnut-line); overflow: hidden; border-radius: 2px; }
.process-line-fg { display: block; height: 100%; width: 100%; background: var(--oak); transform: scaleX(0); transform-origin: left center; transition: transform 1.4s cubic-bezier(.4,0,.2,1); }
.process.drawn .process-line-fg { transform: scaleX(1); }
.step { display: flex; flex-direction: column; gap: 10px; position: relative; }
.step::before { content: ""; position: absolute; top: -34px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--walnut); border: 2px solid var(--oak); transform: translateY(-3.5px); }
.step-no { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--oak); }
.step-name { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; }
.step-desc { color: var(--walnut-mut); font-size: .92rem; }

/* ════ WHY ════ */
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.feature { padding: 40px 36px 14px 36px; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.feature:first-child { padding-left: 0; }
.feature:last-child { border-right: 0; padding-right: 0; }
.feature-ico { width: 50px; height: 50px; flex: none; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; color: var(--oak); background: var(--paper); transition: border-color .3s, color .3s; }
.feature:hover .feature-ico { border-color: var(--oak); }
.feature-ico svg { width: 24px; height: 24px; }
.feature-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.05rem, 1.35vw, 1.26rem); line-height: 1.15; letter-spacing: -.01em; min-height: 2.3em; margin: 0; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ════ TOPOGRAPHIC BRAND BAND ════ */
.statement { position: relative; overflow: hidden; isolation: isolate; color: var(--walnut-ink); padding: clamp(96px, 12vw, 148px) var(--pad);
  background:
    linear-gradient(180deg, rgba(16,15,13,.30), rgba(16,15,13,.48)),
    url('assets/topo2.jpg') center/cover no-repeat,
    #201e1b; }
.statement .hatch { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .1; background-image: repeating-linear-gradient(45deg, transparent 0 7px, rgba(0,0,0,.5) 7px 8px); }
.statement::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 72% 56% at 50% 47%, rgba(13,12,10,.50), transparent 72%); }
.statement-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.statement-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.statement-lede { color: var(--walnut-ink); opacity: .82; max-width: 52ch; font-size: clamp(1rem, 1.5vw, 1.18rem); }

/* ════ SHOP ════ */
.shop { max-width: var(--maxw); margin: 0 auto; padding: clamp(32px, 4.4vw, 48px) var(--pad); }
.shop-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.shop-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.shop-list { border-top: 1px solid var(--line); }
.shop-row { display: flex; align-items: center; justify-content: space-between; padding: 22px 4px; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: clamp(1.2rem, 2.3vw, 1.7rem); font-weight: 500; letter-spacing: -.01em; transition: padding-left .3s; }
.shop-row:hover { padding-left: 14px; }
.shop-soon { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; }

/* ════ CTA / CONTACT ════ */
.cta { background: var(--paper); border-top: 1px solid var(--line); }
.cta-inner { max-width: 960px; margin: 0 auto; padding: clamp(48px, 6.5vw, 72px) var(--pad) clamp(26px, 3.6vw, 38px); display: flex; flex-direction: column; gap: 18px; }
.cta-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.1rem, 5.6vw, 4rem); line-height: 1.0; letter-spacing: -.03em; max-width: 16ch; text-wrap: balance; }
.cta-lede { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }

.cta-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin-top: 4px; }
.cta-form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.cta-or { font-size: .92rem; color: var(--muted); }
.cta-or a { color: var(--oak); border-bottom: 1px solid currentColor; }
.form-note { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 13px; color: var(--oak); min-height: 1em; }

/* ---- wave-group floating-label fields (Uiverse.io by AbanoubMagdy1) ---- */
.wave-group { position: relative; padding-top: 10px; }
.wave-group--full { grid-column: 1 / -1; }
.wave-group .input {
  font-family: var(--f-body); font-size: 16px; padding: 10px 4px; display: block; width: 100%;
  border: none; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 0;
}
.wave-group .input:focus { outline: none; }
.wave-group .textarea { resize: vertical; min-height: 62px; }
.wave-group .select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23B4763F' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.wave-group .select option { color: #201C16; }
.wave-group .label {
  color: var(--muted); font-size: 16px; font-weight: normal; position: absolute;
  pointer-events: none; left: 4px; top: 20px; display: flex; font-family: var(--f-body);
}
.wave-group .label-char { transition: .2s ease all; transition-delay: calc(var(--index) * .05s); white-space: pre; }
.wave-group .input:focus ~ label .label-char,
.wave-group .input:not(:placeholder-shown) ~ label .label-char,
.wave-group .select:valid ~ label .label-char {
  transform: translateY(-20px); font-size: 12px; color: var(--oak);
}
.wave-group .bar { position: relative; display: block; width: 100%; }
.wave-group .bar::before, .wave-group .bar::after {
  content: ''; height: 2px; width: 0; bottom: 1px; position: absolute; background: var(--oak); transition: .2s ease all;
}
.wave-group .bar::before { left: 50%; }
.wave-group .bar::after { right: 50%; }
.wave-group .input:focus ~ .bar::before,
.wave-group .input:focus ~ .bar::after { width: 50%; }

/* ---- send button (Uiverse.io by adamgiebl) ---- */
.btn-send {
  font-family: inherit; font-size: 18px; background: var(--oak); color: var(--on-oak);
  padding: 0.7em 1em; padding-left: 0.9em; display: flex; align-items: center;
  border: none; border-radius: 14px; overflow: hidden; transition: all 0.2s; cursor: pointer;
}
.btn-send span { display: block; margin-left: 0.3em; transition: all 0.3s ease-in-out; }
.btn-send svg { display: block; transform-origin: center center; transition: transform 0.3s ease-in-out; }
.btn-send:hover { background: var(--oak-deep); }
.btn-send:hover .svg-wrapper { animation: fly-1 0.6s ease-in-out infinite alternate; }
.btn-send:hover svg { transform: translateX(1.2em) rotate(45deg) scale(1.1); }
.btn-send:hover span { transform: translateX(5em); }
.btn-send:active { transform: scale(0.95); }
@keyframes fly-1 { from { transform: translateY(0.1em); } to { transform: translateY(-0.1em); } }

/* ---- back to top (Uiverse.io by vinodjangid07) ---- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 50px; height: 50px; border-radius: 50%; background-color: var(--oak); border: none;
  font-weight: 600; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.55), 0 0 0 4px color-mix(in srgb, var(--oak) 24%, transparent);
  cursor: pointer; overflow: hidden;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: width .3s, border-radius .3s, background-color .3s, opacity .35s, transform .35s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.svgIcon { width: 12px; transition-duration: .3s; }
.svgIcon path { fill: var(--on-oak); }
.to-top:hover { width: 140px; border-radius: 50px; background-color: var(--oak-deep); }
.to-top:hover .svgIcon { transition-duration: .3s; transform: translateY(-200%); }
.to-top::before { position: absolute; bottom: -20px; content: "Back to top"; color: var(--on-oak); font-family: var(--f-mono); font-size: 0px; letter-spacing: .05em; }
.to-top:hover::before { font-size: 12px; opacity: 1; bottom: unset; transition-duration: .3s; }

/* ════ FOOTER ════ */
.footer { background: var(--walnut); color: var(--walnut-ink); padding: clamp(44px, 5.5vw, 64px) var(--pad) 24px; }
.footer-top { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid var(--walnut-line); }
.footer-brand .brand-mark { font-size: 30px; }
.footer-tag { color: var(--walnut-mut); margin-top: 16px; font-size: .95rem; line-height: 1.7; }
.footer-cols { display: flex; gap: clamp(40px, 8vw, 96px); }
.footer-h { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--walnut-mut); margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--walnut-ink); font-size: .96rem; width: fit-content; transition: color .2s; }
.footer-col a:hover { color: var(--oak); }
.footer-bottom { max-width: var(--maxw); margin: 24px auto 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--walnut-mut); }

/* ════ reveal animation base ════ */
[data-reveal] { opacity: 0; transform: translateY(22px); }
.is-ready [data-reveal] { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ════ theme-change circular wipe (View Transitions) ════ */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 0; }
::view-transition-new(root) { z-index: 1; }

/* ════ FEATURED SPOTLIGHT ════ */
.spotlight { background: var(--paper); border-block: 1px solid var(--line); }
.spotlight-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(52px, 6.2vw, 66px) var(--pad) clamp(56px, 7vw, 80px); }
.spot { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 30px; }
.spot-img { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.spot-img img { width: 100%; height: 100%; object-fit: cover; }
.spot-tag { position: absolute; left: 12px; bottom: 12px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: #F3EFE7; background: rgba(20,16,11,.62); backdrop-filter: blur(4px); padding: 5px 9px; border-radius: 2px; }
.spot-name { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.spot-sub { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--oak); margin: 6px 0 24px; }
.specs { list-style: none; border-top: 1px solid var(--line); margin-bottom: 22px; }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.specs li span:first-child { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.swrow { display: flex; gap: 10px; margin-bottom: 24px; }
.swrow .s { width: 34px; height: 34px; border-radius: 6px; border: 1px solid rgba(0,0,0,.16); }
.spot-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ════ MATERIALS & FINISHES ════ */
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sw { display: flex; flex-direction: column; gap: 10px; }
.sw .chip { aspect-ratio: 1 / 1; border-radius: 8px; border: 1px solid rgba(0,0,0,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.sw:hover .chip { transform: translateY(-5px); box-shadow: 0 18px 34px -18px rgba(0,0,0,.5); }
.sw .nm { font-weight: 600; font-size: .95rem; }
.sw .code { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }

/* ════ FAQ ════ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.qa { border-bottom: 1px solid var(--line); }
.qa-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: clamp(1.05rem, 1.7vw, 1.3rem); letter-spacing: -.01em; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.qa-plus { color: var(--oak); font-family: var(--f-mono); font-size: 1.3em; flex: none; transition: transform .3s; }
.qa.open .qa-plus { transform: rotate(45deg); }
.qa-ans { overflow: hidden; max-height: 0; transition: max-height .38s ease; }
.qa.open .qa-ans { max-height: 260px; }
.qa-ans p { color: var(--muted); padding: 0 0 24px; max-width: 64ch; }

/* ════ RESPONSIVE ════ */
@media (max-width: 1000px) {
  .what-grid { grid-template-columns: repeat(2, 1fr); }
  .what-card:nth-child(4n) { border-right: 1px solid var(--line); }
  .what-card:nth-child(2n) { border-right: 0; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 34px 22px; }
  .process-line { display: none; }
  .step::before { display: none; }
}
@media (min-width: 861px) {
  .drawer { display: none !important; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-copy { max-width: 100%; }
  .hero-index { display: none; }
  .shop-inner { grid-template-columns: 1fr; }
  .spot { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 24px 24px; }
  .feature:nth-child(2n) { border-right: 0; }
  .feature:nth-last-child(-n+2) { border-bottom: 0; }
  .cta-form { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  /* larger touch targets on mobile */
  .footer-col { gap: 2px; }
  .footer-col a { padding: 10px 0; }
  .st-sunMoonThemeToggleBtn .themeToggleInput { position: absolute; inset: -10px; width: auto; height: auto; aspect-ratio: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .what-grid { grid-template-columns: 1fr; }
  .what-card { border-right: 0 !important; }
  .process { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 26px 0; }
  .feature:last-child { border-bottom: 0; }
}

/* ════ reduced motion ════ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .process-line-fg { transform: scaleX(1) !important; }
  html { scroll-behavior: auto; }
}

/* ---- floating WhatsApp button (adapted from Uiverse.io by wilsondesouza) ---- */
.wa-float { position: fixed; left: 22px; bottom: 22px; z-index: 50; }
.wa-float a {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  color: #fff; background-color: #25d366;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.55), 0 0 0 4px color-mix(in srgb, #25d366 22%, transparent);
  transition: transform .3s ease, box-shadow .3s ease;
}
.wa-float a:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(0,0,0,.5), 0 0 0 4px color-mix(in srgb, #25d366 30%, transparent); }
.wa-float a svg { position: relative; z-index: 1; width: 30px; height: 30px; }
.wa-float .wa-filled { position: absolute; left: 0; bottom: 0; width: 100%; height: 0; background-color: #128c7e; transition: height .3s ease-in-out; }
.wa-float a:hover .wa-filled { height: 100%; }
.wa-float .wa-tooltip {
  position: absolute; left: 64px; bottom: 50%; transform: translateY(50%);
  background-color: #128c7e; color: #fff; padding: 6px 10px; border-radius: 6px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; white-space: nowrap;
  opacity: 0; visibility: hidden; transition: opacity .3s ease; pointer-events: none;
}
.wa-float a:hover ~ .wa-tooltip { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .wa-float a, .wa-float .wa-filled { transition: none; }
}
