:root {
  --paper: #f5f0e8;
  --paper-deep: #e9dfd3;
  --ink: #18322f;
  --ink-soft: #4f625e;
  --forest: #193d37;
  --forest-light: #2f5d55;
  --wine: #7c433f;
  --line: rgba(24, 50, 47, 0.16);
  --white: #fffdf9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote, dl { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.06; letter-spacing: -0.025em; }
h1 { font-size: clamp(3rem, 6vw, 6.5rem); }
h2 { font-size: clamp(2.35rem, 4.5vw, 4.8rem); }
h3 { font-size: clamp(1.55rem, 2vw, 2.15rem); }
button, summary, a { -webkit-tap-highlight-color: transparent; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(14px);
}
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand span { font-family: Georgia, serif; font-size: 1.2rem; }
.brand small { color: var(--ink-soft); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); font-size: 0.88rem; }
.desktop-nav a { border-bottom: 1px solid transparent; transition: border-color 160ms ease; }
.desktop-nav a:hover { border-color: currentColor; }
.mobile-nav { display: none; position: relative; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
  min-height: calc(100vh - 78px);
  padding-right: clamp(24px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px clamp(28px, 7vw, 120px);
}
.eyebrow, .section-kicker {
  margin-bottom: 24px;
  color: var(--wine);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.hero h1 { max-width: 850px; margin-bottom: 30px; }
.hero-lead { max-width: 700px; margin-bottom: 34px; color: var(--ink-soft); font-size: clamp(1.05rem, 1.5vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 160ms ease, background-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--forest); color: var(--white); }
.button-quiet { border-color: var(--line); background: rgba(255, 255, 255, 0.28); }
.hero-note { margin: 30px 0 0; color: var(--ink-soft); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-portrait {
  position: relative;
  min-height: 0;
  margin: clamp(26px, 3vw, 48px) 0;
  border-radius: 24px;
  background: #d7c5b5;
  overflow: hidden;
}
.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 16px;
  pointer-events: none;
}
.hero-portrait img { width: 100%; height: auto; object-fit: contain; }

.section { padding: clamp(80px, 11vw, 160px) clamp(24px, 7vw, 120px); scroll-margin-top: 76px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr); gap: 50px; align-items: end; margin-bottom: 52px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 560px; margin: 0 0 8px; color: var(--ink-soft); font-size: 1.06rem; }

.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); gap: clamp(60px, 8vw, 130px); align-items: start; }
.about-grid h2 { max-width: 730px; margin-bottom: 38px; }
.about-grid p { max-width: 760px; color: var(--ink-soft); }
.about-grid .large-copy { color: var(--ink); font-family: Georgia, serif; font-size: clamp(1.35rem, 2.1vw, 2rem); line-height: 1.4; }
.about-grid blockquote {
  max-width: 690px;
  margin: 42px 0 0;
  padding: 22px 0 0 26px;
  border-left: 2px solid var(--wine);
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 1.15rem;
}
.about-side { width: 100%; max-width: 340px; margin-left: auto; }
.about-side > img { display: block; width: min(100%, 300px); height: auto; margin-inline: auto; border: 1px solid var(--line); border-radius: 20px; object-fit: contain; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line); }
.metrics div { padding: 24px 18px 20px 0; border-bottom: 1px solid var(--line); }
.metrics div:nth-child(odd) { border-right: 1px solid var(--line); }
.metrics div:nth-child(even) { padding-left: 20px; }
.metrics dt { font-family: Georgia, serif; font-size: 1.65rem; }
.metrics dd { margin: 3px 0 0; color: var(--ink-soft); font-size: 0.8rem; line-height: 1.35; }

.services-section { background: var(--paper); }
.disclaimer { margin-bottom: 30px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.42); }
.disclaimer summary { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 22px 24px; color: var(--ink-soft); font-size: 0.91rem; }
.disclaimer summary strong { display: block; margin-bottom: 3px; color: var(--ink); }
.details-action { flex: 0 0 auto; color: var(--wine); font-weight: 650; }
.disclaimer-body { padding: 0 24px 22px; max-width: 1000px; color: var(--ink-soft); font-size: 0.91rem; }
.disclaimer-body p:last-child { margin-bottom: 0; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service-card {
  display: flex;
  flex-direction: column;
  min-height: 450px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}
.service-card.featured { background: var(--forest); color: var(--white); }
.service-number { margin-bottom: 34px; color: var(--wine); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; }
.featured .service-number { color: #dcc0b0; }
.service-card h3 { margin-bottom: 20px; max-width: 500px; }
.service-lead { max-width: 580px; margin-bottom: 18px; color: var(--ink-soft); }
.featured .service-lead { color: rgba(255,255,255,0.74); }
.service-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.service-format { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.service-price { flex: 0 0 auto; margin: 0; color: var(--forest); font-family: Georgia, serif; font-size: 1.45rem; line-height: 1; }
.featured .service-price { color: var(--white); }
.service-details { margin-bottom: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.featured .service-details { border-color: rgba(255,255,255,0.2); }
.service-details summary { position: relative; padding: 16px 30px 16px 0; font-weight: 650; }
.service-details summary::after { content: "+"; position: absolute; right: 2px; top: 14px; font-size: 1.25rem; }
.service-details[open] summary::after { content: "−"; }
.service-details ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink-soft); font-size: 0.92rem; }
.featured .service-details ul { color: rgba(255,255,255,0.75); }
.service-result { margin-bottom: 10px; color: var(--wine); font-size: 0.9rem; }
.service-custom { margin-bottom: 18px; color: var(--ink-soft); font-size: 0.88rem; }
.featured .service-result { color: #e8cfc1; }
.featured .service-custom { color: rgba(255,255,255,0.72); }
.service-action { display: flex; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; }
.featured .service-action { border-color: rgba(255,255,255,0.2); }

.science { display: grid; grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr); gap: clamp(50px, 8vw, 120px); background: var(--white); }
.science-intro { position: sticky; top: 120px; align-self: start; }
.science-intro h2 { font-size: clamp(2.3rem, 4vw, 4.3rem); }
.science-intro p { color: var(--ink-soft); }
.accordion-stack { border-top: 1px solid var(--line); }
.accordion-stack > details { border-bottom: 1px solid var(--line); }
.accordion-stack summary { display: flex; justify-content: space-between; gap: 30px; padding: 25px 0; font-family: Georgia, serif; font-size: 1.25rem; }
.accordion-stack summary span:last-child { color: var(--ink-soft); font-family: inherit; font-size: 0.95rem; }
.timeline-list, .publication-list { margin: 0 0 28px; padding-left: 1.4rem; color: var(--ink-soft); }
.timeline-list li, .publication-list li { margin-bottom: 13px; padding-left: 8px; }
.orcid { margin-bottom: 28px; color: var(--wine); font-weight: 650; }

.materials { background: var(--paper-deep); }
.materials-layout { display: grid; grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.35fr); gap: 16px; align-items: stretch; }
.materials-photo { width: min(100%, 270px); min-height: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.materials-photo img { width: 100%; height: auto; object-fit: contain; }
.materials-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.materials-grid > a { display: flex; flex-direction: column; min-height: 252px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); background: rgba(255,255,255,0.42); transition: transform 160ms ease, background 160ms ease; }
.materials-grid > a:hover { transform: translateY(-4px); background: var(--white); }
.material-label { color: var(--wine); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.materials-grid h3 { max-width: 480px; margin: 38px 0; }
.material-link { display: flex; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 650; }

.resource-page { min-height: 100vh; color: var(--ink-soft); background: radial-gradient(circle at 88% 6%, rgba(47,93,85,0.09), transparent 29rem), var(--paper); }
.resource-header { position: sticky; top: 0; z-index: 20; min-height: 78px; padding: 14px clamp(20px,5vw,80px); display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); background: rgba(245,240,232,0.93); backdrop-filter: blur(14px); }
.resource-brand { display: flex; flex-direction: column; }
.resource-brand span { color: var(--ink); font-family: Georgia, serif; font-size: 1.2rem; }
.resource-brand small { margin-top: 5px; color: var(--ink-soft); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
.resource-header nav { display: flex; gap: 22px; color: var(--ink); font-size: 0.88rem; }
.resource-header nav a { padding: 8px 0; border-bottom: 1px solid transparent; }
.resource-header nav a:hover, .resource-header nav a[aria-current="page"] { border-bottom-color: var(--wine); }
.resource-hero, .resource-section, .resource-footer { max-width: 1180px; margin: 0 auto; }
.resource-hero { padding: clamp(54px,8vw,90px) 34px 58px; }
.resource-hero-with-image { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,0.65fr); gap: clamp(36px,7vw,90px); align-items: center; }
.resource-hero h1 { max-width: 790px; margin: 0 0 24px; color: var(--ink); font-size: clamp(2.9rem,6vw,4.8rem); }
.resource-hero p:not(.resource-kicker) { max-width: 720px; margin: 0; font-size: 1.12rem; line-height: 1.7; }
.resource-hero figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 70px rgba(24,50,47,0.08); }
.resource-hero figure img { width: 100%; height: auto; object-fit: contain; }
.resource-hero-compact { max-width: 1050px; margin-left: max(0px,calc((100vw - 1180px) / 2)); }
.resource-kicker { margin: 0 0 16px; color: var(--wine); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.resource-section { padding: 48px 34px 90px; }
.resource-section-heading { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.resource-section-heading h2 { margin: 0; color: var(--ink); font-size: clamp(2.25rem,4vw,3.25rem); }
.resource-section-heading > p { max-width: 520px; margin: 0; line-height: 1.65; }
.resource-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.resource-grid-single { grid-template-columns: minmax(0,760px); }
.resource-card { min-height: 310px; padding: 34px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,249,0.78); box-shadow: 0 18px 54px rgba(24,50,47,0.055); }
.resource-card-tinted { background: var(--paper-deep); }
.resource-card > span { margin-bottom: 30px; color: var(--wine); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.resource-card h3 { margin: 0 0 14px; color: var(--ink); font-size: clamp(1.8rem,3vw,2.2rem); }
.resource-card p { margin: 0 0 24px; line-height: 1.65; }
.resource-card strong { margin-top: auto; display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); color: var(--forest); }
.resource-card:hover { background: var(--white); transform: translateY(-3px); }
.resource-footer { padding: 34px; display: flex; justify-content: space-between; gap: 35px; border-top: 1px solid var(--line); font-size: 0.78rem; }
.resource-footer p { max-width: 760px; margin: 0; line-height: 1.55; }
.resource-footer a { color: var(--wine); font-weight: 700; }

.contact { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 70px; align-items: end; background: var(--forest); color: var(--white); }
.contact h2 { max-width: 850px; }
.contact p { max-width: 700px; color: rgba(255,255,255,0.73); }
.section-kicker.light { color: #d5b8a8; }
.contact-note { font-size: 0.82rem; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.button-light { background: var(--white); color: var(--forest); }
.profile-links { display: flex; flex-direction: column; gap: 11px; color: rgba(255,255,255,0.72); font-size: 0.82rem; }
.review-links { display: flex; flex-wrap: wrap; gap: 10px; }
.review-links a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 158px;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 650;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.review-links a:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.12); }

.site-footer { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 34px; padding: 34px clamp(24px, 7vw, 120px); background: #102b27; color: rgba(255,255,255,0.7); font-size: 0.8rem; }
.site-footer > div { display: flex; flex-direction: column; }
.site-footer strong { color: var(--white); font-family: Georgia, serif; font-size: 1rem; }
.site-footer a:hover { color: var(--white); }
.legal-links { gap: 6px; }

.legal-page { min-height: 100vh; padding: 60px 24px 100px; background: var(--white); }
.legal-shell { max-width: 850px; margin: 0 auto; }
.legal-back { display: inline-block; margin-bottom: 60px; color: var(--wine); font-weight: 650; }
.legal-shell h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); }
.legal-shell h2 { margin-top: 48px; font-size: 1.65rem; }
.legal-shell p, .legal-shell li { color: var(--ink-soft); }

@media (min-width: 981px) {
  .hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.64fr);
    min-height: auto;
    padding: clamp(46px, 5vw, 68px) clamp(42px, 5vw, 76px);
    gap: clamp(38px, 5vw, 76px);
    align-items: center;
  }
  .hero-copy {
    max-width: 850px;
    padding: 0;
  }
  .hero h1 {
    max-width: 780px;
    margin-bottom: 24px;
    font-size: clamp(3.35rem, 4.4vw, 4.75rem);
  }
  .hero-lead { margin-bottom: 26px; }
  .hero-note { margin-top: 22px; }
  .hero-portrait {
    width: min(100%, 340px);
    height: auto;
    margin: 0;
    align-self: center;
    justify-self: end;
  }

  .about-grid { grid-template-columns: minmax(0, 1.45fr) 340px; }
  .about-side { max-width: 340px; }

  .materials-layout {
    grid-template-columns: minmax(300px, 0.65fr) minmax(0, 1.35fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
  }
  .materials-photo {
    width: min(100%, 260px);
    min-height: 0;
    justify-self: center;
    border-radius: 18px;
  }

  .resource-hero { padding-block: 58px 48px; }
  .resource-hero-with-image {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: clamp(42px, 6vw, 74px);
  }
  .resource-hero h1 { font-size: clamp(3.15rem, 4.8vw, 4.55rem); }
  .resource-hero figure {
    width: 260px;
    justify-self: end;
  }
}

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { padding: 8px 0; font-weight: 650; }
  .mobile-nav > div { position: absolute; top: 46px; right: 0; width: min(290px, calc(100vw - 32px)); padding: 18px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 16px 40px rgba(24,50,47,0.12); }
  .mobile-nav a { display: block; padding: 10px; }
  .hero { grid-template-columns: 1fr; padding-right: 0; }
  .hero-copy { min-height: 620px; }
  .hero-portrait {
    width: min(100%, 280px);
    height: auto;
    min-height: 0;
    margin: 0 auto 56px;
  }
  .about-grid, .science, .contact { grid-template-columns: 1fr; }
  .science-intro { position: static; }
  .about-side { display: grid; grid-template-columns: minmax(210px, 260px) minmax(0, 1fr); align-items: end; max-width: none; margin-left: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 15px; }
  .site-header { min-height: 68px; padding: 10px 18px; }
  .brand span { font-size: 1.05rem; }
  .brand small { font-size: 0.58rem; }
  .hero { min-height: auto; }
  .hero-copy { min-height: auto; padding: 76px 22px 64px; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.1rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-note { font-size: 0.66rem; }
  .hero-portrait { width: min(100%, 250px); height: auto; min-height: 0; margin: 0 auto 44px; border-radius: 18px; }
  .hero-portrait::after { inset: 12px; border-radius: 11px; }
  .section { padding: 76px 20px; scroll-margin-top: 67px; }
  .section-kicker { margin-bottom: 16px; }
  .about-grid { gap: 50px; }
  .about-side { display: block; }
  .about-side > img { width: min(100%, 240px); height: auto; max-height: none; }
  .metrics dt { font-size: 1.25rem; }
  .services-grid, .materials-grid, .materials-layout { grid-template-columns: 1fr; }
  .service-card { min-height: 410px; padding: 28px 24px; }
  .service-meta { align-items: flex-end; }
  .service-price { font-size: 1.3rem; }
  .disclaimer summary { align-items: flex-start; padding: 18px; }
  .disclaimer-body { padding: 0 18px 18px; }
  .materials-photo { width: min(100%, 210px); height: auto; min-height: 0; margin-inline: auto; }
  .materials-grid > a { min-height: 260px; }
  .resource-header { min-height: 76px; padding: 14px 20px; align-items: flex-start; flex-direction: column; gap: 7px; }
  .resource-brand span { font-size: 1.05rem; }
  .resource-header nav { gap: 18px; font-size: 0.82rem; }
  .resource-hero { padding: 52px 20px 42px; }
  .resource-hero-with-image { grid-template-columns: 1fr; gap: 30px; }
  .resource-hero h1 { font-size: clamp(2.75rem,13vw,4rem); }
  .resource-hero p:not(.resource-kicker) { font-size: 1rem; }
  .resource-hero figure { width: min(100%, 210px); margin-inline: auto; }
  .resource-section { padding: 38px 20px 68px; }
  .resource-section-heading { align-items: flex-start; flex-direction: column; }
  .resource-grid, .resource-grid-single { grid-template-columns: 1fr; }
  .resource-card { min-height: 270px; padding: 27px 23px; }
  .resource-footer { padding: 30px 20px; flex-direction: column; }
  .accordion-stack summary { font-size: 1.05rem; }
  .accordion-stack summary span:last-child { font-size: 0.78rem; }
  .contact { gap: 38px; }
  .review-links { width: 100%; }
  .review-links a { flex: 1 1 155px; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
