/* ============================================================
   Wei Matcha — Shared Stylesheet
   ============================================================ */

/* Google Fonts are loaded via <link> in each HTML file */

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  --color-white:       #F9F7F4;
  --color-nori:        #3B4A3A;
  --color-nori-light:  #6B7D67;
  --color-beige:       #D9CEBC;
  --color-brown:       #7A6152;
  --color-black:       #1A1A18;
  --color-muted:       #6B6560;
  --color-sakura:      #E8B9BD; /* pastel pink — decorative surfaces */
  --color-sakura-soft: #F6EAE8; /* blush wash — section backgrounds */
  --color-rose:        #A4525C; /* deep rose — text-safe pink accent */

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'DM Sans', system-ui, sans-serif;

  --transition: 0.3s ease;
  --container-max: 1280px;
  --container-pad: clamp(24px, 5vw, 80px);
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Accessibility ─────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-black);
  color: var(--color-white);
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Animations ────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease-out forwards;
}
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.25s; }
.fade-up-3 { animation-delay: 0.4s; }
.fade-up-4 { animation-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    animation: none;
    opacity: 1;
  }
}

/* ── Utility ───────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-nori);
  margin-bottom: 16px;
}
/* Sakura dash — small brand accent before every eyebrow */
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--color-rose);
  margin-right: 10px;
  vertical-align: middle;
}

::selection {
  background: var(--color-sakura);
  color: var(--color-black);
}

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  background: var(--color-black);
  border: 1px solid var(--color-black);
  padding: 14px 32px;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-nori);
  border-color: var(--color-nori);
}

.btn-primary--full {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px;
}

/* ── Placeholder Image Frame ───────────────────────────── */
.img-placeholder {
  background: var(--color-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.img-placeholder span {
  font-family: var(--font-ui);
  font-size: 11px;
  font-style: italic;
  color: var(--color-muted);
  user-select: none;
}

/* ── Navigation ────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-beige);
}

.nav__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--color-black);
  letter-spacing: 0.01em;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-black);
  text-decoration: none;
  transition: color var(--transition);
}
.nav__link:hover,
.nav__link:focus-visible,
.nav__link.is-active {
  color: var(--color-nori);
}

.nav__link--cta {
  border: 1px solid var(--color-black);
  padding: 8px 20px;
  color: var(--color-black);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.nav__link--cta:hover,
.nav__link--cta:focus-visible {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

/* Hamburger (mobile) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-black);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile overlay nav */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px;
}
.nav__overlay.is-open {
  display: flex;
}
.nav__overlay .nav__link {
  font-size: 18px;
  letter-spacing: 0.12em;
}
.nav__overlay .nav__link--cta {
  padding: 12px 32px;
}

@media (max-width: 767px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-beige);
  padding: 2.5rem var(--container-pad);
  text-align: center;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--color-muted);
}

.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--color-rose);
  margin-bottom: 10px;
}

/* ── Hero Section ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  display: grid;
  grid-template-columns: 60fr 40fr;
  overflow: hidden;
}

.hero-photo {
  display: block;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 36px;
}
/* Soft sakura glow behind the hero text */
.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  left: -8%;
  width: 55%;
  height: 75%;
  background: radial-gradient(closest-side, rgba(232, 185, 189, 0.32), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

/* Grain texture overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

.hero__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 100px) var(--container-pad) clamp(48px, 8vw, 100px) var(--container-pad);
}

.hero__h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.1;
  color: var(--color-black);
  margin-bottom: 28px;
  max-width: 680px;
}

.hero__body {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--color-muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero__rule {
  width: 100%;
  max-width: 420px;
  border: none;
  border-top: 1px solid var(--color-beige);
}

.hero__stats {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

/* Hero fluid canvas fills the right column */
.hero__fluid {
  width: 100%;
  height: 100%;
  display: block;
  min-height: 400px;
}

@media (max-width: 1023px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__text {
    padding: 72px var(--container-pad) 48px;
  }
  .hero__image {
    display: block;
    padding: 0 var(--container-pad) 48px;
    position: relative;
    z-index: 2;
  }
  .hero__fluid {
    height: 360px;   /* fixed height: prevents canvas/parent resize loop that made the page jump */
    min-height: 0;
    border-radius: 18px;
  }
  .hero-photo { max-width: 100%; }
  .product-grid { gap: 24px; }
  .product-card { padding: 32px; }
}

/* ── Identity Ticker ───────────────────────────────────── */
.ticker {
  overflow: hidden;
  background: var(--color-sakura-soft);
  border-block: 1px solid var(--color-sakura);
  padding: 13px 0;
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}

.ticker__item {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-rose);
  white-space: nowrap;
}

.ticker__item em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 15px;
  color: var(--color-nori);
}

@keyframes tickerScroll {
  to { transform: translateX(-50%); }
}

/* ── Story Section ─────────────────────────────────────── */
.story {
  position: relative;
  background: var(--color-sakura-soft);
  padding: clamp(64px, 10vw, 120px) 0;
  overflow: hidden;
}

.story__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.story h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.12;
  color: var(--color-black);
  margin-bottom: 20px;
}

.story__malay {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  color: var(--color-rose);
}

.story__body p {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--color-muted);
  margin-bottom: 20px;
  max-width: 560px;
}

.story__body p strong {
  color: var(--color-black);
  font-weight: 500;
}

.story__values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--color-sakura);
}

.story-value__label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  color: var(--color-rose);
  margin-bottom: 8px;
}

.story-value__desc {
  font-family: var(--font-ui);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

@media (max-width: 767px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__values { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Products Section ──────────────────────────────────── */
.products {
  background: var(--color-white);
  padding: clamp(64px, 10vw, 120px) 0;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  color: var(--color-black);
  margin-bottom: 16px;
}

.section-heading p {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--color-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.product-card {
  border: 1px solid var(--color-beige);
  padding: 40px;
  transition: border-color var(--transition);
  cursor: default;
}
.product-card:hover {
  border-color: var(--color-nori-light);
}

.product-card__image {
  aspect-ratio: 4 / 3;
  margin-bottom: 28px;
  overflow: hidden;
}

.product-card__img {
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  margin: -12px;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: translate(var(--px, 0px), var(--py, 0px));
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* Product tier badges */
.product-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 5px 12px;
  margin-bottom: 16px;
}

.product-badge--flagship {
  border: 1px solid var(--color-rose);
  color: var(--color-rose);
  background: transparent;
}

.product-badge--reserve {
  background: var(--color-nori);
  color: var(--color-white);
  border: 1px solid var(--color-nori);
}

/* Premium card variant (Hay) */
.product-card--premium {
  border-color: var(--color-nori-light);
  background: linear-gradient(160deg, #f5f3f0 0%, var(--color-white) 60%);
}
.product-card--premium:hover {
  border-color: var(--color-nori);
}
.product-card--premium .product-card__name {
  color: var(--color-nori);
}
.product-card--premium .product-card__divider {
  border-color: var(--color-nori-light);
}

.product-card__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 36px);
  color: var(--color-black);
  margin-bottom: 20px;
}

.product-card__divider {
  border: none;
  border-top: 1px solid var(--color-beige);
  margin-bottom: 24px;
}

.product-card__specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.spec-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-black);
  white-space: nowrap;
}

.spec-value {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--color-muted);
}

.product-card__desc {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.7;
}

@media (max-width: 767px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card {
    padding: 28px;
  }
}

/* ── Clients Section ───────────────────────────────────── */
.clients {
  background: var(--color-beige);
  padding: clamp(64px, 10vw, 120px) 0;
  text-align: center;
}

.clients .section-heading {
  margin-bottom: 56px;
}

.clients-intro {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--color-muted);
  max-width: 560px;
  margin: 16px auto 0;
}

.client-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px 64px;
  max-width: 800px;
  margin: 0 auto 60px;
}

.client-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.client-item i {
  font-size: 28px;
  color: var(--color-nori);
  line-height: 1;
  transition: color var(--transition), transform var(--transition);
}

.client-item:hover i {
  color: var(--color-rose);
  transform: translateY(-3px);
}

.client-item__label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-black);
}

.clients__closing {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--color-brown);
  margin-bottom: 32px;
}

/* ── Contact Page ──────────────────────────────────────── */
.contact {
  background: var(--color-white);
  padding: clamp(56px, 9vw, 100px) 0 clamp(72px, 10vw, 120px);
}

.contact__inner {
  max-width: 680px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.contact__h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  color: var(--color-black);
  margin-bottom: 20px;
}

.contact__subtext {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--color-muted);
  margin-bottom: 48px;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-beige);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--color-black);
}
.contact-detail i {
  font-size: 16px;
  color: var(--color-nori);
  flex-shrink: 0;
}

/* ── Contact Form ──────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-black);
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid var(--color-beige);
  border-radius: 0;
  padding: 14px 16px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-nori);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6560' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-family: var(--font-ui);
  font-size: 12px;
  font-style: italic;
  color: var(--color-muted);
  margin-top: 8px;
}

.form-success {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--color-nori);
  padding: 16px;
  border: 1px solid var(--color-nori-light);
  text-align: center;
}

.form-error {
  font-family: var(--font-ui);
  font-size: 14px;
  color: #a4353f;
  padding: 12px 16px;
  border: 1px solid #a4353f;
}

/* ── Interactive Animations ────────────────────────────── */

/* 1. Hero canvas swirl */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
}

/* 2. Nav glass on scroll */
.nav.is-scrolled {
  background: rgba(249, 247, 244, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(217, 206, 188, 0.6);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-bottom-color 0.4s ease;
}

/* 3. Scroll pour reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for client items */
.client-item.reveal:nth-child(1) { transition-delay: 0ms; }
.client-item.reveal:nth-child(2) { transition-delay: 60ms; }
.client-item.reveal:nth-child(3) { transition-delay: 120ms; }
.client-item.reveal:nth-child(4) { transition-delay: 180ms; }
.client-item.reveal:nth-child(5) { transition-delay: 240ms; }

/* 4. Card liquid highlight (mouse-driven radial glow) */
.product-card {
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(107, 125, 103, 0.12) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}
.product-card:hover::before {
  opacity: 1;
}
.product-card > * {
  position: relative;
  z-index: 1;
}

/* 5. Button drop ripple */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleDrop 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleDrop {
  to {
    transform: scale(80);
    opacity: 0;
  }
}

/* ── Reduced Motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-canvas { display: none; }
  .hero__fluid { display: none; }
  .ticker__track { animation: none; }
  .product-card__img { transition: none; }
  .product-card::before { display: none; }
  .btn-ripple { display: none; }
  .nav.is-scrolled { transition: none; }
}

/* ── Dark Mode ──────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --color-white:       #0f1a0e;
    --color-nori:        #7fa87a;
    --color-nori-light:  #4d6b49;
    --color-beige:       #1e2b1c;
    --color-brown:       #c4a882;
    --color-black:       #efeae1;
    --color-muted:       #8a857f;
    --color-sakura:      #4a3134; /* decorative pink surfaces go deep rosewood */
    --color-sakura-soft: #1d1416; /* blush sections become dark plum */
    --color-rose:        #d9a0a6; /* rose text lightens for contrast */
  }

  /* Hero sakura glow — dimmer on dark */
  .hero::before {
    background: radial-gradient(closest-side, rgba(217, 160, 166, 0.10), transparent 72%);
  }

  /* Nav: slightly opaque bg so it reads on dark hero */
  .nav {
    background: rgba(15, 26, 14, 0.97);
    border-bottom-color: #1e2b1c;
  }
  .nav.is-scrolled {
    background: rgba(15, 26, 14, 0.88);
  }
  .nav__overlay {
    background: #0f1a0e;
  }

  /* Product card liquid highlight — lighter on dark bg */
  .product-card::before {
    background: radial-gradient(
      320px circle at var(--mx, 50%) var(--my, 50%),
      rgba(127, 168, 122, 0.14) 0%,
      transparent 70%
    );
  }

  /* Premium card gradient */
  .product-card--premium {
    background: linear-gradient(160deg, #1a2a18 0%, var(--color-white) 60%);
  }

  /* Form fields: slightly lighter than page bg so they're distinguishable */
  .form-input,
  .form-select,
  .form-textarea {
    background-color: #132011;
    border-color: #2a3d28;
    color: var(--color-black);
  }
  /* Swap chevron to a lighter stroke so it's visible on dark bg */
  .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a857f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  }

  /* Ripple: slightly visible on dark bg */
  .btn-ripple {
    background: rgba(127, 168, 122, 0.25);
  }
}

/* ── Small phones ── */
@media (max-width: 479px) {
  .client-grid { gap: 32px 40px; }
}

@media (prefers-color-scheme: dark) {
  .form-error { color: #f2b8b5; border-color: #f2b8b5; }
}
