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

:root {
  --white: #ffffff;
  --black: #0f0f0f;
  --ink-80: rgba(15,15,15,0.90);
  --ink-50: rgba(15,15,15,0.80);
  --ink-30: rgba(15,15,15,0.64);
  --ink-10: rgba(15,15,15,0.10);
  --ink-05: rgba(15,15,15,0.05);
  --measure: 68ch;
  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

p {
  text-align: justify;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 72px;
  background: rgba(15,15,15,0.98);
  border-bottom: 1px solid transparent;
  transition: border-color 0.45s, opacity 0.45s ease, transform 0.45s ease;
  opacity: 0;
  transform: translateY(-6px);
  animation: nav-enter 0.45s ease forwards;
}
nav.scrolled {
  padding: 30px 72px;
  border-color: var(--ink-10);
}
.nav-name {
  font-family: var(--sans);
  font-size: 34px;
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
  text-decoration: none;
}
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  text-transform: uppercase;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a.active {
  border-bottom: 1px solid var(--white);
}
.nav-toggle {
  display: none;
  width: 28px;
  height: 22px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── PAGE WRAPPER ─── */
.page {
  padding-top: 100px;
  min-height: 100vh;
}

/* ─── SECTION LAYOUT ─── */
.section-wrap {
  padding: 110px 72px 150px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 96px;
  margin-bottom: 108px;
  align-items: end;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--ink-10);
}
.section-header-full {
  margin-bottom: 108px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--ink-10);
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-30);
  margin-bottom: 16px;
  display: none;
}
.section-title {
  font-family: var(--sans);
  font-size: clamp(44px, 5vw, 78px);
  font-weight: 200;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1.06;
}
.section-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--ink-80);
  max-width: var(--measure);
  align-self: end;
}

/* ─── STUDIES ─── */
.studies-cards {
  display: flex; flex-direction: column;
}
.study-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: start;
  padding: 58px 0;
  border-bottom: 1px solid var(--ink-10);
  text-decoration: none;
  color: inherit;
  transition: background 0.22s ease;
}
.study-card:first-child { border-top: 1px solid var(--ink-10); }
.study-card:hover {
  background: linear-gradient(90deg, var(--ink-05), transparent 55%);
}
.study-card:hover .study-title { color: var(--ink-80); }
.study-card:hover .study-arrow { opacity: 1; transform: translateX(0); }
.study-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-30);
  margin-bottom: 20px;
}
.study-title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--black);
  margin-bottom: 20px;
  max-width: 24ch;
  transition: color 0.22s ease;
}
.study-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--ink-80);
  max-width: var(--measure);
}
.study-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.study-time {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-30);
  white-space: nowrap;
}
.study-arrow {
  font-size: 14px;
  color: var(--ink-50);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}

/* ─── STUDY PDF PAGE ─── */
.pdf-wrap {
  border: 1px solid var(--ink-10);
  background: var(--ink-05);
  margin-top: 28px;
}
.pdf-frame {
  width: 100%;
  height: min(78vh, 920px);
  border: 0;
  display: block;
  background: var(--white);
}
.pdf-actions {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.pdf-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-50);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-10);
  padding-bottom: 2px;
}
.pdf-link:hover {
  color: var(--black);
  border-bottom-color: var(--ink-30);
}
.email-gate {
  border: 1px solid var(--ink-10);
  background: var(--white);
  padding: 28px;
  margin-top: 28px;
  max-width: 560px;
}
.email-gate h2 {
  font-size: 22px;
  font-weight: 300;
  margin-bottom: 10px;
  color: var(--black);
}
.email-gate p {
  font-size: 14px;
  color: var(--ink-80);
  margin-bottom: 16px;
}
.email-gate-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.email-gate-form label {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-50);
}
.email-gate-form input {
  width: 100%;
  border: 1px solid var(--ink-10);
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
}
.email-gate-form button {
  border: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  cursor: pointer;
}
.email-gate-error {
  margin-top: 10px;
  color: #9a1c1c;
  font-size: 12px;
  min-height: 16px;
}
.email-gate-status {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-50);
  min-height: 16px;
}
.email-gate-success {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-80);
  min-height: 16px;
}
.pdf-fallback {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-80);
}
.hidden {
  display: none !important;
}

/* ─── FIELD NOTES ─── */
.notes-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 96px;
  align-items: start;
}
.notes-sidebar-desc,
.ideas-sidebar-desc,
.bg-sidebar-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-50);
  margin-top: 24px;
}
.note-entries { display: flex; flex-direction: column; }
.note-entry {
  padding: 50px 0;
  border-bottom: 1px solid var(--ink-10);
}
.note-entry:first-child { border-top: 1px solid var(--ink-10); }
.note-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px; gap: 24px;
}
.note-title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--black);
  line-height: 1.35;
}
.note-excerpt {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-80);
}
.note-tag {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-30);
  border: 1px solid var(--ink-10);
  padding: 5px 12px;
}

/* ─── APPLIED WORK ─── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.work-card {
  background: var(--white);
  border: 1px solid var(--ink-10);
  padding: 38px 34px 40px;
  transition: border-color 0.2s, background 0.2s;
}
.work-card:hover {
  background: var(--ink-05);
  border-color: var(--ink-30);
}
.work-card-type {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-30);
  margin-bottom: 24px;
}
.work-card-title {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--black);
  margin-bottom: 16px;
}
.work-card-body {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-80);
}
.page-link {
  display: inline-block;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  background: var(--black);
  border: 1px solid var(--black);
  padding: 12px 18px;
  transition: background 0.2s ease, color 0.2s ease;
}
.page-link:hover {
  background: var(--white);
  color: var(--black);
}

/* ─── IDEAS ─── */
.ideas-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 96px;
}
.ideas-fragments { display: flex; flex-direction: column; }
.idea-fragment {
  padding: 46px 0;
  border-bottom: 1px solid var(--ink-10);
}
.idea-fragment:first-child { border-top: 1px solid var(--ink-10); }
.idea-marker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-30);
  margin-bottom: 16px;
}
.idea-text {
  font-size: clamp(18px, 1.9vw, 25px);
  font-weight: 200;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: var(--ink-80);
}
.idea-domain {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-30);
}

/* ─── BACKGROUND ─── */
.bg-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 96px;
  align-items: start;
}
.bg-text p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--ink-80);
  max-width: var(--measure);
  margin-bottom: 34px;
}
.bg-text p:last-of-type { margin-bottom: 0; }
.bg-domains {
  margin-top: 52px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.bg-domain {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-50);
  border: 1px solid var(--ink-10);
  padding: 7px 14px;
}

/* ─── FOOTER ─── */
footer {
  padding: 56px 72px 44px;
  border-top: 1px solid var(--ink-10);
  margin-top: 96px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-quote {
  font-size: 12px;
  font-weight: 200;
  font-style: italic;
  color: var(--ink-30);
}
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-30);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--black); }

/* ─── REVEAL ─── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.07s; }
.d2 { transition-delay: 0.14s; }
.d3 { transition-delay: 0.21s; }
.d4 { transition-delay: 0.28s; }
@keyframes nav-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  nav {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 20px 24px; }
  .nav-name { font-size: 26px; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(15,15,15,1);
    border-bottom: 1px solid rgba(255,255,255,0.18);
  }
  .nav-links.show { display: flex; }
  .nav-links li { border-top: 1px solid rgba(255,255,255,0.12); }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 11px;
  }
  .section-wrap { padding: 76px 24px 92px; }
  .page { padding-top: 88px; }
  .section-header,
  .section-header-full {
    margin-bottom: 76px;
    padding-bottom: 48px;
  }
  .section-header { grid-template-columns: 1fr; gap: 28px; }
  .section-title { font-size: clamp(34px, 11vw, 52px); }
  .section-desc,
  .study-desc,
  .note-excerpt,
  .work-card-body,
  .bg-text p { font-size: 15px; line-height: 1.8; }
  .notes-layout,
  .ideas-layout,
  .bg-layout { grid-template-columns: 1fr; gap: 48px; }
  .work-grid { grid-template-columns: 1fr; gap: 16px; }
  .work-card { padding: 30px 24px 32px; }
  .study-card { grid-template-columns: 1fr; }
  .study-meta { flex-direction: row; }
  .study-title { max-width: none; }
  footer { flex-direction: column; align-items: flex-start; gap: 20px; padding: 44px 24px 32px; }
}

@media (max-width: 640px) {
  .email-gate-form {
    grid-template-columns: 1fr;
  }
}
