/* =====================================================================
   BINCHOTAN WHOLESALE · binchotan-wholesale.com
   Art direction: refined Japanese "sumi-e & hanko". Warm cream, near-black,
   seal red. Shippori Mincho display (carries kanji) + DM Sans.
   Signature devices, unique to this site:
     - centered two-tier masthead nav (brand over a centered link rail)
     - sumi-e brush stroke that inks itself in under every h1/h2
     - a pressed hanko seal (炭) stamped on the hero
     - vertical tategaki kanji (備長炭) as hero accent and footer wordmark
   No round kicker dot (that belongs to chebe/bamboo); kicker uses a brush
   tick. Footer is an asymmetric tategaki split, not a centered wordmark.
   ===================================================================== */

/* -------------------- Design tokens (mandated) -------------------- */
:root {
  --bg: #FAF3E8;
  --text: #1A0A0A;
  --accent: #CC1C1C;
  --accent-light: #F5C0C0;
  --font-display: 'Shippori Mincho', serif;
  --font-body: 'DM Sans', sans-serif;

  --accent-deep: #A11515;                         /* hovers */
  --surface: #FFFFFF;                            /* cards */
  --surface-alt: #F1E7D6;                         /* alt sections */
  --dark: #1A0A0A;                              /* dark section + footer */
  --on-dark: #FAF3E8;
  --border: rgba(26, 10, 10, 0.14);
  --border-dark: rgba(250, 243, 232, 0.16);
  --accent-soft: rgba(204, 28, 28, 0.10);
  --danger: #A11515;

  --fs-h1: clamp(2.8rem, 6.8vw, 5rem);
  --fs-h2: clamp(2.1rem, 4.4vw, 3.3rem);
  --fs-h3: 1.5rem;
  --fs-body: 1.05rem;
  --fs-small: 0.9rem;

  --gap: 24px;
  --section-pad: clamp(84px, 8vw, 128px);
  --maxw: 1160px;
  --radius: 6px;
  --shadow: 0 22px 50px -30px rgba(26, 10, 10, 0.35);
}

/* -------------------- Reset -------------------- */
::selection { background: var(--accent); color: var(--bg); }
::-moz-selection { background: var(--accent); color: var(--bg); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  border-top: 4px solid var(--accent);           /* Japanese top hairline */
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.15; letter-spacing: 0.01em; }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

/* -------------------- Layout -------------------- */
.section-inner { width: min(100% - 3rem, var(--maxw)); margin-inline: auto; }
.container-narrow { max-width: 760px; }
section { padding: var(--section-pad) 0; position: relative; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--dark); color: var(--on-dark); }

.section-head { max-width: 760px; margin-bottom: clamp(2.4rem, 5vw, 3.4rem); }
/* Brush tick before each kicker (a vertical sumi mark, not a round dot) */
/* No kicker on this site: every one merely paraphrased its own h2, and the
   sumi-e stroke under each h2 already carries the section head. The brush
   tick now marks the hero specs instead. */
.section-sub { font-size: 1.12rem; opacity: 0.78; margin-top: 0.9rem; }

/* Sumi-e brush stroke: inks itself in under each section h2 (signature).
   Visible by default (no-JS / reduced-motion); only hides+draws once JS
   adds .reveal, per the progressive-enhancement rule. */
.section-head h2 { position: relative; }
.section-head h2::after {
  content: "";
  display: block;
  width: 132px;
  height: 15px;
  margin-top: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24'%3E%3Cpath d='M3 13 C 40 5 70 8 100 9 C 140 10 172 6 197 11 C 172 18 150 15 118 15 C 80 15 45 20 3 13 Z' fill='%23CC1C1C'/%3E%3C/svg%3E") no-repeat left center / contain;
  clip-path: none;
  transition: clip-path 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.section-head.reveal h2::after { clip-path: inset(0 100% 0 0); }
.section-head.reveal.is-visible h2::after { clip-path: inset(0 0 0 0); }

/* -------------------- Image placeholder system -------------------- */
.img-frame {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--accent-soft);
}
.img-frame.ratio-16x9 { aspect-ratio: 16 / 9; }
.img-frame.ratio-4x3 { aspect-ratio: 4 / 3; }
.img-frame.ratio-4x5 { aspect-ratio: 4 / 5; }
.img-frame.ratio-1x1 { aspect-ratio: 1 / 1; }
.img-real { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.img-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: monospace;
  font-size: 12px;
}
.img-frame.img-missing .img-real { display: none; }
.img-frame.img-missing .img-placeholder { display: flex; }

/* -------------------- Nav: floating centered two-tier masthead -------------------- */
/* A detached rounded card that floats over a fade. Floating like chebe, but its
   own skin: red-tinted edge + centered two-tier layout, not chebe's single pill. */
#nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 0.9rem;
  background: linear-gradient(var(--bg) 60%, rgba(250, 243, 232, 0));
}
.nav-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
  padding: 0.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(204, 28, 28, 0.18);
  border-radius: 22px;
  box-shadow: 0 18px 42px -26px rgba(26, 10, 10, 0.5);
  transition: box-shadow 0.3s ease;
}
#nav.is-scrolled .nav-inner { box-shadow: 0 22px 50px -24px rgba(26, 10, 10, 0.55); }
/* Tier 1: brand centered */
.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark { width: 1.8rem; height: 1.8rem; display: block; }
.brand-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.06em; }
/* Tier 2: centered link rail under a hairline */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}
.nav-links a { text-decoration: none; font-size: 0.9rem; font-weight: 500; white-space: nowrap; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { background: var(--accent); color: #fff; padding: 0.5rem 1.05rem; border-radius: 100px; transition: background 0.25s ease; }
.nav-links a.nav-cta:hover { background: var(--accent-deep); color: #fff; }

.lang-toggle {
  font-family: var(--font-body);
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  color: var(--text);
  font-size: var(--fs-small);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.lang-toggle:hover { border-color: var(--accent); background: var(--accent-soft); }
.lang-toggle span { transition: opacity 0.25s ease, color 0.25s ease; }
.lang-toggle:hover .lt-en, .lang-toggle:hover .lt-fr { opacity: 1; }
.lt-sep { opacity: 0.4; margin: 0 3px; }
html[lang="en"] .lt-en { font-weight: 700; color: var(--accent); }
html[lang="fr"] .lt-fr { font-weight: 700; color: var(--accent); }
html[lang="en"] .lt-fr, html[lang="fr"] .lt-en { opacity: 0.5; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); display: block; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.78rem 1.7rem;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.2s, color 0.2s, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 16px 30px -16px rgba(161, 21, 21, 0.55); }
.btn-ghost { border-color: var(--text); color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn-block { width: 100%; border: none; }
.section-dark .btn-primary { background: var(--accent); color: #fff; }
.section-dark .btn-primary:hover { background: var(--accent-light); color: var(--dark); }

/* -------------------- Hero (text left, image right + tategaki rail) -------------------- */
#hero { overflow: hidden; padding-top: clamp(3.5rem, 9vw, 6.5rem); }
.hero-inner { position: relative; display: grid; grid-template-columns: 6fr 5fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-media { position: relative; max-width: 460px; margin-inline: auto; }
.hero-media .img-real { transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.hero-media:hover .img-real { transform: scale(1.04); }

/* Pressed hanko seal stamped on the hero image corner */
.hero-seal {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -14px rgba(161, 21, 21, 0.7);
  transform: rotate(-5deg);
  animation: seal-press 0.6s cubic-bezier(0.34, 1.4, 0.5, 1) 0.5s both;
}
@keyframes seal-press {
  0%   { opacity: 0; transform: rotate(-16deg) scale(1.55); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: rotate(-5deg) scale(1); }
}

/* Vertical tategaki accent running beside the hero */
.hero-kanji {
  position: absolute;
  top: 50%;
  right: -0.4rem;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: 0.28em;
  color: var(--accent);
  opacity: 0.16;
  pointer-events: none;
  user-select: none;
}

.eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.78rem; font-weight: 600; color: var(--accent); margin-bottom: 1.1rem; }
#hero h1 { position: relative; margin-bottom: 1.3rem; }
/* Brush stroke inks in under the H1 */
#hero h1::after {
  content: "";
  display: block;
  width: 150px;
  height: 16px;
  margin-top: 1.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24'%3E%3Cpath d='M3 13 C 40 5 70 8 100 9 C 140 10 172 6 197 11 C 172 18 150 15 118 15 C 80 15 45 20 3 13 Z' fill='%23CC1C1C'/%3E%3C/svg%3E") no-repeat left center / contain;
  clip-path: none;
  transition: clip-path 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
#hero h1.reveal::after { clip-path: inset(0 100% 0 0); }
#hero h1.reveal.is-visible::after { clip-path: inset(0 0 0 0); }
.hero-lead { font-size: clamp(1.15rem, 2.3vw, 1.4rem); max-width: 44ch; opacity: 0.84; margin-bottom: 1.9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.hero-ship { margin: 0 0 1.7rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.88rem; }
/* Inscription column: no pills. The specs hang off one continuous rule,
   each marked by the brush tick this site used to spend on the kicker. */
.hero-specs {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--accent-light);
}
.hero-specs li {
  position: relative;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.hero-specs li::before {
  content: "";
  position: absolute;
  left: calc(-1.25rem - 1.5px);
  top: 0.34em;
  width: 3px;
  height: 0.95rem;
  border-radius: 1px;
  background: var(--accent);
  transform: skewX(-8deg);
}

/* -------------------- Products: Kishu range, 4 references -------------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, border-color 0.32s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 32px 58px -32px rgba(26, 10, 10, 0.4); border-color: var(--accent); }
.product-card .img-frame { border-radius: 0; }
.product-card .img-real { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.product-card:hover .img-real { transform: scale(1.05); }
.product-body { padding: 1.3rem; }
.product-origin { display: inline-block; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.66rem; font-weight: 600; color: var(--accent); border: 1px solid var(--accent-light); padding: 0.22rem 0.55rem; border-radius: 100px; margin-bottom: 0.6rem; }
.product-body h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.product-body p { margin: 0; opacity: 0.82; font-size: 0.98rem; }

/* -------------------- Packaging: text cards -------------------- */
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); max-width: 1000px; margin-inline: auto; }
.pack-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); transition: transform 0.3s ease, border-color 0.3s ease; }
.pack-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.pack-card h3 { margin-bottom: 0.5rem; }
.pack-card p { margin: 0; opacity: 0.82; }
.pack-note-global { text-align: center; margin: clamp(2.2rem, 5vw, 3rem) auto 0; color: var(--accent); font-weight: 600; }

/* -------------------- Certification feature (in why) -------------------- */
.cert-feature { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.cert-media { background: none; max-width: 250px; }
.cert-media .img-real { object-fit: contain; filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.16)); transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.cert-media:hover .img-real { transform: scale(1.05); }
.cert-copy h3 { font-size: 1.9rem; margin-bottom: 0.9rem; }
.cert-copy p { opacity: 0.85; margin: 0; }

/* -------------------- Why us: grid -------------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.8rem, 4vw, 2.6rem) var(--gap); }
.why-item { padding-top: 1.1rem; border-top: 2px solid var(--accent); transition: transform 0.3s ease; }
.why-item:hover { transform: translateY(-4px); }
.why-item h3 { margin-bottom: 0.4rem; }
.why-item p { margin: 0; opacity: 0.82; }

/* -------------------- Process: usage (image + steps) -------------------- */
.process-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.usage-media .img-real { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.usage-media:hover .img-real { transform: scale(1.05); }
.steps { display: grid; gap: 1.5rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.step-num { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; transition: transform 0.3s ease; }
.step:hover .step-num { transform: scale(1.08); }
.step h3 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.step p { margin: 0; opacity: 0.82; }

/* -------------------- Collaboration process: horizontal hanko flow -------------------- */
/* Distinct from the vertical usage steps above: a horizontal timeline with
   tilted square "seal" nodes joined by a connector line. */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 3vw, 2rem); }
.flow-step { position: relative; }
.flow-num {
  position: relative;
  z-index: 1;
  width: 2.7rem; height: 2.7rem;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  margin-bottom: 1.1rem;
  transform: rotate(-4deg);
  transition: transform 0.3s ease;
}
.flow-step:hover .flow-num { transform: rotate(0deg) translateY(-3px); }
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 2.7rem;
  right: calc(-1 * clamp(1.2rem, 3vw, 2rem));
  height: 2px;
  background: var(--accent-light);
  z-index: 0;
}
.flow-step h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.flow-step p { margin: 0; opacity: 0.82; font-size: 0.96rem; }

/* -------------------- OEM: centered on dark (no image) -------------------- */
.oem-inner { max-width: 720px; margin-inline: auto; text-align: center; }
.oem-inner h2 { position: relative; margin-bottom: 1.2rem; }
.oem-inner h2::after {
  content: "";
  display: block;
  width: 132px;
  height: 15px;
  margin: 1rem auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24'%3E%3Cpath d='M3 13 C 40 5 70 8 100 9 C 140 10 172 6 197 11 C 172 18 150 15 118 15 C 80 15 45 20 3 13 Z' fill='%23F5C0C0'/%3E%3C/svg%3E") no-repeat center / contain;
  clip-path: none;
  transition: clip-path 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.oem-inner h2.reveal::after { clip-path: inset(0 100% 0 0); }
.oem-inner h2.reveal.is-visible::after { clip-path: inset(0 0 0 0); }

/* -------------------- Japanese kanji accents (sparing) -------------------- */
.jp-watermark {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
/* Usage: a faint vertical 水 (water) beside the purification steps */
#usage { overflow: hidden; }
#usage .section-inner { position: relative; z-index: 1; }
.jp-water {
  top: clamp(3.5rem, 10vw, 6.5rem);
  right: clamp(0.5rem, 3vw, 2.5rem);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--accent);
  opacity: 0.09;
}
/* OEM: a large 炭 (charcoal) watermark behind the dark panel */
#oem { overflow: hidden; }
#oem .oem-inner { position: relative; z-index: 1; }
.jp-char {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(9rem, 30vw, 22rem);
  color: var(--on-dark);
  opacity: 0.05;
}
.oem-lead { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.9; }

/* -------------------- Related -------------------- */
.related-copy { font-size: 1.12rem; opacity: 0.82; text-align: center; }
.related-links { text-align: center; }
.related-links a { color: var(--accent); font-weight: 600; transition: color 0.2s ease; }
.related-links a:hover { color: var(--accent-deep); }

/* -------------------- FAQ (accordion, mandated) --------------------
   Sumi line list: hairline top/bottom rules. On open, a seal-red left
   accent bar inks in (inset shadow), the question turns accent, and the
   plain "+" mark crosses to an "x". Refined, quiet, hanko-red. */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); transition: box-shadow 0.3s ease, background-color 0.3s ease; }
.faq-item[open] { box-shadow: inset 3px 0 0 var(--accent); background: var(--accent-soft); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; transition: padding-left 0.3s ease; }
.faq-item[open] summary { padding-left: 1.1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { display: inline; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; transition: color 0.2s ease; }
.faq-item summary:hover .faq-q { color: var(--accent); }
.faq-item[open] .faq-q { color: var(--accent); }
.faq-item summary::after { content: "+"; position: absolute; right: 0.2rem; top: 1.2rem; font-size: 1.7rem; font-weight: 400; line-height: 1; color: var(--accent); transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 0 1.4rem; overflow: hidden; transition: height 0.28s ease; }
.faq-item[open] .faq-body { padding-left: 1.1rem; }
.faq-body p { margin: 0; opacity: 0.82; }

/* -------------------- Contact form -------------------- */
#contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
/* Required / optional field markers */
#contact-form::before {
  content: "Fields marked * are required.";
  display: block;
  font-size: 0.82rem;
  opacity: 0.68;
  margin-bottom: 0.2rem;
}
html[lang="fr"] #contact-form::before { content: "Les champs marqués * sont obligatoires."; }
.field label:has(+ input:required)::after,
.field label:has(+ select:required)::after,
.field label:has(+ textarea:required)::after {
  content: " *";
  color: var(--accent);
  font-weight: 700;
}
.field label:has(+ input:not([required]))::after {
  content: " (optional)";
  font-weight: 400;
  opacity: 0.6;
}
html[lang="fr"] .field label:has(+ input:not([required]))::after { content: " (facultatif)"; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.82rem; }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; }
.form-status { text-align: center; min-height: 1.4rem; margin: 0.4rem 0 0; }
.form-status.is-ok { color: var(--accent); font-weight: 600; }
.form-status.is-error { color: var(--danger); }

/* -------------------- Footer: asymmetric tategaki split -------------------- */
#footer { background: var(--dark); color: var(--on-dark); padding: clamp(3.2rem, 6vw, 4.6rem) 0 1.9rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.footer-lead { display: flex; align-items: flex-start; gap: 1.5rem; }
.footer-kanji {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  letter-spacing: 0.16em;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}
.footer-brand-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 0.7rem; color: var(--on-dark); }
.footer-tagline { max-width: 42ch; opacity: 0.72; line-height: 1.6; margin: 0; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0.85rem; padding-top: 0.4rem; }
.footer-nav a { color: var(--on-dark); text-decoration: none; opacity: 0.78; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.08em; transition: opacity 0.15s, color 0.15s, padding-left 0.2s; }
.footer-nav a:hover { opacity: 1; color: var(--accent-light); padding-left: 5px; }
.footer-bar { grid-column: 1 / -1; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--border-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.5rem; }
.footer-ship { font-weight: 500; opacity: 0.82; margin: 0; }
.footer-copy { font-size: var(--fs-small); opacity: 0.55; margin: 0; }

/* -------------------- Motion: scroll reveal -------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.product-grid .reveal:nth-child(2), .why-grid .reveal:nth-child(2), .steps .reveal:nth-child(2), .flow .reveal:nth-child(2) { transition-delay: 0.08s; }
.product-grid .reveal:nth-child(3), .why-grid .reveal:nth-child(3), .steps .reveal:nth-child(3), .flow .reveal:nth-child(3) { transition-delay: 0.16s; }
.product-grid .reveal:nth-child(4), .why-grid .reveal:nth-child(4), .steps .reveal:nth-child(4), .flow .reveal:nth-child(4) { transition-delay: 0.24s; }
.why-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.why-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

/* Nav underline */
.nav-links a:not(.nav-cta):not(.lang-toggle) { position: relative; }
.nav-links a:not(.nav-cta):not(.lang-toggle)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.nav-links a:not(.nav-cta):not(.lang-toggle):hover::after { transform: scaleX(1); }

/* -------------------- Floating "Request a quote" CTA -------------------- */
/* Red pill matching .btn-primary. Hidden at top of page, slides up once the
   hero CTA scrolls out of view, hides again over #contact. */
.floating-cta {
  position: fixed; left: 0; right: 0;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  margin-inline: auto; width: fit-content; max-width: calc(100% - 2rem); z-index: 70;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 1.7rem;
  border-radius: 100px;
  box-shadow: 0 14px 34px -12px rgba(0,0,0,0.45);
  text-decoration: none;
  transform: translateY(calc(100% + 2rem));
  opacity: 0; pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease, background 0.2s ease;
}
.floating-cta:hover { background: var(--accent-deep); }
.floating-cta.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }

/* -------------------- Responsive -------------------- */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-inner { gap: 0; padding: 0.5rem 1.2rem; }
  .nav-toggle { display: flex; position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px); left: 0; right: 0;
    width: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.3rem 1.4rem;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
}
@media (max-width: 780px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { grid-row: 1; max-width: 380px; }
  .hero-kanji { display: none; }
  .cert-feature { grid-template-columns: 1fr; }
  .cert-media { grid-row: 1; max-width: 250px; margin-inline: auto; }
  .process-inner { grid-template-columns: 1fr; }
  .usage-media { grid-row: 1; max-width: 460px; margin-inline: auto; }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
  .flow-step:not(:last-child)::after { display: none; }
}
@media (max-width: 680px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .pack-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .hero-seal { width: 60px; height: 60px; font-size: 1.9rem; top: 12px; left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover,
  .product-card:hover,
  .pack-card:hover,
  .why-item:hover,
  .step:hover .step-num,
  .product-card:hover .img-real,
  .cert-media:hover .img-real,
  .usage-media:hover .img-real,
  .hero-media:hover .img-real { transform: none !important; }
  .floating-cta { transition: none; }
  .nav-links a:not(.nav-cta):not(.lang-toggle)::after { display: none; }
  /* Brush strokes stay fully inked; hanko seal skips its press-in */
  #hero h1::after,
  .section-head h2::after,
  .oem-inner h2::after { clip-path: none !important; }
  .hero-seal { animation: none !important; opacity: 1 !important; transform: rotate(-5deg) !important; }
  .flow-step:hover .flow-num { transform: rotate(-4deg) !important; }
}


/* ============ 404 error page ============ */
.error-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
}
.error-page { text-align: center; padding: 40px 24px; max-width: 560px; }
.error-code {
  font-family: var(--font-display);
  font-size: clamp(72px, 18vw, 160px);
  line-height: 1;
  color: var(--accent);
  margin: 0;
}
.error-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 40px);
  margin: 0.25rem 0 1rem;
}
.error-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 2rem;
}
