/* SunFlower: gallery wall, painted flowers.
   Layout idea: warm white wall, navy ink, one cobalt painted band; colour belongs to the flowers. */
:root {
  color-scheme: light;
  --canvas: #F6F1E7;
  --canvas-deep: #EDE5D3;
  --frame: #E4DCCB;
  --ink: #14213D;
  --cobalt: #1E4FC2;
  --sun: #F5B800;
  --display: 'Fraunces', 'Songti SC', 'Noto Serif SC', 'STSong', Georgia, serif;
  --body: 'Figtree', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --nav-h: 80px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.eyebrow { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(36px, 4.2vw, 60px); line-height: 1.05; letter-spacing: -0.02em;
  text-wrap: balance;
}
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tight { padding-top: 0; }
.section .wrap, .spec .wrap { display: flex; flex-direction: column; gap: 48px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--body); font-size: 16px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--cobalt); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); min-height: 56px; padding: 0 30px; }
.btn-white:hover { color: var(--cobalt); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  min-height: var(--nav-h); padding: 10px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 12px 28px;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: box-shadow 0.3s;
}
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(20, 33, 61, 0.14); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 28px; font-weight: 500; color: var(--ink); }
.brand img { width: 52px; height: 52px; transition: transform 0.8s var(--ease); }
.brand:hover img { transform: rotate(40deg); }
.nav-links { display: flex; align-items: center; gap: 8px 32px; font-size: 16px; }
.nav-links a { position: relative; padding: 12px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; align-items: center; gap: 4px; font-size: 16px; }
.lang button {
  min-width: 44px; min-height: 44px; padding: 0 6px; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--ink); opacity: 0.6;
}
.lang button[aria-pressed="true"] { opacity: 1; font-weight: 600; }

/* 1. Hero */
.hero { overflow: hidden; }
.hero-stage { position: relative; width: 100%; aspect-ratio: 1440 / 568; margin-top: 56px; }
.hero-band {
  position: absolute; left: 0; top: 17.6%; width: 100%; height: 64.8%; max-width: none;
  object-fit: cover; object-position: left center;
}
/* The mark is two layers on one square, centred on the flower core:
   the whole flower (rays and petals) turns slowly; the core on top stays still. */
.hero-mark {
  position: absolute; left: 41.83%; top: -8.91%; width: 48.57%; aspect-ratio: 1 / 1;
  transform: translate(var(--mx, 0px), var(--my, 0px)) rotate(var(--tilt, 0deg));
  transition: transform 0.9s var(--ease);
  will-change: transform;
}
.hero-mark img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.mark-flower { animation: flower-turn 120s linear infinite; }
@keyframes flower-turn { to { transform: rotate(360deg); } }
.hero-title {
  position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%); width: 39%;
  font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5.4vw, 84px);
  line-height: 1.02; letter-spacing: -0.02em; color: #fff;
}
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px 64px; padding-top: 96px; padding-bottom: 72px; }
.hero-intro { max-width: 560px; font-size: 20px; line-height: 1.5; }
.hero-text { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.hero-note { font-size: 16px; }
.hero-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; }
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact-value { font-family: var(--display); font-size: 26px; }

/* Photo frames (placeholders until photos arrive) */
.frame {
  position: relative; overflow: hidden; background: var(--frame);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.frame-43 { aspect-ratio: 4 / 3; }
.frame-32 { aspect-ratio: 3 / 2; }
.frame-small { width: 70%; margin-top: 16px; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame-empty { border: 1.5px dashed rgba(20, 33, 61, 0.55); padding: 16px; }
.frame-note { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.4; }
.frame-note strong { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 20px; }

/* 2. Story */
.story { background: var(--canvas-deep); padding: clamp(64px, 8vw, 112px) 0; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 96px; align-items: start; }
.story-left { display: flex; flex-direction: column; gap: 28px; }
.story-left .frame { box-shadow: 0 24px 48px rgba(20, 33, 61, 0.2); background: #DDD3BD; }
.story-quote {
  font-family: var(--display); font-style: italic; font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance;
}
.story-right { display: flex; flex-direction: column; gap: 22px; max-width: 620px; font-size: 19px; line-height: 1.6; }
.story-right .frame { background: #DDD3BD; }

/* 3. Varieties. Default = strip (phones, no JS). Wide screens switch to the wheel. */
.orbit { padding-top: clamp(64px, 8vw, 112px); }
.orbit-head { width: 100%; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.orbit-controls { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.round {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.round:hover { background: var(--ink); color: #fff; }
.orbit-items { list-style: none; margin: 0; padding: 0; }
.plaque {
  width: 240px; padding: 16px 20px; background: #fff; box-shadow: 0 6px 16px rgba(20, 33, 61, 0.14);
  display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45;
}
.plaque strong { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 24px; line-height: 1.2; }

.orbit[data-mode="strip"] .orbit-ring,
.orbit[data-mode="strip"] .orbit-sun,
.orbit[data-mode="strip"] .orbit-plaque,
.orbit[data-mode="strip"] .round { display: none; }
.orbit[data-mode="strip"] .orbit-items {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px var(--pad) 32px; scroll-padding-left: var(--pad);
}
.orbit[data-mode="strip"] .orbit-item { flex: 0 0 min(78vw, 340px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 16px; }
.orbit[data-mode="strip"] .orbit-item .frame { aspect-ratio: 4 / 5; box-shadow: 0 16px 32px rgba(20, 33, 61, 0.22); }
.orbit[data-mode="strip"] .orbit-item .plaque { width: auto; align-self: flex-start; min-width: 220px; }

.orbit[data-mode="wheel"] { padding-top: 0; }
.orbit[data-mode="wheel"] .orbit-pin {
  position: sticky; top: 0; height: 100vh; min-height: 560px;
  padding-top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; overflow: hidden;
}
.orbit[data-mode="wheel"] .orbit-stage { position: relative; flex: 1 1 auto; width: 100%; max-width: 1440px; margin: 0 auto; }
.orbit[data-mode="wheel"] .orbit-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-ring circle { stroke: var(--cobalt); }
.orbit[data-mode="wheel"] .orbit-sun { position: absolute; left: 0; top: 0; max-width: none; will-change: transform; }
.orbit[data-mode="wheel"] .orbit-item { position: absolute; left: 0; top: 0; will-change: transform; cursor: pointer; }
.orbit[data-mode="wheel"] .orbit-item .frame { width: 100%; height: 100%; box-shadow: 0 20px 40px rgba(20, 33, 61, 0.28); }
.orbit[data-mode="wheel"] .orbit-item .plaque { display: none; }
.orbit[data-mode="wheel"] .orbit-item .frame-btn { display: block; width: 100%; height: 100%; }
.orbit[data-mode="wheel"] .orbit-plaque { position: absolute; left: 50%; transform: translateX(-50%); z-index: 30; }
.frame-btn { display: block; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; cursor: inherit; }

/* 4. Selection */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps .frame { margin-bottom: 10px; }
.step-n { font-family: var(--display); font-size: 20px; color: var(--cobalt); }
.steps h3 { font-family: var(--display); font-weight: 400; font-size: 30px; }
.steps p { font-size: 17px; }

/* 5. Season */
.months { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.month { display: flex; flex-direction: column; gap: 16px; }
.month h3 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 38px; line-height: 1; }
.month ul { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.month li { padding: 10px 0; border-bottom: 1px solid rgba(20, 33, 61, 0.5); font-size: 17px; }
.more { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; font-weight: 500; color: var(--cobalt); }
.more svg { transition: transform 0.3s var(--ease); }
.more:hover svg { transform: translateX(5px); }

/* 6. Spec sheet: the painted band returns */
.spec {
  padding: 72px 0; color: #fff;
  background: linear-gradient(rgba(20, 33, 61, 0.28), rgba(20, 33, 61, 0.28)), url("../assets/band.jpg") center / cover var(--cobalt);
}
.spec .spec-row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.spec p { font-size: 18px; }

/* 7. Quote form */
.quote-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 96px; align-items: start; }
.lead { font-size: 19px; max-width: 440px; }
.link { border-bottom: 1.5px solid currentColor; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 4px;
  background: #fff; font-family: var(--body); font-size: 17px; color: var(--ink);
}
.field textarea { padding: 14px 16px; resize: vertical; }
.form-end { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-status { font-size: 16px; max-width: 460px; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.footer { border-top: 1.5px solid var(--ink); padding: 48px 0; font-size: 16px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-contact { margin-left: auto; display: flex; flex-direction: column; gap: 6px; }
.footer-qr { display: flex; flex-wrap: wrap; gap: 32px; }
.qr { display: flex; flex-direction: column; gap: 6px; width: 148px; font-size: 14px; line-height: 1.4; }
.qr-box { width: 148px; height: 148px; padding: 10px; background: #fff; border: 1.5px solid var(--ink); margin-bottom: 4px; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr a, .qr strong { font-weight: 500; }

/* Brush-in reveal. Only active once JS adds .motion to <html>; everything is visible without it. */
.motion .reveal { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
.motion .reveal.is-in { clip-path: inset(0 0 0 0); }

/* Chinese */
html[lang="zh"] h2, html[lang="zh"] .story-quote { letter-spacing: 0; }
html[lang="zh"] .story-quote, html[lang="zh"] .month h3, html[lang="zh"] .plaque strong { font-style: normal; }
html[lang="zh"] .eyebrow { letter-spacing: 0.2em; }

/* Narrow screens */
@media (max-width: 1080px) {
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  :root { --nav-h: 68px; }
  body { font-size: 17px; }
  .brand { font-size: 23px; }
  .brand img { width: 42px; height: 42px; }
  .nav-actions { gap: 8px; }
  .nav .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .lang button { min-width: 38px; }
  .hero-stage { aspect-ratio: 390 / 300; margin-top: 12px; margin-bottom: 124px; }
  .hero-band { top: 20%; height: 60%; }
  .hero-mark { left: 18%; top: -2%; width: 80%; }
  .hero-title { top: calc(100% + 16px); transform: none; width: calc(100% - 2 * var(--pad)); color: var(--ink); font-size: 46px; }
  .hero-foot { padding-top: 20px; padding-bottom: 56px; }
  .frame-small { width: 100%; }
  .footer-contact { margin-left: 0; }
}

@media (max-width: 480px) {
  .nav .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark-flower { animation: none; }
  .hero-mark, .btn, .brand img { transition: none; }
  .motion .reveal { clip-path: none; transition: none; }
}
