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

:root {
  --ink: #0e0e0d;
  --paper: #f4f1eb;
  --paper-warm: #ede9e1;
  --slate: #1a1a18;
  --slate-mid: #2c2c28;
  --accent: #b5601a;
  --accent-light: #d4824a;
  --muted: #888680;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: background 0.4s, backdrop-filter 0.4s;
}
nav.scrolled {
  background: rgba(14,14,13,0.92);
  backdrop-filter: blur(12px);
}
.nav-name {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--paper);
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.3s;
}
nav.scrolled .nav-name { opacity: 1; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

/* Hamburger menu — mobile only */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* HERO */
.hero {
  min-height: 100svh;
  background: var(--slate);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0 2rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(181,96,26,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(181,96,26,0.06) 0%, transparent 50%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244,241,235,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,241,235,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0 3rem;
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.18;
  color: var(--paper);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.4s forwards;
}

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

.hero-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(244,241,235,0.6);
  max-width: 560px;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s 0.6s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid rgba(244,241,235,0.3);
  padding: 0.85rem 1.75rem;
  transition: border-color 0.2s, background 0.2s;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s forwards;
  width: fit-content;
}
.hero-cta:hover {
  border-color: var(--accent-light);
  background: rgba(181,96,26,0.1);
}
.hero-cta svg { width: 14px; height: 14px; }

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 2rem 0;
  border-top: 1px solid rgba(244,241,235,0.08);
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 1s 1s forwards;
}

.hero-credentials {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.hero-credentials span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244,241,235,0.35);
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244,241,235,0.3);
  flex-shrink: 0;
}
.hero-scroll-line {
  width: 32px;
  height: 1px;
  background: rgba(244,241,235,0.3);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* SECTIONS */
section { padding: 6rem 2rem; }

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

.section-heading {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.max-w { max-width: 780px; margin: 0 auto; }

/* APPROACH */
.approach { background: var(--paper); }

.approach-intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 4rem;
  line-height: 1.8;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid rgba(14,14,13,0.1);
}

.approach-item {
  padding: 2rem;
  border-right: 1px solid rgba(14,14,13,0.1);
  border-bottom: 1px solid rgba(14,14,13,0.1);
  transition: background 0.2s;
}
.approach-item:hover { background: var(--paper-warm); }

.approach-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: rgba(14,14,13,0.12);
  line-height: 1;
  margin-bottom: 1rem;
}

.approach-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.approach-body {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* CAREER */
.career {
  background: var(--slate);
  color: var(--paper);
}
.career .section-heading { color: var(--paper); }

.career-blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(244,241,235,0.1);
}

.career-block {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(244,241,235,0.1);
  align-items: start;
}

.career-block-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  padding-top: 0.25rem;
  line-height: 1.6;
}

.career-block-head {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--paper);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.career-block-body {
  font-size: 0.9rem;
  color: rgba(244,241,235,0.55);
  line-height: 1.8;
}

/* SANDBOX */
.sandbox { background: var(--paper-warm); }

.sandbox-intro {
  font-size: 1rem;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.sandbox-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.2rem;
  transition: color 0.2s, border-color 0.2s;
}
.sandbox-link:hover { color: var(--accent); }

/* CONTACT */
.contact {
  background: var(--slate-mid);
  color: var(--paper);
}
.contact .section-heading { color: var(--paper); }

.contact-sub {
  font-size: 1rem;
  color: rgba(244,241,235,0.55);
  max-width: 480px;
  margin-bottom: 3.5rem;
  line-height: 1.8;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(244,241,235,0.1);
  border: 1px solid rgba(244,241,235,0.1);
  margin-bottom: 3rem;
}

.contact-option {
  background: var(--slate-mid);
  padding: 2rem;
  text-decoration: none;
  color: var(--paper);
  transition: background 0.2s;
  display: block;
}
.contact-option:hover { background: rgba(181,96,26,0.15); }

.contact-option-icon {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.contact-option-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.contact-option-body {
  font-size: 0.82rem;
  color: rgba(244,241,235,0.45);
  line-height: 1.6;
}

.contact-direct {
  font-size: 0.82rem;
  color: rgba(244,241,235,0.4);
  letter-spacing: 0.04em;
}
.contact-direct a {
  color: var(--accent-light);
  text-decoration: none;
}
.contact-direct a:hover { text-decoration: underline; }

/* FOOTER */
footer {
  background: var(--ink);
  color: rgba(244,241,235,0.35);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
footer span { font-size: 0.78rem; letter-spacing: 0.04em; }
footer a {
  color: rgba(244,241,235,0.55);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
footer a:hover { color: var(--accent-light); }

/* REVEAL ON SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE */
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(14,14,13,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 90;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.15em;
    opacity: 0.8;
  }

  section { padding: 4rem 1.25rem; }

  .hero { padding: 0 1.25rem; }
  .hero-content { padding: 6rem 0 2rem; }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .hero-scroll { display: none; }

  .career-block {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .career-block-label { padding-top: 0; }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .contact-options {
    grid-template-columns: 1fr;
  }

  footer { padding: 1.5rem 1.25rem; }
}

@media (max-width: 400px) {
  .hero-headline { font-size: 2rem; }
  .section-heading { font-size: 1.6rem; }
}
