/* Isle of Tides — official site. Palette and type follow the game's brand kit (docs/brand). */
:root {
  --cream: #fff7e6;
  --cream-2: #fdecc9;
  --sand: #f6dca6;
  --ink: #163f37;
  --ink-soft: #3f6159;
  --teal: #1e6b5c;
  --teal-2: #2a8a76;
  --sea-1: #8be6e2;
  --sea-2: #34bfd3;
  --sea-3: #1683bf;
  --deep: #0c3d66;
  --night: #0a2747;
  --coral: #f07d4a;
  --coral-2: #e2643a;
  --sun: #ffc24b;
  --white: #ffffff;

  --font-display: "Fredoka", "ZCOOL QingKe HuangYou", "PingFang SC", system-ui, sans-serif;
  --font-body: "Nunito", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -20px rgba(12, 61, 102, 0.45);
  --shadow-soft: 0 10px 30px -14px rgba(22, 63, 55, 0.35);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal-2); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; color: var(--ink); }
h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; }
p { margin: 0 0 1em; }

/* Chinese mode: the display face is the brand's ZCOOL QingKe HuangYou */
html[data-lang="zh"] h1, html[data-lang="zh"] h2, html[data-lang="zh"] h3, html[data-lang="zh"] h4,
html[data-lang="zh"] .btn, html[data-lang="zh"] .tide-now__phase {
  font-family: "ZCOOL QingKe HuangYou", var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
}
html[data-lang="zh"] body { line-height: 1.8; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(820px + var(--gutter) * 2); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* ───────── Buttons ───────── */
.btn {
  --bg: var(--teal); --fg: #fff; --edge: #134b40;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 600 17px/1 var(--font-display); letter-spacing: 0.01em;
  box-shadow: 0 4px 0 var(--edge), 0 10px 24px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--edge), 0 14px 28px -10px rgba(0, 0, 0, 0.5); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--edge), 0 6px 14px -8px rgba(0, 0, 0, 0.45); }
.btn--lg { padding: 17px 28px; font-size: 19px; }
.btn--sm { padding: 10px 16px; font-size: 15px; box-shadow: 0 3px 0 var(--edge); }
.btn--steam { --bg: var(--coral); --edge: #b84a24; }
.btn--steam:hover { --bg: var(--coral-2); }
.btn--coral { --bg: var(--coral); --edge: #b84a24; }
.btn--glass { --bg: rgba(255, 255, 255, 0.18); --edge: rgba(0, 0, 0, 0.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1.5px solid rgba(255, 255, 255, 0.55); }
.btn--outline { --bg: transparent; --fg: var(--teal); --edge: transparent; border: 2px solid var(--teal); box-shadow: none; }
.btn--outline:hover { --bg: var(--teal); --fg: #fff; box-shadow: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--teal); font: 700 14px/1.2 var(--font-body); }
.pill--soft { background: rgba(10, 39, 71, 0.45); color: #fff; }
.tag { font: 700 12px/1 var(--font-body); font-style: normal; background: var(--sun); color: #5c3a00; padding: 4px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; letter-spacing: 0.02em; }

/* ───────── Nav ───────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background 0.3s, box-shadow 0.3s; }
.nav.is-solid { background: rgba(255, 247, 230, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 24px -16px rgba(22, 63, 55, 0.6); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: none; }
.nav__brand img { width: 40px; height: 40px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.nav__name { font: 700 20px/1 var(--font-display); text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.nav.is-solid .nav__brand { color: var(--ink); }
.nav.is-solid .nav__name { text-shadow: none; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { color: #fff; text-decoration: none; font: 600 16px/1 var(--font-display); padding: 10px 12px; border-radius: 999px; text-shadow: 0 1px 8px rgba(0,0,0,.3); transition: background 0.2s; }
.nav__links a:hover { background: rgba(255, 255, 255, 0.18); }
.nav.is-solid .nav__links a { color: var(--ink); text-shadow: none; }
.nav.is-solid .nav__links a:hover { background: var(--cream-2); }
html[data-lang="zh"] .nav__links a { font-family: "ZCOOL QingKe HuangYou", var(--font-display); font-weight: 400; font-size: 17px; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.6); background: rgba(255,255,255,.12); color: #fff; cursor: pointer; font: 700 14px/1 var(--font-body); }
.nav.is-solid .lang { color: var(--ink); border-color: rgba(22,63,55,.25); background: transparent; }
.lang__opt { opacity: 0.55; }
.lang__sep { opacity: 0.4; }
html[data-lang="en"] .lang__opt[data-for="en"], html[data-lang="zh"] .lang__opt[data-for="zh"] { opacity: 1; }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255,255,255,.16); cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.nav__burger span { display: block; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.nav.is-solid .nav__burger { background: var(--cream-2); }
.nav.is-solid .nav__burger span { background: var(--ink); }

/* ───────── Hero ───────── */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--sea-3); }
.hero__media, .hero__shade { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  background:
    linear-gradient(90deg, rgba(9, 45, 80, 0.72) 0%, rgba(9, 45, 80, 0.42) 38%, rgba(9, 45, 80, 0) 66%),
    linear-gradient(180deg, rgba(9, 45, 80, 0.45) 0%, rgba(9, 45, 80, 0) 22%, rgba(9, 45, 80, 0) 70%, rgba(9, 45, 80, 0.35) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + 30px); padding-bottom: 150px; }
.hero__logo { margin: 0 0 18px; max-width: min(560px, 92%); animation: bob 6s ease-in-out infinite; }
.hero__logo img { width: 100%; height: auto; filter: drop-shadow(0 8px 24px rgba(4, 30, 56, 0.45)); }
.hero__tagline { margin: 0 0 16px; display: flex; flex-direction: column; gap: 4px; }
.hero__tagline-zh { font: 400 clamp(30px, 4vw, 44px)/1.1 "ZCOOL QingKe HuangYou", var(--font-display); letter-spacing: 0.06em; color: #fff; text-shadow: 0 3px 0 rgba(12, 61, 102, 0.55), 0 8px 24px rgba(0,0,0,.3); }
.hero__tagline-en { font: 600 clamp(20px, 2.2vw, 26px)/1.25 var(--font-display); color: var(--sun); text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hero__lead { max-width: 520px; font-size: clamp(17px, 1.5vw, 19px); color: rgba(255,255,255,.94); text-shadow: 0 1px 10px rgba(0,0,0,.35); margin-bottom: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

.tide-now {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 130px;
  display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px;
  border-radius: 20px; background: rgba(255, 247, 230, 0.94); color: var(--ink);
  box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.tide-now__gauge { position: relative; width: 52px; height: 52px; border-radius: 50%; background: #e9f6f8; border: 3px solid #fff; box-shadow: inset 0 0 0 2px rgba(22, 131, 191, .25); overflow: hidden; flex: none; }
.tide-now__water { position: absolute; left: -30%; right: -30%; bottom: 0; height: 50%; background: linear-gradient(180deg, var(--sea-2), var(--sea-3)); border-radius: 42% 46% 0 0; transition: height 1.2s ease; animation: slosh 5s ease-in-out infinite; }
.tide-now__text { display: flex; flex-direction: column; line-height: 1.25; }
.tide-now__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
html[data-lang="zh"] .tide-now__label { text-transform: none; letter-spacing: 0.04em; }
.tide-now__phase { font: 700 20px/1.2 var(--font-display); }
.tide-now__next { font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ───────── Waves ───────── */
.wave { position: absolute; left: 0; width: 100%; pointer-events: none; }
.wave--bottom { bottom: -1px; height: clamp(60px, 9vw, 120px); z-index: 2; }
.wave--bottom .wave__back { fill: var(--cream); opacity: 0.45; animation: drift 9s ease-in-out infinite alternate; }
.wave--bottom .wave__front { fill: var(--cream); }
.wave--top { top: -1px; height: clamp(40px, 6vw, 80px); }
.wave--footer { top: -79px; height: 80px; fill: var(--deep); }

/* ───────── Sections ───────── */
.section { position: relative; padding: clamp(64px, 8vw, 110px) 0; }
.section__head { text-align: center; max-width: 780px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section__lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-soft); margin: 16px auto 0; max-width: 680px; }
.eyebrow { display: inline-block; margin: 0 0 12px; padding: 6px 14px; border-radius: 999px; background: #dff4ef; color: var(--teal); font: 700 14px/1.2 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow--light { background: rgba(255,255,255,.14); color: var(--sea-1); }
html[data-lang="zh"] .eyebrow { text-transform: none; font: 800 14px/1.2 var(--font-body); letter-spacing: 0.12em; }

/* Tides */
.tides { padding-top: clamp(40px, 6vw, 80px); }
.compare { position: relative; margin: 0 auto; max-width: var(--wrap); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sea-2); user-select: none; touch-action: pan-y; }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.35); pointer-events: none; }
.compare__handle span { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.compare__handle span::before, .compare__handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -7px; border: 7px solid transparent; }
.compare__handle span::before { left: 7px; border-right-color: var(--sea-3); }
.compare__handle span::after { right: 7px; border-left-color: var(--sea-3); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__tag { position: absolute; top: 16px; padding: 7px 14px; border-radius: 999px; font: 700 15px/1 var(--font-display); color: #fff; pointer-events: none; }
.compare__tag--l { left: 16px; background: rgba(22, 131, 191, .9); }
.compare__tag--r { right: 16px; background: rgba(214, 160, 76, .92); }
.compare__hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: rgba(10, 39, 71, .6); color: #fff; font-size: 14px; font-weight: 700; pointer-events: none; transition: opacity .4s; }
.compare.is-touched .compare__hint { opacity: 0; }

.cycle { max-width: var(--wrap); margin: clamp(36px, 5vw, 56px) auto 0; }
.cycle__bar { position: relative; display: flex; height: 46px; border-radius: 999px; overflow: visible; box-shadow: var(--shadow-soft); }
.cycle__seg { flex: var(--w); display: flex; align-items: center; justify-content: center; color: #fff; font: 600 15px/1 var(--font-display); white-space: nowrap; overflow: hidden; }
.cycle__seg:first-child { border-radius: 999px 0 0 999px; }
.cycle__seg:nth-child(4) { border-radius: 0 999px 999px 0; }
.cycle__seg--high { background: var(--sea-3); }
.cycle__seg--fall { background: linear-gradient(90deg, var(--sea-3), #d9b77a); }
.cycle__seg--low { background: #d9b77a; color: #4f3a12; }
.cycle__seg--rise { background: linear-gradient(90deg, #d9b77a, var(--sea-3)); }
.cycle__now { position: absolute; top: -12px; bottom: -12px; left: 0; width: 3px; margin-left: -1.5px; background: var(--coral); border-radius: 2px; transition: left 1s linear; }
.cycle__now span { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); background: var(--coral); color: #fff; font: 700 12px/1 var(--font-body); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.cycle__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.cycle__card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-soft); }
.cycle__card h3 { font-size: 22px; margin: 10px 0 8px; }
.cycle__card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.cycle__icon { font-size: 30px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--cream-2); }

/* Features */
.features { background: linear-gradient(180deg, #d8f3f1 0%, #c3ecf0 100%); }
.features .wave--top { fill: var(--cream); }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: clamp(56px, 8vw, 100px); }
.feature:last-child { margin-bottom: 0; }
.feature--flip .feature__media { order: 2; }
.feature__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transform: rotate(-1.2deg); background: var(--sea-2); }
.feature--flip .feature__media { transform: rotate(1.2deg); }
.feature__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s ease; }
.feature__media:hover img { transform: scale(1.04); }
.feature__num { font: 700 15px/1 var(--font-display); color: var(--coral); letter-spacing: .12em; margin-bottom: 10px; }
.feature__body h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.feature__body > p { color: var(--ink-soft); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.lords { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lords li { background: rgba(255,255,255,.75); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; border: 1.5px solid rgba(255,255,255,.9); }
.lords strong { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
html[data-lang="zh"] .lords strong { font-family: "ZCOOL QingKe HuangYou", var(--font-display); font-weight: 400; font-size: 19px; }
.lords span { font-size: 14px; color: var(--ink-soft); }
.lords li:last-child { background: var(--night); color: #fff; border-color: var(--night); }
.lords li:last-child strong { color: var(--sun); }
.lords li:last-child span { color: rgba(255,255,255,.75); }

/* Story */
.story { background: radial-gradient(1200px 600px at 80% 0%, #164d7f 0%, var(--night) 60%); color: #e8f3f7; }
.story h2, .story h3, .story h4 { color: #fff; }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.story__text p { color: rgba(232, 243, 247, .86); }
.story__text h2 { margin-bottom: 20px; font-size: clamp(28px, 3.6vw, 42px); }
.story__media { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.story__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.letter { margin: 26px 0 0; padding: 22px 24px; border-radius: 6px 22px 22px 22px; background: #fbf1da; color: #5a4325; transform: rotate(-0.8deg); box-shadow: 0 16px 30px -14px rgba(0,0,0,.6); background-image: repeating-linear-gradient(180deg, transparent 0 30px, rgba(150, 110, 60, .14) 30px 31px); }
.letter p { color: #5a4325 !important; font-size: 17px; font-style: italic; margin-bottom: 8px; }
html[data-lang="zh"] .letter p { font-style: normal; font-family: "Kaiti SC", "STKaiti", "KaiTi", var(--font-body); font-size: 18px; }
.letter cite { font-size: 14px; font-style: normal; font-weight: 700; color: #8a6a3f; }
.folk__title { text-align: center; margin: clamp(64px, 8vw, 96px) 0 30px; font-size: clamp(24px, 2.6vw, 32px); }
.folk { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.folk__card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 22px 18px; text-align: center; transition: transform .25s, background .25s; }
.folk__card:hover { transform: translateY(-6px); background: rgba(255,255,255,.12); }
.folk__avatar { width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.folk__card h4 { font-size: 19px; font-weight: 600; }
.folk__card h4 small { display: block; font: 400 15px/1.4 "ZCOOL QingKe HuangYou", var(--font-body); color: var(--sea-1); margin-top: 2px; }
html[data-lang="zh"] .folk__card h4 small { display: none; }
.folk__role { font-size: 13px; font-weight: 700; color: var(--sun); margin: 6px 0 10px; }
.folk__line { font-size: 15px; color: rgba(232, 243, 247, .8); margin: 0; }

/* Promise */
.promise__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.promise__card { background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-soft); border-top: 6px solid var(--sea-2); }
.promise__card:nth-child(2) { border-top-color: var(--sun); }
.promise__card:nth-child(3) { border-top-color: var(--coral); }
.promise__card:nth-child(4) { border-top-color: var(--teal-2); }
.promise__icon { font-size: 34px; display: block; margin-bottom: 12px; }
.promise__card h3 { font-size: 21px; margin-bottom: 8px; }
.promise__card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* Media */
.media { background: var(--cream-2); }
.trailer { position: relative; display: block; width: 100%; max-width: var(--wrap); margin: 0 auto 28px; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); background: var(--night); }
.trailer img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; opacity: .85; transition: transform .8s, opacity .3s; }
.trailer:hover img { transform: scale(1.03); opacity: 1; }
.trailer__play { position: absolute; top: 50%; left: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(240,125,74,.3), 0 14px 30px rgba(0,0,0,.4); transition: transform .2s; }
.trailer__play svg { width: 40px; height: 40px; fill: #fff; margin-left: 5px; }
.trailer:hover .trailer__play { transform: scale(1.08); }
.trailer__label { position: absolute; left: 20px; bottom: 18px; padding: 7px 14px; border-radius: 999px; background: rgba(10,39,71,.7); color: #fff; font: 600 15px/1 var(--font-display); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: var(--wrap); margin: 0 auto; }
.gallery button { position: relative; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: var(--sea-2); box-shadow: var(--shadow-soft); }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s; }
.gallery button:hover img { transform: scale(1.06); }
.gallery span { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(10,39,71,.7); color: #fff; font-size: 13px; font-weight: 700; opacity: 0; transform: translateY(6px); transition: .25s; }
.gallery button:hover span, .gallery button:focus-visible span { opacity: 1; transform: none; }

/* Community */
.community { background: linear-gradient(180deg, #e3f6f2 0%, #d3efe9 100%); }
.community .wave--top { fill: var(--cream-2); }
.steps { list-style: none; padding: 0; margin: 0 auto clamp(36px, 5vw, 52px); max-width: var(--wrap); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; background: rgba(255,255,255,.7); padding: 18px 20px; border-radius: var(--radius); }
.steps__n { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font: 700 20px/1 var(--font-display); }
.steps strong { font: 600 19px/1.2 var(--font-display); }
html[data-lang="zh"] .steps strong { font-family: "ZCOOL QingKe HuangYou", var(--font-display); font-weight: 400; font-size: 21px; }
.steps span:last-child { font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
.com__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; max-width: var(--wrap); margin: 0 auto; align-items: start; }
.idea { background: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.idea h3 { margin-bottom: 18px; }
.idea__types { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.idea__types legend { font-weight: 800; font-size: 15px; margin-bottom: 10px; padding: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 14px; border-radius: 999px; background: var(--cream); border: 1.5px solid #eadbb8; font-weight: 700; font-size: 15px; transition: .15s; }
.chip:hover span { border-color: var(--teal-2); }
.chip input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.field { position: relative; display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; flex: 1; min-width: 0; }
.field__label { font-weight: 800; font-size: 15px; }
.field__label em { font-style: normal; font-weight: 600; color: #8b9c97; font-size: 13px; margin-left: 4px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--cream); border: 1.5px solid #eadbb8; border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color .15s, background .15s; }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal-2); background: #fff; box-shadow: 0 0 0 4px rgba(42, 138, 118, .15); }
.field.is-error input, .field.is-error textarea { border-color: var(--coral-2); }
.field__count { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: #8b9c97; font-weight: 700; pointer-events: none; }
.field__row { display: flex; gap: 14px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); margin: 4px 0 18px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }
.check.is-error span { color: var(--coral-2); }
.idea__captcha { margin-bottom: 16px; }
.idea__submit { width: 100%; }
.idea__status { margin: 14px 0 0; font-weight: 700; font-size: 15px; min-height: 1.4em; text-align: center; }
.idea__status.is-ok { color: var(--teal-2); }
.idea__status.is-err { color: var(--coral-2); }
.idea.is-sent { text-align: center; padding-top: 48px; padding-bottom: 48px; }
.idea__thanks { font-size: 60px; display: block; margin-bottom: 8px; animation: bob 3s ease-in-out infinite; }

.board { background: var(--night); color: #e8f3f7; border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow); min-height: 100%; }
.board h3 { color: #fff; }
.board__lead { color: rgba(232,243,247,.7); font-size: 15px; margin: 6px 0 16px; }
.board__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.board__tabs button { border: 0; background: rgba(255,255,255,.08); color: #e8f3f7; padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; }
.board__tabs button[aria-selected="true"] { background: var(--sun); color: #4a3000; }
.board__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-height: 520px; overflow: auto; }
.board__item { background: rgba(255,255,255,.07); border-radius: var(--radius-sm); padding: 14px 16px; }
.board__item h4 { color: #fff; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
html[data-lang="zh"] .board__item h4 { font-family: var(--font-body); font-weight: 800; }
.board__item p { font-size: 14px; color: rgba(232,243,247,.75); margin: 0 0 8px; }
.board__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; color: rgba(232,243,247,.6); }
.status { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status--considering { background: #2b5f8c; color: #d6ecff; }
.status--planned { background: var(--sun); color: #4a3000; }
.status--added { background: var(--teal-2); color: #fff; }
.board__empty { text-align: center; padding: 34px 10px; color: rgba(232,243,247,.75); }
.board__empty span { font-size: 46px; display: block; margin-bottom: 10px; }

/* FAQ */
.faq__list { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font: 600 19px/1.35 var(--font-display); position: relative; }
html[data-lang="zh"] .faq summary { font-family: var(--font-body); font-weight: 800; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; font: 700 22px/1 var(--font-body); color: var(--teal); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); }

/* Follow + press */
.follow { background: linear-gradient(180deg, var(--cream) 0%, #bfe8f0 100%); padding-bottom: clamp(110px, 14vw, 170px); }
.follow__card { position: relative; max-width: 760px; margin: 0 auto; text-align: center; background: linear-gradient(135deg, var(--sea-3), var(--deep)); color: #fff; border-radius: 32px; padding: clamp(48px, 7vw, 72px) clamp(20px, 5vw, 60px) clamp(36px, 5vw, 52px); box-shadow: var(--shadow); }
.follow__emblem { width: 120px; height: 120px; position: absolute; top: -60px; left: 50%; margin-left: -60px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.3)); animation: bob 5s ease-in-out infinite; }
.follow__card h2 { color: #fff; margin: 20px 0 10px; }
.follow__card p { color: rgba(255,255,255,.88); }
.follow__cta { display: flex; justify-content: center; margin: 24px 0 8px; }
.follow__soon { font-weight: 700; color: var(--sun) !important; margin: 10px 0 0; }
.socials { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 0; margin: 20px 0 0; }
.socials:empty { display: none; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; transition: background .2s; }
.socials a:hover { background: rgba(255,255,255,.26); }
.press { max-width: var(--wrap); margin: clamp(48px, 7vw, 80px) auto 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; background: rgba(255,255,255,.75); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-soft); }
.press dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 16px 0 0; }
.press dl div { border-bottom: 1px dashed #d8c9a5; padding-bottom: 8px; }
.press dt { font-size: 13px; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.press dd { margin: 2px 0 0; font-weight: 700; }
.press__dl { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; }
.press__dl p { color: var(--ink-soft); }
.press__contact { margin-top: 12px; font-size: 15px; }

/* Footer */
.footer { position: relative; background: var(--deep); color: rgba(255,255,255,.75); padding: 30px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.footer__inner img { width: 240px; height: auto; }
.footer__tag { font-weight: 700; color: var(--sea-1); margin: 0; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer__links a { color: #fff; text-decoration: none; font-weight: 700; }
.footer__links a:hover { text-decoration: underline; }
.footer__fine { font-size: 13px; margin: 6px 0 0; }

/* Modals */
.modal { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); width: 100%; overflow: visible; }
.modal::backdrop { background: rgba(6, 22, 40, .86); backdrop-filter: blur(4px); }
.modal video, .modal img { width: 100%; border-radius: var(--radius-sm); box-shadow: 0 30px 80px rgba(0,0,0,.6); background: #000; }
.modal figure { margin: 0; }
.modal figcaption { color: #fff; text-align: center; margin-top: 12px; font-weight: 700; }
.modal__close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.modal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; z-index: 2; }
.modal__nav--prev { left: 10px; }
.modal__nav--next { right: 10px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.feature.reveal.is-in .feature__media { transition: transform .8s ease; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes drift { from { transform: translateX(-2%); } to { transform: translateX(2%); } }
@keyframes slosh { 0%, 100% { transform: translateX(-6%) rotate(-2deg); } 50% { transform: translateX(6%) rotate(2deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .folk { grid-template-columns: repeat(3, 1fr); }
  .promise__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 2px;
    background: rgba(255, 247, 230, .98); padding: 12px var(--gutter) 20px; margin: 0;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.4);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .nav__links a { color: var(--ink) !important; text-shadow: none !important; padding: 14px 12px; font-size: 18px; }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.is-open { background: rgba(255, 247, 230, .98); }
  .nav.is-open .nav__brand, .nav.is-open .lang { color: var(--ink); }
  .nav.is-open .nav__burger span { background: var(--ink); }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__burger { display: flex; }
  .feature, .story__grid, .com__grid, .press { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .cycle__cards, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tide-now { bottom: auto; top: calc(var(--nav-h) + 10px); right: var(--gutter); padding: 8px 14px 8px 8px; }
  .tide-now__gauge { width: 40px; height: 40px; }
  .tide-now__phase { font-size: 17px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__name { display: none; }
  .btn--sm span { display: none; }
  .btn--sm { padding: 10px 12px; }
  .hero { align-items: flex-end; }
  .hero__shade { background: linear-gradient(180deg, rgba(9,45,80,.5) 0%, rgba(9,45,80,.15) 30%, rgba(9,45,80,.55) 60%, rgba(9,45,80,.85) 100%); }
  .hero__inner { padding-top: calc(var(--nav-h) + 90px); padding-bottom: 110px; }
  .hero__cta .btn { width: 100%; }
  .tide-now__label { display: none; }
  .cycle__seg { font-size: 12px; }
  .cycle__seg--fall span, .cycle__seg--rise span { display: none; }
  .folk { grid-template-columns: 1fr 1fr; }
  .folk__card:last-child { grid-column: span 2; }
  .promise__grid { grid-template-columns: 1fr; }
  .lords { grid-template-columns: 1fr; }
  .field__row { flex-direction: column; gap: 0; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .press dl { grid-template-columns: 1fr; }
  .trailer img { aspect-ratio: 16 / 9; }
  .trailer__play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .compare__hint { display: none; }
  .modal__close { top: -50px; }
}
