/* The public homepage starts with a single column and expands when space permits. */
.landing {
  --bg: oklch(15% .012 240);
  --surface: oklch(20% .014 240);
  --border: oklch(30% .016 240);
  --paper: oklch(86% .035 78);
  --portal: oklch(78% .10 200);
  --container: 1200px;
  --gutter: 20px;
  --radius: 12px;
}
html[data-theme="light"] .landing {
  --bg: oklch(97% .009 85);
  --surface: oklch(100% .003 85);
  --border: oklch(86% .015 85);
  --paper: oklch(38% .05 70);
  --portal: oklch(46% .09 220);
}
.landing .section { padding-block: clamp(56px, 8vw, 100px); }
.landing .section + .section { border-top: 0; }
.landing h2 { margin-bottom: 20px; font-size: clamp(32px, 5vw, 50px); font-weight: 650; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.landing h3 { letter-spacing: -.025em; }
.landing .eyebrow { font-family: var(--font-body); font-size: 11px; line-height: 1.7; letter-spacing: .13em; color: var(--muted); }
.landing .btn { white-space: normal; text-align: center; }
.landing .btn-primary { color: oklch(12% .015 240); }
html[data-theme="light"] .landing .btn-primary { color: white; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 100; transform: translateY(-160%); padding: 12px 20px; border-radius: 8px; background: var(--fg); color: var(--bg); }
.skip-link:focus { transform: translateY(0); }
.landing .topnav-inner { min-height: 72px; gap: 8px; }
.landing .logo { gap: 3px; font-size: 13px; white-space: nowrap; }
.brand-mark { width: 20px; height: 20px; flex: 0 0 auto; }
.landing .topnav-inner > nav { display: none; }
.landing .lang-switch { display: none; }
.landing .nav-toggle { display: flex; }
.landing .theme-switch { margin-inline: auto 0; }
.landing .theme-switch-track { width: 52px; }
.landing .theme-switch-input:checked + .theme-switch-label .theme-switch-thumb { transform: translateX(22px); }

.landing .hero { min-height: auto; padding-top: 50px; padding-bottom: 36px; overflow: visible; background: none; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.hero-copy { min-width: 0; }
.landing .hero-title { margin-bottom: 24px; font-size: clamp(44px, 8vw, 76px); font-weight: 680; line-height: 1.04; letter-spacing: -.055em; overflow-wrap: anywhere; text-wrap: balance; }
.landing .hero-title > span { display: block; color: var(--fg); }
.landing .hero-title .hero-next { margin-top: 6px; font-family: var(--font-hand-ui); font-size: 1.14em; font-weight: 500; letter-spacing: -.03em; color: var(--paper); }
.landing .lead { max-width: 38ch; margin-inline: 0; margin-bottom: 28px; font-size: 17px; line-height: 1.7; }
.landing .hero-cta { justify-content: flex-start; align-items: center; gap: 16px; }
.landing .hero-cta .btn { width: auto; }
.hero-login-link { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.hero-login-link:hover { color: var(--fg); }
.hero-visual { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 24px 24px 8px 8px; background: oklch(12% .013 240); box-shadow: 0 16px 52px oklch(5% .01 240 / .15); }
.hero-visual img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-visual figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 18px 20px; color: oklch(90% .012 230); border-top: 1px solid oklch(32% .02 230); font-size: 12px; }
.visual-caption { color: oklch(73% .018 230); }
.visual-film-link { text-decoration: underline; text-underline-offset: 4px; }

.landing .quotes-section { padding-block: 40px 24px; }
.landing .quotes-block { position: relative; max-width: 860px; padding: 32px 12px 20px; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; background: transparent; }
.landing .quotes-eyebrow { margin-bottom: 20px; }
.landing .quotes-viewport { min-height: 140px; }
.landing .quote-text { font-family: Georgia, serif; font-size: clamp(18px, 2.3vw, 25px); line-height: 1.6; }
.landing .quote-author { font-family: var(--font-body); font-size: 11px; letter-spacing: .1em; }
.landing .quote-mark { color: var(--paper); font-size: 1.45em; }
.landing .quotes-nav { margin-top: 20px; gap: 8px; }
.landing .quotes-dots { gap: 0; }
.landing .quotes-status { font-size: 13px; }

.about-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.about-portrait { width: 180px; margin: 0; }
.about-portrait img { display: block; width: 100%; height: auto; border-radius: 110px 110px 12px 12px; background: white; }
.about-portrait figcaption { margin-top: 14px; font-family: var(--font-hand-ui); font-size: 20px; color: var(--muted); text-align: center; }
.about-copy { max-width: 600px; }
.about-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.8; }
.about-copy .section-lead { font-size: 21px; color: var(--fg) !important; }
.text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--fg); font-size: 14px; text-decoration: underline; text-underline-offset: 6px; }
.text-link:hover { color: var(--accent); }
.handwritten { font-family: var(--font-hand-ui); font-weight: 500; color: var(--paper); }
.landing .film-section { position: relative; background: linear-gradient(180deg, transparent, color-mix(in oklch, var(--portal) 5%, var(--bg)) 22%, color-mix(in oklch, var(--portal) 5%, var(--bg)) 78%, transparent); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 28px; }
.section-heading h2 { max-width: 16ch; }
.section-intro { max-width: 40ch; color: var(--muted); line-height: 1.75; }
.film-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: #071016; }
.film-poster, .film-poster > img, .film-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.film-poster { position: relative; }
.film-frame video { animation: fadeIn .2s ease-out; }
.film-play { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; border: 0; border-radius: inherit; background: linear-gradient(0deg, #07101666, transparent 75%); color: white; }
.film-play:focus-visible { outline-offset: -5px; }
.play-symbol { display: grid; place-items: center; width: clamp(50px, 9vw, 82px); height: clamp(50px, 9vw, 82px); border-radius: 50%; background: oklch(97% .012 85); color: #152b34; box-shadow: 0 6px 30px #0004; transition: transform .2s ease; }
.play-symbol svg { width: 26px; height: 26px; margin-left: 3px; }
.play-label { display: inline-flex; gap: 10px; align-items: center; padding: 6px 14px; border-radius: 30px; background: #06121de6; font-size: 13px; }
.play-duration { color: #a9c0ca; font-variant-numeric: tabular-nums; }
.film-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.media-status { margin-top: 12px; font-size: 13px; color: var(--muted); }
.media-status.is-error { color: var(--error); }
.model-feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 56px; }
.model-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in oklch, var(--surface) 80%, var(--bg)); }
.model-stage > img { width: 100%; height: 100%; display: block; object-fit: cover; }
#model-mount { position: absolute; inset: 0; }
.model-stage model-viewer { display: block; width: 100%; height: 100%; }
.model-copy { align-self: center; }
.model-copy h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; margin-bottom: 14px; }
.model-copy > p:not(.eyebrow) { max-width: 42ch; color: var(--muted); line-height: 1.7; }
.model-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.model-copy .model-footnote, .model-help { margin-top: 16px; font-size: 12px; }

.story-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.story-card { min-width: 0; display: block; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); transition: border-color .18s ease, box-shadow .18s ease; }
.story-image { overflow: hidden; aspect-ratio: 4 / 3; }
.story-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .2s ease; }
.story-copy { padding: 24px; }
.story-copy h3 { margin-bottom: 8px; font-family: var(--font-hand-ui); font-size: 35px; font-weight: 600; }
.story-copy p { min-height: 3.1em; margin-bottom: 20px; color: var(--muted); font-size: 15px; }
.story-link { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.stories-note { margin-top: 22px; font-size: 13px; color: var(--muted); }
.landing .login-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.landing .login-card { padding: 28px; box-shadow: 0 8px 24px oklch(5% .01 240 / .08); }
.landing .login-copy h2 { max-width: 16ch; }
.landing .login-copy p { max-width: 40ch; }
.landing .pagefoot { padding-block: 36px; text-align: left; }
.footer-layout { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: center; }
.footer-brand { font-size: 15px; font-weight: 700; color: var(--fg); }
.footer-brand span { color: var(--accent); }
.footer-layout p { margin-top: 8px; margin-bottom: 20px; font-size: 12px; }
.footer-layout small { font-size: 11px; }
.footer-lang-options { display: flex; gap: 8px; }
.footer-lang-options button { min-width: 44px; min-height: 44px; padding: 8px; background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; font-size: 12px; }
.footer-lang-options button[aria-pressed="true"] { color: var(--fg); border-color: var(--accent); }

@media (min-width: 360px) {
  .landing .topnav-inner { gap: 10px; }
  .landing .logo { gap: 5px; font-size: 14px; }
  .brand-mark { width: 25px; height: 25px; margin-right: 3px; }
}
@media (min-width: 600px) {
  .landing { --gutter: 32px; }
  .landing .logo { font-size: 16px; }
  .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .story-copy { padding: 20px; }
  .about-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 40px; }
}
@media (min-width: 900px) {
  .landing .hero { padding-top: 76px; padding-bottom: 54px; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .landing .hero-title { font-size: clamp(52px, 5.5vw, 70px); }
  .hero-visual { transform: rotate(1.5deg); }
  .hero-visual figcaption { padding-inline: 24px; }
  .about-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 88px; max-width: 1020px; }
  .about-portrait { width: 260px; }
  .section-heading { grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr); gap: 64px; align-items: end; }
  .section-intro { margin-bottom: 20px; }
  .model-feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr); gap: 64px; }
  .landing .login-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 88px; }
  .landing .login-card { padding: 36px; }
}
@media (min-width: 1024px) {
  .landing .topnav-inner { min-height: 80px; gap: 24px; }
  .landing .topnav-inner > nav { display: flex; order: 1; margin-left: auto; gap: 22px; }
  .landing .theme-switch { order: 2; margin-inline: 0; }
  .landing .lang-switch { display: flex; order: 3; }
  .landing .nav-toggle { display: none; }
  .landing .logo { font-size: 17px; }
  .brand-mark { width: 30px; height: 30px; }
}
@media (hover: hover) and (pointer: fine) {
  .story-card:hover { border-color: color-mix(in oklch, var(--accent) 55%, var(--border)); box-shadow: 0 8px 28px oklch(5% .01 240 / .09); }
  .story-card:hover img { transform: scale(1.02); }
  .film-play:hover .play-symbol { transform: scale(1.06); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: homepageEnter .45s ease-out both; }
  .hero-visual { animation: homepageEnter .5s .08s ease-out backwards; }
  @keyframes homepageEnter { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .story-card img, .hero-visual { transform: none; }
}
