/* self-hosted fonts — font-display:swap keeps text visible while they load */
@font-face {
  font-family: 'Unbounded';
  src: url('../Unbounded-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Unbounded';
  src: url('../Unbounded-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../SpaceGrotesk-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../SpaceGrotesk-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../JetBrainsMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Material Symbols Rounded';
  src: url('https://fonts.gstatic.com/s/materialsymbolsrounded/v386/syl7-zNym6YjUruM-QrEh7-nyTnjDwKNJ_190FjpZIvDmUSVOK7BDB_Qb9vUSzq3wzLK-P0J-V_Zs-obHph2-jOcZTKPqw.woff2')
    format('woff2');
  font-weight: 100 700;
  font-style: normal;
  font-display: block;
}
:root {
  color-scheme: dark;
  --md-sys-color-primary: #75d1f4;
  --md-sys-color-on-primary: #003544;
  --md-sys-color-primary-container: #004d63;
  --md-sys-color-on-primary-container: #b8eaff;
  --page-accent: var(--md-sys-color-primary);
  --accent-rgb: 117, 209, 244;
  --md-sys-color-background: #101416;
  --md-sys-color-surface: #101416;
  --md-sys-color-surface-container-lowest: #0b1012;
  --md-sys-color-surface-container-low: #161c1f;
  --md-sys-color-surface-container: #1a2023;
  --md-sys-color-surface-container-high: #252b2f;
  --md-sys-color-surface-container-highest: #30373b;
  --md-sys-color-on-surface: #e1e3e4;
  --md-sys-color-on-surface-variant: #c0c8cc;
  --md-sys-color-outline: #899297;
  --md-sys-color-outline-variant: #41484b;
  --bg: var(--md-sys-color-background);
  --card-bg: color-mix(in srgb, var(--md-sys-color-surface-container-low) 88%, transparent);
  --card-edge: var(--md-sys-color-outline-variant);
  --ink: var(--md-sys-color-on-surface);
  --muted: var(--md-sys-color-on-surface-variant);
  --faint: color-mix(in srgb, var(--md-sys-color-on-surface-variant) 68%, transparent);
  --accent: var(--md-sys-color-primary);
  --scrollbar-track: var(--md-sys-color-surface-container-lowest);
  --scrollbar-thumb: rgba(var(--accent-rgb), 0.58);
  --scrollbar-thumb-hover: var(--accent);
  --shape-xs: 4px;
  --shape-sm: 8px;
  --shape-md: 12px;
  --shape-lg: 16px;
  --shape-xl: 28px;
  --shape-full: 999px;
  --elevation-1: 0 1px 3px rgba(0, 0, 0, 0.24), 0 1px 2px rgba(0, 0, 0, 0.16);
  --elevation-2: 0 4px 12px rgba(0, 0, 0, 0.28), 0 2px 4px rgba(0, 0, 0, 0.18);
  --font-display: 'Unbounded', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-text: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
:root[data-theme='light'] {
  color-scheme: light;
  --elevation-1: 0 1px 3px rgba(25, 28, 30, 0.12), 0 1px 2px rgba(25, 28, 30, 0.08);
  --elevation-2: 0 4px 12px rgba(25, 28, 30, 0.16), 0 2px 4px rgba(25, 28, 30, 0.1);
  --md-sys-color-background: #f6f9fa;
  --md-sys-color-surface: #f6f9fa;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #f0f4f6;
  --md-sys-color-surface-container: #ebeff1;
  --md-sys-color-surface-container-high: #e5e9eb;
  --md-sys-color-surface-container-highest: #dfe3e5;
  --md-sys-color-on-surface: #191c1e;
  --md-sys-color-on-surface-variant: #41484b;
  --md-sys-color-outline: #71787c;
  --md-sys-color-outline-variant: #c1c7cb;
  --md-sys-color-primary: #006782;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #b8eaff;
  --md-sys-color-on-primary-container: #001f29;
  --accent-rgb: 0, 103, 130;
}
:root[data-theme='light'] body.scrolled {
  --md-sys-color-background: color-mix(in srgb, var(--page-accent) 48%, #78dee2);
  --md-sys-color-surface: #85e2e5;
  --md-sys-color-surface-container-lowest: #b1f1f2;
  --md-sys-color-surface-container-low: #a5ebed;
  --md-sys-color-surface-container: #9be6e8;
  --md-sys-color-surface-container-high: #8edfe2;
  --md-sys-color-surface-container-highest: #80d7da;
  --md-sys-color-on-surface: #002022;
  --md-sys-color-on-surface-variant: #244b4d;
  --md-sys-color-outline: #426e70;
  --md-sys-color-outline-variant: #6fa7a9;
  --bg: var(--md-sys-color-background);
  --card-bg: color-mix(in srgb, var(--md-sys-color-surface-container-low) 76%, transparent);
  --card-edge: var(--md-sys-color-outline-variant);
  --ink: var(--md-sys-color-on-surface);
  --muted: var(--md-sys-color-on-surface-variant);
  --faint: color-mix(in srgb, var(--md-sys-color-on-surface-variant) 78%, transparent);
  --scrollbar-track: var(--md-sys-color-surface-container);
}
:root[data-theme='dark'][data-scrolled='true'] {
  --md-sys-color-background: color-mix(in srgb, var(--page-accent) 30%, #101416);
}
:root[data-theme='light'][data-scrolled='true'] {
  --scrollbar-track: #9be6e8;
}
.material-symbols-rounded {
  display: inline-block;
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 1.35em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  height: 100%;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}
html::-webkit-scrollbar {
  width: 10px;
}
html::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
html::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border: 2px solid var(--scrollbar-track);
  border-radius: 0;
}
html::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  min-height: 100%;
  background: var(--bg);
  transition:
    background-color 0.7s ease,
    color 0.3s ease;
  color: var(--ink);
  font-family: var(--font-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}
main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0px, 2.5vh, 26px);
  padding: 48px 24px 96px;
  text-align: center;
}
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: min(90vw, 60ch);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.8rem, 1.9vw, 0.98rem);
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px rgba(var(--accent-rgb), 0.55);
  animation: pulse 2.6s ease-in-out infinite;
}
.domain {
  display: flex;
  user-select: none;
  cursor: default;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  font-size: clamp(2.4rem, 12vw, 9rem);
  letter-spacing: -0.02em;
}
.ltr {
  display: inline-block;
  opacity: 0;
  animation:
    rise 1s ease-out forwards,
    wave 6s ease-in-out infinite;
  animation-delay: calc(0.25s + var(--i) * 0.08s), calc(var(--i) * -0.8s);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.75, 0.25, 1),
    color 0.3s ease,
    text-shadow 0.3s ease;
}
.ltr.settled:hover {
  transform: translateY(-10px);
  color: var(--accent);
  text-shadow: 0 0 28px rgba(var(--accent-rgb), 0.45);
}
.tld .ltr {
  color: var(--accent);
}
.tld .ltr.settled:hover {
  color: var(--ink);
  text-shadow: 0 0 28px rgba(244, 246, 250, 0.35);
}
.topbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: min(90vw, 980px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--md-sys-color-surface-container) 88%, transparent);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 0;
  backdrop-filter: blur(20px);
  box-shadow: var(--elevation-2);
}
:root[data-theme='light'] .topbar {
  background: color-mix(in srgb, var(--md-sys-color-surface-container-lowest) 86%, transparent);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 0;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
.brand-mark {
  color: var(--ink);
}
.brand-dot {
  margin-left: 0.035em;
  color: var(--accent);
  transition: opacity 0.3s ease;
}
.brand-domain {
  margin-left: 0.025em;
  color: var(--muted);
  transition: opacity 0.3s ease;
}
:root[data-scrolled='true'] .brand-dot {
  opacity: 0.62;
}
:root[data-scrolled='true'] .brand-domain {
  opacity: 0.72;
}
.brand:hover {
  background-color: color-mix(
    in srgb,
    var(--md-sys-color-primary) 10%,
    var(--md-sys-color-surface-container)
  );
}
.brand:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.top-nav a,
.theme-toggle,
.button,
.hint {
  font-family: var(--font-text);
  text-decoration: none;
  letter-spacing: 0.015em;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.top-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  border-radius: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.78rem;
  padding: 8px 12px;
}
.top-nav a:hover,
.top-nav a:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--md-sys-color-on-surface);
  background-color: color-mix(
    in srgb,
    var(--md-sys-color-on-surface) 8%,
    var(--md-sys-color-surface-container)
  );
}
.top-nav a:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  border: 0;
  border-radius: 0;
  padding: 8px 12px;
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.78rem;
  cursor: pointer;
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}
.text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(
    -12px,
    -1.5vh,
    -6px
  ); /* negative margin: pull text up toward the wordmark */
  opacity: 0;
  animation: fadeUp 0.9s ease 1s forwards;
}
.text {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.65rem);
  color: var(--muted);
  max-width: 36ch;
  line-height: 1.45;
  text-wrap: pretty;
  cursor: pointer;
  overflow: hidden;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    height 0.45s ease,
    color 0.3s ease;
}
.text:hover {
  color: var(--ink);
}
.domain,
.brand {
  color: var(--md-sys-color-on-surface);
}
.text.swap {
  opacity: 0;
  transform: translateY(12px);
}
.primary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
}
.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--elevation-2);
}
.button-primary {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  box-shadow: var(--elevation-1);
}
.button-secondary {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}
.button-primary:hover,
.button-primary:focus-visible {
  background: color-mix(in srgb, var(--md-sys-color-primary) 92%, var(--md-sys-color-on-surface));
}
.button-secondary:hover,
.button-secondary:focus-visible {
  background: color-mix(
    in srgb,
    var(--md-sys-color-primary-container) 92%,
    var(--md-sys-color-on-primary-container)
  );
}
.button:focus-visible,
.hint:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 3px;
}
.social-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin-top: 18px;
}
.hint {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.78rem;
  border-radius: 0;
  border: 1px solid var(--md-sys-color-outline);
  background: transparent;
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}
.hint:visited {
  color: var(--md-sys-color-on-surface-variant);
}
.hint:hover,
.hint:focus-visible {
  color: var(--md-sys-color-on-surface);
  border-color: var(--md-sys-color-primary);
  background-color: color-mix(
    in srgb,
    var(--md-sys-color-primary) 10%,
    var(--md-sys-color-surface-container)
  );
  transform: translateY(-2px);
  box-shadow:
    0 3px 0 color-mix(in srgb, var(--md-sys-color-primary) 46%, var(--md-sys-color-outline)),
    0 9px 16px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.hint:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 1px 0 color-mix(in srgb, var(--md-sys-color-primary) 46%, var(--md-sys-color-outline));
}
.foot {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  padding: 0 24px 26px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}
/* ---------- moving scroll cue at the bottom of the hero ---------- */
.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
  cursor: pointer;
  transition:
    opacity 0.45s ease,
    color 0.3s ease;
}
.scroll-cue:hover {
  color: var(--ink);
}
.scroll-cue:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}
.scroll-cue.hide {
  opacity: 0;
  pointer-events: none;
}
.cue-track {
  position: relative;
  width: 1px;
  height: 44px;
  background: rgba(244, 246, 250, 0.16);
  overflow: hidden;
}
.cue-dot {
  position: absolute;
  left: -1.5px;
  top: 0;
  width: 4px;
  height: 10px;
  border-radius: var(--shape-full);
  background: var(--accent);
  box-shadow: 0 0 10px 1px rgba(var(--accent-rgb), 0.6);
  animation: cueDrop 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes cueDrop {
  0% {
    transform: translateY(-12px);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(46px);
    opacity: 0;
  }
}
@media (max-width: 640px) {
  .topbar {
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: min(calc(100% - 24px), 460px);
    gap: 8px;
    padding: 8px 10px;
    border-radius: 0;
  }
  .brand {
    min-height: 44px;
    align-items: center;
    padding: 0 6px;
  }
  .top-nav {
    flex: 1;
    justify-content: space-between;
    gap: 2px;
    flex-wrap: nowrap;
  }
  .top-nav a,
  .theme-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 0;
  }
  .top-nav a > span:last-child,
  #theme-label {
    display: none;
  }
  .top-nav .material-symbols-rounded,
  .theme-toggle .material-symbols-rounded {
    font-size: 24px;
  }
  .scroll-cue {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
  .cue-track {
    height: 30px;
  }
  .content-section {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
  .foot {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 640px) and (max-height: 600px) {
  .scroll-cue {
    display: none;
  }
}
/* Simplify costly decorative layers on constrained or touch-first devices. */
:root[data-performance='low'] .grain {
  display: none;
}
:root[data-performance='low'] .topbar,
:root[data-performance='low'] .content-card {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:root[data-performance='low'] .content-card {
  transform: none;
}
:root[data-performance='low'] .content-card::before,
:root[data-performance='low'] .content-card::after,
:root[data-performance='low'] .card-edge-glow {
  display: none;
}
/* ---------- reveal on scroll: big headers first, paragraphs after, sliding up from the bottom ---------- */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity 0.8s ease var(--d, 0s),
    transform 0.8s cubic-bezier(0.2, 0.75, 0.25, 1) var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@keyframes rise {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes wave {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 0 -4px;
    rotate: 1.5deg;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  .domain,
  .eyebrow,
  .text-wrap,
  .eyebrow .dot {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .ltr {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .text,
  .brand,
  .hint,
  .top-nav a,
  .theme-toggle,
  .button {
    transition: none;
  }
  .cue-dot {
    animation: none !important;
    transform: translateY(18px);
    opacity: 0.9;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .about-inner .dot {
    animation: none !important;
  }
  .content-card {
    transition: none !important;
    transform: none !important;
  }
  .content-card::before {
    display: none;
  }
  .content-card.pressing::after {
    animation: none !important;
  }
  body,
  #bg {
    transition: none !important;
  }
}
