/* ============================================================
   LEGIO X PARTNERS · main.css
   Ink navy / roman red / antique gold: Roman gravitas, industrial calm
   ============================================================ */

:root {
  --ink: #1B2233;
  --navy: #2A3247;
  --red: #8E1F1F;
  --red-hover: #A32828;
  --gold: #C9A227;
  --gold-deep: #8C6E14;
  --paper: #F7F5F1;
  --white: #FFFFFF;
  --grey: #5A6272;
  --hairline: #E5E1D8;

  --serif: Georgia, 'Times New Roman', 'Songti SC', 'SimSun', serif;
  --sans: -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;

  --container: 1200px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* ---- language switching ---- */
html[data-lang="zh"] .en { display: none !important; }
html[data-lang="en"] .zh { display: none !important; }
html[data-lang="en"] body { line-height: 1.6; }

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

[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(27, 34, 51, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 162, 39, .18);
  transition: background .3s ease;
}

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

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 44px; height: 44px; }
.brand-word { display: flex; flex-direction: column; line-height: 1.15; }
.brand-legio {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .28em;
  color: var(--white);
  white-space: nowrap;
}
.brand-partners {
  font-size: 9.5px;
  letter-spacing: .42em;
  color: var(--gold);
  white-space: nowrap;
}

.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a {
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  letter-spacing: .02em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--white); border-bottom-color: var(--gold); }

.header-tools { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
  transition: border-color .2s;
}
.lang-toggle:hover { border-color: var(--gold); }
.lang-sep { opacity: .45; }
html[data-lang="zh"] .lang-toggle .lang-zh,
html[data-lang="en"] .lang-toggle .lang-en { color: var(--gold); font-weight: 600; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px 4px; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-media { position: absolute; inset: 0; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 14s ease-out forwards;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }

.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(27, 34, 51, .78) 0%, rgba(27, 34, 51, .55) 45%, rgba(27, 34, 51, .30) 100%),
    linear-gradient(to top, rgba(27, 34, 51, .55) 0%, rgba(27, 34, 51, 0) 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) 20px 96px;
  width: 100%;
}

.hero-kicker {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: .32em;
  margin-bottom: 22px;
  padding-bottom: 14px;
  position: relative;
}
.hero-kicker::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.18;
  color: var(--white);
  font-weight: 400;
  max-width: 15em;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 26px;
  max-width: 640px;
  font-size: clamp(16px, 2vw, 18px);
  color: rgba(255, 255, 255, .88);
}

.hero-ctas { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-size: 16px;
  letter-spacing: .04em;
  border-radius: 4px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(142, 31, 31, .35);
}
.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(142, 31, 31, .45);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .55);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-block { width: 100%; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, .7);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============ STATS ============ */
.stats { background: var(--white); border-bottom: 1px solid var(--hairline); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 52px;
  padding-bottom: 52px;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  color: var(--ink);
  line-height: 1.2;
}
.stat-unit { color: var(--gold-deep); }
.stat-label { margin-top: 8px; font-size: 14px; color: var(--grey); }

/* ============ SECTIONS ============ */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-paper { background: var(--paper); }
.section-white { background: var(--white); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }

.kicker {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  color: var(--grey);
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold);
  margin-bottom: 22px;
}
.numeral {
  font-family: var(--serif);
  color: var(--gold-deep);
  font-size: 18px;
  letter-spacing: 0;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.3;
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
}
.section-intro { margin-top: 18px; color: var(--grey); font-size: 17px; max-width: 640px; }

/* ---- cards ---- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 32px 28px;
}
.card-kicker {
  color: var(--gold-deep);
  font-size: 12.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.card h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: 12px;
}
.card p:last-child { color: var(--grey); font-size: 15px; }

/* ============ Ⅱ CHAIN ============ */
.section-chain { position: relative; background: var(--white); overflow: hidden; padding: clamp(72px, 9vw, 120px) 0; }
.chain-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .08;
  pointer-events: none;
}
.section-chain .container { position: relative; }

.chain-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.chain-steps::before {
  content: "";
  position: absolute;
  top: 21px; left: 10%; right: 10%;
  height: 1px;
  background: var(--hairline);
}
.chain-step { position: relative; text-align: center; padding: 0 6px; }
.chain-node {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 18px;
}
.chain-step h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 8px;
}
.chain-step p { font-size: 14px; color: var(--grey); }

/* ============ Ⅲ SERVICES ============ */
.section-services { border-top: 1px solid var(--hairline); }

.cost-banner {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: clamp(26px, 4vw, 40px) clamp(24px, 4vw, 48px);
  margin-bottom: clamp(32px, 4vw, 48px);
  max-width: 900px;
}
.cost-banner p {
  font-size: clamp(16.5px, 2vw, 18.5px);
  line-height: 1.9;
  color: var(--ink);
}

.cards-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cards-services .card-kicker { font-size: 13.5px; line-height: 1.8; }

/* ============ Ⅳ MODELS ============ */
.models-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 56px);
}
.models-head .section-head { margin-bottom: 0; }
.models-photo img {
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(27, 34, 51, .14);
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.model-card { position: relative; display: flex; flex-direction: column; }
.model-num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold-deep);
  letter-spacing: .18em;
  margin-bottom: 12px;
}

.reassure {
  margin-top: 40px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--grey);
  font-size: 15px;
  max-width: 760px;
}
.reassure svg { flex-shrink: 0; color: var(--gold-deep); margin-top: 4px; }

/* ============ Ⅳ PLANT ============ */
.plant-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.plant-photo img {
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(27, 34, 51, .18);
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.plant-photo figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--grey);
}

.hq-side { display: flex; flex-direction: column; }
.hq-para { font-size: 16px; line-height: 1.9; color: var(--ink); }
.hq-side .plant-facts { margin: 22px 0; }

.plant-facts { display: flex; flex-direction: column; }
.fact {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.fact:first-child { border-top: 1px solid var(--hairline); }
.fact dt {
  color: var(--gold-deep);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding-top: 3px;
}
.fact dd { color: var(--ink); font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  white-space: nowrap;
}

/* ============ GLOBAL PRESENCE MAP ============ */
.map-band {
  background: var(--ink);
  padding: clamp(64px, 8vw, 110px) 0;
}
.map-wrap svg { width: 100%; height: auto; display: block; }
.world-map text {
  font-family: var(--sans);
  font-size: 11px;
  fill: rgba(255, 255, 255, .85);
  letter-spacing: .04em;
}
.world-map .lbl-hq { fill: #FFFFFF; font-weight: 600; font-size: 12px; }
.map-caption {
  margin-top: 30px;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 22px);
  color: rgba(255, 255, 255, .9);
}

/* ============ Ⅵ FOUNDER ============ */
.trust-cards { margin-bottom: clamp(40px, 5vw, 64px); }

.founder-strip {
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 48px);
}
.founder-photo img {
  border-radius: 12px;
  border: 1px solid var(--gold);
  filter: grayscale(1);
  width: 100%;
  height: auto;
}
.founder-quote > p {
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.6;
  color: var(--ink);
}
.founder-quote footer {
  margin-top: 18px;
  color: var(--grey);
  font-size: 14.5px;
  letter-spacing: .04em;
}
.founder-quote footer::before {
  content: "";
  display: block;
  width: 48px; height: 1px;
  background: var(--gold);
  margin-bottom: 14px;
}
.founder-byline { color: var(--ink); font-weight: 600; font-size: 15.5px; }
.founder-proof { margin-top: 8px; color: var(--grey); font-size: 13.5px; line-height: 1.8; max-width: 560px; }

/* ============ THE NAME ============ */
.name-band {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  padding: clamp(88px, 11vw, 150px) 0;
}
.name-media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 62%;
}
.name-media img { width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.name-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--ink) 8%, rgba(27, 34, 51, .55) 55%, rgba(27, 34, 51, .25) 100%);
}
.name-content { position: relative; z-index: 2; }
.name-story {
  max-width: 560px;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(16px, 2vw, 18px);
}
.gold-idiom { color: var(--gold); white-space: nowrap; }

/* ============ Ⅵ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: start;
}
.contact-col { display: flex; flex-direction: column; gap: 24px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; }
.contact-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 18px;
}
.qr-holder { width: 100%; margin-bottom: 18px; }
.qr-img { width: 200px; height: auto; max-width: 100%; border-radius: 8px; border: 1px solid var(--hairline); }
.qr-placeholder {
  width: 200px;
  max-width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--gold);
  border-radius: 8px;
  color: var(--grey);
  font-size: 14px;
  letter-spacing: .1em;
  background: var(--paper);
}
.contact-line { font-size: 15px; color: var(--grey); margin-bottom: 6px; }
.contact-line strong { color: var(--ink); font-weight: 600; }
.visit-body { color: var(--grey); font-size: 15px; margin-bottom: 22px; flex: 1; }

/* China-visits card: office-interior photo dimmed under navy, content on top */
.contact-visit { position: relative; overflow: hidden; border-color: transparent; }
.visit-media { position: absolute; inset: 0; }
.visit-media img, .visit-media .img-fallback { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.visit-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27, 34, 51, .82);
}
.contact-visit h3, .contact-visit .visit-body, .contact-visit .btn { position: relative; z-index: 1; }
.contact-visit h3 { color: var(--white); }
.contact-visit .visit-body { color: rgba(255, 255, 255, .88); }

/* ---- booking widget ---- */
.booking-card { width: 100%; }
.booking-card form { width: 100%; }
.booking-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  margin-bottom: 20px;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-title { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.cal-nav {
  width: 34px; height: 34px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  transition: border-color .2s, opacity .2s;
}
.cal-nav:not([disabled]):hover { border-color: var(--gold); }
.cal-nav[disabled] { opacity: .3; cursor: default; }
.cal-week, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-week span {
  text-align: center;
  font-size: 11.5px;
  color: var(--grey);
  letter-spacing: .06em;
  padding: 4px 0 8px;
}
.cal-day {
  aspect-ratio: 1;
  border-radius: 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 1px solid transparent;
  transition: border-color .15s, background .15s;
}
.cal-day:not([disabled]):hover { border-color: var(--gold); }
.cal-day[disabled] { color: #C8C3B7; cursor: default; }
.cal-day.is-selected { background: var(--red); color: var(--white); }
.cal-day.is-empty { visibility: hidden; }
.slots-label { font-size: 13.5px; color: var(--grey); margin-bottom: 10px; letter-spacing: .04em; }
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.slot {
  padding: 10px 0;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.slot:hover { border-color: var(--gold); }
.slot.is-selected { background: var(--red); border-color: var(--red); color: var(--white); }
.type-toggle { display: flex; gap: 10px; margin-bottom: 20px; }
.type-opt { flex: 1; position: relative; }
.type-opt input { position: absolute; opacity: 0; pointer-events: none; }
.type-btn {
  display: block;
  text-align: center;
  padding: 10px 0;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.type-opt input:checked + .type-btn { background: var(--ink); border-color: var(--ink); color: var(--white); }
.type-opt input:focus-visible + .type-btn { border-color: var(--gold); }
.type-opt .type-btn:hover { border-color: var(--gold); }

.msg-heading {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin: clamp(32px, 4vw, 48px) 0 16px;
}

/* ---- contact form ---- */
.contact-form-card { width: 100%; }
.contact-form-card form { width: 100%; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 16px; display: flex; flex-direction: column; }
.form-field label {
  font-size: 13.5px;
  color: var(--grey);
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.form-field .req { color: var(--red); margin-left: 2px; }
.form-field input,
.form-field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 11px 14px;
  width: 100%;
  transition: border-color .2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form-card .btn { margin-top: 4px; }
.contact-form-card .btn[disabled] { opacity: .55; cursor: default; transform: none; }
.form-status { margin-top: 14px; font-size: 15px; color: var(--grey); }
.form-status.is-error { color: var(--red); }
.form-status a { color: var(--red); text-decoration: underline; }
.form-success {
  font-size: 17px;
  color: var(--ink);
  padding: 24px 0;
}
.form-success::before {
  content: "";
  display: block;
  width: 48px; height: 1px;
  background: var(--gold);
  margin-bottom: 16px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  padding: 48px 0;
  color: rgba(255, 255, 255, .75);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-meta { font-size: 13.5px; line-height: 1.9; }
.site-footer .brand-mark { width: 40px; height: 40px; }
.site-footer .brand-legio { font-size: 17px; }

/* ============ IMAGE FALLBACK ============ */
.img-fallback {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%);
  width: 100%;
  height: 100%;
  min-height: 180px;
  border-radius: inherit;
  overflow: hidden;
}
.img-fallback::after {
  content: attr(data-numeral);
  font-family: var(--serif);
  font-size: clamp(80px, 14vw, 160px);
  color: rgba(201, 162, 39, .14);
  line-height: 1;
}
.plant-photo .img-fallback,
.models-photo .img-fallback { aspect-ratio: 16 / 10; border-radius: 12px; }
.founder-photo .img-fallback { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--gold); }

/* ============ REVEAL MOTION (scoped to .js so no-JS visitors see everything) ============ */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img { animation: none; }
  .scroll-cue { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .cards-4, .trust-cards { grid-template-columns: repeat(2, 1fr); }
  .chain-steps { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .chain-step p { font-size: 13px; }
}

@media (max-width: 880px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(27, 34, 51, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    flex-direction: column;
    gap: 0;
    padding: 12px 0 20px;
    border-bottom: 1px solid rgba(201, 162, 39, .2);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav a { padding: 13px 24px; width: 100%; font-size: 16px; border-bottom: none; }
  .burger { display: flex; }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(27, 34, 51, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
    z-index: 99;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  body.nav-locked { overflow: hidden; }

  .models-head { grid-template-columns: 1fr; gap: 28px; }
  .cards-services { grid-template-columns: 1fr; }

  .chain-steps { grid-template-columns: 1fr; gap: 0; }
  .chain-steps::before {
    top: 0; bottom: 0; left: 20px; right: auto;
    width: 1px; height: auto;
  }
  .chain-step {
    text-align: left;
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 20px;
    padding: 18px 0;
  }
  .chain-node { margin-bottom: 0; }
  .chain-step h3 { grid-column: 2; margin-top: 8px; }
  .chain-step p { grid-column: 2; }

  .plant-split { grid-template-columns: 1fr; }
  .founder-strip { grid-template-columns: 1fr; }
  .founder-photo { max-width: 300px; }

  .name-media { width: 100%; }
  .name-fade {
    background: linear-gradient(to right, rgba(27, 34, 51, .9) 0%, rgba(27, 34, 51, .72) 100%);
  }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .booking-grid { grid-template-columns: 1fr; gap: 20px; }
  .type-toggle { flex-direction: column; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; padding-top: 40px; padding-bottom: 40px; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-4, .trust-cards { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .brand-legio { font-size: 17px; }
}

@media (min-width: 1600px) {
  :root { --container: 1320px; }
  body { font-size: 17px; }
}
