@font-face {font-family:"EB Garamond"; src:url("fonts/eb-garamond.woff2") format("woff2"); font-weight:400 800; font-style:normal; font-display:swap;}
/* Dualverse AI: "Two observatories". Shared styles for every page. */
@font-face {
  font-family: "DM Serif Display"; src: url("assets/fonts/dm-serif-display-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter"; src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --haze: #E8E6F1;      /* page ground: the lavender atmosphere of the artwork */
  --haze-deep: #DDDAEA; /* footer ground */
  --paper: #F4F3F9;     /* figure plates */
  --ink: #23264A;       /* deep indigo text */
  --slate: #525779;     /* secondary text, 5.6:1 on haze */
  --indigo: #363C8C;    /* links and focus, 7.8:1 on haze */
  --coral: #E4735F;     /* the shared object: rare accent, never text */
  --rule: #CAC7DC;
  --display: "DM Serif Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "P052", "URW Palladio L", "Book Antiqua", Georgia, serif;
  --gut: clamp(1.25rem, 4.5vw, 4rem);
  --max: 86rem;

  --inst-line: #4C4F80; /* dark lavender hairline of the hero instrument */
  --editorial: "EB Garamond", "Cormorant Garamond", "Adobe Garamond Pro", Garamond, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--haze); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  font-feature-settings: "kern", "liga", "onum"; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: -0.005em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--ink); text-decoration-color:var(--link-underline); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 2px; }
::selection { background: #D3CFEC; color: var(--ink); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 4px; }
.skip:focus { top: 1rem; color: #fff; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Masthead and navigation ---------- */
.masthead {
  position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 2rem; max-width: var(--max); margin: 0 auto; padding: 1.25rem var(--gut);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-size: 1.125rem; letter-spacing: .01em; }
.brand { padding: .35rem 0; }
.brand img { width: auto; height: 2rem; }
.brand:hover { color: var(--indigo); }
.masthead ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
.masthead nav a { color: var(--ink); text-decoration: none; font-size: 1rem; padding: .35rem 0; display: inline-block; border-bottom: 1px solid transparent; }
.masthead nav a:hover { color: var(--indigo); border-bottom-color: var(--coral); }
.masthead nav a[aria-current="page"] { color: var(--indigo); border-bottom-color: var(--indigo); }
.menu-btn {
  display: none; font: inherit; font-size: 1rem; color: var(--ink); background: transparent;
  border: 1px solid var(--ink); border-radius: 999px; padding: .4rem 1.1rem; cursor: pointer;
}
.menu-btn:hover { border-color: var(--indigo); color: var(--indigo); }
@media (max-width: 52rem) {
  .js .menu-btn { display: inline-block; }
  .js .masthead nav { display: none; flex-basis: 100%; }
  .js .masthead.open nav { display: block; }
  .js .masthead.open ul { flex-direction: column; gap: 0; padding: .5rem 0 1rem; }
  .js .masthead.open nav a { font-size: 1.3rem; padding: .65rem 0; }
}
/* ---------- Homepage opening ---------- */
/*
  The panorama (1942x809) is shown whole at full viewport width: no crop, cap,
  fade or object-fit. The SVG orbit (same viewBox) and the CSS prism are
  positioned in image units (--u = one native pixel), so they stay registered
  to the gap between the ledges (image x 960, y 320) at every width.
*/
.hero { position: relative; container-type: inline-size; --art-height:calc(100vw * 992 / 1585); --center-x:50.2%; --center-y:40.6%; --orb-size:17%; --art-width:1585; }
.hero-art { position:relative; width:100%; aspect-ratio:1585 / 992; --u:calc(100cqw / var(--art-width)); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit { position:absolute; left:var(--center-x); top:var(--center-y); width:var(--orb-size); height:auto; aspect-ratio:1; transform:translate(-50%,-50%); overflow:visible; pointer-events:none; }
.orbit circle, .orbit line { fill: none; stroke: var(--inst-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.orb-ring { stroke-opacity: .36; }
.orb-axis { stroke-opacity: .3; }
.orb-meridian { stroke-opacity: .23; }

.orb-meridian { transform-box: view-box; transform-origin: 130px 130px; }

/* Coral prism: 22x46 image units, square section, CSS 3D. */
.prism { position: absolute; left:var(--center-x); top:var(--center-y); width: 0; height: 0; perspective: calc(var(--u) * 700); pointer-events: none; }
.prism-float, .prism-body { position: absolute; transform-style: preserve-3d; }
.prism-float { left: calc(var(--u) * -11); top: calc(var(--u) * -23); width: calc(var(--u) * 22); height: calc(var(--u) * 46); }
.prism-body { inset: 0; transform: rotateX(-8deg) rotateY(-32deg); }
/* Slight face overlap closes subpixel rasterization cracks during rotation. */
.prism-body i { position: absolute; inset: 0; backface-visibility: hidden; outline: .6px solid var(--face-edge); }
.prism-body .pf { --face-edge: #E87963; background: linear-gradient(100deg, #EE8771, #E06A56); transform: translateZ(calc(var(--u) * 11)); }
.prism-body .pr { --face-edge: #CA5946; background: linear-gradient(100deg, #D5604C, #BF513F); transform: rotateY(90deg) translateZ(calc(var(--u) * 11)); }
.prism-body .pb { --face-edge: #BA4E3C; background: linear-gradient(100deg, #C4553F, #B04838); transform: rotateY(180deg) translateZ(calc(var(--u) * 11)); }
.prism-body .pl { --face-edge: #EF907A; background: linear-gradient(100deg, #F4A28B, #E97F69); transform: rotateY(-90deg) translateZ(calc(var(--u) * 11)); }
.prism-body .pt, .prism-body .pd { top: calc(var(--u) * 12); bottom: auto; height: calc(var(--u) * 22); }
.prism-body .pt { --face-edge: #F7B6A4; background: #F7B6A4; transform: rotateX(90deg) translateZ(calc(var(--u) * 23)); }
.prism-body .pd { --face-edge: #A4423A; background: #A4423A; transform: rotateX(-90deg) translateZ(calc(var(--u) * 23)); }
@media (prefers-reduced-motion: no-preference) {
  .prism-body { animation: prism-turn 36s linear infinite; }
  .prism-float { animation: prism-float 9s ease-in-out infinite alternate; }
  /* The meridian ring turns with the prism: half a turn per 18s. */
  .orb-meridian { animation: orb-meridian 18s cubic-bezier(.37, 0, .63, 1) infinite alternate; }

}
.hero.is-inactive .hero-art * { animation-play-state: paused; }
@keyframes prism-turn { from { transform: rotateX(-8deg) rotateY(-32deg); } to { transform: rotateX(-8deg) rotateY(328deg); } }
@keyframes prism-float { from { transform: translateY(calc(var(--u) * -3)); } to { transform: translateY(calc(var(--u) * 3)); } }
@keyframes orb-meridian { from { transform: scaleX(1); } to { transform: scaleX(-1); } }
@keyframes orb-turn { to { transform: rotate(360deg); } }

/* Headline sits on the pale foreground: the block rises by ~1.7 line heights
   so the second baseline lands near the bottom edge of the artwork. */
.hero-text {
  --fs: clamp(2.5rem, 4.54vw, 9rem);
  position: relative; z-index: 2; margin-top: calc(var(--fs) * -1.7);
  padding: 0 max(var(--gut), 3.7vw) clamp(2.5rem, 4vw, 4.5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 3rem; align-items: end;
}
.hero-text h1 { font-family: var(--editorial); font-size: var(--fs); line-height: 1; letter-spacing: -0.012em; color: var(--ink); }
.hero-text h1 span { display: block; }
.textlinks { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.textlinks a { font-size: 1.05rem; }
.hero-sub { font-family: var(--editorial); margin: 0 0 calc(var(--fs) * .16); max-width: 30rem; color: var(--slate); font-size: clamp(1.1rem, 1.35vw, 2.25rem); line-height: 1.3; }
@media (min-width: 52.0625rem) {
  /* Homepage header floats over the sky of the panorama, aligned with the headline. */
  .masthead.over { position: absolute; top: 0; left: 0; right: 0; max-width: none; padding-left: max(var(--gut), 3.7vw); padding-right: max(var(--gut), 3.7vw); }
}

/* ---------- Shared section frame ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.block { padding-top: clamp(3.5rem, 8vw, 7rem); padding-bottom: clamp(3.5rem, 8vw, 7rem); }
.block + .block { padding-top: 0; }
.block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; margin-bottom: 2rem; }
.block-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.serif { font-family: var(--serif); }
.flush-top { padding-top: 0; }
.flush-bottom { padding-bottom: 0; }
.body-serif .textlinks { font-family: var(--sans); margin-top: 1rem; }
ol.body-serif { padding-left: 1.4em; margin: 1.75rem 0 0; }
ol.body-serif li { margin-bottom: .5em; padding-left: .25em; }
.facts a { font-family: var(--sans); white-space: nowrap; }

/* Intro */
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.lead { font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.36; margin: 0; max-width: 34ch; }
.intro-side { font-family: var(--serif); font-size: 1.12rem; line-height: 1.7; padding-top: .45rem; }

/* Projects */
.projects { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.projects > li {
  display: grid; grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr) auto; gap: .75rem 2rem;
  align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid var(--rule);
}
.projects h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.projects p { margin: 0; font-family: var(--serif); max-width: 46ch; }
.projects .go { white-space: nowrap; }

/* Story lists (home, related) */
.stories { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); }
.stories > li { border-top: 2px solid var(--ink); padding-top: 1rem; }
.stories time, .meta { display: block; color: var(--slate); font-size:1rem; margin-bottom: .5rem; font-variant-numeric: lining-nums; }
.stories h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); margin-bottom: .6rem; }
.stories h3 a { color: var(--ink); text-decoration: none; }
.stories h3 a:hover { color: var(--indigo); text-decoration: underline; text-decoration-color:var(--link-underline); }
.stories p { font-family: var(--serif); color: var(--slate); margin: 0; }
/* ---------- Inner pages ---------- */
.page-head { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.page-head h1 { font-size: clamp(2.5rem, 6.5vw, 5.5rem); letter-spacing: -0.03em; line-height: 1; max-width: 16ch; }
.page-head .dek { font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.55; color: var(--slate); max-width: 40rem; margin: 1.25rem 0 0; }
.split { display: grid; grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); }
.split > h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.split + .split { margin-top: clamp(3rem, 6vw, 5rem); }

/* Journal and research index */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.index > li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: .35rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.index time, .index .kind { color: var(--slate); font-size:1rem; padding-top: .35rem; }
.index h3 { font-size: clamp(1.3rem, 2.1vw, 1.75rem); margin-bottom: .45rem; }
.index h3 a { color: var(--ink); text-decoration: none; }
.index h3 a:hover { color: var(--indigo); text-decoration: underline; text-decoration-color:var(--link-underline); }
.index p { font-family: var(--serif); margin: 0; max-width: 60ch; }
.index .links { font-family: var(--sans); display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; margin-top: .6rem; font-size:1rem; }
.index cite { font-style: normal; }
.year { font-size: 1rem; color: var(--slate); margin: 3rem 0 .75rem; }
.year:first-child { margin-top: 0; }

/* ---------- Articles ---------- */
.story-head { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: 2.25rem; max-width: 52rem; }
.story-head .meta a { color: var(--slate); }
.story-head h1 { font-size: clamp(2.2rem, 5.2vw, 4.25rem); letter-spacing: -0.025em; line-height: 1.04; }
.story-head .dek { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.55; color: var(--slate); margin: 1.25rem 0 0; max-width: 40rem; }
.prose { font-family: var(--serif); font-size: 1.16rem; line-height: 1.72; max-width: 40rem; padding-bottom: 1rem; }
.prose h2 { font-family: var(--sans); font-size: 1.55rem; line-height: 1.2; margin: 2.4em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.75em 0; padding-left: 1.25rem; border-left: 2px solid var(--coral); font-size: 1.3rem; line-height: 1.5; }
.fig { margin: 2.25em 0; padding: clamp(1rem, 3vw, 1.75rem); background: var(--paper); border-radius: 6px; }
.fig svg { display: block; width: 100%; height: auto; }
.fig figcaption { font-family: var(--sans); font-size:1rem; line-height: 1.5; color: var(--slate); margin-top: .9rem; }
.sources { font-family: var(--sans); max-width: 40rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.sources h2 { font-size: 1.15rem; margin-bottom: .75rem; }
.sources ul { list-style: none; margin: 0; padding: 0; }
.sources li { margin-bottom: .5rem; }
.related { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.related h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
/* About and Station */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.people li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.people img { width: 7.5rem; height: 7.5rem; object-fit: cover; border-radius: 50%; filter: saturate(.85); }
.people h3 { font-size: 1.45rem; margin-bottom: .2rem; }
.people p { font-family: var(--serif); margin: 0 0 .5rem; }
.people .role { font-family: var(--sans); color: var(--slate); }
.body-serif { font-family: var(--serif); font-size: 1.14rem; line-height: 1.72; max-width: 40rem; }
.body-serif p:last-child { margin-bottom: 0; }
.loop-fig { margin: 0; }
.loop-fig svg { width: 100%; height: auto; display: block; }
.loop-fig figcaption { color: var(--slate); font-size:1rem; margin-top: .75rem; max-width: 40rem; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 1.1rem 0; border-top: 1px solid var(--rule); font-family: var(--serif); }
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.facts strong { font-family: var(--sans); font-weight: 400; font-size: 1.2rem; display: block; margin-bottom: .2rem; color: var(--ink); }

/* ---------- Footer ---------- */
.site-foot { background: var(--paper); margin-top: 0; }
.foot-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; padding-top: 3rem; padding-bottom: 2.5rem; }
.foot-inner p { margin: .75rem 0 0; color: var(--slate); max-width: 26rem; }
.foot-inner ul { list-style: none; margin: 0; padding: 0; }
.foot-inner li { margin-bottom: .45rem; }
.foot-inner h2 { font-size: 1rem; color: var(--slate); margin-bottom: .75rem; }
.foot-inner a { color: var(--ink); }
.foot-inner a:hover { color: var(--indigo); }
.copyright { color: var(--slate); font-size:1rem; padding-bottom: 2rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 23rem) {
  .masthead { column-gap: 1rem; }
}
@media (max-width: 64rem) {
  .projects > li { grid-template-columns: minmax(0, 1fr) auto; }
  .projects > li p { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 52rem) {
  .intro, .split, .people, .foot-inner { grid-template-columns: minmax(0, 1fr); }
  .stories { grid-template-columns: minmax(0, 1fr); }
  .index > li { grid-template-columns: minmax(0, 1fr); }
  .index time, .index .kind { padding-top: 0; }
  /* Narrow screens: whole panorama at its native ratio; the heading flows below. */
  .hero-text { --fs: clamp(2.3rem, 10vw, 3.5rem); margin-top: 0; grid-template-columns: minmax(0, 1fr); gap: .75rem; padding-top: .75rem; }
  .hero-sub { margin-bottom: 0; font-size: 1.15rem; }
}
@media (max-width: 30rem) {
  .projects > li { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .projects > li p { grid-column: auto; grid-row: auto; }
  .people li { grid-template-columns: 5rem minmax(0, 1fr); }
  .people img { width: 5rem; height: 5rem; }
  .prose { font-size: 1.08rem; }
}
@media print { .masthead nav, .menu-btn, .orbit, .prism { display: none; } }

/* Art-directed compositions: preserve image geometry; wide screens get actual wider scenery. */
@media (min-width:52.0625rem) {
 .hero {height:min(var(--art-height),100svh); overflow:hidden;}
 .hero-art {position:absolute; top:min(0px,calc((100svh - var(--art-height)) * .7));}
 .hero-text {position:absolute; left:0; right:0; bottom:5.5%; margin:0; padding:0 max(var(--gut),3.7vw);}
 .hero-text h1 {line-height:.88;}
 .hero-sub {max-width:40%; font-size:clamp(1.15rem,1.55vw,2.4rem); color:var(--ink); justify-self:end; width:max-content;}
 .hero-text {grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:end;}
 .hero-sub {max-width:100%;}
}
/* Outpainted sides are revealed as width increases. At the same screen height,
   2560, 3440 and 3840-wide displays retain the same central architecture scale. */
@media (min-width:2000px), (min-width:52.0625rem) and (min-aspect-ratio:2/1) {
 .hero {--scene-width:max(100vw,min(3840px,calc(100svh * 2157 / 729))); --art-height:calc(var(--scene-width) * 729 / 2157); --center-x:48.9%; --center-y:46.8%; --orb-size:7.05%; height:var(--art-height);}
 .hero-art {width:var(--scene-width); aspect-ratio:2157 / 729; left:calc((100vw - var(--scene-width)) / 2); top:0; --u:calc(var(--scene-width) / 3840);}
 .hero-text {--fs:4.5rem; bottom:5.5%;}
 .hero-sub {font-size:1.5rem;}
}
/* Ultrawide type frame: text is set in scene units, not viewport units, so it keeps
   one relationship to the architecture however much outpainted scenery is revealed.
   The frame is 46% of the scene, centred on the orbit (scene x 48.9%): its left edge
   falls under the left observatory's plinth, its right edge under the right one's.
   Headline and subtitle keep the concept's arrangement inside it, sharing a baseline.
   The masthead uses the same frame so logo, nav and type align as one composition. */
@media (min-width:2000px), (min-width:52.0625rem) and (min-aspect-ratio:2/1) {
 .hero, .masthead.over {
  --scene-width:max(100vw,min(3840px,calc(100svh * 2157 / 729)));
  --frame-width:calc(var(--scene-width) * .46);
  --frame-left:calc((100vw - var(--scene-width)) / 2 + var(--scene-width) * (.489 - .23));
 }
 .hero-text {
  --fs:calc(var(--scene-width) * .0235); /* ~90px at full 3840 scene */
  left:var(--frame-left); right:auto; width:var(--frame-width); padding:0; bottom:6%;
 }
 .hero-sub {font-size:max(1.35rem, calc(var(--scene-width) * .0078));}
 .masthead.over {
  padding-left:var(--frame-left);
  padding-right:calc(100vw - var(--frame-left) - var(--frame-width));
 }
}
@media (max-width:52rem) { .brand img {height:1.5rem;} }
