/* ============================================================
   Kitsune Mineral — black couture
   Pure black stage, ivory type, champagne detail, hokkaidoite glow.
   ============================================================ */
:root {
  --bg: #000;
  --bg-2: #0a0a0a;
  --surface: #111;
  --ink: #f2eee6;
  --ink-2: #8f8a82;
  --ink-3: #5c5852;
  --line: #222;
  --line-2: #333;
  --accent: #d6c4a0;          /* champagne */
  --glow: #d8ff3c;            /* hokkaidoite yellow-green */
  --serif: "Cormorant Garamond", "Noto Sans TC", "Noto Sans Thai", "Noto Kufi Arabic", Georgia, serif;
  --sans: "Inter", "Noto Sans TC", "Noto Sans Thai", "Noto Kufi Arabic", system-ui, sans-serif;
  /* side margin; on very wide screens it grows so content stays within 1680px, centred */
  --gutter: max(clamp(16px, 5vw, 80px), calc((100vw - 1680px) / 2));
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
/* every stack lists all scripts, so text from another language on the page never falls back to empty boxes */
html[lang="zh-Hant"] { --serif: "Cormorant Garamond", "Noto Sans TC", "Noto Sans Thai", "Noto Kufi Arabic", serif; }
html[lang="th"] { --serif: "Cormorant Garamond", "Noto Sans Thai", "Noto Sans TC", "Noto Kufi Arabic", serif; --sans: "Inter", "Noto Sans Thai", "Noto Sans TC", "Noto Kufi Arabic", sans-serif; }
html[lang="ar"] { --serif: "Noto Kufi Arabic", "Cormorant Garamond", "Noto Sans TC", "Noto Sans Thai", serif; --sans: "Noto Kufi Arabic", "Inter", "Noto Sans TC", "Noto Sans Thai", sans-serif; }

* { box-sizing: border-box; }
/* nothing may ever make the page wider than the screen (would make phones zoom out) */
html, body { overflow-x: clip; max-width: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 300 16px/1.75 var(--sans);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
html[lang="zh-Hant"] .hero-title { font-size: clamp(2.6rem, 5.6vw, 5rem); }
html[lang="zh-Hant"] body { letter-spacing: .04em; }
html[lang="th"] body, html[lang="ar"] body { line-height: 1.9; }
img { max-width: 100%; display: block; }
/* photos: no drag, no long-press "save image" on phones */
.media img, .hero-visual img, .thumbs img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.media, .hero-visual { -webkit-touch-callout: none; }
a { color: inherit; }
::selection { background: var(--glow); color: #000; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
/* balance headline lines so a single character never hangs alone on the last line */
h1, h2, .lead { text-wrap: balance; }
/* Chinese headings break only at punctuation or marked points (<wbr>), never mid-word — unless it would overflow */
html[lang="zh-Hant"] h1, html[lang="zh-Hant"] h2 { word-break: keep-all; overflow-wrap: anywhere; }
h3 { font-size: 1.45rem; font-weight: 400; }
html[lang="zh-Hant"] h1, html[lang="zh-Hant"] h2 { font-weight: 300; letter-spacing: .06em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.45; letter-spacing: 0; }
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3 { line-height: 1.4; }

.eyebrow, .sub-eyebrow {
  text-transform: uppercase; letter-spacing: .32em; font-size: .7rem; font-weight: 400;
  color: var(--accent); margin: 0 0 22px;
}
html[lang="ar"] .eyebrow, html[lang="ar"] .sub-eyebrow { letter-spacing: 0; font-size: .82rem; }
.lead { font-size: 1.05rem; color: var(--ink-2); max-width: 40em; }
.arr { display: inline-block; transition: transform .3s var(--ease); }
[dir="rtl"] .arr { transform: scaleX(-1); }
a:hover .arr { transform: translateX(4px); }
[dir="rtl"] a:hover .arr { transform: scaleX(-1) translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gutter);
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand-en { font-family: "Cormorant Garamond", serif; font-weight: 500; letter-spacing: .34em; font-size: 1.02rem; }
.brand-zh { font-size: .68rem; color: var(--ink-2); letter-spacing: .4em; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; }
html[lang="ar"] .nav, html[lang="th"] .nav, html[lang="zh-Hant"] .nav { font-size: .84rem; letter-spacing: .04em; }
.nav a { text-decoration: none; color: var(--ink-2); transition: color .2s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 14px; }

.light-switch { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.light-switch button {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  font: 400 .72rem var(--sans); letter-spacing: .08em; padding: 6px 12px; border-radius: 999px;
  transition: background .3s, color .3s;
}
.light-switch button[aria-pressed="true"] { background: var(--ink); color: #000; }
.light-switch .dot { width: 7px; height: 7px; border-radius: 50%; background: #8b6cff; box-shadow: 0 0 8px #8b6cff; flex: none; }
.light-switch .sun { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; flex: none; display: none; }

.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .76rem; color: var(--ink); white-space: nowrap;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 6px; height: 6px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.lang-menu svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.lang-menu ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 170px;
  list-style: none; margin: 0; padding: 6px; background: #0d0d0d; border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px #000c;
}
.lang-menu li a { display: block; padding: 10px 14px; text-decoration: none; font-size: .88rem; color: var(--ink-2); }
.lang-menu li a:hover { background: #1a1a1a; color: var(--ink); }
.lang-menu li a[aria-current="true"] { color: var(--ink); }
.lang-menu li a[aria-current="true"]::before { content: "— "; color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border: 1px solid var(--ink);
  font: 400 .72rem var(--sans); letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
html[lang="ar"] .btn, html[lang="th"] .btn, html[lang="zh-Hant"] .btn { letter-spacing: .06em; font-size: .86rem; }
.btn-primary { background: var(--ink); color: #000; }
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(calc(100vh - 70px), 900px);
  display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 40px;
  padding: 40px var(--gutter) 80px; overflow: hidden;
}
.hero-visual { order: 2; position: relative; }
.hero-visual img { width: 100%; max-width: 820px; margin-inline: auto; mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%); }
.hero-content { position: relative; z-index: 1; }
.hero-title { font-size: clamp(3rem, 7.4vw, 6.6rem); margin-bottom: 28px; }
.hero-title span, .hero-title em { display: block; }
.hero-title em { font-style: italic; color: var(--accent); }
html[lang="zh-Hant"] .hero-title em, html[lang="th"] .hero-title em, html[lang="ar"] .hero-title em { font-style: normal; }
.hero-sub { font-size: 1.05rem; color: var(--ink-2); max-width: 30em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.fact { padding: 34px 20px; text-align: center; border-inline-end: 1px solid var(--line); }
.fact:last-child { border-inline-end: 0; }
.fact-num { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.9rem; font-weight: 300; }
.fact-label { font-size: .72rem; color: var(--ink-2); letter-spacing: .14em; text-transform: uppercase; }
html[lang="ar"] .fact-label, html[lang="th"] .fact-label { letter-spacing: 0; font-size: .82rem; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 160px) var(--gutter); }
.section-head { max-width: 780px; margin-bottom: 64px; }

/* ---------- specimen cards ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 56px 28px; }
.gallery-lg { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 72px 36px; }
.specimen { display: flex; flex-direction: column; min-width: 0; }
.specimen[hidden] { display: none; }
.sp-open { all: unset; cursor: zoom-in; display: block; }
.sp-open:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.media { position: relative; aspect-ratio: 1 / 1; background: #000; overflow: hidden; display: grid; place-items: center; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.media .m-day { opacity: 0; }
body.day .media .m-day { opacity: 1; }
body.day .media .m-uv { opacity: 0; }
.media.single img { opacity: 1 !important; }
.specimen:hover .media img { transform: scale(1.04); }
.media .ph { width: 86%; filter: drop-shadow(0 0 40px #ff8a3d55); }

.sp-meta { display: flex; flex-direction: column; padding-top: 22px; flex: 1; }
.sp-meta p { margin: 0; }
.sp-id { font-size: .68rem; letter-spacing: .26em; color: var(--accent); text-transform: uppercase; }
.sp-id i { font-style: normal; color: var(--ink-3); }
.sp-title { font-size: 1.45rem; margin: 6px 0 8px; }
.sp-note { font-size: .84rem; color: var(--ink-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px !important; }
.sp-spec { margin: 0 0 4px; font-size: .78rem; }
.sp-spec div { display: flex; gap: 10px; padding: 3px 0; }
.sp-spec dt { color: var(--ink-3); min-width: 64px; }
.sp-spec dd { margin: 0; color: var(--ink-2); }
.badge { align-self: flex-start; margin-top: 10px !important; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--line-2); color: var(--ink-2); }
.badge-reserved { border-color: var(--accent); color: var(--accent); }
.badge-sold { opacity: .5; }

.sp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); margin-block-start: 18px; }
.sp-price .twd { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; font-weight: 400; }
.sp-price .usd { font-size: .74rem; color: var(--ink-3); }
.sp-price .por { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-2); }
.sp-price .sp-buy, .sp-price .sp-inquire {
  margin-inline-start: auto; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}
html[lang="ar"] .sp-price a, html[lang="th"] .sp-price a, html[lang="zh-Hant"] .sp-price a { letter-spacing: .04em; font-size: .8rem; }
.sp-price a:hover { color: var(--accent); }

.more { margin: 72px 0 0; text-align: center; }

/* ---------- flagship ---------- */
.flagship {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px);
  padding: clamp(80px, 11vw, 160px) var(--gutter);
  background: radial-gradient(ellipse 60% 70% at 28% 50%, #1b1030 0%, #000 70%);
  border-block: 1px solid var(--line);
}
.flag-media .media { background: transparent; aspect-ratio: 4 / 3; }
.flag-media .ph { width: 100%; filter: drop-shadow(0 0 80px #ff8a3d66) drop-shadow(0 0 30px #d8ff3c44); }
.flag-text h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.flag-text .eyebrow { color: var(--glow); }
.flag-text .eyebrow i { font-style: normal; color: var(--ink-3); letter-spacing: .1em; }
.flag-text p { color: var(--ink-2); }
.flag-text .lead { color: var(--ink); }
.flag-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 32px 0 40px; }
.flag-spec div { padding: 14px 0; border-top: 1px solid var(--line-2); }
.flag-spec dt { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.flag-spec dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.3rem; }

/* private flagship: words only — no photo is ever shown */
.flagship.private { grid-template-columns: 1fr; justify-items: center; text-align: center; background: radial-gradient(ellipse 55% 80% at 50% 50%, #1b1030 0%, #000 72%); }
.flagship.private .flag-text { max-width: 760px; }
.flagship.private .lead { margin-inline: auto; margin-bottom: 40px; }

/* ---------- worldwide ---------- */
.agents { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 36px; margin: -48px 0 80px; }
.agents .sub-eyebrow { margin: 0; width: 100%; }
.agent b { font-family: var(--serif); font-weight: 300; font-size: 1.5rem; margin-inline-end: 10px; }
.agent a { color: var(--accent); text-decoration: none; }
.circuit { list-style: none; margin: 0 0 80px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--ink); }
.circuit li { padding: 28px 24px 32px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
[dir="rtl"] .circuit li { padding: 28px 0 32px 24px; }
.c-num { font-size: .66rem; letter-spacing: .2em; color: var(--ink-3); }
.c-place { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.1; font-weight: 300; }
.c-country { font-size: .78rem; color: var(--ink-2); letter-spacing: .12em; text-transform: uppercase; }
.c-show { font-size: .76rem; color: var(--accent); }
.c-when { font-size: .72rem; color: var(--ink-2); letter-spacing: .06em; }
.world-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.shows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.show { display: grid; grid-template-columns: 110px 2fr 1.2fr 1.2fr 1fr; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.show.past { opacity: .5; }
.show-tag { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--glow); }
.show-name { font-family: var(--serif); font-size: 1.3rem; }
.show-city, .show-date, .show-booth { font-size: .86rem; color: var(--ink-2); }
.show-empty { padding: 28px 0; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.ship-card { border: 1px solid var(--line-2); padding: 32px; }
.ship-card p { margin: 0; color: var(--ink-2); }

/* ---------- mineral ---------- */
.mineral-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.card { padding: 36px 32px 40px 0; border-bottom: 1px solid var(--line); }
[dir="rtl"] .card { padding: 36px 0 40px 32px; }
.card-num { display: block; font-size: .66rem; letter-spacing: .2em; color: var(--accent); margin-bottom: 18px; }
.card p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.datasheet { margin-top: 72px; padding: 40px; border: 1px solid var(--line-2); background: var(--bg-2); }
.datasheet dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); column-gap: 48px; }
.datasheet dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.datasheet dt { color: var(--ink-3); font-size: .8rem; }
.datasheet dd { margin: 0; font-size: .92rem; }
.source { font-size: .74rem; color: var(--ink-3); margin: 24px 0 0; }

/* ---------- authenticity (mindat) ---------- */
.authenticity { border-top: 1px solid var(--line); }
.auth-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.auth-list li { padding: 36px 32px 40px 0; border-bottom: 1px solid var(--line); }
[dir="rtl"] .auth-list li { padding: 36px 0 40px 32px; }
.auth-list p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.auth-list .auth-fee { margin-top: 12px; color: var(--accent); font-size: .82rem; }
.badge-cert { border-color: var(--accent); color: var(--accent); }

/* ---------- partners (ivory interlude) ---------- */
.partners { background: var(--ink); color: #0a0a0a; }
.partners .eyebrow { color: #7a6a48; }
.partners .lead { color: #4a4640; }
.partners .btn-primary { background: #000; color: var(--ink); border-color: #000; margin-top: 16px; }
.partners .btn-primary:hover { background: transparent; color: #000; }
.partners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.partner-list { list-style: none; margin: 0; padding: 0; }
.partner-list li { padding: 28px 0; border-bottom: 1px solid #0002; }
.partner-list li:first-child { border-top: 1px solid #0002; }
.partner-list h3 { font-size: 1.6rem; margin-bottom: .2em; }
.partner-list p { margin: 0; color: #4a4640; font-size: .94rem; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-text p { color: var(--ink-2); font-size: 1rem; }
.promise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.promise li { background: var(--bg); padding: 28px; }
.promise h3 { font: 400 .95rem var(--sans); margin: 0 0 .4em; letter-spacing: .04em; }
.promise p { margin: 0; font-size: .86rem; color: var(--ink-2); }

/* ---------- faq ---------- */
.faq { max-width: 920px; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 300 1.6rem var(--sans); color: var(--accent); transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa h3 { margin: 0; font-size: 1.35rem; }
.qa p { margin: 0 0 28px; color: var(--ink-2); max-width: 48em; }

/* ---------- contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.inquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.inquiry .full { grid-column: 1 / -1; }
.inquiry label { display: flex; flex-direction: column; gap: 8px; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
html[lang="ar"] .inquiry label, html[lang="th"] .inquiry label, html[lang="zh-Hant"] .inquiry label { letter-spacing: .02em; font-size: .82rem; }
.inquiry input, .inquiry textarea, .inquiry select {
  font: 300 1rem var(--sans); color: var(--ink); letter-spacing: 0; text-transform: none;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  padding: 10px 0; transition: border-color .2s;
}
.inquiry select option { background: #111; }
.inquiry ::placeholder { color: var(--ink-3); opacity: .6; }
.inquiry input:focus, .inquiry textarea:focus, .inquiry select:focus { outline: none; border-color: var(--accent); }
.inquiry .btn { justify-content: center; margin-top: 10px; }
.form-note { font-size: .74rem; color: var(--ink-3); margin: 0; }
.channels { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.channel { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: color .2s; }
.channel:hover .ch-val { color: var(--accent); }
.ch-label { font-size: .68rem; color: var(--ink-3); letter-spacing: .2em; text-transform: uppercase; }
.ch-val { font-size: .92rem; word-break: break-all; text-align: end; transition: color .2s; }
.ship { font-size: .84rem; color: var(--ink-2); margin-top: 20px; }

/* ---------- collection page ---------- */
.page-head { padding-bottom: 40px; max-width: 960px; }
.page-head h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
.section-tight { padding-top: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; }
.filters button {
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer;
  padding: 9px 18px; border-radius: 999px; font: 400 .74rem var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: #000; border-color: var(--ink); }

/* ---------- dialog ---------- */
.specimen-dialog {
  width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  padding: 0; border: 1px solid var(--line-2); background: #050505; color: var(--ink); overflow: auto;
}
.specimen-dialog::backdrop { background: #000d; backdrop-filter: blur(6px); }
.dialog-body { display: grid; grid-template-columns: 1.25fr 1fr; }
.d-media .media { aspect-ratio: 1 / 1; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; padding: 10px; }
.thumbs button { all: unset; cursor: pointer; aspect-ratio: 1; opacity: .45; transition: opacity .2s; outline-offset: -1px; }
.thumbs button[aria-current="true"], .thumbs button:hover { opacity: 1; }
.thumbs button[aria-current="true"] { outline: 1px solid var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.d-info { padding: 48px 40px; }
.d-info .sp-title { font-size: 2rem; }
.d-info .sp-note { -webkit-line-clamp: unset; font-size: .95rem; }
.d-info .sp-spec { font-size: .9rem; margin-top: 8px; }
.d-info .sp-spec div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.dialog-close {
  position: absolute; top: 12px; inset-inline-end: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2);
  background: #000a; color: var(--ink); font-size: 1.4rem; cursor: pointer;
}

/* ---------- footer ---------- */
.site-footer { padding: 72px var(--gutter) 48px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-2); }
.site-footer p { margin: 4px 0; }
.footer-brand { font-family: "Cormorant Garamond", serif; font-size: 1.6rem; letter-spacing: .34em; color: var(--ink); margin-bottom: 20px !important; }
.footer-brand span { font-family: var(--sans); font-size: .7rem; letter-spacing: .4em; color: var(--ink-2); margin-inline-start: 10px; }
.muted { color: var(--ink-3); }

/* ---------- motion ----------
   Quiet, slow, opacity + small movement only. Only applies when JS is running
   (html.js), so crawlers and no-JS visitors always see everything. */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* photos settle from a slight zoom, like a lens focusing */
.media img { transform: scale(var(--zoom, 1)); transition: opacity .7s var(--ease), transform 1.6s var(--ease); }
.js .specimen.reveal:not(.in) .media img, .js .flagship .reveal:not(.in) .media img { --zoom: 1.08; }
@media (hover: hover) { .specimen.in:hover .media img { --zoom: 1.04; } }
.specimen:hover .media img { transform: scale(var(--zoom, 1)); }

/* hero: headline lines rise out of a soft blur, stone fades in */
.js .hero-content > * { animation: rise 1.4s var(--ease) both; }
.js .hero-content > :nth-child(2) { animation-delay: .12s; }
.js .hero-content > :nth-child(3) { animation-delay: .3s; }
.js .hero-content > :nth-child(4) { animation-delay: .45s; }
.js .hero-title em { animation: rise 1.4s var(--ease) .28s both; display: block; }
.js .hero-visual { animation: settle 2.2s var(--ease) both; }
.hero-visual img { will-change: transform; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes settle { from { opacity: 0; } to { opacity: 1; } }

/* header tucks away while scrolling down, returns when scrolling up */
.site-header { transition: transform .5s var(--ease), background .4s; }
.site-header.tucked { transform: translate3d(0, -100%, 0); }

/* touch feedback */
.sp-open, .btn, .filters button, .channel, .qa summary { -webkit-tap-highlight-color: transparent; }
.sp-open:active .media { transform: scale(.985); }
.btn:active, .filters button:active { transform: scale(.97); }
.media, .btn, .filters button { transition: transform .25s var(--ease), background .3s, color .3s, border-color .3s; }

/* FAQ answers ease open */
.js .qa[open] p { animation: rise .7s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .hero-content > *, .js .hero-title em, .js .hero-visual, .js .qa[open] p { opacity: 1 !important; transform: none !important; animation: none !important; filter: none !important; }
  .media img { --zoom: 1 !important; }
  .site-header.tucked { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .header-tools { margin-inline-start: auto; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 12px; gap: 0; }
  .hero-visual { order: 0; margin: 0 calc(var(--gutter) * -1); }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-inline-end: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about-grid, .contact-grid, .dialog-body, .flagship, .world-grid, .partners-grid { grid-template-columns: 1fr; }
  .show { grid-template-columns: 1fr; gap: 4px; }
  .d-info { padding: 28px 22px 36px; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .site-header { gap: 10px; padding-block: 14px; }
  .brand-zh { display: none; }
  .brand-en { font-size: .82rem; letter-spacing: .22em; }
  .light-switch button { padding: 6px 9px; font-size: .68rem; }
  .brand { min-width: 0; }
}
/* narrow phones: light switch becomes icons only (purple dot = UV, sun = daylight) */
@media (max-width: 480px) {
  .light-switch .lbl { display: none; }
  .light-switch .sun { display: block; }
  .light-switch button { padding: 7px 10px; }
  .header-tools { gap: 8px; }
}
@media (max-width: 380px) {
  .brand-en { font-size: .74rem; letter-spacing: .16em; }
  .sp-spec dd { white-space: normal; }
}
@media (max-width: 600px) {
  .lang-menu summary span { display: none; }
  .lang-menu summary { padding: 8px 10px; }
  .gallery, .gallery-lg { grid-template-columns: 1fr 1fr; gap: 40px 14px; }
  .sp-title { font-size: 1.15rem; }
  .sp-note, .sp-spec div:nth-child(3) { display: none; }
  .sp-spec { font-size: .72rem; }
  .sp-spec div { gap: 8px; }
  .sp-spec dt { flex: none; min-width: 2.6em; }
  .sp-spec dd { white-space: nowrap; }
  .card, [dir="rtl"] .card, .auth-list li, [dir="rtl"] .auth-list li { padding-inline: 0; }
  .footer-brand span { display: block; margin: 10px 0 0; }
  .sp-price .sp-buy, .sp-price .sp-inquire { margin-inline-start: 0; }
  .promise, .inquiry { grid-template-columns: 1fr; }
  .datasheet { padding: 22px; }
  .datasheet dl { grid-template-columns: 1fr; }
  .datasheet dl > div { grid-template-columns: 1fr; gap: 2px; }
  .fact-num { font-size: 1.4rem; }
  .flag-spec { grid-template-columns: 1fr; }
}
/* phones held sideways: headline and stone side by side, both visible on the first screen */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1000px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: calc(100svh - 60px); padding-top: 16px; padding-bottom: 24px; gap: 24px; }
  .hero-visual { order: 2; margin: 0; }
  .hero-visual img { max-height: 78svh; width: auto; margin-inline: auto; }
  .hero-title, html[lang="zh-Hant"] .hero-title { font-size: clamp(2rem, 6.4vh + 1rem, 3.2rem); margin-bottom: 14px; }
  .hero-sub { font-size: .9rem; }
  .hero-cta { margin-top: 20px; }
  .site-header { padding-block: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
