:root {
  color-scheme: light;
  --paper: #f6f2e9;
  --ink: #25231c;
  --mute: #635f52;
  --line: #d3cbbc;
  --accent: #997433;
  --work-entry: #132532;
  --work-ground: #0e1b26;
  --about-ground: #192c3a;
  --night-ink: #eef3f6;
  --night-mute: #c0cdd7;
  --night-focus: #bce5fb;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --edge: clamp(22px, 7vw, 114px);
  --measure: 1770px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft Yahei", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button:enabled { cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #a6511a; outline-offset: 5px; }
.skip-link { position: absolute; z-index: 3; top: 12px; left: 12px; transform: translateY(-180%); border-radius: 4px; padding: 12px 16px; background: var(--paper); }
.skip-link:focus { transform: none; }
.chapter { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--edge); }
section[id] { scroll-margin-top: 20px; }

.masthead {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  min-height: 74px;
  padding: 10px var(--edge);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #fff6e7;
  border-bottom: 1px solid #fff6e739;
}
.masthead :focus-visible, .hero :focus-visible { outline-color: #f5cf85; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; justify-self: start; min-height: 44px; font-size: 15px; font-weight: 680; white-space: nowrap; }
.wordmark img { flex: none; border-radius: 5px; }
.masthead nav { display: flex; gap: clamp(18px, 4vw, 60px); }
.masthead nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font-size: 14px; font-weight: 580; }
.sign-in { justify-self: end; min-width: 78px; min-height: 44px; padding: 0 14px; border: 1px solid #fff6e77a; border-radius: 100px; background: #18161258; font-size: 14px; font-weight: 610; white-space: nowrap; }

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: min(91svh, 65vw);
  max-height: 110svh;
  color: #fff6e7;
  background: #12212e;
  overflow: hidden;
}
.hero-content {
  position: absolute;
  z-index: 1;
  inset: auto var(--edge) clamp(78px, 11svh, 141px);
}
.hero h1 {
  font-size: clamp(35px, 6.3vw, 99px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -.018em;
  word-spacing: -.015em;
  text-shadow: 0 3px 20px #071521b8;
}
.hero-title-line { display: block; }
.hero-agent {
  font-size: .97em;
  letter-spacing: -.03em;
}
.hero-link { display: inline-flex; gap: 16px; align-items: center; min-height: 47px; margin-top: clamp(17px, 3vw, 35px); padding: 0 16px; border: 1px solid #fff6e7; border-radius: 100px; color: var(--ink); background: #fff6e7; font-size: 14px; font-weight: 650; }
.hero-link span { color: var(--accent); font-size: 16px; }
.hero-media, .hero-media picture, .hero-media img, .hero-media video, .hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media { z-index: -2; }
.hero-media img, .hero-media video { object-fit: cover; object-position: center; }
.hero-media img { visibility: hidden; }
.hero-media video { opacity: 0; }
.hero.has-poster .hero-media img { visibility: visible; }
.hero.has-film .hero-media video { opacity: 1; }
.hero::after {
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, #12212ed9 0, #12212eb8 64px, transparent min(27%, 210px)),
    radial-gradient(ellipse 55% 38% at 33% 78%, #0b1d2cb3 40%, #0b1d2c78 67%, transparent),
    radial-gradient(ellipse 80% 66% at 8% 105%, #0b1c29ba, transparent 90%);
}
.hero::before {
  position: absolute;
  z-index: 0;
  inset: auto 0 0;
  height: 44px;
  content: "";
  pointer-events: none;
  background: linear-gradient(to top, var(--work-entry), transparent);
}

.apps, .about, .footer { color: var(--night-ink); }
:is(.apps, .about, .footer) :focus-visible { outline-color: var(--night-focus); }
:is(.apps, .about, .footer) ::selection { background: #bce5fb; color: #0e1b26; }
.apps {
  padding-block: clamp(56px, 6vw, 98px) clamp(62px, 7vw, 110px);
  background: linear-gradient(180deg, var(--work-entry), var(--work-ground) min(140px, 30%));
}
.apps h2, .about h2 {
  font-size: clamp(30px, 3.5vw, 54px);
  line-height: 1.1;
  font-weight: 540;
  letter-spacing: -.033em;
}
.app-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 28px);
  list-style: none;
  padding: 0;
  margin-top: clamp(22px, 3.4vw, 52px);
}
.app-gallery a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(9px, 1.3vw, 18px);
  min-height: 44px;
  padding: 14px 5px;
  border-radius: 12px;
  text-align: center;
}
.app-logo {
  width: clamp(58px, 7vw, 102px);
  height: auto;
  aspect-ratio: 1;
  flex: none;
  border-radius: 21%;
}
.app-gallery h3 {
  font-size: clamp(14px, 1.4vw, 19px);
  line-height: 1.35;
  font-weight: 560;
  letter-spacing: -.02em;
}
.app-gallery a:focus-visible h3 {
  text-decoration: underline;
  text-underline-offset: .3em;
}
.about { background: var(--about-ground); }
.about .chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: baseline;
  gap: clamp(14px, 4vw, 56px);
  padding-block: clamp(44px, 6vw, 94px);
}
.about p { max-width: 27em; font-size: clamp(17px, 1.6vw, 23px); line-height: 1.8; color: var(--night-mute); }
.footer { background: var(--work-ground); }
.footer .chapter { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-block: 18px; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--night-mute); }
.footer-actions :is(a, button) { display: inline-flex; align-items: center; min-height: 44px; }
.footer-actions button { border: 0; padding: 0; background: none; }

.privacy-dialog { width: min(460px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); padding: clamp(24px, 5vw, 42px); }
.privacy-dialog::backdrop { background: #221c13a8; }
.privacy-dialog h2 { font-size: 25px; font-weight: 690; }
.privacy-dialog p { margin-block: 13px 24px; line-height: 1.75; color: var(--mute); }
.privacy-dialog button { min-height: 44px; padding: 0 17px; border: 1px solid currentColor; border-radius: 100px; background: none; }

@media (hover: hover) and (pointer: fine) {
  .masthead nav a:hover, .footer-actions :is(a, button):hover { text-decoration: underline; text-underline-offset: .35em; }
  .sign-in:hover { background-color: #171715d6; }
  .hero-link:hover { background: #eae3d4; }
  .app-gallery a:hover h3 { text-decoration: underline; text-underline-offset: .3em; }
}
@media (prefers-reduced-motion: no-preference) {
  .apps[data-reveal] > .chapter {
    animation: works-appear 260ms var(--ease-out);
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .app-logo { transition: transform 140ms var(--ease-out); }
  .app-gallery a:hover .app-logo { transform: translateY(-3px); }
}
@keyframes works-appear {
  from { opacity: .68; transform: translateY(7px); }
}
@media (max-width: 560px) {
  .app-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .app-logo { width: clamp(64px, 17.5vw, 78px); }
  .about .chapter { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .masthead { min-height: 63px; }
  .masthead nav { gap: 17px; }
  .wordmark { gap: 7px; }
  .masthead .wordmark img { width: 24px; height: 24px; }
  .sign-in { min-width: 61px; padding-inline: 10px; }
  .hero-content { bottom: clamp(56px, 10svh, 91px); }
  .hero h1 { font-size: clamp(32px, 7.8vw, 57px); }
  .hero-link { min-height: 44px; }
  .hero::before { height: 31px; }
}
@media (max-aspect-ratio: 3/4), (max-width: 700px) and (orientation: portrait) {
  .hero { aspect-ratio: 9 / 16; min-height: min(91svh, 184vw); max-height: 96svh; }
  .hero::after {
    background:
      linear-gradient(180deg, #12212ed9 0, #12212eb8 56px, transparent 24%),
      radial-gradient(ellipse 98% 32% at 25% 85%, #0b1d2c8f, #0b1d2c54 57%, transparent),
      radial-gradient(ellipse 110% 62% at 12% 104%, #0b1c29bd, transparent 90%);
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero-content { bottom: clamp(18px, 6svh, 32px); }
  .hero h1 { font-size: clamp(28px, 5.5vw, 38px); }
  .hero-link { margin-top: 12px; }
}
@media (max-width: 350px) {
  :root { --edge: 16px; }
  .masthead nav { gap: 13px; }
  .hero h1 { font-size: 30px; }
}
