:root {
  --ink: #101722;
  --navy: #07111f;
  --paper: #f1efe8;
  --paper-2: #e7e3da;
  --coral: #f15f4b;
  --blue: #aebcff;
  --line: rgba(16, 23, 34, .19);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: white; color: black; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: fixed; z-index: 20; top: 0; left: 0; width: 100%; height: 92px; padding: 0 clamp(22px, 4vw, 68px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: white; border-bottom: 1px solid rgba(255,255,255,.18); transition: background .4s, height .4s, transform .4s; }
.site-header.scrolled { height: 72px; background: rgba(7,17,31,.93); backdrop-filter: blur(14px); }
.brand { display: inline-flex; width: max-content; gap: 12px; align-items: center; text-decoration: none; font-weight: 700; letter-spacing: -.04em; font-size: 21px; }
.brand em { font-family: Georgia, serif; font-weight: 400; }
.brand-mark { display: flex; gap: 3px; align-items: end; width: 22px; height: 21px; }
.brand-mark i { display: block; width: 5px; background: var(--coral); border-radius: 5px 5px 0 0; }
.brand-mark i:nth-child(1) { height: 7px; }
.brand-mark i:nth-child(2) { height: 13px; }
.brand-mark i:nth-child(3) { height: 20px; }
.site-nav { display: flex; gap: 34px; }
.site-nav a { color: inherit; text-decoration: none; font-size: 12px; text-transform: uppercase; letter-spacing: .15em; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--coral); transition: right .3s; }
.site-nav a:hover::after { right: 0; }
.institute-lockup { justify-self: end; display: block; width: clamp(112px, 10.5vw, 152px); opacity: .68; transition: opacity .25s; }
.institute-lockup:hover { opacity: 1; }
.institute-lockup img { display: block; width: 100%; height: 54px; object-fit: contain; object-position: right center; }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 100svh; background: var(--navy); color: white; display: flex; align-items: center; overflow: hidden; }
.hero-image { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,17,31,.34), rgba(7,17,31,.02)), url("assets/iem-signal-field.jpg") center/cover no-repeat; animation: hero-in 1.5s ease-out both; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,17,31,.3), transparent 35%, rgba(7,17,31,.12)); pointer-events: none; }
.hero-grid { position: absolute; inset: 0; opacity: .09; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 8.333vw 8.333vw; mask-image: linear-gradient(to bottom, black, transparent 82%); }
.hero-content { position: relative; z-index: 2; width: min(850px, 80vw); margin-left: clamp(25px, 8.3vw, 130px); padding-top: 90px; }
.eyebrow { margin: 0 0 29px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; }
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 2px; margin: 0 13px 3px 0; background: var(--coral); }
.hero h1 { margin: 0; font-size: clamp(55px, 7.2vw, 112px); line-height: .91; letter-spacing: -.065em; font-weight: 500; max-width: 900px; }
h1 em, h2 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.hero-intro { max-width: 590px; margin: 36px 0 31px; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: rgba(255,255,255,.76); }
.text-link { display: inline-flex; gap: 14px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.6); text-decoration: none; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; }
.text-link span { color: var(--coral); font-size: 18px; transition: transform .2s; }
.text-link:hover span { transform: translate(4px, 4px); }
.hero-meta { position: absolute; z-index: 2; right: clamp(25px, 4vw, 68px); bottom: 36px; display: flex; gap: 45px; font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.56); }
.scroll-cue { position: absolute; z-index: 2; left: 25px; bottom: 28px; writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.4); }
.scroll-cue i { width: 1px; height: 36px; background: var(--coral); }

.section-pad { padding: 120px clamp(25px, 8.3vw, 130px); max-width: var(--max); margin: auto; }
.section-label { width: 100%; display: flex; gap: 20px; align-items: center; font-size: 10px; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; }
.section-label span { color: var(--coral); }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-label.light::after { background: rgba(255,255,255,.18); }
.mission-copy { display: grid; grid-template-columns: 1.45fr 1fr; gap: 11vw; margin-top: 75px; }
.display-copy { margin: 0; font-family: Georgia, serif; font-size: clamp(37px, 4.1vw, 63px); line-height: 1.08; letter-spacing: -.04em; }
.body-copy { align-self: end; margin: 0; font-size: 16px; line-height: 1.75; color: #525b65; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 110px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle { min-height: 265px; padding: 32px 42px 35px 0; }
.principle + .principle { padding-left: 42px; border-left: 1px solid var(--line); }
.principle-icon { display: block; margin-bottom: 49px; color: var(--coral); font-size: 28px; }
.principle h3 { margin: 0 0 14px; font-size: 17px; }
.principle p { max-width: 300px; margin: 0; color: #65707a; line-height: 1.6; font-size: 13px; }

.projects { background: var(--navy); color: white; }
.projects-head { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 5vw; padding-bottom: 90px; }
.projects-head .section-label { grid-column: 1/-1; }
.projects-head h2 { grid-column: 1/3; margin: 45px 0 0; font-size: clamp(46px, 5.7vw, 84px); line-height: .96; letter-spacing: -.055em; font-weight: 500; }
.projects-head > p { align-self: end; margin: 0; color: rgba(255,255,255,.57); font-size: 14px; line-height: 1.7; }
.project-list { border-top: 1px solid rgba(255,255,255,.15); }
.project { position: relative; display: grid; grid-template-columns: minmax(50px, .5fr) 2fr 1fr 40px; gap: 35px; align-items: start; padding: 44px max(calc((100vw - var(--max)) / 2 + 8.3vw), 8.3vw); border-bottom: 1px solid rgba(255,255,255,.15); transition: background .35s; cursor: pointer; outline: none; }
.project:hover, .project:focus-visible, .project.active { background: #0c1b2d; }
.project-number { color: var(--coral); font-size: 11px; letter-spacing: .15em; padding-top: 10px; }
.project-type { margin: 0 0 12px; color: rgba(255,255,255,.45); font-size: 10px; text-transform: uppercase; letter-spacing: .19em; }
.project h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(29px, 3vw, 46px); font-weight: 400; letter-spacing: -.025em; }
.project-summary { max-width: 650px; margin: 15px 0 0; color: rgba(255,255,255,.67); line-height: 1.55; font-size: 14px; }
.project-detail { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s ease, opacity .4s, margin .4s; }
.project-detail > * { overflow: hidden; }
.project-detail p { margin: 0; max-width: 600px; color: rgba(255,255,255,.68); line-height: 1.65; }
.project-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; margin-top: 20px; }
.project-detail .project-meta span { display: block; color: var(--coral); font-size: 10px; text-transform: uppercase; letter-spacing: .16em; }
.project-meta small { color: rgba(255,255,255,.42); font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.project-page-link { margin-left: auto; color: white; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.42); padding-bottom: 4px; }
.project-page-link b { color: var(--coral); font-size: 14px; }
.project.active .project-detail { grid-template-rows: 1fr; opacity: 1; margin-top: 30px; }
.project-viz { position: relative; height: 105px; align-self: center; opacity: .42; transition: opacity .3s; }
.project.active .project-viz, .project:hover .project-viz { opacity: 1; }
.project-toggle { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: transparent; color: white; font-size: 22px; cursor: pointer; transition: background .2s, color .2s; }
.project-toggle:hover { background: var(--coral); color: var(--navy); border-color: var(--coral); }
.tariff-viz { height: 118px; }
.tariff-viz svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mini-grid line { stroke: rgba(255,255,255,.1); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mini-events line { stroke: rgba(255,255,255,.21); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.mini-price, .mini-trend { fill: none; vector-effect: non-scaling-stroke; }
.mini-price { stroke-width: 2; }
.mini-price.domestic { stroke: var(--blue); }
.mini-price.imported { stroke: var(--coral); }
.mini-trend { stroke-width: 1; stroke-dasharray: 5 5; opacity: .55; }
.mini-trend.domestic { stroke: var(--blue); }
.mini-trend.imported { stroke: var(--coral); }
.mini-end.domestic { fill: var(--blue); }
.mini-end.imported { fill: var(--coral); }
.mini-label { font: 7px Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.mini-label.domestic { fill: var(--blue); }
.mini-label.imported { fill: var(--coral); }
.project.active .mini-price { stroke-dasharray: 430; stroke-dashoffset: 430; animation: draw-mini-chart 1.3s .12s ease-out forwards; }
@keyframes draw-mini-chart { to { stroke-dashoffset: 0; } }
.classifier-viz { display: flex; align-items: center; gap: 10px; }
.classifier-viz span { padding: 8px; border: 1px solid rgba(255,255,255,.25); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.classifier-viz i { width: 30%; border-top: 1px solid var(--coral); }
.classifier-viz b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); color: var(--navy); font-size: 10px; }
.labor-viz { height: 120px; }
.labor-viz svg { display: block; width: 100%; height: 100%; overflow: visible; }
.wave-guides line { stroke: rgba(255,255,255,.14); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wave-events line { stroke: rgba(255,255,255,.18); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.occupation-wave { fill: var(--blue); opacity: .62; transform-origin: center bottom; }
.wave-medicine { opacity: .48; }
.wave-engineering { fill: #92a7ef; opacity: .7; }
.wave-operations { fill: var(--coral); opacity: .72; }
.wave-label { fill: rgba(255,255,255,.68); font: 6.5px Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.wave-time { fill: rgba(255,255,255,.42); font: 6px Arial, sans-serif; letter-spacing: .12em; }
.project.active .occupation-wave { animation: lift-wave .75s ease-out both; }
.project.active .wave-medicine { animation-delay: .1s; }
.project.active .wave-engineering { animation-delay: .2s; }
.project.active .wave-operations { animation-delay: .3s; }
@keyframes lift-wave { from { opacity: 0; transform: scaleY(.15); } }
.network-viz i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.network-viz i::after { content: ""; position: absolute; width: 80px; border-top: 1px solid rgba(174,188,255,.5); transform-origin: left; }
.network-viz i:nth-child(1){left:5%;top:50%}.network-viz i:nth-child(1)::after{transform:rotate(-25deg)}.network-viz i:nth-child(2){left:28%;top:20%}.network-viz i:nth-child(2)::after{transform:rotate(30deg)}.network-viz i:nth-child(3){left:48%;top:48%}.network-viz i:nth-child(3)::after{transform:rotate(-38deg)}.network-viz i:nth-child(4){left:70%;top:10%}.network-viz i:nth-child(4)::after{transform:rotate(50deg)}.network-viz i:nth-child(5){left:90%;top:75%}.network-viz i:nth-child(6){left:20%;top:85%}.network-viz i:nth-child(6)::after{transform:rotate(-30deg)}.network-viz i:nth-child(7){left:65%;top:80%}

.people-intro { display: grid; grid-template-columns: 2fr 1fr; gap: 8vw; margin-top: 65px; align-items: end; }
.people-intro h2 { margin: 0; font-size: clamp(48px, 5.3vw, 78px); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
.people-intro p { margin: 0; color: #606872; line-height: 1.7; font-size: 14px; }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, calc((100% - 60px) / 4))); justify-content: space-between; gap: 20px; margin-top: 75px; }
.portrait { position: relative; aspect-ratio: 4/5; margin-bottom: 24px; display: grid; place-items: center; overflow: hidden; background-color: var(--navy); }
.portrait::before, .portrait::after { content: ""; position: absolute; border-radius: 50%; filter: blur(1px); }
.portrait::before { width: 70%; height: 70%; background: var(--blue); opacity: .75; }
.portrait::after { width: 40%; height: 95%; background: var(--coral); transform: rotate(28deg); mix-blend-mode: screen; }
.portrait-photo::before, .portrait-photo::after { display: none; }
.portrait-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; filter: saturate(.9) contrast(1.02); }
.portrait-franco img { object-position: center center; transform: scale(1.78); }
.portrait-fv::before { width: 90%; height: 40%; border-radius: 0; transform: rotate(-25deg); }
.portrait-fv::after { width: 55%; height: 55%; transform: none; }
.portrait-zc::before { width: 55%; height: 90%; border-radius: 50% 0; transform: rotate(20deg); }
.portrait-zc::after { width: 80%; height: 35%; transform: rotate(-20deg); }
.portrait span { position: relative; z-index: 2; font-family: Georgia, serif; color: white; font-size: clamp(45px, 6vw, 90px); font-style: italic; mix-blend-mode: overlay; }
.person > p { margin: 0 0 8px; color: var(--coral); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; }
.person h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 26px; font-weight: 400; }
.person > span { display: block; max-width: 350px; color: #677079; font-size: 12px; line-height: 1.55; }
.collaborators { margin-top: 92px; padding-top: 29px; border-top: 1px solid var(--line); }
.collaborators-heading { display: flex; align-items: center; gap: 12px; width: max-content; padding-bottom: 11px; border-bottom: 1px solid var(--coral); }
.collaborators-heading h3 { margin: 0; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; }
.collaborators-heading span { color: var(--coral); font-size: 14px; }
.collaborator-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 4vw, 65px); margin-top: 35px; }
.collaborator-grid article { min-width: 0; }
.collaborator-grid a, .collaborator-name { display: inline-block; color: var(--ink); font-family: Georgia, serif; font-size: 18px; font-weight: 700; line-height: 1.25; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.collaborator-grid a:hover { color: var(--coral); text-decoration-color: var(--coral); }
.collaborator-grid p { margin: 8px 0 0; color: #677079; font-family: Georgia, serif; font-size: 14px; line-height: 1.48; }

.lineage { display: grid; grid-template-columns: 1fr 1.15fr; min-height: 730px; background: #121c2a; color: white; }
.lineage-copy { padding: 120px clamp(25px, 7vw, 105px); border-right: 1px solid rgba(255,255,255,.15); }
.lineage h2 { margin: 70px 0 35px; font-size: clamp(46px, 4.6vw, 70px); font-weight: 500; line-height: 1; letter-spacing: -.05em; }
.lineage-copy > p { max-width: 520px; color: rgba(255,255,255,.55); font-size: 14px; line-height: 1.75; }
.timeline { position: relative; padding: 105px 7vw 80px 9vw; display: flex; flex-direction: column; justify-content: space-between; }
.timeline-line { position: absolute; left: 5vw; top: 110px; bottom: 90px; width: 1px; background: rgba(255,255,255,.18); }
.timeline-line i { display: block; width: 1px; height: 68%; background: linear-gradient(var(--coral), var(--blue)); }
.timeline article { position: relative; max-width: 430px; }
.timeline article::before { content: ""; position: absolute; left: -4.02vw; top: 8px; width: 7px; height: 7px; background: var(--paper); border-radius: 50%; box-shadow: 0 0 0 6px #121c2a; }
.timeline article.current::before { background: var(--coral); box-shadow: 0 0 0 6px #121c2a, 0 0 20px var(--coral); }
.timeline time { color: var(--coral); font-size: 10px; letter-spacing: .18em; }
.timeline h3 { margin: 8px 0; font-family: Georgia, serif; font-size: 30px; font-weight: 400; }
.timeline p { margin: 0; color: rgba(255,255,255,.5); font-size: 13px; }

.contact { text-align: center; min-height: 590px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--paper-2); }
.contact h2 { margin: 12px 0 45px; font-size: clamp(52px, 6.4vw, 95px); line-height: .94; letter-spacing: -.06em; font-weight: 500; }
.contact-link { display: flex; gap: 28px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: .15em; font-size: 11px; }
.contact-link span { color: var(--coral); font-size: 20px; }
.site-footer { min-height: 210px; padding: 55px clamp(25px, 4vw, 68px); background: var(--navy); color: white; display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 50px; align-items: start; }
.site-footer p { margin: 0; color: rgba(255,255,255,.5); font-size: 10px; line-height: 1.7; text-transform: uppercase; letter-spacing: .09em; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes hero-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; height: 72px; }
  .institute-lockup { display: none; }
  .menu-toggle { display: flex; align-items: center; gap: 6px; background: transparent; border: 0; color: white; text-transform: uppercase; letter-spacing: .16em; font-size: 9px; }
  .menu-toggle i { display: block; width: 13px; border-top: 1px solid white; }
  .site-nav { position: fixed; inset: 72px 0 auto; padding: 30px; flex-direction: column; background: rgba(7,17,31,.98); transform: translateY(-130%); transition: transform .4s; }
  .site-header.menu-open .site-nav { transform: none; }
  .hero-content { margin-left: 25px; width: calc(100% - 50px); }
  .scroll-cue { display: none; }
  .hero-meta { left: 25px; right: auto; }
  .mission-copy, .people-intro { grid-template-columns: 1fr; gap: 35px; }
  .projects-head { grid-template-columns: 1fr; }
  .projects-head h2, .projects-head > p { grid-column: 1; }
  .project { grid-template-columns: 40px 1fr 35px; gap: 14px; }
  .project-viz { display: none; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: normal; gap: 35px 14px; }
  .collaborator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .lineage { grid-template-columns: 1fr; }
  .lineage-copy { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .timeline { min-height: 550px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .hero { min-height: 760px; }
  .hero-image { background-position: 60% center; opacity: .8; }
  .hero h1 { font-size: 57px; }
  .hero-intro { max-width: 90%; }
  .hero-meta { flex-direction: column; gap: 7px; }
  .section-pad { padding: 85px 24px; }
  .mission-copy { margin-top: 45px; }
  .principles { grid-template-columns: 1fr; margin-top: 70px; }
  .principle, .principle + .principle { min-height: auto; padding: 28px 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); }
  .principle-icon { margin-bottom: 20px; }
  .projects-head { padding-bottom: 70px; }
  .project { padding: 32px 24px; grid-template-columns: 30px 1fr 30px; }
  .project h3 { font-size: 30px; }
  .people-grid { grid-template-columns: 1fr; gap: 55px; }
  .collaborators { margin-top: 70px; }
  .collaborator-grid { grid-template-columns: 1fr; gap: 28px; }
  .portrait { aspect-ratio: 5/4; }
  .lineage-copy { padding: 85px 24px; }
  .timeline { padding: 70px 35px 70px 65px; }
  .timeline-line { left: 30px; top: 78px; bottom: 78px; }
  .timeline article::before { left: -38px; }
  .site-footer { grid-template-columns: 1fr; min-height: 340px; gap: 24px; }
}

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