:root {
  --canvas: #584ab6;
  --canvas-deep: #040742;
  --paper: #fffaf0;
  --card: #fffefa;
  --ink: #242019;
  --muted: #625044;
  --line: #e6c5ae;
  --accent: #ed621f;
  --accent-dark: #993511;
  --soft: #ffead7;
  --radius: 24px;
  --gutter: clamp(12px, 1.45vw, 24px);
  --panel-padding: clamp(18px, 3.2vw, 54px);
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  min-height: 100%;
  background-color: var(--canvas-deep);
  background-image: linear-gradient(150deg, var(--canvas) 0%, var(--canvas-deep) 100%);
  background-attachment: fixed;
  scroll-behavior: smooth;
}

body {
  display: grid;
  grid-template-columns: clamp(173px, 14.6vw, 226px) minmax(0, 1fr);
  align-items: start;
  gap: var(--gutter);
  max-width: 1860px;
  margin: 0 auto;
  padding: var(--gutter);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.64;
}

main, .footer { grid-column: 2; min-width: 0; }

main {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
}

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
p, h1, h2, h3 { margin: 0; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 4px; }
:where(main, section, article) { scroll-margin-top: var(--gutter); }
.shell { width: 100%; }

.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  top: 9px;
  left: 9px;
  z-index: 5;
  background: var(--card);
  padding: 9px 18px;
  border-radius: 14px;
}

.header {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: sticky;
  top: var(--gutter);
  border-radius: var(--radius);
  background: var(--card);
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 15px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  line-height: 1.12;
}

.brand img { width: 38px; max-height: 29px; object-fit: contain; flex: none; }
.brand strong { display: block; font: 900 clamp(15px, 1.32vw, 19px)/1 Arial, sans-serif; letter-spacing: -.06em; white-space: nowrap; }
.brand small { display: block; margin-top: 4px; font-size: 10px; font-weight: 800; letter-spacing: .065em; }

.header nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
  font-weight: 800;
}

.header nav a {
  display: flex;
  min-height: 45px;
  align-items: center;
  padding: 9px 11px;
  border-radius: 12px;
}

.header nav a:not(.nav-cta):hover,
.header nav a[aria-current] { background: var(--soft); color: var(--accent-dark); }

.header nav .nav-cta {
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  background: #f9783b;
  color: #241910;
  border-radius: 60px;
  padding-inline: 13px;
}

.header nav .nav-cta:hover { background: #ffa369; }

.rail-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 9px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.rail-social a { display: inline-flex; align-items: center; min-height: 30px; }
.rail-social a:hover, .socials a:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu { display: none; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-dark);
  font: 800 11px/1.3 var(--mono);
  letter-spacing: .08em;
}

.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: .07em; font-weight: 650; }
.signal { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex: none; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 20px; margin-top: 22px; }

.button, .text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 800;
}

.button {
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 9px 16px;
  border-radius: 60px;
}

.button-dark, .button-ink { background: #25201a; color: #fffaf0; }
.button-dark:hover, .button-ink:hover { background: #713317; }
.text-link { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #9a6f55; }
.text-link:hover { color: var(--accent-dark); }

.front-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(clamp(165px, 17vw, 214px), .34fr);
  gap: var(--gutter);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: hidden;
  min-height: clamp(470px, 67svh, 650px);
  border-radius: var(--radius);
  background: #11141b;
  color: #fff9ef;
}

.hero-media, .hero-media::after { position: absolute; inset: 0; }
.hero-media { z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 63% 42%; }

.hero-media::after {
  content: "";
  background:
    linear-gradient(0deg, #141013 1%, #141013b8 24%, #14101318 76%),
    linear-gradient(90deg, #0d1116b5 0%, #0d111647 55%, transparent 89%);
}

.hero-copy { min-width: 0; padding: clamp(20px, 3.7vw, 63px); }
.hero h1 { font-size: clamp(46px, 5.5vw, 91px); font-weight: 900; line-height: 1.04; letter-spacing: -.07em; }
.hero h1 > span { white-space: nowrap; }
.hero-period { color: #ffc28d; }
.hero .lead { max-width: 40ch; margin-top: 17px; color: #ffede0; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.65; text-wrap: pretty; }
.hero-button { background: #ffae73; color: #291910; }
.hero-button:hover { background: #ffd3ae; }
.hero .text-link { color: #fff9ef; text-decoration-color: #e2a67e; }
.hero .text-link:hover { color: #ffd3ae; }
.hero a:focus-visible { outline-color: #ffba88; }

.front-aside { display: grid; grid-template-rows: repeat(2, 1fr); min-width: 0; gap: var(--gutter); }

.front-feature {
  display: grid;
  align-content: start;
  gap: 11px;
  min-width: 0;
  padding: clamp(12px, 1.6vw, 22px);
  border-radius: var(--radius);
  background: var(--card);
}

.front-feature-listen { background: #f0e7fa; }
.front-feature-listen .eyebrow { color: #674781; }
.front-feature-heading strong { display: block; margin-top: 5px; font-size: clamp(16px, 1.68vw, 25px); line-height: 1.2; letter-spacing: -.038em; }
.front-feature-image { position: relative; display: block; overflow: hidden; border-radius: 13px; }
.front-feature-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.front-feature-label { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.front-feature:hover .front-feature-label { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

.front-play {
  position: absolute;
  inset: auto 10px 10px auto;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  padding-left: 2px;
  border-radius: 50%;
  background: #fffaf0;
  color: var(--ink);
  font-size: 13px;
}

.channel-band, .section, .contact, .footer, .panel {
  border-radius: var(--radius);
  background: var(--paper);
}

.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 var(--panel-padding); }
.channels a { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 13px 12px; min-height: 56px; }
.channels a:first-child { padding-left: 0; }
.channels a:last-child { padding-right: 0; }
.channels a + a { border-left: 1px solid var(--line); }
.channels strong { font-size: clamp(13px, 1.2vw, 16px); }
.jump { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; flex: none; }
.channels a:hover .jump { background: var(--accent-dark); color: white; border-color: var(--accent-dark); }

.section, .contact { padding: var(--panel-padding); }
.section-intro { display: grid; grid-template-columns: 1.25fr .85fr; align-items: end; gap: 19px 29px; margin-bottom: 25px; }
.section h2, .contact h2 { margin-top: 10px; font-size: clamp(33px, 4vw, 61px); font-weight: 900; line-height: 1.12; letter-spacing: -.07em; }
.section-intro > p, .voice-copy > p:not(.eyebrow) { color: var(--muted); max-width: 40ch; text-wrap: pretty; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.service { display: flex; flex-direction: column; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: #fff2df; }
.service:nth-child(2) { background: #f7ecfa; }
.service:nth-child(3) { background: #edf1de; }
.service:nth-child(4) { background: #ffe8db; }
.service:hover { border-color: var(--accent-dark); }
.service-top { display: flex; align-items: center; justify-content: space-between; color: var(--accent-dark); font-size: 11px; }
.service-top span { font-size: 17px; }
.service svg { width: 45px; height: 45px; margin: 12px 0; fill: none; stroke: var(--accent-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; border-radius: 50%; background: #fffdf5; }
.service h3 { font-size: clamp(16px, 1.65vw, 23px); line-height: 1.3; letter-spacing: -.035em; }
.service p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.service-motion { background: #e5eefb; }
.service-video { background: #eee7fb; justify-content: center; }
.service-brand { font-size: 12px; font-weight: 850; color: #3a4b75; letter-spacing: .035em; }
.service-mark { height: 45px; width: 45px; object-fit: contain; margin-block: 12px; }
.service-video h3 { margin-top: 18px; }
.service-status { align-self: flex-start; display: inline-block; margin-top: 12px; padding: 4px 11px; border-radius: 50px; background: #dfd0f4; color: #4b3372; font-size: 14px; font-weight: 850; }

.work { background: #ffefd3; }
.case-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 13px; }
.case-filters, .case-controls { display: flex; flex-wrap: wrap; gap: 5px; }
.case-toolbar button { min-height: 44px; cursor: pointer; border: 1px solid #d7ab88; border-radius: 50px; background: var(--card); color: var(--ink); padding: 7px 12px; font-size: 13px; font-weight: 800; }
.case-toolbar button[aria-pressed="true"], .case-toolbar button:not([aria-disabled="true"]):hover { background: #9d401c; border-color: #9d401c; color: #fffaf0; }
.case-controls button { min-width: 44px; font-size: 18px; padding: 0; }
.case-controls button[aria-disabled="true"] { cursor: default; opacity: .48; }
.case-grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 13px) / 2); gap: 13px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-color: #b56237 #ffe1b5; }
.case { min-width: 0; scroll-snap-align: start; overflow: hidden; border-radius: 17px; border: 1px solid var(--line); background: var(--card); }
.case img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #eecbab; }
.case-body { padding: 13px 15px 17px; }
.case-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; color: var(--muted); font-size: 11px; }
.case-meta span { color: #8a3517; background: #ffead2; padding: 2px 8px; border-radius: 50px; font: 800 12px/1.4 var(--sans); letter-spacing: 0; }
.case h3 { margin-top: 8px; font-size: clamp(19px, 2vw, 29px); line-height: 1.23; letter-spacing: -.04em; }
.case-body > p:last-child { margin-top: 6px; font-size: 14px; color: var(--muted); }

.voice { background: #f1e9f9; }
.voice-panel { display: grid; grid-template-columns: 1fr minmax(0, .8fr); align-items: center; gap: 25px; }
.voice-copy h2 { margin-bottom: 14px; }
.voice-copy .eyebrow { color: #61467a; }
.voice-copy .signal { background: #76529a; }
.voice-visual { min-width: 0; padding: 18px; border: 1px solid #d3c0e3; border-radius: 19px; background: #e4d6ef; }
.vm-logo { width: min(85%, 300px); margin-inline: auto; mix-blend-mode: multiply; }
.voice-links { margin-top: 8px; }
.voice-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 6px 0; border-top: 1px solid #bdabd0; font-size: 13px; font-weight: 800; }
.voice-links a:hover { color: #593683; }

.product-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.product-list li { border-bottom: 1px solid var(--line); }
.product-list a { display: grid; grid-template-columns: 24px minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 5px 14px; min-height: 62px; padding: 10px 5px; }
.product-list a:hover { background: var(--soft); }
.index { font-size: 11px; color: var(--accent-dark); }
.product-name { font-size: clamp(19px, 2.4vw, 32px); font-weight: 850; line-height: 1.2; letter-spacing: -.05em; }
.product-type { color: var(--muted); font-size: 14px; }
.product-link { font-size: 13px; font-weight: 800; }
.shop-links { display: flex; gap: 9px 21px; flex-wrap: wrap; margin-top: 10px; }

.contact { background: #ffdfb6; }
.contact-inner { display: grid; grid-template-columns: 1.35fr 1fr; align-items: end; gap: 23px; }
.contact-inner > div > p:not(.eyebrow) { margin: 12px 0 16px; color: var(--muted); }
address { display: grid; justify-items: start; gap: 5px; border-top: 1px solid #c99775; padding-top: 12px; font-style: normal; }
address .mono { font-size: 11px; }
address a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
address p { font-size: 13px; }

.footer { background: #292119; color: #fff3e2; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 18px; padding: 17px var(--panel-padding); }
.footer-inner > p { font-size: 12px; }
.socials { display: flex; flex-wrap: wrap; gap: 11px; font-size: 12px; font-weight: 800; }

@media (max-width: 1150px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 841px) {
  .services .section-intro > div { position: relative; padding-inline-start: 26px; }
  .services .eyebrow {
    position: absolute;
    top: 12px;
    left: 0;
    writing-mode: vertical-rl;
  }
}

@media (max-width: 840px) {
  :root { --radius: 20px; }
  body { display: block; }
  main { margin-block: var(--gutter); }
  .header { position: static; }
  .header-inner { flex-flow: row wrap; align-items: center; justify-content: space-between; gap: 0 11px; padding: 10px 13px; }
  .brand { align-self: center; }
  .brand img { width: 33px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 9px; }
  .menu { display: flex; align-items: center; gap: 6px; cursor: pointer; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 50px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 800; }
  .header nav { width: 100%; padding-top: 7px; }
  .header nav .nav-cta { margin-top: 2px; }
  .rail-social, .menu:not([hidden])[aria-expanded="false"] + nav { display: none; }
  .front-row { grid-template-columns: 1fr; }
  .front-aside { grid-template: 1fr / repeat(2, minmax(0, 1fr)); }
  .hero { min-height: min(500px, 76svh); }
  .hero h1 { font-size: clamp(41px, 9vw, 73px); }
  .hero-media img { object-position: 68% 45%; }
  .section-intro, .voice-panel, .contact-inner { grid-template-columns: 1fr; }
  .section-intro { margin-bottom: 17px; gap: 10px; }
  .voice-visual { padding: 10px 15px; }
}

@media (max-width: 520px) {
  :root { --gutter: 9px; --radius: 17px; --panel-padding: 15px; }
  .hero { min-height: max(439px, 64svh); }
  .hero-copy { padding: 18px 15px 21px; }
  .hero-media img { object-position: 68% 30%; }
  .hero-media::after { background: linear-gradient(0deg, #141013 5%, #141013e6 23%, #14101356 61%, transparent 85%); }
  .hero .lead { margin-top: 11px; }
  .actions { margin-top: 14px; gap: 5px 14px; }
  .front-feature { gap: 7px; padding: 11px; }
  .front-feature-image { border-radius: 8px; }
  .front-feature-heading strong { font-size: 16px; }
  .front-feature-label { font-size: 11px; }
  .front-play { right: 5px; bottom: 5px; width: 28px; height: 28px; font-size: 10px; }
  .channels { grid-template-columns: 1fr; }
  .channels a { padding: 7px 0; min-height: 45px; }
  .channels a + a { border-left: 0; border-top: 1px solid var(--line); }
  .service { padding: 10px; border-radius: 12px; }
  .service p { font-size: 13px; }
  .case-grid { grid-auto-columns: 86%; }
  .product-list a { grid-template-columns: 17px minmax(0, 1fr) auto; column-gap: 5px; }
  .product-list .index, .product-link { grid-row: span 2; }
  .product-type { grid-column: 2; grid-row: 2; font-size: 12px; }
  .footer-inner > p { order: 3; width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-media { animation: photo-uncover .78s cubic-bezier(.23,.68,.32,1) both; }
  .hero-copy { animation: panel-rise .48s .16s both; }
  .front-play { animation: play-pop .36s .38s cubic-bezier(.34,1.32,.64,1) both; }
  .scroll-pop {
    transform-origin: center 72%;
    animation: scroll-spring .56s cubic-bezier(.23,.74,.32,1) var(--pop-delay, 0ms) backwards;
  }
}

@keyframes photo-uncover {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}

@keyframes panel-rise {
  from { opacity: .58; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-spring {
  0%   { opacity: .38; transform: translateY(22px) scale(.88, .81); }
  47%  { opacity: 1; transform: translateY(-7px) scale(1.024, 1.075); }
  71%  { transform: translateY(3px) scale(.992, .969); }
  88%  { transform: translateY(-1px) scale(1.003, 1.012); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes play-pop {
  from { transform: scale(.65); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
