/* WonderForm official website — "Neon Noir" (proposal B, revised)
   Dark ground, the footage keeps its own colours; neon only on type, lines and controls. */

:root {
  --bg: #07060B;
  --surface: #0E0C15;
  --surface-2: #0B0A12;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .16);
  --text: #F3F0FA;
  --soft: #CFCAE0;
  --muted: #9C97AD;
  --accent: #FF4FA3;
  --cyan: #52E6FF;
  --glow: rgba(255, 79, 163, .6);
  --glow-soft: rgba(255, 79, 163, .2);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Manrope", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --zh: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --header: 84px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header) - 8px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 200; background: #fff; color: #000; padding: 10px 14px; }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 10vw, 124px); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.label a { display: inline-flex; align-items: center; gap: 6px; }
.label a:hover { color: var(--text); }
.label.muted, .muted { color: var(--muted); }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .88; letter-spacing: -.005em; }
.section-title { margin-top: 14px; font-size: clamp(48px, 6vw, 88px); }
.neon { color: #FFF3FA; text-shadow: 0 0 5px var(--glow), 0 0 18px var(--accent), 0 0 42px var(--glow); }
.flicker { animation: flicker 6s infinite; }
@keyframes flicker { 0%, 18%, 20%, 61%, 63%, 100% { opacity: 1; } 19%, 62% { opacity: .55; } }

.btn-neon { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 13px 20px; border: 1px solid var(--accent); background: rgba(7, 6, 11, .35); font-size: 14px; font-weight: 600; box-shadow: 0 0 18px var(--glow-soft), inset 0 0 14px var(--glow-soft); transition: background .3s, box-shadow .3s; }
.btn-neon:hover { background: rgba(255, 79, 163, .12); box-shadow: 0 0 30px var(--glow), inset 0 0 18px var(--glow-soft); }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.text-link:hover { color: var(--accent); }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(7, 6, 11, .5); display: grid; place-items: center; cursor: pointer; transition: border-color .3s, box-shadow .3s; }
.round-btn:hover { border-color: var(--accent); box-shadow: 0 0 18px var(--glow-soft); }

/* ------------------------------------------------------------ header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, border-color .35s; border-bottom: 1px solid transparent; }
.site-header .bar { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; padding: 8px 0; }
.logo img { height: 30px; width: auto; }
.logo .logo-white { display: none; }
.site-header.is-solid { background: rgba(7, 6, 11, .84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.site-header.is-solid .logo-black { display: none; }
.site-header.is-solid .logo-white { display: block; }
.nav { display: flex; gap: 40px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; }
.nav a { padding: 10px 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); transition: color .2s; }
.nav a:hover { color: var(--accent); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 7px; margin-right: -10px; }
.burger span { width: 22px; height: 2px; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .5); transition: transform .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 40; background: rgba(7, 6, 11, .97); display: flex; align-items: center; padding: 96px var(--gutter) 48px; }
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 8px; }
.menu a { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1.05; text-transform: uppercase; }
.menu a:hover, .menu a:focus-visible { color: var(--accent); text-shadow: 0 0 18px var(--glow); }

/* ------------------------------------------------------------ hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 1100px; overflow: hidden; background: #000; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(28deg, rgba(7, 6, 11, .88) 0%, rgba(7, 6, 11, .5) 24%, rgba(7, 6, 11, 0) 46%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.hero-content { position: absolute; left: var(--gutter); bottom: clamp(44px, 7vh, 72px); width: min(520px, calc(100% - 2 * var(--gutter))); display: flex; flex-direction: column; align-items: flex-start; }
.hero-title { font-size: clamp(46px, 5.6vw, 84px); text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.hero-zh { margin-top: 20px; font-family: var(--zh); font-weight: 700; font-size: clamp(17px, 1.4vw, 20px); letter-spacing: .04em; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.hero-sub { margin-top: 8px; max-width: 440px; font-family: var(--zh); font-size: 14px; line-height: 1.75; color: #D6D2E4; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.hero .btn-neon { margin-top: 24px; }
.hero-tools { position: absolute; right: var(--gutter); bottom: clamp(48px, 7vh, 78px); display: flex; align-items: center; gap: 20px; }
.reel-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }
.reel-btn:hover { color: #fff; }
.pause-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(7, 6, 11, .4); display: grid; place-items: center; cursor: pointer; }
.pause-btn:hover { border-color: var(--accent); }
.pause-btn.is-paused svg { display: none; }
.pause-btn.is-paused::before { content: ""; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

/* ------------------------------------------------------------ approach */
.approach-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.approach-intro { max-width: 420px; font-family: var(--zh); font-size: 16px; line-height: 1.85; color: var(--muted); }
.methods { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.method { padding: 32px 36px; background: var(--surface); border: 1px solid var(--line); }
.method h3 { margin-top: 14px; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3vw, 40px); line-height: 1; text-transform: uppercase; }
.method p:last-child { margin-top: 14px; font-family: var(--zh); font-size: 15px; line-height: 1.8; color: var(--muted); }
.connectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; height: 56px; }
.connectors span { justify-self: center; width: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.core { padding: 36px 44px; background: var(--surface); border: 1px solid var(--accent); box-shadow: 0 0 40px var(--glow-soft), inset 0 0 24px var(--glow-soft); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; }
.core-title { margin-top: 8px; font-size: clamp(56px, 7.2vw, 104px); }
.core-body { font-family: var(--zh); font-size: 18px; line-height: 1.75; }
.tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border: 1px solid var(--line-2); font-family: var(--zh); font-size: 13px; color: var(--soft); }
.core .text-link { margin-top: 18px; color: var(--cyan); }

/* ------------------------------------------------------------ case studies */
.cases { position: relative; background: #000; }
.cases-label { position: absolute; z-index: 3; top: 56px; left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }
.case-slide { display: none; position: relative; min-height: 640px; }
.case-slide.is-active { display: block; animation: fade .6s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.case-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 6, 11, .2) 0%, rgba(7, 6, 11, .6) 50%, rgba(7, 6, 11, .96) 100%); }
.case-inner { position: relative; z-index: 2; min-height: 640px; display: flex; justify-content: flex-end; align-items: center; padding-block: 96px; }
.case-panel { width: min(540px, 100%); padding: 40px; background: rgba(14, 12, 21, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--glow); }
.case-client { margin-top: 12px; font-family: var(--zh); font-size: 16px; color: var(--accent); }
.case-title { margin-top: 6px; font-family: var(--zh); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.3; }
.case-title.big { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.2; }
.case-summary { margin-top: 16px; font-family: var(--zh); font-size: 15px; line-height: 1.8; color: var(--soft); }
.case-panel .text-link { margin-top: 20px; }
.case-controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 48px; display: flex; align-items: flex-end; justify-content: space-between; pointer-events: none; }
.case-controls > * { pointer-events: auto; }
.case-count { display: flex; align-items: flex-end; gap: 14px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.case-count .display { font-size: 96px; line-height: .8; }
.case-buttons { display: flex; gap: 10px; }

/* ------------------------------------------------------------ works */
.works-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 40px; padding: 9px 14px; border: 1px solid var(--line-2); background: none; color: var(--soft); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: all .25s; }
.filters button:hover { border-color: var(--accent); color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0B0710; box-shadow: 0 0 16px var(--glow); }
.grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; grid-auto-flow: dense; }
.work { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); transition: box-shadow .35s; }
.work[hidden] { display: none; }
.grid.is-mosaic .work.is-lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) brightness(.86); transition: transform .7s ease, filter .7s ease; }
.work::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(0deg, rgba(7, 6, 11, .94), rgba(7, 6, 11, 0)); }
.work-info { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; }
.work-cat { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.work-title { margin-top: 4px; font-family: var(--zh); font-weight: 700; font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work-meta { margin-top: 2px; font-size: 12px; color: var(--muted); }
.grid.is-mosaic .work.is-lead .work-info { left: 24px; bottom: 22px; }
.grid.is-mosaic .work.is-lead .work-title { font-size: 22px; }
.play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 1px solid var(--accent); background: rgba(7, 6, 11, .35); box-shadow: 0 0 20px var(--glow); display: grid; place-items: center; opacity: 0; transition: opacity .3s; }
a.work:hover, a.work:focus-visible { box-shadow: 0 0 0 1px var(--accent), 0 0 36px var(--glow); outline: none; }
a.work:hover img, a.work:focus-visible img { transform: scale(1.05); filter: saturate(1.08) brightness(1); }
a.work:hover .play, a.work:focus-visible .play { opacity: 1; }
.more { margin-top: 28px; text-align: right; }

/* ------------------------------------------------------------ about */
.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: start; }
.about-body { margin-top: 22px; max-width: 560px; font-family: var(--zh); font-size: 15px; line-height: 1.9; color: var(--muted); }
.stats { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 24px 48px; }
.stats div { display: flex; flex-direction: column-reverse; }
.stat-value { font-size: 60px; line-height: 1; }
.stat-label { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.logos { margin-top: 18px; padding: 24px 28px; border-radius: 14px; background: linear-gradient(135deg, #F1EEF6 0%, #DDD7E8 58%, #CBC4DA 100%); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 22px; }
.logos li { height: 72px; display: flex; align-items: center; justify-content: center; }
.logos img { max-width: 100%; max-height: 54px; width: auto; height: auto; object-fit: contain; transition: transform .4s; }
.logos li:hover img { transform: scale(1.07); }

/* ------------------------------------------------------------ contact */
#contact { border-top: 1px solid var(--line); }
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; }
.contact-title { margin-top: 14px; font-size: clamp(44px, 5vw, 72px); }
.contact-sub { margin-top: 18px; max-width: 520px; font-family: var(--zh); font-size: 16px; line-height: 1.85; color: var(--muted); }
.contact-list { margin-top: 28px; display: grid; gap: 14px; }
.contact-list div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.contact-list dt { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { font-size: 15px; overflow-wrap: anywhere; }
.contact-list a:hover, .contact-social a:hover { color: var(--accent); }
.contact-social { margin-top: 18px; display: flex; gap: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.contact-social a { padding: 10px 0; }
.form { position: relative; display: grid; gap: 20px; align-content: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .22); border-radius: 0; color: var(--text); padding: 10px 0; font-family: var(--zh); font-size: 16px; transition: border-color .25s; }
.field select { cursor: pointer; }
.field select option { background: var(--bg); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field-goal label { color: var(--accent); }
.field-goal textarea { border-bottom-color: var(--accent); resize: vertical; min-height: 96px; line-height: 1.7; }
.field textarea::placeholder { color: #6E6980; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #FF8FA8; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit { height: 54px; border: 0; background: var(--accent); color: #0B0710; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 0 24px var(--glow); cursor: pointer; transition: box-shadow .3s, opacity .3s; }
.submit:hover { box-shadow: 0 0 36px var(--glow); }
.submit:disabled { opacity: .6; cursor: progress; }
.form-status { min-height: 1.6em; font-family: var(--zh); font-size: 14px; }
.form-status.is-ok { color: #8BF5C8; }
.form-status.is-err { color: #FF8FA8; }
.privacy-note { font-family: var(--zh); font-size: 12px; color: var(--muted); }
.privacy-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ footer + video modal */
.site-footer { border-top: 1px solid var(--line); padding-block: 26px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.footer-logo { height: 18px; width: auto; opacity: .85; }
.footer-links { display: flex; gap: 20px; text-transform: uppercase; }
.footer-links a { padding: 8px 0; }
.footer-links a:hover { color: var(--accent); }
.yt-modal { width: min(1200px, 92vw, calc((100vh - 220px) * 16 / 9)); width: min(1200px, 92vw, calc((100dvh - 220px) * 16 / 9)); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.yt-modal::backdrop { background: rgba(7, 6, 11, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.yt-frame { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 0 0 1px var(--accent), 0 0 60px var(--glow-soft); }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-close { position: absolute; top: -56px; right: -8px; width: 48px; height: 48px; border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; }
.yt-close:hover { color: var(--accent); }
.yt-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 40px; padding-top: 18px; }
.yt-caption[hidden] { display: none; }
.yt-cap-title { font-family: var(--zh); font-weight: 700; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.4; }
.yt-cap-meta { margin-top: 2px; font-size: 13px; color: var(--muted); }
.yt-credits { display: flex; flex-wrap: wrap; gap: 6px 32px; }
.yt-credits div { display: flex; align-items: baseline; gap: 12px; }
.yt-credits dt { font-family: var(--zh); font-size: 12px; letter-spacing: .2em; color: var(--cyan); }
.yt-credits dd { font-family: var(--zh); font-size: 15px; color: var(--text); }
/* Landscape phones: the video fills the height, close button moves beside it, no caption */
@media (max-height: 520px) {
  .yt-modal { width: min(calc(100vw - 128px), calc((100vh - 24px) * 16 / 9)); width: min(calc(100vw - 128px), calc((100dvh - 24px) * 16 / 9)); }
  .yt-close { top: 0; right: -52px; }
  .yt-caption { display: none; }
}

/* ------------------------------------------------------------ sub pages */
.page-top { padding-top: calc(var(--header) + clamp(48px, 7vw, 88px)); }
.case-hero { position: relative; min-height: min(84vh, 780px); display: flex; align-items: flex-end; background: #000; overflow: hidden; }
.case-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-hero .case-shade { background: linear-gradient(20deg, rgba(7, 6, 11, .95) 0%, rgba(7, 6, 11, .55) 40%, rgba(7, 6, 11, .1) 75%); }
.case-hero-content { position: relative; z-index: 2; padding-top: calc(var(--header) + 40px); padding-bottom: 64px; }
.case-hero-content > * { max-width: 760px; }
.case-hero .btn-neon { margin-top: 24px; }
.case-blocks { display: grid; }
.case-block { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding-block: 32px; border-top: 1px solid var(--line); }
.case-block h2 { display: flex; flex-direction: column; gap: 6px; }
.case-block-zh { font-family: var(--zh); font-size: 14px; font-weight: 500; color: var(--muted); }
.case-block p { max-width: 760px; font-family: var(--zh); font-size: 17px; line-height: 1.9; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 40px; font-family: var(--zh); font-size: 20px; font-weight: 700; }
.prose p { margin-top: 12px; font-family: var(--zh); line-height: 1.9; color: var(--soft); }
.prose a { color: var(--accent); }
.not-found .btn-neon { margin-top: 28px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about, .contact { gap: 56px; }
  .logos { padding: 20px; gap: 10px 16px; }
}
@media (max-width: 860px) {
  :root { --header: 68px; }
  .nav { display: none; }
  .burger { display: flex; }
  .logo img { height: 24px; }
  .hero-shade { background: linear-gradient(180deg, rgba(7, 6, 11, 0) 34%, rgba(7, 6, 11, .8) 64%, rgba(7, 6, 11, .97) 100%); }
  .hero-content { bottom: 104px; }
  .hero-title { font-size: clamp(60px, 19vw, 84px); }
  .hero .btn-neon { width: 100%; }
  .hero-tools { left: var(--gutter); right: var(--gutter); bottom: 36px; justify-content: space-between; }
  .methods, .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .connectors { grid-template-columns: minmax(0, 1fr); height: 40px; }
  .connectors span:last-child { display: none; }
  .core { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px 24px; }
  .method { padding: 26px 24px; }
  .cases-label { top: 32px; }
  .case-slide, .case-inner { min-height: 0; }
  .case-bg { position: relative; height: 62vw; min-height: 260px; }
  .case-slide .case-shade { display: none; }
  .case-inner { padding-block: 0 120px; margin-top: -48px; }
  .case-panel { padding: 28px 24px; }
  .case-controls { bottom: 32px; }
  .case-count .display { font-size: 64px; }
  .case-block { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid.is-mosaic .work.is-lead { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; }
  .grid.is-mosaic .work.is-lead .work-title { font-size: 16px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 16px; }
  .logos li { height: 56px; }
  .logos img { max-height: 40px; }
  .stat-value { font-size: 48px; }
  .menu a { font-size: 48px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------ quick budget estimate */
.estimate-cta { position: relative; display: grid; gap: 6px; margin-top: 32px; padding: 26px 76px 26px 28px; border: 1px solid var(--accent); background: linear-gradient(135deg, rgba(255, 79, 163, .16), rgba(255, 79, 163, .03) 60%); box-shadow: 0 0 28px var(--glow-soft), inset 0 0 22px var(--glow-soft); transition: box-shadow .3s, transform .3s; }
.estimate-cta:hover { box-shadow: 0 0 40px var(--glow), inset 0 0 26px var(--glow-soft); transform: translateY(-2px); }
.estimate-cta-kicker { font-family: var(--zh); font-size: 14px; font-weight: 700; color: var(--accent); }
.estimate-cta-title { font-size: clamp(34px, 3.4vw, 48px); color: #FFF3FA; text-shadow: 0 0 5px var(--glow), 0 0 18px var(--glow-soft); }
.estimate-cta-text { font-family: var(--zh); font-size: 14px; line-height: 1.7; color: var(--soft); }
.estimate-cta-go { position: absolute; right: 24px; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--accent); color: #0B0710; display: grid; place-items: center; box-shadow: 0 0 18px var(--glow); }
.estimate-cta-go svg { width: 20px; height: 20px; }
.form-head { display: grid; gap: 6px; padding-bottom: 4px; }
.form-head h3 { font-family: var(--zh); font-size: 18px; font-weight: 700; }

.estimate-wrap { max-width: 920px; }
.estimate-intro { margin-top: 20px; max-width: 720px; font-family: var(--zh); font-size: 16px; line-height: 1.85; color: var(--muted); }
.estimator { margin-top: 44px; padding: clamp(24px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); min-height: 420px; }
.est-progress { display: flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.est-bar { flex: 1; height: 2px; background: var(--line); position: relative; }
.est-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); transition: width .4s ease; }
.est-step { display: grid; gap: 20px; margin-top: 28px; }
.est-title { font-family: var(--zh); font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.35; outline: none; }
.est-hint { margin-top: -10px; font-family: var(--zh); font-size: 14px; line-height: 1.7; color: var(--muted); }
.est-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.est-field legend { padding: 0; margin-bottom: 12px; font-family: var(--zh); font-size: 15px; font-weight: 700; }
.est-field legend span { font-weight: 400; color: var(--muted); }
.est-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.est-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 16px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.est-opt:hover { border-color: rgba(255, 79, 163, .6); }
.est-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.est-box { flex: none; width: 18px; height: 18px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; display: grid; place-items: center; }
.est-opt input[type="checkbox"] + .est-box { border-radius: 3px; }
.est-opt input:checked + .est-box { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.est-opt input:checked + .est-box::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #0B0710; border-bottom: 2px solid #0B0710; transform: translateY(-1px) rotate(-45deg); }
.est-opt:has(input:checked) { border-color: var(--accent); background: rgba(255, 79, 163, .08); box-shadow: 0 0 18px var(--glow-soft); }
.est-opt input:focus-visible + .est-box { outline: 2px solid var(--accent); outline-offset: 3px; }
.est-opt-label { font-family: var(--zh); font-size: 15px; line-height: 1.5; }
.est-text textarea { border-bottom-color: rgba(255, 255, 255, .22); }
.est-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; }
.est-next { padding: 0 28px; display: inline-flex; align-items: center; gap: 10px; }
.est-result { display: grid; gap: 16px; }
.est-range { font-size: clamp(56px, 8vw, 104px); outline: none; }
.est-range .neon { white-space: nowrap; }
.est-confidence { font-family: var(--zh); font-size: 16px; }
.est-confidence b { color: var(--cyan); }
.est-conf-text, .est-disclaimer { font-family: var(--zh); font-size: 15px; line-height: 1.8; color: var(--soft); max-width: 680px; }
.est-budget { padding: 14px 16px; border-left: 2px solid var(--cyan); background: rgba(82, 230, 255, .06); font-family: var(--zh); font-size: 15px; line-height: 1.8; max-width: 680px; }
.est-notes { display: grid; gap: 6px; font-family: var(--zh); font-size: 14px; color: var(--soft); }
.est-notes li::before { content: "＊"; color: var(--accent); margin-right: 6px; }
.est-thanks { font-family: var(--zh); font-size: 15px; color: #8BF5C8; }
.est-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.est-actions .text-link { background: none; border: 0; cursor: pointer; }
@media (max-width: 860px) {
  .estimate-cta { padding: 22px 64px 22px 22px; }
  .estimate-cta-go { right: 16px; }
}
@media (max-width: 560px) {
  .est-options { grid-template-columns: minmax(0, 1fr); }
  .estimator { padding: 22px 18px; margin-left: calc(-1 * var(--gutter) + 8px); margin-right: calc(-1 * var(--gutter) + 8px); }
  .est-next { flex: 1; justify-content: center; }
}

/* Chinese category names on filters and work cards */
.filters button, .work-cat { font-family: var(--mono), var(--zh); }
.filters button { letter-spacing: .08em; }
.work-cat { letter-spacing: .1em; }

/* Case covers: crop around the stored focus height (set per case in the admin) */
.focus-0 { object-position: 50% 0%; }
.focus-5 { object-position: 50% 5%; }
.focus-10 { object-position: 50% 10%; }
.focus-15 { object-position: 50% 15%; }
.focus-20 { object-position: 50% 20%; }
.focus-25 { object-position: 50% 25%; }
.focus-30 { object-position: 50% 30%; }
.focus-35 { object-position: 50% 35%; }
.focus-40 { object-position: 50% 40%; }
.focus-45 { object-position: 50% 45%; }
.focus-50 { object-position: 50% 50%; }
.focus-55 { object-position: 50% 55%; }
.focus-60 { object-position: 50% 60%; }
.focus-65 { object-position: 50% 65%; }
.focus-70 { object-position: 50% 70%; }
.focus-75 { object-position: 50% 75%; }
.focus-80 { object-position: 50% 80%; }
.focus-85 { object-position: 50% 85%; }
.focus-90 { object-position: 50% 90%; }
.focus-95 { object-position: 50% 95%; }
.focus-100 { object-position: 50% 100%; }
@media (min-width: 861px) {
  .case-slide, .case-inner { min-height: clamp(560px, 50vw, 780px); }
}

/* Phone hero: smaller type so the reel stays visible */
@media (max-width: 860px) {
  .hero-title { font-size: clamp(38px, 11vw, 52px); }
  .hero-zh { margin-top: 14px; font-size: 16px; }
  .hero-sub { font-size: 13px; line-height: 1.7; }
  .hero .btn-neon { width: auto; margin-top: 18px; min-height: 44px; padding: 11px 16px; font-size: 13px; }
  .hero-content { bottom: 92px; }
  .hero-shade { background: linear-gradient(180deg, rgba(7, 6, 11, 0) 48%, rgba(7, 6, 11, .75) 72%, rgba(7, 6, 11, .95) 100%); }
}

/* Case text panel on the left when the person in the cover stands on the right */
.case-slide.is-left .case-inner { justify-content: flex-start; }
.case-slide.is-left .case-shade { background: linear-gradient(270deg, rgba(7, 6, 11, .2) 0%, rgba(7, 6, 11, .6) 50%, rgba(7, 6, 11, .96) 100%); }
@media (min-width: 861px) { .case-slide.is-left .case-panel { margin-bottom: 72px; } }

/* Client logos: flex instead of grid so an unfinished last row sits centred */
.logos { display: flex; flex-wrap: wrap; justify-content: center; }
.logos li { flex: 0 0 calc((100% - 3 * 22px) / 4); min-width: 0; }
@media (max-width: 1024px) { .logos li { flex-basis: calc((100% - 3 * 16px) / 4); } }
@media (max-width: 560px) { .logos li { flex-basis: calc((100% - 2 * 16px) / 3); } }

/* Portfolio PDF link (contact section) */
.portfolio-link { margin-top: 22px; }
