:root{color-scheme:dark;--bg:#080b10;--text:#ecece8;--muted:#a6adb6;--gold:#e4bc87;--line:#ffffff20}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.75 system-ui,sans-serif}a{color:inherit;text-decoration:none}a:hover{color:var(--gold)}a:focus-visible{outline:2px solid var(--gold);outline-offset:6px}.skip{position:absolute;top:-100px}.skip:focus{top:10px;z-index:10;background:#080b10}header{height:96px;padding:0 6%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{font-size:23px;letter-spacing:.2em;font-weight:650}.mark{color:var(--gold);font-size:34px;vertical-align:middle}nav{display:flex;gap:32px;font-size:13px}nav a{padding:10px 0}nav a[aria-current]{color:var(--gold);border-bottom:1px solid var(--gold)}.code{font-size:13px}.hero{position:relative;min-height:760px;height:calc(100svh - 96px);max-height:1100px;overflow:hidden;padding:110px 8% 80px;display:flex;align-items:center}.hero>img{position:absolute;right:0;top:0;width:68%;height:100%;object-fit:cover;object-position:50% 43%;opacity:.78}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#080b10 5%,#080b10e0 29%,#080b1040 65%,transparent),linear-gradient(0deg,#080b10,transparent 35%)}.hero-copy{z-index:1;position:relative;max-width:690px}.eyebrow{text-transform:uppercase;letter-spacing:.2em;font-size:11px;color:var(--gold);font-weight:650}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(60px,7.7vw,118px);line-height:1.03;letter-spacing:-.065em;font-weight:400;margin:28px 0}em{font-family:Georgia,serif;font-weight:400;color:var(--gold)}.hero-copy p{max-width:430px;color:#bcc1c7;font-size:17px}.button{display:inline-flex;gap:38px;border:1px solid #e4bc8760;padding:13px 23px;margin-top:22px;font-size:13px}.button:hover{background:#e4bc8715}.hero-caption{position:absolute;bottom:30px;left:8%;right:8%;z-index:1;display:flex;justify-content:space-between;color:var(--muted);font-size:11px;letter-spacing:.13em}section:not(.hero){max-width:1300px;margin:auto;padding:90px 7%}h2{font-size:clamp(32px,4vw,56px);font-weight:400;letter-spacing:-.045em;line-height:1.15;margin:17px 0 35px}h3{font-size:23px;line-height:1.3;font-weight:450;letter-spacing:-.025em;margin:18px 0}p{color:var(--muted)}.intro{display:grid;grid-template-columns:1fr 1fr;gap:0 70px}.intro>.eyebrow{grid-column:1/-1}.intro>div{padding-top:20px}.lead{font-size:22px;line-height:1.6;max-width:740px;color:#d1d4d8}.stats{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid var(--line);padding-block:35px!important}.stats div{display:flex;flex-direction:column}.stats strong{font-size:38px;font-weight:350}.stats span{color:var(--muted);font-size:12px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:20px}.section-head>a{font-size:12px;color:var(--gold)}figure{margin:0}.science-image{width:100%;max-height:650px;object-fit:contain;background:#050608;display:block}figcaption{font-size:13px;line-height:1.6;color:var(--muted);margin-top:16px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:24px;max-width:1120px;margin:auto}.cards article{padding:30px;background:linear-gradient(145deg,#151b24,#0b1017);border:1px solid var(--line)}.cards p{font-size:14px;margin-bottom:0}.page-top{padding-top:100px!important}.page-top h1{font-size:clamp(54px,7vw,94px)}.technical{border-block:1px solid var(--line)}pre{overflow:auto;padding:24px;background:#121820;border:1px solid var(--line);font-size:13px}.people{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--bg);border:1px solid var(--line);margin-top:35px}.people article{background:var(--bg);padding:30px}.people h3{font-size:18px;margin-bottom:5px}.people p{font-size:12px}.avatar{display:grid;place-items:center;width:45px;height:45px;border:1px solid #e4bc8750;border-radius:50%;color:var(--gold);font-size:13px}footer{padding:65px 7%;border-top:1px solid var(--line);font-size:12px;display:flex;justify-content:space-between;align-items:center;gap:30px}footer .brand{font-size:17px}footer p{margin:0}@media(max-width:700px){header{height:auto;min-height:105px;flex-wrap:wrap;padding:14px 6%;gap:12px}header .brand{font-size:19px}nav{order:3;width:100%;justify-content:space-between;gap:10px;font-size:11px}.hero{height:760px;min-height:0;padding-top:80px}.hero>img{width:100%;opacity:.5}.hero:after{background:linear-gradient(90deg,#080b10c0,#080b1030),linear-gradient(0deg,#080b10,transparent)}.hero-caption span{display:none}.intro{grid-template-columns:1fr}.stats strong{font-size:26px}.stats span{font-size:10px}.people{grid-template-columns:repeat(2,1fr)}.people article{padding:20px}.section-head{display:block}section:not(.hero){padding:60px 7%}footer{align-items:start;flex-direction:column;gap:15px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.workflow-step{margin-top:65px}.workflow-step figure{margin-top:24px}.field-label{display:block;font:11px system-ui,sans-serif;text-transform:uppercase;letter-spacing:.16em;color:var(--gold);margin-bottom:8px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;margin:30px 0}th,td{text-align:left;padding:16px;border-bottom:1px solid var(--line)}th{color:var(--gold)}.paper-link{display:block;margin-top:18px;color:var(--gold)}.stats strong{font-size:clamp(20px,2.6vw,38px)}

/* Gently approach the southern H II region in the VVV hero image. */
.hero > img {
  transform-origin: 48% 90%;
  animation: vvv-breathe 10s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes vvv-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.30); }
}
@media (prefers-reduced-motion: reduce) {
  .hero > img { animation: none; will-change: auto; }
}

.hero-sky{position:absolute;inset:0 0 0 30%;overflow:hidden;opacity:.8}
.sky-frame{position:absolute;width:100%;height:100%;object-fit:cover;object-position:40% 65%}
.hero-sky{transform-origin:38% 80%;will-change:transform}
@media(max-width:700px){.hero-sky{left:0;opacity:.6}.hero-caption #wavelength-label{display:block;max-width:65%}.hero-caption{align-items:center;gap:10px}}
@media(prefers-reduced-motion:reduce){.hero-sky{will-change:auto}}

.hero-copy h1 { font-size: clamp(40px, 5.13vw, 78.67px); }

/* Give links visible feedback for both pointer and keyboard interaction. */
a { text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover, a:focus-visible { text-decoration-line: underline; }
.button:hover, .button:focus-visible { border-color: var(--gold); background: #e4bc8715; }
figure a { display: block; }
figure a:hover img, figure a:focus-visible img { outline: 1px solid var(--gold); outline-offset: -1px; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 13px; }
.contact-links a { color: var(--gold); overflow-wrap: anywhere; max-width: 100%; }
.people article { min-width: 0; }

/* Use one shared underline for active, hovered, and focused navigation links. */
nav a { border-bottom: 1px solid transparent; }
nav a:hover, nav a:focus-visible {
  text-decoration: none;
  border-bottom-color: var(--gold);
}

/* Keep the clipping window fixed while the registered wavelength frames zoom inside it. */
.hero-window { position: absolute; inset: 0 0 0 30%; overflow: hidden; opacity: .8; }
.hero-window .hero-sky { position: absolute; inset: 0; opacity: 1; }
@media (max-width: 700px) {
  .hero-window { left: 0; opacity: .6; }
}

/* Crop the source canvas with layout only; retain the approved logo artwork. */
header { height: 120px; }
.logo-brand { position: relative; display: block; width: 120px; height: 106px; overflow: hidden; flex-shrink: 0; }
.logo-brand img { position: absolute; width: 200px; height: auto; max-width: none; left: -40px; top: -10px; }
.hero { height: calc(100svh - 120px); }
@media (max-width: 700px) {
  header { height: auto; }
  .hero { height: 760px; }
}

/* Observatory cards keep the full image and description within one link. */
/* Telescope gallery: ALMA alone, then rows of three; rows crossfade every 5 s (gallery.js). */
/* All rows share one grid cell, so the section keeps the height of the tallest row. */
.telescope-gallery { max-width: 1216px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; gap: 0 16px; align-items: center; }
.gallery-step { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 28px/1 system-ui, sans-serif; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; transition: color .2s, border-color .2s; }
.gallery-step:hover { color: var(--gold); border-color: var(--gold); }
.gallery-step:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.telescope-rows { display: grid; }
.gallery-row { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s; }
.gallery-row.is-visible { opacity: 1; visibility: visible; transition: opacity 1s ease, visibility 0s; }
.telescope-row--main { grid-template-columns: 1fr; }
.telescope-card { display: flex; flex-direction: column; overflow: hidden; background: #0d131b; border: 1px solid var(--line); transition: border-color .2s; }
.telescope-card--main { display: grid; grid-template-columns: 1.2fr 1fr; }
.telescope-card > img { width: 100%; height: 190px; object-fit: cover; }
.telescope-card--main > img { height: 100%; min-height: 0; }
.telescope-copy { padding: 27px; display: flex; flex-direction: column; flex: 1; }
.telescope-copy h3 { display: flex; justify-content: space-between; color: var(--text); }
.telescope-copy h3 span { color: var(--gold); font-size: 17px; }
.telescope-copy p { font-size: 14px; }
.telescope-copy small { margin-top: auto; padding-top: 16px; color: var(--muted); font-size: 11px; }
.telescope-card:hover, .telescope-card:focus-visible { border-color: var(--gold); text-decoration: none; }
.telescope-card:hover h3, .telescope-card:focus-visible h3 { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .25em; }
/* Clip the original plot frame while keeping both sky fields registered. */
.recovery-animation { position: relative; aspect-ratio: 4663 / 3360; overflow: hidden; user-select: none; pointer-events: none; }
.recovery-animation img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; transform: scale(1.045); }
.recovery-combined, .combined-label { animation: continuum-crossfade 12s ease-in-out infinite; }
.recovery-labels { position: relative; height: 24px; margin-top: 18px; color: var(--gold); font-size: 12px; }
.recovery-labels span { position: absolute; inset: 0; }
.model-label { animation: continuum-model-label 12s ease-in-out infinite; }
@keyframes continuum-model-label { 0%,30%,100% { opacity: 1; } 45%,80% { opacity: 0; } }
@keyframes continuum-crossfade { 0%,30%,100% { opacity: 0; } 45%,80% { opacity: 1; } }
/* Without rotation (narrow screens, reduced motion) every row is shown and the arrows are hidden. */
@media (max-width: 700px), (prefers-reduced-motion: reduce) { .telescope-rows { gap: 24px; } .gallery-row { grid-area: auto; opacity: 1; visibility: visible; transition: none; } .telescope-gallery .gallery-step { display: none; } }
@media (max-width: 700px) { .telescope-gallery { display: block; } .gallery-row { grid-template-columns: 1fr; } .telescope-card--main { display: flex; } .telescope-card--main > img { height: 190px; } }
@media (prefers-reduced-motion: reduce) { .recovery-combined, .combined-label, .model-label { animation: none; } .model-label { opacity: 0; } }

/* Fade the fixed edge of the hero image into the dark background. */
.hero-window { -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 65%); mask-image: linear-gradient(to right, transparent 0%, #000 65%); }
@media (max-width: 700px) { .hero-window { -webkit-mask-image: none; mask-image: none; } }

/* Blend the home-page navigation into the stationary hero background. */
.home-page > header { position: absolute; inset: 0 0 auto; z-index: 10; isolation: isolate; border-bottom: 0; background: transparent; }
.home-page > header::before { content: ""; position: absolute; inset: 0 0 -120px; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(8,11,16,.96) 0%, rgba(8,11,16,.82) 30%, rgba(8,11,16,.42) 65%, rgba(8,11,16,0) 100%); }
.home-page .hero { height: 100svh; max-height: 1220px; padding-top: 230px; }
@media (max-width: 700px) { .home-page .hero { height: 865px; padding-top: 190px; } }

/* Show the full multiwavelength strip at the width of its text column. */
.multiwavelength-image { height: auto; max-height: none; }

.gallery-frames { position: relative; aspect-ratio: 14 / 4; overflow: hidden; }
.gallery-frame { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; }
.gallery-frame.is-visible { opacity: 1; }
.gallery-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.gallery-buttons button { font: inherit; font-size: 13px; color: var(--muted); background: transparent; border: 1px solid var(--line); padding: 10px 16px; cursor: pointer; }
.gallery-buttons button[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
.gallery-buttons button:hover { color: var(--gold); text-decoration: underline; text-underline-offset: .25em; }
.gallery-buttons button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media(prefers-reduced-motion:reduce) { .gallery-frame { transition: none; } }

.array-gallery-frames { aspect-ratio: 14 / 4; }

.logo-story iframe { display: block; width: 66.6667%; aspect-ratio: 1.5; border: 0; background: transparent; mix-blend-mode: screen; margin: 30px auto 0; }
/* Units keep their case inside upper-case labels (μm, mm, GHz, cm). */
.eyebrow .unit { text-transform: none; letter-spacing: .08em; }

/* Scroll reveal (all pages): sections below the opening fade and rise into view once. */
.js-reveal .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s ease; }
.js-reveal .reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; transition: none; } }
@media print { .js-reveal .reveal { opacity: 1; transform: none; } }
/* A row of buttons (open-source links); wraps on narrow screens. */
.button-row { display: flex; flex-wrap: wrap; gap: 16px; }
.open-source-text { margin-top: 24px; }
