:root {
  --text-xs: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.2vw, 1rem);
  --text-base: clamp(1rem, 0.92rem + 0.35vw, 1.1875rem);
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --font-body: "Synonym", "Helvetica Neue", sans-serif;
  --font-display: "Panchang", "Arial Narrow", sans-serif;
  --font-mono: "Spline Sans Mono", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --bg: #080909;
  --fg: #e9e6df;
  --muted: #85847f;
}

/* Clip stray horizontal overflow (the display h1 runs wide on narrow
   screens) while leaving vertical scroll available under browser zoom. */
html {
  overflow-x: hidden;
}

body {
  color: var(--fg);
  background: var(--bg);
  font-family: var(--font-body);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: var(--space-4);
  left: var(--space-4);
  padding: var(--space-2) var(--space-3);
  color: var(--bg);
  background: var(--fg);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer {
  position: fixed;
  z-index: 20;
  right: clamp(var(--space-4), 3.2vw, var(--space-12));
  left: clamp(var(--space-4), 3.2vw, var(--space-12));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  top: clamp(var(--space-4), 3vw, var(--space-10));
}

.site-footer {
  bottom: clamp(var(--space-4), 3vw, var(--space-10));
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.16em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.contact,
.footer-status {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
}

main {
  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
}

.concept {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  opacity: 0;
}

.concept.is-active,
.hero-copy {
  opacity: 1;
  animation: concept-in 700ms var(--ease-out);
}

.concept canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
}

.concept::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  opacity: 0.055;
  mix-blend-mode: soft-light;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  margin-bottom: 4vh;
  margin-left: clamp(var(--space-4), 8vw, 8rem);
  max-width: min(76rem, 82vw);
}

h1 {
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 2rem + 10vw, 13rem);
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 0.84;
  text-transform: uppercase;
}

.lede a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lede {
  --lede-inset: clamp(0.3rem, 1vw, 1.25rem);

  width: max-content;
  max-width: calc(100% - var(--lede-inset));
  margin-top: var(--space-8);
  margin-left: var(--lede-inset);
  color: color-mix(in srgb, var(--fg), transparent 26%);
  font-size: var(--text-base);
  line-height: 1.45;
}

.concept-topo {
  background: var(--bg);
}

.concept-topo::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(
    circle min(44vw, 44dvh) at 62% 43%,
    rgba(185, 189, 120, 0.055),
    rgba(185, 189, 120, 0)
  );
}

.footer-status {
  display: flex;
  color: var(--muted);
  align-items: center;
  gap: var(--space-3);
}

.footer-status span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #56c779;
  box-shadow: 0 0 0 4px color-mix(in srgb, #56c779, transparent 84%);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.contact {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.contact > span {
  color: var(--muted);
}

.contact a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.contact a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease-out);
}

.contact a:hover::after,
.contact a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

@keyframes concept-in {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
  }
}

@keyframes status-pulse {
  50% {
    opacity: 0.35;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .contact > span {
    display: none;
  }

  .hero-copy {
    margin-right: var(--space-6);
    margin-bottom: 10vh;
    margin-left: var(--space-6);
    max-width: none;
    text-align: left;
  }

  h1 {
    font-size: clamp(2.8rem, 11.5vw, 4.8rem);
    letter-spacing: 0.025em;
  }

  .site-footer {
    align-items: flex-end;
  }

  .contact {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .concept.is-active,
  .hero-copy {
    animation: none;
  }
}
