/* Design C · Spotlight */
:root {
  --bg: #0b0b0f;
  --panel: #15151c;
  --fg: #f5f3ee;
  --soft: #d1cfd8;
  --mute: #8f8e98;
  --accent: #ffb21e;
  --line: #24242e;
  --sans: Archivo, system-ui, -apple-system, sans-serif;
  --lang-latin: Archivo;
}
:lang(ja) { --sans: Archivo, "Noto Sans JP", "Hiragino Sans", sans-serif; }
:lang(zh-CN) { --sans: Archivo, "Noto Sans SC", "PingFang SC", sans-serif; }
:lang(zh-TW) { --sans: Archivo, "Noto Sans TC", "PingFang TC", sans-serif; }
:lang(ko) { --sans: Archivo, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; }
/* English graphics (headline, marquee) keep the Latin display face on every page */
.display:lang(en), .marquee { font-family: Archivo, system-ui, -apple-system, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.display { font-stretch: 72%; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: .9; }

/* Header */
.hd { position: fixed; inset: 0 0 auto; z-index: 10; transition: background .3s; }
.hd::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: rgba(11, 11, 15, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hd.solid::before { opacity: 1; } /* blur on a pseudo-element, so the phone language sheet can be fixed to the viewport */
.bar { display: flex; justify-content: space-between; align-items: center; height: 80px; }
/* logo.png is a square with wide margins: show only the mark, sized by the mark's height */
.logo { --mark: 34px; display: block; position: relative; overflow: hidden; width: calc(var(--mark) * 1.889); height: calc(var(--mark) * 1.083); }
.logo img { position: absolute; max-width: none; width: calc(var(--mark) * 2.304); height: auto; left: calc(var(--mark) * -0.196); top: calc(var(--mark) * -0.588); filter: invert(1); }
.right { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.menu { display: flex; gap: 28px; color: #cfcdd6; }
.menu a:hover { color: var(--accent); }
.cta { display: inline-block; background: var(--accent); color: #111; font-weight: 600; padding: 12px 22px; border-radius: 999px; transition: transform .2s, box-shadow .2s; }
.cta:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(255, 178, 30, .3); }
.cta.ghost { background: transparent; color: var(--fg); border: 1px solid rgba(245, 243, 238, .4); }
.cta.ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 0%, rgba(255, 178, 30, .25), transparent 55%), linear-gradient(180deg, rgba(11,11,15,.5) 0%, transparent 25%, transparent 45%, var(--bg)); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 80px; }
.tag { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
h1 { font-size: clamp(64px, 13vw, 200px); margin: 24px 0; }
h1 span { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.hero-foot p { max-width: 500px; font-size: 18px; line-height: 1.65; color: var(--soft); }

/* Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; white-space: nowrap; }
.marquee div { display: inline-block; animation: mq 40s linear infinite; }
.marquee span { font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: 40px; margin-right: 40px; color: #3a3a46; }
.marquee span.hl { color: var(--fg); }
@keyframes mq { to { transform: translateX(-50%); } }

/* Sections */
.sec { padding: 128px 0; }
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.about > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.about h2 { font-size: clamp(40px, 5vw, 72px); }
.about p { margin-top: 28px; font-size: 19px; line-height: 1.7; color: #c9c7d1; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.nums div { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.nums b { display: block; font-stretch: 72%; font-weight: 800; font-size: 44px; color: var(--accent); }
.nums small { color: var(--mute); font-size: 14px; }

/* Live reel (particle carousel, see reel.js) */
.reel { margin-bottom: 112px; --hold: 5s; }
.stage { position: relative; aspect-ratio: 21 / 9; border-radius: 20px; overflow: hidden; background: #000; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.stage img, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage img { object-fit: cover; }
.reel.ready .stage img { visibility: hidden; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); background: radial-gradient(ellipse at 50% -20%, rgba(255, 178, 30, .16), transparent 55%), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .4)); }
.reel-ui { display: flex; align-items: center; gap: 24px; margin-top: 20px; }
.count { font-stretch: 72%; font-weight: 600; font-size: 15px; letter-spacing: .12em; color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.count b { color: var(--fg); font-weight: 800; }
.segs { flex: 1; display: flex; gap: 6px; }
.segs button { flex: 1; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.segs i { position: relative; display: block; width: 100%; height: 2px; border-radius: 2px; overflow: hidden; background: var(--line); }
.segs i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.segs .done i::after { transform: none; background: rgba(245, 243, 238, .3); }
.segs .on i::after { animation: seg var(--hold) linear forwards; }
.reel.paused .segs .on i::after { animation-play-state: paused; }
@keyframes seg { to { transform: scaleX(1); } }
.arrows { display: flex; gap: 10px; }
.arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(245, 243, 238, .25); background: none; color: var(--fg); font: inherit; font-size: 18px; cursor: pointer; transition: border-color .2s, color .2s; }
.arrows button:hover { border-color: var(--accent); color: var(--accent); }

.svc { padding-top: 0; }
.grid-head { font-size: clamp(48px, 7vw, 104px); margin-bottom: 48px; }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card { position: relative; grid-column: span 2; min-height: 380px; border-radius: 20px; overflow: hidden; display: flex; align-items: flex-end; background: var(--panel); }
.card.lg { grid-column: span 3; min-height: 460px; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(8, 8, 12, .92)); }
.card:hover img { transform: scale(1.05); }
.card .in { position: relative; z-index: 1; padding: 28px; }
.card .n { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .15em; }
.card h3 { font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: 38px; margin: 8px 0 10px; line-height: 1; }
.card p { color: var(--soft); line-height: 1.6; font-size: 15px; max-width: 440px; }

.contact { text-align: center; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; left: 50%; top: -40%; width: 900px; height: 900px; transform: translateX(-50%); background: radial-gradient(circle, rgba(255, 178, 30, .18), transparent 60%); pointer-events: none; }
.contact .wrap { position: relative; }
.contact-title { font-size: clamp(56px, 10vw, 160px); margin: 20px 0 28px; }
.contact-lede { color: var(--soft); font-size: 17px; line-height: 1.7; margin-bottom: 36px; }
.cta.big { font-size: 20px; padding: 18px 34px; }

.ft { border-top: 1px solid var(--line); padding: 28px 0; color: var(--mute); font-size: 13px; }
.ft-row { display: flex; justify-content: space-between; gap: 16px; }

/* CJK: heavy weight instead of condensed caps */
:lang(ja) .about h2, :lang(zh) .about h2, :lang(ko) .about h2, :lang(ja) .grid-head, :lang(zh) .grid-head, :lang(ko) .grid-head { font-weight: 900; line-height: 1.15; letter-spacing: 0; }
:lang(ja) .about h2, :lang(zh) .about h2, :lang(ko) .about h2 { font-size: clamp(34px, 4.2vw, 60px); }
:lang(ja) .card h3, :lang(zh) .card h3, :lang(ko) .card h3 { font-weight: 900; font-size: 30px; line-height: 1.2; }
:lang(ja) .tag, :lang(zh) .tag, :lang(ko) .tag { letter-spacing: .12em; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) .about p { word-break: keep-all; }
/* Right to left */
[dir="rtl"] .segs i::after { transform-origin: right; }
[dir="rtl"] .hero h1 { text-align: right; } /* English heading, laid out left to right but kept on the start side */

@media (max-width: 960px) {
  .menu { display: none; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .bar { height: 68px; }
  .logo { --mark: 28px; }
  .right { gap: 14px; }
  .right .cta { display: none; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .grid { grid-template-columns: 1fr; }
  .card, .card.lg { grid-column: auto; min-height: 320px; }
  .sec { padding: 88px 0; }
  .nums { gap: 10px; }
  .nums div { padding: 16px; }
  .nums b { font-size: 32px; }
  .nums small { font-size: 12px; }
  .ft-row { flex-direction: column; gap: 8px; }
  .reel { margin-bottom: 72px; }
  .stage { aspect-ratio: 4 / 3; border-radius: 16px; }
  .reel-ui { gap: 16px; margin-top: 16px; }
}
@media (max-width: 560px) {
  .stage { aspect-ratio: 4 / 5; }
  .segs { gap: 4px; }
  .arrows button { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee div { animation: none; }
  * { transition: none !important; }
}

/* Line breaking for large type */
h1, h2, h3, .statement, .contact-title { text-wrap: balance; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .contact-title { word-break: auto-phrase; }

/* Language menu (lang.js): popover on desktop, bottom sheet on phones */
.lsw { position: relative; }
.lbtn { display: inline-flex; gap: 8px; align-items: center; height: 38px; padding: 0 14px; border: 1px solid rgba(245, 243, 238, .28); border-radius: 999px; background: none; color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .2s, color .2s; }
.lbtn:hover, .lbtn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.lbtn .car { width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); opacity: .7; transition: transform .2s; }
.lbtn[aria-expanded="true"] .car { transform: translateY(1px) rotate(225deg); }
.lpanel { position: absolute; top: calc(100% + 10px); right: 0; width: 380px; padding: 10px; background: var(--panel); border: 1px solid #2c2c38; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: lpop .18s ease-out; }
[dir="rtl"] .lpanel { right: auto; left: 0; }
.lpanel[hidden] { display: none; }
.lt { display: none; }
.llist { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.llist a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 10px; font-size: 15px; color: var(--soft); outline-offset: -2px; }
.llist a:hover { background: rgba(245, 243, 238, .06); color: var(--fg); }
.llist a.on { background: rgba(255, 178, 30, .12); color: var(--accent); }
.llist a.on::after { content: "✓"; font-size: 13px; }
@keyframes lpop { from { opacity: 0; transform: translateY(-6px); } }
.lpanel.sheet { position: fixed; inset: auto 0 0 0; width: auto; z-index: 2; padding: 10px 16px calc(24px + env(safe-area-inset-bottom)); border: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); animation: lsheet .28s cubic-bezier(.2, .8, .2, 1); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.lpanel.sheet::before { content: ""; display: block; width: 38px; height: 5px; border-radius: 3px; background: #3a3a46; margin: 0 auto 14px; }
.lpanel.sheet .lt { display: block; margin: 0 6px 10px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.lpanel.sheet .llist { gap: 6px; }
.lpanel.sheet .llist a { padding: 14px 12px; border-radius: 12px; font-size: 16px; background: #1c1c25; min-width: 0; }
.lpanel.sheet .llist a.on { background: rgba(255, 178, 30, .14); box-shadow: inset 0 0 0 1px rgba(255, 178, 30, .5); }
@keyframes lsheet { from { transform: translateY(100%); } }
/* Landscape phones: too short for six rows, so spread the languages across more columns */
@media (max-height: 500px) {
  .lpanel.sheet { padding-top: 8px; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .lpanel.sheet::before { margin-bottom: 8px; }
  .lpanel.sheet .lt { margin-bottom: 6px; }
  .lpanel.sheet .llist { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .lpanel.sheet .llist a { padding: 11px 12px; font-size: 15px; }
}
.lsw-dim { position: fixed; inset: 0; z-index: 1; background: rgba(0, 0, 0, .55); animation: ldim .2s; }
.lsw-dim[hidden] { display: none; }
@keyframes ldim { from { opacity: 0; } }
html.lsw-lock { overflow: hidden; }

/* Hint bar under the header: "This page is also available in …" */
.lhint { position: fixed; top: 80px; left: 0; right: 0; z-index: 9; background: rgba(21, 21, 28, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-block: 1px solid var(--line); font-size: 14px; animation: lpop .3s ease-out; }
.lhint[hidden] { display: none; }
.lhint .wrap { display: flex; align-items: center; gap: 16px; min-height: 48px; }
.lhint p { flex: 1; color: var(--soft); line-height: 1.4; padding: 8px 0; }
.lhint a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.lhint .x { flex: none; width: 36px; height: 36px; margin-inline-end: -10px; border: 0; background: none; color: var(--mute); font-size: 14px; cursor: pointer; }
.lhint .x:hover { color: var(--fg); }

/* Footer language list */
.ft-langs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.ft-langs a:hover, .ft-langs a.on { color: var(--fg); }

/* Language names in the menus use system fonts, so no extra font downloads */
.llist a, .ft-langs a, .lhint { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.llist a:lang(ja), .ft-langs a:lang(ja), .lhint:lang(ja) { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
.llist a:lang(zh-CN), .ft-langs a:lang(zh-CN), .lhint:lang(zh-CN) { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
.llist a:lang(zh-TW), .ft-langs a:lang(zh-TW), .lhint:lang(zh-TW) { font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
.llist a:lang(ko), .ft-langs a:lang(ko), .lhint:lang(ko) { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }

@media (max-width: 860px) {
  .lhint { top: 68px; font-size: 13px; }
  .lbtn { height: 36px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .lpanel, .lpanel.sheet, .lsw-dim, .lhint { animation: none; }
}
