:root {
  color-scheme: dark;
  --obsidian: #060607;
  --obsidian-lift: #0b0b0e;
  --glass: rgba(255, 255, 255, 0.028);
  --glass-strong: rgba(255, 255, 255, 0.055);
  --silver-hi: #f6f6f8;
  --silver: #c6c7d1;
  --silver-dim: #85868f;
  --emerald: #19d15f;
  --emerald-deep: #0a8a3d;
  --emerald-dark: #06531f;
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --bevel:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.28),
      rgba(255, 255, 255, 0.07) 35%,
      rgba(255, 255, 255, 0.03) 65%,
      rgba(0, 0, 0, 0.55)
    );
  --mx: 50vw;
  --my: 20vh;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--obsidian);
}

body {
  min-height: 100svh;
  margin: 0;
  font-family: var(--font);
  color: var(--silver);
  background:
    radial-gradient(60rem 34rem at 50% -12rem, rgba(148, 152, 170, 0.09), transparent 70%),
    linear-gradient(180deg, #08080a 0%, var(--obsidian) 30rem);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

svg {
  display: block;
}

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

/* Soft silver light that follows the cursor (driven by --mx / --my from script.js) */
.cursor-light {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    34rem circle at var(--mx) var(--my),
    rgba(190, 196, 216, 0.045),
    transparent 70%
  );
}

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 720px);
  margin: 0 auto;
  padding-block: clamp(40px, 7vh, 76px) 28px;
}

/* ---------- Entrance ---------- */

.reveal {
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 110ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  justify-items: center;
  margin-bottom: clamp(30px, 5vh, 44px);
  text-align: center;
}

.eye-halo {
  position: relative;
  display: grid;
  width: clamp(108px, 16vw, 132px);
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 22px;
}

/* Rotating machined-chrome ring — the page's signature */
.eye-halo::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: 50%;
  padding: 1px;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.04) 22%,
    rgba(255, 255, 255, 0.3) 38%,
    rgba(255, 255, 255, 0.02) 58%,
    rgba(255, 255, 255, 0.45) 76%,
    rgba(255, 255, 255, 0.04) 92%,
    rgba(255, 255, 255, 0.55)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: halo-spin 26s linear infinite;
}

/* Breathing glow behind the eye */
.eye-halo::after {
  position: absolute;
  inset: -34%;
  z-index: -1;
  content: "";
  background: radial-gradient(circle, rgba(196, 202, 222, 0.16), transparent 62%);
  animation: breathe 7s ease-in-out infinite;
}

@keyframes halo-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.eye {
  width: 72%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.6));
}

.wordmark {
  margin: 0;
  font-size: clamp(2.1rem, 6.5vw, 2.9rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(
    180deg,
    #fdfdfe 0%,
    #d9dae1 34%,
    #8e909c 52%,
    #e9eaef 72%,
    #a9abb6 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6)) drop-shadow(0 0 26px rgba(210, 214, 232, 0.12));
}

.tagline {
  margin: 14px 0 0;
  color: var(--silver-dim);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Audit CTA (the one emerald element) ---------- */

.audit-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 52px;
  align-items: center;
  min-height: 92px;
  overflow: hidden;
  color: #eafff1;
  text-decoration: none;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(135deg, var(--emerald-deep), var(--emerald-dark) 78%);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(25, 209, 95, 0.35),
    0 0 42px rgba(25, 209, 95, 0.16),
    0 24px 48px rgba(0, 0, 0, 0.45);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

/* Sheen sweep */
.audit-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    105deg,
    transparent 32%,
    rgba(255, 255, 255, 0.22) 48%,
    rgba(255, 255, 255, 0.05) 54%,
    transparent 66%
  );
  transform: translateX(-120%);
  transition: transform 700ms ease;
  pointer-events: none;
}

.audit-card:hover,
.audit-card:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 1px rgba(25, 209, 95, 0.6),
    0 0 58px rgba(25, 209, 95, 0.26),
    0 28px 56px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.audit-card:hover::after,
.audit-card:focus-visible::after {
  transform: translateX(120%);
}

.audit-icon {
  display: grid;
  place-items: center;
  color: var(--emerald);
}

.audit-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  filter: drop-shadow(0 0 10px rgba(25, 209, 95, 0.55));
}

.audit-text {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-block: 18px;
}

.audit-text strong {
  color: #fff;
  font-size: clamp(1rem, 2.6vw, 1.14rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.audit-text span {
  color: rgba(222, 255, 234, 0.75);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
}

.arrow {
  display: grid;
  place-items: center;
}

.arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 200ms ease;
}

.audit-card:hover .arrow svg,
.link-card:hover .arrow svg {
  transform: translateX(4px);
}

/* ---------- Sections ---------- */

.section {
  margin-top: clamp(30px, 5vh, 42px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.eyebrow h2 {
  margin: 0;
  color: var(--silver-dim);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.eyebrow span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 70%, transparent);
}

/* ---------- Link cards ---------- */

.link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 30px;
  gap: 16px;
  align-items: center;
  padding: 16px 16px 16px 14px;
  color: var(--silver-hi);
  text-decoration: none;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    var(--bevel) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  transition: background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  background:
    linear-gradient(var(--glass-strong), var(--glass-strong)) padding-box,
    linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.14) 40%,
        rgba(255, 255, 255, 0.06) 65%,
        rgba(0, 0, 0, 0.5)
      )
      border-box;
  box-shadow:
    0 0 30px rgba(198, 204, 226, 0.07),
    0 20px 44px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

/* Beveled chrome icon chip */
.chip {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--silver);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)) padding-box,
    var(--bevel) border-box;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: color 200ms ease;
}

.link-card:hover .chip,
.link-card:focus-visible .chip {
  color: var(--silver-hi);
}

.chip svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.link-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.link-copy strong {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.25;
}

.link-copy span {
  color: var(--silver-dim);
  font-size: 0.84rem;
  font-weight: 450;
  line-height: 1.35;
}

.link-card .arrow {
  color: var(--silver-dim);
  transition: color 200ms ease;
}

.link-card:hover .arrow,
.link-card:focus-visible .arrow {
  color: var(--silver-hi);
}

.link-card .arrow svg {
  width: 19px;
  height: 19px;
}

/* ---------- Connect pills ---------- */

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 18px;
  color: var(--silver);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    var(--bevel) border-box;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--silver-hi);
  background:
    linear-gradient(var(--glass-strong), var(--glass-strong)) padding-box,
    linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.14) 40%,
        rgba(255, 255, 255, 0.06) 65%,
        rgba(0, 0, 0, 0.5)
      )
      border-box;
  box-shadow: 0 0 24px rgba(198, 204, 226, 0.08);
  transform: translateY(-2px);
}

.socials svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.socials a[data-link="email"] svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.socials span {
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(34px, 6vh, 52px);
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: rgba(133, 134, 143, 0.75);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ---------- Responsive ---------- */

@media (min-width: 720px) {
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .socials {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .page {
    width: min(100% - 28px, 720px);
  }

  .audit-card {
    grid-template-columns: 52px minmax(0, 1fr) 42px;
    min-height: 84px;
  }

  .audit-icon svg {
    width: 24px;
    height: 24px;
  }

  .tagline {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
  }

  .socials a {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}

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

  .reveal {
    opacity: 1;
    animation: none;
  }

  .cursor-light {
    display: none;
  }
}
