@import url("https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --bg: #fbfbf7;
  --surface: #f3f4ee;
  --surface-2: #eef2ea;
  --ink: #16191d;
  --muted: #5f6864;
  --line: #d5dbd2;
  --accent: #2a7f62;
  --accent-soft: rgba(42,127,98,.12);
  --accent-strong: #1f5e49;
  --blue: #173548;
  --max: min(1120px, 92vw);
  --radius: 22px;
  --section: clamp(3.5rem, 6vw, 6rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(42,127,98,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,127,98,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.22), transparent 65%);
  opacity: .5;
}

a { color: inherit; }

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 999;
  background: var(--accent);
  color: white;
  padding: .7rem 1rem;
  border-radius: 999px;
}

.skip-link:focus { left: 1rem; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,251,247,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: var(--max);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  font-weight: 600;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #f6f6f1;
  border: 1px solid #0d2533;
  font-family: "Courier Prime", "Courier New", monospace;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.brand-name { font-size: 1rem; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.nav-links a {
  text-decoration: none;
  font-size: .93rem;
  padding: .3rem .1rem;
  margin-left: 1.15rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.5rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 0 2.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--accent);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--accent);
  animation: pulseLine 3s ease-in-out infinite;
}

@keyframes pulseLine {
  0%, 100% { transform: scaleX(.75); opacity: .55; }
  50% { transform: scaleX(1); opacity: 1; }
}

.hero h1 {
  margin: 0;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 700;
}

.position {
  margin: 1rem 0 .9rem;
  font-size: 1.05rem;
  color: #24312d;
  max-width: 40rem;
}

.hero p {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.8rem;
}

.btn {
  text-decoration: none;
  padding: .85rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(31,94,73,.08);
}

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

.hero-meta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.hero-meta span {
  font-size: .86rem;
  padding: .34rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
}

.photo-panel {
  position: relative;
  padding: 14px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(238,242,234,.86));
  box-shadow: 0 16px 40px rgba(11,20,16,.06);
}

.photo-panel::before {
  content: "";
  position: absolute;
  inset: -10px 40px auto auto;
  width: 108px;
  height: 108px;
  background: radial-gradient(circle at center, rgba(42,127,98,.15), transparent 65%);
  filter: blur(8px);
  pointer-events: none;
  animation: floatBlob 6s ease-in-out infinite;
}

@keyframes floatBlob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(22,25,29,.08);
  background: #d9ddd7;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 35%, transparent 65%, rgba(42,127,98,.10));
}

.photo-panel .scan {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  height: 16px;
  overflow: hidden;
  opacity: .9;
}

.photo-panel .scan::before {
  content: "";
  position: absolute;
  inset: 7px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan 3.2s ease-in-out infinite;
}

@keyframes scan {
  0% { transform: translateX(-25%); opacity: 0; }
  20% { opacity: 1; }
  50% { transform: translateX(25%); opacity: 1; }
  100% { transform: translateX(60%); opacity: 0; }
}

main {
  width: var(--max);
  margin: 0 auto;
  padding-bottom: 4rem;
}

.section {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.section-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(1.3rem, 4vw, 3.2rem);
}

.section-title {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent);
  padding-top: .35rem;
}

.section-content > *:first-child { margin-top: 0; }

.section-content p { margin: 0 0 1rem; }

.muted { color: var(--muted); }

.simple-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}

.panel {
  background: rgba(255,255,255,.68);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
}

.panel h3 {
  margin: 0 0 .55rem;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 1.05rem;
}

.meta {
  color: var(--muted);
  font-size: .9rem;
}

.stack {
  display: grid;
  gap: .8rem;
}

.timeline-item,
.list-item {
  padding: 0 0 .95rem 1.05rem;
  border-left: 1px solid var(--line);
  position: relative;
}

.timeline-item:last-child,
.list-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before,
.list-item::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: -5px;
  top: .42rem;
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.research-list {
  counter-reset: research;
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
  display: grid;
  gap: .85rem;
}

.research-list li {
  counter-increment: research;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.68);
  padding: .95rem 1rem .95rem 3.35rem;
  position: relative;
}

.research-list li::before {
  content: counter(research);
  position: absolute;
  left: .85rem;
  top: .88rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  font-size: .85rem;
  font-weight: 600;
}

.tags,
.inline-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: .6rem 0 0;
  padding: 0;
}

.tags li,
.inline-list li {
  padding: .36rem .62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  font-size: .88rem;
}

.course-list {
  columns: 2;
  column-gap: 2rem;
  margin: 0;
  padding-left: 1.2rem;
}

.course-list li {
  margin: .3rem 0;
  break-inside: avoid;
}

.pub-list {
  display: grid;
  gap: 1rem;
}

.pub {
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--line);
}

.pub:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pub strong {
  display: block;
  margin-bottom: .3rem;
}

.contact-box {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.contact-box a {
  text-decoration: none;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
}

.footer {
  width: var(--max);
  margin: 0 auto 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

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

.reveal-seq > * {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeInUp .75s ease forwards;
}

.reveal-seq > *:nth-child(2) { animation-delay: .08s; }
.reveal-seq > *:nth-child(3) { animation-delay: .16s; }
.reveal-seq > *:nth-child(4) { animation-delay: .24s; }
.reveal-seq > *:nth-child(5) { animation-delay: .32s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .nav-inner {
    align-items: flex-start;
    padding: .85rem 0;
    flex-direction: column;
  }

  .nav-links a {
    margin-left: 0;
    margin-right: 1rem;
  }

  .hero-grid,
  .section-grid,
  .simple-grid {
    grid-template-columns: 1fr;
  }

  .course-list { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
/*visual icons*/

.section-title {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.section-title span {
  display: block;
}

.visual-icon {
  display: block;
  height: auto;
  object-fit: contain;
  opacity: 0.92;
  mix-blend-mode: multiply;
  transform-origin: center;
  animation: softZoomIn 0.9s ease both;
}

.visual-icon.dna {
  width: min(230px, 100%);
}

.visual-icon.book {
  width: min(250px, 100%);
}

.visual-icon.book-open {
  width: min(240px, 100%);
}

.visual-icon:hover {
  animation: softFlash 0.9s ease;
}

.panel-icon {
  width: 160px;
  max-width: 100%;
  height: auto;
  margin-bottom: 0.8rem;
  opacity: 0.88;
  mix-blend-mode: multiply;
}

@keyframes softZoomIn {
  from {
    opacity: 0;
    transform: scale(0.82);
  }

  to {
    opacity: 0.92;
    transform: scale(1);
  }
}

@keyframes softFlash {
  0%, 100% {
    opacity: 0.92;
  }

  35%, 70% {
    opacity: 0.38;
  }
}

.quote {
  position: relative;
  margin: 2rem 0;
  padding-left: 4rem;
  color: var(--accent-strong);
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: .85rem;
  width: 2.8rem;
  height: 1px;
  background: var(--accent);
}

.quote p {
  margin: 0;
}

.quote cite {
  display: block;
  margin-top: .45rem;
  color: var(--muted);
  font-style: normal;
  letter-spacing: .08em;
}
