/* cormorant-garamond-cyrillic-ext-300-normal */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(/_astro/cormorant-garamond-cyrillic-ext-300-normal.D8IReVS-.woff2) format('woff2'), url(/_astro/cormorant-garamond-cyrillic-ext-300-normal.B5wCrnbP.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* cormorant-garamond-cyrillic-300-normal */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(/_astro/cormorant-garamond-cyrillic-300-normal.DZNkLIMe.woff2) format('woff2'), url(/_astro/cormorant-garamond-cyrillic-300-normal.KEduutn5.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* cormorant-garamond-vietnamese-300-normal */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(/_astro/cormorant-garamond-vietnamese-300-normal.BTzPAsHw.woff2) format('woff2'), url(/_astro/cormorant-garamond-vietnamese-300-normal.ByHlPz7v.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* cormorant-garamond-latin-ext-300-normal */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(/_astro/cormorant-garamond-latin-ext-300-normal.BsCYHBWC.woff2) format('woff2'), url(/_astro/cormorant-garamond-latin-ext-300-normal.DueGyF8j.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* cormorant-garamond-latin-300-normal */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(/_astro/cormorant-garamond-latin-300-normal.Cw-E_7L1.woff2) format('woff2'), url(/_astro/cormorant-garamond-latin-300-normal.BuXLI6C0.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* cormorant-garamond-cyrillic-ext-400-normal */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/cormorant-garamond-cyrillic-ext-400-normal.W3Dto7M0.woff2) format('woff2'), url(/_astro/cormorant-garamond-cyrillic-ext-400-normal.DLdKLAvx.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* cormorant-garamond-cyrillic-400-normal */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/cormorant-garamond-cyrillic-400-normal.DD2KOZkl.woff2) format('woff2'), url(/_astro/cormorant-garamond-cyrillic-400-normal.CVFrM67f.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* cormorant-garamond-vietnamese-400-normal */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/cormorant-garamond-vietnamese-400-normal.6K-YXo6g.woff2) format('woff2'), url(/_astro/cormorant-garamond-vietnamese-400-normal.4uxlocMh.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* cormorant-garamond-latin-ext-400-normal */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/cormorant-garamond-latin-ext-400-normal.Drx2k2n9.woff2) format('woff2'), url(/_astro/cormorant-garamond-latin-ext-400-normal.uvC0WHQr.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* cormorant-garamond-latin-400-normal */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/cormorant-garamond-latin-400-normal.B-1hWBU7.woff2) format('woff2'), url(/_astro/cormorant-garamond-latin-400-normal.B7YtguxJ.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* cormorant-garamond-cyrillic-ext-400-italic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/cormorant-garamond-cyrillic-ext-400-italic.BEGvmv_3.woff2) format('woff2'), url(/_astro/cormorant-garamond-cyrillic-ext-400-italic.C_Uk1MUY.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* cormorant-garamond-cyrillic-400-italic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/cormorant-garamond-cyrillic-400-italic.D3GtrbRZ.woff2) format('woff2'), url(/_astro/cormorant-garamond-cyrillic-400-italic.AH1vqu4S.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* cormorant-garamond-vietnamese-400-italic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/cormorant-garamond-vietnamese-400-italic.BoXDRTEW.woff2) format('woff2'), url(/_astro/cormorant-garamond-vietnamese-400-italic.CJpMwFnN.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* cormorant-garamond-latin-ext-400-italic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/cormorant-garamond-latin-ext-400-italic.BdEzgT7i.woff2) format('woff2'), url(/_astro/cormorant-garamond-latin-ext-400-italic.CQvLaSWn.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* cormorant-garamond-latin-400-italic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/cormorant-garamond-latin-400-italic.Dc_OZ8oc.woff2) format('woff2'), url(/_astro/cormorant-garamond-latin-400-italic.BLh7T8o8.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* cormorant-garamond-cyrillic-ext-600-normal */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/_astro/cormorant-garamond-cyrillic-ext-600-normal.BMhMHfrj.woff2) format('woff2'), url(/_astro/cormorant-garamond-cyrillic-ext-600-normal.CsIYWmWK.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* cormorant-garamond-cyrillic-600-normal */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/_astro/cormorant-garamond-cyrillic-600-normal.C2atO-64.woff2) format('woff2'), url(/_astro/cormorant-garamond-cyrillic-600-normal.FNmA3REe.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* cormorant-garamond-vietnamese-600-normal */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/_astro/cormorant-garamond-vietnamese-600-normal.BoXdMtcr.woff2) format('woff2'), url(/_astro/cormorant-garamond-vietnamese-600-normal.C4HEjEaf.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* cormorant-garamond-latin-ext-600-normal */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/_astro/cormorant-garamond-latin-ext-600-normal.DaBc-lu7.woff2) format('woff2'), url(/_astro/cormorant-garamond-latin-ext-600-normal.Dk3-quAP.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* cormorant-garamond-latin-600-normal */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/_astro/cormorant-garamond-latin-600-normal.Co1r35X9.woff2) format('woff2'), url(/_astro/cormorant-garamond-latin-600-normal.2CBVLo0M.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* ---------------------------------------------------------------------------
   Tokens — the original site's palette and type, unchanged.
   --------------------------------------------------------------------------- */
:root {
  --dark: rgb(68, 68, 68);
  --light: #fff;
  --on-dark: #fff;
  --on-light: #444;
  --muted: rgb(155, 155, 155);
  --portrait-bg: #aaa;
  --accent: rgb(107, 137, 189);
  --accent-soft: rgb(188, 203, 223);

  --font: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --fs-body: 21px;
  --fs-h1: 53px;
  --fs-h2: 35px;

  --nav-w: 65px;
  --band-pad: 100px;
  --gutter: 15px;
  --col-gap: 15px; /* Bootstrap's effective column content widths */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 991px) {
  :root {
    --fs-body: 16px;
    --fs-h1: 30px;
    --fs-h2: 30px;
  }
}

/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* Lenis (damped scrolling) drives the native scroll position; these are its recommended base rules */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-stopped {
  overflow: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--on-dark);
  background: var(--dark);
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  font-family: var(--font);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

a {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* publication-title links: muted, with an accent underline that draws in on hover
   and whose colours keep drifting (the gradient stops follow --shift, see Motion) */
@property --shift {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

a.text {
  --shift: 0%;
  color: var(--muted);
  text-decoration: none;
  background-image: linear-gradient(
    90deg,
    var(--accent) calc(var(--shift) - 60%),
    var(--accent-soft) var(--shift),
    var(--accent) calc(var(--shift) + 60%)
  );
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition:
    color 0.25s,
    background-size 0.35s var(--ease-out);
}

a.text:hover {
  color: var(--fg, inherit);
  text-decoration: none;
  background-size: 100% 1px;
}

main {
  margin-left: var(--nav-w);
}

/* ---------------------------------------------------------------------------
   Fixed social bar (left rail on desktop, bottom bar on phones)
   --------------------------------------------------------------------------- */
.social {
  position: fixed;
  z-index: 10;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--nav-w);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--dark);
  font-size: 25px;
  line-height: 1;
}

.social a {
  color: var(--on-dark);
  transform-origin: center;
  transition:
    transform 0.6s var(--ease-out),
    color 0.4s;
}

/* enlarge in place, like the card logos do */
.social a:hover,
.social a:focus-visible {
  color: var(--accent-soft);
  transform: scale(1.18);
  text-decoration: none;
}

@media (max-width: 575px) {
  main {
    margin-left: 0;
    padding-bottom: 56px;
  }

  .social {
    top: auto;
    right: 0;
    width: auto;
    height: 56px;
    padding: 0 20px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .social a:hover,
  .social a:focus-visible {
    transform: scale(1.18);
  }
}

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
.hero {
  background: radial-gradient(120% 140% at 28% 0%, #565656 0%, var(--dark) 52%, #3b3b3b 100%);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 4fr 5fr 2fr;
  column-gap: var(--col-gap);
  padding: 0 var(--gutter);
  align-items: center;
}

.hero__portrait-wrap {
  grid-column: 2;
}

.hero__portrait {
  width: 70%;
  min-width: 160px;
  max-width: 350px;
  margin-left: 80px;
  padding: 50px 20px 0;
  background: var(--portrait-bg);
}

.hero__text {
  grid-column: 3;
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 300;
  margin-top: 30px;
  background: linear-gradient(100deg, var(--accent-soft), var(--accent), var(--accent-soft), var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (max-width: 991px) {
  .hero__grid {
    grid-template-columns: 4fr 8fr;
  }

  .hero__portrait-wrap {
    grid-column: 1;
  }

  .hero__text {
    grid-column: 2;
  }

  .hero__portrait {
    width: 100%;
    margin-left: 0;
    padding: 0 20px;
  }

  .hero__title {
    margin-bottom: 40px;
  }
}

@media (max-width: 575px) {
  .hero__grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .hero__portrait-wrap,
  .hero__text {
    grid-column: 1;
  }

  .hero__portrait {
    width: 64%;
    max-width: 280px;
    margin: 40px auto 0;
    padding: 24px 12px 0;
  }

  .hero__text {
    padding: 40px var(--gutter);
    border-top: 1px solid var(--accent);
  }
}

/* ---------------------------------------------------------------------------
   Bands: title left, content right. Each tone defines the tokens the pieces
   below use, so cards, hairlines and buttons adapt automatically.
   --------------------------------------------------------------------------- */
.band {
  padding: var(--band-pad) var(--gutter);
  /* not-yet-revealed items sit shifted sideways (see Motion); clip that here so mobile
     browsers don't widen the layout viewport to fit it. `clip` keeps sticky titles working. */
  overflow-x: clip;
}

.band--dark {
  background: var(--dark);
  color: var(--on-dark);
  --fg: var(--on-dark);
  --fg-muted: rgba(255, 255, 255, 0.62);
  --hairline: rgba(255, 255, 255, 0.12);
  --hairline-strong: rgba(255, 255, 255, 0.28);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --accent-text: var(--accent-soft);
  --rule-highlight: rgba(255, 255, 255, 0.95);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 26px 50px rgba(0, 0, 0, 0.45);
}

.band--light {
  background: var(--light);
  color: var(--on-light);
  --fg: var(--on-light);
  --fg-muted: rgba(68, 68, 68, 0.66);
  --hairline: rgba(68, 68, 68, 0.14);
  --hairline-strong: rgba(68, 68, 68, 0.32);
  --surface: rgba(68, 68, 68, 0.035);
  --surface-hover: rgba(68, 68, 68, 0.065);
  --accent-text: var(--accent);
  --rule-highlight: rgb(52, 80, 132);
  --shadow: 0 18px 40px rgba(40, 40, 40, 0.16);
  --shadow-hover: 0 26px 50px rgba(40, 40, 40, 0.24);
}

/* neighbouring bands of the same tone get a hairline between them */
.band--dark + .band--dark,
.band--light + .band--light {
  border-top: 1px solid var(--hairline);
}

.band__grid {
  display: grid;
  grid-template-columns: 2fr 3fr 5fr 2fr;
  column-gap: var(--col-gap);
}

.band__title {
  grid-column: 2;
  font-size: var(--fs-h2);
  font-weight: 300;
  align-self: start;
  letter-spacing: 0.01em;
}

/* a short accent rule under every band title, with a highlight that travels along it */
.band__title::after {
  content: '';
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 16px;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--accent-soft),
    var(--rule-highlight),
    var(--accent-soft),
    var(--accent)
  );
  background-size: 300% 100%;
}

.band__content {
  grid-column: 3;
  align-self: center;
  min-width: 0;
}

.band--wide .band__content {
  grid-column: 3 / 5;
  padding-right: calc(var(--col-gap) * 2);
}

@media (min-width: 992px) {
  /* the band title keeps the reader company through long content (e.g. Publications) */
  .band__title {
    position: sticky;
    top: 40px;
  }
}

@media (max-width: 991px) {
  .band__grid {
    grid-template-columns: 1fr;
  }

  .band__title,
  .band__content,
  .band--wide .band__content {
    grid-column: 1;
    padding-right: 0;
  }

  .band__title {
    margin-bottom: 40px;
  }
}

/* ---------------------------------------------------------------------------
   Text pieces
   --------------------------------------------------------------------------- */
.description {
  margin-bottom: 1rem;
}

/* small uppercase labels: tags, badges, button text */
.label,
.tag,
.badge,
.button {
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.year-label {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 2.6rem 0 0.5rem;
  font-size: 1.5em;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--accent-text);
}

.year-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.list > .year-label:first-child {
  margin-top: 0;
}

.tag {
  display: inline-block;
  margin-left: 0.6em;
  padding: 0.15em 0.55em;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  color: var(--fg-muted);
  vertical-align: 0.15em;
  white-space: nowrap;
}

.tag--accent {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(107, 137, 189, 0.32), rgba(188, 203, 223, 0.22));
  color: var(--accent-text);
}

.badge {
  display: inline-block;
  padding: 0.18em 0.6em;
  border-radius: 999px;
  border: 1px solid rgba(107, 137, 189, 0.7);
  color: var(--accent-text);
  vertical-align: 0.15em;
  margin-left: 0.6em;
}

/* inline links in running text: a quiet underline that warms up on hover */
.description a,
.entry__text a,
.project__head a,
.project__desc a,
.article a:not(.text) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--hairline-strong);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.25s;
}

.description a:hover,
.entry__text a:hover,
.project__head a:hover,
.project__desc a:hover,
.article a:not(.text):hover {
  text-decoration-color: var(--accent-text);
}

/* --- hairline-separated lists (projects, publications, consulting) --- */
.entry {
  display: grid;
  grid-template-columns: 3.4em 1fr;
  gap: 1rem;
  padding: 1rem 0;
  margin: 0;
  border-bottom: 1px solid var(--hairline);
}

.entry__year {
  font-size: 1.25em;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--accent-text);
}

.article,
.project {
  position: relative;
  padding: 1.1rem 0.9rem;
  margin: 0 -0.9rem;
  border-bottom: 1px solid var(--hairline);
  border-radius: 4px;
  transition: background-color 0.3s;
}

.article:hover,
.project:hover {
  background-color: var(--surface);
}

.expander .list > .article:last-child,
.expander .list > .project:last-child {
  border-bottom: 0;
}

/* journal / book titles in the accent tint, stand out but stay quiet */
.article em {
  color: var(--accent-text);
}

.article strong {
  font-weight: 600;
}

.project__head {
  margin-bottom: 0.2rem;
}

.project__title {
  font-weight: 600;
}

a.project__title {
  transition: color 0.25s;
}

.project__meta {
  margin: 0 0 0.35rem;
  color: var(--fg-muted);
  font-size: 0.92em;
}

.project__desc {
  margin: 0;
}

.publications__group {
  font-size: 1.35em;
  font-weight: 400;
  margin: 2.8rem 0 0.5rem;
}

/* --- expander ("show more") --- */
.expander {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.7s var(--ease-out),
    opacity 0.5s;
}

.expander__inner {
  min-height: 0;
  overflow: hidden;
}

.expander.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.expander.is-open .expander__inner {
  overflow: visible;
}

.expander__actions {
  margin: 1.6rem 0 0;
}

html.no-js .expander {
  grid-template-rows: 1fr;
  opacity: 1;
}

html.no-js .expander__actions {
  display: none;
}

/* --- buttons --- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  padding: 0.95em 1.7em;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-family: var(--font);
  line-height: 1;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-decoration: none;
  transition:
    border-color 0.3s,
    color 0.3s,
    transform 0.3s var(--ease-out),
    box-shadow 0.3s;
}

/* the fill slides in from the left on hover */
.button::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--accent), var(--accent-soft), var(--accent));
  background-size: 200% 100%;
  transform: translateX(-101%);
  transition: transform 0.45s var(--ease-out);
}

.button:hover,
.button:focus-visible {
  color: #fff;
  border-color: transparent;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(107, 137, 189, 0.3);
}

.button:hover::before,
.button:focus-visible::before {
  transform: none;
}

.button:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.button__hint {
  opacity: 0.6;
  font-weight: 400;
}

.button__chevron {
  transition: transform 0.4s var(--ease-out);
}

.button[aria-expanded='true'] .button__chevron {
  transform: rotate(180deg);
}

/* --- featured books: a grid of front covers --- */
.books {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.4rem 1.4rem;
}

@media (max-width: 991px) {
  .books {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.book {
  display: block;
  text-decoration: none;
}

.book:hover {
  text-decoration: none;
}

.book__frame {
  display: block;
  border-radius: 3px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s;
}

.book:hover .book__frame {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Book.astro crops the jacket spreads to the front cover (2:3, right-anchored) at build
   time; the CSS crop is only a safety net for images that arrive in another ratio */
.book__cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: 100% 50%;
  transition: transform 0.6s var(--ease-out);
}

.book:hover .book__cover {
  transform: scale(1.03);
}

.book__title {
  display: block;
  margin: 0.9rem 0 0.4rem;
  font-size: 0.9em;
  font-weight: 600;
  line-height: 1.3;
}

.book__caption {
  display: block;
  color: var(--accent-text);
  line-height: 1.5;
}

/* --- video --- */
.video {
  aspect-ratio: 16 / 9;
  margin-bottom: 1.2rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --- CV --- */
.cv {
  display: block;
  margin-bottom: 1.4rem;
  border-radius: 3px;
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}

.cv:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.cv__preview {
  width: 100%;
  border-radius: 3px;
}

/* --- partner cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--surface);
  text-decoration: none;
  transition:
    transform 0.55s var(--ease-out),
    border-color 0.55s,
    background-color 0.55s,
    box-shadow 0.55s var(--ease-out);
}

/* a soft light falls across the card from the top-left as it rises */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 0% 0%, rgba(188, 203, 223, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s;
}

.card:hover {
  text-decoration: none;
  transform: translateY(-8px);
  border-color: rgba(188, 203, 223, 0.6);
  background: var(--surface-hover);
  box-shadow: var(--shadow-hover);
}

.card:hover::before {
  opacity: 1;
}

.card__logo {
  display: flex;
  align-items: center;
  height: 64px;
  margin-bottom: 0.9rem;
  transform-origin: left center;
  transition: transform 0.6s var(--ease-out);
}

.card:hover .card__logo {
  transform: scale(1.04) translateY(-2px);
}

.card__logo img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.card__name {
  font-weight: 600;
  line-height: 1.25;
}

.card__role {
  font-size: 0.66em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.card__desc {
  font-size: 0.88em;
  line-height: 1.45;
  color: var(--fg-muted);
}

@media (max-width: 575px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .books {
    gap: 1.6rem 1rem;
  }

  .article,
  .project {
    padding-inline: 0.5rem;
    margin-inline: -0.5rem;
  }
}

/* ---------------------------------------------------------------------------
   Motion
   1. Slide-ins: `.reveal` elements start hidden and slide in (titles from the
      left, content from the right) once they cross a threshold — triggered by
      src/scripts/motion.ts, played by the transitions below.
   2. Parallax: hero portrait/text and `.float` pictures are tied to the scroll
      position with CSS scroll-driven animations (Chrome, Edge, Safari 26+);
      other browsers simply show them static.
   Nothing moves for people who asked for reduced motion or have JS disabled.
   --------------------------------------------------------------------------- */
:root {
  --slide: 90px;
  --reveal-duration: 0.85s;
}

@media (max-width: 575px) {
  :root {
    --slide: 48px;
  }
}

/* gradients drift slowly through the letters and rules; a long alternate loop keeps it fluent */
@keyframes gradient-drift {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

/* the hero enters on load: portrait from the left, title and tagline from the right */
@keyframes hero-in-left {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-in-right {
  from {
    opacity: 0;
    transform: translateX(36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes stop-drift {
  from {
    --shift: 0%;
  }
  to {
    --shift: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a.text:hover {
    animation: stop-drift 3s ease-in-out infinite alternate;
  }

  /* the hero title's gradient is a per-frame paint: don't tick it while the hero is off screen */
  .hero.is-offscreen .hero__title {
    animation-play-state: paused;
  }

  .hero__portrait-wrap {
    animation: hero-in-left 1.2s var(--ease-out) 0.1s both;
  }

  .hero__title {
    animation:
      hero-in-right 1s var(--ease-out) 0.35s both,
      gradient-drift 16s ease-in-out infinite alternate;
  }

  .hero__text p {
    animation: hero-in-right 1s var(--ease-out) 0.55s both;
  }

  .band__title::after {
    animation: gradient-drift 5s ease-in-out infinite alternate;
  }

  .button:hover::before,
  .button:focus-visible::before {
    animation: gradient-drift 3.5s ease-in-out infinite alternate;
  }

  html:not(.no-js) .reveal {
    opacity: 0;
    transform: translateX(var(--slide));
    transition:
      opacity var(--reveal-duration) ease-out,
      transform var(--reveal-duration) var(--ease-out);
    /* staggered rows (logos): each item starts a little after the previous one */
    transition-delay: calc(var(--i, 0) * 90ms);
  }

  html:not(.no-js) .reveal--left {
    transform: translateX(calc(-1 * var(--slide)));
  }

  html:not(.no-js) .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  @supports (animation-timeline: view()) {
    /* the portrait scrolls slower than the page, the intro text drifts away */
    .hero__portrait {
      animation: hero-portrait linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }

    .hero__text {
      animation: hero-text linear both;
      animation-timeline: scroll(root);
      animation-range: 0 80vh;
    }

    /* pictures drift upward, slightly faster than the page, as they cross the viewport */
    .float {
      animation: float linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}

@keyframes hero-portrait {
  to {
    transform: translateY(140px);
  }
}

@keyframes hero-text {
  to {
    opacity: 0;
    transform: translateY(60px);
  }
}

@keyframes float {
  from {
    transform: translateY(var(--float, 80px));
  }
  to {
    transform: translateY(calc(-1 * var(--float, 80px)));
  }
}

/* ---------------------------------------------------------------------------
   Presentation deck (src/components/Deck.astro + src/scripts/deck.ts)
   --------------------------------------------------------------------------- */
.deck-band {
  min-height: 100vh;
  padding-top: 56px;
  /* stage + controls fit the window: width follows the available height (16:9), capped at 1200px */
  --deck-width: min(100%, 1200px, calc((100vh - 330px) * 16 / 9));
}

.deck-head {
  max-width: var(--deck-width);
  margin: 0 auto 1.6rem;
}

.deck-head__label {
  color: var(--fg-muted);
  margin: 0 0 0.8rem;
}

.deck-head__label a {
  color: var(--accent-text);
  text-decoration: none;
}

.deck-head__label a:hover {
  text-decoration: underline;
}

.deck-head__title {
  font-size: var(--fs-h1);
  font-weight: 300;
  margin: 0 0 0.3rem;
  background: linear-gradient(100deg, var(--accent-soft), var(--accent), var(--accent-soft), var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.deck-head__subtitle {
  margin: 0;
  font-size: 1.25em;
  font-weight: 300;
  color: var(--fg-muted);
}

.deck {
  max-width: var(--deck-width);
  margin: 0 auto;
}

/* --- the stage --- */
.deck__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1c1c1c;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  outline: none;
  cursor: pointer;
  user-select: none;
  touch-action: pan-y;
}

.deck__stage:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 4px;
}

.deck__slides {
  list-style: none;
  margin: 0;
  padding: 0;
}

.deck__slide img {
  display: block;
  width: 100%;
  height: auto;
}

/* not enhanced (no JavaScript): a plain vertical gallery */
.deck:not(.is-enhanced) .deck__stage {
  aspect-ratio: auto;
  background: none;
  box-shadow: none;
  cursor: default;
}

.deck:not(.is-enhanced) .deck__slide {
  margin-bottom: 1rem;
}

.deck:not(.is-enhanced) .deck__arrow,
.deck:not(.is-enhanced) .deck__bar {
  display: none;
}

/* enhanced: one slide at a time, neighbours kept ready but invisible */
.deck.is-enhanced .deck__slide {
  display: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition:
    opacity 0.65s ease,
    transform 0.65s var(--ease-out);
  will-change: transform, opacity;
}

.deck.is-enhanced .deck__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.deck.is-enhanced .deck__slide.is-active,
.deck.is-enhanced .deck__slide.is-staged,
.deck.is-enhanced .deck__slide.is-leaving-left,
.deck.is-enhanced .deck__slide.is-leaving-right {
  display: block;
}

.deck.is-enhanced .deck__slide.is-active {
  opacity: 1;
  transform: none;
  z-index: 2;
}

.deck.is-enhanced .deck__slide.is-entering-right {
  transform: translateX(7%) scale(1.03);
  transition: none;
}

.deck.is-enhanced .deck__slide.is-entering-left {
  transform: translateX(-7%) scale(1.03);
  transition: none;
}

.deck.is-enhanced .deck__slide.is-leaving-left {
  opacity: 0;
  transform: translateX(-5%) scale(0.97);
  z-index: 1;
}

.deck.is-enhanced .deck__slide.is-leaving-right {
  opacity: 0;
  transform: translateX(5%) scale(0.97);
  z-index: 1;
}

/* --- overlay arrows --- */
.deck__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition:
    opacity 0.3s,
    background-color 0.3s,
    border-color 0.3s;
}

.deck__arrow--prev {
  left: 16px;
}

.deck__arrow--next {
  right: 16px;
}

.deck__stage:hover .deck__arrow,
.deck__stage:focus-within .deck__arrow,
.deck__arrow:focus-visible {
  opacity: 1;
}

.deck__arrow:hover {
  background: var(--accent);
  border-color: transparent;
}

.deck__arrow:disabled {
  opacity: 0 !important;
  pointer-events: none;
}

@media (hover: none) {
  .deck__arrow {
    opacity: 0.85;
    width: 40px;
    height: 40px;
  }
}

/* --- progress + controls --- */
.deck__bar {
  margin-top: 1.2rem;
}

.deck__progress {
  height: 2px;
  margin-bottom: 1.1rem;
  border-radius: 1px;
  background: var(--hairline);
  overflow: hidden;
}

.deck__progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft), var(--accent));
  background-size: 300% 100%;
  transition: width 0.5s var(--ease-out);
}

.deck__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.deck__counter {
  margin: 0 0.4rem;
  min-width: 5.5em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.deck__counter-current {
  font-size: 1.5em;
  font-weight: 300;
  color: var(--accent-text);
}

.deck__counter-sep {
  margin: 0 0.35em;
  color: var(--fg-muted);
}

.deck__fullscreen {
  margin-left: auto;
}

.button:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* --- fullscreen --- */
.deck:fullscreen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: none;
  background: #111;
}

.deck:fullscreen .deck__stage {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  background: #111;
}

.deck:fullscreen .deck__bar {
  margin: 0;
  padding: 0.8rem 1.5rem 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .deck-head__title,
  .deck__progress-fill {
    animation: gradient-drift 16s ease-in-out infinite alternate;
  }
}

@media (max-width: 991px) {
  .deck-band {
    --deck-width: 100%;
  }
}

@media (max-width: 575px) {
  .deck-band {
    padding-top: 40px;
  }

  .deck__counter {
    min-width: 0;
    margin: 0 auto;
  }

  .deck__fullscreen {
    display: none;
  }
}
.icon[data-astro-cid-ccg5yoga] {
  display: inline-block;
  width: 1em;
  height: 1em;
  line-height: 0;
}

.icon[data-astro-cid-ccg5yoga] svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
