/* ==========================================================================
   Conscious Timber Co. — Stylesheet
   Design tokens: Deep Walnut / Charcoal / Warm Cream / White / Natural Timber
   Accent: Forest Green. Display: Fraunces. Body: Work Sans. Utility: JetBrains Mono.
   Signature motif: finger-joint (joinery) dividers + wood-grain texture reveals.
   ========================================================================== */

:root{
  /* colour tokens */
  --walnut: #3E2B23;
  --walnut-dark: #2A1C16;
  --charcoal: #211E1B;
  --cream: #F7F2E9;
  --cream-soft: #FBF8F2;
  --white: #FFFFFF;
  --timber: #C89B6C;
  --timber-light: #E4C9A3;
  --forest: #2F4A3C;
  --forest-light: #3F614F;
  --forest-pale: #E4EBE6;
  --line: rgba(33,30,27,0.12);
  --line-light: rgba(255,255,255,0.16);

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* layout */
  --max-w: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 26px;
  --shadow-soft: 0 20px 60px -25px rgba(33,20,10,0.35);
  --shadow-card: 0 12px 30px -14px rgba(33,20,10,0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark){
  :root{ color-scheme: light; }
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
input,select,textarea{ font-family: inherit; font-size: 1rem; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--walnut-dark);
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.4rem, 5vw + 1rem, 4.4rem); font-weight: 500; }
h2{ font-size: clamp(1.9rem, 2.6vw + 1rem, 2.9rem); }
h3{ font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); }
p{ margin: 0 0 1em; }

.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before{
  content: "";
  width: 26px; height: 1px;
  background: var(--timber);
}

.lede{
  font-size: 1.15rem;
  color: rgba(33,30,27,0.72);
  max-width: 620px;
}

/* ---------- Skip link ---------- */
.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--forest); color: var(--white);
  padding: 12px 18px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn:focus-visible{ outline: 3px solid var(--forest); outline-offset: 3px; }
.btn-primary{
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 14px 30px -14px rgba(47,74,60,0.55);
}
.btn-primary:hover{ background: var(--forest-light); transform: translateY(-2px); }
.btn-outline{
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover{ background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-ghost{
  border-color: var(--walnut);
  color: var(--walnut);
}
.btn-ghost:hover{ background: var(--walnut); color: var(--white); }
.btn-block{ width: 100%; }
.btn svg{ width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 500;
  background: transparent;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(247,242,233,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  z-index: -1;
}
.site-header.is-scrolled{ box-shadow: 0 8px 30px -20px rgba(33,20,10,0.5); }
.nav{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--walnut-dark);
  white-space: nowrap;
}
.brand span{ white-space: nowrap; }
.brand .mark{ width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(33,30,27,0.08); }
.brand small{
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--forest);
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a{
  position: relative;
  padding: 6px 0;
  color: var(--charcoal);
}
.nav-links a::after{
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--forest);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after{ right: 0; }
.nav-links a[aria-current="page"]{ color: var(--forest); }
.nav-actions{ display: flex; align-items: center; gap: 14px; }
.nav-toggle{
  display: none;
  background: none; border: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 10px;
}
.nav-toggle:hover{ background: rgba(33,30,27,0.06); }
.nav-toggle svg{ width: 24px; height: 24px; }

@media (max-width: 1260px){
  .nav-links{
    position: fixed; inset: 76px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px var(--gutter) 40px;
    gap: 6px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    overflow-y: auto;
  }
  .nav-links a{ width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-header.nav-open .nav-links{ transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle{ display: inline-flex; }
  .nav-actions .btn span{ display: none; }
  .nav-actions .btn{ padding: 12px 16px; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(180deg, var(--walnut-dark) 0%, var(--walnut) 55%, var(--charcoal) 100%);
}
.hero::before{
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(200,155,108,0.28), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(47,74,60,0.35), transparent 50%);
}
.hero-grain{
  position: absolute; inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-inner{
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 160px var(--gutter) 90px;
  display: grid;
  gap: 30px;
}
.hero .eyebrow{ color: var(--timber-light); }
.hero .eyebrow::before{ background: var(--timber-light); }
.hero h1{ color: var(--white); max-width: 16ch; }
.hero p.lede{ color: rgba(255,255,255,0.82); font-size: 1.2rem; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.hero-meta{
  display: flex; gap: 40px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.2);
  flex-wrap: wrap;
}
.hero-meta div strong{
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--white);
}
.hero-meta div span{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* page (interior) hero — shorter */
.page-hero{
  min-height: 46vh;
  align-items: center;
}
.page-hero .hero-inner{ padding: 150px var(--gutter) 70px; }

/* ---------- Joinery divider (signature element) ---------- */
.joint-divider{
  width: 100%;
  height: 34px;
  display: block;
  color: var(--cream);
}
.joint-divider.on-dark{ color: var(--charcoal); }
.joint-divider path{ fill: currentColor; }
.section-dark + .joint-divider{ transform: scaleY(-1); }

/* ---------- Sections ---------- */
section{ position: relative; }
.section{ padding: 108px 0; }
.section-tight{ padding: 70px 0; }
.section-cream{ background: var(--cream); }
.section-white{ background: var(--white); }
.section-dark{ background: var(--charcoal); color: rgba(255,255,255,0.86); }
.section-dark h2, .section-dark h3{ color: var(--white); }
.section-walnut{ background: var(--walnut); color: rgba(255,255,255,0.88); }
.section-walnut h2, .section-walnut h3{ color: var(--white); }
.section-head{ max-width: 720px; margin-bottom: 56px; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before{ display: none; }
.section-head.center .eyebrow{ justify-content: center; }

/* reveal on scroll */
.reveal{ opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
.reveal-stagger > *{ transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Grid utilities ---------- */
.grid{ display: grid; gap: 30px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){ .grid-3{ grid-template-columns: repeat(2,1fr); } .grid-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

/* ---------- About split ---------- */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
@media (max-width: 900px){ .split{ grid-template-columns: 1fr; gap: 40px; } }
.split.reverse{ direction: rtl; }
.split.reverse > *{ direction: ltr; }

.wood-frame{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-soft);
}
.wood-frame svg{ width: 100%; height: 100%; display: block; }
.wood-frame img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.wood-frame.wide{ aspect-ratio: 16/10; }
.wood-frame.square{ aspect-ratio: 1/1; }
.wood-frame .frame-caption{
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(33,30,27,0.55);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
}

.stat-row{ display: flex; gap: 46px; margin-top: 34px; flex-wrap: wrap; }
.stat-row strong{ display: block; font-family: var(--font-display); font-size: 2.4rem; color: var(--forest); }
.stat-row span{ font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(33,30,27,0.6); }

/* ---------- Cards ---------- */
.card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover{ transform: translateY(-6px); box-shadow: 0 26px 50px -20px rgba(33,20,10,0.35); }
.card .icon{
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--forest-pale);
  color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg{ width: 26px; height: 26px; }
.card h3{ margin-bottom: 10px; }
.card p{ color: rgba(33,30,27,0.68); margin-bottom: 0; font-size: 0.96rem; }

/* Category card w/ image */
.category-card{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease);
}
.category-card:hover{ transform: translateY(-6px); }
.category-card svg{ width: 100%; height: 100%; }
.category-card img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.category-card .cat-label{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 20px 18px;
  background: linear-gradient(0deg, rgba(33,20,14,0.86), transparent);
  color: var(--white);
}
.category-card .cat-label span{
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--timber-light);
  display: block; margin-bottom: 4px;
}
.category-card .cat-label h3{ color: var(--white); font-size: 1.15rem; margin: 0; }

/* ---------- Process timeline ---------- */
.timeline{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}
@media (max-width: 980px){ .timeline{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .timeline{ grid-template-columns: 1fr; } }
.step{
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}
.step .num{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--timber-light);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 14px;
}
.step h3{ color: var(--white); font-size: 1.1rem; }
.step p{ color: rgba(255,255,255,0.68); font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Gallery ---------- */
.filter-bar{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn{
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: all 0.25s var(--ease);
}
.filter-btn:hover{ border-color: var(--forest); }
.filter-btn.is-active{ background: var(--forest); color: var(--white); border-color: var(--forest); }
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px){ .gallery-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .gallery-grid{ grid-template-columns: 1fr; } }
.gallery-item{
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.gallery-item svg{ width: 100%; height: 100%; transition: transform 0.6s var(--ease); }
.gallery-item img{ width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.gallery-item:hover img{ transform: scale(1.06); }
.gallery-item:hover svg{ transform: scale(1.06); }
.gallery-item.is-hidden{ display: none; }
.gallery-item .g-tag{
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.9);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--walnut-dark);
}

/* ---------- Testimonials ---------- */
.testi-track{ position: relative; min-height: 300px; }
.testi-card{
  position: absolute; inset: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 46px 46px 38px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.testi-card.is-active{ opacity: 1; transform: translateY(0); pointer-events: auto; position: relative; }
.stars{ display: flex; gap: 4px; color: var(--timber); margin-bottom: 18px; }
.stars svg{ width: 18px; height: 18px; flex-shrink: 0; }
.testi-card .stars{ display: flex; gap: 4px; color: var(--timber); margin-bottom: 18px; }
.testi-card .stars svg{ width: 18px; height: 18px; }
.testi-card p.quote{ font-family: var(--font-display); font-size: 1.35rem; color: var(--walnut-dark); line-height: 1.4; }
.testi-card .who{ display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.testi-card .avatar{
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--forest-pale); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600;
}
.testi-card .who span{ display: block; font-size: 0.82rem; color: rgba(33,30,27,0.6); }
.testi-dots{ display: flex; gap: 10px; margin-top: 28px; justify-content: center; }
.testi-dots button{
  width: 10px; height: 10px; border-radius: 50%; background: var(--line); border: none; padding: 0;
}
.testi-dots button.is-active{ background: var(--forest); }

/* ---------- Counters strip ---------- */
.counter-strip{
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 30px;
  text-align: center;
}
@media (max-width: 700px){ .counter-strip{ grid-template-columns: repeat(2,1fr); } }
.counter-strip .num{
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  color: var(--white);
}
.counter-strip .label{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* ---------- FAQ accordion ---------- */
.accordion-item{
  border-bottom: 1px solid var(--line);
}
.accordion-trigger{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--walnut-dark);
}
.accordion-trigger svg{ width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.35s var(--ease); color: var(--forest); }
.accordion-item.is-open .accordion-trigger svg{ transform: rotate(45deg); }
.accordion-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.accordion-panel p{ padding: 0 4px 24px; color: rgba(33,30,27,0.68); max-width: 70ch; }

/* ---------- Forms ---------- */
.form-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 52px);
  box-shadow: var(--shadow-soft);
}
.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 700px){ .form-grid{ grid-template-columns: 1fr; } }
.field{ display: flex; flex-direction: column; gap: 8px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size: 0.85rem; font-weight: 600; color: var(--walnut-dark); }
.field .req{ color: var(--forest); }
.field input, .field select, .field textarea{
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--cream-soft);
  color: var(--charcoal);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px var(--forest-pale);
}
.field textarea{ resize: vertical; min-height: 120px; }
.file-drop{
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  padding: 26px;
  text-align: center;
  color: rgba(33,30,27,0.6);
  background: var(--cream-soft);
  font-size: 0.9rem;
}
.file-drop strong{ color: var(--forest); }
.checkline{ display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; color: rgba(33,30,27,0.72); }
.checkline input{ margin-top: 4px; width: 18px; height: 18px; accent-color: var(--forest); flex-shrink: 0; }
.form-note{ font-size: 0.82rem; color: rgba(33,30,27,0.55); margin-top: 14px; }
.form-success{
  display: none;
  text-align: center;
  padding: 60px 20px;
}
.form-success.is-visible{ display: block; }
.form-success .icon-circle{
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--forest-pale); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.form-success .icon-circle svg{ width: 32px; height: 32px; }

/* ---------- Contact ---------- */
.contact-grid{ display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-item{ display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-item .icon{ width: 46px; height: 46px; border-radius: 12px; background: var(--forest-pale); color: var(--forest); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item .icon svg{ width: 22px; height: 22px; }
.map-frame{
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.map-frame iframe{ width: 100%; height: 100%; border: 0; }
.social-row{ display: flex; gap: 12px; margin-top: 20px; }
.social-row a{
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--cream-soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s var(--ease);
}
.social-row a:hover{ background: var(--forest); color: var(--white); border-color: var(--forest); }
.social-row svg{ width: 18px; height: 18px; }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner h2{ color: var(--white); margin-bottom: 6px; }
.cta-banner p{ color: rgba(255,255,255,0.78); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--charcoal);
  color: rgba(255,255,255,0.72);
  padding-top: 80px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand{ display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-bottom: 14px; }
.footer-brand .mark{ width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.footer-col h4{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--timber-light);
  margin-bottom: 18px;
}
.footer-col li{ margin-bottom: 12px; }
.footer-col a:hover{ color: var(--white); }
.footer-legal{
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0 34px; font-size: 0.82rem; flex-wrap: wrap; gap: 14px;
}
.footer-legal .trading-line{ color: rgba(255,255,255,0.5); max-width: 60ch; }
.footer-legal .legal-links{ display: flex; gap: 20px; }

/* ---------- Back to top ---------- */
.back-to-top{
  position: fixed; right: 26px; bottom: 26px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--forest); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 400; border: none;
}
.back-to-top.is-visible{ opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg{ width: 20px; height: 20px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb{ font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.breadcrumb a{ color: rgba(255,255,255,0.8); }
.breadcrumb a:hover{ color: var(--white); }

/* ---------- Legal pages ---------- */
.legal-content h2{ margin-top: 1.6em; }
.legal-content h3{ margin-top: 1.2em; }
.legal-content{ max-width: 780px; }
.legal-content p, .legal-content li{ color: rgba(33,30,27,0.75); }
.legal-content ul{ list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal-content li{ margin-bottom: 6px; }
.updated-badge{ font-family: var(--font-mono); font-size: 0.75rem; color: var(--forest); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Whatsapp float ---------- */
.wa-float{
  position: fixed; left: 26px; bottom: 26px; z-index: 400;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.45);
  animation: wa-bounce 4.2s ease-in-out infinite;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wa-float:hover{ transform: scale(1.08); box-shadow: 0 18px 36px -12px rgba(0,0,0,0.5); animation-play-state: paused; }
.wa-float::before,
.wa-float::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: wa-pulse 2.6s ease-out infinite;
}
.wa-float::after{ animation-delay: 1.3s; }
.wa-float svg{ width: 28px; height: 28px; position: relative; z-index: 1; }

@keyframes wa-pulse{
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes wa-bounce{
  0%, 76%, 100% { transform: translateY(0); }
  82%  { transform: translateY(-9px); }
  88%  { transform: translateY(0); }
  92%  { transform: translateY(-4px); }
  96%  { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce){
  .wa-float{ animation: none; }
  .wa-float::before, .wa-float::after{ animation: none; opacity: 0; }
}

/* ---------- Timber Tumble game ---------- */
.game-wrap{
  display: grid;
  grid-template-columns: auto 260px;
  gap: 34px;
  justify-content: center;
  align-items: flex-start;
}
@media (max-width: 780px){
  .game-wrap{ grid-template-columns: 1fr; justify-items: center; }
}
.game-board-frame{
  position: relative;
  background: var(--charcoal);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.08);
}
#game-canvas{
  display: block;
  border-radius: 6px;
  background: #191714;
}
.game-side{
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 320px;
}
.game-panel{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}
.game-panel h4{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(33,30,27,0.55);
  margin: 0 0 10px;
}
.game-stat-row{ display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.game-stat-row span:first-child{ font-size: 0.85rem; color: rgba(33,30,27,0.6); }
.game-stat-row span:last-child{ font-family: var(--font-display); font-size: 1.4rem; color: var(--walnut-dark); }
#next-canvas{ display: block; margin: 0 auto; background: #191714; border-radius: 6px; }
.game-controls-legend{ font-size: 0.8rem; color: rgba(33,30,27,0.6); line-height: 1.8; }
.game-controls-legend kbd{
  background: var(--cream-soft); border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 7px; font-family: var(--font-mono); font-size: 0.72rem; margin-right: 4px;
}
.game-touch-controls{
  display: none;
  grid-template-columns: repeat(3, 56px);
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}
@media (max-width: 780px){ .game-touch-controls{ display: grid; } }
.game-touch-controls button{
  width: 56px; height: 56px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--white);
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--walnut-dark);
}
.game-touch-controls button:active{ background: var(--cream-soft); transform: translateY(1px); }
.game-overlay{
  position: absolute; inset: 14px;
  background: rgba(33,30,27,0.88);
  border-radius: 6px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 20px;
}
.game-overlay.is-visible{ display: flex; }
.game-overlay h3{ color: var(--white); margin: 0; }
.game-overlay p{ color: rgba(255,255,255,0.7); margin: 0; font-size: 0.9rem; }
.divider-line{ height: 1px; background: var(--line); margin: 60px 0; }
.tag-pill{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--forest-pale); color: var(--forest);
  padding: 6px 14px; border-radius: 999px;
}

/* ---------- Timber Stack game ---------- */
.game-wrap{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}
@media (max-width: 780px){ .game-wrap{ grid-template-columns: 1fr; justify-items: center; } }

.game-board-frame{
  position: relative;
  background: var(--walnut-dark);
  padding: 14px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.08);
}
.game-board-frame canvas{ display: block; border-radius: 6px; }

.game-overlay{
  position: absolute; inset: 14px;
  background: rgba(33,20,14,0.86);
  border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.game-overlay.is-visible{ opacity: 1; pointer-events: auto; }
.game-overlay h3{ color: var(--white); margin-bottom: 8px; font-size: 1.4rem; }
.game-overlay p{ color: rgba(255,255,255,0.75); font-size: 0.9rem; max-width: 32ch; margin-bottom: 18px; }

.game-side{ display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 260px; }
.game-panel{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}
.game-panel h4{
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(33,30,27,0.55); margin-bottom: 12px;
}
.game-stats{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.game-stats div{ text-align: center; }
.game-stats strong{ display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--walnut-dark); }
.game-stats span{ font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(33,30,27,0.5); }
.game-next-canvas{ display: block; margin: 0 auto; border-radius: 8px; }

.game-controls{ display: flex; flex-wrap: wrap; gap: 8px; }
.game-controls button{
  flex: 1 1 calc(50% - 8px);
  min-width: 90px;
  padding: 11px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--cream-soft);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--walnut-dark);
  transition: all 0.2s var(--ease);
}
.game-controls button:hover{ background: var(--forest); color: var(--white); border-color: var(--forest); }

.game-touch{ display: none; }
@media (max-width: 780px){
  .game-touch{
    display: grid;
    grid-template-columns: repeat(3, 64px);
    grid-template-rows: repeat(2, 56px);
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
  }
  .game-touch button{
    border-radius: 12px; border: 1px solid var(--line);
    background: var(--white); box-shadow: var(--shadow-card);
    font-size: 1.3rem; color: var(--walnut-dark);
  }
  .game-touch button:active{ background: var(--forest); color: var(--white); }
  .gt-rotate{ grid-column: 2; grid-row: 1; }
  .gt-left{ grid-column: 1; grid-row: 2; }
  .gt-down{ grid-column: 2; grid-row: 2; }
  .gt-right{ grid-column: 3; grid-row: 2; }
}
.game-howto{ font-size: 0.84rem; color: rgba(33,30,27,0.65); }
.game-howto kbd{
  display: inline-block; padding: 2px 7px; border-radius: 5px;
  background: var(--cream-soft); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.72rem; margin: 0 2px;
}
