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

:root {
  --teal: #2AACBB;
  --teal-dark: #1d8a97;
  --teal-light: #e8f7f9;
  --ink: #1a1a1a;
  --ink-mid: #3d3d3d;
  --ink-light: #6b6b6b;
  --warm-white: #fafaf8;
  --white: #ffffff;
  --rule: #e8e8e4;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--warm-white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s;
}

nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.06); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo svg { width: auto; height: 36px; }
.nav-logo-img { height: 40px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  transition: color 0.2s;
}

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

.nav-links .nav-cta {
  background: var(--teal);
  color: white;
  padding: 8px 20px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  transition: background 0.2s;
}

.nav-links .nav-cta:hover { background: var(--teal-dark); color: white; }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 16px;
  min-width: 180px;
}
.nav-dropdown-menu-inner {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  overflow: hidden;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu-inner a {
  display: block;
  padding: 12px 20px;
  border-bottom: 1px solid var(--rule);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-mid) !important;
}
.nav-dropdown-menu-inner a:last-child { border-bottom: none; }
.nav-dropdown-menu-inner a:hover { background: var(--teal-light); color: var(--teal) !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding-top: 68px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  padding: 80px 64px 80px 80px;
  animation: fadeUp 0.8s ease both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--teal);
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero-body {
  font-size: 1.05rem;
  color: var(--ink-mid);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 44px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: white;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--teal); }
.btn-ghost::after { content: '→'; transition: transform 0.2s; }
.btn-ghost:hover::after { transform: translateX(4px); }

.hero-visual {
  height: 100vh;
  position: relative;
  background: #111;
  overflow: hidden;
  animation: fadeIn 1s ease 0.3s both;
}

.hero-drawing {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}

.hero-drawing svg {
  width: 100%;
  height: 100%;
  max-width: 560px;
  max-height: 640px;
}

/* Line draw animation */
.draw-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawIn 2s ease forwards;
}
.draw-line-fast {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawIn 1.2s ease forwards;
}
.draw-fade {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.d1 { animation-delay: 0.3s; }
.d2 { animation-delay: 0.5s; }
.d3 { animation-delay: 0.7s; }
.d4 { animation-delay: 0.9s; }
.d5 { animation-delay: 1.1s; }
.d6 { animation-delay: 1.3s; }
.d7 { animation-delay: 1.5s; }
.d8 { animation-delay: 1.7s; }
.d9 { animation-delay: 1.9s; }
.d10 { animation-delay: 2.1s; }
.d11 { animation-delay: 2.3s; }
.d12 { animation-delay: 2.5s; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeIn 1s ease 2s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(42,172,187,0.6), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ── SECTION COMMONS ── */
section { padding: 100px 80px; }

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--teal);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h2 em { font-style: italic; color: var(--teal); }

/* ── PILLARS ── */
.pillars {
  background: white;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.pillars-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}

.pillars-header-left { max-width: 560px; }
.pillars-header p {
  color: var(--ink-mid);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  margin-top: 16px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--rule);
}

.pillar-card {
  background: white;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card:hover { background: var(--teal-light); }

.pillar-number {
  font-family: var(--serif);
  font-size: 0.8rem;
  color: var(--teal);
  opacity: 0.6;
  margin-bottom: 24px;
  display: block;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  color: var(--teal);
}

.pillar-card h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.pillar-card p {
  font-size: 0.92rem;
  color: var(--ink-mid);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 32px;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.pillar-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(42,172,187,0.3);
  padding: 4px 10px;
  border-radius: 2px;
}

.pillar-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.pillar-card:hover .pillar-link { color: var(--teal); }
.pillar-link::after { content: '→'; transition: transform 0.2s; }
.pillar-card:hover .pillar-link::after { transform: translateX(4px); }

/* ── PHILOSOPHY ── */
.philosophy {
  background: var(--ink);
  color: white;
  padding: 100px 80px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.philosophy-left .section-eyebrow { color: var(--teal); }
.philosophy-left .section-eyebrow::before { background: var(--teal); }

.philosophy-left h2 { color: white; }

.philosophy-body {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
  margin-top: 24px;
  margin-bottom: 40px;
}

.philosophy-principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.principle {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

.principle-num {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.principle h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: white;
  margin-bottom: 8px;
  font-weight: 400;
}

.principle p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  font-weight: 300;
}

/* ── LABS PREVIEW ── */
.labs-preview {
  background: var(--warm-white);
  border-bottom: 1px solid var(--rule);
}

.labs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}

.labs-header p {
  max-width: 420px;
  color: var(--ink-mid);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
}

.labs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lab-item {
  background: white;
  border: 1px solid var(--rule);
  padding: 32px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.lab-item:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.lab-item-type {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.lab-item h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.3;
}

.lab-item p {
  font-size: 0.875rem;
  color: var(--ink-light);
  line-height: 1.65;
  font-weight: 300;
}

.lab-item-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.lab-item:hover .lab-item-footer { color: var(--teal); }
.lab-item-footer::after { content: '→'; }

/* ── INSIGHTS ── */
.insights-section {
  background: white;
  border-top: 1px solid var(--rule);
}

.insights-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}

.insights-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.insight-featured {
  background: var(--ink);
  padding: 48px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  color: inherit;
  transition: transform 0.3s;
}

.insight-featured:hover { transform: translateY(-3px); }

.insight-featured::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
}

.insight-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  display: block;
}

.insight-featured h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: white;
  line-height: 1.25;
  margin-bottom: 16px;
}

.insight-featured p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 32px;
}

.insight-meta {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

.insights-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--rule);
}

.insight-item {
  background: white;
  padding: 28px 32px;
  text-decoration: none;
  display: block;
  color: inherit;
  transition: background 0.2s;
}

.insight-item:hover { background: var(--teal-light); }

.insight-item .insight-tag { color: var(--teal); }

.insight-item h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 8px;
}

.insight-item .insight-meta { color: var(--ink-light); }

/* ── CTA ── */
.cta-section {
  background: var(--teal);
  padding: 100px 80px;
  text-align: center;
}

.cta-section .section-eyebrow {
  justify-content: center;
  color: rgba(255,255,255,0.7);
}

.cta-section .section-eyebrow::before { background: rgba(255,255,255,0.5); }

.cta-section h2 {
  color: white;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 20px;
}

.cta-section p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  display: inline-block;
  background: white;
  color: var(--teal);
  padding: 14px 36px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

.btn-outline-white {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.5);
  color: white;
  padding: 14px 36px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 60px 80px 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-brand .nav-wordmark { color: white; font-size: 1.3rem; display: block; margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s;
}

.footer-social:hover { border-color: var(--teal); color: var(--teal); }

.footer-col h5 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a {
  text-decoration: none;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--teal); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--teal); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drawIn {
  to { stroke-dashoffset: 0; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── MOBILE NAV ── */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 4px;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  section { padding: 72px 24px; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 60px 24px; }
  .hero-visual { height: 50vw; min-height: 280px; }

  .pillars-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pillars-grid { grid-template-columns: 1fr; }

  .philosophy-grid { grid-template-columns: 1fr; gap: 48px; }
  .philosophy-principles { grid-template-columns: 1fr; }

  .labs-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .labs-grid { grid-template-columns: 1fr; }

  .insights-grid { grid-template-columns: 1fr; }
  .insights-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  .footer-top { grid-template-columns: 1fr 1fr; }

  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
}
