@font-face {
  font-family: Imbue;
  src: url("assets/imbue-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Albert Sans";
  src: url("assets/albert-sans-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #101f1b;
  --ink: #f2eee3;
  --secondary: #d3d6c9;
  --accent: #e0d5af;
  --accent-ink: #1b2b23;
  --scrim: rgb(8 33 25 / 42%);
  --shade: rgb(5 14 11 / 28%);
  --control: rgb(242 238 227 / 12%);
  --font-body: "Albert Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: Imbue, "Times New Roman", serif;
  --small: 13px;
  --body: 16px;
  --gutter: clamp(24px, 3.4vw, 64px);
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }
html { background: var(--ground); }
body { margin: 0; color: var(--ink); font: 400 var(--body)/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; }
button:active { transform: scale(.96); }
button[hidden], [hidden] { display: none !important; }
::selection { color: var(--ground); background: var(--accent); }

.backdrop { position: fixed; inset: 0; overflow: hidden; background: var(--ground); }
.backdrop__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; filter: saturate(.55) hue-rotate(25deg) brightness(.8); transform: scale(1.035); }
.backdrop__scrim, .backdrop__shade { position: absolute; inset: 0; pointer-events: none; }
.backdrop__scrim { background: var(--scrim); mix-blend-mode: multiply; }
/* Neutral scrim over footage for footer readability; taste-skill-ignore */
.backdrop__shade { background: linear-gradient(180deg, rgb(0 0 0 / 10%), transparent 30%, transparent 55%, rgb(0 0 0 / 35%)); } /* taste-skill-ignore */
.backdrop::after { content: ""; position: absolute; inset: 0; background: var(--shade); }

.page { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: 680px; height: 100svh; padding: max(28px, env(safe-area-inset-top)) var(--gutter) max(30px, env(safe-area-inset-bottom)); }
.header { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 17px; min-height: 44px; }
.brand__mark { font: 400 44px/.8 var(--font-display); letter-spacing: -.07em; transform: translateY(-3px); }
.brand__domain { font-size: 15px; }
.text-button { padding: 10px 0 10px 16px; min-height: 44px; background: transparent; font-size: 14px; }
.text-button:hover, .video-credit:hover, .legal a:hover, .about-dialog__source:hover { color: var(--accent); }
.text-button:hover { transform: translateX(-3px); }

.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 58px; text-align: center; }
.hero__title-wrap { width: 100%; }
.hero__title { margin: 0; font: 400 clamp(140px, 32.8vw, 630px)/.94 var(--font-display); letter-spacing: -.035em; white-space: nowrap; }
.hero__name { display: inline-block; animation: word-arrive 1.8s var(--ease) both; }
.hero__description { margin: 30px 0 0; font-size: 17px; letter-spacing: .16em; padding-left: .16em; }
.atmosphere-button { display: inline-flex; align-items: center; gap: 17px; padding: 4px 4px 4px 16px; margin-top: 38px; min-height: 48px; background: transparent; font-size: 14px; }
.atmosphere-button__arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); transition: transform .35s var(--ease); }
.atmosphere-button:hover .atmosphere-button__arrow { transform: rotate(-40deg); }
.atmosphere-button svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; }

.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.footer__moment { display: flex; flex-direction: column; gap: 8px; }
.footer__phrase { font-size: 14px; }
.video-credit { font-size: var(--small); color: var(--secondary); width: fit-content; }
.legal { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: var(--small); color: var(--secondary); }
.legal a { display: inline-flex; align-items: center; min-height: 25px; white-space: nowrap; }
.playback { display: flex; align-items: center; justify-self: end; gap: 18px; padding-bottom: 5px; }
.playback__mood { font-size: var(--small); }
.playback__button { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--control); transition: background .25s, transform .25s; }
.playback__button:hover { background: rgb(242 238 227 / 23%); }
.playback__button svg, .dialog-close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.5; }
.playback__button .icon-pause { display: none; }
.playback__button[aria-pressed="true"] .icon-pause { display: block; }
.playback__button[aria-pressed="true"] .icon-play { display: none; }

.about-dialog { width: min(510px, calc(100% - 40px)); max-height: calc(100svh - 40px); padding: 0; border: none; color: var(--ink); background: var(--ground); }
.about-dialog::backdrop { background: rgb(3 9 7 / 65%); }
.about-dialog__content { padding: 78px 36px 40px; position: relative; }
.dialog-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; background: var(--control); border-radius: 50%; }
.about-dialog h2 { font: 400 24px/1.4 var(--font-body); margin: 0 0 24px; }
.about-dialog p { font-size: var(--body); line-height: 1.9; margin: 0 0 36px; }
.about-dialog__source { font-size: var(--small); color: var(--secondary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.enter { animation: arrive 1.25s var(--ease) both; }
.brand { animation-delay: .05s; }
.about-button { animation-delay: .12s; }
.hero__description { animation-delay: .26s; }
.atmosphere-button { animation-delay: .36s; }
.footer__moment { animation-delay: .48s; }
.legal { animation-delay: .54s; }
.playback { animation-delay: .6s; }
@keyframes arrive { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes word-arrive { from { opacity: 0; transform: translateY(22px) scale(.965); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes atmosphere-change { 0% { opacity: .35; } 100% { opacity: 1; } }
.atmosphere-changing { animation: atmosphere-change 1s var(--ease); }

html[data-atmosphere="amber"] { --ground: #29231d; --accent-ink: #312b20; --scrim: rgb(38 25 12 / 20%); --shade: rgb(20 13 6 / 21%); }
html[data-atmosphere="amber"] .backdrop__video { filter: saturate(.65) brightness(.85); }

@media (min-width: 1800px) { .hero__title { font-size: 32.8vw; } }
@media (max-width: 900px) {
  .page { padding-top: 28px; padding-bottom: 24px; }
  .hero { padding-bottom: 90px; }
  .hero__title { font-size: 34vw; }
  .footer { grid-template-columns: 1fr auto; row-gap: 24px; }
  .legal { grid-column: 1 / -1; grid-row: 2; flex-direction: row; justify-content: center; gap: 18px; }
}
@media (max-width: 540px) {
  :root { --gutter: 24px; }
  .page { min-height: 560px; padding-top: max(22px, env(safe-area-inset-top)); padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .brand { gap: 12px; }
  .brand__domain { font-size: 13px; }
  .brand__mark { font-size: 39px; }
  .text-button { font-size: 13px; }
  .hero { padding-bottom: 44px; }
  .hero__title { font-size: 34.8vw; line-height: 1; }
  .hero__description { font-size: 16px; margin-top: 25px; letter-spacing: .1em; }
  .atmosphere-button { margin-top: 29px; }
  .footer { gap: 23px 12px; }
  .footer__moment { gap: 5px; }
  .footer__phrase { font-size: 13px; }
  .video-credit { font-size: 13px; }
  .playback { gap: 12px; }
  .playback__button { width: 44px; height: 44px; }
  .legal { gap: 4px; flex-direction: column; font-size: 13px; }
  .legal a { min-height: 30px; }
  .backdrop__video { object-position: 44% center; }
  .about-dialog__content { padding: 76px 26px 32px; }
  .about-dialog h2 { font-size: 22px; }
}
@media (max-height: 620px) and (min-width: 541px) {
  .page { min-height: 0; padding-block: 20px; }
  .hero { padding-bottom: 8px; }
  .hero__title { font-size: min(24vw, 40vh); }
  .hero__description { margin-top: 12px; }
  .atmosphere-button { margin-top: 12px; }
  .footer { grid-template-columns: 1fr auto 1fr; }
  .legal { grid-column: auto; grid-row: auto; flex-direction: column; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
