/* Editorial design system: ink, paper, sage and clay. No external fonts. */
:root {
  --ink: #101c25;
  --ink-soft: #192b35;
  --paper: #f4f1e9;
  --muted: #b7c4c6;
  --sage: #d5eab2;
  --clay: #b95031;
  --line: #ffffff29;
  --sans: "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 16px/1.65 var(--sans); }
a { color: inherit; text-underline-offset: 5px; }
button, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, a, summary { touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1; letter-spacing: -.055em; font-weight: 500; }
h2 { font-size: clamp(2.8rem, 5.8vw, 5.6rem); }
h2 em, .closing em { font-family: var(--serif); font-weight: 400; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #328d93; outline-offset: 6px; }
.hero a:focus-visible, .header a:focus-visible, .header button:focus-visible, .paths-section :focus-visible, .closing :focus-visible { outline-color: var(--sage); }
.wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.eyebrow { font-size: .67rem; letter-spacing: .14em; font-weight: 650; line-height: 1.65; text-transform: uppercase; }
.skip { position: fixed; top: 12px; left: 12px; transform: translateY(-160%); background: var(--sage); color: var(--ink); padding: 12px 20px; z-index: 100; }
.skip:focus { transform: none; }
.header { position: sticky; top: 0; z-index: 20; background: #101c25f7; border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.header.scrolled { box-shadow: 0 8px 35px #0002; backdrop-filter: blur(16px); background: #101c25eb; }
.nav { min-height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 15px; text-decoration: none; font-size: .8rem; line-height: 1.2; font-weight: 600; }
.brand-mark { font: 600 2.6rem/1 var(--serif); letter-spacing: -.13em; padding-right: 5px; color: var(--sage); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .82rem; text-decoration: none; position: relative; }
.nav-links a::after { content: ""; position: absolute; bottom: -7px; left: 0; height: 1px; width: 100%; background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-links a span { color: var(--sage); font-size: .67rem; }
.nav-links .nav-social { border-left: 1px solid var(--line); padding-left: 24px; }
.menu-toggle { display: none; }
.reading-progress { height: 2px; width: 100%; position: absolute; bottom: -1px; background: var(--sage); transform: scaleX(0); transform-origin: left; }
.hero { background: radial-gradient(ellipse at 80% 60%, #2a4446 0%, transparent 57%); position: relative; overflow: clip; }
.hero-grid { min-height: min(800px, calc(100svh - 88px)); display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: 40px; padding-block: 80px 65px; }
.hero-copy { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--muted); display: flex; gap: 10px; align-items: center; }
.status-dot { background: var(--sage); width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 5px #d5eab212; }
.hero h1 { font-size: clamp(3.5rem, 6.9vw, 6.8rem); letter-spacing: -.07em; margin: 30px 0 27px; line-height: .94; }
.hero h1 span { color: var(--sage); }
.hero-statement { font-size: clamp(1.55rem, 2.5vw, 2.25rem); line-height: 1.25; letter-spacing: -.035em; }
.hero-statement em { font-family: var(--serif); color: var(--sage); }
.hero-description { max-width: 460px; font-size: .94rem; color: var(--muted); margin: 22px 0 29px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 35px; padding: 14px 22px; border: 1px solid transparent; border-radius: 3px; text-decoration: none; font-size: .85rem; font-weight: 600; transition: background .25s, transform .25s; }
.button span { font-size: 1.25rem; transition: transform .25s; }
.button:hover span { transform: translate(3px,-3px); }
.button.light { background: var(--sage); color: var(--ink); }
.button.light:hover { background: #e6f5d0; }
.button.dark { background: var(--ink); color: white; }
.button.dark:hover { background: #285058; }
.book-stage { position: relative; aspect-ratio: 1; perspective: 1400px; isolation: isolate; }
.stage-grid { position: absolute; inset: 5% 0; background-image: radial-gradient(#cedcc04d .7px, transparent .7px); background-size: 24px 24px; mask-image: radial-gradient(ellipse, #000, transparent 72%); }
.stage-orbit { position: absolute; inset: -5%; width: 110%; height: 110%; color: #c3d9b64a; animation: orbit 38s linear infinite; z-index: -1; }
.stage-label { position: absolute; right: 3%; top: 0; font-size: .6rem; letter-spacing: .2em; color: var(--sage); }
.hero-book { display: block; position: absolute; width: 43%; text-decoration: none; will-change: transform; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.hero-book img { border-radius: 2px 6px 6px 2px; box-shadow: -8px 8px 0 #d5d4cd, -11px 11px 0 #101921, 0 32px 55px #0008; width: 100%; }
.hero-book > span { display: flex; justify-content: space-between; margin-top: 20px; font-size: .72rem; letter-spacing: .05em; }
.hero-book-agentic { left: 7%; top: 5%; transform: translateY(var(--book-y, 0px)) rotate(-11deg); z-index: 1; }
.hero-book-figli { right: 5%; top: 25%; transform: translateY(var(--book-y, 0px)) rotate(10deg); z-index: 2; }
.hero-book:hover, .hero-book:focus-visible { transform: translateY(-13px) rotate(0deg) scale(1.04); z-index: 3; }
.stage-coordinate { display: flex; justify-content: space-between; position: absolute; bottom: -5%; inset-inline: 3%; font-size: .6rem; color: var(--muted); letter-spacing: .12em; }
.hero-bottom { display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); padding-block: 23px; color: var(--muted); font-size: .73rem; }
.hero-bottom a { text-decoration: none; }
.hero-bottom a span { margin-left: 15px; color: var(--sage); }
.books-section { background: var(--paper); color: var(--ink); padding-block: 110px 120px; }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; margin-bottom: 66px; }
.section-heading > .eyebrow { padding-top: 10px; }
.section-heading > div > p { color: #596464; margin-top: 25px; font-size: 1rem; }
.books-section .eyebrow { color: #576964; }
.book-feature { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #14242d20; background: #fcfaf5; }
.book-feature + .book-feature { margin-top: 34px; }
.book-art { display: flex; align-items: center; justify-content: center; position: relative; min-height: 590px; overflow: hidden; perspective: 1200px; }
.art-agentic { background: #dbe4dd; color: #456858; }
.art-figli { background: #e8d9ce; color: #97563d; }
.book-art img { position: relative; width: 43%; transform: rotate(-7deg); box-shadow: -5px 5px 0 #dad8d1, -7px 7px 0 #2c3330, 12px 30px 35px #1c30283d; transition: transform .6s cubic-bezier(.2,.8,.2,1); z-index: 2; }
.art-figli img { transform: rotate(6deg); }
.book-art:hover img, .book-art:focus-visible img { transform: rotate(0deg) translateY(-10px) rotateY(-7deg); }
.art-caption { position: absolute; left: 30px; top: 28px; font-size: .59rem; letter-spacing: .2em; z-index: 3; }
.art-index { position: absolute; right: 23px; bottom: -20px; font-size: 9rem; line-height: 1; letter-spacing: -.1em; opacity: .15; }
.art-lines { position: absolute; width: 76%; height: 65%; border: 1px solid #42695340; transform: rotate(-17deg); }
.art-lines::before, .art-lines::after { content: ""; position: absolute; inset: 30px -30px; border: 1px solid #42695330; }
.art-lines::after { inset: -30px 30px; }
.art-rings { position: absolute; width: 78%; aspect-ratio: 1; border: 1px solid #97563d40; border-radius: 50%; }
.art-rings::before, .art-rings::after { content: ""; position: absolute; inset: -30px; border: 1px solid #97563d26; border-radius: 50%; }
.art-rings::after { inset: 30px; }
.book-copy { padding: 52px 48px; align-self: center; }
.book-copy h3 { font-size: clamp(2.7rem, 4vw, 4.3rem); margin: 24px 0; }
.book-copy .book-subtitle { color: var(--ink); font-size: 1.02rem; line-height: 1.45; }
.book-copy > p:not(.eyebrow) { margin-bottom: 16px; color: #53605f; font-size: .94rem; }
.book-copy > .book-subtitle { color: var(--ink) !important; font-weight: 600; }
.book-facts { display: grid; gap: 8px; border-block: 1px solid #14242d20; padding-block: 20px; margin-block: 24px; font-size: .77rem; }
.book-facts span::before { content: "↳"; margin-right: 12px; color: #506950; }
.destination { display: block; font-size: .64rem; margin-top: 11px; color: #687271; overflow-wrap: anywhere; }
.figli-feature .book-art { order: 2; }
.paths-section { padding-block: 110px; background: var(--ink); }
.paths-section .eyebrow { color: var(--sage); }
.paths-section .section-heading p:not(.eyebrow) { color: var(--muted); }
.paths-section h2 em { color: var(--sage); }
.path { border-top: 1px solid var(--line); }
.path:last-child { border-bottom: 1px solid var(--line); }
.path summary { list-style: none; display: grid; grid-template-columns: 70px 1fr 40px; gap: 20px; align-items: start; padding: 30px 4px; cursor: pointer; }
.path summary::-webkit-details-marker { display: none; }
.path-number { font-size: .75rem; color: var(--sage); padding-top: 9px; }
.path summary > span:nth-child(2) { font-size: clamp(1.3rem, 2.7vw, 2.35rem); letter-spacing: -.035em; line-height: 1.2; }
.path small { display: block; color: var(--muted); font-size: .8rem; letter-spacing: 0; margin-top: 12px; }
.path-toggle { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; color: var(--sage); font-size: 1.35rem; transition: transform .25s, background .25s; }
.path[open] .path-toggle { transform: rotate(45deg); background: var(--sage); color: var(--ink); }
.path summary:hover .path-toggle { border-color: var(--sage); }
.path-content { margin: 0 60px 40px 94px; animation: enter .35s both; }
.path-content > p { color: var(--muted); max-width: 740px; }
.flow { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; gap: 26px; margin: 30px 0; }
.flow li { position: relative; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); padding: 20px; background: #1b3038; font-size: .8rem; }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -21px; top: 45%; color: var(--sage); }
.flow li span { color: var(--sage); font-size: .64rem; }
.path-links { display: flex; flex-wrap: wrap; gap: 14px 30px; font-size: .8rem; }
.path-links a { color: var(--sage); }
.notes-section { padding-block: 110px; background: #e5eadd; color: var(--ink); }
.notes-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 50px; }
.notes-heading h2 { margin-top: 26px; }
.text-link { font-size: .84rem; text-decoration-thickness: 1px; }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.note-card { text-decoration: none; border: 1px solid #14242d25; padding: 28px; display: flex; flex-direction: column; background: #f4f5ee; transition: transform .3s, box-shadow .3s; }
.note-card:hover { transform: translateY(-7px); box-shadow: 0 15px 30px #172b2712; }
.note-icon { height: 100px; margin-bottom: 26px; display: flex; align-items: center; justify-content: center; gap: 16px; border-bottom: 1px solid #14242d25; padding-bottom: 22px; }
.note-icon i { display: block; width: 42px; height: 42px; border: 1px solid #4c6b60; background: #dbe4dd; transition: transform .4s; }
.routing i { border-radius: 50%; position: relative; }
.routing i:not(:last-child)::after { content: ""; position: absolute; height: 1px; width: 16px; background: #4c6b60; top: 20px; left: 41px; }
.routing i:nth-child(2) { background: var(--ink); }
.evidence i { transform: rotate(-8deg); box-shadow: 5px 5px 0 #53675a30; }
.evidence i:nth-child(2) { transform: rotate(8deg); }
.audit i { width: 22px; height: 22px; border-radius: 4px; }
.audit i:nth-child(2) { height: 55px; background: #bcd2a6; }
.note-card:hover .note-icon i { transform: translateY(-4px); }
.note-card .eyebrow { font-size: .59rem; color: #4b6357; }
.note-card h3 { font-size: clamp(1.7rem, 2.55vw, 2.4rem); line-height: 1.08; margin: 20px 0; }
.note-card p { color: #53605f; font-size: .9rem; margin-bottom: 30px; }
.note-link { display: flex; justify-content: space-between; border-top: 1px solid #14242d25; padding-top: 18px; margin-top: auto; font-size: .8rem; }
.about-section { padding-block: 110px; background: var(--paper); color: var(--ink); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.about-heading h2 { margin-top: 26px; }
.monogram { margin-top: 50px; font: italic 8rem/.9 var(--serif); letter-spacing: -.15em; color: #bdcabb; }
.monogram span { color: var(--clay); }
.about-copy p { color: #53605f; font-size: .96rem; margin-bottom: 20px; }
.about-copy p.lead { font-size: 1.35rem; color: var(--ink); line-height: 1.5; letter-spacing: -.02em; }
.expertise { display: flex; flex-wrap: wrap; gap: 9px; margin-block: 30px; }
.expertise span { border: 1px solid #14242d25; border-radius: 4px; padding: 6px 10px; font-size: .69rem; }
.about-links { display: flex; flex-wrap: wrap; gap: 24px; }
.closing { padding-block: 100px; background: #bf5839; color: #fff6e9; }
.closing > .wrap > p:not(.eyebrow) { font-size: clamp(3rem, 7.5vw, 7rem); letter-spacing: -.06em; line-height: 1; margin-block: 28px 45px; }
.closing-links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.closing-links a { display: flex; justify-content: space-between; gap: 15px; padding-block: 22px; border-top: 1px solid #fff5; text-decoration: none; font-size: clamp(1rem, 2vw, 1.65rem); }
.closing-links a span { transition: transform .25s; }
.closing-links a:hover span { transform: translate(5px, -5px); }
.footer { padding-block: 44px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
.footer-top > p, .footer-top > a:last-child { font-size: .8rem; color: var(--muted); }
.personal-note { max-width: 800px; font-size: .74rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 25px; }
.copyright { color: var(--muted); font-size: .69rem; margin-top: 22px; }
.motion .reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s, transform .65s; }
.motion .reveal.visible { opacity: 1; transform: none; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-width: 1600px) { .wrap { width: min(1400px, calc(100% - 140px)); } .hero-grid { min-height: 830px; } .hero h1 { font-size: 7.6rem; } }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .nav-links { gap: 22px; }
  .hero-grid { gap: 22px; min-height: 650px; }
  .hero h1 { font-size: 6.7vw; }
  .book-copy { padding: 35px 30px; }
  .book-art { min-height: 530px; }
  .book-art img { width: 51%; }
  .about-grid { gap: 50px; }
  .note-card { padding: 23px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .nav { min-height: 74px; }
  .brand { font-size: .72rem; }
  .brand-mark { font-size: 2.2rem; }
  .menu-toggle { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); background: transparent; color: var(--paper); padding: 8px 12px; border-radius: 3px; min-height: 44px; font-size: .78rem; cursor: pointer; }
  .menu-toggle span { font-size: 1.3rem; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); padding: 20px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px #0003; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-links .nav-social { border: 0; padding-left: 12px; }
  .nav-links a::after { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 48px 24px; gap: 42px; }
  .hero h1 { font-size: clamp(3.35rem, 12.9vw, 6.5rem); }
  .hero .eyebrow { font-size: .53rem; letter-spacing: .11em; }
  .hero-statement { font-size: 1.75rem; }
  .hero-description { max-width: 500px; }
  .book-stage { width: min(500px, 100%); justify-self: center; margin-bottom: 30px; }
  .stage-label { font-size: .52rem; }
  .hero-bottom { align-items: start; }
  .hero-bottom > span { max-width: 200px; font-size: .64rem; }
  .hero-bottom > a { font-size: .64rem; }
  .books-section, .paths-section, .notes-section, .about-section { padding-block: 72px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 38px; }
  h2 { font-size: clamp(2.8rem, 9vw, 4.2rem); }
  .book-feature { grid-template-columns: 1fr; }
  .book-art { min-height: 430px; }
  .book-art img { width: 200px; }
  .figli-feature .book-art { order: 0; }
  .book-copy { padding: 32px; }
  .book-copy h3 { font-size: 3rem; }
  .path summary { grid-template-columns: 25px 1fr 32px; gap: 12px; }
  .path summary > span:nth-child(2) { font-size: 1.45rem; }
  .path-number { padding-top: 3px; }
  .path small { line-height: 1.6; }
  .path-toggle { width: 30px; height: 30px; }
  .path-content { margin: 0 0 28px 37px; }
  .flow { grid-template-columns: 1fr; gap: 22px; }
  .flow li { padding: 14px; flex-direction: row; align-items: center; }
  .flow li:not(:last-child)::after { content: "↓"; top: auto; bottom: -24px; left: 50%; right: auto; }
  .notes-heading { display: block; }
  .notes-heading .text-link { display: inline-block; margin-top: 25px; }
  .notes-grid { grid-template-columns: 1fr; }
  .note-card h3 { font-size: 2rem; }
  .note-icon { height: 80px; }
  .about-grid { grid-template-columns: 1fr; gap: 35px; }
  .monogram { display: none; }
  .closing { padding-block: 65px; }
  .closing-links { grid-template-columns: 1fr; gap: 0; }
  .footer-top { flex-wrap: wrap; }
  .footer-top > p { display: none; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .hero .eyebrow { max-width: 250px; }
  .hero h1 { font-size: 3.2rem; }
  .book-copy { padding: 26px 22px; }
  .book-copy h3 { font-size: 2.7rem; }
  .button { gap: 16px; padding-inline: 18px; }
  .hero-bottom { gap: 14px; }
  .hero-bottom a { max-width: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion .reveal { opacity: 1; transform: none; }
  .hero-book { will-change: auto; }
}
@media (max-width: 760px) {
  html:not(.js) .nav { flex-wrap: wrap; padding-block: 16px; }
  html:not(.js) .nav-links { display: flex; position: static; flex-direction: row; flex-wrap: wrap; padding: 0; box-shadow: none; border: 0; }
  html:not(.js) .menu-toggle { display: none; }
}

/* Scientific bibliography */
.bibliography-section { padding-block: 110px; border-top: 1px solid var(--line); }
.publication-feature { padding: clamp(24px, 4vw, 52px); background: var(--ink-soft); border: 1px solid var(--line); border-left: 4px solid var(--sage); }
.publication-feature h3 { max-width: 950px; font-size: clamp(1.65rem, 3vw, 2.7rem); line-height: 1.18; letter-spacing: -.025em; margin-block: 20px; }
.publication-feature > p:not(.eyebrow) { max-width: 830px; margin-bottom: 16px; }
.publication-feature .button { margin-top: 12px; }
.publication-feature .publication-license { margin-top: 16px; margin-bottom: 0; font-size: .78rem; color: var(--muted); }
.publication-groups { margin-top: 54px; }
.publication-group { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-block: 32px; border-top: 1px solid var(--line); }
.publication-group h3, .citation-metrics h3 { font-size: 1.4rem; line-height: 1.3; letter-spacing: -.02em; }
.publication-group ul { list-style: none; padding: 0; margin: 0; }
.publication-group li + li { margin-top: 28px; }
.publication-authors, .publication-venue { color: var(--muted); font-size: .88rem; }
.publication-title { font-size: 1.12rem; line-height: 1.45; margin-block: 4px; }
.citation-metrics { margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--line); }
.metrics-grid { display: flex; flex-wrap: wrap; gap: 24px 64px; margin-block: 24px 16px; }
.metrics-grid strong, .metrics-grid span { display: block; }
.metrics-grid span { color: var(--sage); }
.metrics-note { font-size: .78rem; color: var(--muted); }
@media (max-width: 1100px) and (min-width: 761px) { .nav-links { gap: 15px; } }
@media (max-width: 760px) {
  .bibliography-section { padding-block: 72px; }
  .publication-group { grid-template-columns: 1fr; gap: 24px; }
  .publication-feature .button { max-width: 100%; }
}
