:root {
  --pine: var(--senecta-pine, #023022);
  --teal: var(--senecta-teal-9, #12a594);
  --teal-action: var(--senecta-teal-11, #008573);
  --teal-ink: var(--senecta-teal-12, #0d3d38);
  --teal-soft: var(--senecta-teal-4, #ccf3ea);
  --canvas: var(--senecta-sage-2, #f7f9f8);
  --line: var(--senecta-sage-6, #d7dad9);
  --muted: var(--senecta-sage-11, #5f6563);
  --ink: #1a211e;
  --white: var(--senecta-white, #fff);
  --display: var(--senecta-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  --body: var(--senecta-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  --radius-sm: var(--senecta-radius-sm, 10px);
  --radius-md: var(--senecta-radius-md, 16px);
  --radius-lg: var(--senecta-radius-lg, 28px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 400 16px/1.5 var(--body); }
a { color: inherit; }
button,input { font: inherit; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; z-index: 100; left: 12px; top: -80px; padding: 11px 15px; border-radius: var(--radius-sm); color: var(--pine); background: var(--teal-soft); font-weight: 700; transition: top .15s ease; }
.skip:focus { top: 12px; }

/* Shared navigation */
.topbar { position: fixed; z-index: 20; inset: 0 0 auto; height: 62px; color: var(--canvas); border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(2,48,34,.88); backdrop-filter: blur(18px); }
.nav { min-height: 62px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 145px; height: auto; display: block; }
.nav nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav nav a { color: #b8cbc3; text-decoration: none; font-size: 12px; font-weight: 700; }
.nav nav a:hover,.nav nav a:focus-visible { color: var(--white); }
.nav .contact { display: inline-flex; align-items: center; gap: 14px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: var(--canvas); }
.nav .contact span { color: var(--teal); }

/* Brand-led hero */
.hero { position: relative; min-height: 770px; overflow: hidden; display: flex; align-items: center; padding: 132px 0 82px; color: var(--canvas); background: var(--pine); }
.hero-orbit { position: absolute; border: 1px solid rgba(204,243,234,.1); border-radius: 50%; pointer-events: none; }
.hero-orbit.one { width: 680px; height: 680px; right: -150px; top: 35px; box-shadow: 0 0 0 100px rgba(204,243,234,.018); }
.hero-orbit.two { width: 390px; height: 390px; right: -5px; top: 180px; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(290px,.58fr); gap: 76px; align-items: end; }
.eyebrow,.section-label { margin: 0 0 22px; color: var(--teal-action); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--teal-soft); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px rgba(18,165,148,.14); }
h1 { max-width: 830px; margin: 0; font: 500 clamp(62px,7vw,100px)/.91 var(--display); letter-spacing: -.07em; }
h1 em { color: var(--teal-soft); font-style: normal; }
.lede { max-width: 720px; margin: 30px 0 0; color: #b8cbc3; font-size: 18px; line-height: 1.67; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; margin-top: 46px; }
.hero-meta span { display: inline-flex; align-items: baseline; gap: 7px; color: #9fb8ae; font-size: 12px; }
.hero-meta b { color: var(--teal-soft); font-size: 17px; }
.hero aside { overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-lg); background: rgba(255,255,255,.035); }
.hero aside div { padding: 25px; }
.hero aside div + div { border-top: 1px solid rgba(255,255,255,.13); }
.hero aside span { color: var(--teal); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.hero aside p { margin: 9px 0 0; color: #b8cbc3; font-size: 14px; line-height: 1.55; }

/* Method */
.method { padding-block: 120px; scroll-margin-top: 62px; }
.method-copy { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 55px; align-items: start; }
.method h2,.library-heading h2,.principle h2 { margin: 0; color: var(--teal-ink); font: 500 clamp(46px,5.6vw,72px)/.96 var(--display); letter-spacing: -.06em; }
.method-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 68px 0 0 205px; }
.method-grid article { min-height: 270px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.method-grid b { color: var(--teal-action); font-size: 11px; }
.method-grid h3 { margin: auto 0 10px; color: var(--teal-ink); font: 600 25px/1.1 var(--display); letter-spacing: -.035em; }
.method-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Search and library controls */
.library-section { padding-block: 120px; scroll-margin-top: 62px; background: #eef1f0; }
.library-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.library-heading > p { margin: 0 0 7px; color: var(--muted); font-size: 13px; }
.library-views { display: flex; gap: 5px; width: max-content; margin-top: 46px; padding: 5px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.62); }
.library-views button { padding: 11px 15px; border: 0; border-radius: var(--radius-sm); color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.library-views button span { margin-left: 7px; color: var(--muted); font-size: 10px; }
.library-views button.active { color: var(--white); background: var(--pine); }
.library-views button.active span { color: #b8cbc3; }
.controls { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin: 46px 0 28px; }
.controls label { width: min(470px,100%); }
.controls label span { display: block; margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.controls input { width: 100%; height: 52px; padding: 0 17px; border: 1px solid var(--line); border-radius: var(--radius-sm); outline: 0; color: var(--ink); background: var(--white); }
.controls input::placeholder { color: #7c8481; }
.controls input:focus { border-color: var(--teal-action); box-shadow: 0 0 0 3px rgba(18,165,148,.16); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.filters button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.filters button:hover,.filters button:focus-visible { border-color: var(--teal); color: var(--teal-ink); }
.filters button.active { border-color: var(--teal-action); color: var(--white); background: var(--teal-action); }

/* Evidence and paper cards */
.evidence-list,.paper-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.record,.paper-record { position: relative; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.record::before,.paper-record::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--teal); opacity: 0; transition: opacity .16s ease; }
.record:hover,.paper-record:hover { border-color: #b8bcba; box-shadow: 0 16px 36px rgba(2,48,34,.07); transform: translateY(-2px); }
.record:hover::before,.paper-record:hover::before { opacity: 1; }
.record { min-height: 440px; padding: 28px; }
.record-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.record-category { color: var(--teal-action); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.record-strength,.paper-topics span { padding: 6px 9px; border-radius: 999px; color: var(--teal-ink); background: var(--teal-soft); font-size: 9px; font-weight: 700; }
.record h3 { margin: 24px 0 13px; color: var(--teal-ink); font: 600 29px/1.1 var(--display); letter-spacing: -.04em; }
.record > .claim { margin: 0; color: var(--muted); line-height: 1.55; }
.use { margin: 24px 0 0; padding: 18px; border: 1px solid #e6e9e8; border-radius: var(--radius-sm); background: var(--canvas); }
.use b,.limits b,.claim-citations > b { display: block; margin-bottom: 6px; color: var(--teal-ink); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.use p,.limits p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.52; }
.limits { margin: 18px 0 0; }
.claim-citations { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 24px; border-top: 1px solid #e6e9e8; }
.claim-citations > b { margin-bottom: 2px; }
.claim-citations a { color: var(--muted); font-size: 12px; line-height: 1.35; text-decoration-color: #b8bcba; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.claim-citations a:hover,.claim-citations a:focus-visible { color: var(--teal-action); text-decoration-color: currentColor; }
.paper-record { min-height: 310px; padding: 28px; }
.paper-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--teal-action); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.paper-head small { color: var(--muted); font-size: 11px; }
.paper-record h3 { margin: 22px 0 13px; color: var(--teal-ink); font: 600 24px/1.16 var(--display); letter-spacing: -.035em; }
.paper-authors,.paper-journal { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.paper-journal { margin-top: 7px; color: #7c8481; }
.paper-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.citation-links { display: flex; gap: 8px; margin-top: auto; padding-top: 22px; }
.citation-links a { padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--teal-ink); text-decoration: none; font-size: 10px; font-weight: 700; }
.citation-links a:first-child { border-color: var(--teal-action); color: var(--white); background: var(--teal-action); }
.citation-links a:hover,.citation-links a:focus-visible { border-color: var(--pine); }
.no-results { padding: 45px; text-align: center; color: var(--muted); }

/* Principle and footer */
.principle { padding-block: 112px; color: var(--canvas); background: var(--pine); }
.principle-grid { display: grid; grid-template-columns: 150px minmax(0,1fr) 190px; gap: 55px; align-items: start; }
.principle p { margin: 8px 0 0; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.principle h2 { color: var(--canvas); }
.principle a { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.22); color: var(--teal-soft); text-decoration: none; font-size: 12px; font-weight: 700; }
.principle a span { color: var(--teal); }
footer { padding-block: 50px; color: #9fb8ae; background: #001e17; }
footer .shell { display: grid; grid-template-columns: 160px 1fr auto; align-items: center; gap: 30px; }
footer img { width: 160px; height: auto; display: block; }
footer p { margin: 0; font-size: 12px; }
.footer-links { display: flex; align-items: center; gap: 26px; }
footer a { font-size: 11px; text-decoration: none; }
footer a:hover,footer a:focus-visible { color: var(--white); }
footer small { font-size: 10px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero { min-height: auto; }
  .hero aside { max-width: 720px; display: grid; grid-template-columns: 1fr 1fr; }
  .hero aside div + div { border-top: 0; border-left: 1px solid rgba(255,255,255,.13); }
  .method-grid { margin-left: 0; }
  .evidence-list,.paper-list { grid-template-columns: 1fr; }
  .controls { align-items: stretch; flex-direction: column; }
  .filters { justify-content: flex-start; }
  .principle-grid { grid-template-columns: 125px 1fr; }
  .principle a { grid-column: 2; width: 190px; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 30px,1180px); }
  .nav nav { gap: 12px; }
  .nav nav > a:not(.contact) { display: none; }
  .brand img { width: 132px; }
  .hero { padding: 122px 0 72px; }
  h1 { font-size: clamp(50px,15vw,68px); }
  .lede { font-size: 16px; }
  .hero-meta { margin-top: 34px; }
  .hero aside { display: block; }
  .hero aside div + div { border-top: 1px solid rgba(255,255,255,.13); border-left: 0; }
  .method,.library-section,.principle { padding-block: 84px; }
  .method-copy { grid-template-columns: 1fr; gap: 14px; }
  .method h2,.library-heading h2,.principle h2 { font-size: 46px; }
  .method-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 45px; }
  .method-grid article { min-height: 210px; }
  .library-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .library-views { max-width: 100%; }
  .library-views button { padding-inline: 12px; }
  .record,.paper-record { padding: 22px; }
  .record h3 { font-size: 25px; }
  .record-strength { max-width: 50%; text-align: right; }
  .principle-grid { grid-template-columns: 1fr; gap: 22px; }
  .principle a { grid-column: auto; }
  footer .shell { grid-template-columns: 1fr; align-items: start; }
  .footer-links { justify-content: space-between; }
}

@media (max-width: 420px) {
  .nav .contact { gap: 0; }
  .nav .contact span { display: none; }
  .hero-meta { align-items: flex-start; flex-direction: column; }
  .library-views { width: 100%; }
  .library-views button { flex: 1; }
  .record-head { align-items: flex-start; }
  .citation-links { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skip,.record,.paper-record,.record::before,.paper-record::before { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar { background: var(--pine); backdrop-filter: none; }
}
