/* Wangcow Corporation — matches ivdb.org zinc + emerald */

:root {
  color-scheme: dark;
  /* ivdb.org / Tailwind zinc + emerald */
  --void: #09090b; /* zinc-950 */
  --ink: #09090b;
  --panel: #18181b; /* zinc-900 */
  --panel-soft: rgba(24, 24, 27, 0.4); /* zinc-900/40 */
  --accent: #34d399; /* emerald-400 */
  --accent-bright: #6ee7b7; /* emerald-300 */
  --accent-deep: #10b981; /* emerald-500 */
  --accent-dim: rgba(52, 211, 153, 0.4); /* emerald-500/40-ish for borders */
  --bone: #fafafa; /* zinc-50 */
  --bone-dim: #a1a1aa; /* zinc-400 */
  --bone-faint: #71717a; /* zinc-500 */
  --line: rgba(39, 39, 42, 0.9); /* zinc-800 */
  --line-strong: #3f3f46; /* zinc-700 */
  --glow: rgba(52, 211, 153, 0.14);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 68rem;
  --header-h: 3.5rem; /* h-14 like ivdb */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-deep);
  color: var(--void);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

/* Atmosphere — light grain over zinc void */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.35) 100%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  padding: 0 1.25rem;
  border-bottom: 1px solid rgba(39, 39, 42, 0.8); /* zinc-800/80 */
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(12px);
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--bone);
}

.mark:hover {
  color: var(--accent);
}

.mark-glyph {
  display: grid;
  place-items: center;
  color: var(--accent);
}

.mark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.mark-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
}

.mark-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  color: var(--bone-dim);
}

.nav {
  display: none;
  gap: 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  color: var(--bone-dim);
}

.nav a:hover {
  color: var(--accent);
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
  border-bottom: 1px solid rgba(39, 39, 42, 0.9);
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3rem;
    padding-top: 4.5rem;
    padding-bottom: 5rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--glow);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.6rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--bone);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.lede {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: var(--bone-dim);
  font-size: 0.9375rem; /* text-[15px] on ivdb */
  line-height: 1.625;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: transparent;
  border-color: rgba(16, 185, 129, 0.5);
  color: var(--accent);
}

.btn-primary:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--accent);
  color: var(--accent-bright);
}

.btn-ghost {
  color: var(--bone-dim);
  border-color: #27272a;
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  color: var(--bone);
}

.fine-print {
  max-width: 36rem;
  margin: 1.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--bone-faint);
}

.fine-print.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Globe stage */
.hero-orb {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.orb-halo {
  position: absolute;
  inset: 8% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

#globe {
  position: relative;
  width: min(100%, 420px);
  height: auto;
  aspect-ratio: 1;
  max-width: 420px;
}

.orb-caption {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* Panels */
.panel {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem;
  border-bottom: 1px solid rgba(39, 39, 42, 0.9);
}

.panel-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--bone);
}

.section-lede {
  margin: 1rem 0 0;
  color: var(--bone-dim);
  font-size: 0.9375rem;
  line-height: 1.625;
}

.notice-heading {
  max-width: 40rem;
}

.notice-heading .notice-label {
  display: inline-block;
  margin-right: 0.4em;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.55em;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.18em;
  vertical-align: middle;
  position: relative;
  top: -0.15em;
}

.ops-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .ops-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ops-grid li {
  padding: 1.25rem 1.25rem;
  background: var(--panel-soft);
  border: 1px solid #27272a;
  border-radius: 0.75rem; /* rounded-xl */
}

.ops-grid h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--bone);
}

.ops-grid p {
  margin: 0;
  color: var(--bone-dim);
  font-size: 0.875rem;
  line-height: 1.625;
}

/* Doctrine */
.panel-doctrine {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(16, 185, 129, 0.04) 40%,
    transparent
  );
}

.doctrine {
  margin: 0 0 2.5rem;
  padding: 1.75rem 1.5rem;
  border-left: 2px solid var(--accent-deep);
  background: rgba(16, 185, 129, 0.06);
  border-radius: 0 0.5rem 0.5rem 0;
}

.doctrine p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--bone);
}

.doctrine footer {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--bone-faint);
}

.tenets {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .tenets {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.tenets article {
  padding-top: 0.5rem;
  border-top: 1px solid #27272a;
}

.tenet-n {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.tenets h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--bone);
}

.tenets p {
  margin: 0;
  color: var(--bone-dim);
  font-size: 0.875rem;
  line-height: 1.625;
}

/* Holdings — person-card style from ivdb */
.holdings {
  display: grid;
  gap: 0.75rem;
}

.holding {
  display: grid;
  gap: 0.4rem;
  padding: 1.25rem 1.25rem;
  background: var(--panel-soft);
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

a.holding:hover {
  background: var(--panel);
  border-color: rgba(16, 185, 129, 0.4); /* emerald-500/40 */
  color: inherit;
}

a.holding:hover .holding-name {
  color: #fff;
}

.holding-inert {
  opacity: 0.75;
}

.holding-div {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: rgba(52, 211, 153, 0.9); /* emerald-400/90 */
}

.holding-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--bone);
  transition: color 0.15s ease;
}

.holding-desc {
  color: var(--bone-dim);
  font-size: 0.875rem;
  line-height: 1.625;
  max-width: 42rem;
}

.holding-meta {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* Contact */
.panel-contact {
  text-align: center;
}

.panel-contact .panel-head {
  margin-left: auto;
  margin-right: auto;
}

.contact-line {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
}

.contact-line a {
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid rgba(52, 211, 153, 0.35);
}

.contact-line a:hover {
  color: var(--accent-bright);
  border-color: var(--accent-bright);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-mark {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--bone);
}

.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--bone-dim);
}

.footer-legal {
  margin: 0;
  max-width: 40rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: var(--bone-faint);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pulse {
    animation: none;
  }
}
