@font-face {
  font-family: "Libre Caslon Text";
  src: url("/assets/fonts/libre-caslon-text-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("/assets/fonts/libre-caslon-text-400-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("/assets/fonts/libre-caslon-text-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Victor Mono";
  src: url("/assets/fonts/victor-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Victor Mono";
  src: url("/assets/fonts/victor-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #020403;
  --abyss: #060908;
  --deep: #0a100e;
  --scale: #0f1a17;
  --phosphor: #5a8f72;
  --phosphor-dim: rgba(90, 143, 114, 0.45);
  --iris: #4a3868;
  --iris-glow: rgba(106, 82, 148, 0.35);
  --venom: #7a9e6a;
  --venom-glow: rgba(122, 158, 106, 0.22);
  --bone: #b8b4ac;
  --muted: rgba(184, 180, 172, 0.52);
  --faint: rgba(184, 180, 172, 0.28);
  --line: rgba(90, 143, 114, 0.1);
  --display: "Libre Caslon Text", Georgia, serif;
  --mono: "Victor Mono", ui-monospace, monospace;
  --content: 62rem;
  --gutter: clamp(1rem, 4vw, 1.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
html, body { min-height: 100%; }
body {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--bone);
  background: var(--void);
  overflow-x: clip;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(90, 143, 114, 0.45); color: #fff; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--phosphor);
  outline-offset: 3px;
}

.lair {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(15, 26, 23, 0.55), transparent 68%),
    radial-gradient(ellipse 40% 35% at 12% 88%, rgba(74, 56, 104, 0.08), transparent 55%),
    radial-gradient(ellipse 35% 30% at 92% 12%, rgba(90, 143, 114, 0.06), transparent 50%),
    linear-gradient(180deg, #030504 0%, var(--void) 50%, #010201 100%);
}
.lair::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background:
    repeating-linear-gradient(
      125deg,
      transparent 0,
      transparent 22px,
      rgba(90, 143, 114, 0.25) 22px,
      rgba(90, 143, 114, 0.25) 23px
    );
  mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, black 8%, transparent 72%);
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
}

.sigil {
  position: fixed;
  left: 50%;
  top: 48%;
  translate: -50% -50%;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  font-family: var(--display);
  font-size: clamp(14rem, 42vw, 28rem);
  line-height: 1;
  color: rgba(90, 143, 114, 0.018);
  animation: sigil-breathe 18s ease-in-out infinite alternate;
}
@keyframes sigil-breathe {
  from { opacity: 0.7; transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1.03); }
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding:
    clamp(1.25rem, 4vw, 2rem)
    max(var(--gutter), env(safe-area-inset-right))
    clamp(1.5rem, 5vw, 2.75rem)
    max(var(--gutter), env(safe-area-inset-left));
}

.specimen {
  width: min(var(--content), 100%);
  container-type: inline-size;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(15, 26, 23, 0.4), transparent 55%),
    linear-gradient(168deg, rgba(6, 9, 8, 0.97), rgba(2, 4, 3, 0.99));
  box-shadow:
    0 48px 120px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(184, 180, 172, 0.03);
  overflow: hidden;
}
.specimen::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(90, 143, 114, 0.35),
    rgba(74, 56, 104, 0.2),
    rgba(90, 143, 114, 0.15),
    rgba(122, 158, 106, 0.25)
  );
  background-size: 200% 200%;
  animation: edge-whisper 22s ease-in-out infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.specimen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
}
@keyframes edge-whisper {
  0%, 100% { background-position: 0% 50%; opacity: 0.65; }
  50% { background-position: 100% 50%; opacity: 1; }
}

.coil-ornament {
  width: 100%;
  height: auto;
  display: block;
  color: rgba(90, 143, 114, 0.12);
  opacity: 0.7;
}
.coil-ornament--foot {
  color: rgba(74, 56, 104, 0.1);
  transform: scaleY(-1);
}

.specimen-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.7rem clamp(1rem, 3.5vw, 1.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.specimen-strip .live {
  color: var(--phosphor-dim);
  text-shadow: 0 0 20px var(--venom-glow);
  animation: pulse-whisper 5s ease-in-out infinite;
}
@keyframes pulse-whisper {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.specimen-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: clamp(1rem, 3vw, 1.25rem) clamp(1rem, 3.5vw, 1.5rem);
  border-bottom: 1px solid var(--line);
}
.specimen-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--bone);
}
.specimen-mark {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(90, 143, 114, 0.25));
  opacity: 0.92;
}
.specimen-brand span {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: rgba(184, 180, 172, 0.82);
}
.catalog {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.specimen-body {
  position: relative;
  z-index: 1;
  padding: clamp(1.35rem, 4vw, 2rem) clamp(1rem, 3.5vw, 1.5rem);
}

.taxonomy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
}
.taxonomy::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--phosphor-dim));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.25rem, 4vw, 2.25rem);
  align-items: center;
  margin-bottom: 1.75rem;
}
.hero-copy {
  min-width: 0;
  container-type: inline-size;
}

.hero-copy h1 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  margin-bottom: 0.75rem;
}
.hero-copy .name {
  display: block;
  font-size: clamp(2.45rem, 1rem + 8cqi, 4.35rem);
  color: rgba(184, 180, 172, 0.88);
  text-shadow:
    0 0 40px rgba(90, 143, 114, 0.12),
    0 0 80px rgba(74, 56, 104, 0.08);
}
.hero-copy .tld {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(0.95rem, 0.6rem + 3cqi, 1.4rem);
  letter-spacing: 0.22em;
  color: var(--phosphor-dim);
  text-shadow: 0 0 28px var(--venom-glow);
}

@supports not (font-size: 1cqi) {
  .hero-copy .name {
    font-size: clamp(2.45rem, 1rem + 7vw, 4.35rem);
  }
  .hero-copy .tld {
    font-size: clamp(0.95rem, 0.6rem + 2.6vw, 1.4rem);
  }
}

.epigraph {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(0.95rem, 2.1vw, 1.05rem);
  color: var(--muted);
  margin-bottom: 0.9rem;
  max-width: 34ch;
  opacity: 0.88;
}

.lead {
  font-family: var(--display);
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.72;
  color: var(--muted);
  max-width: 38ch;
}
.lead em {
  font-style: italic;
  color: rgba(184, 180, 172, 0.78);
}

.plate {
  min-width: 0;
  position: relative;
  padding: 1px;
  border-radius: 48% 52% 46% 54% / 42% 44% 56% 58%;
  background: linear-gradient(
    145deg,
    rgba(90, 143, 114, 0.35),
    rgba(74, 56, 104, 0.25),
    rgba(90, 143, 114, 0.15)
  );
  box-shadow:
    0 0 50px rgba(0, 0, 0, 0.75),
    0 0 30px rgba(90, 143, 114, 0.06),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
}
.plate::before {
  content: "";
  position: absolute;
  inset: -20%;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(90, 143, 114, 0.08), transparent 65%);
  pointer-events: none;
  animation: shrine-glow 8s ease-in-out infinite alternate;
}
@keyframes shrine-glow {
  from { opacity: 0.4; }
  to { opacity: 0.85; }
}
.plate-inner {
  position: relative;
  border-radius: inherit;
  padding: 0.5rem;
  background: var(--void);
  overflow: hidden;
}
.plate-inner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  filter: contrast(1.08) saturate(0.82) brightness(0.88);
}
.plate-caption {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.assay {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}
.assay-cell {
  min-width: 0;
  padding: 0.85rem 0.7rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(90, 143, 114, 0.04), transparent 65%),
    rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}
.assay-cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 143, 114, 0.2), transparent);
}
.assay-key {
  display: block;
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.35rem;
}
.assay-val {
  display: block;
  font-family: var(--display);
  font-size: clamp(0.88rem, 2.1vw, 1rem);
  font-weight: 700;
  color: rgba(184, 180, 172, 0.75);
  overflow-wrap: anywhere;
}
.assay-val.hot {
  color: var(--phosphor-dim);
  text-shadow: 0 0 20px var(--venom-glow);
}

.venom-block {
  padding: clamp(1.2rem, 3.5vw, 1.55rem);
  border: 1px solid rgba(90, 143, 114, 0.12);
  background:
    radial-gradient(ellipse 70% 70% at 0% 0%, rgba(90, 143, 114, 0.05), transparent 50%),
    radial-gradient(ellipse 50% 50% at 100% 100%, rgba(74, 56, 104, 0.06), transparent 45%),
    rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 0 rgba(184, 180, 172, 0.03);
}
.venom-block h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 1.38rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
  color: rgba(184, 180, 172, 0.9);
}
.venom-block .sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.68rem 1.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.actions a:first-child {
  color: var(--void);
  background: rgba(90, 143, 114, 0.75);
  border-color: rgba(90, 143, 114, 0.5);
  box-shadow: 0 0 24px rgba(90, 143, 114, 0.12);
}
.actions a:first-child:hover {
  background: rgba(122, 158, 106, 0.85);
  box-shadow: 0 0 32px rgba(90, 143, 114, 0.2);
}
.actions a.secondary {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}
.actions a.secondary:hover {
  border-color: rgba(90, 143, 114, 0.25);
  color: var(--bone);
  background: rgba(90, 143, 114, 0.04);
}
.mail-line {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.mail-line a {
  color: var(--phosphor-dim);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(90, 143, 114, 0.35);
}
.mail-line a:hover {
  color: var(--bone);
  text-decoration-color: rgba(184, 180, 172, 0.4);
}

.disclaimer {
  font-size: 0.64rem;
  line-height: 1.65;
  color: var(--faint);
  max-width: 44rem;
  opacity: 0.85;
}

.site-foot {
  position: relative;
  z-index: 1;
  padding: 0.9rem clamp(1rem, 3.5vw, 1.5rem) 1.15rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .assay {
    grid-template-columns: 1fr;
  }
  .hero-copy .tld {
    letter-spacing: 0.14em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .specimen::before,
  .sigil,
  .specimen-strip .live,
  .plate::before {
    animation: none;
  }
  .sigil {
    transform: translate(-50%, -50%) rotate(-7deg);
  }
}

/* 404 */
.error {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}
.error-card {
  width: min(22rem, 100%);
  text-align: center;
  padding: clamp(1.75rem, 5vw, 2.25rem);
  border: 1px solid var(--line);
  background: linear-gradient(168deg, rgba(6, 9, 8, 0.98), rgba(2, 4, 3, 0.99));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75);
}
.error-mark {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 16px rgba(90, 143, 114, 0.2));
  opacity: 0.9;
}
.error-card h1 {
  font-family: var(--display);
  font-size: clamp(2.75rem, 11vw, 3.5rem);
  color: var(--phosphor-dim);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 24px var(--venom-glow);
}
.error-card p {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}
.error-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.68rem 1.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--void);
  background: rgba(90, 143, 114, 0.75);
  border: 1px solid rgba(90, 143, 114, 0.4);
}
.error-card a:hover {
  background: rgba(122, 158, 106, 0.85);
}
