/* =====================================================================
   TAKESUMI WHOLESALE · takesumi-wholesale.com
   Art direction: technical, premium, Japanese, DARK. Deep navy ground,
   sky-blue accent, Archivo Black display + DM Sans body.
   This is the only dark-theme site in the network.

   Signature devices, unique to this site:
     - centered masthead nav with FLANKING link groups (left | brand | right)
     - technical corner-brackets: kickers read "[ KICKER ]", every image
       frame gets accent corner-bracket marks, each h2 grows a thick accent
       bar on scroll-reveal
     - a faint technical grid / scan-line texture behind the hero
     - the kanji 竹炭 as a bold faint hero accent and a large OEM watermark
     - SQUARE-cornered buttons (2px), not pills
     - a framed-box footer (content inside a thin accent-bordered rectangle)
   No sumi-e brush, no hanko seal, no tategaki (those belong to binchotan);
   takesumi's language is geometric and technical.
   ===================================================================== */

/* -------------------- Design tokens (mandated) -------------------- */
:root {
  --bg: #03224C;
  --text: #EBF4FF;
  --accent: #5BA4F5;
  --accent-light: #1B6FD8;
  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --accent-hi: #8FC2FA;                 /* brighter accent for hovers on dark */
  --on-accent: #03224C;                 /* text sitting on an accent fill */
  --surface: #0C3564;                   /* cards */
  --surface-alt: #052A54;               /* alt sections */
  --panel: #0E3A70;                     /* oem framed panel */
  --border: rgba(235, 244, 255, 0.14);
  --border-accent: rgba(91, 164, 245, 0.5);
  --accent-soft: rgba(91, 164, 245, 0.12);
  --danger: #ff8a8a;

  --fs-h1: clamp(2.6rem, 6.4vw, 4.6rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.1rem);
  --fs-h3: 1.4rem;
  --fs-body: 1.05rem;
  --fs-small: 0.9rem;

  --gap: 24px;
  --section-pad: clamp(84px, 8vw, 128px);
  --maxw: 1160px;
  --radius: 4px;
  --shadow: 0 26px 54px -32px rgba(0, 0, 0, 0.7);
}

/* -------------------- 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: 3px solid var(--accent);
}
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: 400; margin: 0; line-height: 1.14; letter-spacing: 0.005em; }
h1 { font-size: var(--fs-h1); text-transform: uppercase; letter-spacing: 0.01em; }
h2 { font-size: var(--fs-h2); white-space: nowrap; }
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-head { max-width: 760px; margin-bottom: clamp(2.4rem, 5vw, 3.4rem); }
/* Signature bracketed kicker: [ KICKER ] */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.95rem;
}
.section-kicker::before { content: "["; font-weight: 700; }
.section-kicker::after { content: "]"; font-weight: 700; }
.section-sub { font-size: 1.1rem; opacity: 0.82; margin-top: 0.9rem; }

/* Signature: a thick accent bar grows in under each section h2 on reveal.
   Visible by default (no-JS / reduced-motion); only hides+grows once JS
   adds .reveal, per the progressive-enhancement rule. */
.section-head h2 { position: relative; }
.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin-top: 1.1rem;
  background: var(--accent);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.section-head.reveal h2::after { transform: scaleX(0); }
.section-head.reveal.is-visible h2::after { transform: scaleX(1); }

/* -------------------- Image placeholder + corner-bracket frame -------------------- */
.img-frame {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--accent-soft);
  border: 1px solid var(--border);
}
.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-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; }
/* Signature: accent corner-bracket marks at two opposite corners */
.img-frame::before, .img-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 3;
  pointer-events: none;
}
.img-frame::before { top: 10px; left: 10px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.img-frame::after { bottom: 10px; right: 10px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }

/* -------------------- Nav: floating technical module (brand left, links right) -------------------- */
/* A detached bordered panel that floats over a fade, framed by accent corner
   brackets. Floating like chebe, but square + bracketed = takesumi's identity. */
#nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 0.9rem;
  background: linear-gradient(var(--bg) 62%, rgba(3, 34, 76, 0));
}
.nav-inner {
  position: relative;
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding: 0.72rem 1.4rem;
  background: rgba(10, 47, 94, 0.9);
  border: 1px solid var(--border-accent);
  border-radius: 3px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.85);
  transition: box-shadow 0.3s ease;
}
#nav.is-scrolled .nav-inner { box-shadow: 0 22px 52px -24px rgba(0, 0, 0, 0.9); }
/* Technical corner brackets (signature) */
.nav-inner::before,
.nav-inner::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  pointer-events: none;
}
.nav-inner::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.nav-inner::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark { width: 2rem; height: 2rem; display: block; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.04em; color: var(--text); text-transform: uppercase; }

.nav-links { display: none; }              /* mobile: collapsed by default */
.nav-links a { text-decoration: none; color: var(--text); font-size: 0.92rem; font-weight: 500; white-space: nowrap; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { background: var(--accent); color: var(--on-accent) !important; padding: 0.5rem 1.05rem; border-radius: 2px; font-weight: 700; transition: background 0.25s ease; }
.nav-links a.nav-cta:hover { background: var(--accent-hi); }

.lang-toggle {
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: 2px;
  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); }
.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: flex; 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; }

/* mobile dropdown when open */
#nav.is-open .nav-links {
  display: flex;
  flex-basis: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 0.9rem;
  margin-top: 0.3rem;
  border-top: 1px solid var(--border);
}

/* Nav underline animation (excludes CTA + lang toggle) */
.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: -5px;
  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); }

@media (min-width: 861px) {
  .nav-links { display: flex; flex-direction: row; align-items: center; gap: 1.5rem; }
  .nav-toggle { display: none; }
}

/* -------------------- Buttons (SQUARE corners, signature) -------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 0.8rem 1.7rem;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, background 0.2s, color 0.2s, box-shadow 0.25s ease, border-color 0.2s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hi); box-shadow: 0 16px 32px -16px rgba(91, 164, 245, 0.6); }
.btn-ghost { border-color: var(--accent); color: var(--text); }
.btn-ghost:hover { background: var(--accent); color: var(--on-accent); }
.btn-block { width: 100%; border: none; }

/* -------------------- Hero (text left, image right, technical grid) -------------------- */
#hero { overflow: hidden; padding-top: clamp(3.5rem, 9vw, 6rem); }
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(91, 164, 245, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 164, 245, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 72% 34%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 90% 70% at 72% 34%, #000 0%, transparent 72%);
}
/* faint scan-line wash over the whole hero */
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(91, 164, 245, 0.04) 0 1px, transparent 1px 5px);
  opacity: 0.5;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 6fr 5fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-media { position: relative; max-width: 470px; 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); }

/* Bold faint 竹炭 kanji accent floating behind the hero image */
.hero-kanji {
  position: absolute;
  top: -1.6rem;
  right: -0.6rem;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  letter-spacing: 0.05em;
  color: var(--accent);
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
}

.eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.76rem; font-weight: 700; color: var(--accent); margin-bottom: 1.1rem; }
#hero h1 { margin-bottom: 1.3rem; }
.hero-lead { font-size: clamp(1.12rem, 2.2vw, 1.35rem); max-width: 46ch; opacity: 0.86; margin-bottom: 1.9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem; }
.hero-ship { margin: 0 0 1.7rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.84rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-ship::before { content: ""; width: 10px; height: 10px; background: var(--accent); }
.hero-specs { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-specs li { font-size: 0.78rem; font-weight: 600; padding: 0.45rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 2px; }

/* -------------------- Products: technical spec-index (datasheet rows) -------------------- */
/* Horizontal bordered modules read like a spec sheet, not a card grid: an
   index number, a framed thumbnail, and a monospace metadata block per row. */
.spec-index { display: grid; gap: var(--gap); }
.spec-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.spec-row:hover { transform: translateX(5px); border-color: var(--accent); box-shadow: 0 30px 56px -34px rgba(0, 0, 0, 0.75); }
.spec-row.is-large { border-left-color: var(--accent); }
.spec-thumb { border-radius: 2px; }
.spec-thumb .img-real { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.spec-row:hover .img-real { transform: scale(1.05); }
.spec-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 0.2rem; }
.spec-ref { font-family: monospace; font-size: 0.8rem; font-weight: 700; color: var(--accent); border: 1px solid var(--border-accent); border-radius: 2px; padding: 0.12rem 0.45rem; }
.spec-head h3 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.01em; }
/* Filtration flag on the Japanese reference, the one figure that sets it apart. */
.spec-badge {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  border-radius: 2px;
  padding: 0.26rem 0.6rem;
  white-space: nowrap;
}
.spec-meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin: 0.75rem 0 0.9rem; padding: 0.8rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.spec-cell { display: flex; flex-direction: column; gap: 0.15rem; }
.spec-cell dt { font-family: monospace; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.62rem; color: var(--accent); }
.spec-cell dt::before { content: "[ "; }
.spec-cell dt::after { content: " ]"; }
.spec-cell dd { margin: 0; font-weight: 600; font-size: 0.92rem; }
.spec-body > p { margin: 0; opacity: 0.82; font-size: 0.97rem; }

/* -------------------- Why us: features 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; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.01em; }
.why-item p { margin: 0; opacity: 0.82; }

/* -------------------- Usage: vertical spec-readout sequence -------------------- */
/* The water-purification lifecycle as a single-column technical readout: an
   oversized display index per step riding a continuous accent rail, rows ruled
   like a spec sheet, closing on the stick's second life. Deliberately vertical
   and image-less, so it reads nothing like bamboo's image + circle steps or
   this site's horizontal .flow nodes. */
.seq { list-style: none; margin: 0 auto; padding: 0; max-width: 780px; }
.seq-step {
  position: relative;
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: clamp(1rem, 3vw, 1.8rem);
  padding: 1.6rem 0 1.6rem 1.6rem;
  border-top: 1px solid var(--border);
}
.seq-step:last-child { border-bottom: 1px solid var(--border); }
/* continuous accent rail running down the left edge of the column */
.seq-step::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--border-accent);
}
/* hollow square node on the rail, echoing the site's corner-bracket motif */
.seq-step::after {
  content: "";
  position: absolute;
  left: -4px; top: 2rem;
  width: 10px; height: 10px;
  background: var(--surface-alt);
  border: 2px solid var(--accent);
  border-radius: 2px;
  transition: background 0.3s ease;
}
.seq-step:hover::after { background: var(--accent); }
.seq-body { transition: transform 0.3s ease; }
.seq-step:hover .seq-body { transform: translateX(6px); }
.seq-idx {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 0.9;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.seq-body h3 { font-size: 1.15rem; margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.01em; }
.seq-body p { margin: 0; opacity: 0.82; font-size: 0.97rem; }

/* -------------------- Collaboration process: square bracketed flow nodes -------------------- */
/* Distinct from the vertical usage steps: a horizontal timeline with SQUARE
   accent nodes wearing corner-bracket marks, joined by a connector line.
   Not binchotan's tilted seal, not bamboo's hollow circle. */
.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.9rem; height: 2.9rem;
  border-radius: 2px;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.05rem;
  margin-bottom: 1.1rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
/* corner-bracket ticks on the node */
.flow-num::before, .flow-num::after {
  content: "";
  position: absolute;
  width: 7px; height: 7px;
}
.flow-num::before { top: -5px; left: -5px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.flow-num::after { bottom: -5px; right: -5px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.flow-step:hover .flow-num { background: var(--accent); color: var(--on-accent); transform: translateY(-3px); }
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.45rem;
  left: 2.9rem;
  right: calc(-1 * clamp(1.2rem, 3vw, 2rem));
  height: 2px;
  background: var(--border-accent);
  z-index: 0;
}
.flow-step h3 { font-size: 1.15rem; margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.01em; }
.flow-step p { margin: 0; opacity: 0.82; font-size: 0.96rem; }

/* -------------------- OEM: framed panel with 竹炭 watermark -------------------- */
#oem { overflow: hidden; }
#oem .oem-inner { position: relative; z-index: 1; }
.jp-watermark {
  position: absolute;
  font-family: var(--font-display);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(7rem, 26vw, 20rem);
  color: var(--accent);
  opacity: 0.06;
}
.oem-inner {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: clamp(2.4rem, 5vw, 3.6rem);
}
.oem-inner h2 { margin-bottom: 1.2rem; }
.oem-inner .section-kicker { justify-content: center; }
.oem-lead { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }
.oem-media { max-width: 520px; margin: 0 auto 2rem; }
.oem-media .img-real { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.oem-media:hover .img-real { transform: scale(1.05); }

/* -------------------- Related -------------------- */
.related-copy { font-size: 1.1rem; opacity: 0.84; text-align: center; }
.related-links { text-align: center; }
.related-links a { color: var(--accent); font-weight: 700; transition: color 0.2s ease; }
.related-links a:hover { color: var(--accent-hi); }

/* -------------------- FAQ (accordion, mandated) --------------------
   Technical datasheet: each question is a bordered panel with accent
   corner-brackets (matching the image frames), a [ Q01 ] monospace tag,
   and a monospace [ + ] / [ - ] toggle. Panels brighten on open. */
.faq-list { display: grid; gap: 0.8rem; border-top: none; counter-reset: faq; }
.faq-item { counter-increment: faq; position: relative; border: 1px solid var(--border); border-radius: 2px; background: var(--surface-alt); transition: border-color 0.25s ease, background-color 0.25s ease; }
.faq-item[open] { border-color: var(--border-accent); background: var(--surface); }
.faq-item::before,
.faq-item::after { content: ""; position: absolute; width: 9px; height: 9px; pointer-events: none; opacity: 0.4; transition: opacity 0.25s ease; }
.faq-item::before { top: -1px; left: -1px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.faq-item::after { right: -1px; bottom: -1px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }
.faq-item:hover::before, .faq-item:hover::after { opacity: 0.75; }
.faq-item[open]::before, .faq-item[open]::after { opacity: 1; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.1rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { display: inline; font-family: var(--font-body); font-size: 1.12rem; font-weight: 700; color: var(--text); transition: color 0.2s ease; }
.faq-q::before { content: "[ Q" counter(faq, decimal-leading-zero) " ]"; font-family: monospace; font-weight: 400; font-size: 0.8em; letter-spacing: 0.02em; color: var(--accent); margin-right: 0.6rem; }
.faq-item summary:hover .faq-q { color: var(--accent-hi); }
.faq-item summary::after { content: "[ + ]"; position: absolute; right: 0.9rem; top: 1rem; font-family: monospace; font-size: 0.95rem; color: var(--accent); }
.faq-item[open] summary::after { content: "[ - ]"; }
.faq-body { padding: 0 1.1rem 1.2rem; overflow: hidden; transition: height 0.28s ease; }
.faq-body p { margin: 0; opacity: 0.82; }
.faq-body strong { font-weight: 700; color: var(--text); }

/* -------------------- 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: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.74rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  color: var(--text);
  color-scheme: dark;                 /* native dropdown panel renders dark, not white */
  transition: border-color 0.2s, box-shadow 0.2s;
}
/* Country list: light text on the navy panel, in the popup and once selected */
.field select option,
.field select optgroup { background-color: var(--surface); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: rgba(235, 244, 255, 0.5); }
.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: 700; }
.form-status.is-error { color: var(--danger); }

/* -------------------- Footer: framed box (signature) -------------------- */
#footer { padding: clamp(3rem, 6vw, 4.4rem) 0; background: var(--bg); }
.footer-frame {
  width: min(100% - 3rem, var(--maxw));
  margin-inline: auto;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.footer-frame::before, .footer-frame::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  pointer-events: none;
}
.footer-frame::before { top: 12px; left: 12px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.footer-frame::after { bottom: 12px; right: 12px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem 2rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-kanji { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.8rem); color: var(--accent); opacity: 0.85; line-height: 1; flex-shrink: 0; }
.footer-brand-name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.35rem; margin: 0 0 0.3rem; color: var(--text); }
.footer-tagline { max-width: 44ch; opacity: 0.74; margin: 0; font-size: 0.95rem; line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.7rem 1.4rem; margin: 1.8rem 0; padding: 1.4rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.footer-nav a { color: var(--text); text-decoration: none; opacity: 0.8; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.08em; transition: opacity 0.15s, color 0.15s; }
.footer-nav a:hover { opacity: 1; color: var(--accent); }
.footer-bar { 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; }
.spec-index .reveal:nth-child(2), .why-grid .reveal:nth-child(2), .seq .reveal:nth-child(2), .flow .reveal:nth-child(2) { transition-delay: 0.08s; }
.spec-index .reveal:nth-child(3), .why-grid .reveal:nth-child(3), .seq .reveal:nth-child(3), .flow .reveal:nth-child(3) { transition-delay: 0.16s; }
.why-grid .reveal:nth-child(4), .seq .reveal:nth-child(4), .flow .reveal:nth-child(4) { transition-delay: 0.24s; }
.why-grid .reveal:nth-child(5), .seq .reveal:nth-child(5) { transition-delay: 0.32s; }
.why-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

/* -------------------- Floating "Request a quote" CTA -------------------- */
/* Square-cornered accent button 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: 700;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.85rem 1.7rem;
  border-radius: 2px;
  box-shadow: 0 14px 34px -12px rgba(0,0,0,0.6);
  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-hi); }
.floating-cta.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }

/* -------------------- Responsive -------------------- */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { grid-row: 1; max-width: 400px; }
  .hero-kanji { top: -1rem; right: 0; }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .flow-step:not(:last-child)::after { display: none; }
}
@media (max-width: 640px) {
  h2 { white-space: normal; }
  .spec-row { grid-template-columns: 1fr; }
  .spec-thumb { max-width: 320px; }
  .seq-step { grid-template-columns: 2.9rem 1fr; padding-left: 1.3rem; }
  .seq-idx { font-size: 1.6rem; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
}
@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; }
  .section-head h2::after { transform: scaleX(1) !important; }
  .btn:hover,
  .spec-row:hover,
  .seq-step:hover .seq-body,
  .why-item:hover,
  .flow-step:hover .flow-num,
  .spec-row:hover .img-real,
  .oem-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; }
}

/* ============ 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;
}
