/* =========================================================
   Elohim Shells — review draft stylesheet
   Palette: sand/ivory base · deep ocean teal · warm coral
   Type:    Cormorant Garamond (display) · Inter (body)
   ========================================================= */

:root {
  color-scheme: only light; /* opt out of Android/Samsung auto-dark, which turned the sand background brown on phones */
  --sand: #f6f1e8;
  --sand-deep: #ede5d6;
  --ivory: #fbf8f2;
  --teal: #0f4c5c;
  --teal-deep: #0a3540;
  --teal-soft: #d8e7ea;
  --coral: #e07a5f;
  --coral-soft: #f4d3c7;
  --ink: #1e2a2f;
  --ink-soft: #52616a;
  --line: rgba(15, 76, 92, 0.14);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 18px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--coral); }
strong { font-weight: 600; }
em { font-style: italic; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--teal-deep);
  letter-spacing: -0.005em;
}
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-soft); font-weight: 300; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; scroll-margin-top: var(--nav-h); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 1.2rem;
}
.eyebrow--light { color: var(--coral-soft); }

.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head--light h2 { color: var(--ivory); }
.section__head--light .lead { color: rgba(251, 248, 242, 0.85); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--teal); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 10px 30px -12px rgba(224, 122, 95, 0.8); }
.btn--primary:hover { background: #d06a4f; color: #fff; }
.btn--ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.7); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,0.95); color: var(--teal-deep); }
.btn--small { padding: 10px 18px; font-size: 0.75rem; background: var(--teal); color: #fff; }
.btn--small:hover { background: var(--teal-deep); color: #fff; }
.btn--link { background: transparent; color: var(--teal); border-color: var(--line); }
.btn--link:hover { background: var(--ivory); color: var(--teal-deep); }
.btn--whatsapp { background: #25d366; color: #fff; margin-top: 8px; }
.btn--whatsapp:hover { background: #1fb457; color: #fff; }
.btn--whatsapp svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
  color: #fff;
}
.nav.is-solid {
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--teal-deep);
}
.nav__inner {
  width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600; letter-spacing: 0.22em;
  color: inherit;
}
.wordmark { display: inline-flex; align-items: center; gap: 0.5em; }
.wordmark__mark { width: 1.55em; height: 1.55em; flex: none; color: inherit; }
.wordmark__text { display: inline-block; }
.wordmark span span { font-weight: 400; letter-spacing: 0.22em; opacity: 0.85; }
.wordmark:hover { color: inherit; opacity: 0.85; }
.nav .wordmark { white-space: nowrap; }
.wordmark--light { color: var(--ivory); }

.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav__links a { white-space: nowrap;
  color: inherit; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a:hover { color: inherit; }
.nav__cta {
  border: 1px solid currentColor; border-radius: 999px; padding: 8px 18px !important;
}
.nav__cta::after { display: none; }
.nav.is-solid .nav__cta { background: var(--teal); border-color: var(--teal); color: #fff; }

.nav__toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden; color: #fff;
  padding: calc(var(--nav-h) + 32px) 0 96px;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,53,64,0.38) 0%, rgba(10,53,64,0.18) 40%, rgba(10,53,64,0.55) 100%),
    radial-gradient(60% 60% at 50% 60%, rgba(10,53,64,0.12), rgba(10,53,64,0.45));
}
.hero__content {
  position: relative; z-index: 2; text-align: center;
  width: min(900px, 100% - 2 * var(--gutter));
}
.hero__title {
  font-size: clamp(2.5rem, 6.4vw, 5.2rem);
  color: #fff; font-weight: 500; line-height: 1.04;
  margin: 0 0 0.4em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem); color: rgba(255,255,255,0.9);
  max-width: 660px; margin: 0 auto 2.2rem; font-weight: 300;
}
.hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,0.7); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: #fff; border-radius: 2px; animation: scrollDot 1.8s infinite ease-in-out;
}
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Concept ---------- */
.concept { background: var(--sand); position: relative; }
.concept__grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center;
}
.concept__media { margin: 0; position: relative; }
.concept__media img {
  border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: 0 30px 60px -30px rgba(10,53,64,0.45);
  aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
}
.concept__media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; z-index: -1;
  border-radius: 200px 200px var(--radius) var(--radius);
  background: repeating-radial-gradient(circle at 50% 0, var(--teal-soft) 0 2px, transparent 2px 18px);
  opacity: 0.6;
}
.concept__media figcaption { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.pillars { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 14px; }
.pillars li {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: baseline;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.pillars li:last-child { border-bottom: 1px solid var(--line); }
.pillars strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--teal-deep); }
.pillars span { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- 3D Model ---------- */
.model { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.model__frame { width: min(1400px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.model__ratio {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #9fc9e8; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(10,53,64,0.5);
}
.model__ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.model__poster { position: absolute; inset: 0; z-index: 2; }
.model__poster[hidden] { display: none; }
.model__poster img { width: 100%; height: 100%; object-fit: cover; }
.model__poster-inner {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; text-align: center;
  padding: 24px; background: linear-gradient(180deg, rgba(10,53,64,0.15), rgba(10,53,64,0.55));
  color: #fff;
}
.model__poster-inner p { margin: 0; font-size: 0.95rem; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.stills { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.stills figure { margin: 0; }
.stills img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.stills figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }
.model__tools { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }

.model__badge {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 28px 0 0;
  padding: 12px 22px 12px 16px;
  border: 1px solid var(--teal); border-radius: 999px;
  color: var(--teal-deep);
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.02em;
  background: var(--sand);
}
.model__badge-icon { color: var(--coral); font-size: 1.1rem; }

.controls {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.controls li {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  padding: 20px; background: var(--sand); border-radius: 14px; border: 1px solid var(--line);
}
.controls__icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.05em;
}
.controls strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--teal-deep); margin-bottom: 4px; }
.controls div { font-size: 0.93rem; color: var(--ink-soft); }
.model__note { margin-top: 22px; font-size: 0.9rem; color: var(--ink-soft); max-width: 760px; }

/* ---------- Technology ---------- */
.tech { background: var(--sand); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 30px; position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -35px rgba(10,53,64,0.45); }
.card__num { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.2em; color: var(--coral); margin-bottom: 18px; }
.card h3 { margin-bottom: 0.5em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.card--image { padding: 0; border: 0; }
.card--image img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }

/* ---------- Off-grid ---------- */
.offgrid { position: relative; color: var(--ivory); overflow: hidden; }
.offgrid__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 40%;
  filter: saturate(0.85);
}
.offgrid__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,53,64,0.88) 0%, rgba(15,76,92,0.86) 50%, rgba(10,53,64,0.92) 100%);
}
.offgrid__inner { position: relative; }
.feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.feat__item {
  padding: 32px; border-radius: var(--radius);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.feat__item h3 { color: var(--ivory); }
.feat__item p { color: rgba(251,248,242,0.85); margin: 0; font-size: 0.97rem; }
.feat__item strong { color: #fff; }
.feat__icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--coral); margin-bottom: 20px;
}
.feat__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Applications ---------- */
.apps { background: var(--sand); padding-bottom: 0; }
.apps__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.app { padding: 36px 32px 36px 0; border-bottom: 1px solid var(--line); }
.app:nth-child(odd) { border-right: 1px solid var(--line); }
.app:nth-child(even) { padding-left: 32px; padding-right: 0; }
.app h3 { margin-bottom: 0.45em; }
.app p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

.markets {
  margin: 56px 0 0; padding: 32px; border-radius: var(--radius);
  background: var(--teal-soft);
  display: grid; grid-template-columns: auto 1fr; gap: 12px 40px; align-items: center;
}
.markets__label { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--teal-deep); margin: 0; }
.markets__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.markets__list li {
  padding: 8px 16px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line);
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; color: var(--teal-deep);
}
.markets__note { grid-column: 1 / -1; margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.apps__banner { margin: clamp(56px, 8vw, 96px) 0 0; }
.apps__banner img { width: 100%; height: clamp(260px, 45vw, 560px); object-fit: cover; }

/* ---------- Downloads ---------- */
.downloads { background: var(--ivory); }
.dl { max-width: 720px; }
.dl__card { border: 1px solid var(--teal); border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.dl__header {
  margin: 0; padding: 12px 24px;
  background: var(--teal); color: #fff;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
}
.dl__body { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 30px 24px; align-items: start; }
.dl__icon { width: 72px; height: 88px; border-radius: 8px; background: var(--ivory); border: 1px solid var(--line); display: grid; place-items: center; }
.dl__icon svg { width: 36px; height: 36px; fill: none; stroke: var(--teal); stroke-width: 1.4; stroke-linejoin: round; }
.dl__body h3 { margin-bottom: 0.35em; }
.dl__body p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 14px; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--coral-soft); color: #9a4b34; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.dl__note { margin: 18px 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.dl__note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact ---------- */
.contact { background: var(--sand); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact__details { font-style: normal; margin: 28px 0 22px; display: grid; gap: 14px; }
.contact__details p { margin: 0; }
.contact__label { display: block; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
.contact__details a { font-size: 1.15rem; font-weight: 500; }

.form {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px;
}
.form__row { display: grid; gap: 6px; }
.form label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,76,92,0.12);
}
.form textarea { resize: vertical; min-height: 120px; }
.form .btn { justify-self: start; }
.form__hint { margin: -6px 0 0; font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--teal-deep); color: rgba(251,248,242,0.8); padding: 56px 0 40px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.14); margin-bottom: 28px; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { color: rgba(251,248,242,0.8); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer__links a:hover { color: #fff; }
.footer__legal { font-size: 0.85rem; line-height: 1.7; max-width: 900px; }
.footer__meta { font-size: 0.78rem; opacity: 0.6; margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay { transition-delay: .15s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .controls { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--sand); color: var(--teal-deep);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    box-shadow: 0 20px 40px -20px rgba(10,53,64,0.35);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
  .nav__links a::after { display: none; }
  .nav__cta { border: 0 !important; padding: 16px 0 !important; border-radius: 0; }
  .nav.is-solid .nav__cta, .nav__cta { background: transparent !important; color: var(--coral) !important; }

  .concept__grid, .contact__grid, .feat, .apps__grid { grid-template-columns: 1fr; }
  .concept__media { order: -1; }
  .concept__media img { aspect-ratio: 4 / 3; border-radius: 120px 120px var(--radius) var(--radius); }
  .concept__media::before { display: none; }
  .app, .app:nth-child(odd), .app:nth-child(even) { padding: 28px 0; border-right: 0; }
  .markets { grid-template-columns: 1fr; padding: 24px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-bottom: 80px; }
  .hero__title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero__ctas .btn { width: 100%; max-width: 320px; }
  .model__frame { width: 100%; }
  .model__ratio { aspect-ratio: 3 / 4; border-radius: 0; }
  .model__tools { padding: 0 var(--gutter); justify-content: center; }
  .model__badge { display: flex; text-align: left; border-radius: 14px; font-size: 1rem; }
  .controls, .cards, .stills { grid-template-columns: 1fr; }
  .card--image img { min-height: 200px; }
  .dl__body { grid-template-columns: 1fr; }
  .dl__icon { display: none; }
  .btn--whatsapp { width: 100%; }
  .form .btn { justify-self: stretch; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}

/* ---- Instagram feed ---- */
.social { background: var(--ivory); border-top: 1px solid var(--line); }
.ig { max-width: 1100px; margin: 0 auto; }
.ig__grid { min-height: 240px; border-radius: var(--radius); overflow: hidden; }
.ig__grid:empty { background: var(--sand); border: 1px dashed var(--line); }
.ig__cta { text-align: center; margin-top: 24px; }
.ig__placeholder { display:grid; place-items:center; min-height:240px; color: var(--teal); text-decoration:none; font-weight:500; }
.ig__frame { min-height: 360px; }

.wordmark .tm { font-size: 0.45em; vertical-align: super; letter-spacing: 0; margin-left: 1px; }

/* ---- Language switcher (EN | 中文) ---- */
.lang {
  display: inline-flex; align-items: center; flex-shrink: 0;
  border: 1px solid currentColor; border-radius: 999px; padding: 2px 4px;
  font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.06em; line-height: 1;
  margin-left: clamp(8px, 1.5vw, 20px);
}
.lang__btn {
  appearance: none; background: none; border: 0; color: inherit; cursor: pointer;
  font: inherit; font-weight: 400; opacity: 0.7; padding: 6px 8px; border-radius: 999px;
  min-height: 28px;
}
.lang__btn[lang="zh-CN"] { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", var(--font-body); letter-spacing: 0.02em; }
.lang__btn[lang="ja"] { font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", var(--font-body); letter-spacing: 0.02em; }
.lang__btn[lang="th"] { font-family: "Noto Sans Thai", "Leelawadee UI", "Tahoma", var(--font-body); }
html[lang="ja"] body { --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif; --font-display: "Noto Sans JP", serif; }
html[lang="th"] body { --font-body: "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif; --font-display: "Noto Sans Thai", serif; line-height: 1.7; }
.lang__btn:hover { opacity: 1; }
.lang__btn[aria-pressed="true"] { font-weight: 700; opacity: 1; }
.lang__btn:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.lang__sep { opacity: 0.45; }
.lang__pills { display: inline-flex; align-items: center; }
.lang__select-wrap { display: none; }
.lang__select { appearance: none; background: transparent; color: inherit; border: 0; font: inherit; font-weight: 700; padding: 6px 22px 6px 10px; min-height: 28px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23ffffff' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right 8px center; }
.nav.is-solid .lang__select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%230f4c5c' stroke-width='1.5'/></svg>"); }
.lang__select option { color: #0f4c5c; background: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1100px) { .lang__pills { display: none; } .lang__select-wrap { display: inline-flex; } }
.nav.is-solid .lang { border-color: var(--line); }
@media (max-width: 860px) {
  .nav__inner { gap: 12px; }
  .lang { margin-left: auto; }          /* sits between the wordmark and the hamburger */
  .lang__btn { padding: 6px 7px; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 1.15rem; letter-spacing: 0.16em; }
}

/* ---- Simplified Chinese typography (Noto Sans SC is injected by i18n.js only when zh is active) ---- */
html[lang="zh-CN"] {
  /* Every rule uses these variables, so redefining them covers eyebrows, buttons, labels, chips, etc.
     Cormorant Garamond has no CJK glyphs: Latin (Elohim™, numerals) stays in Cormorant, Han falls to Noto Sans SC. */
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Cormorant Garamond", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Georgia, serif;
}
html[lang="zh-CN"] body { line-height: 1.8; }
html[lang="zh-CN"] h1, html[lang="zh-CN"] h2, html[lang="zh-CN"] h3,
html[lang="zh-CN"] .pillars strong, html[lang="zh-CN"] .controls strong, html[lang="zh-CN"] .markets__label {
  line-height: 1.3; letter-spacing: 0.02em;
}
html[lang="zh-CN"] .hero__title { font-size: clamp(2.2rem, 4.8vw, 3.8rem); }
html[lang="zh-CN"] .eyebrow, html[lang="zh-CN"] .nav__links a, html[lang="zh-CN"] .dl__header { letter-spacing: 0.14em; }
.nobr { white-space: nowrap; display: inline-block; }
