:root {
  color-scheme: light;
  --ink: #0e0f1a;
  --ink-soft: #2b2f3a;
  --muted: #6a6d7a;
  --paper: #f5f0eb;
  --accent: #ff6b4a;
  --accent-2: #0ab2a2;
  --glass: rgba(255, 255, 255, 0.7);
  --surface: rgba(255, 255, 255, 0.85);
  --surface-strong: #ffffff;
  --chip-bg: rgba(14, 15, 26, 0.08);
  --border: rgba(14, 15, 26, 0.08);
  --header-bg: rgba(246, 240, 235, 0.8);
  --bg: radial-gradient(circle at top, #fff6ee 0%, #f6efe9 45%, #eee8e3 100%);
  --noise-opacity: 0.06;
  --beam-1: rgba(255, 107, 74, 0.25);
  --beam-2: rgba(10, 178, 162, 0.2);
  --beam-3: rgba(14, 15, 26, 0.18);
  --logo-bg: #0e0f1a;
  --logo-ink: #fff6ee;
  --shadow: 0 30px 60px rgba(14, 15, 26, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f3ef;
  --ink-soft: #c7c6cc;
  --muted: #9b9aa3;
  --paper: #0f1117;
  --accent: #ff8a6b;
  --accent-2: #3dd4c3;
  --glass: rgba(18, 21, 28, 0.72);
  --surface: rgba(22, 25, 32, 0.9);
  --surface-strong: #141821;
  --chip-bg: rgba(245, 243, 239, 0.08);
  --border: rgba(245, 243, 239, 0.08);
  --header-bg: rgba(16, 18, 24, 0.8);
  --bg: radial-gradient(circle at top, #1a1f2a 0%, #0f1117 50%, #0b0d12 100%);
  --noise-opacity: 0.12;
  --beam-1: rgba(255, 138, 107, 0.24);
  --beam-2: rgba(61, 212, 195, 0.18);
  --beam-3: rgba(245, 243, 239, 0.1);
  --logo-bg: #f5f3ef;
  --logo-ink: #0e0f1a;
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

main {
  padding: 140px 7vw 120px;
  position: relative;
  z-index: 1;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
  opacity: var(--noise-opacity);
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.beam {
  position: absolute;
  filter: blur(10px);
  opacity: 0.6;
  border-radius: 999px;
  animation: drift 18s ease-in-out infinite;
}

.beam-1 {
  width: 320px;
  height: 420px;
  background: var(--beam-1);
  top: -80px;
  left: -60px;
}

.beam-2 {
  width: 280px;
  height: 380px;
  background: var(--beam-2);
  top: 25%;
  right: -80px;
  animation-delay: -6s;
}

.beam-3 {
  width: 260px;
  height: 320px;
  background: var(--beam-3);
  bottom: -60px;
  left: 20%;
  animation-delay: -12s;
}

@keyframes drift {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(30px) translateX(18px);
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 22px 7vw;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--logo-bg);
  color: var(--logo-ink);
  display: grid;
  place-items: center;
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(14, 15, 26, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
  margin-bottom: 120px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.8rem, 4.6vw, 4.6rem);
  margin: 0 0 20px;
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 10px;
}

.chip-row span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  font-size: 0.85rem;
}

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

.cta {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  background: var(--accent);
  color: #fff6ee;
  box-shadow: 0 14px 30px rgba(255, 107, 74, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta.small {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.cta.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(14, 15, 26, 0.18);
  box-shadow: none;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(14, 15, 26, 0.18);
}

.hero-card {
  background: var(--glass);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: grid;
  gap: 18px;
}

.hero-card img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.hero-card h2 {
  margin: 0;
}

.hero-card-body p {
  margin: 6px 0 0;
  color: var(--muted);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.section-header {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
}

.section-header h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin: 0;
}

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

.about,
.focus,
.contact {
  margin-bottom: 120px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
}

.about-text p {
  line-height: 1.7;
  color: var(--ink-soft);
}

.about-text a {
  color: var(--accent);
  text-decoration: underline;
}

.about-panels {
  display: grid;
  gap: 16px;
}

.panel {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(14, 15, 26, 0.08);
}

.panel h3 {
  margin: 0 0 8px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.focus-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.focus-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.contact-item {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  transition: transform 0.2s ease, border 0.2s ease;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--chip-bg);
  font-size: 1.1rem;
}

.contact-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.contact-item strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.contact-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.site-footer {
  padding: 32px 7vw 40px;
  text-align: center;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  main {
    padding: 120px 6vw 90px;
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-card {
    padding: 18px;
  }
}
