*, *::before, *::after { box-sizing: border-box; }

:root {
  color-scheme: dark;
  --start-bg: #0c0b11;
  --start-border: #3b2b17;
  --start-border-strong: #5a4526;
  --start-gold: #b9913d;
  --start-gold-light: #d7b66b;
  --start-text: #c5c0b6;
  --start-muted: #94919c;
}

html { min-width: 320px; background: var(--start-bg); }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--start-text);
  background: var(--start-bg);
  font-family: var(--hs-type-ui-body-family);
  font-size: var(--hs-type-ui-body-size);
  line-height: var(--hs-type-ui-body-leading);
}

a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.start-main {
  min-height: calc(100vh - 88px);
  min-height: calc(100svh - 88px);
  display: grid;
  place-items: center;
  padding: max(36px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) 36px max(28px, env(safe-area-inset-left));
}

.threshold {
  width: min(88vw, 2800px);
  display: grid;
  grid-template-columns: minmax(480px, 1.08fr) 1px minmax(420px, .92fr);
  gap: clamp(56px, 4.2vw, 170px);
  align-items: center;
}

.logo-stage { grid-column: 1; grid-row: 1; min-width: 0; }

.hollowstone-logo {
  display: block;
  width: min(100%, 980px);
  height: auto;
  margin-inline: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.threshold-mark {
  grid-column: 2;
  grid-row: 1;
  width: 1px;
  height: clamp(280px, 38vh, 620px);
  background: linear-gradient(180deg, transparent, rgba(90, 69, 38, .5) 24%, rgba(90, 69, 38, .5) 76%, transparent);
}

.threshold-voice {
  grid-column: 3;
  grid-row: 1;
  width: min(100%, 920px);
  min-width: 0;
}

.project-status {
  position: relative;
  margin: 0 0 clamp(24px, 2vw, 42px);
  padding-left: 18px;
  color: var(--start-muted);
  font-family: var(--hs-type-ui-navigation-family);
  font-size: clamp(12px, .28vw + 8px, 17px);
  font-weight: var(--hs-type-ui-navigation-weight);
  line-height: var(--hs-type-ui-navigation-leading);
  letter-spacing: .12em;
  white-space: nowrap;
}

.project-status::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--start-border-strong);
}

.nathan-quote {
  max-width: clamp(520px, 31vw, 920px);
  margin: 0;
  color: var(--start-text);
  font-family: var(--hs-type-narrative-quote-family);
  font-size: clamp(17px, calc(.45vw + 10px), 30px);
  font-weight: var(--hs-weight-regular);
  line-height: 1.64;
  letter-spacing: .005em;
  opacity: .82;
}

.nathan-quote p { margin: 0; }

.nathan-quote footer {
  margin-top: clamp(14px, 1.2vw, 26px);
  color: var(--start-gold);
  font-family: var(--hs-type-ui-body-family);
  font-size: clamp(12px, .3vw + 8px, 18px);
  font-weight: var(--hs-weight-regular);
  line-height: var(--hs-leading-body);
  letter-spacing: var(--hs-tracking-open);
}

:lang(ja) body,
:lang(ja) .project-status,
:lang(ja) .start-footer,
:lang(ja) .nathan-quote,
:lang(ja) .nathan-quote footer {
  font-family: "Source Han Sans JP", system-ui, sans-serif;
  font-synthesis: none;
}

:lang(ja) .nathan-quote { font-weight: 350; }
:lang(ja) .nathan-quote footer { font-weight: 400; }

.start-footer {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto;
  grid-template-areas: "studio social copy legal";
  align-items: center;
  gap: clamp(14px, 1.5vw, 28px);
  padding: 10px max(28px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
  border-top: 1px solid rgba(59, 43, 23, .58);
  color: var(--start-muted);
  font-family: var(--hs-type-ui-caption-family);
  font-size: clamp(11px, .22vw + 8px, 15px);
  line-height: var(--hs-type-ui-caption-leading);
}

.start-footer p { grid-area: copy; margin: 0; }

.studio-identity {
  grid-area: studio;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--start-gold);
}

.studio-identity img {
  width: clamp(42px, 2.5vw, 72px);
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  opacity: .82;
}

.age-mark { color: var(--start-text); font-weight: var(--hs-weight-semibold); }

.social-links {
  grid-area: social;
  display: flex;
  gap: clamp(5px, .4vw, 10px);
}

.social-links a {
  width: clamp(38px, 2vw, 56px);
  height: clamp(38px, 2vw, 56px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(90, 69, 38, .48);
  color: var(--start-muted);
  text-decoration: none;
  transition: color 150ms cubic-bezier(.4, 0, .2, 1), border-color 150ms cubic-bezier(.4, 0, .2, 1), background-color 150ms cubic-bezier(.4, 0, .2, 1);
}

.social-links a:hover { color: var(--start-gold-light); border-color: var(--start-border-strong); background: rgba(185, 145, 61, .035); }
.social-links a:focus-visible { outline: 1px solid var(--start-gold); outline-offset: 3px; color: var(--start-gold-light); }

.social-icon {
  width: clamp(16px, .8vw, 24px);
  height: clamp(16px, .8vw, 24px);
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.social-icon.telegram { -webkit-mask-image: url("/static/start/icons/telegram.svg"); mask-image: url("/static/start/icons/telegram.svg"); }
.social-icon.github { -webkit-mask-image: url("/static/start/icons/github.svg"); mask-image: url("/static/start/icons/github.svg"); }
.social-icon.reddit { -webkit-mask-image: url("/static/start/icons/reddit.svg"); mask-image: url("/static/start/icons/reddit.svg"); }

.footer-links {
  grid-area: legal;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.studio-identity a { color: inherit; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.studio-identity a:hover { color: var(--start-gold-light); }
.studio-identity a:focus-visible { outline: 1px solid var(--start-gold); outline-offset: 4px; color: var(--start-gold-light); }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.footer-links a:hover { color: var(--start-gold-light); }
.footer-links a:focus-visible { outline: 1px solid var(--start-gold); outline-offset: 4px; color: var(--start-gold-light); }

@media (max-width: 920px) {
  .start-main { min-height: 0; padding-block: max(22px, env(safe-area-inset-top)) 42px; }
  .threshold { width: min(100%, 680px); grid-template-columns: 1fr; gap: 0; }
  .logo-stage { grid-row: 1; }
  .logo-stage, .threshold-mark, .threshold-voice { grid-column: 1; }
  .hollowstone-logo { width: min(108%, 620px); margin-left: -4%; }
  .threshold-mark {
    grid-row: 2;
    width: clamp(80px, 24vw, 140px);
    height: 1px;
    margin: -2% 0 clamp(28px, 6vw, 44px) 5%;
    background: linear-gradient(90deg, rgba(90, 69, 38, .58), transparent);
  }
  .threshold-voice { grid-row: 3; padding-inline: 5%; }
  .project-status { margin-bottom: clamp(22px, 5vw, 32px); }
  .nathan-quote { max-width: 640px; font-size: clamp(16px, 3.2vw, 20px); line-height: 1.58; }
  .nathan-quote footer { font-size: clamp(12px, 2.4vw, 14px); }
  .start-footer {
    grid-template-columns: auto 1fr;
    grid-template-areas: "studio social" "copy copy" "legal legal";
    gap: 6px 18px;
    padding-block: 12px;
  }
  .social-links { justify-self: end; }
  .start-footer p { text-align: left; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .start-main { padding-inline: max(18px, env(safe-area-inset-left)); }
  .hollowstone-logo { width: 108%; }
  .threshold-voice { padding-inline: 5%; }
  .nathan-quote { font-size: 16px; line-height: 1.56; }
  .start-footer { padding-inline: max(12px, env(safe-area-inset-left)); font-size: 11px; }
  .studio-identity { gap: 6px; }
  .studio-identity img { width: 40px; }
  .social-links a { width: 38px; height: 38px; }
  .social-icon { width: 16px; height: 16px; }
  .footer-links { gap: 2px 10px; }
}

@media (max-width: 360px) {
  .start-footer { grid-template-areas: "studio studio" "social social" "copy copy" "legal legal"; }
  .social-links { justify-self: start; }
  .footer-links { flex-direction: column; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
