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

* {
  margin: 0;
}

html {
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  background: #000;
  color: #fff;
}

html[data-theme="dark"] {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.6);
  --muted-strong: rgba(255, 255, 255, 0.8);
  --border: rgba(255, 255, 255, 0.18);
  --border-strong: rgba(255, 255, 255, 0.7);
  --panel: transparent;
  --panel-strong: transparent;
  --panel-soft: transparent;
  --shadow: rgba(0, 0, 0, 0.6);
  --accent: #fff;
  --accent-contrast: #000;
  --accent-soft: rgba(255, 255, 255, 0.12);
  --grid: rgba(255, 255, 255, 0.04);
  --grain: rgba(255, 255, 255, 0.02);
}

html[data-theme="light"] {
  --bg: #fff;
  --fg: #000;
  --muted: rgba(0, 0, 0, 0.55);
  --muted-strong: rgba(0, 0, 0, 0.75);
  --border: rgba(0, 0, 0, 0.2);
  --border-strong: rgba(0, 0, 0, 0.7);
  --panel: transparent;
  --panel-strong: transparent;
  --panel-soft: transparent;
  --shadow: rgba(0, 0, 0, 0.15);
  --accent: #000;
  --accent-contrast: #fff;
  --accent-soft: rgba(0, 0, 0, 0.12);
  --grid: rgba(0, 0, 0, 0.05);
  --grain: rgba(0, 0, 0, 0.03);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
}

.page {
  animation: page-fade 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
  z-index: 2;
}

.panel,
.card,
.list-item,
.contact-card {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  animation: rise-in 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.panel:nth-of-type(1) {
  animation-delay: 180ms;
}

.panel:nth-of-type(2) {
  animation-delay: 360ms;
}

.panel:nth-of-type(3) {
  animation-delay: 540ms;
}

.panel:nth-of-type(4) {
  animation-delay: 720ms;
}

.panel:nth-of-type(5) {
  animation-delay: 900ms;
}

.card:nth-of-type(1),
.list-item:nth-of-type(1) {
  animation-delay: 360ms;
}

.card:nth-of-type(2),
.list-item:nth-of-type(2) {
  animation-delay: 520ms;
}

.card:nth-of-type(3),
.list-item:nth-of-type(3) {
  animation-delay: 680ms;
}

.card:nth-of-type(4) {
  animation-delay: 840ms;
}

.contact-card {
  animation-delay: 760ms;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

button,
[role="button"] {
  cursor: pointer;
  font: inherit;
}

code {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
}

.page {
  position: relative;
  z-index: 1;
  padding: 32px clamp(20px, 4vw, 64px) 64px;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.nav a {
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a:focus {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.timebox {
  text-align: right;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
}

.time-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--muted);
}

.time-value {
  font-size: 0.95rem;
  color: var(--muted-strong);
}

.layout {
  display: grid;
  gap: 24px;
}

.panel {
  padding: 32px;
  border-radius: 0;
  border: 1px solid var(--accent);
  background: var(--panel);
  box-shadow: none;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 16px 0;
  color: var(--accent);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-size: 1.05rem;
  color: var(--muted-strong);
}

.cta-row {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 0;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn:hover {
  background: var(--accent-soft);
  color: var(--fg);
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn.ghost:hover {
  background: var(--panel-soft);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-header.center {
  justify-content: center;
  text-align: center;
}

.section-header h2,
.panel h2 {
  color: var(--accent);
  letter-spacing: 0.02em;
}

.section-header p {
  color: var(--muted);
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border-radius: 0;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
}

.card h3 {
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--accent);
}

.card p {
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.card.compact {
  padding: 16px;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

.list {
  display: grid;
  gap: 16px;
}

.list-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: 0;
  border: 1px solid var(--accent);
  background: var(--panel-soft);
}

.label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}

.contact-card {
  border-radius: 0;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  text-align: right;
}

.contact-title {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--accent);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.footer.center {
  justify-content: center;
  text-align: center;
}

@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid-2,
  .grid-3,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .contact-card {
    text-align: left;
  }

  .footer {
    flex-direction: column;
  }
}

@keyframes page-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page,
  .panel,
  .card,
  .list-item,
  .contact-card {
    animation: none;
    transform: none;
    opacity: 1;
    filter: none;
  }
}
