/* Motion Flow Performance — design system
   Field: oat beige, matched to the current live site's rgb(236,228,218). Ink: deep umber.
   Whisper: warm clay (earth-tone family, same as the brand's existing look).
   Display: Marcellus (inscriptional roman — the residence-lobby plaque). Body: Hanken Grotesk.
   The harbour-light clock nudges --warmth through the Sydney day (see main.js). */

:root {
  --ink: oklch(23% 0.028 50);
  --ink-soft: oklch(31% 0.032 48);
  --porcelain: oklch(92% 0.017 80);
  --porcelain-2: oklch(89% 0.02 78);
  --bone: oklch(87% 0.022 76);
  --sage: oklch(68% 0.085 58);
  --eucalypt: oklch(42% 0.085 45);
  --eucalypt-deep: oklch(34% 0.078 42);
  --line: color-mix(in oklab, var(--ink) 14%, transparent);
  --line-dark: color-mix(in oklab, var(--bone) 18%, transparent);
  --warmth: 0; /* 0 dawn-cool … 1 dusk-warm, set by the harbour clock */
  --grade: sepia(calc(0.12 + 0.1 * var(--warmth))) saturate(0.68) contrast(1.04) brightness(1.02);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --z-header: 40;
  --z-menu: 50;
  font-size: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hanken Grotesk", "Noto Sans TC", "Noto Sans KR", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(color-mix(in oklab, var(--porcelain) 100%, oklch(94% 0.03 70) calc(var(--warmth) * 26%)),
                    color-mix(in oklab, var(--porcelain) 100%, oklch(94% 0.03 70) calc(var(--warmth) * 26%)));
  background-color: var(--porcelain);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Marcellus", "Noto Serif TC", "Noto Serif KR", serif; font-weight: 400; line-height: 1.12; letter-spacing: 0; margin: 0 0 0.5em; text-wrap: balance; }
/* Korean: never break inside a word (native convention); overflow-wrap as a long-word safety net */
:lang(ko) body, [lang="ko"] { word-break: keep-all; overflow-wrap: break-word; }
p { max-width: 68ch; text-wrap: pretty; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.display { font-size: clamp(2.5rem, 6.2vw, 4.9rem); }
.title { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.subtitle { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.55; }
.small { font-size: 0.86rem; }

.container { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.grade { filter: var(--grade); }

/* ---------- header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.5rem, 4vw, 3rem);
  color: var(--bone);
}
.site-header.on-light { color: var(--ink); position: relative; border-bottom: 1px solid var(--line); }
.brand-mark { display: inline-flex; align-items: center; padding: 8px 0; }
.brand-mark img { height: 34px; width: auto; }
.site-header.on-light .brand-mark img { filter: brightness(0.32) sepia(0.2) hue-rotate(80deg); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.site-nav a { text-decoration: none; font-size: 0.95rem; letter-spacing: 0.01em; opacity: 0.92; padding: 0.55rem 0; }
.site-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.nav-apply {
  border: 1px solid currentColor; padding: 0.72rem 1.5rem !important; border-radius: 0;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.site-header:not(.on-light) .nav-apply:hover { background: var(--bone); color: var(--ink); }
.site-header.on-light .nav-apply:hover { background: var(--ink); color: var(--bone); }
.nav-login { opacity: 0.75 !important; }
.menu-btn { display: none; }

/* language toggle — stays visible on mobile: language switching is a primary
   action for this audience (WeChat/KakaoTalk arrivals on phones) */
.lang-toggle { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.9rem; letter-spacing: 0.01em; }
.lang-toggle a { text-decoration: none; opacity: 0.65; padding: 0.55rem 0.15rem; }
.lang-toggle a:hover { opacity: 1; }
.lang-toggle a[aria-current="true"] { opacity: 1; border-bottom: 1px solid currentColor; font-weight: 600; }
.lang-toggle .sep { opacity: 0.4; }
.lang-toggle-mobile { display: none; }
@media (max-width: 900px) {
  .site-nav .lang-toggle { display: none; }
  .lang-toggle-mobile { display: flex; align-items: center; margin-left: auto; margin-right: 0.8rem; gap: 0.55rem; font-size: 0.85rem; }
  .lang-toggle-mobile a { white-space: nowrap; }
  .lang-toggle-mobile .sep { display: none; }
}
/* small phones: shrink the header pieces so logo + toggle + menu never collide */
@media (max-width: 380px) {
  .site-header { padding-inline: 1.1rem; }
  .brand-mark img { height: 28px; }
  .lang-toggle-mobile { font-size: 0.8rem; gap: 0.4rem; margin-right: 0.6rem; }
  .menu-btn { padding: 0.55rem 0.85rem; }
}

/* full-screen menu (mobile) */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: none; border: 1px solid currentColor; color: inherit;
    font: inherit; font-size: 0.9rem; padding: 0.6rem 1.1rem; cursor: pointer;
    white-space: nowrap; flex-shrink: 0;
  }
  .menu-open .site-menu { transform: translateY(0); visibility: visible; }
}
.site-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--ink); color: var(--bone);
  transform: translateY(-102%); visibility: hidden;
  transition: transform 0.6s var(--ease-out), visibility 0.6s;
  display: flex; flex-direction: column; padding: 1.4rem clamp(1.5rem, 4vw, 3rem) 3rem;
  overflow-y: auto;
}
.site-menu .menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8vh; }
.site-menu .menu-top img { height: 30px; }
.site-menu nav { display: flex; flex-direction: column; gap: 0.4rem; }
.site-menu nav a {
  font-family: "Marcellus", serif; font-size: clamp(1.9rem, 8vw, 2.8rem);
  text-decoration: none; padding: 0.45rem 0; border-bottom: 1px solid var(--line-dark);
}
.site-menu .menu-langs { margin-top: auto; opacity: 0.85; font-size: 1rem; display: flex; gap: 0.6rem; }
.site-menu .menu-langs a { color: inherit; text-decoration: none; opacity: 0.65; }
.site-menu .menu-langs a:hover, .site-menu .menu-langs a[aria-current="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.site-menu .menu-langs .sep { opacity: 0.35; }
.close-btn { background: none; border: 1px solid currentColor; color: inherit; font: inherit; font-size: 0.9rem; padding: 0.6rem 1.1rem; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(94vh, 900px);
  background: var(--ink); color: var(--bone);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  overflow: hidden;
}
.hero-copy {
  align-self: center;
  padding: clamp(7rem, 16vh, 11rem) clamp(1.5rem, 5vw, 4.5rem) clamp(3rem, 8vh, 5rem);
  max-width: 46rem;
}
.hero-copy h1 { color: oklch(96% 0.006 150); }
.hero-kicker { font-size: 1rem; letter-spacing: 0.02em; opacity: 0.85; margin: 0 0 1.6rem; }
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.25rem); opacity: 0.88; line-height: 1.6; max-width: 34rem; }
.hero-media { position: relative; min-height: 420px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, oklch(23% 0.028 50 / 0.72) 0%, transparent 24%),
    linear-gradient(90deg, var(--ink) 0%, transparent 26%);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2.4rem; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; min-height: 58vw; }
  .hero-media::after { background: linear-gradient(0deg, var(--ink) 0%, transparent 30%); }
  .hero-copy { padding-top: 1.4rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  min-height: 60px; padding: 0.9rem 2.2rem;
  font: inherit; font-size: 1.02rem; letter-spacing: 0.01em; text-decoration: none;
  border: 1px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.btn:hover { background: var(--ink); color: var(--porcelain); }
.btn-solid { background: var(--ink); color: var(--porcelain); }
.btn-solid:hover { background: var(--eucalypt-deep); border-color: var(--eucalypt-deep); color: oklch(97% 0.006 150); }
.on-dark .btn, .btn.on-dark { border-color: var(--bone); color: var(--bone); }
.on-dark .btn:hover, .btn.on-dark:hover { background: var(--bone); color: var(--ink); }
.on-dark .btn-solid, .btn-solid.on-dark { background: var(--bone); color: var(--ink); }
.on-dark .btn-solid:hover, .btn-solid.on-dark:hover { background: var(--sage); border-color: var(--sage); color: var(--ink); }
.btn-note { font-size: 0.88rem; opacity: 0.72; }

/* ---------- sections ---------- */
section { padding-block: clamp(4rem, 10vh, 7.5rem); }
.section-tight { padding-block: clamp(3rem, 7vh, 5rem); }
.statement p { font-family: "Marcellus", serif; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.4; max-width: 30ch; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; } }

/* method */
.method-list { list-style: none; margin: 0; padding: 0; }
.method-list li {
  display: grid; grid-template-columns: 5.5rem 14rem 1fr; gap: 1.5rem; align-items: baseline;
  padding: 1.9rem 0; border-top: 1px solid var(--line);
}
.method-list li:last-child { border-bottom: 1px solid var(--line); }
.method-no { font-family: "Marcellus", serif; font-size: 2.2rem; color: var(--eucalypt); }
.method-name { font-family: "Marcellus", serif; font-size: 1.45rem; }
.method-list p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 760px) { .method-list li { grid-template-columns: 3.4rem 1fr; gap: 0.5rem 1.5rem; } .method-list p { grid-column: 2; } }

/* services index */
.services-index { list-style: none; margin: 0; padding: 0; }
.services-index li { border-top: 1px solid var(--line); }
.services-index li:last-child { border-bottom: 1px solid var(--line); }
.services-index .svc {
  display: grid; grid-template-columns: minmax(12rem, 22rem) 1fr; gap: 1.4rem;
  padding: 1.55rem 0; align-items: baseline;
}
.svc-name { font-family: "Marcellus", serif; font-size: clamp(1.3rem, 2vw, 1.7rem); }
.svc-note { color: var(--ink-soft); font-size: 1rem; max-width: 58ch; }
@media (max-width: 700px) { .services-index .svc { grid-template-columns: 1fr; gap: 0.3rem; } }

/* settings (three ways to train) */
.setting { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.8rem, 4.5vw, 4.5rem); align-items: center; padding-block: clamp(2.4rem, 6vh, 4.2rem); }
.setting + .setting { border-top: 1px solid var(--line); }
.setting.flip .setting-media { order: 2; }
@media (max-width: 860px) { .setting, .setting.flip { grid-template-columns: 1fr; } .setting.flip .setting-media { order: 0; } }
.setting-media { position: relative; overflow: hidden; }
.setting-media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.setting-eyebrow { font-size: 0.92rem; color: var(--eucalypt); margin: 0 0 0.6rem; }
.setting h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.setting p { color: var(--ink-soft); }
.text-link {
  display: inline-block; margin-top: 1.1rem; font-size: 1.02rem; text-decoration: none;
  border-bottom: 1px solid var(--ink); padding: 0.35rem 0 0.25rem;
}
.text-link:hover { color: var(--eucalypt-deep); border-color: var(--eucalypt-deep); }

/* letter / about */
.letter { background: var(--porcelain-2); }
.letter-body p { font-family: "Marcellus", serif; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.5; max-width: 34ch; }
.letter-sign { font-family: "Marcellus", serif; font-size: 1.3rem; margin-top: 2rem; }
.letter-cred { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.98rem; max-width: 46ch; }
.portrait-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 4.6; }
/* crop stays above the shirt logo */
.portrait-frame img { width: 100%; height: 205%; object-fit: cover; object-position: 50% 10%; }

/* dark band CTA */
.band { background: var(--ink); color: var(--bone); }
.band h2 { color: oklch(96% 0.006 150); }
.band .lede { opacity: 0.85; }
.availability { font-size: 0.98rem; color: var(--sage); margin-bottom: 1.2rem; }

/* app showcase */
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); align-items: start; width: 100%; max-width: 560px; margin-inline: auto; }
.phone { border: 1px solid var(--line); border-radius: 30px; overflow: hidden; background: #0d0d0d; box-shadow: 0 30px 70px -35px oklch(19% 0.028 50 / 0.55); aspect-ratio: 9 / 17.2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.phone:nth-child(2) { margin-top: 3.2rem; }

/* pricing (online coaching) */
.blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; border: 1px solid var(--line); }
.block { padding: 2.2rem 1.9rem 2.4rem; }
.block + .block { border-left: 1px solid var(--line); }
@media (max-width: 820px) { .block + .block { border-left: 0; border-top: 1px solid var(--line); } }
.block-term { font-family: "Marcellus", serif; font-size: 1.5rem; margin-bottom: 0.4rem; }
.block-price { font-size: 2rem; font-weight: 300; }
.block-week { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.2rem; }
.block-note { font-size: 0.92rem; color: var(--ink-soft); margin-top: 1rem; }
.block.preferred { background: var(--ink); color: var(--bone); }
.block.preferred .block-week, .block.preferred .block-note { color: color-mix(in oklab, var(--bone) 75%, transparent); }

/* checklist rows */
.plain-list { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.plain-list li { padding: 0.85rem 0 0.85rem 1.9rem; position: relative; border-top: 1px solid var(--line); max-width: 62ch; }
.plain-list li:last-child { border-bottom: 1px solid var(--line); }
.plain-list li::before { content: "—"; position: absolute; left: 0; color: var(--eucalypt); }
.on-dark .plain-list li { border-color: var(--line-dark); }

/* ---------- application form ---------- */
.apply-wrap { max-width: 720px; margin-inline: auto; }
.steps-indicator { display: flex; gap: 0.5rem; margin: 2.2rem 0 2.8rem; }
.steps-indicator span { flex: 1; height: 2px; background: var(--line); }
.steps-indicator span.done { background: var(--eucalypt); }
fieldset.step { border: 0; padding: 0; margin: 0; }
fieldset.step[hidden] { display: none; }
legend { font-family: "Marcellus", serif; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.4rem; padding: 0; }
.step-note { color: var(--ink-soft); margin-top: 0; margin-bottom: 2rem; }
.field { margin-bottom: 1.6rem; }
.field label { display: block; font-size: 1rem; margin-bottom: 0.5rem; }
.field .optional { color: var(--ink-soft); font-size: 0.86rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 56px; padding: 0.85rem 1rem;
  font: inherit; color: var(--ink);
  background: oklch(99% 0.003 150); border: 1px solid color-mix(in oklab, var(--ink) 32%, transparent); border-radius: 0;
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--eucalypt); outline-offset: 2px;
}
.choice-grid { display: grid; gap: 0.8rem; }
.choice {
  display: flex; gap: 0.9rem; align-items: flex-start;
  border: 1px solid color-mix(in oklab, var(--ink) 28%, transparent);
  padding: 1.1rem 1.2rem; cursor: pointer; transition: border-color 0.25s, background 0.25s;
}
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--porcelain-2); }
.choice input { margin-top: 0.3rem; width: 1.15rem; height: 1.15rem; accent-color: var(--eucalypt-deep); }
.choice .c-name { font-weight: 600; }
.choice .c-note { font-size: 0.92rem; color: var(--ink-soft); }
.confirm-row { display: flex; gap: 0.8rem; align-items: flex-start; padding: 1rem 1.2rem; border: 1px solid color-mix(in oklab, var(--ink) 28%, transparent); margin-bottom: 1.6rem; }
.confirm-row input { margin-top: 0.25rem; width: 1.15rem; height: 1.15rem; accent-color: var(--eucalypt-deep); flex-shrink: 0; }
.confirm-row label { font-size: 0.98rem; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 640px) { .duo { grid-template-columns: 1fr; } }
.step-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.6rem; }
.step-nav .btn[data-back] { border-color: color-mix(in oklab, var(--ink) 40%, transparent); }
.form-error { color: oklch(45% 0.14 25); font-size: 0.95rem; margin-top: 1rem; display: none; }
.form-error.show { display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--bone); padding: clamp(3.5rem, 8vh, 6rem) 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img.f-logo { height: 40px; width: auto; margin-bottom: 1.2rem; }
.site-footer h4 { font-family: "Hanken Grotesk", sans-serif; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; margin: 0 0 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer a { text-decoration: none; opacity: 0.88; display: inline-block; padding: 0.35rem 0; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer-langs { margin-top: 1.4rem; opacity: 0.6; font-size: 0.9rem; }
.colophon { margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 0.85rem; opacity: 0.55; }

/* ---------- reveals (enhance visible default) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out); }
html.js .reveal-img.in { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .reveal-img { opacity: 1; transform: none; clip-path: none; transition: opacity 0.3s linear; }
  .site-menu { transition: none; }
  * { animation: none !important; }
}

/* page hero (interior pages) */
.page-hero { background: var(--ink); color: var(--bone); padding: clamp(8rem, 18vh, 12rem) 0 clamp(3rem, 8vh, 5rem); }
.page-hero h1 { color: oklch(96% 0.006 150); font-size: clamp(2.3rem, 5vw, 4rem); }
.page-hero .lede { opacity: 0.85; max-width: 56ch; }
.page-hero .hero-kicker { color: var(--sage); opacity: 1; }

/* body strong — residents-only group class (One Sydney Harbour) */
.booking-frame { margin-top: clamp(2.6rem, 6vh, 4.5rem); border-top: 1px solid var(--line); padding-top: clamp(2rem, 4.5vh, 3.2rem); }
.booking-frame .subtitle { margin-bottom: 0.35rem; }
.booking-note { color: var(--ink-soft); font-size: 1rem; margin: 0 0 1.6rem; max-width: 60ch; }
.booking-frame iframe { width: 100%; min-height: 720px; border: 0; background: oklch(99% 0.003 150); }
