/* --- Variables --- */
:root {
  --bg: #08080c;
  --bg-elevated: #0e0e14;
  --surface: #14141c;
  --text: #e8e6e3;
  --text-muted: #8c8a87;
  --accent: #d4a853;
  --accent-dim: rgba(212, 168, 83, 0.15);
  --accent-glow: rgba(212, 168, 83, 0.25);
  --border: rgba(255, 255, 255, 0.06);
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --space: 1.5rem;
  --radius: 8px;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Background layers --- */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* --- Layout --- */
main { position: relative; z-index: 1; }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space) 2rem;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 6rem;
  max-width: 52rem;
  margin: 0 auto;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}

.hero-title .line { display: block; }
.hero-title .accent { color: var(--accent); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 28rem;
  margin-top: 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: #e0b85c;
  box-shadow: 0 0 32px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.12);
}

.hero-visual {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: orb-float 12s ease-in-out infinite;
}

.orb-1 {
  width: 180px;
  height: 180px;
  background: var(--accent);
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.orb-2 {
  width: 120px;
  height: 120px;
  background: #6b5b95;
  top: 50%;
  left: 50%;
  animation-delay: -4s;
}

.orb-3 {
  width: 100px;
  height: 100px;
  background: #3d6b7a;
  bottom: 20%;
  right: 10%;
  animation-delay: -8s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(15px, -20px); }
  66% { transform: translate(-10px, 10px); }
}

/* --- Sections --- */
.section {
  padding: 6rem 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 3rem;
}

.section-headline em { color: var(--accent); font-style: italic; }

/* --- Cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(212, 168, 83, 0.2);
  box-shadow: 0 0 0 1px rgba(212, 168, 83, 0.1);
}

.card-icon {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

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

/* --- Philosophy --- */
.philosophy { background: var(--bg-elevated); }

.quote {
  margin: 0 0 3rem;
  padding: 0;
  border: none;
}

.quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-muted);
}

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

.phil-item .phil-num {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.phil-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.phil-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- CTA --- */
.cta {
  text-align: center;
  padding: 8rem 2rem;
}

.cta-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.cta-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.btn-large { padding: 1rem 2.25rem; font-size: 1rem; }

/* --- Footer --- */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-muted);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin: 0.25rem 0 0;
}

/* --- Reveal animation (initial state) --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .header { padding: var(--space) 1.25rem; }
  .nav { gap: 1.25rem; }
  .hero { padding: 6rem 1.25rem 4rem; }
  .hero-visual { display: none; }
  .section { padding: 4rem 1.25rem; }
  .cta { padding: 5rem 1.25rem; }
}
