/* Present Paris — site stylesheet (palette 砂岩 × 麦黄, type C1: 思源宋体 + Bodoni Moda)
   Layout: scroll-told pages after stellarmanagement.com and miligram.pt — intro curtain, full-bleed hero,
   statements that light up on scroll, pinned stacks that swap one item per screen, brand-colour bands.
   Deliberately single light theme. */
:root {
  --brand: #B86F55; --brand-deep: #A15D45; --on-brand: #FFF8F3;
  --accent: #B98A42; --accent-on: #F3D394;
  --paper: #F7F2EE; --paper-2: #EFE6DF; --ink: #2E1F19; --muted: #7A6A61; --line: #E3D7CE;
  --ph: #EBE0D8; --ph-brand: #A9634B;
  --f-zh: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --f-en: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --f-head: "Bodoni Moda", "Noto Serif SC", "Songti SC", serif;
  --ls-head: .06em;
  --gut: max(16px, min(2.6vw, 44px));
  --maxw: 1920px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-zh);
  font-size: 16px; line-height: 1.9; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 70; background: var(--paper); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; letter-spacing: var(--ls-head); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap {
  width: 100%; max-width: calc(var(--maxw) + 2 * var(--gut)); margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: 12px; top: -80px; z-index: 120; background: var(--brand); color: var(--on-brand); padding: 8px 14px; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
.kicker { font-size: 13px; font-weight: 500; letter-spacing: .2em; color: var(--muted); }
.ac { color: var(--accent); font-weight: inherit; }
.ac-en { font-family: var(--f-en); font-style: italic; font-weight: 400; }
.on-brand .ac { color: var(--accent-on); }
.on-brand .kicker { color: inherit; opacity: .72; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 11px 24px; border-radius: 999px; border: 1px solid currentColor; letter-spacing: .06em;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn-solid { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }
.more { display: inline-flex; gap: 8px; font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; letter-spacing: .06em; }
.more:hover { color: var(--brand); }
.on-brand .more:hover { color: var(--accent-on); }

/* media frames and placeholders */
.frame { position: relative; overflow: hidden; background: var(--ph); max-width: 100%; margin: 0; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.ph::after {
  content: attr(data-label); position: absolute; left: 14px; bottom: 12px; right: 14px;
  font-size: 12px; letter-spacing: .08em; color: var(--muted);
}
.on-brand .frame, .frame.on-dark { background: var(--ph-brand); }
.on-brand .frame.ph::after, .frame.on-dark.ph::after { color: var(--on-brand); opacity: .6; }
[data-lb] { cursor: zoom-in; }

/* ---------- wordmark ---------- */
.wm { font-family: var(--f-en); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; text-decoration: none; color: inherit; line-height: 1; }

/* ---------- intro curtain ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; background: var(--brand); color: var(--on-brand);
  display: none; place-items: center; text-align: center;
  padding: env(safe-area-inset-top, 0px) max(20px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(20px, env(safe-area-inset-left, 0px));
}
html.show-intro .intro { display: grid; grid-template-columns: minmax(0, 1fr); }
.intro.wait .intro-in { visibility: hidden; }
html.intro-lock, html.intro-lock body { overflow: hidden; overscroll-behavior: none; }
.intro-in { position: relative; display: grid; justify-items: center; width: 100%; transform: translateY(4svh); }
.intro .wm.intro-wm {
  font-size: clamp(40px, 9.6vw, 220px); font-weight: 500; letter-spacing: .07em; line-height: .92;
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: .4em; margin-right: -.07em;
}
.intro-wm > span { display: inline-block; }
.intro-sub { position: absolute; top: 100%; left: 0; right: 0; margin-top: clamp(30px, 4.2vw, 60px); display: grid; gap: 10px; justify-items: center; }
.intro .slogan { font-size: clamp(12px, 1.1vw, 15px); letter-spacing: .3em; opacity: .92; }
.intro-lines { display: grid; gap: 6px; margin-top: 12px; font-size: clamp(12px, 1.05vw, 14px); letter-spacing: .1em; opacity: .9; }
.intro-lines b { color: var(--accent-on); font-weight: 600; margin-right: .9em; letter-spacing: .2em; }
.intro-end { margin-top: 8px; font-size: clamp(13px, 1.2vw, 16px); font-weight: 600; letter-spacing: .16em; }
@media (max-width: 700px) {
  .intro .wm.intro-wm { font-size: 15.5vw; flex-direction: column; align-items: center; row-gap: .1em; }
}
.intro-skip {
  position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  font: inherit; font-size: 13px; letter-spacing: .14em; color: inherit; background: none; border: 1px solid currentColor;
  border-radius: 999px; padding: 6px 16px; cursor: pointer; opacity: .8;
}

/* ---------- header ---------- */
.hdr {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 60; color: var(--ink);
  background: var(--paper); border-bottom: 1px solid var(--line);
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.hdr.over { background: transparent; color: var(--on-brand); border-color: transparent; }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.hdr .wm { font-size: 17px; }
.hdr-r { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.lang { display: flex; align-items: center; gap: 7px; font-family: var(--f-en); font-size: 14px; letter-spacing: .08em; }
.lang a { text-decoration: none; opacity: .55; }
.lang a:hover { opacity: 1; }
.lang i { font-style: normal; opacity: .35; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 34px); font-size: 15px; letter-spacing: .1em; }
.nav a { text-decoration: none; opacity: .88; padding-block: 4px; border-bottom: 1px solid transparent; }
.nav a:hover { opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; border-color: currentColor; }
.menu-btn { display: none; font: inherit; font-size: 14px; letter-spacing: .1em; color: inherit; background: none; border: 1px solid currentColor; border-radius: 999px; padding: 4px 16px; cursor: pointer; }
@media (max-width: 900px) { .nav { display: none; } .menu-btn { display: inline-block; } }
@media (max-width: 420px) { .hdr .wm { font-size: 15px; letter-spacing: .14em; } .hdr-r { gap: 14px; } .menu-btn { padding: 4px 12px; } }
.mmenu {
  position: fixed; inset: 0; z-index: 65; background: var(--brand); color: var(--on-brand); display: grid; align-content: center; gap: 4px;
  padding: 90px max(var(--gut), env(safe-area-inset-right, 0px)) 40px max(var(--gut), env(safe-area-inset-left, 0px));
}
.mmenu a { text-decoration: none; font-size: 30px; font-weight: 600; letter-spacing: .1em; line-height: 1.9; }
.hdr.menu-open { background: transparent; color: var(--on-brand); border-color: transparent; }
main { display: block; }
.page-top { padding-top: 72px; }

/* ---------- hero (stellar) ---------- */
.hero { position: relative; min-height: 100svh; color: var(--on-brand); background: var(--brand); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media.ph::after { left: auto; right: var(--gut); top: 96px; bottom: auto; text-align: right; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; padding-block: 0 clamp(32px, 5vw, 60px); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.18; letter-spacing: .08em; }
.hero-sub { margin-top: 20px; max-width: 38em; font-size: 16px; opacity: .9; }
.hero-card {
  width: 236px; background: var(--brand-deep); color: var(--on-brand); padding: 14px; border-radius: 6px;
  display: grid; gap: 10px; text-decoration: none; font-size: 13px; line-height: 1.55;
}
.hero-card .frame { aspect-ratio: 16 / 10; border-radius: 3px; }
.hero-card b { display: block; font-weight: 600; letter-spacing: .1em; }
@media (max-width: 720px) { .hero-in { grid-template-columns: minmax(0, 1fr); } .hero-card { display: none; } }

/* ---------- statement (stellar) ---------- */
.statement { padding-block: clamp(100px, 14vw, 200px); text-align: center; }
.statement .kicker { margin-bottom: 28px; }
.statement .big { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.7rem, 3.8vw, 3.3rem); line-height: 1.55; letter-spacing: .06em; max-width: 26em; margin-inline: auto; }
.chip-img { display: inline-block; width: 1.8em; height: .95em; vertical-align: -.06em; border-radius: 4px; background: var(--ph); margin-inline: .14em; overflow: hidden; }
.chip-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- showreel band ---------- */
.band { background: var(--brand); color: var(--on-brand); padding-block: clamp(40px, 6vw, 72px); overflow: hidden; }
.band .frame { aspect-ratio: 16 / 9; border-radius: 18px; max-height: 86svh; margin-inline: auto; }

/* ---------- 360 statement over dotted globe ---------- */
.globe-sec { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.globe-sec canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe-sec h2 { position: relative; text-align: center; font-size: clamp(1.9rem, 4.4vw, 3.8rem); line-height: 1.45; letter-spacing: .08em; padding-inline: var(--gut); }

/* ---------- pinned stacks (services + featured) ---------- */
.stack { position: relative; }
.stack-item { position: relative; min-height: 100svh; overflow: hidden; }
html.pinned .stack { height: 100svh; overflow: hidden; }
html.pinned .stack-item { position: absolute; inset: 0; min-height: 0; }
html.pinned .stack-item { pointer-events: none; }
html.pinned .stack-item [data-st-text] { pointer-events: auto; }

/* services slide */
.svc-head { position: absolute; z-index: 3; top: 96px; left: 0; right: 0; pointer-events: none; }
.svc-head .wrap { display: flex; justify-content: space-between; gap: 16px; }
html:not(.pinned) .svc-head { position: static; padding-top: clamp(64px, 9vw, 110px); }
.svc-slide { display: block; }
.svc-card { min-height: 100svh; background: var(--paper); display: grid; align-items: center; padding-block: 140px 48px; transform-origin: 50% 0; }
html.pinned .stack[data-mode="cards"] { background: var(--ink); }
html.pinned .svc-slide { pointer-events: auto; }
html.pinned .svc-card { height: 100%; min-height: 0; }
html.pinned .svc-slide + .svc-slide .svc-card { border-radius: 28px 28px 0 0; box-shadow: 0 -26px 60px -30px rgba(46, 31, 25, .5); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.svc-text { display: grid; gap: 16px; align-content: center; }
.svc-text .num { font-family: var(--f-en); font-size: 15px; letter-spacing: .14em; color: var(--muted); }
.svc-text h3 { font-size: clamp(2.2rem, 4.8vw, 4.2rem); line-height: 1.2; letter-spacing: .1em; color: var(--brand); }
.svc-text p { max-width: 36em; font-size: 17px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); line-height: 1.7; letter-spacing: .04em; }
.svc-text .more { justify-self: start; margin-top: 4px; }
.svc-media { aspect-ratio: 4 / 3; max-height: calc(100svh - 220px); border-radius: 14px; }
@media (max-width: 860px) {
  .svc-head { top: 86px; }
  .svc-head .wrap span:last-child { display: none; }
  .svc-card { padding-block: 130px 32px; align-items: start; }
  html.pinned .svc-slide + .svc-slide .svc-card { border-radius: 20px 20px 0 0; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .svc-text { gap: 10px; }
  .svc-text p { font-size: 15px; line-height: 1.75; }
  .svc-media { aspect-ratio: 16 / 10; }
}

/* featured slide */
.feat { color: var(--ink); }
.feat-item { display: grid; place-items: center; }
.feat-bg { position: absolute; inset: 0; }
.feat-card {
  position: relative; width: min(420px, calc(100% - 2 * var(--gut))); background: var(--paper); padding: 26px 22px 18px;
  display: grid; gap: 14px; text-align: center; text-decoration: none; box-shadow: 0 30px 60px -30px rgba(40, 20, 10, .45);
}
.feat-card h2 { font-size: 28px; line-height: 1.25; letter-spacing: .12em; }
.feat-card h2 .ac { display: block; }
.feat-card .frame { aspect-ratio: 16 / 11; }
.feat-card h3 { font-size: 17px; font-weight: 600; letter-spacing: .04em; }
.feat-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.feat-card .count { font-family: var(--f-en); font-size: 12px; letter-spacing: .14em; color: var(--muted); }

/* ---------- figures (stellar) ---------- */
.figs { background: var(--brand); color: var(--on-brand); padding-block: clamp(90px, 11vw, 150px); text-align: center; }
.figs h2 { font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 1.45; margin: 16px auto 0; max-width: 22em; letter-spacing: .08em; }
.fig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(48px, 7vw, 90px); }
.fig { padding: clamp(28px, 4vw, 48px) 12px; border: 0 solid rgba(255, 248, 243, .28); }
.fig:nth-child(-n+3) { border-bottom-width: 1px; }
.fig:not(:nth-child(3n)) { border-right-width: 1px; }
.fig .val { font-family: var(--f-en); font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: 1; font-weight: 400; font-variant-numeric: tabular-nums; }
.fig .lab { margin-top: 12px; font-size: 14px; opacity: .85; letter-spacing: .08em; }
.fig .todo { display: inline-block; margin-left: 6px; font-size: 11px; padding: 0 7px; border: 1px solid currentColor; border-radius: 999px; opacity: .6; vertical-align: 2px; }
@media (max-width: 640px) {
  .fig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig { border-width: 0 0 1px 0 !important; }
  .fig:nth-child(odd) { border-right-width: 1px !important; }
}

/* ---------- clients (miligram) ---------- */
.clients { background: var(--brand); color: var(--on-brand); padding-block: clamp(90px, 10vw, 130px); overflow: hidden; }
.clients-head { text-align: center; display: grid; gap: 14px; justify-items: center; }
.clients-head h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: 1.4; letter-spacing: .08em; }
.clients-head p { opacity: .85; max-width: 46em; }
.rows { position: relative; margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 14px; }
.row { display: flex; width: max-content; gap: 14px; animation: mq 70s linear infinite; }
.row.rev { animation-direction: reverse; }
.tile {
  width: clamp(150px, 16vw, 220px); aspect-ratio: 1; border-radius: 14px; background: var(--ph-brand);
  display: grid; place-items: center; text-align: center; padding: 12px; font-size: clamp(16px, 1.6vw, 21px); font-weight: 600; letter-spacing: .06em;
}
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rows-over { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none;
  background: radial-gradient(closest-side, rgba(184, 111, 85, .94), rgba(184, 111, 85, 0)); }
.rows-over div { display: grid; gap: 18px; justify-items: center; pointer-events: auto; }
.rows-over p { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1.35; letter-spacing: .1em; }
@media (prefers-reduced-motion: reduce) { .row { animation: none; } }

/* ---------- about / faq ---------- */
.about { text-align: center; padding-block: clamp(100px, 13vw, 180px); display: grid; gap: 22px; justify-items: center; }
.about h2 { font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.55; max-width: 26em; letter-spacing: .08em; }
.about p { color: var(--muted); max-width: 44em; }
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); padding-bottom: clamp(80px, 10vw, 140px); }
.faq > h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: 1.4; letter-spacing: .1em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; display: flex; gap: 16px; align-items: baseline; font-size: 17px; letter-spacing: .04em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; font-family: var(--f-en); font-size: 20px; line-height: 1; width: 14px; flex: none; }
.faq details[open] summary::before { content: "–"; }
.faq details p { padding: 0 0 20px 30px; color: var(--muted); max-width: 56em; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* ---------- inner pages ---------- */
.ph-head { background: var(--brand); color: var(--on-brand); padding-block: clamp(140px, 16vw, 220px) clamp(56px, 7vw, 96px); }
.ph-head .wrap { display: grid; gap: 18px; justify-items: start; }
.ph-head .num { font-family: var(--f-en); font-size: 15px; letter-spacing: .16em; opacity: .75; }
.ph-head h1 { font-size: clamp(2.8rem, 7.4vw, 6.4rem); line-height: 1.12; letter-spacing: .1em; }
.ph-head .tagline { font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: .06em; max-width: 36em; line-height: 1.6; }
.intro-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(72px, 9vw, 120px); }
.intro-row p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 2; }
.intro-row .frame { aspect-ratio: 4 / 3; border-radius: 14px; }
@media (max-width: 860px) { .intro-row { grid-template-columns: minmax(0, 1fr); } }
.sec { padding-bottom: clamp(80px, 10vw, 130px); }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--ink); padding-top: 18px; margin-bottom: clamp(24px, 4vw, 44px); }
.sec-title h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: .12em; line-height: 1.3; }
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 72px); }
.svc-list li { display: grid; gap: 10px; padding-block: 26px; border-bottom: 1px solid var(--line); align-content: start; }
.svc-list h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: .1em; color: var(--brand); }
.svc-list p { color: var(--ink); }
.svc-list .tags li { padding: 2px 10px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .svc-list { grid-template-columns: minmax(0, 1fr); } }
.res { background: var(--paper-2); border-radius: 18px; padding: clamp(28px, 4vw, 48px); display: grid; gap: 16px; }
.res h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: .1em; }
.res p { color: var(--muted); max-width: 52em; }
.res .tags li { font-size: 15px; padding: 6px 16px; border-color: var(--brand); color: var(--brand); background: transparent; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; counter-reset: s; }
.steps li { padding: 20px 18px 22px 0; border-top: 2px solid var(--brand); counter-increment: s; display: grid; gap: 6px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-en); font-size: 14px; color: var(--brand); letter-spacing: .1em; }
.steps b { font-size: 18px; letter-spacing: .1em; }
.steps span { font-size: 14px; color: var(--muted); line-height: 1.7; }
.excerpts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.excerpt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; text-decoration: none; align-items: center; }
.excerpt .frame { aspect-ratio: 4 / 3; border-radius: 10px; }
.excerpt .tagline-sm { font-size: 12px; letter-spacing: .14em; color: var(--accent); }
.excerpt h3 { font-size: 19px; letter-spacing: .06em; line-height: 1.45; margin: 4px 0 6px; }
.excerpt p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.excerpt:hover h3 { color: var(--brand); }
@media (max-width: 900px) { .excerpts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .excerpt { grid-template-columns: minmax(0, 1fr); } }
.next-band { background: var(--brand-deep); color: var(--on-brand); }
.next-band a { display: flex; justify-content: space-between; align-items: center; gap: 20px; text-decoration: none; padding-block: clamp(48px, 7vw, 90px); }
.next-band .kicker { display: block; margin-bottom: 8px; }
.next-band strong { font-family: var(--f-head); font-size: clamp(2rem, 5vw, 4rem); letter-spacing: .1em; line-height: 1.2; }
.next-band .arrow { font-family: var(--f-en); font-size: clamp(2rem, 5vw, 4rem); }

/* work grid */
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-block: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 44px); }
.filters button { font: inherit; font-size: 14px; letter-spacing: .08em; cursor: pointer; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 18px; }
.filters button span { font-family: var(--f-en); color: var(--muted); margin-left: 6px; }
.filters button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.filters button[aria-pressed="true"] span { color: var(--on-brand); opacity: .8; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 52px) clamp(16px, 2vw, 28px); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { display: grid; gap: 10px; text-decoration: none; align-content: start; }
.card .frame { aspect-ratio: 4 / 3; border-radius: 10px; }
.card .frame img { transition: transform .6s ease; }
.card:hover .frame img { transform: scale(1.03); }
.card-tags { font-size: 12px; letter-spacing: .14em; color: var(--accent); }
.card h3 { font-size: 19px; letter-spacing: .06em; line-height: 1.45; }
.card:hover h3 { color: var(--brand); }
.card p { font-size: 14px; color: var(--muted); }
.longterm { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.longterm div { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 6px; }
.longterm p { font-size: 18px; font-weight: 600; letter-spacing: .06em; }
@media (max-width: 860px) { .longterm { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* case page */
.case-hero .frame { aspect-ratio: 16 / 9; }
.case-head { display: grid; gap: 14px; padding-block: clamp(40px, 6vw, 72px) 28px; }
.case-head h1 { font-size: clamp(2rem, 4.8vw, 3.6rem); line-height: 1.35; letter-spacing: .08em; }
.case-head p { font-size: 18px; max-width: 48em; }
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0 0 clamp(36px, 5vw, 56px); }
.facts div { border-top: 1px solid var(--line); padding-top: 12px; min-width: 0; }
.facts dt { font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.facts dd { margin: 4px 0 0; line-height: 1.7; }
.tbd { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.did { margin-bottom: clamp(40px, 5vw, 64px); display: grid; gap: 12px; }
.did h2 { font-size: 22px; letter-spacing: .1em; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: clamp(80px, 10vw, 130px); }
.gallery .frame { aspect-ratio: 3 / 2; border-radius: 8px; }
.gallery .g-wide { grid-column: 1 / -1; aspect-ratio: 2 / 1; }

/* legal */
.legal { padding-block: 140px clamp(80px, 10vw, 130px); display: grid; gap: 28px; max-width: 48em; }
.legal h1 { font-family: var(--f-en); font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: .04em; }
.legal h2 { font-family: var(--f-en); font-size: 22px; letter-spacing: .02em; margin-bottom: 8px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }
.legal .todo { color: var(--brand); font-style: italic; }
@media (max-width: 560px) { .legal dl { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer (miligram) ---------- */
.ftr { background: var(--brand); color: var(--on-brand); padding-block: clamp(60px, 7vw, 100px) calc(28px + env(safe-area-inset-bottom, 0px)); }
.ftr-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 36px; }
.ftr-about > p { opacity: .88; max-width: 26em; font-size: 15px; }
.ftr-contact { margin-top: 26px; display: grid; gap: 8px; font-size: 16px; letter-spacing: .04em; }
.ftr-contact li { display: flex; align-items: baseline; gap: 14px; }
.ftr-contact span { font-size: 13px; letter-spacing: .14em; opacity: .7; min-width: 3em; }
.ftr-contact a, .ftr-contact button { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 248, 243, .4); padding-bottom: 1px; }
.ftr-contact a:hover, .ftr-contact button:hover { color: var(--accent-on); border-color: currentColor; }
.ftr-contact button { font: inherit; letter-spacing: inherit; background: none; border-top: 0; border-left: 0; border-right: 0; padding: 0 0 1px; cursor: pointer; }
.ftr-contact button.done::after { content: " · " attr(data-done); color: var(--accent-on); font-size: 13px; }
.ftr-nav { display: grid; gap: 4px; font-size: 20px; letter-spacing: .1em; font-weight: 600; }
.ftr-nav a { text-decoration: none; }
.ftr-nav a:hover { color: var(--accent-on); }
.ftr-brand { justify-self: end; text-align: right; display: grid; gap: 14px; justify-items: end; }
.ftr-brand .wm { font-size: clamp(17px, 1.9vw, 24px); }
.ftr-brand .slogan { font-size: 14px; letter-spacing: .2em; opacity: .85; }
.ftr-bot { margin-top: clamp(48px, 7vw, 90px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13px; opacity: .78; letter-spacing: .06em; }
.ftr-bot a { text-decoration: none; }
.ftr-bot a:hover { text-decoration: underline; }
@media (max-width: 860px) { .ftr-top { grid-template-columns: minmax(0, 1fr); } .ftr-brand { justify-self: start; text-align: left; justify-items: start; } }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 110; background: rgba(30, 18, 12, .95); color: #FFFFFF; display: grid; grid-template-rows: auto 1fr auto;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
.lb-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-en); letter-spacing: .1em; font-size: 14px; }
.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-nav { display: flex; justify-content: center; gap: 12px; }
.lb button { font: inherit; color: #FFFFFF; background: transparent; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: 6px 18px; cursor: pointer; }

/* ---------- v1.1: compact inner header, back link, case-led pillar pages ---------- */
.ph-head { padding-block: clamp(104px, 11vw, 136px) clamp(30px, 4vw, 48px); }
.ph-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 64px); align-items: end; width: 100%; }
.ph-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.ph-head .tagline { font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.ph-intro { font-size: 15px; line-height: 1.9; opacity: .9; max-width: 46em; }
@media (max-width: 860px) { .ph-grid { grid-template-columns: minmax(0, 1fr); } }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; letter-spacing: .1em;
  border: 1px solid currentColor; border-radius: 999px; padding: 4px 16px; opacity: .9;
}
.back-link:hover { opacity: 1; }
.backbar { padding-top: 96px; padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.backbar .back-link { color: var(--ink); }

.case-rows { display: grid; gap: clamp(48px, 7vw, 96px); }
.case-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.case-row:nth-child(even) .case-media { order: 2; }
.case-media { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.case-media .frame { border-radius: 10px; aspect-ratio: 3 / 2; }
.case-media .frame.big { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.case-text { display: grid; gap: 12px; align-content: center; }
.case-text .card-tags { letter-spacing: .14em; }
.case-text h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: .08em; line-height: 1.4; }
.case-meta { font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.case-text .story { font-size: 15px; line-height: 1.95; }
.case-text .story.todo-note { color: var(--muted); border-left: 2px solid var(--accent); padding-left: 12px; font-size: 14px; }
.case-text .more { justify-self: start; }
@media (max-width: 860px) { .case-row { grid-template-columns: minmax(0, 1fr); } .case-row:nth-child(even) .case-media { order: 0; } }

.svc-compact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); }
.svc-compact li { padding-block: 16px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.svc-compact b { font-size: 16px; letter-spacing: .1em; color: var(--brand); }
.svc-compact span { font-size: 14px; line-height: 1.75; color: var(--ink); }
@media (max-width: 960px) { .svc-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc-compact { grid-template-columns: minmax(0, 1fr); } }
.sec-tight { padding-bottom: clamp(56px, 7vw, 90px); }
.pillar-cases { padding-top: clamp(48px, 6vw, 80px); }

/* ---------- English site (enabled later): Latin body face, tighter tracking ---------- */
html[lang="en"] { --f-zh: "Noto Serif", Georgia, serif; --f-head: "Bodoni Moda", "Noto Serif", Georgia, serif; }
html[lang="en"] :where(.site) :where(h1, h2, h3, h4, p, li, a, strong, b, summary, dt, dd, span):not(:where(.wm, .kicker, .num, .count)) { letter-spacing: .01em; }
html[lang="en"] .intro-lines, html[lang="en"] .intro-end { letter-spacing: .04em; }

/* =====================================================================================================
   v2.4 · lit / ignited: vector wordmark, starlight, embers, candle glow, gold foil, rising titles,
   French service words, two-row marquee, two-column featured work, footer clocks, metro line, film strip
   ===================================================================================================== */

/* vector wordmark */
.wm { display: inline-flex; align-items: center; position: relative; }
.wm-svg { display: block; height: 1em; width: auto; overflow: visible; }
.hdr .wm .wm-svg { height: 13px; }
.ftr-brand .wm .wm-svg { height: clamp(15px, 1.6vw, 20px); }
@media (max-width: 420px) { .hdr .wm .wm-svg { height: 11px; } }
.intro-wm { position: relative; display: inline-block; line-height: 0; }
.intro-wm .wm-one { width: min(88vw, 1400px); height: auto; }
.intro-wm .wm-stack { display: none; width: min(78vw, 430px); height: auto; }
@media (max-width: 700px) { .intro-wm .wm-one { display: none; } .intro-wm .wm-stack { display: block; } }
.glint { position: absolute; right: -2.2%; top: -26%; width: clamp(18px, 3vw, 44px); aspect-ratio: 1; color: var(--accent-on); pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 230, 180, .95)); animation: glint 4.5s ease-in-out 1.3s infinite; opacity: 0; }
.glint svg, .wm-glint svg { display: block; width: 100%; height: 100%; }
@keyframes glint { 0%, 50% { transform: scale(0) rotate(-45deg); opacity: 0; } 58% { transform: scale(1.15) rotate(0); opacity: 1; } 70% { transform: scale(.85) rotate(20deg); opacity: 1; } 82%, 100% { transform: scale(0) rotate(45deg); opacity: 0; } }
.wm-glint { position: absolute; right: -14px; top: -12px; width: 16px; height: 16px; color: var(--accent-on); opacity: 0; transform: scale(0); transition: opacity .3s, transform .45s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 0 6px rgba(255, 230, 180, .9)); pointer-events: none; }
.ftr-brand .wm:hover .wm-glint { opacity: 1; transform: scale(1) rotate(25deg); }

/* starlight / embers / stardust canvases */
:where([data-fx]) { position: relative; }  /* zero specificity: never overrides a block's own position (the intro stays fixed) */
[data-fx] > .fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
[data-fx] > .wrap, [data-fx] > .intro-in, [data-fx] > .hero-in, [data-fx] > .rows, [data-fx] > .film { position: relative; z-index: 1; }
.hero > .wrap.hero-in { z-index: 2; }

/* candle glow (flickers like a flame) */
.glow { position: absolute; pointer-events: none; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 228, 184, .55), rgba(243, 211, 148, .2) 45%, rgba(243, 211, 148, 0)); animation: flicker 4.6s linear infinite; }
@keyframes flicker { 0% { opacity: .78; } 7% { opacity: .92; } 13% { opacity: .72; } 22% { opacity: .96; } 31% { opacity: .8; } 39% { opacity: .9; } 47% { opacity: .7; } 58% { opacity: .95; } 66% { opacity: .82; } 74% { opacity: .93; } 85% { opacity: .75; } 93% { opacity: .9; } 100% { opacity: .78; } }
.intro-end { position: relative; isolation: isolate; }
.intro-end .glow { left: 50%; top: 50%; width: 30em; height: 10em; margin: -5em 0 0 -15em; }
.hero-in > div:first-child { position: relative; isolation: isolate; }
.hero .glow { left: -12%; top: -30%; width: 85%; height: 150%; }
.rows-over div { position: relative; isolation: isolate; }
.rows-over .glow { left: -40%; right: -40%; top: -60%; bottom: -60%; }

/* gold foil: accent words catch the light now and then */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .ac { --f1: var(--accent); --f2: #E3C383; --f3: #FFF3D6;
    background: linear-gradient(100deg, var(--f1) 0 38%, var(--f2) 45%, var(--f3) 50%, var(--f2) 55%, var(--f1) 62% 100%) 100% 0 / 280% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 6.5s ease-in-out infinite; }
  .on-brand .ac, .sw .ac { --f1: var(--accent-on); --f2: #FFF0CC; --f3: #FFFFFF; }
}
@keyframes foil { 0%, 35% { background-position: 100% 0; } 75%, 100% { background-position: 0% 0; } }
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 244, 214, .55), transparent); transform: skewX(-20deg); animation: btnshine 4.2s ease-in-out infinite; }
@keyframes btnshine { 0%, 60% { left: -60%; } 88%, 100% { left: 130%; } }

/* lit words: a glowing ember stroke sweeps in under the word and sparks rise from it */
.lit { position: relative; z-index: 0; }
.lit::before { content: ""; position: absolute; left: -.06em; right: -.06em; bottom: .1em; height: .38em; z-index: -1; border-radius: .2em;
  background: linear-gradient(90deg, rgba(243, 211, 148, .85), rgba(240, 166, 110, .8)); box-shadow: 0 0 18px rgba(240, 170, 100, .55);
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.6, 0, .2, 1); }
.lit.on::before { transform: scaleX(1); }
.lit .sp { position: absolute; left: var(--x); bottom: .4em; width: .34em; height: .34em; color: #F6C27E; opacity: 0; pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(255, 200, 130, .95)); }
.lit .sp svg { display: block; width: 100%; height: 100%; }
.lit.on .sp { animation: spark 1.8s ease-out var(--d) both; }
@keyframes spark { 0% { opacity: 0; transform: translate(0, 0) scale(.3) rotate(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), -1.5em) scale(1) rotate(120deg); } }

/* titles rise line by line */
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: inline-block; will-change: transform; }

/* French service words */
.fr { display: block; font-family: var(--f-en); font-style: italic; font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.2; color: var(--accent); letter-spacing: .01em; }
.svc-text .fr { margin-bottom: -6px; }
.on-brand .fr { color: var(--accent-on); }
.ph-head .fr { margin: 6px 0 4px; }

/* two-row marquee */
.mq-sec { padding-block: clamp(36px, 5vw, 64px); overflow: hidden; display: grid; gap: 6px; }
.mq { overflow: hidden; }
.mq-track { display: flex; align-items: baseline; width: max-content; animation: mq 36s linear infinite; }
.mq.rev .mq-track { animation-direction: reverse; animation-duration: 42s; }
.mq span { white-space: nowrap; padding-right: .45em; line-height: 1.3; }
.mq .dot { flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); margin-right: .9em; align-self: center; box-shadow: 0 0 10px rgba(243, 190, 120, .8); }
.mq .solid { font-family: var(--f-head); font-size: clamp(2.2rem, 6.4vw, 4.6rem); font-weight: 600; letter-spacing: .08em; color: var(--brand); }
.mq .script { font-family: "Cormorant Garamond", var(--f-en); font-style: italic; font-weight: 500; font-size: clamp(2.4rem, 7vw, 5rem); color: var(--accent); letter-spacing: .01em; }
.mq .caps { font-family: "Jost", "Helvetica Neue", Arial, sans-serif; font-weight: 300; text-transform: uppercase; font-size: clamp(1.8rem, 5.2vw, 3.8rem); letter-spacing: .22em; color: var(--ink); }
@keyframes mq { to { transform: translateX(-50%); } }

/* featured work: two staggered columns on a dark card that slides over the page */
.sw { background: var(--ink); color: var(--on-brand); border-radius: 40px 40px 0 0; position: relative; z-index: 1; padding-block: clamp(56px, 7vw, 100px) clamp(70px, 9vw, 130px); }
.sw-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: clamp(30px, 4vw, 56px); }
.sw-head h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.1; letter-spacing: .1em; }
.sw-all { font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(255, 248, 243, .4); padding-bottom: 2px; white-space: nowrap; }
.sw-all:hover { color: var(--accent-on); border-color: currentColor; }
.sw-grid { display: grid; grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr); align-items: start; }
.sw-col { display: grid; gap: clamp(40px, 5vw, 72px); }
.sw-col.b { padding-top: clamp(80px, 12vw, 180px); }
.sw-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--on-brand); opacity: .7; justify-self: center; margin-top: 40vh; position: sticky; top: 50vh; }
.sw-card { display: grid; gap: 14px; text-decoration: none; color: inherit; }
.sw-img { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; background: #46352D; }
.sw-img.sq { aspect-ratio: 1 / 1; }
.sw-img > .frame { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; }
.sw-img > .frame.ph { background: #46352D; }
.sw-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.sw-card:hover .sw-img img { transform: scale(1.04); }
.sw-card p { font-size: 15px; line-height: 1.7; color: rgba(255, 248, 243, .78); max-width: 30em; }
.sw-card p b { display: block; color: var(--on-brand); font-weight: 600; letter-spacing: .06em; font-size: 16px; }
.sw-card p span { display: block; }
@media (max-width: 680px) {
  .sw { border-radius: 26px 26px 0 0; }
  .sw-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; }
  .sw-dot { display: none; }
  .sw-col { gap: 26px; }
  .sw-col.b { padding-top: 60px; }
  .sw-img { border-radius: 12px; }
  .sw-card { gap: 8px; }
  .sw-card p { font-size: 12px; line-height: 1.6; }
  .sw-card p b { font-size: 13px; letter-spacing: .02em; }
  .sw-card p span { display: none; }
}

/* torch light: on a computer, case images light up around the pointer */
.torch { display: none; }
@media (hover: hover) and (pointer: fine) {
  [data-light] { position: relative; }
  .torch { display: block; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease; z-index: 3; border-radius: inherit;
    background: radial-gradient(circle 170px at var(--mx, 50%) var(--my, 50%), rgba(255, 220, 170, .34), rgba(255, 190, 120, .1) 45%, rgba(26, 14, 8, .4) 100%); }
  [data-light]:hover > .torch { opacity: 1; }
}

/* footer: contact + live clocks */
.ftr-now { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding-bottom: clamp(48px, 6vw, 80px); margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid rgba(255, 248, 243, .22); }
.ftr-title { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: .1em; line-height: 1.3; }
.ftr-now .ftr-contact { margin-top: 18px; }
.board { background: var(--ink); border-radius: 12px; padding: 14px 16px 12px; box-shadow: inset 0 0 0 1px rgba(255, 248, 243, .06), 0 24px 40px -28px rgba(0, 0, 0, .6); }
.board-h { display: flex; justify-content: space-between; gap: 10px; font-family: var(--f-en); font-size: 11px; letter-spacing: .2em; color: var(--accent-on); text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 248, 243, .12); margin-bottom: 6px; }
.board-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-block: 9px; }
.board-row + .board-row { border-top: 1px solid rgba(255, 248, 243, .08); }
.board-row .city { color: var(--on-brand); font-size: 15px; letter-spacing: .14em; line-height: 1.3; }
.board-row .city small { display: block; font-family: var(--f-en); font-size: 10px; letter-spacing: .24em; opacity: .55; }
.flaps { display: inline-flex; gap: 3px; align-items: center; }
.flap { position: relative; width: 28px; height: 40px; border-radius: 4px; background: #3E2C25; color: var(--on-brand); display: grid; place-items: center;
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif; font-weight: 300; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); }
.flap.go { animation: flip .32s ease-in-out; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(-90deg); filter: brightness(.6); } 100% { transform: rotateX(0); } }
.colon { color: var(--accent-on); font-family: var(--f-en); font-size: 22px; padding-inline: 1px; }
.board-f { font-size: 11px; color: rgba(255, 248, 243, .55); letter-spacing: .1em; padding-top: 8px; }
.sr-time { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.win { display: grid; gap: 10px; justify-items: center; margin: 0; }
.arch { position: relative; width: min(100%, 150px); aspect-ratio: 3 / 4.3; border-radius: 999px 999px 4px 4px; overflow: hidden; border: 5px solid var(--on-brand);
  box-shadow: 0 0 0 1px rgba(255, 248, 243, .5), 0 18px 30px -18px rgba(46, 31, 25, .6); background: #EED9C6; transition: background 1s ease; }
.arch .orb { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; margin: -11% 0 0 -11%; transition: left 1s ease, top 1s ease; }
.arch .orb.sun { background: var(--accent-on); box-shadow: 0 0 0 6px rgba(243, 211, 148, .25), 0 0 30px rgba(243, 211, 148, .75); }
.arch .orb.moon { background: transparent; box-shadow: inset -7px 4px 0 0 #F6EBDD; }
.arch .star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #F6EBDD; opacity: 0; transition: opacity 1s; }
.arch.night .star { opacity: .85; }
.arch .bar { position: absolute; background: var(--on-brand); opacity: .9; }
.arch .bar.v { top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; }
.arch .bar.h1 { left: 0; right: 0; top: 46%; height: 3px; }
.arch .bar.h2 { left: 0; right: 0; top: 72%; height: 3px; }
.arch .rail { position: absolute; left: -6px; right: -6px; bottom: 16%; height: 10%; border-top: 2px solid var(--ink); background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(46, 31, 25, .85) 9px 11px); opacity: .85; }
.win figcaption { text-align: center; display: grid; }
.win b { font-size: 13px; letter-spacing: .2em; font-weight: 600; }
.win time { font-family: "Jost", "Helvetica Neue", Arial, sans-serif; font-weight: 300; font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .ftr-now { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ftr-contact-col { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ftr-now { grid-template-columns: minmax(0, 1fr); } .wins { max-width: 340px; } }

/* metro line: how we work */
.metro-sign { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #FFFFFF; border-radius: 8px; padding: 10px 18px 10px 12px; margin-bottom: clamp(26px, 3vw, 40px);
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Noto Sans SC", sans-serif; box-shadow: 0 10px 24px -16px rgba(46, 31, 25, .6); }
.m-logo { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #FFFFFF; display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.m-line { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.m-dir { display: grid; line-height: 1.25; font-weight: 700; font-size: 17px; letter-spacing: .04em; }
.m-dir small { font-weight: 400; font-size: 11px; letter-spacing: .14em; opacity: .7; text-transform: uppercase; }
.metro-wrap { position: relative; }
.metro { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); position: relative; padding: 0; margin: 0; list-style: none; }
.metro::before { content: ""; position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 14px; height: 9px; border-radius: 5px; background: var(--brand); }
.stn { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; padding-inline: 6px;
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Noto Sans SC", sans-serif; }
.stn i { width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; border: 4px solid var(--ink); position: relative; z-index: 1; margin-top: 6px; transition: background-color .3s, border-color .3s, box-shadow .3s; }
.stn:first-child i, .stn:last-child i { width: 30px; height: 30px; margin-top: 3px; }
.stn b { font-size: 16px; font-weight: 700; letter-spacing: .04em; line-height: 1.35; margin-top: 4px; }
.stn span { font-size: 13px; color: var(--muted); line-height: 1.6; font-family: var(--f-zh); }
.stn.passed i { border-color: var(--brand); background: var(--accent-on); box-shadow: 0 0 14px rgba(243, 190, 120, .9); }
.train { position: absolute; z-index: 2; top: 9px; left: calc(50% / var(--n, 6)); width: 44px; height: 20px; margin-left: -22px; border-radius: 10px 10px 6px 6px; background: var(--accent-on);
  border: 2px solid var(--ink); display: flex; gap: 3px; align-items: center; justify-content: center; box-shadow: 0 0 16px rgba(243, 190, 120, .7); }
.train i { width: 7px; height: 6px; border-radius: 2px; background: var(--ink); opacity: .8; }
@media (max-width: 720px) {
  .metro { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-left: 46px; }
  .metro::before { left: 14px; right: auto; top: 16px; bottom: 16px; width: 9px; height: auto; }
  .stn { justify-items: start; text-align: left; padding-inline: 0; }
  .stn i { position: absolute; left: -46px; top: 0; margin: 0; }
  .stn:first-child i, .stn:last-child i { left: -49px; top: -3px; }
  .stn b { margin-top: 0; }
  .train { left: 18px !important; top: 0; width: 20px; height: 40px; margin-left: -10px; border-radius: 10px 10px 6px 6px; flex-direction: column; }
  .train i { width: 6px; height: 7px; }
}

/* more projects: swipeable film strip at the end of each case */
.film-sec { background: var(--brand-deep); color: var(--on-brand); padding-block: clamp(56px, 7vw, 96px); overflow: hidden; }
.film-bar { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: clamp(22px, 3vw, 36px); }
.film-bar h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); letter-spacing: .1em; line-height: 1.2; }
.film-btns { display: flex; gap: 8px; }
.fbtn { font: inherit; font-size: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 248, 243, .5); background: transparent; color: inherit; cursor: pointer; }
.fbtn:hover { background: var(--on-brand); color: var(--brand-deep); }
.film { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-inline: max(var(--gut), env(safe-area-inset-left, 0px)) max(var(--gut), env(safe-area-inset-right, 0px)); }
.film::-webkit-scrollbar { display: none; }
.film:focus-visible { outline: 2px solid var(--accent-on); outline-offset: 4px; }
.fcard { flex: 0 0 clamp(210px, 25vw, 320px); scroll-snap-align: start; display: grid; gap: 12px; text-decoration: none; color: inherit; }
.fc-img { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--ph-brand); }
.fc-img > .frame { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; }
.fc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.fcard:hover .fc-img img { transform: scale(1.04); }
.fc-txt { display: grid; gap: 4px; }
.fc-txt .city { font-size: 11px; letter-spacing: .16em; opacity: .7; }
.fc-txt b { font-size: 16px; letter-spacing: .06em; line-height: 1.45; font-weight: 600; }

/* services list: floating photo on hover (only once photos are uploaded) */
.hover-img { position: fixed; left: 0; top: 0; width: 240px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; pointer-events: none; z-index: 40; opacity: 0;
  transform: translate(24px, -50%) rotate(-3deg) scale(.92); transition: opacity .25s ease, transform .35s ease; box-shadow: 0 24px 40px -22px rgba(46, 31, 25, .55); }
.hover-img.on { opacity: 1; transform: translate(24px, -50%) rotate(-3deg) scale(1); }
.hover-img img { width: 100%; height: 100%; object-fit: cover; }
[data-hover-img] { cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .glint, .glow, .ac, .btn::after, .mq-track, .flap.go, .lit .sp { animation: none !important; }
  .glint { opacity: 0; }
  .lit::before { transition: none; }
}
