/* ============================================================
   yiHom Design System
   Warm minimalist · Japanese × Nordic × B2B
============================================================ */

:root {
  /* Backgrounds */
  --bg-primary:   #F7F1EA;
  --bg-secondary: #F5EDE4;
  --bg-warm:      #EDD9C8;
  --bg-card:      #FFFDF8;
  --bg-card-alt:  #FFFFFF;
  --bg-dark:      #2B160D;
  --bg-cta:       #2B160D;

  /* Text */
  --text-primary:   #3A2116;
  --text-secondary: #6B4A3A;
  --text-muted:     #9A7A68;
  --text-light:     #9A7A68;
  --text-white:     #FAF6F2;

  /* Buttons */
  --btn-primary: #3A1D10;
  --btn-hover:   #5A351F;
  --btn-text:    #FAF6F2;

  /* Borders */
  --border:      #E8D8C8;
  --border-warm: #DEC9B4;

  /* Accent */
  --accent:       #B88A5A;
  --accent-warm:  #B88A5A;
  --accent-brown: #7B4A2D;

  /* Footer */
  --footer-bg:     #F7F1EA;
  --footer-text:   #5A3A2B;
  --footer-muted:  #9A7A68;
  --footer-border: rgba(90,58,43,0.12);

  /* Legacy aliases — keep for backward compat */
  --bg-main:    var(--bg-primary);
  --bg-sub:     var(--bg-secondary);
  --bg-hero-end: var(--bg-warm);
  --text-main:  var(--text-primary);
  --text-sub:   var(--text-secondary);
  --wood-line:  var(--border);
  --card-border: var(--border);
  --card-bg:    var(--bg-card);
  --dark-bg:    var(--bg-dark);
  --dark-bg-2:  #3A200F;
  --dark-unify: #1A1410;   /* Aura night module — distinct from CTA #2B160D */
  --white:      #ffffff;
  --radius:     4px;
  --radius-card: 14px;
  --max-width:  1200px;
  --font-serif: "DM Serif Display", Georgia, serif;
  --font-sans:  "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.2s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  background-image: linear-gradient(rgba(0,0,0,0.015) 1px, transparent 1px);
  background-size: 100% 60px;
  font-size: 18px !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: clamp(3.4rem, 6vw, 4.8rem) !important; }
h2 { font-size: clamp(2.4rem, 4vw, 3.2rem) !important; margin-bottom: 31px; }
h3 { font-size: 1.6rem !important; }

p { margin: 0 0 16px; color: var(--text-sub); font-size: 18px !important; line-height: 1.8 !important; }

section { padding: 96px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 34px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--btn-primary);
  color: var(--btn-text);
}
.btn-primary:hover { background: var(--btn-hover); }

.btn-outline {
  background: transparent;
  border-color: var(--btn-primary);
  color: var(--btn-primary);
}
.btn-outline:hover { background: var(--btn-primary); color: var(--btn-text); }

.btn-light {
  background: var(--text-white);
  color: var(--text-primary);
}
.btn-light:hover { background: var(--bg-warm); color: var(--text-primary); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Header ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  will-change: transform;
  transform: translateZ(0);
  background: rgba(247, 241, 234, 0.96);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { display: block !important; height: 56px !important; width: auto !important; max-width: none !important; flex-shrink: 0; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.nav-link { font-size: 18px !important; font-weight: 600 !important; color: var(--text-secondary); position: relative; padding: 4px 0; transition: color 0.2s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--text-primary); }
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--text-primary);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { opacity: 1; transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px !important;
  font-size: 16px !important;
  font-weight: 600;
  background: transparent;
  border: 1.5px solid var(--text-primary);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--text-primary); color: var(--white); }

.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-main); transition: all var(--transition); }

.trust-bar {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 18px 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-sub);
  border-top: 1px solid var(--wood-line);
  border-bottom: 1px solid var(--wood-line);
  background: var(--bg-hero-end);
}

/* ---------- Image Placeholder ---------- */
.img-placeholder {
  background: var(--card-bg);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-sub);
  font-size: 0.82rem;
  padding: 24px;
  min-height: 280px;
  gap: 8px;
}
.img-placeholder.dark {
  background: var(--dark-bg-2);
  border-color: #3A352E;
  color: #B8AFA0;
}

/* ---------- Grid / Cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(58,33,22,0.1); }
.card h3 { margin-bottom: 8px; }
.card .tag { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-sub); margin-bottom: 12px; display: block; }

.section-bg-sub { background: var(--bg-sub); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head.left { text-align: left; margin: 0 0 48px; }

/* Warm textured section: faint outlines of leg caps, bumper dots and tape curves */
.section-textured {
  position: relative;
  overflow: hidden;
}
.section-textured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 8% 20%, transparent 0 18px, rgba(107,107,101,0.6) 18px 20px, transparent 21px),
    radial-gradient(circle at 92% 75%, transparent 0 14px, rgba(107,107,101,0.6) 14px 16px, transparent 17px),
    radial-gradient(circle at 80% 12%, transparent 0 10px, rgba(168,196,220,0.9) 10px 11.5px, transparent 13px),
    repeating-linear-gradient(100deg, rgba(212,197,176,0.7) 0 2px, transparent 2px 60px);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}
.section-textured > .container { position: relative; z-index: 1; }

/* ---------- Product card media (real photos) ---------- */
.card-media {
  position: relative;
  min-height: 220px;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
}
.card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Featured Product Lines cards: equal-height columns with footers aligned */
#home-series-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
#home-series-grid .card-media { margin-bottom: 12px; }
#home-series-grid .card h3 { font-size: 24px !important; font-weight: 700 !important; margin-bottom: 4px; }
#home-series-grid .card-subtitle {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}
#home-series-grid .card p { font-size: 16px !important; line-height: 1.7 !important; flex: 1; }
#home-series-grid .card .btn { margin-top: auto; align-self: flex-start; font-size: 15px !important; padding: 12px 24px !important; }

.card-media--aura::after {
  content: "";
  position: absolute;
  bottom: 10px; left: 50%;
  width: 60px; height: 60px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(168,196,220,0.35) 0%, rgba(168,196,220,0) 70%);
  pointer-events: none;
}

/* ---------- OEM capability grid ---------- */
.oem-grid-section {
  background: var(--bg-secondary);
  background-image:
    linear-gradient(rgba(123,74,45,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,74,45,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.oem-cell {
  background: var(--bg-card);
  border-width: 0.5px;
}
.oem-cell h3 { color: #3D2010 !important; font-weight: 700 !important; font-size: 18px !important; }
.oem-cell p { color: #7B4A2D !important; font-size: 15px !important; }
.oem-cell .tag { color: var(--text-light); }
.oem-grid-section .section-head h2 { margin-bottom: 51px; }
.oem-grid-section .btn-outline { padding: 16px 36px; font-size: 14px; }

/* ---------- Dark CTA scene ---------- */
.cta-dark { position: relative; overflow: hidden; }
.cta-dark-glow {
  position: absolute;
  top: -80px; left: 50%;
  width: 600px; height: 300px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(180,150,80,0.08) 0%, rgba(180,150,80,0) 70%);
  pointer-events: none;
}
.cta-dark-scene {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30%;
  opacity: 0.04;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.6) 0 1px, transparent 1px 50px);
  pointer-events: none;
}
.cta-dark .container { position: relative; z-index: 1; }

/* ---------- Aura Glow Visual ---------- */
.aura-visual {
  position: relative;
  background: var(--dark-unify);
  border-radius: var(--radius-card);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Dark tint overlay so the glow rings stay legible above carousel photos */
.aura-visual--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20,16,10,0.5);
  pointer-events: none;
}
.aura-visual .floor-lines-dark {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 50px
  );
  pointer-events: none;
}
.aura-warm-corner {
  position: absolute;
  top: -50px; right: -30px;
  width: 220px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,220,150,0.08) 0%, rgba(255,220,150,0) 70%);
  pointer-events: none;
}
.aura-room-leg {
  position: absolute;
  bottom: 22%;
  left: 30%;
  width: 12px;
  height: 180px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  pointer-events: none;
}
.aura-room-cap {
  position: absolute;
  bottom: 22%;
  left: calc(30% - 7px);
  width: 26px;
  height: 34px;
  background: rgba(168,196,220,0.25);
  border: 1px solid rgba(168,196,220,0.5);
  border-radius: 0 0 10px 10px;
  pointer-events: none;
}
.aura-rings {
  position: relative;
  width: 220px;
  height: 220px;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(168,196,220,0.2);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseRing 3s ease-in-out infinite;
}
.ring-1 { width: 80px; height: 80px; animation-delay: 0s; }
.ring-2 { width: 140px; height: 140px; animation-delay: 0.4s; }
.ring-3 { width: 200px; height: 200px; animation-delay: 0.8s; }

.glow-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 46px; height: 46px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(248,235,220,0.55) 0%, rgba(248,235,220,0.18) 60%, rgba(248,235,220,0) 100%);
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseRing {
  0% { opacity: 0.10; transform: translate(-50%, -50%) scale(0.92); }
  50% { opacity: 0.32; transform: translate(-50%, -50%) scale(1.04); }
  100% { opacity: 0.10; transform: translate(-50%, -50%) scale(0.92); }
}

@keyframes pulseGlow {
  0% { opacity: 0.3; box-shadow: 0 0 24px 8px rgba(248,235,220,0.12); }
  50% { opacity: 0.75; box-shadow: 0 0 44px 18px rgba(248,235,220,0.3); }
  100% { opacity: 0.3; box-shadow: 0 0 24px 8px rgba(248,235,220,0.12); }
}

.aura-caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #B8AFA0; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-text { order: 1; }

.spec-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.spec-table td, .spec-table th { padding: 10px 0; border-bottom: 1px solid var(--wood-line); font-size: 0.92rem; text-align: left; }
.spec-table th { color: var(--text-sub); font-weight: 500; width: 40%; }

ul.feature-list { list-style: none; padding: 0; margin: 0 0 24px; }
ul.feature-list li { padding-left: 22px; position: relative; margin-bottom: 10px; color: var(--text-main); }
ul.feature-list li::before { content: "—"; position: absolute; left: 0; color: var(--text-sub); }

/* ---------- Dark CTA ---------- */
.cta-dark {
  background: var(--bg-cta);
  color: var(--text-white);
  text-align: center;
  padding: 100px 0;
}
.cta-dark h2 { color: var(--text-white); }
.cta-dark p { color: rgba(250,246,242,0.7); max-width: 560px; margin: 0 auto 32px; }
.cta-dark .btn-row { justify-content: center; }
.cta-dark .btn-light { background: var(--text-white); color: var(--bg-cta); }
.cta-dark .btn-light:hover { background: var(--bg-warm); }
.cta-dark .btn-outline { border: 1px solid rgba(250,246,242,0.4); color: var(--text-white); background: transparent; }
.cta-dark .btn-outline:hover { border-color: rgba(250,246,242,0.8); background: rgba(250,246,242,0.08); color: var(--text-white); }

/* ---------- Footer ---------- */
#site-footer { background: var(--footer-bg); border-top: none; margin-top: 0; }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 32px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { display: inline-block; }
.footer-brand img { height: 72px !important; width: auto !important; }
.footer-tagline { font-size: 16px !important; margin: 14px 0 4px; color: var(--footer-text); }
.footer-company { font-size: 14px !important; color: var(--footer-text); }
.footer-col h4 { font-size: 14px !important; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; color: var(--text-primary); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { font-size: 14px !important; color: var(--footer-text); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  text-align: center;
  padding: 18px 0;
  font-size: 14px !important;
  color: var(--footer-muted);
  background: #EDE0D0;
  border-top: 1px solid var(--footer-border);
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 20px; max-width: 640px; }
label { display: block; font-size: 0.85rem; margin-bottom: 6px; color: var(--text-main); }
input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184,138,90,0.12); }

/* ---------- Full-bleed Hero ---------- */
.hero-full {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-image: url('../images/aura/aura-scene.jpg');
  background-size: cover;
  background-position: center 70%;
}
.hero-full-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(30,15,5,0.75) 0%, rgba(30,15,5,0.4) 60%, rgba(30,15,5,0.1) 100%);
}
.hero-full-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero-full-content h1 { color: var(--bg-main); }
.hero-full-content .lead { color: #E7E0D3; max-width: 480px; line-height: 1.85; }
.hero-full-content .btn { padding: 14px 28px; }
.btn-outline--light { border-color: var(--bg-main); color: var(--bg-main); }
.btn-outline--light:hover { background: var(--bg-main); color: var(--text-main); }

/* ---------- Aura banner (full-width feature) ---------- */
.aura-banner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: #1A1410;
  min-height: 480px;
}
.aura-banner-visual {
  position: relative;
  min-height: 100%;
}
.aura-banner-text {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--bg-main);
}
.aura-banner-text h2 { color: var(--bg-main); }
.aura-banner-text p { color: #D8CFC2; max-width: 460px; }
.aura-banner-text .feature-list li { color: #E7E0D3; }
.aura-banner-text .feature-list li::before { color: #B8AFA0; }


/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Carousel ---------- */
.carousel { position: relative; overflow: hidden; }
.carousel--bg { position: absolute; inset: 0; }
.carousel--card { min-height: 420px; border-radius: var(--radius-card); }
.carousel-track { position: absolute; inset: 0; }
.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.carousel-slide.is-active { opacity: 1; }
.carousel-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--card-bg), var(--bg-sub));
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background var(--transition);
}
.carousel-arrow:hover { background: rgba(255,255,255,0.4); }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.carousel-dot.is-active { background: #fff; }
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}

/* ---------- Page banner (sub-page top image) ---------- */
.page-banner {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26,22,16,0.45) 0%, rgba(26,22,16,0.62) 100%);
}
.page-banner-content { position: relative; z-index: 2; color: var(--bg-main); }
.page-banner-content h1 { color: var(--bg-main); }
.page-banner-content p { color: #E7E0D3; }

/* ---------- Page Hero (sub pages) ---------- */
.page-hero { padding: 80px 0 60px; background: var(--bg-sub); text-align: center; }
.page-hero.dark { background: var(--dark-bg); color: var(--bg-main); }
.page-hero.dark h1 { color: var(--bg-main); }
.page-hero.dark p { color: #D8CFC2; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4, .grid-3, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media, .split.reverse .split-text { order: initial; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .aura-banner { grid-template-columns: 1fr; }
  .aura-banner-visual { min-height: 320px; }
  .aura-banner-text { padding: 56px 40px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-main);
    flex-direction: column;
    padding: 16px 32px;
    border-bottom: 1px solid var(--wood-line);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .grid-4, .grid-3, .grid-6, .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero-full { min-height: 520px; }
  .hero-full-content { max-width: 100%; }
  .aura-banner-text { padding: 48px 24px; }
}

/* ============================================================
   EXTENDED STYLES — v2 Polish Pass
   ============================================================ */

/* ---- Scrolled header — colour/shadow only, no size change ---- */
#site-header.is-scrolled {
  background: rgba(247, 241, 234, 0.98);
  box-shadow: 0 1px 12px rgba(58,33,22,0.08);
  border-bottom-color: var(--border);
}

/* Transparent header for hero pages (homepage + aura) */
body[data-page="index.html"] #site-header,
body[data-page="aura.html"] #site-header {
  background: transparent;
  border-bottom-color: transparent;
  margin-bottom: -72px;
}
body[data-page="index.html"] #site-header.is-scrolled,
body[data-page="aura.html"] #site-header.is-scrolled {
  background: rgba(247, 241, 234, 0.97);
  border-bottom-color: var(--border);
}
body[data-page="index.html"] #site-header:not(.is-scrolled) .nav-link,
body[data-page="aura.html"] #site-header:not(.is-scrolled) .nav-link {
  color: rgba(253,248,243,0.82);
}
body[data-page="index.html"] #site-header:not(.is-scrolled) .nav-link:hover,
body[data-page="index.html"] #site-header:not(.is-scrolled) .nav-link.is-active,
body[data-page="aura.html"] #site-header:not(.is-scrolled) .nav-link:hover,
body[data-page="aura.html"] #site-header:not(.is-scrolled) .nav-link.is-active { color: #fff; }
body[data-page="index.html"] #site-header:not(.is-scrolled) .nav-cta,
body[data-page="aura.html"] #site-header:not(.is-scrolled) .nav-cta {
  border-color: rgba(253,248,243,0.6);
  color: rgba(253,248,243,0.9);
}
body[data-page="index.html"] #site-header:not(.is-scrolled) .nav-cta:hover,
body[data-page="aura.html"] #site-header:not(.is-scrolled) .nav-cta:hover {
  background: rgba(253,248,243,0.15);
  color: #fff;
}
body[data-page="index.html"] #site-header:not(.is-scrolled) .nav-toggle span,
body[data-page="aura.html"] #site-header:not(.is-scrolled) .nav-toggle span { background: #fff; }
body[data-page="index.html"] #site-header.is-scrolled .nav-toggle span,
body[data-page="aura.html"] #site-header.is-scrolled .nav-toggle span { background: var(--text-main); }

/* ---- Section anchor offset for sticky header ---- */
section,
.section,
[id] { scroll-margin-top: 90px; }

/* ---- Hero slow zoom on carousel active slide ---- */
@keyframes heroSlowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}
.hero-full .carousel-slide.is-active {
  animation: heroSlowZoom 14s ease-out forwards;
}

/* ---- Card image hover scale ---- */
.card-media img { transition: transform 0.6s ease; }
.card:hover .card-media img { transform: scale(1.04); }

/* ---- Spec tags ---- */
.spec-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.spec-tag strong { color: var(--text-primary); font-weight: 600; }

/* ---- Note / disclaimer text ---- */
.note-text {
  font-size: 13px !important;
  color: var(--text-light) !important;
  line-height: 1.6 !important;
  border-left: 2px solid var(--border);
  padding-left: 12px;
  margin-top: 20px;
}

/* ---- Benefit icons ---- */
.benefit-icon { margin-bottom: 16px; }
.benefit-icon svg { width: 36px; height: 36px; color: var(--text-secondary); }

/* ---- Scenario cards ---- */
.scenario-card { text-align: center; }
.scenario-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.scenario-icon svg { width: 28px; height: 28px; color: var(--text-secondary); }

/* ---- Placeholder icon helpers ---- */
.placeholder-icon { width: 44px; height: 44px; }
.placeholder-icon svg { width: 100%; height: 100%; color: var(--text-light); }
.placeholder-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

/* ---- FAQ list ---- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 28px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 1.05rem !important; font-weight: 600 !important; color: var(--text-primary) !important; margin-bottom: 12px; font-family: var(--font-sans); }
.faq-item > p:last-child { margin: 0; font-size: 16px !important; }

/* ---- OEM process steps ---- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 8px;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 23px; left: 12%; right: 12%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 1; }
.process-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--text-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
  margin: 0 auto 16px;
}
.process-step h3 { font-size: 1rem !important; margin-bottom: 8px; font-family: var(--font-sans); font-weight: 600 !important; }
.process-step > p { font-size: 14px !important; line-height: 1.6 !important; color: var(--text-secondary) !important; }

/* ---- How We Work (homepage) ---- */
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.how-step-num {
  font-size: clamp(2.4rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--accent-warm);
  line-height: 1;
  margin-bottom: 14px;
  font-family: var(--font-serif);
  display: block;
}
.how-step h3 { font-size: 1.05rem !important; font-weight: 600 !important; font-family: var(--font-sans); margin-bottom: 8px; color: var(--text-primary); }
.how-step p { font-size: 15px !important; }

/* ---- Aura page hero (dark full-bleed) ---- */
.aura-page-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: var(--dark-unify);
  overflow: hidden;
}
.aura-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(18,10,4,0.94) 0%, rgba(18,10,4,0.65) 55%, rgba(18,10,4,0.2) 100%);
  z-index: 2;
}
.aura-hero-rings {
  position: absolute;
  right: 14%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
}
.aura-hero-content {
  position: relative;
  z-index: 4;
  max-width: 580px;
  color: var(--bg-main);
}
.aura-hero-content h1 { color: var(--bg-main); }
.aura-hero-content .lead { color: #D0C7B8; max-width: 480px; line-height: 1.85; }

/* ---- OEM icon cards ---- */
.oem-icon-card .oem-card-icon {
  width: 44px; height: 44px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.oem-icon-card .oem-card-icon svg { width: 100%; height: 100%; }

/* ---- Contact info box ---- */
.contact-info-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  padding: 32px;
  border: 1px solid var(--border);
}
.contact-detail { padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-detail:last-child { border-bottom: none; padding-bottom: 0; }
.contact-detail-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); margin-bottom: 4px; display: block; }
.contact-detail-value { font-size: 0.95rem; color: var(--text-primary); font-weight: 500; }
.contact-detail-value a { color: var(--text-primary); text-underline-offset: 3px; text-decoration: underline; }
.contact-detail-value a:hover { color: var(--text-secondary); }
.contact-pending-note { margin-top: 16px; font-size: 0.78rem !important; color: var(--text-secondary) !important; line-height: 1.5 !important; }

/* ---- Form layout helpers ---- */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success-msg {
  display: none;
  padding: 20px 24px;
  background: var(--bg-warm);
  border-radius: var(--radius-card);
  border-left: 3px solid var(--text-secondary);
  margin-bottom: 24px;
}
.form-success-msg.is-visible { display: block; }
.form-success-msg p { font-size: 1rem !important; margin: 0; color: var(--text-primary) !important; }

/* ---- Custom select arrow ---- */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237B4A2D' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

/* ---- Markets grid (About page) ---- */
.markets-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.market-item {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.market-item h3 { font-size: 1.1rem !important; margin-bottom: 8px; font-family: var(--font-sans); font-weight: 600 !important; }
.market-item p { margin: 0; font-size: 15px !important; }

/* ---- Prefers reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
  .ring { animation: none !important; opacity: 0.2; }
  .glow-core { animation: none !important; }
  .carousel-slide { transition: opacity 0.1s !important; }
  .hero-full .carousel-slide.is-active { animation: none !important; }
  .card-media img { transition: none !important; }
  #site-header { transition: none !important; }
}

/* ---- Extended responsive ---- */
@media (max-width: 960px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid::before { display: none; }
  .how-steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .aura-hero-rings { right: 4%; transform: translateY(-50%) scale(0.75); }
  .markets-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  h1 { font-size: clamp(2.4rem, 9vw, 3.4rem) !important; }
  h2 { font-size: clamp(1.9rem, 6vw, 2.4rem) !important; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .how-steps { grid-template-columns: 1fr; gap: 20px; }
  .aura-hero-rings { display: none; }
  .aura-page-hero { min-height: 500px; }
  .contact-info-box { padding: 24px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  h2 { font-size: clamp(1.7rem, 7vw, 2rem) !important; }
  .process-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   V3 NEW COMPONENTS
   ============================================================ */

/* ---- Product Quick Bar ---- */
.product-bar {
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
}
.product-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.product-bar-item {
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  transition: background 0.2s ease;
  text-decoration: none;
  gap: 4px;
}
.product-bar-item:last-child { border-right: none; }
.product-bar-item:hover { background: var(--bg-secondary); }
.product-bar-item strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}
.product-bar-item span {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ---- Asymmetric series grid (Aura featured) ---- */
.series-grid-asym {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.series-card-featured .card-media { min-height: 300px; }
.series-card-featured .card-media img { height: 300px; }

/* ---- Application Scenes ---- */
.scene-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.scene-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(58,33,22,0.09); }
.scene-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.scene-icon svg { width: 24px; height: 24px; color: var(--text-secondary); }
.scene-card h3 { font-size: 0.97rem !important; font-weight: 600 !important; font-family: var(--font-sans); margin-bottom: 6px; }
.scene-card p { font-size: 14px !important; line-height: 1.65 !important; margin: 0; }

/* ---- Materials grid ---- */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.material-card {
  padding: 28px 16px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.material-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.material-card p { font-size: 14px !important; color: var(--text-light) !important; margin: 0; line-height: 1.6 !important; }

/* ---- Floating CTA ---- */
.float-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  background: #2B241E;
  color: #fff;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  box-shadow: 0 4px 18px rgba(43,36,30,0.32);
  transition: all 0.2s ease;
  text-decoration: none;
}
.float-cta:hover {
  background: #3D2E24;
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(43,36,30,0.42);
  color: #fff;
}
.float-cta svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---- Product Sub-nav ---- */
.product-subnav {
  position: sticky;
  top: 68px;
  z-index: 90;
  background: rgba(250,247,241,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.product-subnav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.product-subnav-inner::-webkit-scrollbar { display: none; }
.product-subnav-inner a {
  padding: 14px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.product-subnav-inner a:hover,
.product-subnav-inner a.is-active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-warm);
}

/* ---- Stagger reveal ---- */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }
.stagger > *:nth-child(5) { transition-delay: 320ms; }
.stagger > *:nth-child(6) { transition-delay: 400ms; }

/* ---- Why yiHom grid ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.why-icon {
  width: 40px; height: 40px;
  margin-bottom: 16px;
  color: var(--accent-warm);
}
.why-icon svg { width: 100%; height: 100%; }
.why-card h3 { font-size: 1rem !important; font-weight: 600 !important; font-family: var(--font-sans); margin-bottom: 8px; }
.why-card p { font-size: 15px !important; margin: 0; line-height: 1.65 !important; }

/* ---- Process steps (6-step) ---- */
.process-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  position: relative;
}
.process-6::before {
  content: "";
  position: absolute;
  top: 20px; left: 8%; right: 8%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.process-6-step { text-align: center; position: relative; z-index: 1; }
.process-6-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #2B241E;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700;
  margin: 0 auto 14px;
}
.process-6-step h3 { font-size: 0.88rem !important; font-weight: 600 !important; font-family: var(--font-sans); margin-bottom: 4px; }
.process-6-step p { font-size: 14px !important; color: var(--text-light) !important; margin: 0; line-height: 1.55 !important; }

/* ---- Homepage FAQ ---- */
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; }

/* ---- V3 Responsive ---- */
@media (max-width: 1024px) {
  .process-6 { grid-template-columns: repeat(3, 1fr); }
  .process-6::before { display: none; }
  .series-grid-asym { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .product-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .materials-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-cols { grid-template-columns: 1fr; }
  .product-subnav { top: 72px; }
}
@media (max-width: 720px) {
  .product-bar-grid { grid-template-columns: 1fr 1fr; }
  .product-bar-item { padding: 14px 16px; }
  .series-grid-asym { grid-template-columns: 1fr; }
  .materials-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .float-cta { bottom: 18px; right: 14px; padding: 10px 16px; font-size: 13px; }
  .process-6 { grid-template-columns: repeat(2, 1fr); }
  .product-subnav { top: 72px; }
  .product-subnav-inner { padding: 0 16px; }
  .product-subnav-inner a { padding: 11px 12px; font-size: 0.75rem; }
}

/* ---- First-round header and hero refinements ---- */
.hero-full .carousel-slide { background-position: center 58%; }

@media (max-width: 720px) {
  .brand img { height: 50px !important; }
  .main-nav { gap: 18px; }
  body[data-page="index.html"] #site-header:not(.is-scrolled) .main-nav.is-open .nav-link,
  body[data-page="aura.html"] #site-header:not(.is-scrolled) .main-nav.is-open .nav-link { color: var(--text-primary); }
  body[data-page="index.html"] #site-header:not(.is-scrolled) .main-nav.is-open .nav-cta,
  body[data-page="aura.html"] #site-header:not(.is-scrolled) .main-nav.is-open .nav-cta {
    border-color: var(--text-primary);
    color: var(--text-primary);
  }
  .hero-full .carousel-slide { background-position: center 55%; }
  .hero-full-overlay {
    background: linear-gradient(to right, rgba(30,15,5,0.84) 0%, rgba(30,15,5,0.7) 68%, rgba(30,15,5,0.52) 100%);
  }
  .product-subnav { top: 72px; }
}

/* ---- Narrow-screen layout safeguards ---- */
@media (max-width: 720px) {
  .container,
  .header-inner,
  .footer-inner {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .main-nav,
  .aura-banner-text {
    padding-left: 20px;
    padding-right: 20px;
  }

  .split > *,
  .grid-2 > *,
  .grid-3 > *,
  .grid-4 > *,
  .grid-6 > *,
  .series-grid-asym > *,
  .why-grid > *,
  .materials-grid > *,
  .process-grid > *,
  .process-6 > *,
  .form-row-2 > *,
  .footer-inner > * {
    min-width: 0;
  }

  h1,
  h2,
  h3,
  p,
  li,
  .eyebrow,
  .product-bar-item,
  .contact-detail-value {
    overflow-wrap: anywhere;
  }

  .hero-full-content,
  .aura-hero-content,
  .page-banner-content {
    width: 100%;
  }

  .cta-dark-glow {
    width: calc(100% - 32px);
    max-width: 600px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(2.15rem, 11vw, 3rem) !important;
  }

  .hero-full-content .btn-row,
  .aura-hero-content .btn-row,
  .aura-banner-text .btn-row,
  .cta-dark .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-full-content .btn,
  .aura-hero-content .btn,
  .aura-banner-text .btn,
  .cta-dark .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .product-bar-grid {
    grid-template-columns: 1fr;
  }

  .product-bar-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .product-bar-item:last-child {
    border-bottom: 0;
  }

  .card,
  .why-card,
  .scene-card,
  .market-item,
  .contact-info-box {
    padding-left: 20px;
    padding-right: 20px;
  }

  .float-cta {
    max-width: calc(100vw - 28px);
  }

  .aura-page-hero .carousel-arrow {
    display: none;
  }

  .product-subnav-inner {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    padding-left: 12px;
    padding-right: 12px;
  }

  .product-subnav-inner a {
    padding: 8px;
    font-size: 0.7rem;
  }
}

/* Approved logo artwork and intrinsic home image framing. */
.brand img,.footer-brand img{mix-blend-mode:normal;}
#home-series-grid .card:hover .card-media img{transform:none;}
