:root {
  --navy: #071722;
  --navy-soft: #0d2431;
  --paper: #f4f2ec;
  --white: #fffefa;
  --ink: #10242b;
  --muted: #5e6c70;
  --teal: #4ec2b6;
  --teal-dark: #176f6b;
  --coral: #f58d78;
  --line: rgba(16, 36, 43, .16);
  --max: 1240px;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.6; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--white); color: var(--ink); padding: .7rem 1rem; border-radius: .25rem; }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: 82px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; color: white; transition: background .25s, height .25s, box-shadow .25s; }
.site-header.scrolled { height: 68px; background: rgba(7, 23, 34, .94); backdrop-filter: blur(14px); box-shadow: 0 1px rgba(255,255,255,.08); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: var(--teal); font-size: .68rem; letter-spacing: .05em; }
.site-nav { display: flex; align-items: center; gap: 2.1rem; }
.site-nav a { position: relative; color: rgba(255,255,255,.8); text-decoration: none; font-size: .77rem; letter-spacing: .09em; text-transform: uppercase; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.45rem; height: 1px; background: var(--teal); transition: right .2s; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.site-nav a:hover, .site-nav a:focus-visible { color: white; }
.site-nav .nav-cta { border: 1px solid rgba(255,255,255,.38); border-radius: 100px; padding: .62rem 1.15rem; }
.site-nav .nav-cta:hover { background: white; color: var(--navy); }
.menu-button { display: none; }

.hero { position: relative; min-height: 760px; height: 100svh; background: var(--navy); color: white; overflow: hidden; display: flex; align-items: center; }
.hero-image { position: absolute; inset: 0; background: url("assets/biomedical-hero.png") center / cover no-repeat; animation: reveal 1.4s ease both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,14,23,.96) 0%, rgba(4,18,28,.82) 37%, rgba(4,19,29,.22) 66%, rgba(3,14,23,.22) 100%), linear-gradient(0deg, rgba(3,14,23,.58), transparent 44%); }
.hero-content { position: relative; z-index: 2; width: min(790px, 73%); padding: 7rem var(--pad) 3rem; }
.eyebrow, .overline { margin: 0 0 1.8rem; color: var(--teal); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: .8rem; color: rgba(255,255,255,.7); }
.eyebrow span { width: 34px; height: 1px; background: var(--coral); }
h1, h2, h3 { margin: 0; font-weight: 520; line-height: 1.06; letter-spacing: -.035em; }
h1 { max-width: 790px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6.2vw, 6.4rem); }
h1 em { color: var(--teal); font-weight: 400; }
.hero-copy { max-width: 620px; margin: 2rem 0 0; color: rgba(255,255,255,.72); font-size: clamp(1rem, 1.5vw, 1.22rem); }
.hero-actions { display: flex; gap: 1rem; align-items: center; margin-top: 2.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; padding: .92rem 1.25rem; text-decoration: none; font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; border-radius: 2px; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--coral); color: #101d22; }
.button-primary:hover { background: #ffad9d; }
.button-quiet { color: white; border-bottom: 1px solid rgba(255,255,255,.42); padding-left: .35rem; padding-right: .35rem; }
.hero-index { position: absolute; z-index: 2; right: var(--pad); bottom: 2.7rem; display: flex; gap: 1.4rem; align-items: center; color: rgba(255,255,255,.6); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; writing-mode: vertical-rl; }
.hero-index span:first-child { color: var(--coral); }

.section { max-width: var(--max); margin: 0 auto; padding: clamp(6rem, 11vw, 10rem) var(--pad); }
.section-label { color: var(--teal-dark); font-size: .68rem; letter-spacing: .17em; text-transform: uppercase; font-weight: 750; }
.intro { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 4fr); gap: 3rem; }
.intro h2 { max-width: 1000px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 4vw, 4.2rem); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); margin-top: 3.6rem; color: var(--muted); font-size: 1.02rem; }
.intro-grid p { margin: 0; }
.overline { margin-bottom: 1.3rem; }

.focus { border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 3.7rem; }
.section-heading h2 { margin-top: .7rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 4vw, 4rem); }
.section-heading > p { max-width: 420px; margin: 0; color: var(--muted); }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.focus-card { position: relative; min-height: 360px; padding: 2rem; background: var(--paper); transition: transform .25s, background .25s, color .25s; }
.focus-card.featured { background: var(--navy-soft); color: white; transform: translateY(-14px); box-shadow: 0 22px 50px rgba(7,23,34,.17); }
.focus-card:hover { transform: translateY(-8px); }
.focus-card.featured:hover { transform: translateY(-20px); }
.card-number { position: absolute; right: 1.6rem; top: 1.5rem; color: var(--teal-dark); font-size: .68rem; letter-spacing: .1em; }
.featured .card-number { color: var(--coral); }
.focus-icon { width: 56px; height: 56px; display: grid; place-items: center; margin: 4rem 0 5.8rem; border: 1px solid currentColor; border-radius: 50%; color: var(--teal-dark); font-size: 1.5rem; }
.featured .focus-icon { color: var(--teal); }
.focus-card h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; }
.focus-card p { color: var(--muted); font-size: .92rem; }
.featured p { color: rgba(255,255,255,.62); }

.work { max-width: none; background: var(--navy); color: white; padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); padding-right: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); }
.section-heading.light .section-label { color: var(--coral); }
.section-heading.light > p { color: rgba(255,255,255,.52); }
.project-list { border-top: 1px solid rgba(255,255,255,.2); }
.project { padding: 2rem 0 2.7rem; border-bottom: 1px solid rgba(255,255,255,.2); }
.project-meta { display: flex; justify-content: space-between; margin-bottom: 1.6rem; color: var(--teal); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.project-main { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 3rem; }
.project-main > div { display: flex; align-items: baseline; gap: 1rem; }
.project-number { color: var(--coral); font-size: .68rem; }
.project h3 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.8rem); }
.project p { max-width: 470px; margin: 0; color: rgba(255,255,255,.59); }

.contact { text-align: center; max-width: 1000px; }
.contact h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 5.2vw, 5rem); }
footer { max-width: var(--max); margin: 0 auto; padding: 2rem var(--pad); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-brand { color: var(--ink); }
.footer-brand .brand-mark { border-color: var(--line); color: var(--teal-dark); }

@keyframes reveal { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 820px) {
  .menu-button { display: grid; gap: 6px; width: 42px; height: 42px; place-content: center; background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: white; }
  .menu-button span:not(.sr-only) { display: block; width: 17px; height: 1px; background: currentColor; transition: transform .2s; }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 1.4rem var(--pad) 2rem; background: rgba(7,23,34,.97); flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .85rem 0; }
  .site-nav .nav-cta { text-align: center; margin-top: .5rem; }
  .hero { min-height: 700px; }
  .hero-content { width: 100%; padding-top: 7rem; }
  .hero-image { background-position: 62% center; opacity: .72; }
  .hero-shade { background: linear-gradient(90deg, rgba(3,14,23,.96), rgba(4,18,28,.58)), linear-gradient(0deg, rgba(3,14,23,.7), transparent); }
  .hero-index { display: none; }
  .intro { grid-template-columns: 1fr; }
  .intro-grid, .project-main { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 1.4rem; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-card, .focus-card.featured { min-height: auto; transform: none; }
  .focus-card:hover, .focus-card.featured:hover { transform: none; }
  .focus-icon { margin: 2.7rem 0; }
  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 500px) {
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-content { padding-bottom: 2rem; }
  h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .intro-grid { grid-template-columns: 1fr; }
  .project-meta { gap: 1rem; }
}

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