/* ─────────────────────────────────────────────────────────────────────────
   project.meowport.cn · the public front door of Meowport Studio's project previews
   Tokens, type, capsule buttons, controls and line art follow styles.css on
   meowport.cn / studio.meowport.cn: the four palettes (Lilac, Clay, Sage,
   Print), light and dark through light-dark(), Nunito where the system has
   no rounded face, strokes 9 / 6 with round caps, drawn in the text colour.
   ───────────────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light dark;
  --paper: #F4F1F8; --paper-2: #ECE6F4; --paper-3: #F7F4FB; --card: #FFFFFF; --ink: #211C2B; --ink-2: #6B6479; --ink-3: #968CA6; --ink-3-text: #6B6378;
  --line: rgba(33,28,43,.08); --line-2: rgba(33,28,43,.14); --primary: #6E5DA8; --primary-2: #5C4D93; --primary-soft: #EFEAF9; --on-primary: #F4F1F8; --accent: #7E6428; --shadow-c: rgba(33,28,43,.12);
  --shadow: 0 1px 2px var(--shadow-c), 0 10px 32px -8px var(--shadow-c);
  --shadow-lg: 0 2px 4px var(--shadow-c), 0 24px 56px -16px var(--shadow-c);
  --r-control: 12px; --r-field: 18px; --r-card: 24px;
  --font: ui-rounded, "Nunito", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Noto Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
:root[data-mode="light"] { color-scheme: light; }
:root[data-mode="dark"] { color-scheme: dark; }
@supports (color: light-dark(#000, #fff)) {
  :root { --paper: light-dark(#F4F1F8, #131019); --paper-2: light-dark(#ECE6F4, #0D0B12); --paper-3: light-dark(#F7F4FB, #262031); --card: light-dark(#FFFFFF, #1E1A27); --ink: light-dark(#211C2B, #F2EEF8); --ink-2: light-dark(#6B6479, #ADA4BE); --ink-3: light-dark(#968CA6, #766E84); --ink-3-text: light-dark(#6B6378, #8F889B); --line: light-dark(rgba(33,28,43,.08), rgba(255,255,255,.08)); --line-2: light-dark(rgba(33,28,43,.14), rgba(255,255,255,.14)); --primary: light-dark(#6E5DA8, #B6A4E8); --primary-2: light-dark(#5C4D93, #A693DC); --primary-soft: light-dark(#EFEAF9, rgba(150,131,210,.18)); --on-primary: light-dark(#F4F1F8, #131019); --accent: light-dark(#7E6428, #E0BE6B); --shadow-c: light-dark(rgba(33,28,43,.12), rgba(0,0,0,.35)); }
  [data-theme="clay"] { --paper: light-dark(#F7F1EA, #191310); --paper-2: light-dark(#EFE6DB, #100B09); --paper-3: light-dark(#FBF6F0, #2E241D); --card: light-dark(#FFFFFF, #241B16); --ink: light-dark(#2C2118, #F6EEE6); --ink-2: light-dark(#766556, #C2AE9D); --ink-3: light-dark(#9C8C7C, #897868); --ink-3-text: light-dark(#736457, #9C8C7D); --line: light-dark(rgba(44,33,24,.08), rgba(255,255,255,.08)); --line-2: light-dark(rgba(44,33,24,.14), rgba(255,255,255,.14)); --primary: light-dark(#A0552F, #E0997A); --primary-2: light-dark(#8A4826, #D08868); --primary-soft: light-dark(#F6EBE2, rgba(204,131,95,.18)); --on-primary: light-dark(#F7F1EA, #191310); --accent: light-dark(#4E6B56, #9CBBA3); --shadow-c: light-dark(rgba(44,33,24,.12), rgba(0,0,0,.35)); }
  [data-theme="sage"] { --paper: light-dark(#EEF3F1, #101715); --paper-2: light-dark(#E2EAE7, #0A0F0D); --paper-3: light-dark(#F4F8F6, #212C28); --card: light-dark(#FFFFFF, #19221F); --ink: light-dark(#19251F, #EAF2EE); --ink-2: light-dark(#5C6E66, #A2B4AD); --ink-3: light-dark(#84958D, #6C7E77); --ink-3-text: light-dark(#5B6A63, #869690); --line: light-dark(rgba(25,37,31,.08), rgba(255,255,255,.08)); --line-2: light-dark(rgba(25,37,31,.14), rgba(255,255,255,.14)); --primary: light-dark(#33685D, #7FBDAE); --primary-2: light-dark(#2A574E, #6FAE9F); --primary-soft: light-dark(#DCEAE5, rgba(92,155,141,.18)); --on-primary: light-dark(#EEF3F1, #101715); --accent: light-dark(#8A6228, #DBB173); --shadow-c: light-dark(rgba(25,37,31,.12), rgba(0,0,0,.35)); }
  [data-theme="print"] { --paper: light-dark(#F7F6F1, #090A0A); --paper-2: light-dark(#ECEAE3, #050606); --paper-3: light-dark(#F3F2EC, #1D2021); --card: light-dark(#FFFFFB, #141617); --ink: light-dark(#161615, #F4F4EF); --ink-2: light-dark(#575650, #C5C4BC); --ink-3: light-dark(#908E86, #888983); --ink-3-text: light-dark(#696862, #888983); --line: light-dark(rgba(22,22,21,.11), rgba(244,244,239,.1)); --line-2: light-dark(rgba(22,22,21,.18), rgba(244,244,239,.17)); --primary: light-dark(#1E1E1C, #E8E6DD); --primary-2: light-dark(#050505, #D6D3CA); --primary-soft: light-dark(#E4E2DA, rgba(232,230,221,.14)); --on-primary: light-dark(#F7F6F1, #090A0A); --accent: light-dark(#706A5D, #A8AAA4); --shadow-c: light-dark(rgba(22,22,21,.1), rgba(0,0,0,.42)); }
}
:root:lang(zh-Hant) { --font: ui-rounded, "Nunito", -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", system-ui, sans-serif; }
:root:lang(ja) { --font: ui-rounded, "Nunito", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; }
:root:lang(ko) { --font: ui-rounded, "Nunito", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; }

/* ── base ── */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html.i18n-pending body { visibility: hidden; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
:where(h1, h2, h3, p, figure) { margin: 0; }
:where(button) { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 28px; }
.skip { position: absolute; z-index: 300; top: -100px; inset-inline-start: 16px; padding: 10px 14px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 700; }
.skip:focus { top: 16px; outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── buttons: the site's capsules ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; max-width: 100%; padding: 13px 22px; border: 0; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.25; text-align: center; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary:hover { background: var(--primary-2); box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--primary) 80%, transparent); }
.btn-ghost { background: var(--primary-soft); color: var(--primary); }
.btn-ghost:hover { background: color-mix(in srgb, var(--primary) 22%, var(--card)); }
.btn-lg { padding: 16px 28px; font-size: 16.5px; }

/* ── header: brand + language + appearance, nothing else ── */
.nav { position: relative; z-index: 100; padding-top: env(safe-area-inset-top); }
.nav-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.mark { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: var(--on-primary); }
.mark svg { display: block; width: 24px; height: auto; }
.brand .en { color: var(--ink-3-text); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.ctl { position: relative; }
.ctl-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 600; font-size: 13px; line-height: 1.2; cursor: pointer; box-shadow: 0 1px 2px var(--shadow-c); transition: background .2s, box-shadow .2s; }
.ctl-btn:hover, .ctl-btn[aria-expanded="true"] { background: var(--paper-3); box-shadow: var(--shadow); }
.ctl-btn svg { width: 16px; height: 16px; flex: none; color: var(--ink-2); }
.lang-current, .theme-current { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctl-panel { position: absolute; z-index: 200; top: calc(100% + 8px); inset-inline-end: 0; padding: 8px; background: var(--card); color: var(--ink); border-radius: var(--r-field); box-shadow: var(--shadow-lg); }
.ctl-panel[hidden] { display: none; }
.ctl-panel:not([hidden]) { animation: ml-pop .18s ease-out; }
.lang-panel { width: min(360px, calc(100vw - 32px)); }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; max-height: min(60vh, 460px); overflow: auto; overscroll-behavior: contain; }
.lang-opt { padding: 8px 11px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font-size: 14px; font-weight: 500; line-height: 1.3; text-align: start; cursor: pointer; }
.lang-opt:hover { background: var(--paper-2); color: var(--ink); }
.lang-opt.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.lang-opt:focus-visible, .theme-opt:focus-visible { outline-offset: -2px; }
.theme-panel { min-width: 236px; max-width: calc(100vw - 32px); }
.theme-row { display: flex; flex-wrap: wrap; gap: 6px; }
.theme-row + .theme-row { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.theme-opt { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1.5px solid transparent; border-radius: 999px; background: none; color: var(--ink-2); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.theme-opt:hover { background: var(--paper-2); color: var(--ink); }
.theme-opt[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary); }
.theme-swatch { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 1px solid var(--line-2); }
.theme-swatch-lilac { background: linear-gradient(135deg, #B6A4E8, #6E5DA8); }
.theme-swatch-clay { background: linear-gradient(135deg, #E0997A, #C2785A); }
.theme-swatch-sage { background: linear-gradient(135deg, #7FBDAE, #4F8A7E); }
.theme-swatch-print { background: linear-gradient(135deg, #E8E6DD, #1E1E1C); }

/* ── hero: the message beside a small harbour scene ── */
.hero { flex: 1 0 auto; display: flex; align-items: center; padding-block: clamp(20px, 5vh, 56px) clamp(32px, 6vh, 72px); }
.hero:focus { outline: none; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; gap: 40px; }
.hero-copy { text-align: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 13px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.hero h1 { font-size: clamp(40px, 4.6vw, 62px); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; overflow-wrap: anywhere; }
.lead { max-width: 540px; margin-top: 20px; font-size: clamp(16.5px, 1.4vw, 18.5px); line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.access { display: flex; align-items: flex-start; gap: 14px; max-width: 540px; margin-top: 26px; padding: 18px 20px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); text-align: start; }
.access .gi { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r-control); background: var(--primary-soft); color: var(--primary); }
.access .gi svg { width: 20px; height: 20px; }
.access p { font-size: 15.5px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.hero-actions .btn { white-space: normal; }
.hint { max-width: 540px; margin-top: 20px; font-size: 13.5px; line-height: 1.6; color: var(--ink-3-text); text-wrap: pretty; }
.hint-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.addr { display: inline-flex; flex-wrap: wrap; max-width: 100%; padding: 4px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-family: var(--mono); font-size: 12.5px; line-height: 1.5; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.addr .ph { color: var(--primary); font-style: italic; }
.hero-art { display: flex; justify-content: center; direction: ltr; }
.hero-art svg { display: block; width: 100%; max-width: 540px; height: auto; color: var(--ink); }

/* ── the scene: draw-on line art (pathLength 1 lets one timing fit all strokes) ── */
.mw-scene * { stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.mw-scene .dot { stroke: none; fill: currentColor; }
.mw-scene .thin { opacity: .45; }
.mw-scene .fill-card { fill: var(--card); }
.mw-scene .fill-soft { fill: color-mix(in srgb, var(--primary) 26%, var(--card)); }
.mw-scene .ink-tint { stroke: var(--primary); }
.mw-scene .dot.tint { fill: var(--primary); }
.mw-scene .dot.tint-soft { fill: color-mix(in srgb, var(--primary) 26%, var(--card)); }
.mw-scene .fill-pri { fill: var(--primary); }
.mw-scene .face { fill: none; }
.mw-scene .dot.lamp { fill: color-mix(in srgb, var(--accent) 70%, var(--card)); transform-box: fill-box; transform-origin: 50% 50%; }
.mw-scene .dot.halo { fill: var(--accent); fill-opacity: .16; }
/* draw order: water, deck, the page, the lamp, the cat, the gull */
.g-water { --d: 0s } .g-dock { --d: .15s } .g-page { --d: .35s } .g-lamp { --d: .85s } .g-cat { --d: 1.15s } .g-gull { --d: 1.6s }
/* only with JavaScript: start hidden, play once the page is ready (no script = the finished drawing) */
.js .mw-scene .dr { stroke-dasharray: 1 2; stroke-dashoffset: 1.05; }
.js .mw-scene .dot, .js .mw-scene .face { opacity: 0; }
.js:not(.ready) .rise { opacity: 0; }
.ready .rise { animation: rv-rise .7s cubic-bezier(.2,.7,.2,1) backwards; }
.ready .rise.r2 { animation-delay: .08s } .ready .rise.r3 { animation-delay: .16s } .ready .rise.r4 { animation-delay: .24s } .ready .rise.r5 { animation-delay: .32s } .ready .rise.r6 { animation-delay: .4s }
.ready .mw-scene .dr { animation: mw-draw 1.1s ease-in-out forwards var(--d, 0s); }
.ready .mw-scene .det { animation-delay: calc(var(--d, 0s) + .45s); }
.ready .mw-scene .dot { animation: mw-fade .5s ease-out forwards calc(var(--d, 0s) + .5s); }
.ready .mw-scene .dr.drift { animation: mw-draw 1.1s ease-in-out forwards var(--d, 0s), lp-drift1 10s linear 2.4s infinite; }
.ready .mw-scene .dr.drift2 { animation: mw-draw 1.1s ease-in-out forwards var(--d, 0s), lp-drift2 10s linear 2.4s infinite; }
.ready .mw-scene .face { animation: mw-fade .45s ease-out forwards calc(var(--d, 0s) + 1.05s); }
.ready .mw-scene .dot.halo { animation: mw-fade .6s ease-out forwards calc(var(--d, 0s) + .2s), lp-beam 6.6s ease-in-out 3s infinite; }
.ready .mw-scene .dot.lamp { animation: mw-fade .5s ease-out forwards calc(var(--d, 0s) + .4s), lp-glow 6.6s ease-in-out 3s infinite; }
/* afterwards, only small idle loops: the water drifts, the lamp breathes, the gull glides */
.ready .g-gull { animation: lp-gull 9s ease-in-out 3.2s infinite; }

/* ── footer: who we are, one note, the filing numbers ── */
.foot { border-top: 1px solid var(--line); padding-block: 18px calc(18px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3-text); }
.foot-brand { font-weight: 700; color: var(--ink-2); }
.foot-note { flex: 1 1 260px; text-wrap: pretty; }
.icp { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; direction: ltr; }
.icp a { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; color: inherit; }
.icp a:hover { color: var(--ink); text-decoration: underline; }
.icp img { display: block; width: 14px; height: auto; }

@keyframes ml-pop { from { opacity: 0; transform: translateY(-4px); } }
@keyframes rv-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes mw-draw { to { stroke-dashoffset: 0; } }
@keyframes mw-fade { to { opacity: 1; } }
@keyframes lp-drift1 { to { transform: translateX(-80px); } }
@keyframes lp-drift2 { to { transform: translateX(100px); } }
@keyframes lp-beam { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes lp-glow { 0%, 30%, 70%, 100% { transform: scale(1); } 50% { transform: scale(1.45); } }
@keyframes lp-gull { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-16px, 7px); } }

@media (max-width: 980px) {
  .hero { align-items: flex-start; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-copy { text-align: center; }
  .lead, .access, .hint { margin-inline: auto; }
  .hero-actions, .hint-ex { justify-content: center; }
  .hero-art svg { max-width: 440px; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 20px; }
  .nav-in { gap: 10px; }
  .brand .en { display: none; }
  .lang-current, .theme-current { display: none; }
  .ctl-btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .ctl-btn svg { width: 18px; height: 18px; color: var(--ink); }
  /* narrow screens: the panels become a sheet under the bar */
  .ctl-panel { position: fixed; top: calc(68px + env(safe-area-inset-top)); inset-inline: 12px; width: auto; max-height: calc(100vh - 96px); overflow: auto; }
  .lang-panel { width: auto; }
  .lang-grid { max-height: none; }
  .lang-opt, .theme-opt { min-height: 44px; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .access { padding: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-art svg { max-width: 340px; }
  .foot-in { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (pointer: coarse) { .ctl-btn { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .js .mw-scene .dr { stroke-dashoffset: 0; }
  .js .mw-scene .dot, .js .rise { opacity: 1; }
}
