/* ============================================================
   KADADASI — handmade recycled paper
   Design system: organic, pastel, human.
   ============================================================ */

:root {
  /* palette pulled from the papers themselves */
  --paper: #f7f2e8;
  --paper-deep: #efe5d1;
  --paper-warm: #f3e9d8;
  --ink: #2f3a2c;
  --ink-soft: #55604f;
  --sage: #a8b48f;
  --sage-deep: #7e8f6a;
  --sage-pale: #dde3cf;
  --terracotta: #c97f5e;
  --terracotta-pale: #ecd5c8;
  --rose: #d9a7a0;
  --rose-pale: #f0ddd9;
  --mustard: #d9a441;
  --mustard-pale: #efdfbc;
  --sky-pale: #d7e0db;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Karla", "Helvetica Neue", sans-serif;
  --font-hand: "Caveat", cursive;

  --max-w: 1200px;
  --radius-blob: 61% 39% 55% 45% / 47% 56% 44% 53%;
  --shadow-soft: 0 18px 44px -18px rgba(47, 58, 44, 0.28);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.74 0 0 0 0 0.70 0 0 0 0 0.62 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--mustard-pale); color: var(--ink); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }

p { margin: 0 0 1.1em; }
a { color: inherit; }

.hand {
  font-family: var(--font-hand);
  font-size: 1.45em;
  font-weight: 500;
  line-height: 1.25;
  color: var(--terracotta);
  letter-spacing: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 1.2rem;
  height: 1.2rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
}

.muted { color: var(--ink-soft); }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
}

section { position: relative; }

/* hand-drawn underline accent */
.scribble {
  position: relative;
  white-space: nowrap;
}
.scribble.scribble--none::after { display: none !important; }
.scribble::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.08em;
  height: 0.32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16 C40 8 80 20 120 13 S 190 9 216 14' fill='none' stroke='%23d9a441' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border: none;
  border-radius: 999px 999px 999px 999px / 999px 880px 999px 920px;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, background 0.25s ease;
  box-shadow: 0 4px 0 rgba(47, 58, 44, 0.18);
}
.btn:hover { transform: translateY(-3px) rotate(-0.5deg); box-shadow: 0 10px 22px -8px rgba(47, 58, 44, 0.4); }
.btn:active { transform: translateY(0); }

.btn--terracotta { background: var(--terracotta); color: #fff; }
.btn--sage { background: var(--sage-deep); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(47, 58, 44, 0.08);
}
.site-header .bar {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0.6rem clamp(1rem, 3vw, 2.4rem);
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}
.site-header .brand img { height: 52px; width: auto; }
.site-header .brand span {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
  padding: 0.3rem 0;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--ink); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 C20 2 40 7 78 4' fill='none' stroke='%23c97f5e' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.site-nav .btn { padding: 0.6rem 1.25rem; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: clamp(0.8rem, 3vw, 1.5rem);
    left: auto;
    width: auto;
    min-width: 200px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.2rem;
    padding: 1rem 1.4rem 1.2rem;
    background: #2f3a2c;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(47,58,44,0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 200;
  }
  .site-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-nav a { font-size: 1.2rem; color: var(--paper); }
  .site-nav a.active { color: var(--mustard); }
  .site-nav .btn--terracotta { color: var(--paper); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- deckle (torn paper) section edges ---------- */
.deckle {
  display: block;
  width: 100%;
  height: 38px;
  margin-bottom: -1px;
}

/* ---------- hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 9.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
}
.hero-copy h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
}
.hero-copy .lede {
  font-size: 1.18rem;
  max-width: 32em;
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-note { margin-top: 2.2rem; }

/* animated underline + glow on Design your own button */
.hero-btn-glow {
  position: relative;
  overflow: visible;
  animation: btn-glow 2.4s ease-in-out infinite 1.4s;
}
.hero-btn-glow::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 0;
  width: 100%;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 C 18 2, 30 9, 50 6 C 68 3, 82 9, 102 5 C 120 2, 138 8, 158 5' stroke='%23d9a441' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  clip-path: inset(0 100% 0 0);
  animation: underline-reveal 0.7s ease forwards 0.6s;
}
@keyframes underline-reveal {
  to { clip-path: inset(0 0% 0 0); }
}
@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 121, 90, 0); }
  50% { box-shadow: 0 0 20px 7px rgba(196, 121, 90, 0.4); }
}

.hero-art { position: relative; }
.hero-art .blob-img {
  width: 100%;
  aspect-ratio: 0.92;
  object-fit: cover;
  border-radius: var(--radius-blob);
  box-shadow: var(--shadow-soft);
}
/* home page: make the big hero image slightly larger */
body[data-page="home"] .hero .wrap { grid-template-columns: 0.95fr 1.12fr; }
.hero-art .swatch-float {
  position: absolute;
  width: clamp(90px, 10vw, 140px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50% 50% 48% 52% / 52% 48% 52% 48%;
  border: 5px solid var(--paper);
  box-shadow: var(--shadow-soft);
}
.hero-art .swatch-float.one { top: -6%; left: -8%; transform: rotate(-8deg); }
.hero-art .swatch-float.two { bottom: 4%; right: -6%; transform: rotate(7deg); }
.hero-art .hand-label {
  position: absolute;
  bottom: -1.4rem;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  white-space: nowrap;
}

.hero-actions--mobile { display: none; }
.hero-img-mobile { display: none; }

@media (max-width: 880px) {
  .hero { min-height: auto; padding-top: 8rem; }
  .hero .wrap,
  body[data-page="home"] .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero-actions--desktop { display: none; }
  .hero-actions--mobile { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; grid-column: 1 / -1; }
  .hero-btn-glow::after { bottom: -38px; }
  .hero-img-mobile {
    display: block;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 0.92;
    object-fit: cover;
    border-radius: var(--radius-blob);
    box-shadow: var(--shadow-soft);
    margin: 1.6rem auto;
  }
}

/* ---------- swatch marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 1.6rem 0;
  background: var(--paper-deep);
}
.marquee-track {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: none;
}
.marquee-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50% 48% 52% 50% / 48% 52% 48% 52%;
  border: 3px solid var(--paper);
  box-shadow: 0 6px 14px -6px rgba(47, 58, 44, 0.35);
}
.marquee-item span {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- generic section spacing ---------- */
.section { padding: clamp(1.4rem, 3.2vw, 2.7rem) 0; }
.section--deep { background: var(--paper-deep); }
.section--sage { background: var(--sage-pale); }
.section--rose { background: var(--rose-pale); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .eyebrow { color: var(--sage); }
.section--ink .muted { color: rgba(247, 242, 232, 0.72); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 4rem); }

/* ---------- split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.8rem, 2.4vw, 2.2rem);
  align-items: center;
}
.split.flip > .split-art { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > .split-art { order: 0; }
}

/* taped polaroid-style photo */
.taped {
  position: relative;
  background: #fff;
  padding: 14px 14px 18px;
  box-shadow: var(--shadow-soft);
  transform: rotate(-2deg);
  border-radius: 4px;
}
.taped img { border-radius: 2px; width: 100%; object-fit: cover; }
.taped::before,
.taped.taped--two::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 110px;
  height: 30px;
  background: rgba(217, 164, 65, 0.32);
  transform: translateX(-50%) rotate(-2.5deg);
  border-left: 1px dashed rgba(47, 58, 44, 0.12);
  border-right: 1px dashed rgba(47, 58, 44, 0.12);
}
.taped.taped--two::before { left: 12%; transform: rotate(-32deg); width: 80px; }
.taped.taped--two::after { left: 88%; transform: translateX(-50%) rotate(28deg); width: 80px; }
.taped.tilt-right { transform: rotate(2.2deg); }
.taped figcaption {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  text-align: center;
  padding-top: 0.7rem;
  color: var(--ink-soft);
}

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.card {
  background: #fffdf8;
  border-radius: 18px 20px 16px 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px -16px rgba(47, 58, 44, 0.3);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card:hover { transform: translateY(-7px) rotate(-0.6deg); box-shadow: var(--shadow-soft); }
.card .btn { margin-top: auto; }
.card img { aspect-ratio: 1.05; object-fit: cover; width: 100%; }
.card .card-body { padding: 1.2rem 1.3rem 1.4rem; }
.card .card-body h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.card .card-body p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.45rem;
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--terracotta);
  line-height: 1;
}
.section--ink .stat .num { color: var(--mustard); }
.stat .lbl { font-size: 0.95rem; color: inherit; opacity: 0.8; margin-top: 0.5rem; line-height: 1.5; }
.stat .lbl strong { font-weight: 700; opacity: 1; display: block; margin-bottom: 0.15rem; }
.section--ink .stat .lbl strong { color: var(--paper); }

/* ---------- face circles (community hero) ---------- */
.face-circles {
  display: flex;
  align-items: center;
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
}
.face-circles img {
  width: clamp(96px, 12vw, 136px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50% 50% 48% 52% / 52% 48% 52% 48%;
  border: 5px solid var(--paper);
  box-shadow: var(--shadow-soft);
  background: var(--paper-deep);
}
.face-circles img:not(:first-child) { margin-left: -24px; }
.face-circles img:nth-child(1) { transform: rotate(-5deg); }
.face-circles img:nth-child(2) { transform: rotate(3deg); z-index: 1; }
.face-circles img:nth-child(3) { transform: rotate(-2deg); }
.face-circles__note {
  margin-left: 1rem;
  font-size: 1.15rem;
  color: var(--sage-deep);
}

/* ---------- highlighted statement band ---------- */
.statement-band { text-align: center; }
.statement {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}
.statement__mark {
  position: absolute;
  top: clamp(-1rem, -1vw, -0.4rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 1;
  color: var(--mustard);
  opacity: 0.55;
}
.statement p {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.4;
  color: var(--paper);
  margin: 0;
}
.statement em {
  font-style: italic;
  color: var(--mustard);
}
.statement footer {
  margin-top: clamp(1.2rem, 2.5vw, 1.8rem);
  font-family: var(--font-hand);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--sage);
}

/* closing statement (forest page) */
.forest-closing {
  max-width: 720px;
  margin: clamp(2.4rem, 5vw, 3.6rem) auto 0;
  text-align: center;
}
.forest-closing p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.forest-closing em { color: var(--terracotta); font-style: italic; }

/* grow steps (seed paper) */
.grow-steps { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin: 1.6rem 0 0.4rem; }
.grow-step { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 0.92rem; }
.grow-num {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50% 47% 53% 50% / 47% 53% 47% 53%;
  background: var(--sage-deep); color: #fff;
  font-family: var(--font-display); font-size: 0.95rem;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5.5rem) 0 2rem;
  position: relative;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--mustard); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer .motto {
  font-family: var(--font-hand);
  font-size: 2rem;
  color: var(--mustard);
  margin: 0.2rem 0 1rem;
}
.site-footer .fine {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(247, 242, 232, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(247, 242, 232, 0.6);
}

/* ---------- reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-spring);
}
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="left"].revealed,
[data-reveal="right"].revealed { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding: 10rem 0 1.4rem;
  position: relative;
}
.page-hero .lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 36em; }

/* ---------- design gallery ---------- */
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.design-card {
  background: #fffdf8;
  border-radius: 16px 20px 14px 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px -16px rgba(47, 58, 44, 0.3);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}
.design-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.design-card img { aspect-ratio: 1.05; object-fit: cover; width: 100%; }
.design-card .body { padding: 1.2rem 1.35rem; }
.design-card .code {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--terracotta);
}
.design-card h3 { font-size: 1.35rem; margin: 0.15rem 0 0.4rem; }
.design-card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.card-expand { display: none; }

@media (max-width: 680px) {
  .design-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .design-card h3 { font-size: 1rem; }
  .design-card .body { padding: 0.75rem 0.8rem; }
  .design-card .card-desc {
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .design-card .card-desc.expanded {
    display: block;
    -webkit-line-clamp: unset;
  }
  .card-expand {
    display: block;
    background: none;
    border: none;
    padding: 0;
    margin-top: 0.25rem;
    font-size: 0.72rem;
    color: var(--terracotta);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
  }
}

/* ---------- studio banner CTA ---------- */
.studio-banner {
  background: var(--ink);
  color: var(--paper);
  border-radius: 30px 36px 28px 38px;
  padding: clamp(2.4rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.studio-banner h2 { color: var(--paper); }
.studio-banner .hand { color: var(--mustard); }
@media (max-width: 820px) { .studio-banner { grid-template-columns: 1fr; } }

/* ============================================================
   PAPER STUDIO
   ============================================================ */
.studio-page {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  min-height: 100vh;
  padding-top: 74px;
}
@media (max-width: 980px) {
  .studio-page { grid-template-columns: 1fr; }
}

.studio-stage {
  position: relative;
  background: radial-gradient(120% 100% at 50% 0%, #efe7d6 0%, #e4d8bf 100%);
  min-height: 58vh;
}
@media (max-width: 980px) {
  .studio-stage {
    position: sticky;
    top: 64px;
    z-index: 10;
    min-height: 42vh;
    max-height: 42vh;
    border-bottom: 1px solid rgba(47,58,44,.12);
  }
  .studio-stage .stage-hint { font-size: 1rem; }
  .studio-stage .dims-readout { font-size: 0.78rem; }
}
.studio-stage canvas { display: block; width: 100%; height: 100%; }
.studio-stage.loading::after {
  content: "building your design…";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--paper) 60%, transparent);
  pointer-events: none;
}
.studio-stage .stage-hint {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  padding: 0.2rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.studio-stage .dims-readout {
  position: absolute;
  top: 1.1rem;
  left: 1.3rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
}

.studio-panel {
  background: var(--paper);
  border-left: 1px solid rgba(47, 58, 44, 0.1);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  overflow-y: auto;
  max-height: calc(100vh - 74px);
}
@media (max-width: 980px) {
  .studio-panel { max-height: none; border-left: none; }
}

.studio-step { margin-bottom: 2.2rem; }
.studio-step > .step-title {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.studio-step .step-num {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--terracotta);
  flex: none;
}
.studio-step h3 { margin: 0; font-size: 1.25rem; }

/* product radio cards */
.product-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.product-card {
  border: 2px solid rgba(47, 58, 44, 0.14);
  background: #fffdf8;
  border-radius: 14px 16px 13px 17px;
  padding: 0.9rem 0.6rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-3px); }
.product-card.selected {
  border-color: var(--terracotta);
  box-shadow: 0 8px 20px -10px rgba(201, 127, 94, 0.55);
}
.product-card svg { width: 46px; height: 46px; margin: 0 auto 0.4rem; display: block; }
.product-card .nm { font-weight: 700; font-size: 0.88rem; }

/* swatches */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 0.7rem;
}
.swatch {
  position: relative;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
}
.swatch img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50% 48% 52% 50% / 48% 52% 48% 52%;
  border: 3px solid transparent;
  box-shadow: 0 5px 12px -5px rgba(47, 58, 44, 0.4);
  transition: transform 0.3s var(--ease-spring), border-color 0.25s;
}
.swatch:hover img { transform: scale(1.08) rotate(-2deg); }
.swatch.selected img { border-color: var(--terracotta); transform: scale(1.06); }
.swatch .nm {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 0.3rem;
  color: var(--ink-soft);
  line-height: 1.15;
}
.swatch.selected .nm { color: var(--terracotta); }

/* size controls */
.size-presets { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1rem; }
.chip {
  border: 2px solid rgba(47, 58, 44, 0.16);
  background: #fffdf8;
  border-radius: 999px;
  padding: 0.42rem 1rem;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: 0.25s;
  font-family: var(--font-body);
  color: var(--ink);
}
.chip:hover { border-color: var(--sage-deep); }
.chip.selected { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }

.size-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.size-inputs label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: grid;
  gap: 0.3rem;
}
.size-inputs input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 2px solid rgba(47, 58, 44, 0.16);
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  background: #fffdf8;
  color: var(--ink);
}
.size-inputs input:focus { outline: none; border-color: var(--terracotta); }

/* personalise */
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field > span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input[type="text"], .field input[type="email"], .field select {
  padding: 0.65rem 0.75rem;
  border: 2px solid rgba(47, 58, 44, 0.16);
  border-radius: 10px;
  font: inherit;
  background: #fffdf8;
  color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--terracotta); }

.upload-zone {
  border: 2px dashed rgba(47, 58, 44, 0.3);
  border-radius: 14px;
  padding: 1.1rem;
  text-align: center;
  cursor: pointer;
  transition: 0.25s;
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: #fffdf8;
}
.upload-zone:hover { border-color: var(--terracotta); color: var(--ink); }
.upload-zone.has-file { border-style: solid; border-color: var(--sage-deep); }

.ink-dots { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.ink-dot {
  width: 34px;
  height: 34px;
  border-radius: 50% 47% 53% 50% / 47% 53% 47% 53%;
  border: 3px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.25s var(--ease-spring);
  box-shadow: 0 3px 8px -3px rgba(47, 58, 44, 0.5);
}
.ink-dot:hover { transform: scale(1.15); }
.ink-dot.selected { border-color: var(--ink); transform: scale(1.12); }

.pos-chips { display: flex; gap: 0.55rem; flex-wrap: wrap; }

/* position pad, a mini cover the user clicks to place the print */
.pos-pad {
  position: relative;
  width: 132px;
  aspect-ratio: 3 / 4;
  border: 2px solid rgba(47, 58, 44, 0.22);
  border-radius: 8px 10px 8px 10px;
  background: var(--paper-warm);
  background-image: radial-gradient(circle at 50% 50%, rgba(47, 58, 44, 0.05) 1px, transparent 1px);
  background-size: 11px 11px;
  cursor: crosshair;
  touch-action: none;
  overflow: hidden;
}
.pos-pad-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  opacity: 0.55;
  pointer-events: none;
}
.pos-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 2px solid var(--paper);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* quote summary */
.spec-summary {
  background: var(--paper-warm);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}
.spec-summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; }
.spec-summary dt { font-weight: 700; color: var(--ink-soft); }
.spec-summary dd { margin: 0; }

.studio-actions { display: grid; gap: 0.7rem; }
.studio-actions .btn { justify-content: center; width: 100%; }

.toggle-row { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.toggle {
  position: relative;
  width: 52px;
  height: 28px;
  flex: none;
  appearance: none;
  background: rgba(47, 58, 44, 0.2);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s;
}
.toggle:checked { background: var(--sage-deep); }
.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fffdf8;
  border-radius: 50%;
  transition: transform 0.3s var(--ease-spring);
  box-shadow: 0 2px 5px rgba(47, 58, 44, 0.3);
}
.toggle:checked::after { transform: translateX(24px); }

/* ---------- contact enquiry form ---------- */
.contact-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border-radius: 30px 36px 28px 38px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #fffdf8;
}
@media (max-width: 880px) { .contact-split { grid-template-columns: 1fr; } }

.contact-split-info {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2rem, 5vw, 3.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}
.contact-split-info h2 { color: var(--paper); font-size: clamp(1.7rem, 3vw, 2.4rem); }
.contact-split-info .muted-light { color: rgba(247, 242, 232, 0.75); }
.contact-split-info .contact-lines { font-weight: 700; line-height: 1.9; }
.contact-split-info .contact-lines a { color: var(--paper); text-decoration: none; }
.contact-split-info .contact-lines a:hover { color: var(--mustard); }

.contact-form { padding: clamp(2rem, 5vw, 3.4rem); display: grid; gap: 1.1rem; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .contact-form .form-row { grid-template-columns: 1fr; } }
.contact-form .field { margin-bottom: 0; }
.contact-form textarea {
  padding: 0.65rem 0.75rem;
  border: 2px solid rgba(47, 58, 44, 0.16);
  border-radius: 10px;
  font: inherit;
  background: #fffdf8;
  color: var(--ink);
  resize: vertical;
  min-height: 110px;
}
.contact-form textarea:focus { outline: none; border-color: var(--terracotta); }

/* timeline (story page) */
.timeline { position: relative; padding-left: 2.2rem; max-width: 720px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: repeating-linear-gradient(var(--sage) 0 14px, transparent 14px 24px);
}
.timeline .moment { position: relative; padding-bottom: 2.4rem; }
.timeline .moment::before {
  content: "";
  position: absolute;
  left: -2.2rem;
  top: 0.35rem;
  width: 19px;
  height: 19px;
  border-radius: 50% 47% 53% 50% / 47% 53% 47% 53%;
  background: var(--terracotta);
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 2px var(--terracotta);
}
.timeline .when {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--terracotta);
}

/* ---------- real paper backgrounds ----------
   One real Kadadasi seed-paper sheet laid over the WHOLE page as a single
   fixed multiply layer. Because it covers sections and their torn deckle
   edges uniformly, there are no tonal seams between sections. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1500;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("../assets/textures/bg-paper.jpg");
  background-size: 760px auto;
}

/* the 3D studio keeps its own paper backdrop (sits behind the canvas) */
.studio-stage {
  background-image: url("../assets/textures/bg-paper.jpg"),
    radial-gradient(120% 100% at 50% 0%, #efe7d6 0%, #e4d8bf 100%);
  background-size: 760px auto, cover;
  background-blend-mode: multiply, normal;
}

/* seed-paper "grows" headline, a tree (with roots) sprouts from the letter o */
.seed-o { position: relative; display: inline-block; }
.seed-tree {
  position: absolute;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%);
  width: 132px;
  height: 156px;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
@keyframes seed-draw { to { stroke-dashoffset: 0; } }
@keyframes seed-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes seed-sway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.seed-tree .grow { stroke-dasharray: 1; stroke-dashoffset: 1; }
.seed-tree .leaf { transform: scale(0); transform-box: fill-box; transform-origin: 50% 92%; }
.seed-o.go .grow { animation: seed-draw 1.8s cubic-bezier(.45, .05, .3, 1) forwards var(--d, 0s); }
.seed-o.go .leaf { animation: seed-pop 1.2s cubic-bezier(.22, 1, .36, 1) forwards var(--d, 0s); }
.seed-o.go .canopy { animation: seed-sway 7s ease-in-out 7s infinite alternate; transform-box: fill-box; transform-origin: 100px 86px; }
.seed-o.reduced .grow { stroke-dashoffset: 0; }
.seed-o.reduced .leaf { transform: scale(1); }
@media (max-width: 600px) {
  .seed-tree { width: 104px; height: 123px; bottom: -32px; }
}
