:root {
  --paper: #ffffff;
  --ink: #17123a;
  --ink-soft: #55507a;
  --pink: #ff5c8a;
  --blue: #3d5afe;
  --both: #3a2a9c;
  --sun: #ffd447;
  --wash: #f4f2fb;
  --line: #e2def3;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, "PingFang TC", "Noto Sans TC", sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, "PingFang TC", "Noto Sans TC", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 700; max-width: 18ch; }
h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

.c-m { fill: var(--pink); }
.c-l { fill: var(--blue); mix-blend-mode: multiply; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
}
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.5rem/1 var(--display); letter-spacing: -0.03em; }
.mark svg { isolation: isolate; flex: none; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 30px); font-weight: 500; font-size: 0.98rem; }
.top nav a { text-decoration: none; padding: 6px 0; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.top nav .nav-cta { background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 999px; }
.top nav .nav-cta:hover { text-decoration: none; background: var(--both); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(16px, 3vw, 48px);
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(24px, 5vw, 64px) var(--gutter) clamp(48px, 7vw, 96px);
}
.hello { font: 500 1.25rem/1.2 var(--display); color: var(--both); margin-bottom: 18px; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.btn {
  display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600;
  padding: 15px 26px; border-radius: 999px; transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--both); transform: translateY(-1px); }
.quiet { font-weight: 500; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--pink); }
.quiet:hover { text-decoration-color: var(--blue); }

.venn { width: 100%; height: auto; display: block; isolation: isolate; overflow: visible; }
.venn text { font-family: var(--display); font-weight: 700; font-size: 30px; text-anchor: middle; letter-spacing: -0.02em; }
.venn text.small { font-weight: 500; font-size: 20px; }
.venn .on-m { fill: var(--ink); }
.venn .on-l { fill: #fff; }
.venn .on-both { fill: #fff; font-size: 26px; }
.venn-hero .c-m { animation: drift-m 9s ease-in-out infinite alternate; }
.venn-hero .c-l { animation: drift-l 9s ease-in-out infinite alternate; }
@keyframes drift-m { from { transform: translateX(-14px); } to { transform: translateX(10px); } }
@keyframes drift-l { from { transform: translateX(14px); } to { transform: translateX(-10px); } }

/* Bands */
.band { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(56px, 8vw, 112px) var(--gutter); }
.band-lede { color: var(--ink-soft); max-width: 60ch; margin-top: 18px; font-size: 1.1rem; }

/* Mix */
.mix { background: var(--wash); max-width: none; }
.mix > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.mix-head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.1rem; }
.mix-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(28px, 4vw, 48px); }
.slider { margin-top: 10px; }
.slider label { display: block; font-weight: 600; margin-bottom: 10px; }
.slider input { width: 100%; margin: 0; accent-color: var(--both); height: 32px; cursor: pointer; }
.ends { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--ink-soft); }
.mix-card { background: #fff; border-radius: 28px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(58, 42, 156, 0.45); }
.mix-card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; }
.mix-card > p { margin-top: 14px; color: var(--ink-soft); min-height: 6.4em; }
.mix-card dl { margin: 22px 0 0; display: grid; gap: 12px; }
.mix-card dl div { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: baseline; }
.mix-card dt { font: 600 0.9rem/1 var(--display); padding: 7px 0; border-radius: 999px; text-align: center; }
.mix-card dd { margin: 0; }
.tag-m { background: var(--pink); color: var(--ink); }
.tag-l { background: var(--blue); color: #fff; }

/* Offer */
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(28px, 4vw, 48px); border-radius: 28px; overflow: hidden; }
.offer-col { padding: clamp(24px, 3vw, 40px); }
.offer-col h3 { font-size: 1.5rem; font-weight: 700; }
.offer-col ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 18px; }
.offer-col li { line-height: 1.5; }
.offer-col strong { display: block; font-family: var(--display); font-size: 1.1rem; }
.col-m { background: var(--pink); color: var(--ink); }
.col-both { background: var(--both); color: #fff; }
.col-l { background: var(--blue); color: #fff; }

/* Lately */
.case { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: center; margin-top: clamp(40px, 6vw, 80px); }
.case.flip .case-art { order: 2; }
.case-text h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; max-width: 22ch; }
.case-text p { margin-top: 14px; color: var(--ink-soft); max-width: 54ch; }
.case-art { border-radius: 28px; min-height: 280px; display: grid; place-items: center; padding: 28px; }
.art-code { background: var(--pink); }
.mini-card { background: #fff; border-radius: 18px; padding: 22px; width: min(280px, 100%); display: grid; gap: 12px; box-shadow: 0 18px 30px -18px rgba(23, 18, 58, 0.5); transform: rotate(-3deg); }
.mini-title { font: 700 1.15rem/1 var(--display); }
.mini-input { border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; font: 600 1.05rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.12em; }
.mini-btn { background: var(--ink); color: #fff; border-radius: 999px; padding: 11px; text-align: center; font-weight: 600; font-size: 0.95rem; }
.art-redesign { background: var(--wash); grid-template-columns: 1fr 1fr; gap: 18px; place-items: stretch; }
.art-redesign > div { background: #fff; border-radius: 14px; padding: 14px; min-height: 200px; }
.before { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-content: start; opacity: 0.75; transform: rotate(-2deg); }
.before i { display: block; height: 40px; background: #cfcbe0; border-radius: 3px; }
.after { display: grid; gap: 10px; align-content: start; box-shadow: 0 18px 30px -18px rgba(23, 18, 58, 0.5); transform: rotate(2deg); }
.after b { display: block; height: 92px; border-radius: 10px; background: linear-gradient(120deg, var(--pink) 0 50%, var(--blue) 50% 100%); }
.after i { display: block; height: 12px; border-radius: 6px; background: var(--ink); }
.after i.short { width: 60%; background: #cfcbe0; }
.after span { display: block; width: 84px; height: 26px; border-radius: 999px; background: var(--sun); }
.art-flow { background: var(--blue); }
.art-flow ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: min(260px, 100%); }
.art-flow li { background: #fff; border-radius: 999px; padding: 11px 18px; font: 600 1rem/1 var(--display); position: relative; }
.art-flow li + li::before { content: ""; position: absolute; left: 30px; top: -10px; width: 2px; height: 10px; background: #fff; }
.art-flow li.you { background: var(--sun); margin-left: 34px; }

/* Steps */
.steps { border-top: 1px solid var(--line); }
.steps-list { list-style: none; counter-reset: step; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps-list li { counter-increment: step; }
.steps-list li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--sun); font: 700 1.2rem/1 var(--display); margin-bottom: 16px;
}
.steps-list p { margin-top: 8px; color: var(--ink-soft); }

/* Us */
.us { background: var(--wash); max-width: none; }
.us > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(28px, 4vw, 48px); }
.person { background: #fff; border-radius: 28px; padding: clamp(24px, 3vw, 40px); }
.avatar { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font: 700 1.6rem/1 var(--display); margin-bottom: 20px; }
.p-m .avatar { background: var(--pink); color: var(--ink); }
.p-l .avatar { background: var(--blue); color: #fff; }
.person h3 { font-size: 1.8rem; font-weight: 700; }
.role { color: var(--both); font-weight: 600; margin-top: 4px; }
.person p:not(.role):not(.does) { margin-top: 14px; color: var(--ink-soft); }
.does { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; }
.where { margin-top: 28px; font: 500 1.2rem/1.4 var(--display); }

/* Contact */
.contact { position: relative; text-align: center; padding: clamp(72px, 11vw, 160px) var(--gutter); overflow: hidden; isolation: isolate; }
.contact-art { position: absolute; inset: 0; margin: auto; width: min(760px, 120%); height: auto; z-index: -1; opacity: 0.16; }
.contact h2 { max-width: none; font-size: clamp(2.2rem, 5.5vw, 4.4rem); }
.contact p { margin-top: 16px; color: var(--ink-soft); font-size: 1.15rem; }
.mail {
  display: inline-block; margin-top: 28px; font: 700 clamp(1.6rem, 5vw, 3.4rem)/1.1 var(--display); letter-spacing: -0.02em;
  text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 0.09em; text-underline-offset: 0.14em;
  overflow-wrap: anywhere;
}
.mail:hover { text-decoration-color: var(--blue); }

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 24px var(--gutter); border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft);
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
}
.small-mark { font-size: 1.15rem; color: var(--ink); }

@media (max-width: 900px) {
  .hero, .mix-body, .case, .people { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 520px; margin: 0 auto; width: 100%; }
  .case.flip .case-art { order: 0; }
  .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mix-card > p { min-height: 0; }
}
@media (max-width: 560px) {
  .top nav a:not(.nav-cta) { display: none; }
  .steps-list { grid-template-columns: minmax(0, 1fr); }
  .mix-card dl div { grid-template-columns: 84px 1fr; }
  .art-redesign { grid-template-columns: 1fr 1fr; padding: 18px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .venn-hero .c-m, .venn-hero .c-l { animation: none; }
  .btn { transition: none; }
}
