/* =========================================================================
   Sweet Hut Products — Thala Karali
   A warm, dark, editorial storefront. Roasted sesame and kithul jaggery
   translated into ink, parchment and caramel.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink:         #14100c;
  --ink-2:       #1c1610;
  --ink-3:       #272019;
  --ink-4:       #342b21;

  --parchment:   #f5efe3;
  --parchment-2: #e6dbc6;
  --parchment-3: #cfc2a8;
  --parchment-4: #9d9382;

  --jaggery:     #c07a2c;
  --jaggery-lit: #e0a04e;
  --clay:        #9a4f2c;
  --sage:        #7d8a66;

  --line:        rgba(245, 239, 227, 0.14);
  --line-strong: rgba(245, 239, 227, 0.30);
  --line-dark:   rgba(20, 16, 12, 0.16);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Karla", system-ui, sans-serif;
  /* Abhaya Libre is the Unicode release of FM Abhaya — the letterform Sinhala
     readers grew up with in print. Noto Sans Sinhala carries the small UI text,
     where Abhaya's contrast gets thin. */
  --si-display: "Abhaya Libre", "Noto Serif Sinhala", serif;
  --si-body:    "Noto Sans Sinhala", "Iskoola Pota", sans-serif;

  --gutter:  clamp(1.25rem, 4vw, 4.5rem);
  --measure: 80rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-lift:  0 2px 6px rgba(0, 0, 0, 0.3), 0 26px 60px -22px rgba(0, 0, 0, 0.7);
  --shadow-panel: 0 40px 100px -34px rgba(0, 0, 0, 0.75);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* Component display rules below would otherwise win over the UA `[hidden]` rule. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; 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;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--jaggery-lit);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- Typography primitives ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "SOFT" 28, "WONK" 1, "opsz" 40;
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

.kicker {
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--jaggery-lit);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.kicker::before {
  content: "";
  width: clamp(1.5rem, 4vw, 3.25rem);
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  flex: none;
}

.lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.28rem); color: var(--parchment-3); max-width: 46ch; }

/* ---------- Sinhala ----------
   Sinhala is unicase and its conjuncts are joined with ZWJ, so the Latin
   micro-typography used elsewhere on this page (wide tracking, uppercase,
   tight leading) shears the letterforms apart. Reset all three and give the
   script the leading it needs. */
html[lang="si"] body,
:lang(si) {
  font-family: var(--si-body);
  line-height: 1.78;
  font-feature-settings: "kern";
}
html[lang="si"] h1,
html[lang="si"] h2,
html[lang="si"] h3,
html[lang="si"] h4 {
  font-family: var(--si-display);
  font-weight: 600;
  font-variation-settings: normal;
  line-height: 1.42;
  letter-spacing: 0;
}
html[lang="si"] .kicker,
html[lang="si"] .section-head .note,
html[lang="si"] .pack-unit,
html[lang="si"] .pack-badge,
html[lang="si"] .spec-row dt,
html[lang="si"] .spec-figure figcaption,
html[lang="si"] .contact-lines b,
html[lang="si"] .footer-grid h4,
html[lang="si"] .summary h3,
html[lang="si"] .link-danger,
html[lang="si"] .step-pip span {
  letter-spacing: 0.02em;
  text-transform: none;
}
html[lang="si"] .kicker,
html[lang="si"] .footer-grid h4,
html[lang="si"] .contact-lines b,
html[lang="si"] .spec-row dt { font-size: 0.86rem; }
html[lang="si"] .lede { max-width: 42ch; }
/* Sinhala sets taller than Latin, so buttons grow rather than clip. */
html[lang="si"] .btn { line-height: 1.5; min-height: 3.1rem; height: auto; }

/* ---------- Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Fixed grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--parchment);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 1rem; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 600;
  background: rgba(20, 16, 12, 0.72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header[data-stuck="true"] {
  border-bottom-color: var(--line);
  background: rgba(20, 16, 12, 0.93);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 76px;
  padding-block: 0.75rem;
}

.wordmark { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; flex: none; }
.wordmark img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--ink-3);
}
.wordmark-text { display: grid; line-height: 1.15; }
.wordmark-text b {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 20;
  font-size: 1.16rem;
  letter-spacing: -0.015em;
}
.wordmark-text span {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--parchment-4);
}

.site-nav { display: flex; gap: clamp(1rem, 2.2vw, 2rem); margin-inline-start: auto; }
.site-nav a {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--parchment-3);
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.25s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--jaggery-lit);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.site-nav a:hover { color: var(--parchment); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-tools { display: flex; align-items: center; gap: 0.6rem; flex: none; }

.lang-toggle {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--parchment-3);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang-toggle:hover { color: var(--ink); background: var(--parchment); border-color: var(--parchment); }

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.42rem 1rem 0.42rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cart-button:hover { background: var(--jaggery); border-color: var(--jaggery); color: var(--ink); }
.cart-button svg { width: 17px; height: 17px; }
.cart-count {
  min-width: 1.35rem;
  height: 1.35rem;
  padding-inline: 0.35rem;
  border-radius: 999px;
  background: var(--clay);
  color: var(--parchment);
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.cart-button:hover .cart-count { background: var(--ink); color: var(--parchment); }
.cart-count.is-bumped { animation: bump 0.45s var(--ease); }

@keyframes bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* =========================================================================
   Hero — asymmetric, type-led
   ========================================================================= */
.hero { padding-block: clamp(3.5rem, 9vw, 8rem) clamp(3rem, 7vw, 6rem); overflow: hidden; }

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto 40%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(192, 122, 44, 0.22), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.9rem, 1.4rem + 6.6vw, 6.4rem);
  font-variation-settings: "SOFT" 22, "WONK" 1, "opsz" 100;
  margin-bottom: 1.6rem;
}
.hero-title em {
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 100;
  color: var(--jaggery-lit);
}
.hero-title .line { display: block; }
.hero-title .indent { padding-inline-start: clamp(0rem, 7vw, 6rem); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem; }

.hero-figure { position: relative; justify-self: end; width: 100%; max-width: 38rem; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow-panel);
  filter: saturate(1.05) contrast(1.04);
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  z-index: -1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.2s linear;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-solid { background: var(--parchment); color: var(--ink); }
.btn-solid:hover { background: var(--jaggery-lit); }

.btn-amber { background: var(--jaggery); color: #21150a; }
.btn-amber:hover { background: var(--jaggery-lit); }

.btn-ghost { border-color: var(--line-strong); color: var(--parchment); }
.btn-ghost:hover { border-color: var(--parchment); background: rgba(245, 239, 227, 0.06); }

.btn-whatsapp { background: #1f7a4d; color: #f2fbf6; }
.btn-whatsapp:hover { background: #24925c; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; transform: none; }

.btn-block { width: 100%; }

/* =========================================================================
   Story
   ========================================================================= */
.story { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.story-title { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.6rem); }
.story-copy p { color: var(--parchment-3); max-width: 60ch; }
.story-copy p + p { margin-top: 1.25rem; }
.story-copy strong { color: var(--parchment); font-weight: 600; }

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3rem;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar { background: var(--ink); padding: 1.6rem 1.5rem; }
.pillar svg { width: 26px; height: 26px; color: var(--jaggery-lit); margin-bottom: 0.9rem; }
.pillar b { display: block; font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.pillar p { margin: 0; font-size: 0.86rem; color: var(--parchment-4); line-height: 1.55; }

/* =========================================================================
   Packs — staggered, index-numbered
   ========================================================================= */
.packs { padding-block: clamp(4rem, 9vw, 7.5rem); background: var(--ink-2); border-block: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head h2 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.6rem); }
.section-head p { margin: 0.9rem 0 0; color: var(--parchment-4); max-width: 42ch; font-size: 0.95rem; }
.section-head .note { text-align: right; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--parchment-4); }

.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.6vw, 2.25rem);
  align-items: start;
}

.pack {
  position: relative;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.pack:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}
.pack-media { position: relative; overflow: hidden; background: var(--ink-3); }
.pack-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
  filter: saturate(1.02);
}
.pack:hover .pack-media img { transform: scale(1.06); }
.pack-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.75), transparent 46%);
  pointer-events: none;
}

.pack-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  background: var(--jaggery);
  color: #1c1206;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.pack-body { padding: 1.5rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.85rem; flex: 1; }
.pack-name {
  font-size: 1.7rem;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 30;
}
.pack-blurb { margin: 0; font-size: 0.88rem; color: var(--parchment-4); line-height: 1.55; flex: 1; }

.pack-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 0.4rem; border-top: 1px solid var(--line); }
.pack-price { font-family: var(--display); font-size: 1.6rem; font-variation-settings: "SOFT" 30, "opsz" 30; letter-spacing: -0.01em; }
.pack-price small { font-size: 0.62em; color: var(--parchment-4); font-family: var(--body); letter-spacing: 0.06em; }
.pack-unit { font-size: 0.72rem; color: var(--parchment-4); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }

.pack .btn { margin-top: 0.35rem; }

/* =========================================================================
   Spec / nutrition
   ========================================================================= */
.spec { padding-block: clamp(4.5rem, 10vw, 8rem); }
.spec-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.spec-table { border-top: 1px solid var(--line); margin-top: 2rem; }
.spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.spec-row dt { color: var(--parchment-4); font-size: 0.84rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0; }
.spec-row dd { margin: 0; font-family: var(--display); font-size: 1.15rem; font-variation-settings: "SOFT" 30, "opsz" 20; text-align: right; }
.spec-note { font-size: 0.76rem; color: var(--parchment-4); margin-top: 1.2rem; }

.spec-figure { position: relative; }
.spec-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow-panel);
}
.spec-figure figcaption {
  position: absolute;
  bottom: 1.1rem; left: 1.1rem; right: 1.1rem;
  background: rgba(20, 16, 12, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  padding: 0.8rem 1rem;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parchment-3);
}

/* =========================================================================
   Contact
   ========================================================================= */
.contact { padding-block: clamp(4.5rem, 10vw, 8rem); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-title { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.4rem); }

.contact-lines { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.35rem; }
.contact-lines li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 1rem; align-items: start; }
.contact-lines svg { width: 20px; height: 20px; color: var(--jaggery-lit); margin-top: 0.2rem; }
.contact-lines b { display: block; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--parchment-4); font-weight: 700; margin-bottom: 0.15rem; }
.contact-lines a { text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: border-color 0.25s var(--ease), color 0.25s var(--ease); }
.contact-lines a:hover { color: var(--jaggery-lit); border-color: var(--jaggery-lit); }

.contact-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.contact-card h3 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.contact-card p { color: var(--parchment-4); font-size: 0.92rem; margin: 0 0 1.75rem; }
.contact-card .btn + .btn { margin-top: 0.7rem; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; background: var(--ink-2); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
.footer-grid h4 { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--parchment-4); font-family: var(--body); font-weight: 700; margin-bottom: 1.1rem; }
.footer-grid p, .footer-grid li { font-size: 0.88rem; color: var(--parchment-3); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-grid a { text-decoration: none; transition: color 0.25s var(--ease); }
.footer-grid a:hover { color: var(--jaggery-lit); }
.footer-brand p { max-width: 34ch; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--parchment-4);
}

/* =========================================================================
   Cart drawer
   ========================================================================= */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(10, 7, 5, 0.66);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.scrim[data-open="true"] { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: 800;
  height: 100dvh;
  width: min(30rem, 100vw);
  background: var(--ink-2);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
}
.drawer[data-open="true"] { transform: translate3d(0, 0, 0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem var(--drawer-pad, 1.6rem);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.drawer-head h2 { font-size: 1.5rem; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--parchment-3);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.icon-btn:hover { background: var(--parchment); color: var(--ink); border-color: var(--parchment); transform: rotate(90deg); }
.icon-btn svg { width: 16px; height: 16px; }

.drawer-body { flex: 1; overflow-y: auto; padding: 1.4rem var(--drawer-pad, 1.6rem); }
.drawer-foot { flex: none; padding: 1.4rem var(--drawer-pad, 1.6rem); border-top: 1px solid var(--line); background: var(--ink); }

.cart-line {
  display: grid;
  grid-template-columns: 111px minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
  animation: fade-up 0.45s var(--ease) both;
}
.cart-line:first-child { padding-top: 0; }
.cart-line img { width: 111px; height: 74px; object-fit: cover; border-radius: 2px; background: var(--ink-3); }
.cart-line-top { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; }
.cart-line b { font-family: var(--display); font-size: 1.1rem; font-variation-settings: "SOFT" 40, "opsz" 20; font-weight: 500; }
.cart-line-price { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.cart-line small { display: block; color: var(--parchment-4); font-size: 0.76rem; margin-top: 0.1rem; }
.cart-line-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.7rem; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.stepper button {
  width: 30px; height: 30px;
  display: grid; place-content: center;
  color: var(--parchment-3);
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.stepper button:hover { background: var(--jaggery); color: var(--ink); }
.stepper span { min-width: 2rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.88rem; }

.link-danger { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--parchment-4); border-bottom: 1px solid transparent; transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.link-danger:hover { color: #d9795c; border-bottom-color: currentColor; }

.cart-empty { text-align: center; padding-block: clamp(3rem, 12vh, 6rem); }
.cart-empty svg { width: 46px; height: 46px; color: var(--ink-4); margin-bottom: 1.2rem; }
.cart-empty p { color: var(--parchment-4); margin: 0 0 1.6rem; font-size: 0.92rem; }

.totals { display: grid; gap: 0.55rem; margin-bottom: 1.25rem; }
.totals-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; color: var(--parchment-4); }
.totals-row.is-grand {
  font-size: 1.35rem;
  color: var(--parchment);
  font-family: var(--display);
  font-variation-settings: "SOFT" 30, "opsz" 30;
  padding-top: 0.7rem;
  margin-top: 0.35rem;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.totals-row span:last-child { font-variant-numeric: tabular-nums; }

.foot-alt { display: block; text-align: center; margin-top: 0.9rem; font-size: 0.8rem; color: var(--parchment-4); text-decoration: none; }
.foot-alt:hover { color: var(--jaggery-lit); }

/* =========================================================================
   Checkout modal
   ========================================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.modal[data-open="true"] { opacity: 1; visibility: visible; }

.modal-panel {
  position: relative;
  width: min(46rem, 100%);
  max-height: min(92dvh, 60rem);
  overflow-y: auto;
  background: var(--parchment);
  color: var(--ink);
  border-radius: 4px;
  box-shadow: var(--shadow-panel);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.45s var(--ease);
}
.modal[data-open="true"] .modal-panel { transform: none; }

.modal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--parchment);
  border-bottom: 1px solid var(--line-dark);
  padding: 1.4rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.modal-head h2 { font-size: 1.6rem; }
.modal-head .icon-btn { border-color: var(--line-dark); color: #6b5b46; }
.modal-head .icon-btn:hover { background: var(--ink); color: var(--parchment); border-color: var(--ink); }

.modal-body { padding: clamp(1.4rem, 4vw, 2.5rem); }

/* Steps */
.steps { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.step-pip { flex: 1; display: grid; gap: 0.5rem; }
.step-pip i { display: block; height: 2px; background: var(--parchment-2); transition: background 0.4s var(--ease); }
.step-pip span { font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: #93866f; font-weight: 700; transition: color 0.4s var(--ease); }
.step-pip[data-state="active"] i,
.step-pip[data-state="done"] i { background: var(--clay); }
.step-pip[data-state="active"] span { color: var(--ink); }

.step { display: none; animation: fade-up 0.45s var(--ease) both; }
.step[data-active="true"] { display: block; }

@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: none; }
}

/* Fields */
.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: #6b5b46; }
.field input, .field textarea {
  background: #fffdf8;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  width: 100%;
}
.field textarea { min-height: 6rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a8997f; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(154, 79, 44, 0.14); }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: #b3402a; background: #fdf5f2; }
.field-error { font-size: 0.76rem; color: #a5361f; min-height: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }

/* Payment options */
.pay-list { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
.pay-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  padding: 1.05rem 1.2rem;
  cursor: pointer;
  background: #fffdf8;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pay-option:hover { border-color: var(--clay); }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-mark {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid #a8997f;
  margin-top: 0.15rem;
  display: grid;
  place-content: center;
  transition: border-color 0.25s var(--ease);
}
.pay-mark::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--clay);
  transform: scale(0);
  transition: transform 0.3s var(--ease);
}
.pay-option:has(input:checked) { border-color: var(--clay); background: #fdf7ee; box-shadow: 0 0 0 1px var(--clay); }
.pay-option:has(input:checked) .pay-mark { border-color: var(--clay); }
.pay-option:has(input:checked) .pay-mark::after { transform: scale(1); }
.pay-option:has(input:focus-visible) { outline: 2px solid var(--clay); outline-offset: 2px; }
.pay-option b { display: block; font-size: 1rem; font-weight: 700; }
.pay-option p { margin: 0.2rem 0 0; font-size: 0.83rem; color: #6b5b46; line-height: 1.5; }

/* Summary */
.summary {
  background: #ece2ce;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
}
.summary h3 { font-family: var(--body); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: #6b5b46; font-weight: 700; margin-bottom: 0.9rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; padding-block: 0.28rem; }
.summary-row span:last-child { font-variant-numeric: tabular-nums; }
.summary-row.is-grand {
  border-top: 1px solid var(--line-dark);
  margin-top: 0.6rem;
  padding-top: 0.75rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-variation-settings: "SOFT" 30, "opsz" 24;
  align-items: baseline;
}
.summary-row.is-muted { color: #6b5b46; }

.pay-panel { margin-top: 0.25rem; }
.pay-panel[hidden] { display: none; }
.callout {
  border-left: 2px solid var(--clay);
  background: #f0e6d4;
  padding: 1rem 1.15rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #4a3b2c;
  border-radius: 0 3px 3px 0;
}
.callout b { color: var(--ink); }
.callout dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.3rem 1rem; margin: 0.75rem 0 0; }
.callout dt { color: #6b5b46; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.callout dd { margin: 0; font-weight: 700; }

.modal-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.modal-actions .btn { flex: 1; }
.btn-dark { background: var(--ink); color: var(--parchment); }
.btn-dark:hover { background: var(--clay); }
.btn-quiet { border-color: var(--line-dark); color: #6b5b46; }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }

.form-alert {
  border: 1px solid #d9a08e;
  background: #fbeee9;
  color: #8f2f18;
  border-radius: 3px;
  padding: 0.85rem 1.05rem;
  font-size: 0.86rem;
  margin-bottom: 1.25rem;
}
.form-alert[hidden] { display: none; }

/* Spinner inside buttons */
.spinner {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn[data-busy="true"] .btn-label { opacity: 0.55; }

/* PayPal container */
#paypal-buttons { min-height: 3rem; margin-top: 1rem; }
.paypal-skeleton { display: grid; gap: 0.6rem; }
.paypal-skeleton i {
  display: block;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2d7c1 0%, #efe7d7 45%, #e2d7c1 90%);
  background-size: 220% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
.paypal-skeleton i:nth-child(2) { width: 72%; opacity: 0.6; }
@keyframes shimmer { to { background-position: -220% 0; } }

/* Confirmation */
.done { text-align: center; padding-block: 1rem; }
.done-mark {
  width: 66px; height: 66px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--clay);
  display: grid;
  place-content: center;
  color: var(--clay);
  animation: pop 0.6s var(--ease) both;
}
.done-mark svg { width: 28px; height: 28px; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.done h3 { font-size: 2rem; margin-bottom: 0.6rem; }
.done > p { color: #6b5b46; margin: 0 auto 1.75rem; max-width: 42ch; }
.reference {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px dashed var(--clay);
  border-radius: 3px;
  padding: 1rem 2rem;
  margin-bottom: 1.75rem;
}
.reference span { font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: #6b5b46; font-weight: 700; }
.reference b { font-family: var(--display); font-size: 1.9rem; letter-spacing: 0.06em; font-variation-settings: "SOFT" 20, "opsz" 30; }

/* =========================================================================
   Scroll reveals
   ========================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { justify-self: start; max-width: 34rem; }
  .hero-figure::after { display: none; }
  .story-grid, .spec-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .pack-grid { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .note { text-align: left; }
}

@media (max-width: 640px) {
  .header-inner { min-height: 66px; }
  .wordmark img { width: 40px; height: 40px; }
  .wordmark-text span { display: none; }
  .cart-button span.cart-label { display: none; }
  .cart-button { padding: 0.42rem 0.7rem; }
  .hero-title .indent { padding-inline-start: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .pillars { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column-reverse; }
  .footer-grid { grid-template-columns: 1fr; }
  .drawer { --drawer-pad: 1.15rem; }
  .steps { gap: 0.35rem; }
  .step-pip span { font-size: 0.55rem; letter-spacing: 0.1em; }
}
