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

:root {
  --blue: #1E6DB5;
  --blue-light: #4A9EDB;
  --dark: #0d1117;
  --dark-border: rgba(255,255,255,0.07);
  --dark-text: rgba(255,255,255,0.55);
  --dark-muted: rgba(255,255,255,0.4);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: #111;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── HERO ── */
.hero {
  background: var(--dark);
  padding: 3.5rem 2.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 0.5px solid rgba(255,255,255,0.04);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 0.5px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 4.5rem;
  position: relative;
  z-index: 2;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
}

.nav-name {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.nav-tag {
  font-size: 11px;
  font-weight: 300;
  color: var(--dark-muted);
  letter-spacing: 0.05em;
}

/* ── HERO CONTENT ── */
.hero-content { position: relative; z-index: 2; }

.headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 620px;
}

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

.sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--dark-text);
  max-width: 460px;
  margin-bottom: 2.75rem;
}

.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 13px 28px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: #1a5fa0; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 13px 28px;
  border-radius: 2px;
  border: 0.5px solid rgba(255,255,255,0.2);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ── SECTIONS ── */
.section {
  padding: 4rem 2.5rem;
  border-top: 0.5px solid #e5e5e5;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* Full-width wrapper for sections that need edge-to-edge */
.section-full {
  border-top: 0.5px solid #e5e5e5;
}
.section-full > .section { border-top: none; }

.overline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}

.title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: 520px;
}

.body-text {
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.9;
  color: #555;
  max-width: 600px;
}

/* ── THREE GRID ── */
.three-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: #e5e5e5;
  border: 0.5px solid #e5e5e5;
  margin-top: 2.5rem;
}

.three-item {
  background: #fff;
  padding: 2rem 1.5rem;
}

.three-n {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.three-title {
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
  color: #111;
}

.three-body {
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.75;
  color: #666;
}

/* ── LAB ── */
.lab {
  background: var(--dark);
  padding: 4rem 2.5rem;
  border-top: 0.5px solid var(--dark-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.lab-overline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.25rem;
}

.lab-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1.25rem;
}

.lab-body {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--dark-text);
  margin-bottom: 2rem;
}

.lab-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 0.5px solid rgba(74,158,219,0.35);
  padding-bottom: 2px;
  transition: border-color 0.15s;
}
.lab-link:hover { border-color: var(--blue-light); }

.lab-card {
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2.25rem;
  background: rgba(255,255,255,0.03);
}

.lab-card-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.25rem;
}

.lab-card-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  margin-bottom: 1.5rem;
}

.lab-card-url {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  font-weight: 300;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-initial {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #1E3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue-light);
  flex-shrink: 0;
}

.about-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #111;
}

.about-role {
  font-size: 11px;
  color: var(--blue);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ── FORM ── */
.form-section {
  background: var(--dark);
  padding: 4rem 2.5rem 5rem;
  border-top: 0.5px solid var(--dark-border);
}

.form-wrap { max-width: 500px; }

.form-overline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.25rem;
}

.form-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1rem;
}

.form-sub {
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2.25rem;
  line-height: 1.75;
}

.form-row { margin-bottom: 1.1rem; }

.form-row label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.45rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 11px 15px;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  font-weight: 300;
  color: #fff;
  outline: none;
  transition: border-color 0.15s;
}

.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(255,255,255,0.25); }

.form-row input:focus,
.form-row textarea:focus { border-color: var(--blue); }

.form-row textarea {
  resize: vertical;
  min-height: 110px;
}

.submit-btn {
  width: 100%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.15s;
}
.submit-btn:hover { background: #1a5fa0; }
.submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.success-msg {
  display: none;
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 0.5px solid rgba(74,158,219,0.4);
  border-radius: 8px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  line-height: 1.75;
}

.success-msg a { color: var(--blue-light); }

/* ── FOOTER ── */
.footer {
  padding: 1.75rem 2.5rem;
  border-top: 0.5px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  object-fit: cover;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #111;
}

.footer-tag {
  font-size: 0.78rem;
  color: #888;
  font-weight: 300;
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .hero { padding: 2.5rem 1.5rem 4rem; }
  .section { padding: 3rem 1.5rem; }
  .lab { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.5rem; }
  .form-section { padding: 3rem 1.5rem 4rem; }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer { padding: 1.5rem; }
  .nav { margin-bottom: 3rem; }
}

@media (max-width: 420px) {
  .btn-row { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }
}
