/* ============================================================
   海南盛世玺礼科技 — Hainan Shengshi Xili Technology
   东方高奢 · Black & Gold · Serif Imperial
   ============================================================ */

:root {
  /* Theme: Black Gold (default) */
  --bg: #0a0908;
  --bg-2: #11100e;
  --bg-3: #1a1815;
  --ink: #f5f1e8;
  --ink-2: rgba(245, 241, 232, 0.72);
  --ink-3: rgba(245, 241, 232, 0.45);
  --ink-4: rgba(245, 241, 232, 0.18);
  --line: rgba(245, 241, 232, 0.10);
  --line-strong: rgba(245, 241, 232, 0.22);

  --gold: #c9a961;
  --gold-2: #e6c989;
  --gold-3: #8a7339;
  --gold-glow: rgba(201, 169, 97, 0.35);

  --accent: var(--gold);

  /* Type */
  --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;
  --serif-en: "Cormorant Garamond", "Playfair Display", "Noto Serif", Georgia, serif;
  --sans: "Inter", "PingFang SC", "Hiragino Sans GB", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* Spacing */
  --pad-page: clamp(20px, 4vw, 64px);
  --max-w: 1440px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Theme variants */
[data-theme="deep-blue"] {
  --bg: #050810;
  --bg-2: #0a0f1c;
  --bg-3: #131a2e;
  --gold: #6b8aff;
  --gold-2: #9bb3ff;
  --gold-3: #3a4d8c;
  --gold-glow: rgba(107, 138, 255, 0.35);
}
[data-theme="purple"] {
  --bg: #0a0612;
  --bg-2: #14091e;
  --bg-3: #1f1230;
  --gold: #b48eff;
  --gold-2: #d4b8ff;
  --gold-3: #6b3fb8;
  --gold-glow: rgba(180, 142, 255, 0.4);
}
[data-theme="mono"] {
  --bg: #0a0a0a;
  --bg-2: #131313;
  --bg-3: #1d1d1d;
  --gold: #f5f1e8;
  --gold-2: #ffffff;
  --gold-3: #888;
  --gold-glow: rgba(255, 255, 255, 0.2);
}
[data-theme="light"] {
  --bg: #faf8f3;
  --bg-2: #f2efe6;
  --bg-3: #e8e3d4;
  --ink: #0a0908;
  --ink-2: rgba(10, 9, 8, 0.72);
  --ink-3: rgba(10, 9, 8, 0.5);
  --ink-4: rgba(10, 9, 8, 0.2);
  --line: rgba(10, 9, 8, 0.1);
  --line-strong: rgba(10, 9, 8, 0.2);
  --gold: #8a6a1f;
  --gold-2: #b08a35;
  --gold-3: #5a4515;
}

/* Font preset variants */
[data-font="sans"] {
  --serif: var(--sans);
  --serif-en: var(--sans);
}
[data-font="serif-only"] {
  --sans: var(--serif);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 169, 97, 0.06), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(201, 169, 97, 0.04), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--gold); color: var(--bg); }

/* ============================================================
   Visual material system
   ============================================================ */
.visual-image {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.02);
}
.visual-image::after,
.visual-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.04), rgba(10, 9, 8, 0.26)),
    linear-gradient(90deg, rgba(201, 169, 97, 0.1), transparent 35%, rgba(201, 169, 97, 0.06));
}
.visual-image figcaption,
.visual-band__caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(245, 241, 232, 0.82);
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}
.visual-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.visual-panel.reverse {
  grid-template-columns: minmax(360px, 1.1fr) minmax(0, 0.9fr);
}
.visual-panel.reverse .visual-panel__copy { order: 2; }
.visual-panel.reverse .visual-image { order: 1; }
.visual-panel .visual-image {
  aspect-ratio: 16 / 10;
}
.visual-panel__copy {
  min-width: 0;
}
.visual-band {
  position: relative;
  aspect-ratio: 16 / 6.5;
  margin: 0 0 48px;
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
}
.visual-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visual-card {
  aspect-ratio: 16 / 10;
  margin-bottom: 22px;
}
.cap .visual-card {
  margin: -8px -8px 22px;
}
.industry__visual {
  margin-bottom: 20px;
}
.scenario-visual {
  aspect-ratio: 16 / 7;
  border-width: 0 0 1px;
}
.contact-visual {
  aspect-ratio: 16 / 10;
  margin-bottom: 32px;
}
.enterprise-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(36px, 5vw, 72px);
}
.enterprise-proof-grid .visual-image {
  aspect-ratio: 3 / 2;
}

@media (max-width: 900px) {
  .visual-panel,
  .visual-panel.reverse {
    grid-template-columns: 1fr;
  }
  .visual-panel.reverse .visual-panel__copy,
  .visual-panel.reverse .visual-image {
    order: initial;
  }
  .visual-band {
    aspect-ratio: 16 / 10;
  }
  .enterprise-proof-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Typography utilities
   ============================================================ */
.serif { font-family: var(--serif); }
.serif-en { font-family: var(--serif-en); font-style: italic; font-weight: 400; }
.mono { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6vw, 84px); }
h2 { font-size: clamp(32px, 4.2vw, 56px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-page);
}

.section {
  padding: clamp(80px, 12vh, 160px) 0;
  position: relative;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.section-header__title { max-width: 720px; }
.section-header__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
  text-align: right;
}

/* Subtle grid lines */
.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  opacity: 0.5;
  z-index: 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease-out);
  z-index: 0;
}
.btn:hover::before { transform: translateX(0); }
.btn:hover { color: var(--bg); }
.btn > * { position: relative; z-index: 1; }
.btn--primary {
  background: var(--gold);
  color: var(--bg);
}
.btn--primary::before { background: var(--gold-2); }
.btn--primary:hover { color: var(--bg); }
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: gap 0.3s var(--ease);
}
.arrow-link:hover { gap: 18px; }

/* ============================================================
   Top Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--pad-page);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(10, 9, 8, 0.85), rgba(10, 9, 8, 0));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 9, 8, 0.92);
  border-bottom-color: var(--line);
}
[data-theme="light"] .nav { background: linear-gradient(to bottom, rgba(250, 248, 243, 0.85), rgba(250, 248, 243, 0)); }
[data-theme="light"] .nav.scrolled { background: rgba(250, 248, 243, 0.92); }

.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.nav__seal {
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  color: var(--gold);
  font-size: 18px;
  font-weight: 500;
  position: relative;
  flex-shrink: 0;
}
.nav__seal::before, .nav__seal::after {
  content: "";
  position: absolute;
  background: var(--gold);
}
.nav__seal::before { top: -3px; left: 50%; width: 1px; height: 6px; transform: translateX(-50%); }
.nav__seal::after { bottom: -3px; left: 50%; width: 1px; height: 6px; transform: translateX(-50%); }

.nav__brand-text { line-height: 1.1; }
.nav__brand-cn { font-family: var(--serif); font-size: 16px; letter-spacing: 0.1em; }
.nav__brand-en { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; color: var(--ink-3); text-transform: uppercase; margin-top: 2px; }

.nav__menu {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav__link {
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  transition: color 0.2s;
  position: relative;
}
.nav__link:hover, .nav__link.active { color: var(--gold); }
.nav__link.active::after {
  content: "";
  position: absolute;
  bottom: 4px; left: 16px; right: 16px;
  height: 1px;
  background: var(--gold);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav__lang {
  display: flex;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  overflow: hidden;
}
.nav__lang button {
  padding: 6px 10px;
  color: var(--ink-3);
  transition: all 0.2s;
}
.nav__lang button.active { background: var(--gold); color: var(--bg); }

@media (max-width: 900px) {
  .nav__menu { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px var(--pad-page) 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}
.hero__eyebrow { margin-bottom: 28px; }

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero__title em {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  position: relative;
}
.hero__title .accent {
  color: var(--gold);
  font-weight: 400;
}

.hero__sub {
  max-width: 580px;
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  max-width: 800px;
}
.hero__metric { }
.hero__metric-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero__metric-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 8px;
}

@media (max-width: 700px) {
  .hero__metrics { grid-template-columns: repeat(2, 1fr); }
}

/* Scroll cue */
.hero__cue {
  position: absolute;
  bottom: 32px;
  right: var(--pad-page);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-transform: uppercase;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  writing-mode: vertical-rl;
}
.hero__cue::after {
  content: "";
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.4); transform-origin: top; }
}

/* Side index */
.hero__index {
  position: absolute;
  left: var(--pad-page);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  z-index: 3;
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

/* ============================================================
   Service / Capability Grid
   ============================================================ */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cap {
  grid-column: span 4;
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.4s var(--ease);
  cursor: pointer;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.cap:hover { background: var(--bg-2); }
.cap__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.2em;
  margin-bottom: 32px;
}
.cap__title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 16px;
}
.cap__title em {
  font-family: var(--serif-en);
  font-style: italic;
  color: var(--gold);
  display: block;
  font-size: 18px;
  margin-top: 8px;
  font-weight: 400;
}
.cap__desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-top: auto;
  margin-bottom: 24px;
}
.cap__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cap__tag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.cap__arrow {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 32px; height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  transition: all 0.3s var(--ease);
}
.cap:hover .cap__arrow {
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(-45deg);
}

@media (max-width: 1000px) { .cap { grid-column: span 6; } }
@media (max-width: 600px) { .cap { grid-column: span 12; } }

/* ============================================================
   Case cards
   ============================================================ */
.flagship {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
}
.flagship__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.flagship__row.reverse .flagship__visual { order: 2; }
.flagship__row.reverse .flagship__info { order: 1; }

.flagship__info { }
.flagship__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.flagship__name {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.flagship__url {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.flagship__desc {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}
.flagship__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-bottom: 32px;
  max-width: 520px;
}
.flagship__metric { }
.flagship__metric-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
}
.flagship__metric-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 6px;
}

/* Site placeholder mockup */
.site-mock {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s;
}
.site-mock:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -20px var(--gold-glow);
}
.site-mock__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}
.site-mock__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-4);
}
.site-mock__url {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.site-mock__body {
  position: relative;
  padding: 24px;
  height: calc(100% - 38px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(135deg, transparent 49.5%, var(--line) 49.5%, var(--line) 50.5%, transparent 50.5%),
    var(--bg-2);
  background-size: 24px 24px, 100% 100%;
}
.site-mock__title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: 0.05em;
  color: var(--ink);
  font-weight: 400;
}
.site-mock__sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  margin-top: 4px;
}
.site-mock__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.site-mock__badge {
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 10px;
  border: 1px solid var(--gold);
  color: var(--gold);
  letter-spacing: 0.1em;
}
.site-mock__shot {
  height: calc(100% - 38px);
  background: var(--bg);
  overflow: hidden;
}
.site-mock__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.9) contrast(1.02);
}

@media (max-width: 800px) {
  .flagship__row { grid-template-columns: 1fr; gap: 32px; }
  .flagship__row.reverse .flagship__visual { order: 0; }
  .flagship__row.reverse .flagship__info { order: 1; }
}

/* ============================================================
   Matrix grid (smaller cards)
   ============================================================ */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .matrix-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .matrix-grid { grid-template-columns: 1fr; } }

.matrix-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 24px;
  transition: all 0.4s var(--ease);
  position: relative;
  cursor: pointer;
}
.matrix-card:hover {
  border-color: var(--gold);
  background: var(--bg-3);
  transform: translateY(-2px);
}
.matrix-card__shot {
  aspect-ratio: 16 / 10;
  margin: -8px -8px 18px;
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
}
.matrix-card__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.matrix-card__url {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.matrix-card__name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
}
.matrix-card__type {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.matrix-card__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  text-transform: uppercase;
}

/* ============================================================
   Process / steps
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process__step {
  padding: 32px 16px;
  border-right: 1px solid var(--line);
  position: relative;
}
.process__step:last-child { border-right: none; }
.process__step:hover { background: var(--bg-2); }
.process__num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 24px;
}
.process__name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 6px;
}
.process__name-en {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-3);
}

@media (max-width: 1000px) {
  .process { grid-template-columns: repeat(2, 1fr); }
  .process__step:nth-child(2n) { border-right: none; }
  .process__step { border-bottom: 1px solid var(--line); }
}

/* ============================================================
   World map block
   ============================================================ */
.world-block {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}

/* ============================================================
   GEO / Search demo
   ============================================================ */
.geo-demo {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 40px;
  font-family: var(--mono);
  font-size: 14px;
}
.geo-demo__prompt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.geo-demo__user {
  color: var(--gold);
  flex-shrink: 0;
}
.geo-demo__answer {
  color: var(--ink-2);
  line-height: 1.8;
}
.geo-demo__answer mark {
  background: rgba(201, 169, 97, 0.18);
  color: var(--gold-2);
  padding: 1px 6px;
  border-bottom: 1px solid var(--gold);
}
.geo-demo__sources {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.geo-demo__source {
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  color: var(--ink-3);
}
.geo-demo__source.highlight {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   Agent flow diagram
   ============================================================ */
.agent-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 32px;
}
.agent-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  align-items: center;
  transition: all 0.3s var(--ease);
}
.agent-row:hover { border-color: var(--gold); }
.agent-row__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
}
.agent-row__content {
  font-size: 14px;
  color: var(--ink-2);
}
.agent-row__content code {
  background: var(--bg-3);
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold-2);
  border: 1px solid var(--line);
}

/* ============================================================
   Team cards
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 40px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  align-items: flex-start;
  transition: all 0.4s var(--ease);
  overflow: hidden;
}
.team-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, var(--gold-glow), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.team-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.team-card:hover::after { opacity: 1; }

.team-avatar {
  width: 88px; height: 88px;
  border: 1px solid var(--gold);
  background: var(--bg-3);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 32px;
  color: var(--gold);
  position: relative;
}
.team-avatar::before, .team-avatar::after {
  content: "";
  position: absolute;
  background: var(--gold);
}
.team-avatar::before { top: -4px; left: 50%; width: 1px; height: 8px; transform: translateX(-50%); }
.team-avatar::after { bottom: -4px; left: 50%; width: 1px; height: 8px; transform: translateX(-50%); }

.team-info { position: relative; z-index: 1; }
.team-info__name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 4px;
}
.team-info__role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.team-info__bio {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ============================================================
   Contact form
   ============================================================ */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
@media (max-width: 800px) { .contact-form { grid-template-columns: 1fr; } }

.contact-form__left {
  padding: 48px;
  border-right: 1px solid var(--line);
}
.contact-form__right {
  padding: 48px;
  background: var(--bg-3);
}

.field {
  margin-bottom: 24px;
}
.field__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.field__input, .field__textarea, .field__select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color 0.3s;
}
.field__input:focus, .field__textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field__textarea { resize: vertical; min-height: 80px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-family: var(--sans);
  letter-spacing: 0.05em;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.active { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px var(--pad-page) 32px;
  position: relative;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 800px) { .footer__top { grid-template-columns: 1fr 1fr; } }

.footer__brand {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 16px;
}
.footer__tagline {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 320px;
}
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.footer__col ul { list-style: none; }
.footer__col li {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 10px;
  cursor: pointer;
  transition: color 0.2s;
}
.footer__col li:hover { color: var(--gold); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 16px;
}

/* Big watermark */
.footer__seal {
  position: absolute;
  right: var(--pad-page);
  top: 80px;
  font-family: var(--serif);
  font-size: clamp(80px, 16vw, 220px);
  color: var(--ink-4);
  opacity: 0.18;
  line-height: 1;
  letter-spacing: 0.1em;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   Animations
   ============================================================ */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.pending {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeInUp 1s var(--ease-out) forwards;
}

/* Page transitions */
.page-enter {
  animation: pageEnter 0.6s var(--ease-out);
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   Page hero (sub pages)
   ============================================================ */
.page-hero {
  padding: 180px var(--pad-page) 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-hero__breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.page-hero__breadcrumb span { color: var(--gold); }
.page-hero__title {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  max-width: 1100px;
}
.page-hero__title em {
  font-family: var(--serif-en);
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.page-hero__sub {
  max-width: 700px;
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* Two-col block */
.split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.split__title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.split__body p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 16px;
}
.split__body p:last-child { margin-bottom: 0; }

/* List with serif numbers */
.serif-list { list-style: none; }
.serif-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.serif-list li:last-child { border-bottom: 1px solid var(--line); }
.serif-list__num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.serif-list__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
}
.serif-list__desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* CTA banner */
.cta-banner {
  border: 1px solid var(--gold);
  padding: clamp(48px, 8vw, 96px);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: center;
  background:
    radial-gradient(ellipse at 100% 0%, var(--gold-glow), transparent 60%),
    var(--bg-2);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; bottom: -1px;
  width: 6px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.cta-banner__title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.cta-banner__title em {
  font-family: var(--serif-en);
  font-style: italic;
  color: var(--gold);
}
.cta-banner__sub {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}
@media (max-width: 800px) { .cta-banner { grid-template-columns: 1fr; } }

/* Misc */
.divider { height: 1px; background: var(--line); margin: 0 var(--pad-page); }
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

/* Industry cards */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
@media (max-width: 800px) { .industry-grid { grid-template-columns: 1fr; } }
.industry {
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.3s;
}
.industry:hover { background: var(--bg-2); }
.industry__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 6px;
}
.industry__name-en {
  font-family: var(--serif-en);
  font-style: italic;
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 16px;
}
.industry__desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* Quote block */
.quote-block {
  font-family: var(--serif);
  font-size: clamp(24px, 3.6vw, 44px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 1100px;
  position: relative;
  padding-left: 48px;
}
.quote-block::before {
  content: "「";
  position: absolute;
  left: 0; top: -12px;
  font-size: 64px;
  color: var(--gold);
  line-height: 1;
}
.quote-block em {
  font-family: var(--serif-en);
  font-style: italic;
  color: var(--gold);
}
