/* ============================================================
   The Eric and Wendy Schmidt Observatory System
   Inaugural Science Symposium — wireframe v02
   Refined editorial theme. Inspired by the Observatory
   simulators site: classic serif, restrained palette,
   black tag-pills, hairline-bordered cards, generous space.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Neutrals — ink-forward, cool */
  --ink:        #15191e;
  --ink-soft:   #434b53;
  --muted:      #8a929a;
  --line:       #e4e7ea;
  --hairline:   #eef0f2;
  --bg:         #ffffff;
  --bg-alt:     #f5f6f8;   /* card-section wash */
  --band:       #eaeef1;   /* muted instruction strip (per screengrab) */

  /* Brand accents — used sparingly */
  --teal:       #0a8f93;
  --teal-bright:#0fb5b5;
  --blue:       #2b7ca6;
  --purple:     #6f4a97;

  /* Type */
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body:    "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;

  /* Radius / elevation / motion */
  --r:    6px;
  --r-sm: 3px;
  --shadow-hover: 0 14px 40px -22px rgba(20,30,45,.35);
  --ease: cubic-bezier(.22,.61,.36,1);

  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.01em; line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 400; }
h3 { font-size: 1.35rem; font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--body); }
p  { margin: 0 0 1.1rem; color: var(--ink-soft); }
em, .it { font-style: italic; }
a  { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }
.accent { color: var(--teal); font-style: italic; }     /* serif accent word */

/* Small uppercase label / tag */
.label {
  display: inline-block;
  font-family: var(--body);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.tag {
  display: inline-block;
  background: var(--ink); color: #fff;
  font-family: var(--body);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-sm);
}
.tag.line { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { padding: 92px 0; }
.lead { font-size: 1.18rem; line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }
.section-head { max-width: 60ch; margin-bottom: 50px; }
.section-head .label { margin-bottom: 16px; }
.alt { background: var(--bg-alt); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-weight: 600; font-size: .96rem;
  padding: 13px 24px; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer;
  transition: background .22s var(--ease), color .22s, border-color .22s, transform .22s var(--ease);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--teal); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-onlight { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-onlight:hover { border-color: var(--ink); }

.arrow {
  font-family: var(--body); font-weight: 600; font-size: .94rem; color: var(--teal);
  display: inline-flex; align-items: center; gap: 7px;
}
.arrow span { transition: transform .25s var(--ease); }
.arrow:hover { color: var(--teal); }
.arrow:hover span { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 13px; }
.nav-logo img { height: 42px; width: auto; display: block; }
.nav-logo .div { width: 1px; height: 26px; background: var(--line); }
.nav-logo b { font-family: var(--body); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.25; }
.nav-logo:hover b { color: var(--ink-soft); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; height: 100%; }
.nav-links a {
  position: relative; display: flex; align-items: center; height: 100%;
  font-family: var(--body); color: var(--ink-soft); font-weight: 500; font-size: .95rem;
  padding: 0 15px; transition: color .18s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content:""; position: absolute; left: 15px; right: 15px; bottom: -1px; height: 2px; background: var(--teal); border-radius: 2px 2px 0 0; }
.nav-links a.cta { background: var(--ink); color: #fff; margin-left: 10px; padding: 0 18px; border-radius: var(--r); height: 40px; }
.nav-links a.cta::after { display: none; }
.nav-links a.cta:hover { background: var(--teal); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 104px 0 92px; background: var(--bg); }
.hero::before { /* faint sky wash */
  content:""; position:absolute; inset:0;
  background: radial-gradient(1200px 520px at 78% -8%, #f1f6f7 0%, rgba(241,246,247,0) 60%);
  pointer-events:none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .tags { display: flex; gap: 8px; margin-bottom: 26px; }
.hero h1 { margin-bottom: 22px; }
.hero p.lead { margin-bottom: 30px; }
.hero-meta { font-family: var(--body); font-size: .96rem; color: var(--ink); font-weight: 500; margin-bottom: 30px; display:flex; flex-wrap:wrap; gap: 8px 16px; }
.hero-meta b { font-weight: 700; }
.hero-meta .dot { color: var(--line); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Star/orbit motif (refined, subtle) */
.skychart { position: relative; aspect-ratio: 1/1; }
.skychart svg { width: 100%; height: 100%; display:block; }
.orbit { fill: none; stroke: var(--line); stroke-width: 1; }
.orbit.dash { stroke-dasharray: 2 7; stroke: #cdd5da; }
.spin { transform-origin: 50% 50%; animation: spin 60s linear infinite; }
.spin.rev { animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.twinkle { animation: tw 4s ease-in-out infinite; }
.twinkle.d1 { animation-delay: -1.2s; } .twinkle.d2 { animation-delay: -2.4s; } .twinkle.d3 { animation-delay: -3.1s; }
@keyframes tw { 0%,100%{ opacity:.35 } 50%{ opacity:1 } }

/* ---------- Instruction band (per screengrab) ---------- */
.band {
  background: var(--band); border-radius: var(--r);
  padding: 22px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.band p { margin: 0; color: var(--ink); font-size: 1.05rem; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 28px; transition: border-color .22s, transform .22s var(--ease), box-shadow .22s;
}
.card.hover:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card .label { margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; }
.grid-3 .card { border-radius: 0; border-right: 0; }
.grid-3 .card:first-child { border-top-left-radius: var(--r); border-bottom-left-radius: var(--r); }
.grid-3 .card:last-child  { border-right: 1px solid var(--line); border-top-right-radius: var(--r); border-bottom-right-radius: var(--r); }

/* numbered list (goals) */
.goal-num { font-family: var(--display); font-style: italic; font-size: 1.5rem; color: var(--teal); display:block; margin-bottom: 6px; }

/* ---------- System tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.tile { display: block; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background:#fff; transition: border-color .22s, transform .22s var(--ease), box-shadow .22s; }
.tile:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tile .img { aspect-ratio: 16/8; background-size: cover; background-position: center; position: relative; }
.tile .img .tag { position: absolute; top: 14px; right: 14px; }
.tile .body { padding: 24px 26px 26px; }
.tile .body h3 { margin-bottom: 8px; }
.tile .body p { font-size: .98rem; color: var(--ink-soft); margin-bottom: 14px; }

/* ---------- Observatory detail rows ---------- */
.obs { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; padding: 60px 0; border-top: 1px solid var(--hairline); scroll-margin-top: 96px; }
.obs:nth-child(even) .obs-media { order: 2; }
.obs-media { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; aspect-ratio: 16/11; }
.obs-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.obs .label { margin-bottom: 14px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 22px 0; }
.spec { background: #fff; padding: 14px 16px; }
.spec b { font-family: var(--display); font-size: 1.2rem; font-weight: 500; display: block; }
.spec span { font-size: .82rem; color: var(--muted); }

/* ---------- Agenda ---------- */
.daybar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.daybtn { font-family: var(--body); font-weight: 600; font-size: .92rem; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 16px; cursor: pointer; transition: color .2s, border-color .2s; }
.daybtn:hover { color: var(--ink); }
.daybtn.active { color: var(--ink); border-bottom-color: var(--teal); }
.sched { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.slot { display: grid; grid-template-columns: 120px 1fr; gap: 22px; padding: 20px 26px; border-bottom: 1px solid var(--hairline); }
.slot:last-child { border-bottom: 0; }
.slot .time { font-family: var(--body); font-weight: 600; font-size: .9rem; color: var(--teal); }
.slot h4 { margin: 0 0 3px; }
.slot p { margin: 4px 0 0; font-size: .92rem; color: var(--muted); }

/* ---------- Info list / forms ---------- */
.info { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.info-row { display: grid; grid-template-columns: 200px 1fr; gap: 22px; padding: 20px 26px; border-bottom: 1px solid var(--hairline); }
.info-row:last-child { border-bottom: 0; }
.info-row .k { font-weight: 600; color: var(--ink); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 38px; }
.airtable-embed.form {
  display: block;
  width: 100%;
  height: 2200px;
  max-width: 100%;
  padding: 0;
  background: transparent;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--body); font-weight: 600; font-size: .86rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r);
  font-family: var(--body); font-size: .96rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10,143,147,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.note { font-size: .84rem; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: .88rem; color: var(--ink-soft); }

/* ---------- Page header ---------- */
.page-head { padding: 78px 0 60px; border-bottom: 1px solid var(--hairline); position: relative; }
.page-head::before { content:""; position:absolute; inset:0; background: radial-gradient(900px 360px at 88% -20%, #f1f6f7, rgba(241,246,247,0) 60%); pointer-events:none; }
.page-head .wrap { position: relative; }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.crumb a { color: var(--muted); }

/* ---------- Closing CTA (dark, refined — no gradient) ---------- */
.close { background: var(--ink); color: #fff; border-radius: var(--r); padding: 64px 56px; text-align: center; position: relative; overflow: hidden; }
.close h2 { color: #fff; }
.close p { color: #b9c1c8; max-width: 56ch; margin: 0 auto 26px; }
.close .label { color: var(--teal-bright); }
.close::after { /* faint orbit line */
  content:""; position:absolute; width:540px; height:540px; border:1px solid rgba(255,255,255,.07); border-radius:50%; top:-260px; right:-160px;
}

/* ---------- Footer ---------- */
.footer { background: #0e1216; color: #aab3bb; padding: 60px 0 32px; }
.footer a { color: #aab3bb; } .footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer img { height: 28px; margin-bottom: 16px; background:#0e1216; }
.footer h5 { font-family: var(--body); color: #fff; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.footer .small { font-size: .84rem; color: #6b757d; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer .desc { color: #8e979f; font-size: .92rem; max-width: 34ch; }

/* ---------- Reveal on scroll (progressive enhancement) ----------
   Hidden only when JS is active (.js on <html>); otherwise visible. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity:1; transform:none; } .spin,.twinkle{ animation:none; } }

/* ---------- Hero (centred, logo-forward variant for v03) ---------- */
.hero-center { text-align: center; position: relative; }
.hero-logo { width: min(560px, 82%); height: auto; margin: 0 auto 30px; display: block; }
.hero-center .tags { justify-content: center; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-center .hero-meta { justify-content: center; }
.hero-center .hero-actions { justify-content: center; }
.hero-ring { position: absolute; border: 1px solid var(--hairline); border-radius: 50%; pointer-events: none; }
.hero-ring.r1 { width: 760px; height: 760px; top: -200px; left: 50%; margin-left: -380px; }
.hero-ring.r2 { width: 1100px; height: 1100px; top: -360px; left: 50%; margin-left: -550px; opacity: .6; }

/* ---------- Science pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pillar { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.pillar .figbox { aspect-ratio: 5/3; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.pillar .figbox svg { width: 100%; height: 100%; display: block; }
.pillar .body { padding: 20px 22px 24px; }
.pillar .body h3 { font-size: 1.18rem; margin-bottom: 6px; }
.pillar .body p { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.pillar .body .label { margin-bottom: 12px; }

/* ---------- Speakers ---------- */
.speakers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.speaker { text-align: center; }
.speaker .avatar { width: 156px; height: 156px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; border: 1px solid var(--line); display: block; background: var(--bg-alt); }
.speaker h3 { font-size: 1.3rem; margin-bottom: 2px; }
.speaker .role { font-family: var(--body); font-size: .86rem; font-weight: 600; color: var(--teal); margin: 0 0 10px; }
.speaker .talk { font-style: italic; color: var(--ink-soft); font-size: .96rem; margin: 0; }
.speakers-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 40px; }
.speaker-row { display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: center; }
.speaker-row .avatar { width: 132px; height: 132px; margin: 0; }
.speaker-row { text-align: left; }

/* ---------- Co-branding ---------- */
.cobrand { display: flex; align-items: center; gap: 14px; }
.cobrand span { font-family: var(--body); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cobrand img { height: 30px; }
.footer .cobrand img { height: 26px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .grid-2, .tiles, .footer-top { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 .card { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: -1px; }
  .pillars, .speakers, .speakers-2 { grid-template-columns: repeat(2, 1fr); }
  .obs { grid-template-columns: 1fr; }
  .obs:nth-child(even) .obs-media { order: 0; }
  .skychart { max-width: 320px; margin: 0 auto; }
  .info-row, .slot { grid-template-columns: 1fr; gap: 6px; }
  .field-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 68px; left: 0; right: 0; height: auto; max-height: calc(100vh - 68px); overflow-y: auto; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); padding: 14px 28px; gap: 2px; }
  .nav-links.open a { height: auto; padding: 11px 4px; }
  .nav-links.open a.active::after { display: none; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .pillars, .speakers, .speakers-2 { grid-template-columns: 1fr; }
  .speaker-row { grid-template-columns: 96px 1fr; }
  .speaker-row .avatar { width: 96px; height: 96px; }
}

/* ---------- Rich-text prose page ---------- */
.page-body { max-width: 70ch; margin-top: 8px; }
.page-body h3 { font-size: 1.35rem; margin: 1.6em 0 .4em; }
.page-body ul { padding-left: 1.1em; }
.page-body li { margin-bottom: .4rem; color: var(--ink-soft); }
.page-body a { color: var(--teal); }
