/* SEDONA Technology — robot brand site
   Layout: a floating glass nav over full-bleed cinematic panels. Sections alternate
   night (navy) and day (cream) like a sunrise; content sits on a wide grid where
   headings hold the left and running text holds the right, divided by a "horizon" hairline. */

:root {
  /* Solar Orbit palette */
  --night: #0b1020;
  --navy: #141b33;
  --navy-2: #1d2547;
  --cream: #f6efe6;
  --sand: #eadfd2;
  --ink: #1b1626;
  --coral: #e8584a;
  --magenta: #c8174e;
  --gold: #f2a54a;

  --on-dark: #f6efe6;
  --on-dark-2: rgba(246, 239, 230, 0.68);
  --on-dark-3: rgba(246, 239, 230, 0.42);
  --on-light: #1b1626;
  --on-light-2: #5f566a;
  --on-light-3: #8f8696;
  --line-dark: rgba(246, 239, 230, 0.14);
  --line-light: rgba(27, 22, 38, 0.12);

  --sunrise: linear-gradient(100deg, #c8174e 0%, #e8584a 48%, #f2a54a 100%);

  /* Type */
  /* Script-specific faces sit behind the Latin ones; html.lang-<code> swaps them per language */
  --intl-sans: "Noto Sans SC", "PingFang SC";
  --intl-serif: "Noto Serif SC", "Songti SC";
  --f-display: "Jost", "Futura", "Avenir Next", var(--intl-sans), system-ui, sans-serif;
  --f-body: "Albert Sans", "Avenir Next", var(--intl-sans), system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, var(--intl-sans), serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-hero: clamp(2.75rem, 5.3vw, 5.6rem);
  --t-h2: clamp(2.1rem, 4.4vw, 4.4rem);
  --t-h3: clamp(1.35rem, 1.9vw, 1.85rem);
  --t-lede: clamp(1.05rem, 1.25vw, 1.25rem);
  --t-body: 1rem;
  --t-small: 0.875rem;
  --t-label: 0.72rem;

  /* Space & shape */
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --section-y: clamp(88px, 11vw, 168px);
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--on-dark);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--coral); color: var(--cream); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 300;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.015em;
}
p { margin: 0; text-wrap: pretty; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* share thumbnail for WeChat: present in the page but never visible */
.wx-thumb { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: var(--r-pill);
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Shared typographic atoms */
.label {
  font-family: var(--f-display);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.label.plain::before { display: none; }
.code { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; font-weight: 400; }
.sun {
  background: var(--sunrise);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: inherit;
}
em.serif, .serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.h2 { font-size: var(--t-h2); line-height: 1.04; }
.lede { font-size: var(--t-lede); line-height: 1.62; font-weight: 300; }

html.lang-zh h1, html.lang-zh h2, html.lang-zh h3 { letter-spacing: 0.01em; line-height: 1.2; font-weight: 300; }
html.lang-zh .label { letter-spacing: 0.22em; }
html.lang-zh .lede { line-height: 1.85; }
html.lang-zh body { line-height: 1.8; }
html.lang-zht { --intl-sans: "Noto Sans TC", "PingFang TC"; --intl-serif: "Noto Serif TC", "Songti TC"; }
html.lang-ja { --intl-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN"; --intl-serif: "Noto Serif JP", "Hiragino Mincho ProN"; }
html.lang-he { --intl-sans: "Noto Sans Hebrew", "Arial Hebrew"; --intl-serif: "Noto Serif Hebrew", "Times New Roman"; }
/* Hebrew has no capitals, so the wide uppercase tracking used on labels only spreads words apart */
html.lang-he body { line-height: 1.7; }
html.lang-he [class*="eyebrow"], html.lang-he .label, html.lang-he .wordmark, html.lang-he .code, html.lang-he .tag { letter-spacing: 0.04em !important; }
/* Long German and French words must break instead of overflowing on narrow screens */
html.lang-de h1, html.lang-de h2, html.lang-de h3, html.lang-fr h1, html.lang-fr h2, html.lang-fr h3, html.lang-es h1, html.lang-es h2 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

/* Buttons */
.btn {
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 8px 0 24px;
  border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--f-display); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.02em;
  transition: transform 0.4s var(--ease-out), background 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn .ico {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sunrise); color: var(--cream);
  transition: transform 0.4s var(--ease-out);
}
.btn .ico svg { width: 16px; height: 16px; }
.btn:hover .ico { transform: rotate(-45deg); }
.btn:hover { transform: translateY(-1px); }
.btn.ghost {
  --btn-bg: rgba(246, 239, 230, 0.08);
  --btn-fg: var(--cream);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.btn.ghost .ico { background: rgba(246, 239, 230, 0.12); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 500; font-size: 0.95rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); flex-shrink: 0; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 0; right: 0;
  z-index: 50;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav-bar {
  pointer-events: auto;
  position: relative;
  max-width: calc(var(--maxw) - 2 * var(--gutter) + 40px);
  margin-inline: auto;
  height: 64px;
  display: flex; align-items: center; gap: 24px;
  padding: 0 10px 0 22px;
  border-radius: 18px;
  background: rgba(11, 16, 32, 0.46);
  border: 1px solid rgba(246, 239, 230, 0.1);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.scrolled .nav-bar { background: rgba(11, 16, 32, 0.78); box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.6); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav-links > a {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: 10px;
  font-family: var(--f-display); font-size: 0.9rem; font-weight: 400; letter-spacing: 0.02em;
  color: var(--on-dark-2);
  transition: color 0.2s, background 0.2s;
}
.nav-links > a:hover { color: var(--cream); background: rgba(246, 239, 230, 0.07); }
.nav-links .caret { width: 10px; height: 10px; transition: transform 0.3s; }
.nav-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* Language dropdown */
.lang-dd { position: relative; }
.lang-dd-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-dark);
  font-family: var(--f-display); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; color: var(--on-dark-2);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.lang-dd-btn:hover, .lang-dd.open .lang-dd-btn { color: var(--cream); background: rgba(246, 239, 230, 0.07); }
.lang-dd-btn .globe { width: 15px; height: 15px; opacity: 0.8; }
.lang-dd-btn .caret { width: 9px; height: 9px; transition: transform 0.3s; }
.lang-dd.open .lang-dd-btn .caret { transform: rotate(180deg); }
.lang-dd.is-loading .lang-dd-btn .cur { opacity: 0.45; }
.lang-dd-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60;
  min-width: 190px; margin: 0; padding: 6px; list-style: none;
  background: rgba(14, 19, 38, 0.97); border: 1px solid var(--line-dark); border-radius: 14px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: langdd 0.22s var(--ease-out);
}
@keyframes langdd { from { opacity: 0; transform: translateY(-6px); } }
.lang-dd-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  min-height: 42px; padding: 0 12px; border-radius: 9px; text-align: start;
  font-family: var(--f-body); font-size: 0.95rem; color: var(--on-dark-2);
}
.lang-dd-menu button:lang(zh-CN) { font-family: "Noto Sans SC", "PingFang SC", var(--f-body); }
.lang-dd-menu button:lang(zh-Hant) { font-family: "Noto Sans TC", "PingFang TC", var(--f-body); }
.lang-dd-menu button:lang(ja) { font-family: "Noto Sans JP", "Hiragino Sans", var(--f-body); }
.lang-dd-menu button:lang(he) { font-family: "Noto Sans Hebrew", "Arial Hebrew", var(--f-body); }
.lang-dd-menu button:hover, .lang-dd-menu button:focus-visible { background: rgba(246, 239, 230, 0.08); color: var(--cream); outline: none; }
.lang-dd-menu button[aria-checked="true"] { color: var(--cream); }
.lang-dd-menu button[aria-checked="true"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.nav-cta {
  height: 44px; padding: 0 18px; border-radius: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sunrise); color: var(--cream);
  font-family: var(--f-display); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.02em;
  box-shadow: 0 10px 30px -12px rgba(232, 88, 74, 0.9);
  white-space: nowrap;
}
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-dark); place-items: center; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--cream); position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--cream); }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

/* Mega menu */

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(8, 11, 22, 0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: calc(env(safe-area-inset-top, 0px) + 22px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 28px);
  display: flex; flex-direction: column; gap: 28px;
  overflow-y: auto;
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head img { height: 30px; width: auto; }
.drawer-close { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-dark); display: grid; place-items: center; }
.drawer-close svg { width: 18px; height: 18px; }
.drawer nav { display: grid; gap: 4px; }
.drawer nav > a { font-family: var(--f-display); font-weight: 300; font-size: 2rem; padding: 6px 0; border-bottom: 1px solid var(--line-dark); }
.drawer-cta { align-self: stretch; justify-content: space-between; }

/* ---------- Robot stage (shared by hero, product hero, cards) ---------- */
.stage { position: relative; width: 100%; height: 100%; }
.stage .bot {
  position: absolute;
  z-index: 2;
  left: 50%; bottom: 8%;
  height: 84%;
  max-width: 96%;
  aspect-ratio: var(--ar, 0.6);
  transform: translateX(-50%);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out), filter 0.9s;
}
.stage .bot img { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; position: relative; z-index: 2; }
.bot .rim, .bot .shade {
  position: absolute; inset: 0;
  -webkit-mask: var(--src) bottom center / contain no-repeat;
  mask: var(--src) bottom center / contain no-repeat;
  pointer-events: none;
}
.bot .rim, .bot .shade { opacity: 0; transition: opacity 0.8s var(--ease-out); }
.bot.ready .rim, .bot.ready .shade { opacity: 1; }
.bot .rim {
  z-index: 3;
  background: linear-gradient(100deg, rgba(242, 165, 74, 0.5) 0%, rgba(242, 165, 74, 0) 34%, rgba(242, 165, 74, 0) 80%, rgba(232, 88, 74, 0.26) 100%);
  mix-blend-mode: screen;
}
.bot .shade { z-index: 3; background: linear-gradient(0deg, rgba(11, 16, 32, 0.5) 0%, rgba(11, 16, 32, 0) 30%); }
.bot .floor {
  position: absolute; left: 50%; bottom: -3%; width: 150%; height: 9%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0) 70%);
  z-index: 0;
}
.bot .floor::after {
  content: ""; position: absolute; inset: -60% -20%;
  background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(242, 165, 74, 0.35), transparent 70%);
  filter: blur(8px);
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section.day { background: var(--cream); color: var(--on-light); }
.section.night { background: var(--night); color: var(--on-dark); }
.section.navy { background: var(--navy); color: var(--on-dark); }
.day .label { color: var(--magenta); }
.night .label, .navy .label { color: var(--gold); }

.head-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 96px);
  align-items: end;
}
.head-split > div:first-child { display: grid; gap: 22px; justify-items: start; }
.head-split .lede { max-width: 36em; }
.day .head-split .lede { color: var(--on-light-2); }
.night .head-split .lede, .navy .head-split .lede { color: var(--on-dark-2); }
.horizon-name {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--f-display); font-size: 0.8rem; letter-spacing: 0.5em; color: var(--on-dark-3);
}
.horizon-name::before, .horizon-name::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.5; }

/* ---------- Manifesto ---------- */
.manifesto { padding-block: clamp(110px, 14vw, 200px); }
.manifesto .wrap { display: grid; grid-template-columns: minmax(0, 0.28fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.manifesto .label { margin-top: 0.9em; }
.manifesto-text {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(1.7rem, 3.3vw, 3.25rem); line-height: 1.22; letter-spacing: -0.01em;
  color: var(--on-light);
}
html.lang-zh .manifesto-text { line-height: 1.55; letter-spacing: 0.02em; font-size: clamp(1.5rem, 2.9vw, 2.8rem); }
.manifesto-text .w { transition: color 0.5s; }
.js-motion .manifesto-text .w { color: rgba(27, 22, 38, 0.18); }
.js-motion .manifesto-text .w.lit { color: var(--on-light); }
.manifesto-text .w.hl.lit, html:not(.js-motion) .manifesto-text .hl { background: var(--sunrise); -webkit-background-clip: text; background-clip: text; color: transparent; }
.manifesto-sign { margin-top: 36px; display: flex; align-items: center; gap: 16px; color: var(--on-light-2); font-size: var(--t-small); }
.manifesto-sign img { width: 44px; height: auto; }

/* ---------- Robot grid ---------- */
.robots { background: var(--cream); color: var(--on-light); padding-top: 0; }
.robots .label { color: var(--magenta); }
.robots .head-split .lede { color: var(--on-light-2); }
.robot-grid { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.rcard {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: clamp(440px, 44vw, 640px);
  color: var(--on-dark);
  background:
    radial-gradient(ellipse 55% 34% at 64% 96%, color-mix(in srgb, var(--tone, #e8584a) 70%, transparent), transparent 72%),
    radial-gradient(ellipse 80% 60% at 64% 70%, rgba(242, 165, 74, 0.12), transparent 70%),
    linear-gradient(160deg, #1b2346 0%, var(--night) 70%);
  isolation: isolate;
  display: grid;
}
.rcard .stage { position: absolute; inset: 0; z-index: 0; }
.rcard .stage .bot { left: 66%; height: 78%; bottom: 8%; }
.rcard:hover .stage .bot { transform: translateX(-50%) translateY(-2%) scale(1.035); }
.rcard-body {
  position: relative; z-index: 5;
  align-self: end;
  padding: clamp(22px, 2.6vw, 40px);
  display: grid; gap: 10px; justify-items: start;
  max-width: 56%;
}
.rcard .code { color: var(--gold); }
.rcard h3 { font-size: clamp(1.7rem, 2.6vw, 2.6rem); line-height: 1.05; }
.rcard .type { color: var(--on-dark-2); font-family: var(--f-display); font-size: 0.95rem; }
.rcard p.desc { color: var(--on-dark-2); font-size: var(--t-small); line-height: 1.6; max-width: 26em; }
.rcard .more { margin-top: 8px; color: var(--cream); }
.rcard .num {
  position: absolute; top: clamp(18px, 2vw, 30px); left: clamp(22px, 2.6vw, 40px); z-index: 1;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(4rem, 8vw, 8rem); line-height: 0.8; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(246, 239, 230, 0.2);
}
.rcard a.cover { position: absolute; inset: 0; z-index: 6; border-radius: inherit; }
.rcard .spaces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: 0.74rem; letter-spacing: 0.02em;
  border: 1px solid var(--line-dark); color: var(--on-dark-2);
  background: rgba(11, 16, 32, 0.35);
}
a.chip:hover { border-color: rgba(242, 165, 74, 0.6); color: var(--cream); }

/* ---------- Spaces (floor plans) ---------- */
.spaces-sec { background: var(--navy); overflow: hidden; }
.spaces-sec .bg-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(246, 239, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 239, 230, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
.rail-head .code { color: var(--on-dark-3); }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: background 0.25s, border-color 0.25s; }
.rail-nav button:hover { background: rgba(246, 239, 230, 0.08); border-color: rgba(246, 239, 230, 0.3); }
.rail-nav svg { width: 16px; height: 16px; }
.rail {
  margin-top: 22px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 32%);
  gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin; scrollbar-color: rgba(246, 239, 230, 0.2) transparent;
  overscroll-behavior-x: contain;
}
.space-card {
  scroll-snap-align: start;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(246, 239, 230, 0.06), rgba(246, 239, 230, 0.02));
  border: 1px solid var(--line-dark);
  display: grid; grid-template-rows: auto 1fr;
  overflow: hidden; min-width: 0;
}
.plan { position: relative; aspect-ratio: 400 / 260; max-width: 100%; background: rgba(11, 16, 32, 0.55); border-bottom: 1px solid var(--line-dark); }
.plan svg { width: 100%; height: 100%; }
.plan .wall { fill: none; stroke: rgba(246, 239, 230, 0.42); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.plan .furn { fill: rgba(246, 239, 230, 0.04); stroke: rgba(246, 239, 230, 0.2); stroke-width: 0.9; }
.plan .furn-l { fill: none; stroke: rgba(246, 239, 230, 0.2); stroke-width: 0.9; }
.plan .lbl { fill: rgba(246, 239, 230, 0.45); font-family: var(--f-mono); font-size: 7.5px; letter-spacing: 0.12em; }
.plan .route-bg { fill: none; stroke: rgba(242, 165, 74, 0.16); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.plan .route { fill: none; stroke: rgba(242, 165, 74, 0.45); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 3 5; }
.plan .route { animation: routeFlow 0.9s linear infinite; }
@keyframes routeFlow { to { stroke-dashoffset: -8; } }
.plan .route-drawn { fill: none; stroke: url(#routeGrad); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plan .pin { fill: var(--gold); }
.plan .pin-ring { fill: none; stroke: var(--gold); stroke-width: 1; }
.plan .robot-dot { fill: #fff4e0; }
.plan .robot-glow { fill: rgba(242, 165, 74, 0.35); }
.plan .start { fill: none; stroke: var(--cream); stroke-width: 1.2; }
.space-body { padding: 22px 22px 24px; display: grid; gap: 12px; align-content: start; }
.space-body h3 { font-size: 1.5rem; font-weight: 300; }
.space-body p { color: var(--on-dark-2); font-size: var(--t-small); line-height: 1.65; }
.route-log {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 10px; background: rgba(11, 16, 32, 0.5);
  font-family: var(--f-mono); font-size: 0.72rem; color: var(--on-dark-2);
  font-variant-numeric: tabular-nums;
}
.route-log b { color: var(--gold); font-weight: 400; }
.space-bots { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.space-bots a {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px;
  border-radius: var(--r-pill); border: 1px solid var(--line-dark); font-family: var(--f-mono); font-size: 0.72rem;
  transition: border-color 0.2s, background 0.2s;
}
.space-bots a:hover { border-color: rgba(242, 165, 74, 0.6); background: rgba(242, 165, 74, 0.08); }
.space-bots img { height: 32px; width: 32px; object-fit: contain; background: rgba(246, 239, 230, 0.06); border-radius: 50%; padding: 2px; }

/* ---------- Story ---------- */
.story { background: var(--cream); color: var(--on-light); }
.story-intro { margin-bottom: clamp(40px, 5vw, 72px); }
.story-intro .label { color: var(--magenta); }
.story-intro .lede { color: var(--on-light-2); }
.story-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: clamp(560px, 56vw, 820px);
  color: var(--on-dark);
  display: grid; isolation: isolate;
  background: url("../img/textures/sedona-dawn.webp") center 62% / cover no-repeat, #3a2440;
}
.story-card::after {
  /* deepen the sky behind the text; the red rocks below stay untouched */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 12, 34, 0.78) 0%, rgba(14, 12, 34, 0.5) 30%, rgba(14, 12, 34, 0.12) 52%, rgba(14, 12, 34, 0) 64%),
    linear-gradient(90deg, rgba(14, 12, 34, 0.35) 0%, rgba(14, 12, 34, 0) 45%);
}
.story-inner {
  padding: clamp(28px, 4vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-content: start;
}
.story-lead { display: grid; gap: 22px; align-content: start; justify-items: start; }
.story-inner .label { color: var(--gold); }
.story-quote { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(2.3rem, 4.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.01em; }
html.lang-zh .story-quote { font-family: var(--f-display); font-style: normal; font-weight: 300; line-height: 1.3; font-size: clamp(2rem, 3.8vw, 3.8rem); }
.story-text { display: grid; gap: 18px; color: rgba(246, 239, 230, 0.82); align-content: start; max-width: 36em; text-shadow: 0 1px 16px rgba(14, 12, 34, 0.6); }
.story-text p:first-child { color: var(--cream); }
.vision { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 0.28fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.vision .label { margin-top: 0.7em; color: var(--magenta); }
.vision p { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1.4; color: var(--on-light); max-width: 34em; }

/* ---------- Contact ---------- */
.contact {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(14, 4, 12, 0.86) 0%, rgba(14, 4, 12, 0.6) 38%, rgba(14, 4, 12, 0.12) 72%, rgba(14, 4, 12, 0) 100%),
    linear-gradient(180deg, rgba(14, 4, 12, 0.35) 0%, rgba(14, 4, 12, 0) 30%, rgba(14, 4, 12, 0) 70%, rgba(14, 4, 12, 0.45) 100%),
    url("../img/textures/silk.webp") center / cover no-repeat,
    #2a0812;
}
.contact .label { color: var(--gold); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.contact-copy { display: grid; gap: 24px; justify-items: start; position: sticky; top: 120px; }
.contact-copy .lede { color: var(--on-dark-2); }
.commerce-note {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--r-md);
  border: 1px dashed rgba(242, 165, 74, 0.45);
  background: rgba(242, 165, 74, 0.06);
  color: var(--on-dark-2); font-size: var(--t-small);
}
.commerce-note svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.commerce-note strong { color: var(--cream); font-weight: 500; display: block; margin-bottom: 2px; }
form.lead {
  border-radius: var(--r-xl);
  background: rgba(246, 239, 230, 0.05);
  border: 1px solid var(--line-dark);
  padding: clamp(22px, 3vw, 40px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--f-display); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-3); }
html.lang-zh .field label { letter-spacing: 0.08em; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0;
  font: inherit; color: var(--cream);
  background: rgba(11, 16, 32, 0.6);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s, background 0.2s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23F6EFE6' stroke-width='1.4'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { background: var(--navy); color: var(--cream); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(11, 16, 32, 0.85); }
.field input[aria-invalid="true"] { border-color: #ff9b8f; }
.field input::placeholder, .field textarea::placeholder { color: var(--on-dark-3); }
.field .err { color: #ff9b8f; font-size: 0.8rem; }
.field .err:empty { display: none; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 6px; }
.form-foot small { color: var(--on-dark-3); max-width: 30em; }
.form-done {
  grid-column: 1 / -1;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 12px;
  background: rgba(242, 165, 74, 0.1); border: 1px solid rgba(242, 165, 74, 0.35);
  color: var(--cream); font-size: var(--t-small);
}
.form-done svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* Light booking card on the silk */
.contact form.lead {
  background: rgba(250, 245, 238, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--on-light);
  box-shadow: 0 50px 90px -40px rgba(30, 0, 10, 0.75), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.contact .field label { color: var(--on-light-2); }
.contact .field input, .contact .field select, .contact .field textarea {
  color: var(--ink);
  background-color: #ffffff;
  border: 1px solid rgba(27, 22, 38, 0.14);
}
.contact .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%231B1626' stroke-width='1.4'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); }
.contact .field select option { background: #ffffff; color: var(--ink); }
.contact .field input:focus, .contact .field select:focus, .contact .field textarea:focus {
  background-color: #ffffff; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(232, 88, 74, 0.16);
}
.contact .field input::placeholder, .contact .field textarea::placeholder { color: var(--on-light-3); }
.contact .field input[aria-invalid="true"] { border-color: #c2353a; }
.contact .field .err { color: #c2353a; }
.contact .form-foot small { color: var(--on-light-2); }
.contact form.lead .btn { --btn-bg: var(--ink); --btn-fg: var(--cream); }
.contact .form-done { background: rgba(232, 88, 74, 0.08); border-color: rgba(232, 88, 74, 0.3); color: var(--ink); }
.contact .form-done svg { color: var(--coral); }
.contact .contact-copy .lede { color: rgba(246, 239, 230, 0.86); text-shadow: 0 1px 18px rgba(14, 4, 12, 0.9); }
.contact .contact-copy .h2 { text-shadow: 0 2px 30px rgba(14, 4, 12, 0.6); }
.contact .commerce-note { background: rgba(14, 4, 12, 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 900px) {
  .contact {
    background:
      linear-gradient(180deg, rgba(14, 4, 12, 0.82) 0%, rgba(14, 4, 12, 0.55) 45%, rgba(14, 4, 12, 0.35) 100%),
      url("../img/textures/silk.webp") 62% center / cover no-repeat,
      #2a0812;
  }
}

/* ---------- Footer ---------- */
.foot { background: var(--night); color: var(--on-dark-2); padding-block: 72px 40px; border-top: 1px solid var(--line-dark); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand { display: grid; gap: 18px; align-content: start; justify-items: start; }
.foot-brand img { width: 220px; height: auto; }
.foot-brand p { font-family: var(--f-serif); font-style: italic; font-size: 1.5rem; color: var(--cream); line-height: 1.2; }
html.lang-zh .foot-brand p { font-family: var(--f-display); font-style: normal; font-weight: 300; }
.foot h4 { font-family: var(--f-display); font-size: var(--t-label); letter-spacing: 0.28em; text-transform: uppercase; color: var(--on-dark-3); font-weight: 500; margin-bottom: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--t-small); }
.foot ul a:hover { color: var(--cream); }
.foot-bottom { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--on-dark-3); }
.foot-bottom .horizon-name { flex: 1; min-width: 200px; }

/* ---------- Film dialog ---------- */
dialog.film {
  width: min(1200px, calc(100vw - 32px));
  padding: 0; border: 0; border-radius: var(--r-lg);
  background: #000; color: var(--cream);
  overflow: hidden;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.9);
}
dialog.film::backdrop { background: rgba(5, 7, 14, 0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
dialog.film video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
dialog.film .x {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11, 16, 32, 0.7); border: 1px solid var(--line-dark);
}
dialog.film .x svg { width: 16px; height: 16px; }

/* ---------- Reveal ---------- */
.js-motion .rv { transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js-motion .rv:not(.in) { opacity: 0; transform: translateY(28px); }
.js-motion .rv.d1 { transition-delay: 0.08s; }
.js-motion .rv.d2 { transition-delay: 0.16s; }
.js-motion .rv.d3 { transition-delay: 0.24s; }

/* =========================================================
   Product page
   ========================================================= */
.phero {
  --tone: #e8584a;
  position: relative;
  min-height: max(760px, 100svh);
  overflow: hidden; isolation: isolate;
  display: flex;
  background:
    radial-gradient(ellipse 46% 36% at 70% 100%, color-mix(in srgb, var(--tone) 70%, transparent), transparent 72%),
    radial-gradient(ellipse 60% 55% at 70% 62%, rgba(242, 165, 74, 0.1), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, #111833 62%, #1b1430 100%);
}
.phero .pghost {
  position: absolute; right: -1.5vw; top: 50%; transform: translateY(-46%);
  z-index: -1; pointer-events: none; user-select: none;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(12rem, 36vw, 36rem); line-height: 0.8; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(246, 239, 230, 0.08);
}
.phero-inner {
  width: 100%;
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); grid-template-rows: 1fr auto;
  column-gap: 24px;
  padding-block: 116px 40px;
}
.phero-copy { align-self: center; display: grid; gap: 22px; justify-items: start; max-width: 620px; position: relative; z-index: 4; }
.phero .label { color: var(--gold); }
.pswitch { display: flex; gap: 6px; flex-wrap: wrap; }
.pswitch a {
  height: 34px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-dark); display: inline-flex; align-items: center;
  font-family: var(--f-mono); font-size: 0.74rem; color: var(--on-dark-2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pswitch a:hover { border-color: rgba(246, 239, 230, 0.35); color: var(--cream); }
.pswitch a[aria-current="page"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.notice { font-size: var(--t-small); color: var(--gold); }
.phero h1 { display: grid; gap: 6px; font-size: clamp(3.2rem, 6.6vw, 7rem); line-height: 0.92; letter-spacing: -0.035em; }
.phero h1 .h1-brand { font-size: clamp(0.85rem, 1.1vw, 1.05rem); font-weight: 500; letter-spacing: 0.62em; line-height: 1; color: var(--on-dark-2); margin-bottom: 10px; }
.phero .tagline { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.5rem, 2.3vw, 2.2rem); line-height: 1.2; color: var(--cream); max-width: 22em; }
html.lang-zh .phero .tagline { font-family: var(--f-display); font-style: normal; font-weight: 300; }
.p-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.soon { display: inline-flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--on-dark-3); }
.soon svg { width: 18px; height: 18px; color: var(--gold); }
.phero-stage { position: relative; min-height: clamp(460px, 68vh, 820px); }
.phero-stage .stage { position: absolute; inset: 0; }
.phero-stage .bot { height: 90%; bottom: 4%; }
.highlights { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); position: relative; z-index: 4; }
.highlights div { padding: 22px 24px 0 0; display: grid; gap: 6px; align-content: start; }
.highlights div + div { padding-inline-start: 24px; border-inline-start: 1px solid var(--line-dark); }
.highlights b { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.8rem, 3vw, 2.9rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.highlights span { color: var(--on-dark-2); font-size: var(--t-small); }

/* Overview */
.pintro .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.pintro .media { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; }
.pintro .media > img { width: 100%; height: 100%; object-fit: cover; }
.stage-card {
  background:
    radial-gradient(ellipse 60% 30% at 50% 96%, color-mix(in srgb, var(--tone, #e8584a) 70%, transparent), transparent 72%),
    linear-gradient(160deg, #1b2346 0%, var(--night) 75%);
}
.stage-card .stage { position: absolute; inset: 0; }
.pintro .copy { display: grid; gap: 22px; justify-items: start; }
.pintro .copy p { color: var(--on-light-2); font-size: var(--t-lede); font-weight: 300; max-width: 34em; }
html.lang-zh .pintro .copy p { line-height: 1.9; }

/* Uses */
.ptabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 56px); }
.ptabs button {
  height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  border: 1px solid var(--line-dark); font-family: var(--f-display); font-size: 0.95rem; color: var(--on-dark-2);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.ptabs button:hover { color: var(--cream); border-color: rgba(246, 239, 230, 0.35); }
.ptabs button[aria-selected="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.ppanel { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; }
.ppanel .txt {
  border-radius: var(--r-lg); border: 1px solid var(--line-dark);
  background: linear-gradient(180deg, rgba(246, 239, 230, 0.06), rgba(246, 239, 230, 0.015));
  padding: clamp(24px, 3vw, 44px); display: grid; gap: 16px; align-content: start; min-width: 0;
}
.ppanel h3 { font-size: var(--t-h3); }
.ppanel p { color: var(--on-dark-2); }
.tasks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; }
.tasks li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-dark); font-family: var(--f-display); }
.tasks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sunrise); flex-shrink: 0; }
.ppanel .plan { border-radius: var(--r-lg); border: 1px solid var(--line-dark); overflow: hidden; align-self: start; }
.plan-fallback { background: linear-gradient(160deg, #1b2346, var(--night)); }
.plan-fallback .stage { position: absolute; inset: 0; }

/* Features */
.pfeat { background: radial-gradient(ellipse 50% 50% at 85% 20%, rgba(200, 23, 78, 0.18), transparent 70%), var(--night); }
.pfeat-grid { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fcard {
  border-radius: var(--r-lg); border: 1px solid var(--line-dark);
  background: linear-gradient(180deg, rgba(246, 239, 230, 0.06), rgba(246, 239, 230, 0.015));
  padding: 26px; display: grid; gap: 12px; align-content: start; min-height: 250px;
}
.fcard svg { width: 44px; height: 44px; margin-bottom: 18px; }
.fcard h3 { font-size: 1.3rem; font-weight: 400; }
.fcard p { color: var(--on-dark-2); font-size: var(--t-small); line-height: 1.65; }

/* Body in detail */
.pbody { background: linear-gradient(180deg, var(--navy), var(--night)); }
.pbody-grid { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hs-stage {
  position: relative; height: clamp(520px, 74vh, 840px); border-radius: var(--r-xl); overflow: hidden;
  background:
    radial-gradient(ellipse 50% 22% at 50% 96%, color-mix(in srgb, var(--tone, #e8584a) 55%, transparent), transparent 72%),
    radial-gradient(ellipse 60% 60% at 50% 45%, rgba(246, 239, 230, 0.07), transparent 70%),
    linear-gradient(180deg, #1a2244, #0d1226);
  border: 1px solid var(--line-dark);
}
.hs-figure { position: absolute; left: 50%; bottom: 5%; height: 88%; aspect-ratio: var(--ar, 0.6); max-width: 92%; transform: translateX(-50%); }
.hs-figure img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.5)); }
.hs {
  position: absolute; transform: translate(-50%, -50%);
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(11, 16, 32, 0.6); border: 1px solid rgba(246, 239, 230, 0.7);
  color: var(--cream); font-family: var(--f-mono); font-size: 0.72rem;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s, transform 0.25s;
}
.hs::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(242, 165, 74, 0.8); animation: ping 2.4s var(--ease-out) infinite; }
.hs[aria-pressed="true"] { background: var(--sunrise); border-color: transparent; transform: translate(-50%, -50%) scale(1.12); }
@keyframes ping { 0% { transform: scale(0.75); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.hs-list { list-style: none; margin: 0; padding: 0; display: grid; }
.hs-list button {
  width: 100%; text-align: start;
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 18px 0; border-top: 1px solid var(--line-dark);
}
.hs-list li:last-child button { border-bottom: 1px solid var(--line-dark); }
.hs-list .n { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; font-family: var(--f-mono); font-size: 0.7rem; transition: background 0.25s; }
.hs-list strong { font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; display: block; transition: color 0.25s; }
.hs-list p { color: var(--on-dark-2); font-size: var(--t-small); margin-top: 4px; }
.hs-list button[aria-pressed="true"] .n { background: var(--sunrise); border-color: transparent; }
.hs-list button[aria-pressed="true"] strong { color: var(--gold); }

/* Specs */
.pspecs { padding-bottom: clamp(56px, 6vw, 96px); }
.pspecs .lede .code { color: var(--magenta); }
.spec-table { margin: clamp(36px, 4vw, 56px) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 72px); }
.spec-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-light); }
.spec-row dt { color: var(--on-light-2); font-size: var(--t-small); }
.spec-row dd { margin: 0; font-family: var(--f-display); color: var(--on-light); font-variant-numeric: tabular-nums; }
.spec-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-light); color: var(--on-light-3); font-size: 0.8rem; }

/* Family */
.pfamily { padding-top: clamp(56px, 6vw, 96px); }
.fam { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.fam a {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  color: var(--on-dark);
  background:
    radial-gradient(ellipse 60% 26% at 50% 70%, color-mix(in srgb, var(--tone, #e8584a) 60%, transparent), transparent 72%),
    linear-gradient(160deg, #1b2346, var(--night) 75%);
  padding: 18px; display: grid; gap: 4px; align-content: end; min-height: 320px;
}
.fam-img { display: grid; place-items: end center; height: 200px; margin-bottom: 14px; }
.fam-img img { max-height: 200px; width: auto; transition: transform 0.6s var(--ease-out); filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.5)); }
.fam a:hover .fam-img img { transform: translateY(-6px) scale(1.04); }
.fam .code { color: var(--gold); }
.fam strong { font-family: var(--f-display); font-weight: 400; font-size: 1.05rem; line-height: 1.25; }
.fam small { color: var(--on-dark-2); font-size: 0.8rem; line-height: 1.4; }

/* CTA */
.pcta { background: radial-gradient(ellipse 55% 60% at 50% 120%, rgba(232, 88, 74, 0.6), rgba(200, 23, 78, 0.22) 45%, transparent 72%), var(--night); text-align: center; }
.pcta-inner { display: grid; justify-items: center; gap: 26px; }
.pcta .label { color: var(--gold); }
.pcta .h2 { max-width: 14em; }
.pcta .p-ctas { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .nav-bar { justify-content: space-between; }
  .rail { grid-auto-columns: minmax(300px, 46%); }
  .pfeat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fam { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .head-split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .manifesto .wrap { grid-template-columns: minmax(0, 1fr); }
  .robot-grid { grid-template-columns: minmax(0, 1fr); }
  .rcard-body { max-width: 64%; }
  .story-inner { grid-template-columns: minmax(0, 1fr); }
  .story-card { min-height: 640px; background-position: 64% bottom; }
  .story-card::after { background: linear-gradient(180deg, rgba(14, 12, 34, 0.84) 0%, rgba(14, 12, 34, 0.7) 52%, rgba(14, 12, 34, 0.22) 76%, rgba(14, 12, 34, 0) 88%); }
    .vision { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-copy { position: static; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .phero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 100px; row-gap: 8px; }
  .phero-stage { order: -1; min-height: 50vh; }
  .phero .pghost { top: 26%; }
  .pintro .wrap { grid-template-columns: minmax(0, 1fr); }
  .pintro .media { aspect-ratio: 4 / 3.4; }
  .ppanel { grid-template-columns: minmax(0, 1fr); }
  .pbody-grid { grid-template-columns: minmax(0, 1fr); }
  .spec-table { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .nav-cta { padding: 0 14px; }
  .brand img { height: 28px; }
  .rail { grid-auto-columns: 86%; }
  .rcard { min-height: 560px; }
  .rcard-body { max-width: 100%; }
  .rcard .stage .bot { left: 50%; height: 52%; bottom: auto; top: 6%; }
  .rcard .num { font-size: 4.2rem; }
  form.lead { grid-template-columns: minmax(0, 1fr); }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .rail-nav { display: none; }
  .highlights { grid-template-columns: minmax(0, 1fr); }
  .highlights div, .highlights div + div { padding: 16px 0 0; border-inline-start: 0; }
  .highlights div + div { border-top: 1px solid var(--line-dark); margin-top: 16px; }
  .pfeat-grid { grid-template-columns: minmax(0, 1fr); }
  .fcard { min-height: 0; }
  .fam { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fam a { min-height: 260px; }
  .fam-img { height: 150px; }
  .fam-img img { max-height: 150px; }
  .hs-stage { height: 520px; }
  .p-ctas .btn { flex: 1 1 auto; justify-content: space-between; }
}

/* Phones: the top bar carries the language switch instead of the demo button (which moves into the menu) */
@media (max-width: 760px) {
  .nav-cta { display: none; }
  .nav-tools { gap: 8px; }
  /* plain text on phones: current language and a caret, no outline */
  .lang-dd-btn { height: 44px; padding: 0 6px; border: 0; gap: 5px; font-size: 0.95rem; color: var(--cream); }
  .lang-dd-btn .globe { display: none; }
  .lang-dd-btn:hover, .lang-dd.open .lang-dd-btn { background: none; color: var(--gold); }
  .lang-dd-menu { min-width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  *:not(.ambient), *:not(.ambient)::before, *:not(.ambient)::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Right-to-left (Hebrew) ---------- */
html[dir="rtl"] svg.i-dir { scale: -1 1; }
html[dir="rtl"] .link-arrow:hover svg { transform: translateX(-4px); }
html[dir="rtl"] .story-card::after {
  background:
    linear-gradient(180deg, rgba(14, 12, 34, 0.78) 0%, rgba(14, 12, 34, 0.5) 30%, rgba(14, 12, 34, 0.12) 52%, rgba(14, 12, 34, 0) 64%),
    linear-gradient(270deg, rgba(14, 12, 34, 0.35) 0%, rgba(14, 12, 34, 0) 45%);
}
html[dir="rtl"] .contact {
  background:
    linear-gradient(270deg, rgba(14, 4, 12, 0.86) 0%, rgba(14, 4, 12, 0.6) 38%, rgba(14, 4, 12, 0.12) 72%, rgba(14, 4, 12, 0) 100%),
    linear-gradient(180deg, rgba(14, 4, 12, 0.35) 0%, rgba(14, 4, 12, 0) 30%, rgba(14, 4, 12, 0) 70%, rgba(14, 4, 12, 0.45) 100%),
    url("../img/textures/silk.webp") center / cover no-repeat,
    #2a0812;
}
html[dir="rtl"] .field select { background-position: left 16px center; padding-right: 16px; padding-left: 40px; }
html[dir="rtl"] .rcard .num { left: auto; right: clamp(22px, 2.6vw, 40px); }
html[dir="rtl"] dialog.film .x { right: auto; left: 12px; }
/* product codes, specs and numbers stay left-to-right inside Hebrew text */
html[dir="rtl"] .code, html[dir="rtl"] .hx-count { direction: ltr; unicode-bidi: isolate; }
@media (min-width: 641px) {
  html[dir="rtl"] .rcard .stage .bot { left: 34%; }
}

/* ---------- Business landing pages ---------- */
:root { --biz-overlap: clamp(56px, 9vw, 150px); }
.biz-hero {
  position: relative; z-index: 1;
  padding-top: calc(env(safe-area-inset-top, 0px) + clamp(124px, 13vw, 184px));
  background:
    radial-gradient(ellipse 55% 45% at 50% 100%, rgba(232, 88, 74, 0.16), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--navy) 100%);
  color: var(--on-dark);
}
.biz-head { display: grid; gap: 22px; justify-items: start; margin-bottom: clamp(36px, 5vw, 64px); }
.biz-hero .label { color: var(--gold); }
.biz-title {
  margin: 0; max-width: 15em;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 6rem); line-height: 1.02; letter-spacing: -0.03em;
  text-wrap: balance;
}
html.lang-zh .biz-title { font-size: clamp(2.1rem, 4.8vw, 4.8rem); line-height: 1.22; letter-spacing: 0.01em; }
.biz-figure {
  margin: 0 0 calc(-1 * var(--biz-overlap));
  aspect-ratio: 18 / 11; max-width: 100%;
  border-radius: clamp(18px, 2.4vw, 32px); overflow: hidden;
  background: var(--night);
  border: 1px solid rgba(246, 239, 230, 0.08);
  box-shadow: 0 50px 90px -50px rgba(11, 16, 32, 0.9);
}
.biz-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz-copy { padding-top: calc(var(--biz-overlap) + var(--section-y) * 0.75); }
.biz-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.biz-lede {
  margin: 0;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(1.45rem, 2.5vw, 2.4rem); line-height: 1.3;
  color: var(--on-light); text-wrap: pretty;
}
html.lang-zh .biz-lede { line-height: 1.55; }
.biz-body { display: grid; gap: 30px; justify-items: start; }
.biz-body p { margin: 0; max-width: 36em; font-size: 1.06rem; line-height: 1.75; color: var(--on-light-2); }
html.lang-zh .biz-body p { line-height: 1.95; }
.biz-copy .btn { --btn-bg: var(--ink); --btn-fg: var(--cream); }
.biz-robots .robot-grid { margin-top: clamp(24px, 3vw, 40px); }
.nav-links > a[aria-current="page"] { color: var(--cream); }
.nav-links > a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px; background: var(--sunrise); border-radius: 2px; }
.nav-links > a { position: relative; }
.drawer nav > a[aria-current="page"] { color: var(--gold); }
@media (max-width: 900px) {
  .biz-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .biz-figure { aspect-ratio: 3 / 2; }
}
