/* goldford.github.io — "abyss" theme, shared with the SOGEM site. */

:root {
  --abyss: #020a14;
  --deep: #051526;
  --mid: #0a2540;
  --surface: #0f3a5c;
  --ink: #e4eff5;
  --ink-2: #c3d4df;
  --muted: #8fa8ba;
  --glow: #7fe3ff;
  --kelp: #8ef0c4;
  --sun: #ffd27a;
  --note: #ffb86b;
  --coral: #ff8f8f;
  --line: rgba(143, 168, 186, 0.18);
  --line-2: rgba(143, 168, 186, 0.32);
  --panel: rgba(9, 30, 50, 0.55);
  --panel-solid: #071a2d;

  --f-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--glow); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(127, 227, 255, .4); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(127, 227, 255, .3); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--glow); color: var(--abyss); border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: .82em; letter-spacing: .01em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.eyebrow { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.display { font: italic 600 clamp(34px, 4.6vw, 54px)/1.04 var(--f-display); letter-spacing: -.01em; margin-bottom: .45em; }
.display--xl { font-size: clamp(42px, 7vw, 84px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 62ch; }
.h3 { font-size: 1.2rem; }

/* Ocean backdrop: subtle light from the surface that fades as you scroll down. */
.ocean { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(40, 120, 170, calc(.35 * (1 - var(--depth, 0)))), transparent 60%),
    radial-gradient(80% 50% at 85% 110%, rgba(127, 227, 255, .05), transparent 60%),
    linear-gradient(180deg, var(--deep), var(--abyss) 70%);
}

/* Depth gauge (injected by site.js) */
.depth { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 20; display: none; align-items: center; gap: 10px; pointer-events: none; }
.depth__track { position: relative; width: 2px; height: 34vh; background: linear-gradient(var(--glow), rgba(127, 227, 255, .05)); border-radius: 2px; opacity: .55; }
.depth__dot { position: absolute; left: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px 2px rgba(127, 227, 255, .7); top: calc(var(--depth, 0) * 100%); }
.depth__val { font: 500 10.5px/1.2 var(--f-mono); color: var(--muted); writing-mode: vertical-rl; letter-spacing: .14em; text-transform: uppercase; }
@media (min-width: 1100px) { .depth { display: flex; } }

/* Masthead */
.masthead { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.masthead.is-solid { background: rgba(2, 10, 20, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__mark { width: 28px; height: 28px; fill: var(--glow); stroke: rgba(127, 227, 255, .55); stroke-width: 1.2; filter: drop-shadow(0 0 6px rgba(127, 227, 255, .5)); }
.brand__name { font: italic 600 22px/1 var(--f-display); letter-spacing: .01em; }
.sitenav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.sitenav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.sitenav a:hover { color: var(--ink); background: rgba(127, 227, 255, .08); }
.sitenav a[aria-current="page"] { color: var(--abyss); background: var(--glow); }
.navtoggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); border-radius: 10px; color: var(--ink); cursor: pointer; }
.navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .25s, opacity .2s; border-radius: 2px; }
.navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: absolute; left: 0; }
.navtoggle__bars::before { top: -6px; } .navtoggle__bars::after { top: 6px; }
.navtoggle[aria-expanded="true"] .navtoggle__bars { background: transparent; }
.navtoggle[aria-expanded="true"] .navtoggle__bars::before { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 760px) {
  .navtoggle { display: block; }
  .sitenav { position: fixed; inset: 66px 0 auto 0; background: rgba(2, 10, 20, .96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 18px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .sitenav.is-open { opacity: 1; transform: none; visibility: visible; }
  .sitenav ul { flex-direction: column; }
  .sitenav a { padding: 12px 14px; font-size: 17px; }
}

/* Buttons, pills, chips */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--ink); font-weight: 600; font-size: 15.5px; text-decoration: none; transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); border-color: rgba(127, 227, 255, .55); background: rgba(127, 227, 255, .07); }
.btn--glow { background: var(--glow); color: var(--abyss); border-color: var(--glow); box-shadow: 0 0 0 0 rgba(127, 227, 255, .4), 0 8px 30px -8px rgba(127, 227, 255, .6); }
.btn--glow:hover { background: #a6ecff; color: var(--abyss); box-shadow: 0 10px 40px -8px rgba(127, 227, 255, .8); }
.btn--disabled { opacity: .55; cursor: default; }
.btn--disabled:hover { transform: none; background: rgba(255, 255, 255, .03); border-color: var(--line-2); }
.btn .mono { font-size: 11px; opacity: .75; }
.pill { display: inline-block; padding: 2px 9px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 10.5px/1.7 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pill--journal { color: var(--glow); border-color: rgba(127, 227, 255, .4); }
.pill--preprint, .pill--status { color: var(--note); border-color: rgba(255, 184, 107, .45); }
.pill--software { color: var(--kelp); border-color: rgba(142, 240, 196, .4); }
.pill--chapter { color: #c7b8ff; border-color: rgba(199, 184, 255, .4); }
.pill--report, .pill--thesis, .pill--commentary { color: var(--ink-2); }
.pill--invited, .pill--panel { color: var(--sun); border-color: rgba(255, 210, 122, .45); }
.pill--testimony { color: var(--coral); border-color: rgba(255, 143, 143, .45); }
.pill--conference { color: var(--glow); border-color: rgba(127, 227, 255, .4); }
.pill--ok { color: var(--kelp); border-color: rgba(142, 240, 196, .45); }
.pill--note { color: var(--note); border-color: rgba(255, 184, 107, .45); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2em 0; }
.chip { display: inline-block; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; transition: border-color .2s, color .2s, background .2s; }
.chip:hover { color: var(--ink); border-color: var(--glow); background: rgba(127, 227, 255, .06); }
.arrowlink { color: var(--ink-2); text-decoration: none; font-weight: 500; white-space: nowrap; }
.arrowlink::after { content: " →"; color: var(--glow); transition: margin .2s; }
.arrowlink:hover { color: var(--ink); }
.arrowlink:hover::after { margin-left: 4px; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 10, 20, .88) 0%, rgba(2, 10, 20, .55) 38%, rgba(2, 10, 20, 0) 62%), linear-gradient(0deg, var(--abyss) 0%, transparent 22%); }
.hero__inner { padding-top: 110px; padding-bottom: 90px; pointer-events: none; }
.hero__inner a, .hero__inner button { pointer-events: auto; }
.hero__title { font: italic 600 clamp(52px, 7.6vw, 104px)/.9 var(--f-display); letter-spacing: -.015em; margin: 0 0 24px; text-shadow: 0 0 40px rgba(127, 227, 255, .18); }
.hero__lede { font-size: clamp(18px, 1.8vw, 23px); line-height: 1.5; max-width: 30ch; color: var(--ink); margin-bottom: 22px; text-shadow: 0 1px 12px rgba(2, 10, 20, .9); }
.hero__lede { max-width: 34ch; }
.hero__sub { max-width: 46ch; color: var(--ink-2); font-size: 16.5px; margin-bottom: 22px; text-shadow: 0 1px 10px rgba(2, 10, 20, .9); }
.hero__roles { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 4px; }
.hero__roles li { font: 500 12.5px/1.5 var(--f-mono); color: var(--muted); padding-left: 16px; position: relative; }
.hero__roles li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 8px var(--glow); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__hint { margin-top: 36px; color: rgba(143, 168, 186, .7); font-size: 11px; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--glow); border-radius: 2px; animation: sink 2.2s var(--ease) infinite; }
@keyframes sink { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@media (max-width: 760px) {
  .hero__scrim { background: linear-gradient(180deg, rgba(2, 10, 20, .35), rgba(2, 10, 20, .8) 55%, var(--abyss)); }
  .hero__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero__scroll span { animation: none; } }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tight { padding-top: 24px; }
.section__intro { color: var(--ink-2); max-width: 62ch; font-size: 1.08rem; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section__head .display { margin-bottom: 0; }
.pagehead { padding: 150px 0 30px; }
.pagehead--center { text-align: center; min-height: 70vh; display: grid; place-items: center; }
.pagehead--center .lead { margin-inline: auto; }
.pagehead--center .chips { justify-content: center; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; }
.toc a { font: 500 12px/1.6 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--glow); }

/* About */
.about__grid { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.portrait { margin: 0; position: relative; }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 1px solid var(--line-2); box-shadow: 0 0 0 10px rgba(127, 227, 255, .04), 0 0 80px -10px rgba(127, 227, 255, .35); }
.portrait figcaption { margin-top: 18px; text-align: center; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.about__text p:not(.eyebrow):not(.lead) { color: var(--ink-2); max-width: 64ch; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 36px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { background: var(--abyss); padding: 20px 22px; }
.stats dt { font: italic 600 clamp(30px, 3.4vw, 42px)/1 var(--f-display); color: var(--glow); margin-bottom: 8px; }
.stats dd { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
@media (max-width: 760px) {
  .about__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 240px; margin-inline: auto; }
}
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* Impact */
.impacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; margin-top: 34px; }
.impactcard { position: relative; padding: 26px 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; display: flex; flex-direction: column; }
.impactcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); box-shadow: 0 0 18px 2px var(--c); opacity: .85; }
.impactcard .impactcard__tag { color: var(--c); text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; margin-bottom: 12px; }
.impactcard h3 { font: italic 600 25px/1.12 var(--f-display); margin-bottom: 12px; }
.impactcard p { color: var(--ink-2); font-size: 15.5px; }
.impactcard__out { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink) !important; font-size: 12px !important; line-height: 1.5; }

/* Model stack */
.stack { background: linear-gradient(180deg, transparent, rgba(10, 37, 64, .35) 30%, rgba(10, 37, 64, .35) 70%, transparent); }
.strata { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 0; position: relative; }
.strata::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--glow), #8ef0c4, var(--sun), var(--note)); opacity: .55; }
.stratum { display: grid; grid-template-columns: minmax(180px, 260px) 1fr auto; gap: 24px; align-items: center; padding: 26px 0 26px 44px; border-bottom: 1px solid var(--line); position: relative; }
.stratum::before { content: ""; position: absolute; left: 1px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 16px 3px var(--c); }
.stratum__depth { display: none; }
.stratum h3 { font: italic 600 30px/1 var(--f-display); color: var(--c); }
.stratum__kind { margin: 6px 0 0; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; }
.stratum > p { margin: 0; color: var(--ink-2); }
.stack__cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.stack__cta p { flex-basis: 100%; margin: 0; }
@media (max-width: 860px) {
  .stratum { grid-template-columns: 1fr; gap: 8px; padding: 22px 0 22px 34px; }
  .stratum::before { top: 36px; }
  .stratum .pill { justify-self: start; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); color: var(--ink); text-decoration: none; transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); border-color: rgba(127, 227, 255, .45); box-shadow: 0 20px 50px -20px rgba(127, 227, 255, .35); }
.card__img { aspect-ratio: 16 / 9; overflow: hidden; background: #0b2238; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; filter: saturate(.85) brightness(.9); }
.card:hover .card__img img { transform: scale(1.04); filter: none; }
.card__body { padding: 20px 22px 24px; }
.card__body .eyebrow { margin-bottom: 8px; font-size: 10.5px; }
.card h3 { font: italic 600 26px/1.1 var(--f-display); margin-bottom: 10px; }
.card p:last-child { color: var(--muted); margin: 0; font-size: 15.5px; }

/* Publications */
.publist { list-style: none; padding: 0; margin: 0; }
.pub { padding: 20px 0; border-bottom: 1px solid var(--line); }
.pub__meta { display: flex; gap: 6px; margin-bottom: 8px; }
.pub__title { font-size: 1.12rem; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.pub__title a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--glow), var(--glow)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease), color .2s; }
.pub__title a:hover { color: var(--glow); background-size: 100% 1px; }
.pub__authors { color: var(--muted); font-size: 15px; margin-bottom: 4px; }
.pub__authors .me { color: var(--ink); font-weight: 600; }
.pub__venue { color: var(--ink-2); font-size: 15px; margin-bottom: 0; }
.pub__summary { margin: 10px 0 0; color: var(--ink-2); font-size: 15.5px; max-width: 75ch; }
.doi { margin-left: 8px; color: var(--muted); font-size: 12px; }
.doi:hover { color: var(--glow); }
.publist--featured { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 0 40px; }
.publist--compact .pub { padding: 14px 0; }
.publist--compact .pub__title { font-size: 1rem; }

.filterbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 0; position: sticky; top: 66px; z-index: 10; background: linear-gradient(var(--abyss) 80%, transparent); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: inherit; font-size: 14px; color: var(--ink-2); background: rgba(255, 255, 255, .02); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; cursor: pointer; transition: all .2s; }
.seg button .mono { color: var(--muted); font-size: 11px; margin-left: 2px; }
.seg button:hover { border-color: var(--glow); }
.seg button[aria-pressed="true"] { background: var(--glow); color: var(--abyss); border-color: var(--glow); }
.seg button[aria-pressed="true"] .mono { color: rgba(2, 10, 20, .7); }
.search input { font: inherit; font-size: 15px; color: var(--ink); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; width: min(320px, 80vw); }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 3px rgba(127, 227, 255, .15); }
.yeargroup { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding-top: 18px; }
.yeargroup__year { font-size: 15px; color: var(--glow); padding-top: 22px; position: sticky; top: 140px; align-self: start; font-weight: 500; }
.yeargroup[hidden], .pub[hidden], .talk[hidden] { display: none; }
@media (max-width: 640px) {
  .yeargroup { grid-template-columns: 1fr; gap: 0; }
  .yeargroup__year { position: static; padding-top: 12px; }
  .filterbar { position: static; }
}

/* Talks */
.appear { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 20px; margin-bottom: 36px; }
.appear__item { padding: 26px; border-radius: var(--radius); border: 1px solid rgba(255, 210, 122, .25); background: linear-gradient(160deg, rgba(255, 210, 122, .07), rgba(9, 30, 50, .5) 50%); }
.appear__item .appear__date { color: var(--sun); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.appear__item h3, .appear__item h2 { font: italic 600 25px/1.15 var(--f-display); margin-bottom: 10px; }
.appear__item h3 a, .appear__item h2 a { color: var(--ink); text-decoration: none; }
.appear__item h3 a:hover, .appear__item h2 a:hover { color: var(--sun); }
.appear__item p { font-size: 15.5px; color: var(--ink-2); }
.appear__item p.muted { color: var(--muted); font-size: 14.5px; }
.appear__item p:last-child { margin-bottom: 0; }
.talkmini { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.talkmini li { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.talkmini .mono { color: var(--muted); }
.talkmini .muted { font-size: 14px; }
@media (max-width: 640px) { .talkmini li { grid-template-columns: 1fr; gap: 2px; } }
.talks { list-style: none; padding: 0; margin: 0; }
.talk { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.talk__date { color: var(--muted); padding-top: 3px; }
.talk__title { font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
.talk__title a { color: var(--ink); }
.talk p.muted { font-size: 14.5px; margin: 0; }
@media (max-width: 640px) { .talk { grid-template-columns: 1fr; gap: 6px; } .talk .pill { justify-self: start; } }

/* Research themes */
.theme__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.theme--flip .theme__fig { order: 2; }
.theme__fig { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0b2238; box-shadow: 0 30px 80px -40px rgba(127, 227, 255, .35); }
.theme__fig img { width: 100%; }
.theme__fig--light { background: #fff; }
.prose p { color: var(--ink-2); max-width: 64ch; }
.prose strong { color: var(--ink); }
.related { margin-top: 10px; border-top: 1px solid var(--line); }
.related summary { cursor: pointer; padding: 14px 0; font: 500 12px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); list-style: none; }
.related summary::-webkit-details-marker { display: none; }
.related summary::before { content: "+ "; color: var(--glow); }
.related[open] summary::before { content: "– "; }
.related summary:hover { color: var(--ink); }
@media (max-width: 860px) { .theme__grid { grid-template-columns: 1fr; } .theme--flip .theme__fig { order: 0; } }
.repos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; margin-top: 10px; }
.repo { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none; color: var(--ink-2); font-size: 15px; transition: border-color .2s, transform .2s; }
.repo .mono { color: var(--glow); font-size: 13px; }
.repo:hover { border-color: rgba(127, 227, 255, .45); transform: translateY(-2px); }

/* Teaching */
.lectures { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 18px; }
.lecture { padding: 24px; border: 1px solid rgba(142, 240, 196, .25); border-radius: var(--radius); background: linear-gradient(160deg, rgba(142, 240, 196, .07), rgba(9, 30, 50, .5) 55%); }
.lecture__date { color: var(--kelp); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; margin-bottom: 10px; }
.lecture h3 { font: italic 600 24px/1.15 var(--f-display); margin-bottom: 10px; }
.lecture p.muted { font-size: 14.5px; margin: 0; }
.teachgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.teachgrid .cv__list > li { grid-template-columns: 110px 1fr; }
.interests { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.interests li { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 860px) { .teachgrid { grid-template-columns: 1fr; } }
.pill--poster { color: #c7b8ff; border-color: rgba(199, 184, 255, .4); }

/* Contact & footer */
.contact__inner { text-align: center; padding: clamp(40px, 6vw, 72px) var(--gutter); border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(80% 120% at 50% 0%, rgba(127, 227, 255, .1), transparent 60%), var(--panel); max-width: 900px; }
.contact__inner .lead { margin-inline: auto; }
.contact .sociallinks { justify-content: center; margin-top: 26px; }
.sociallinks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sociallinks a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .2s, border-color .2s, background .2s; }
.sociallinks a:hover { color: var(--ink); border-color: var(--glow); background: rgba(127, 227, 255, .06); }
.sociallinks svg { width: 17px; height: 17px; fill: currentColor; }
.footer { border-top: 1px solid var(--line); padding: 40px 0 50px; margin-top: 40px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.footer__name { font: italic 600 24px/1 var(--f-display); margin-bottom: 6px; }
.footer p { margin: 0; }
.footer .muted { font-size: 14px; }
.footer__meta { flex-basis: 100%; color: var(--muted); font-size: 11.5px; }
.footer__meta a { color: var(--muted); }

/* Scroll reveal (enabled by site.js) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* CV */
.cv { padding-top: 130px; max-width: 980px; }
.cv__head { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line-2); margin-bottom: 10px; }
.cv__name { font: italic 600 clamp(44px, 7vw, 72px)/1 var(--f-display); margin-bottom: 10px; }
.cv__role { font-size: 1.15rem; color: var(--glow); margin-bottom: 8px; font-weight: 500; }
.cv__aff { margin: 0; color: var(--ink-2); font-size: 15px; }
.cv__contact { font-size: 14.5px; text-align: right; }
.cv__contact p { margin: 0 0 2px; color: var(--muted); }
.cv__contact a { color: var(--ink-2); text-decoration: none; }
.cv__contact a:hover { color: var(--glow); }
.cv__dl { margin-top: 14px !important; }
.cv__contact .btn--glow { color: var(--abyss); }
.cv__sec { padding: 26px 0 8px; border-bottom: 1px solid var(--line); }
.cv__sec h2 { font: 500 12px/1.4 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--glow); margin-bottom: 16px; }
.cv__sec h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 18px 0 8px; }
.cv__sec > p { color: var(--ink-2); }
.cv__list { list-style: none; padding: 0; margin: 0 0 12px; }
.cv__list > li { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 7px 0; font-size: 15.5px; color: var(--ink-2); }
.cv__list > li p { margin: 0; }
.cv__list strong { color: var(--ink); }
.cv__when { font: 400 13px/1.9 var(--f-mono); color: var(--muted); }
.cv__org { color: var(--muted); font-size: 14.5px; }
.cv__notes { margin: 6px 0 4px; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); }
.cv__notes li { margin: 2px 0; }
.cv__list--tight > li { padding: 4px 0; }
.cv__pubs { list-style: none; margin: 0 0 12px; padding-left: 0; font-size: 15px; color: var(--ink-2); }
.cv__pubs li { padding: 4px 0 4px 24px; text-indent: -24px; }
.pubs__more { margin-top: 36px; max-width: 70ch; }
.cv__pubs .me { color: var(--ink); }
.cv__pubs a { word-break: break-all; font-size: 13px; }
.cv__skills { margin: 0 0 14px; display: grid; gap: 6px; }
.cv__skills div { display: grid; grid-template-columns: 220px 1fr; gap: 18px; font-size: 15px; }
.cv__skills dt { color: var(--ink); font-weight: 600; }
.cv__skills dd { margin: 0; color: var(--ink-2); }
.cv__foot { margin: 24px 0 0; color: var(--muted); font-size: 13.5px; }
@media (max-width: 640px) {
  .cv__contact { text-align: left; }
  .cv__list > li, .cv__skills div { grid-template-columns: 1fr; gap: 0; }
}

/* Print: clean academic CV (also used to make the PDF). */
@page { size: letter; margin: 16mm 16mm 18mm; @bottom-right { content: "Greig Oldford · CV · " counter(page); font: 8pt "Hanken Grotesk", sans-serif; color: #777; } }
@media print {
  :root { --ink: #111; --ink-2: #222; --muted: #555; --glow: #0b4f6c; --line: #ddd; --line-2: #bbb; }
  html, body { background: #fff !important; color: #111; font-size: 9.6pt; line-height: 1.38; }
  .ocean, .masthead, .footer, .depth, .skip, .screen-only { display: none !important; }
  a { color: inherit; text-decoration: none; }
  .cv { padding: 0; max-width: none; }
  .cv__head { padding-bottom: 10pt; margin-bottom: 0; border-bottom: 1.2pt solid #0b4f6c; }
  .cv__name { font-size: 28pt; margin-bottom: 2pt; color: #0b2238; }
  .cv__role { font-size: 11pt; margin-bottom: 2pt; color: #0b4f6c; }
  .cv__aff, .cv__contact { font-size: 9pt; }
  .cv__sec { padding: 9pt 0 2pt; border-bottom: 0; }
  .cv__sec h2 { font-size: 8.5pt; margin-bottom: 5pt; color: #0b4f6c; border-bottom: .5pt solid #ccc; padding-bottom: 2pt; break-after: avoid; }
  .cv__sec h3 { font-size: 9.6pt; margin: 6pt 0 3pt; break-after: avoid; }
  .cv__list > li { grid-template-columns: 82pt 1fr; gap: 10pt; padding: 2pt 0; font-size: 9.6pt; break-inside: avoid; }
  .cv__when { font-size: 8.5pt; line-height: 1.6; }
  .cv__org, .cv__notes { font-size: 9pt; }
  .cv__notes { margin: 1pt 0 2pt; }
  .cv__pubs { font-size: 9.4pt; padding-left: 0; }
  .cv__pubs li { padding: 1.5pt 0; break-inside: avoid; }
  .cv__pubs a { font-size: 8.5pt; color: #0b4f6c; }
  .cv__skills div { grid-template-columns: 140pt 1fr; font-size: 9.4pt; }
  .cv__foot { font-size: 8.5pt; }
}
