@font-face {
  font-family: "TASA Explorer";
  src: url("/fonts/TASAExplorer[wght].ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: block;
}

:root {
  --bg: #05090c;
  --g1: #16242a;
  --g2: #0a1317;
  --hero: rgba(228, 238, 241, 0.92);
  --hero-muted: rgba(205, 222, 228, 0.62);
  --ft: rgba(214, 226, 230, 0.66);
  --ft-dim: rgba(196, 210, 216, 0.58);
  --ft-line: rgba(214, 226, 230, 0.09);
  --focus: #86cfd6;
  --font: "TASA Explorer", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.33, 0, 0.67, 1);
  color-scheme: dark;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg);
}

body {
  background-image: radial-gradient(120% 85% at 50% -12%, var(--g1) 0%, var(--g2) 48%, var(--bg) 100%);
  color: var(--ft);
  font-family: var(--font);
}

canvas.scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.no-webgl canvas.scene {
  display: none;
}

.stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.hero {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 17%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6vw;
  text-align: center;
  color: var(--hero);
  transition: opacity 0.8s ease;
}

.hero .name {
  margin: 0 -0.42em 0 0;
  font-size: 3.6vw;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  animation: appear 1.5s var(--ease) 1s both;
}

.hero .line {
  margin: 0 -0.3em 0 0;
  font-size: max(13px, 1.05vw);
  color: var(--hero-muted);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: appear 1.5s var(--ease) 2.7s both;
}

@keyframes appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

.svc {
  position: absolute;
  left: calc(max(8%, env(safe-area-inset-left, 0px)) - 16px);
  top: 0;
  bottom: 8%;
  width: min(34rem, 42vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--hero);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, left 0.8s var(--ease), visibility 0s linear 0.8s;
}

.svc:target, .is-forward .svc {
  left: max(8%, env(safe-area-inset-left, 0px));
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, left 0.8s var(--ease), visibility 0s;
}

.svc-in {
  pointer-events: auto;
}

body:has(.svc:target) .hero, .is-forward .hero {
  opacity: 0;
}

.svc-in {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-left: 26px;
  border-left: 1px solid rgba(214, 226, 230, 0.3);
}

.svc p, .svc h2 {
  margin: 0;
}

.svc .k {
  font-size: clamp(12px, 0.8vw, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ft-dim);
}

.svc .h {
  font-size: clamp(24px, 2.4vw, 44px);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.svc .p {
  max-width: 46ch;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.6;
  color: var(--hero-muted);
}

.ft {
  position: fixed;
  left: max(4%, calc(50% - 1200px), env(safe-area-inset-left, 0px));
  right: max(4%, calc(50% - 1200px), env(safe-area-inset-right, 0px));
  bottom: calc(2.2vw + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4vw;
  font-size: clamp(13px, 0.82vw, 15px);
  line-height: 1.55;
  color: var(--ft);
}

.ft p {
  margin: 0;
}

.ft-l, .ft-r {
  display: flex;
  flex-direction: column;
}

.ft-r {
  text-align: right;
}

.ft .co {
  color: var(--hero-muted);
}

.dim {
  color: var(--ft-dim);
}

.contact .dim {
  margin-right: 0.6em;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--ft-line);
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--hero);
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.ft .fwd {
  color: var(--hero);
  text-decoration-color: rgba(214, 226, 230, 0.4);
  text-underline-offset: 0.3em;
}

.back {
  height: 44px;
  margin-top: -6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hero-muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.back:hover {
  color: var(--hero);
}

.back svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (orientation: portrait) {
  .hero {
    top: 15%;
    gap: 3vw;
  }

  .hero .name {
    font-size: 9vw;
  }

  .hero .line {
    font-size: max(13px, 2.9vw);
  }

  .svc {
    left: calc(max(7%, env(safe-area-inset-left, 0px)) - 12px);
    width: calc(100% - 2 * max(7%, env(safe-area-inset-left, 0px)));
    top: 14%;
    bottom: auto;
    display: block;
  }

  .svc:target, .is-forward .svc {
    left: max(7%, env(safe-area-inset-left, 0px));
  }

  .svc-in {
    padding-left: 18px;
  }

  .svc .k {
    font-size: clamp(12px, 2.8vw, 13px);
  }

  .svc .h {
    font-size: clamp(22px, 6.4vw, 40px);
  }

  .svc .p {
    font-size: clamp(16px, 3.8vw, 18px);
  }

  .ft {
    left: max(7%, env(safe-area-inset-left, 0px));
    right: max(7%, env(safe-area-inset-right, 0px));
    bottom: calc(3.5% + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: 1.1em;
    font-size: 13px;
    line-height: 1.5;
  }

  .ft-r {
    text-align: left;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .svc {
    top: 4%;
    bottom: auto;
    display: block;
    width: min(34rem, 62vw);
  }

  .svc-in {
    gap: 6px;
  }

  .svc .p {
    max-width: 62ch;
  }

  .back {
    height: 32px;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .name, .hero .line {
    animation: none;
  }

  .hero, .svc, .svc:target, .is-forward .svc {
    transition: none;
  }
}
