:root {
  color-scheme: dark;
  --ink: #101719;
  --ink-soft: #172022;
  --paper: #f4f1e9;
  --paper-muted: #c8c6bd;
  --brass: #c8a35e;
  --brass-bright: #e2c783;
  --line: rgba(243, 239, 229, 0.16);
  --hairline: rgba(243, 239, 229, 0.1);
  --focus: #ffe3a5;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background: var(--ink);
  font-family: "Segoe UI Variable", "Aptos", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.site-shell {
  isolation: isolate;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.site-shell::before {
  top: -16rem;
  right: -15rem;
  width: min(52vw, 50rem);
  height: min(52vw, 50rem);
  border: 1px solid rgba(200, 163, 94, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(200, 163, 94, 0.025), 0 0 0 12rem rgba(200, 163, 94, 0.018);
}

.site-shell::after {
  right: 11%;
  bottom: -8rem;
  width: 1px;
  height: 22rem;
  background: rgba(200, 163, 94, 0.25);
  transform: rotate(40deg);
  transform-origin: bottom;
}

.technical-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.46;
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: linear-gradient(to bottom, transparent, black 19%, black 74%, transparent);
}

.current-line {
  position: absolute;
  top: 33%;
  left: 0;
  width: min(23vw, 20rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 163, 94, 0.7));
}

.current-line__node {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--brass-bright);
  border-radius: 50%;
  background: var(--ink);
  transform: translateY(-50%);
}

.current-line__node--right { right: 0; }
.current-line__node--left { left: 35%; }

.hero {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 94rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 4.25rem) clamp(1.25rem, 5.2vw, 5rem) clamp(1.5rem, 3.1vw, 3rem);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand__link {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  color: var(--paper);
  text-decoration: none;
  outline-offset: 0.45rem;
}

.brand__mark {
  width: 2rem;
  height: 2rem;
  overflow: visible;
  fill: var(--brass);
}

.brand__mark-outline { fill: none; stroke: var(--brass-bright); stroke-width: 0.75; }

.brand__wordmark {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand__wordmark span { color: var(--paper-muted); font-weight: 500; }

.status,
.eyebrow {
  margin: 0;
  color: var(--paper-muted);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  white-space: nowrap;
}

.status__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(200, 163, 94, 0.12);
}

.hero__content {
  align-self: center;
  max-width: 47rem;
  padding: clamp(4.5rem, 11vh, 8rem) 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--brass-bright);
}

.eyebrow::before {
  width: 2rem;
  height: 1px;
  content: "";
  background: currentColor;
}

h1 {
  max-width: 44rem;
  margin: clamp(1.2rem, 3vw, 1.8rem) 0 0;
  font-size: clamp(2.75rem, 6.2vw, 5.75rem);
  font-weight: 700;
  letter-spacing: -0.067em;
  line-height: 1.01;
}

h1 em { color: var(--brass-bright); font-style: normal; }

.hero__copy {
  max-width: 36.5rem;
  margin: clamp(1.4rem, 3vw, 2.15rem) 0 0;
  color: var(--paper-muted);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.6rem;
  padding: 0.68rem 1.05rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 0.28rem;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button:focus-visible,
.brand__link:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.button:active { transform: translateY(1px) scale(0.985); }

.button__icon {
  position: relative;
  z-index: 1;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.button--secondary .button__icon { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.button__arrow {
  position: relative;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  margin-left: 0.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform 180ms ease;
}

.button:hover .button__arrow { transform: translateX(0.16rem); }

.button--primary {
  min-width: 14.8rem;
  color: #101719;
  background: var(--brass);
  box-shadow: inset 0 1px rgba(255, 250, 226, 0.58), 0 0.75rem 1.7rem rgba(0, 0, 0, 0.15);
}

.button--primary::before {
  position: absolute;
  inset: -1px;
  content: "";
  opacity: 0;
  background: linear-gradient(110deg, transparent 24%, rgba(255, 252, 234, 0.18) 38%, rgba(255, 252, 234, 0.65) 49%, rgba(255, 252, 234, 0.17) 59%, transparent 73%);
  transform: translateX(-115%);
}

.button--primary:hover {
  background: var(--brass-bright);
  box-shadow: inset 0 1px rgba(255, 255, 240, 0.72), 0 1rem 2.25rem rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.button--primary:hover::before { opacity: 1; animation: shine 750ms ease-out; }

.button--primary span { position: relative; z-index: 1; display: grid; gap: 0.1rem; }
.button--primary small { color: rgba(16, 23, 25, 0.75); font-size: 0.63rem; font-weight: 600; }

.button--secondary {
  min-width: 10.5rem;
  color: var(--paper);
  border-color: var(--line);
  background: rgba(20, 29, 31, 0.64);
}

.button--secondary:hover { border-color: rgba(200, 163, 94, 0.65); background: rgba(30, 40, 41, 0.9); transform: translateY(-2px); }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: rgba(200, 198, 189, 0.72);
  font-size: 0.72rem;
}

.footer p { margin: 0; }
.footer__details { display: flex; flex-wrap: wrap; gap: 0.62rem; align-items: center; }
.footer a { color: inherit; text-decoration: none; transition: color 160ms ease; }
.footer a:hover { color: var(--brass-bright); }

.reveal { animation: reveal 720ms both cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal--one { animation-delay: 60ms; }
.reveal--two { animation-delay: 140ms; }
.reveal--three { animation-delay: 210ms; }
.reveal--four { animation-delay: 290ms; }
.reveal--five { animation-delay: 360ms; }
.reveal--six { animation-delay: 430ms; }

@keyframes reveal { from { opacity: 0; transform: translateY(0.7rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes shine { from { transform: translateX(-115%); } to { transform: translateX(115%); } }

@media (max-width: 43rem) {
  .current-line { top: 23%; width: 29vw; }
  .hero { padding-top: 1.4rem; }
  .hero__content { padding: 5.5rem 0 3.5rem; }
  h1 { letter-spacing: -0.06em; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .button--primary { justify-content: flex-start; }
  .button--secondary { justify-content: flex-start; }
  .button__arrow { margin-left: auto; }
  .footer { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
}

@media (max-width: 25rem) {
  .brand__wordmark { font-size: 0.86rem; }
  .status { font-size: 0.57rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
