:root {
  --apple-bg: #000000;
  --apple-text-primary: #f5f5f7;
  --apple-text-secondary: rgba(245, 245, 247, 0.78);

  --apple-surface: rgba(28, 28, 30, 0.52);
  --apple-surface-border: rgba(255, 255, 255, 0.2);
  --apple-surface-highlight: rgba(255, 255, 255, 0.08);

  --apple-radius-xl: 1.5rem;
  --apple-radius-pill: 999px;

  --apple-shadow-ambient: 0 20px 40px rgba(0, 0, 0, 0.45);
  --apple-shadow-key: 0 2px 10px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

.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;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--apple-bg);
  color: var(--apple-text-primary);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.top-toolbar {
  position: fixed;
  top: 0;
  left: 4rem;
  right: 4rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 1.5rem 2rem 0.75rem;
  background: transparent;
  border-bottom: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    top 220ms ease,
    left 220ms ease,
    right 220ms ease,
    padding 220ms ease,
    border-radius 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    backdrop-filter 220ms ease,
    -webkit-backdrop-filter 220ms ease,
    box-shadow 220ms ease;
}

.top-toolbar.is-scrolled {
  top: 0.75rem;
  left: 4rem;
  right: 4rem;
  padding: 1.5rem 3rem;
  background: rgba(3, 0, 255, 0.45);
  border: 0;
  border-radius: 1.5rem;
  backdrop-filter: contrast(1.1) saturate(1.8) blur(8px);
  -webkit-backdrop-filter: contrast(1.1) saturate(1.8) blur(8px);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.16);
}

.toolbar-logo {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.toolbar-logo img {
  display: block;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.toolbar-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.toolbar-menu-icon {
  font-size: 2rem;
  line-height: 1;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.toolbar-links {
  display: inline-flex;
  align-items: center;
  gap: 4rem;
}

.toolbar-links a {
  color: rgba(245, 245, 247, 0.9);
  font-size: 1.3rem;
  text-decoration: none;
  text-decoration-thickness: 0;
  text-underline-offset: 0.22em;
  transition:
    color 180ms ease,
    text-decoration-thickness 180ms ease;
}

.toolbar-links a:hover,
.toolbar-links a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.mobile-menu-panel {
  display: none;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  transform: translateY(0);
}

@media (min-width: 721px) {
  #hero-canvas {
    height: calc(100% + 50px);
    transform: translateY(0);
  }
}

#fps-meter {
  position: absolute;
  bottom: 0.7rem;
  right: 0.7rem;
  z-index: 4;
  padding: 0.2rem 0.42rem;
  border-radius: 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(245, 245, 247, 0.85);
  font-size: 0.66rem;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  user-select: none;
}

#fps-meter[hidden] {
  display: none;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: min(92vw, 780px);
  padding: clamp(1rem, 4vw, 2rem);
  margin-top: clamp(1rem, 7vh, 4.5rem);
  margin-left: clamp(0.6rem, 2.5vw, 2rem);
}

.hero-text-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: auto;
  transform: translateY(-150px);
}

.hero-message {
  margin: 0;
  color: #ffffff;
  font-family: "Noto Serif Display", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
  user-select: text;
  white-space: nowrap;
  transform: translateY(-75px);
  opacity: 1;
  transition: opacity 620ms ease;
}

.hero-message.is-fading {
  opacity: 0;
}

.hero-message::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.95em;
  margin-left: 0.08em;
  background: rgba(255, 255, 255, 0.86);
  vertical-align: -0.08em;
  animation: blink-caret 0.95s steps(1, end) infinite;
}

@keyframes blink-caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.2;
  }
}

.content-shell {
  width: min(86.3125rem, calc(100% - 8rem));
  margin: 0 auto;
  padding: 0 0 8rem;
  color: #f5f5f7;
}

.content-section + .content-section {
  margin-top: 10.25rem;
}

.content-section h2 {
  font-family: "Noto Serif Display", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.content-section h2 {
  margin: 0 0 1.75rem;
  font-weight: 500;
  font-size: clamp(3rem, 4vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.about-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  padding-left: 3rem;
}

.about-avatar {
  display: grid;
  place-items: center;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  flex-shrink: 0;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy {
  display: flex;
  flex-direction: column;
}

.about-copy p {
  margin: 0;
  color: rgba(245, 245, 247, 0.92);
  font-family: "Noto Sans", sans-serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: 0.02em;
}

.about-highlight {
  color: #f3bb16;
}

.about-break {
  display: inline;
}

.about-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 13rem;
  height: 4.625rem;
  margin-top: 1.8rem;
  padding: 0 2rem;
  border-radius: 999px;
  background: #2b58d4;
  color: #ffffff;
  font-family: "Noto Sans", sans-serif;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.about-cta:hover,
.about-cta:focus-visible {
  background: hsl(255 71% 40% / 1);
}

.about-section h2 {
  margin-bottom: 2.25rem;
  font-size: 4rem;
}

.site-footer {
  margin-top: 4.8rem;
  padding-bottom: 5rem;
}

.site-footer-line {
  width: 100%;
  height: 0.18rem;
  background: #00e9e0;
}

.site-footer p {
  margin: 1rem 0 0;
  color: rgba(245, 245, 247, 0.88);
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 720px) {
  .hero-text-layer {
    transform: translateY(0);
  }

  .top-toolbar {
    top: 0;
    left: 0;
    right: 0;
    align-items: flex-start;
    padding: 1.25rem 1.375rem 0 1.625rem;
  }

  .top-toolbar.is-scrolled {
    top: 0.5rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 1.25rem 1.375rem 0.875rem 1.625rem;
    border-radius: 1.25rem;
  }

  .toolbar-links {
    display: none;
  }

  .toolbar-logo {
    min-height: auto;
  }

  .toolbar-logo img {
    width: 2.25rem;
    height: 2.125rem;
  }

  .toolbar-menu-toggle {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    margin-top: 0.125rem;
  }

  .toolbar-menu-icon {
    font-size: 2rem;
  }

  .top-toolbar.is-menu-open {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: flex-start;
    padding: 1.25rem 1.375rem 0 1.625rem;
    border-radius: 0;
    background: rgba(3, 0, 255, 0.9);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    z-index: 23;
  }

  .top-toolbar.is-menu-open .toolbar-menu-toggle {
    margin-top: 0.125rem;
  }

  .top-toolbar.is-menu-open .toolbar-menu-icon {
    font-size: 2rem;
  }

  .mobile-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 22;
    display: none;
  }

  .top-toolbar.is-menu-open .mobile-menu-panel {
    display: block;
  }

  .mobile-menu-links {
    position: absolute;
    top: 11.5rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
  }

  .mobile-menu-links a {
    color: #ffffff;
    font-family: "Noto Sans", sans-serif;
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.08;
    text-decoration: none;
    text-decoration-thickness: 0;
    text-underline-offset: 0.22em;
    transition:
      color 180ms ease,
      text-decoration-thickness 180ms ease;
  }

  .mobile-menu-links a:hover,
  .mobile-menu-links a:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
  }

  .hero {
    height: 100svh;
    min-height: 100dvh;
  }

  .hero-message {
    font-size: clamp(3.9rem, 17vw, 6.8rem);
    line-height: 1.12;
    white-space: normal;
    max-width: 88vw;
    padding: 0 0.5rem;
    transform: translateY(0);
  }

  .content-shell {
    width: min(100%, calc(100% - 2rem));
    padding: 0.5rem 0 4.5rem;
  }

  .content-section + .content-section {
    margin-top: 6rem;
  }

  .content-section h2 {
    margin-bottom: 1rem;
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .about-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-left: 0;
  }

  .about-avatar {
    width: 5.5rem;
    height: 5.5rem;
  }

  .about-copy p {
    max-width: none;
    margin: 0 1rem;
    font-size: 1.4rem;
    line-height: 1.5;
    text-wrap: pretty;
  }

  .about-cta {
    width: 100%;
    min-width: 0;
    height: 3.5rem;
    padding: 0 1.4rem;
    font-size: 1.2rem;
  }

  .about-section h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .about-break {
    display: none;
  }

  .site-footer {
    margin-top: 3.75rem;
    padding-bottom: 3rem;
  }

  .site-footer p {
    font-size: 0.88rem;
    line-height: 1.6;
  }
}
