/* ============================================================
   Dong Chuan CIS-inspired site theme
   ============================================================ */
:root {
  --primary-light: #5d7a96;
  --primary: #2c3e50;
  --primary-dark: #1a2530;
  --accent-light: #d4af84;
  --accent: #b5915a;
  --accent-dark: #8b6d3e;
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-soft: #f6f4ef;
  --border: #e8e3db;
  --text: #1c1c1e;
  --text-secondary: #6b6b6b;
  --text-muted: #9b9b9b;
  --success: #4a8c6a;
  --warning: #d4935a;
  --error: #c05151;
  --info: #4a7ab5;
  --font-serif: "Noto Serif TC", serif;
  --font-sans: "Noto Sans TC", "Helvetica Neue", sans-serif;
  --font-en: "Inter", sans-serif;
  --shadow-soft: 0 1px 4px rgba(44, 62, 80, 0.06);
  --shadow-card: 0 2px 8px rgba(44, 62, 80, 0.08);
  --shadow-medium: 0 4px 16px rgba(44, 62, 80, 0.1);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

code {
  font-family: "SF Mono", "Menlo", monospace;
  background: #f0ede8;
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header & Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 37, 48, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(232, 227, 219, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 92px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #ffffff;
}

.logo-mark {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.25;
  justify-content: center;
}

.logo-text strong {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1.05;
}

.logo-text small {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(250, 250, 247, 0.72);
  line-height: 1.15;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 22px;
  align-self: flex-end;
  margin-bottom: 4px;
}

.site-nav a {
  position: relative;
  display: inline-block;
  color: rgba(250, 250, 247, 0.72);
  font-size: 14px;
  letter-spacing: 0.12em;
  padding: 10px 0 12px;
  transition: color 0.2s ease;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.active {
  color: #ffffff;
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(181, 145, 90, 0.12);
}

.site-nav a.is-disabled,
.site-nav a[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.42;
  cursor: default;
}

.site-nav a.is-disabled::after,
.site-nav a[aria-disabled="true"]::after {
  display: none;
}

.page-active-blue .site-nav a.active {
  color: var(--accent-light);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: #ffffff;
}

/* Old nav aliases kept for compatibility */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 0;
  border-bottom: 1px solid rgba(217, 214, 207, 0.85);
  background: rgba(246, 244, 239, 0.9);
  backdrop-filter: blur(14px);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.logo-placeholder {
  width: 42px;
  height: 42px;
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  background: transparent;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* ============================================================
   Hero
   ============================================================ */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 0;
  background-color: var(--primary-dark);
  background-image:
    linear-gradient(rgba(26, 37, 48, 0.60), rgba(26, 37, 48, 0.68)),
    url('/assets/images/hero-bg.jpg'),
    radial-gradient(ellipse 55% 50% at 75% 25%, rgba(181, 145, 90, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 42% 58% at 15% 75%, rgba(93, 122, 150, 0.24) 0%, transparent 70%),
    linear-gradient(rgba(250, 250, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 250, 247, 0.03) 1px, transparent 1px);
  background-position: center center, center center, center center, center center, top left, top left;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat;
  background-size: 100% 100%, cover, 100% 100%, 100% 100%, 32px 32px, 32px 32px;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 37, 48, 0.1), rgba(26, 37, 48, 0.35));
  pointer-events: none;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(212, 175, 132, 0.14), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(93, 122, 150, 0.16), transparent 35%);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 96px 24px;
  text-align: center;
}

.hero-eyebrow,
.section-eyebrow,
.group-label,
.type-tag,
.font-role {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-eyebrow {
  margin-bottom: 18px;
  justify-content: center;
}

.hero-eyebrow::before,
.hero-eyebrow::after,
.section-eyebrow span,
.group-label-dot {
  content: "";
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-eyebrow span {
  width: 18px;
}

.home-hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fafaf7;
}

.home-hero-copy {
  margin: 22px auto 0;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(250, 250, 247, 0.72);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.chip-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chip-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(250, 250, 247, 0.78);
}

.hero,
.page-hero {
  position: relative;
}

.page-hero {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.small-hero {
  padding: 120px 0 110px;
}

.narrow {
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.page-hero h1,
.section-heading h1,
.section-heading h2,
.team-card h3,
.philosophy-grid h3,
.contact-card h3,
.home-value-title,
.contact-cta-title,
.home-placeholder-title {
  color: var(--primary);
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 52px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ============================================================
   Shared Section Structure
   ============================================================ */
.section {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section .container,
.home-values-wrap,
.home-placeholder-wrap {
  padding-top: 88px;
  padding-bottom: 88px;
}

.section-heading h1,
.section-heading h2,
.home-placeholder-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-heading.center {
  text-align: center;
}

.section-heading.left {
  text-align: left;
}

.section-desc {
  margin: 0;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
}

.section-heading.center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.lead,
.two-col-story p,
.philosophy-grid p,
.team-card p,
.site-footer p,
.contact-card p,
.contact-card small,
.form-note,
.form-status {
  color: var(--text-secondary);
}

.lead {
  margin: 32px 0 0;
  max-width: 760px;
  font-size: 14px;
  line-height: 2.05;
}

/* ============================================================
   Homepage
   ============================================================ */
.home-values-grid,
.philosophy-grid,
.footer-grid,
.color-grid,
.semantic-grid,
.shadow-grid,
.radius-grid,
.component-grid,
.font-cards {
  display: grid;
}

.home-values-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.home-value-card,
.philosophy-grid article,
.contact-form-panel,
.info-panel,
.contact-info,
.contact-card,
.team-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.home-value-card {
  min-height: 100%;
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
}

.home-value-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
}

.home-value-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
}

.home-placeholder-title {
  text-align: center;
}

.home-product-card {
  display: flex;
  min-height: 320px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.home-product-image {
  flex: 0 0 46%;
  background: linear-gradient(180deg, #f3efe8 0%, #ece6dd 100%);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.home-product-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(44, 62, 80, 0.22);
  background:
    linear-gradient(135deg, rgba(93, 122, 150, 0.14), rgba(181, 145, 90, 0.18)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.35) 0,
      rgba(255, 255, 255, 0.35) 12px,
      rgba(255, 255, 255, 0.18) 12px,
      rgba(255, 255, 255, 0.18) 24px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(44, 62, 80, 0.56);
}

.home-product-photo {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: var(--radius-md);
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-product-content {
  flex: 1;
  padding: 42px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-product-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.42;
  font-weight: 700;
  color: var(--primary);
}

.home-product-copy {
  margin: 0;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--text-secondary);
}

.home-brand-logos .container {
  padding-top: 56px;
  padding-bottom: 56px;
}

.home-brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.home-brand-logo-placeholder {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(44, 62, 80, 0.35);
}

.home-brand-logo-image {
  display: block;
  max-width: min(86%, 220px);
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.home-brand-logo-placeholder[hidden] {
  display: none !important;
}

.home-brand-logo-dots {
  display: none;
}

@media (max-width: 1100px) {
  .home-brand-logo-grid {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding-bottom: 6px;
    gap: 14px;
    scrollbar-width: none;
    cursor: grab;
  }

  .home-brand-logo-grid::-webkit-scrollbar {
    display: none;
  }

  .home-brand-logo-placeholder {
    flex: 0 0 clamp(200px, 66vw, 280px);
    scroll-snap-align: start;
  }

  .home-brand-logo-grid.is-dragging {
    cursor: grabbing;
    user-select: none;
  }

  .home-brand-logo-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .home-brand-logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(44, 62, 80, 0.28);
    cursor: pointer;
    padding: 0;
  }

  .home-brand-logo-dot.is-active {
    background: var(--accent);
  }
}

.brand-wrap {
  padding-top: 88px;
  padding-bottom: 88px;
}

.brand-intro {
  max-width: 760px;
  margin: 0 auto;
}

.brand-intro h1 {
  margin-bottom: 20px;
  font-size: clamp(38px, 5vw, 52px);
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.brand-intro .section-desc {
  max-width: 720px;
  font-size: 18px;
  line-height: 2;
}

.brand-products {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 360px));
  justify-content: center;
  gap: 32px;
  align-items: stretch;
}

.pcard-v {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pcard-v-image {
  width: 100%;
  height: 260px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(93, 122, 150, 0.15), rgba(181, 145, 90, 0.2)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.36) 0,
      rgba(255, 255, 255, 0.36) 12px,
      rgba(255, 255, 255, 0.18) 12px,
      rgba(255, 255, 255, 0.18) 24px
    );
  display: flex;
  align-items: center;
  justify-content: center;
}

.pcard-v-image-label {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(44, 62, 80, 0.58);
}

.pcard-v-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.pcard-v-body {
  padding: 28px 26px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pcard-v-name {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--primary);
}

.pcard-v-desc {
  margin: 0;
  font-size: 14px;
  line-height: 2;
  color: var(--text-secondary);
  flex: 1;
}

.pcard-link-image {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
  display: block;
}

.pcard-link-image:hover {
  transform: translateY(-2px);
}

.pcard-link-title {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pcard-link-title:hover {
  color: var(--accent-dark);
}

.lp-wrap {
  padding-top: 88px;
  padding-bottom: 88px;
}

.lp-hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
}

.lp-title {
  margin: 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.2;
  color: var(--primary);
}

.lp-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.lp-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 30px 28px;
}

.lp-card h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.35;
  color: var(--primary);
}

.lp-brand-logo {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-brand-logo img {
  width: min(100%, 280px);
  height: auto;
  display: block;
}

.lp-card p,
.lp-list {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
}

.lp-copy p + p {
  margin-top: 14px;
}

.lp-list {
  padding-left: 18px;
}

.lp-list li + li {
  margin-top: 8px;
}

.lp-channel-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.lp-channel-logo-box {
  min-height: 76px;
  border: 1px dashed rgba(44, 62, 80, 0.26);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #faf9f5 0%, #f4f1ea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(44, 62, 80, 0.52);
}

.lp-image-card {
  text-align: center;
}

.lp-photo-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  aspect-ratio: 8 / 7;
  gap: 2px;
}

.lp-photo-tile {
  border: 1px solid rgba(44, 62, 80, 0.14);
  border-radius: var(--radius-sm);
  background: #f8f6f1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lp-photo-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(181, 145, 90, 0.55);
  box-shadow: 0 10px 24px rgba(44, 62, 80, 0.14);
}

.lp-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.lp-photo-tile--a { grid-column: 1; grid-row: 1; }
.lp-photo-tile--b { grid-column: 2; grid-row: 1; }
.lp-photo-tile--c { grid-column: 3; grid-row: 1; }
.lp-photo-tile--d { grid-column: 1; grid-row: 2; }
.lp-photo-tile--e { grid-column: 2 / span 2; grid-row: 2 / span 2; }
.lp-photo-tile--f { grid-column: 1; grid-row: 3; }

.lp-contact {
  background: var(--surface-soft);
}

.lp-contact .lp-wrap {
  text-align: center;
}

.lp-contact h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--primary);
}

.lp-contact p {
  margin: 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--text-secondary);
}

.lp-contact a {
  color: var(--primary);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(18, 24, 31, 0.86);
  padding: 28px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-stage {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  background: #ffffff;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.82);
}

.lightbox-btn.prev {
  left: 12px;
}

.lightbox-btn.next {
  right: 12px;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 768px) {
  .lightbox {
    padding: 14px;
  }

  .lightbox-stage {
    max-width: 96vw;
  }

  .lightbox-btn.prev { left: 8px; }
  .lightbox-btn.next { right: 8px; }
  .lightbox-close { top: 8px; right: 8px; }
}

/* ============================================================
   Homepage Typography (CIS Text System)
   ============================================================ */
.home-page .home-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.home-page .home-hero-copy {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  color: rgba(250, 250, 247, 0.45);
}

.home-page .section-eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.home-page .section-heading h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.home-page .section-desc,
.home-page .home-value-copy {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.9;
}

.home-page .home-value-title {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--accent);
}

/* ============================================================
   About Typography (CIS Text System)
   ============================================================ */
.about-page .eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.about-page .section-heading h2,
.about-page .philosophy-grid h3 {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

.about-page .section-heading h2 {
  font-size: 32px;
  line-height: 1.35;
}

.about-page .lead,
.about-page .philosophy-grid p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.9;
}

.about-page .lead {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Contact Typography (CIS Text System)
   ============================================================ */
.contact-page .eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-page .section-heading h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.contact-page .contact-form label span {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-page .contact-form input,
.contact-page .contact-form select,
.contact-page .contact-form textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
}

.contact-page .contact-form input::placeholder,
.contact-page .contact-form textarea::placeholder {
  font-size: 14px;
}

.contact-page .contact-form .btn-primary,
.contact-page .form-status {
  font-family: var(--font-sans);
}

.tone-block {
  background: var(--surface-soft);
}

.philosophy-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.philosophy-grid article {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.philosophy-grid h3,
.team-card h3,
.contact-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}

.philosophy-grid p,
.team-card p,
.contact-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
}

/* ============================================================
   About / Content Blocks
   ============================================================ */
.two-col-story,
.contact-grid {
  display: grid;
  gap: 48px;
  align-items: start;
}

.two-col-story {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
}

.contact-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
}

.contact-grid-single {
  grid-template-columns: 1fr;
  justify-items: center;
}

.about-intro .lead {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.about-intro .container.narrow {
  margin-left: auto;
  margin-right: auto;
}

.contact-page main {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 132, 0.10), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(93, 122, 150, 0.10), transparent 26%),
    var(--bg);
}

.contact-page main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(44, 62, 80, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 62, 80, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  pointer-events: none;
}

.contact-page main > * {
  position: relative;
  z-index: 1;
}

.contact-form-wrap {
  width: 100%;
}

.contact-form-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 44px;
  border-radius: var(--radius-xl);
}

.info-panel,
.contact-info,
.contact-card,
.team-card,
.philosophy-grid article {
  border-radius: var(--radius-lg);
}

.info-panel,
.contact-info {
  background: var(--surface-soft);
}

.info-item + .info-item {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.info-item span,
.contact-form label span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.info-item strong {
  color: var(--primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}

.section-heading h1,
.section-heading h2,
.contact-cta-title {
  font-family: var(--font-serif);
}

.section-heading h1,
.section-heading h2 {
  margin-bottom: 14px;
}

/* ============================================================
   Forms
   ============================================================ */
.contact-form {
  max-width: none;
  margin: 0;
}

.contact-page .contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form-panel .contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.contact-page .contact-form-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(251,250,246,0.98) 100%);
  border: 1px solid rgba(44, 62, 80, 0.10);
  box-shadow:
    0 12px 40px rgba(44, 62, 80, 0.08),
    0 2px 8px rgba(44, 62, 80, 0.05);
}

.contact-form label {
  display: block;
  margin-bottom: 18px;
}

.contact-page .contact-form label span {
  color: var(--accent);
  letter-spacing: 0.16em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 16px 0 13px;
  margin-bottom: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--primary);
  font: inherit;
}

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

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-bottom-color: #c94b4b;
}

.field-error {
  display: block;
  min-height: 20px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #c94b4b;
}

.form-status {
  min-height: 24px;
  margin-top: 16px;
}

.form-note,
.form-status,
.contact-card small {
  font-size: 13px;
  line-height: 1.8;
}

textarea {
  height: 120px;
  resize: vertical;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--primary-dark);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--primary-dark);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover,
button.btn:hover {
  background: var(--primary-dark);
  color: #fafaf7;
}

.btn-primary,
.btn-dark {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #fafaf7;
  box-shadow: 0 6px 18px rgba(26, 37, 48, 0.18);
}

.btn-primary:hover,
.btn-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fafaf7;
  box-shadow: 0 10px 24px rgba(181, 145, 90, 0.26);
}

.about-page .philosophy-grid article,
.about-page .contact-cta-link,
.contact-page .contact-cta-link {
  border: 1px solid rgba(44, 62, 80, 0.12);
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.08);
}

.contact-page .contact-form input,
.contact-page .contact-form select,
.contact-page .contact-form textarea {
  border-bottom: 1px solid rgba(44, 62, 80, 0.18);
  color: var(--primary-dark);
}

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

.contact-page .contact-form input:focus,
.contact-page .contact-form select:focus,
.contact-page .contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-page .form-status {
  color: var(--text-secondary);
}

.contact-page .contact-form .btn-primary {
  align-self: flex-end;
}

.about-page .philosophy-grid article {
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
}

/* ============================================================
   Contact CTA & Footer
   ============================================================ */
.contact-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(212, 175, 132, 0.14), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(93, 122, 150, 0.18), transparent 35%),
    var(--primary-dark);
  border-top: 1px solid rgba(232, 227, 219, 0.1);
}

.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(250, 250, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 250, 247, 0.03) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px;
  pointer-events: none;
}

.contact-cta .container {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 120px;
  text-align: center;
}

.contact-cta-title {
  margin: 0 0 28px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: #fafaf7;
}

.contact-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(181, 145, 90, 0.45);
  background: rgba(255, 255, 255, 0.04);
  color: #fafaf7;
  transition: var(--transition);
}

.contact-cta-link:hover {
  transform: translateY(-2px);
  border-color: rgba(181, 145, 90, 0.75);
  background: rgba(255, 255, 255, 0.08);
}

.contact-cta-link svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
}

.contact-cta-link span {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.about-page .contact-cta-link,
.contact-page .contact-cta-link {
  box-shadow: 0 8px 24px rgba(26, 37, 48, 0.16);
}

.site-footer,
.copyright-bar {
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.footer-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-grid.footer-grid-center {
  grid-template-columns: 1fr;
  text-align: center;
}

.footer-title {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 500;
}

.site-footer p,
.copyright-bar p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-muted);
}

.copyright-bar .container {
  padding-top: 40px;
  padding-bottom: 40px;
  text-align: center;
}

/* ============================================================
   Utility / Component Library from existing site
   ============================================================ */
.section-text {
  color: var(--text-secondary);
  max-width: 760px;
  font-size: 15px;
  line-height: 2;
}

.color-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.color-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.color-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.color-card.copied::after {
  content: "Copied!";
  position: absolute;
  inset: 0;
  background: rgba(44, 62, 80, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  animation: fadeOut 1.2s forwards;
}

.color-swatch {
  height: 100px;
  width: 100%;
}

.color-info {
  padding: 14px 16px;
}

.color-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.color-hex {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.color-var {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 6px;
}

.color-use {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.semantic-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.semantic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

.semantic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.semantic-swatch {
  height: 80px;
}

.semantic-info {
  padding: 12px 14px;
}

.semantic-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.semantic-hex {
  font-size: 11px;
  font-family: "SF Mono", "Menlo", monospace;
  color: var(--text-muted);
}

.type-rows {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.type-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.type-row:last-child {
  border-bottom: none;
}

.type-row:hover {
  background: #fdfcfa;
}

.type-meta {
  width: 180px;
  flex-shrink: 0;
}

.type-spec {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.9;
}

.type-preview {
  flex: 1;
}

.font-cards {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.font-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

.font-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.font-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.font-sample {
  font-size: 26px;
  line-height: 1.4;
  color: var(--text);
}

.font-sample.serif {
  font-family: var(--font-serif);
}

.font-sample.en {
  font-family: var(--font-en);
  letter-spacing: -0.02em;
}

.font-code-block {
  margin-top: 16px;
  background: #f5f2ee;
  border-radius: var(--radius-xs);
  padding: 10px 12px;
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 10px;
  color: var(--primary);
  line-height: 1.8;
}

.shadow-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
}

.shadow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.shadow-card:hover {
  transform: translateY(-3px);
}

.shadow-demo {
  width: 64px;
  height: 64px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.shadow-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.shadow-val {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
}

.radius-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.radius-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.radius-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.radius-demo {
  width: 56px;
  height: 56px;
  background: var(--primary);
  opacity: 0.12;
}

.radius-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.radius-val {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 11px;
  color: var(--accent);
}

.component-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.component-grid .full {
  grid-column: 1 / -1;
}

.component-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.component-preview {
  min-height: 160px;
  padding: 40px 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav-wrap {
    position: relative;
    min-height: 92px;
  }

  .logo-mark {
    width: 48px;
    height: 48px;
  }

  .logo {
    gap: 16px;
  }

  .logo-text strong {
    font-size: 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 10px 20px 18px;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 999;
    margin-bottom: 0;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 18px;
    letter-spacing: 0.08em;
    text-transform: none;
  }

  .small-hero {
    padding: 96px 0 84px;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .home-hero {
    min-height: 76vh;
  }

  .home-hero-inner {
    padding-top: 120px;
    padding-bottom: 104px;
  }

  .home-hero-title {
    font-size: 38px;
  }

  .home-product-card {
    flex-direction: column;
  }

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

  .home-product-content {
    padding: 34px 28px;
  }

  .home-values-grid,
  .home-brand-logo-grid,
  .brand-products,
  .lp-content-grid,
  .lp-channel-logos,
  .philosophy-grid,
  .footer-grid,
  .two-col-story,
  .contact-grid,
  .font-cards {
    grid-template-columns: 1fr;
  }

  .section .container,
  .home-values-wrap,
  .home-placeholder-wrap,
  .brand-wrap,
  .lp-wrap {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .brand-intro {
    max-width: 100%;
  }

  .brand-intro h1 {
    margin-bottom: 16px;
    font-size: 34px;
  }

  .brand-intro .section-desc {
    max-width: 560px;
    font-size: 16px;
    line-height: 1.9;
  }

  .brand-products {
    margin-top: 40px;
    gap: 24px;
  }

  .contact-cta .container {
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .contact-cta-link span {
    font-size: 18px;
  }

  .lp-photo-mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    aspect-ratio: 3 / 2;
    gap: 8px;
  }

  .lp-photo-tile--a,
  .lp-photo-tile--b,
  .lp-photo-tile--c,
  .lp-photo-tile--d,
  .lp-photo-tile--e,
  .lp-photo-tile--f {
    grid-column: auto;
    grid-row: auto;
  }

  .type-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .type-meta {
    width: auto;
  }

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

@media (max-width: 480px) {
  .logo {
    gap: 12px;
  }

  .logo-mark {
    width: 44px;
    height: 44px;
  }

  .logo-text strong {
    font-size: 18px;
  }

  .logo-text small {
    font-size: 11px;
  }

  .home-hero-title {
    font-size: 32px;
  }

  .home-hero-copy {
    font-size: 14px;
  }

  .contact-cta-link {
    padding: 14px 18px;
  }

  .contact-cta-link span {
    font-size: 15px;
    letter-spacing: 0.03em;
  }

  .radius-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
