/* ============================================
   Re.sonas Design System — components.css
   Shared UI Components
   ============================================ */

/* ===== HEADER / NAVIGATION ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.site-header.is-scrolled .site-header__inner {
  height: 80px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-header__logo-mark {
  height: 28px;
  width: auto;
  display: block;
}

.site-header__logo-mark--light {
  filter: brightness(0) invert(1);
}

.site-header__logo-mark--pink {
  display: none !important;
  filter: none;
}

.site-header.is-scrolled .site-header__logo-mark--light {
  display: none !important;
}

.site-header.is-scrolled .site-header__logo-mark--pink {
  display: block !important;
}

.site-header__logo-text {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 400;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-white);
  transition: color 0.16s ease;
}

/* Scrolled state: dark logo text */
.site-header.is-scrolled .site-header__logo-text {
  color: var(--color-primary);
}
.site-header.is-menu-open { background: var(--color-white); }
.site-header.is-menu-open .site-header__logo-mark--light { display: none !important; }
.site-header.is-menu-open .site-header__logo-mark--pink { display: block !important; }
.site-header.is-menu-open .site-header__logo-text { color: var(--color-primary); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.site-nav__link {
  font-size: var(--font-size-sm);
  font-weight: 400;
  letter-spacing: var(--letter-spacing-wide);
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color 0.16s ease;
}

/* Scrolled state: dark nav links */
.site-header.is-scrolled .site-nav__link {
  color: var(--color-text);
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.16s ease;
}

.site-nav__link:hover,
.site-nav__link.is-current {
  opacity: 1;
  color: var(--color-accent-on-dark);
}

.site-header.is-scrolled .site-nav__link:hover,
.site-header.is-scrolled .site-nav__link.is-current {
  color: var(--color-accent-ink);
}

.site-nav__link:hover::after,
.site-nav__link.is-current::after {
  transform: scaleX(1);
}

/* Hamburger (Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
}

.hamburger__line {
  width: 100%;
  height: 1.5px;
  background: var(--color-white);
  transition: transform var(--transition-base), opacity var(--transition-base), background var(--transition-base);
}

/* Scrolled state: dark hamburger lines */
.site-header.is-scrolled .hamburger__line {
  background: var(--color-text);
}

/* Active state (menu open): dark hamburger lines on white overlay */
.hamburger.is-active .hamburger__line {
  background: var(--color-text);
}

.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.mobile-nav__link {
  font-size: var(--font-size-xl);
  font-weight: 300;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-primary);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 20px;
  z-index: 1100;
  padding: 12px 20px;
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.hero-video-toggle {
  position: absolute;
  right: var(--container-padding);
  bottom: 24px;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(26, 26, 46, 0.4);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.hero-video-toggle svg { width: 22px; height: 22px; pointer-events: none; }
.hero-video-toggle[data-playing="false"] .hero-video-toggle__pause,
.hero-video-toggle[data-playing="true"] .hero-video-toggle__play { display: none; }
@media (hover: hover) {
  .hero-video-toggle:hover { background: rgba(26, 26, 46, 0.75); border-color: white; }
}
.site-nav__link { min-height: 44px; display: inline-flex; align-items: center; }
.mobile-nav__link.is-current { color: var(--color-accent-ink); }
main { scroll-margin-top: 80px; }
.default-content { padding-top: calc(80px + var(--space-3xl)); min-height: 55dvh; }
.default-content h1 { color: var(--color-primary); margin-bottom: var(--space-xl); font-size: clamp(1.75rem, 4vw, 2.5rem); }
.default-content h2 { color: var(--color-primary); margin-bottom: var(--space-lg); font-size: var(--font-size-xl); }
.default-content p { margin-bottom: var(--space-lg); }
.default-content a:not(.btn) { color: var(--color-accent-ink); text-decoration: underline; text-underline-offset: 4px; }
.error-page-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xl); }
.wpcf7 [aria-invalid="true"] { border-color: var(--color-accent-ink); }

@media (min-width: 768px) and (max-width: 1023px) {
  .site-nav { display: none; }
  .hamburger, .mobile-nav { display: flex; }
  .site-header__inner { height: 72px; }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__mosaic {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.08) 0px,
      rgba(0, 0, 0, 0.08) 1px,
      transparent 1px,
      transparent 2px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.08) 0px,
      rgba(0, 0, 0, 0.08) 1px,
      transparent 1px,
      transparent 2px
    );
  background-size: 2px 2px;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--color-overlay);
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-white);
  padding: 0 var(--container-padding);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--font-size-hero);
  font-weight: 300;
  letter-spacing: var(--letter-spacing-wider);
  line-height: 1.2;
}

.hero__subtitle {
  font-size: var(--font-size-base);
  font-weight: 300;
  letter-spacing: var(--letter-spacing-wide);
  margin-top: var(--space-lg);
  opacity: 0.85;
}

.hero__support {
  margin-top: var(--space-md);
  color: var(--color-accent-on-dark);
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-spacing-wide);
}

.hero__support-company {
  display: inline-block;
  margin-top: var(--space-sm);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9em;
  letter-spacing: 0.04em;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 36px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: var(--letter-spacing-wide);
  border-radius: var(--radius-sm);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-accent-ink);
  color: var(--color-accent-contrast);
  border: 1px solid var(--color-accent-ink);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn--primary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  opacity: 1;
}

/* Ghost button (white outline on dark bg) */
.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn--ghost:hover {
  background: var(--color-accent-ink);
  color: var(--color-accent-contrast);
  border-color: var(--color-accent-ink);
  opacity: 1;
}

/* Header CTA - ghost style (transparent header) */
.btn--cta {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-accent-on-dark);
  padding: 10px 24px;
  font-size: 13px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.btn--cta:hover {
  background: var(--color-accent-ink);
  color: var(--color-accent-contrast);
  border-color: var(--color-accent-ink);
  opacity: 1;
}

/* When header is scrolled (white bg), switch CTA to dark outline */
.site-header.is-scrolled .btn--cta {
  background: transparent;
  color: var(--color-accent-ink);
  border: 1px solid var(--color-accent-ink);
}

.site-header.is-scrolled .btn--cta:hover {
  background: var(--color-accent-ink);
  color: var(--color-accent-contrast);
  border-color: var(--color-accent-ink);
  opacity: 1;
}

.site-header__actions {
  display: none;
}

@media (min-width: 992px) {
  .site-header__actions {
    display: flex;
    align-items: center;
    margin-left: var(--space-xl);
  }
}

.btn--outline {
  background: transparent;
  color: var(--color-accent-ink);
  border: 1px solid var(--color-accent-ink);
}

.btn--outline:hover {
  background: var(--color-accent-ink);
  color: var(--color-accent-contrast);
  border-color: var(--color-accent-ink);
  opacity: 1;
}

.btn--lg {
  padding: 18px 48px;
  font-size: var(--font-size-base);
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header__label {
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-accent-ink);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-md);
}

.section-header__title {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--color-primary);
}

.section-header__divider {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  margin: var(--space-lg) auto 0;
}

/* ===== CARDS ===== */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.18s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-link:hover .card {
  border-color: var(--color-accent-ink);
}

.card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card__body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: var(--line-height);
}

/* Card link wrapper */
.card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.card-link:hover {
  opacity: 1;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Division introduction: one clear overview, then two distinct principles. */
.division-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--space-3xl);
  align-items: start;
  margin-bottom: var(--space-2xl);
}
.division-intro__title { color: var(--color-primary); font-size: clamp(1.6rem, 2.3vw, 2rem); font-weight: 500; line-height: 1.55; }
.division-intro__name { font-family: var(--font-display); font-size: 1.375rem; color: var(--color-text-muted); margin: var(--space-md) 0 var(--space-xl); }
.division-intro__summary { max-width: 29em; color: var(--color-text-light); line-height: 1.95; }
.division-principles { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
.division-principles--overview { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-3xl); text-align: left; }

.business-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.principle { border-top: 1px solid var(--color-border); padding-top: var(--space-lg); }
.principle__label { font-weight: 500; }
.principle__name { display: block; color: var(--color-accent-ink); font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2; margin-bottom: var(--space-sm); }
.principle__meaning { display: block; color: var(--color-primary); font-size: var(--font-size-sm); letter-spacing: 0.04em; }
.principle__text { color: var(--color-text-light); line-height: 1.95; margin-top: var(--space-md); }
.division-offers { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: var(--space-3xl); border-top: 1px solid var(--color-border); padding-top: var(--space-lg); margin: 0 0 var(--space-4xl); }
.division-offers__label { color: var(--color-text-muted); font-size: var(--font-size-sm); font-weight: 500; }
.division-offers__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm) var(--space-lg); list-style: none; padding: 0; color: var(--color-text-light); font-size: var(--font-size-sm); line-height: 1.9; }

/* ===== FEATURE ROW (Icon + Text) ===== */
.feature {
  text-align: center;
  padding: var(--space-xl);
}

.feature__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-lg);
  color: var(--color-accent-ink);
}

.feature__title {
  font-size: var(--font-size-md);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-4xl) var(--container-padding);
}

.cta-section__title {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.cta-section__text {
  font-size: var(--font-size-base);
  opacity: 0.8;
  margin-bottom: var(--space-xl);
}

/* ===== COUNT-UP NUMBER STABILITY ===== */
.js-count {
  display: inline-block;
  min-width: 2.5ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ===== PAGE HERO (Sub Pages) ===== */
.page-hero {
  padding-top: calc(72px + var(--space-4xl));
  padding-bottom: var(--space-3xl);
  background-image: url('../img/top/hero-products-20261007-v2.webp');
  background-size: cover;
  background-position: center;
  position: relative;
  text-align: center;
}

/* Per-page hero backgrounds */
.page-hero--brand  { background-image: url('../img/top/hero-brand-20261007-v2.webp'); }
.page-hero--business { background-image: url('../img/top/hero-business-20261007-v2.webp'); background-position: center; }
.page-hero--about  { background-image: url('../img/top/hero-about-20261007-v2.webp'); }
.page-hero--contact { background-image: url('../img/top/hero-contact-20261007-v2.webp'); background-position: center; }

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.60), rgba(26, 26, 46, 0.46));
  z-index: 1;
}

.page-hero > .container {
  position: relative;
  z-index: 2;
}

.page-hero__label {
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-spacing-wider);
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  display: block;
}

.page-hero__title {
  font-size: var(--font-size-3xl);
  font-weight: 600;
  color: var(--color-white);
}

/* ===== CEO SECTION 2-COLUMN ===== */
@media (min-width: 768px) {
  .ceo-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
    align-items: start;
  }
  .ceo-section__portrait {
    width: 100% !important;
    height: 340px !important;
    margin-bottom: 0 !important;
  }
  .ceo-section__text {
    text-align: left;
  }
  .ceo-section__name {
    text-align: left;
  }

  .ceo-section--text-only {
    display: block;
    max-width: 760px;
    margin: 0 auto;
  }

  .ceo-section--text-only .ceo-section__text,
  .ceo-section--text-only .ceo-section__name {
    text-align: left;
  }
}

.ceo-section--text-only .ceo-section__text {
  color: var(--color-text-light);
}

/* ===== FOOTER SOCIAL ICONS ===== */
.footer-social {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.footer-social__link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
  opacity: 1;
}

.footer-social__link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  letter-spacing: var(--letter-spacing-wider);
  margin-bottom: var(--space-md);
}

.site-footer__desc {
  font-size: var(--font-size-sm);
  opacity: 0.6;
  line-height: var(--line-height);
}

.site-footer__heading {
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: var(--space-lg);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.site-footer__link {
  font-size: var(--font-size-sm);
  opacity: 0.7;
}

.site-footer__link:hover {
  opacity: 1;
}

.site-footer__bottom {
  margin-top: var(--space-3xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: var(--font-size-xs);
  opacity: 0.65;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ===== FORM ===== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.form-label__required {
  color: var(--color-accent-ink);
  font-size: var(--font-size-xs);
  margin-left: var(--space-xs);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent-ink);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

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

.form-select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #6b6470;
}

.contact-form-note {
  margin: 0 0 var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-text);
  line-height: 1.8;
}

/* ===== BASE TYPOGRAPHY & LINE BREAKS ===== */
p, h1, h2, h3, h4, h5, h6, 
.hero__title, .hero__subtitle, 
.section-header__title, .card__text, .feature__text, .cta-section__text, .page-hero__title, .site-footer__desc {
  word-break: normal;
  text-wrap: pretty;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 767px) {
  .site-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .site-header__inner {
    height: 60px;
  }

  .hero {
    height: auto;
    min-height: 100svh;
    padding: 128px 0 136px;
  }

  .hero__content .btn { width: 100%; padding: 14px 16px; }

  .hero__title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .division-principles {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-top: calc(var(--space-sm) * -1);
    margin-bottom: var(--space-3xl);
  }

  .division-offers {
    margin-top: calc(var(--space-sm) * -1);
  }

  .division-offers__list {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .site-footer__links {
    align-items: center;
  }

  .page-hero {
    padding-top: calc(60px + var(--space-3xl));
  }

  .page-hero__title {
    font-size: var(--font-size-2xl);
  }

  .btn--lg {
    padding: 14px 32px;
    font-size: var(--font-size-sm);
  }

  /* Product layout: stack on mobile */
  .product-showcase {
    grid-template-columns: 1fr !important;
    gap: var(--space-xl) !important;
  }

  .business-showcase {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .product-showcase > *:nth-child(1),
  .product-showcase > *:nth-child(2) {
    order: unset !important;
  }

  /* CEO section: stack on mobile */
  .ceo-section {
    text-align: center;
  }

  .ceo-section__portrait {
    margin: 0 auto var(--space-xl);
  }

  /* Section spacing mobile */
  .section {
    padding: var(--space-3xl) 0;
  }

  .cta-section {
    padding: var(--space-3xl) var(--container-padding);
  }
}

/* SP-only line breaks */
.sp-only { display: none; }
@media (max-width: 767px) {
  .sp-only { display: inline; }
}

/* Access Map */
.map-wrapper {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(80%) contrast(1.05);
  transition: filter 0.4s ease;
}
.map-wrapper:hover iframe {
  filter: grayscale(0%) contrast(1);
}
.map-overlay {
  position: absolute;
  bottom: var(--space-xl);
  left: var(--space-xl);
  pointer-events: none;
}
.map-overlay__inner {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  border-left: 4px solid var(--color-accent, #b08d57);
}
.map-overlay__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 4px;
  letter-spacing: 0.08em;
}
.map-overlay__address {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin: 0;
}
@media (max-width: 767px) {
  .map-wrapper { height: 320px; }
  .map-overlay { bottom: var(--space-md); left: var(--space-md); right: var(--space-md); }
  .map-overlay__inner { padding: var(--space-sm) var(--space-md); }
}

/* ===== PRODUCT CHILDREN GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.product-children__category {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.product-children__category::before {
  content: '';
  width: 4px;
  height: 1.2em;
  background: var(--color-accent, #c9a96e);
  border-radius: 2px;
  flex-shrink: 0;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.product-card__image {
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
  background: #f8f8f8;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  z-index: 2;
}
.product-card__badge--coming {
  background: var(--color-primary);
  color: var(--color-white);
}

.product-card__body {
  padding: var(--space-lg);
}
.product-card__name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.product-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}
.product-card__cta {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.product-card__cta:hover {
  opacity: 0.7;
}

/* Responsive: product grid */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}
/* Product availability and confirmed specification cards */
.product-status {
  display: block;
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.product-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}
.product-spec-card,
.product-coming-soon {
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}
.product-spec-card h3,
.product-coming-soon h3 { margin-bottom: var(--space-md); }
.product-spec-card p,
.product-coming-soon p { line-height: 1.8; }
.product-spec-note { color: var(--color-text-light); margin-top: var(--space-sm); }
.product-spec-image { width: 100%; height: 220px; object-fit: contain; margin-bottom: var(--space-md); }
.product-image-note { font-size: var(--font-size-sm); color: var(--color-text-muted); }
.product-coming-soon { margin-top: var(--space-lg); }
@media (max-width: 600px) {
  .product-spec-grid { grid-template-columns: 1fr; }
}

/* Editorial rhythm: paragraphs define meaning; line wrapping adapts to the viewport. */
.reading-copy { max-width: 40em; margin-left: auto; margin-right: auto; color: var(--color-text-light); text-align: left; line-height: 2; letter-spacing: 0.025em; }
.reading-copy p + p { margin-top: 1.5em; }
p, li, td { line-break: strict; overflow-wrap: break-word; }
.reading-copy p, .principle__text, .division-intro__summary { text-wrap: pretty; }
.text-keep { white-space: nowrap; }
.section-header__title, .cta-section__title, .page-hero__title, .division-intro__title { text-wrap: balance; line-height: 1.55; letter-spacing: 0.04em; }
.feature__name { display: block; font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; line-height: 1.25; margin-bottom: var(--space-md); }
.feature__meaning { display: block; font-size: var(--font-size-sm); line-height: 1.7; }
.feature__text { text-align: left; line-height: 1.95; }
.ceo-section--text-only { max-width: 40em; margin: 0 auto; }
.ceo-section--text-only .ceo-section__text { text-align: left; }
.ceo-section--text-only .ceo-section__name { text-align: right; margin-top: var(--space-xl); color: var(--color-primary); font-weight: 500; font-size: var(--font-size-base); }
.site-footer__desc { max-width: 27em; }
.contact-form-note strong { display: block; margin-bottom: var(--space-sm); }
.page-hero { min-height: 360px; padding-top: 160px; padding-bottom: 80px; display: flex; align-items: center; }
.page-hero--brand { background-position: center 48%; }
.page-hero--products { background-position: center 54%; }
.page-hero--business { background-position: center 58%; }
.page-hero--about { background-position: center 54%; }
.page-hero--contact { background-position: center 57%; }
.btn, .site-header__logo, .site-header__logo:hover, .site-footer__link { opacity: 1; }
.site-footer__link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.btn--primary, .btn--ghost, .btn--cta { box-shadow: none; }
@media (max-width: 1023px) {
  .site-header__inner, .site-header.is-scrolled .site-header__inner { height: 72px; }
  .division-intro { gap: var(--space-xl); }
  .division-offers { gap: var(--space-xl); }
}
@media (max-width: 767px) {
  .site-header__inner, .site-header.is-scrolled .site-header__inner { height: 64px; }
  .reading-copy { line-height: 1.95; letter-spacing: 0.015em; }
  .reading-copy p + p { margin-top: 1.25em; }
  .division-intro, .division-offers, .division-principles--overview { grid-template-columns: 1fr; }
  .division-intro { gap: var(--space-xl); }
  .division-principles { margin: 0; gap: var(--space-xl); }
  .division-principles--overview { margin-top: var(--space-xl); }
  .division-offers { margin: 0 0 var(--space-3xl); gap: var(--space-md); }
  .division-offers__list { grid-template-columns: 1fr; }
  .division-intro__name { margin-bottom: var(--space-lg); }
  .division-intro__title { font-size: clamp(1.375rem, 5.9vw, 1.75rem); }
  .feature { padding: var(--space-lg) 0; }
  .feature__text { max-width: 26em; margin: 0 auto; }
  .page-hero { min-height: 280px; padding-top: 112px; padding-bottom: 48px; }
  .site-footer__desc { margin: 0 auto; }
  .btn { white-space: normal; text-wrap: balance; }
  .hero-video-toggle { bottom: 24px; width: 44px; height: 44px; }
}

.heading-line { display: block; }
@media (max-width: 767px) {
  .section-header__title { font-size: clamp(1.375rem, 6.15vw, 1.5rem); }
  .heading-break { display: block; }
  .hero__subtitle { line-height: 1.85; }
}

.business-details { color: var(--color-text-light); margin: 0; padding: 0; }
.business-details li { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: var(--space-md); padding: 12px 0; border-top: 1px solid var(--color-border); font-size: var(--font-size-sm); line-height: 1.95; }
.business-details strong { color: var(--color-primary); font-weight: 500; }
@media (max-width: 359px) {
  .section-header__title { font-size: 1.25rem; }
}

.company-products strong { display: block; font-weight: 500; color: var(--color-primary); margin-bottom: var(--space-xs); }
.company-products li { color: var(--color-text-light); font-size: var(--font-size-sm); line-height: 1.9; }
.company-products li + li { margin-top: var(--space-md); }
@media (max-width: 1023px) { .division-offers__list { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .product-showcase h3 { font-size: clamp(1.25rem, 5.9vw, 1.5rem) !important; text-wrap: balance; line-height: 1.6; }
}
