/* ==========================================================================
   Alka Subedi — site styles
   Design tokens taken from the source design: cream/ink/maroon editorial palette,
   Playfair Display for display type, Inter for everything else.
   ========================================================================== */

:root {
  /* Palette */
  --cream:        #FAF7F2;
  --cream-2:      #EDE7DD;
  --cream-3:      #E2DACE;
  --white:        #FFFFFF;
  --ink:          #1C1C1C;
  --maroon:       #7A1F2B;
  --maroon-ink:   #641822;
  --maroon-wash:  rgba(122, 31, 43, 0.08);
  --border:       #E8E1D7;
  --border-strong:#B8B2AC;
  --rule:         #DCD5CB;
  --muted:        #8A8378;
  --muted-2:      #A9A299;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Layout */
  --wrap:        1120px;
  --wrap-wide:   1280px;
  --wrap-narrow: 900px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 4px;
  --radius-lg: 6px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 72px;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), opacity 0.18s var(--ease);
}
a:hover { color: var(--maroon); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

p { margin: 0; }
ul { margin: 0; }

:focus-visible {
  outline: 2.5px solid var(--maroon);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--maroon); color: var(--cream); }

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--maroon);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--cream); }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.wrap        { width: 100%; max-width: var(--wrap);        margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide  { max-width: var(--wrap-wide); }
.wrap--narrow{ max-width: var(--wrap-narrow); }

.section { padding-block: clamp(56px, 8vw, 88px); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }
.section--dark  { background: var(--ink); color: var(--cream); }
.section--alt   { background: var(--cream-2); }

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
}

.section-head { margin-bottom: clamp(28px, 4vw, 40px); }
.section-head h2 {
  font-size: clamp(26px, 4vw, 34px);
  margin-top: 10px;
}
.section-head p {
  margin-top: 14px;
  font-size: clamp(15px, 1.6vw, 16px);
  line-height: 1.65;
  opacity: 0.8;
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   Buttons / pills
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn--primary { background: var(--maroon); color: var(--cream); border-color: var(--maroon); }
.btn--primary:hover { background: var(--maroon-ink); border-color: var(--maroon-ink); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--outline-maroon { background: transparent; color: var(--ink); border-color: var(--maroon); }
.btn--outline-maroon:hover { background: var(--maroon); color: var(--cream); }
.btn--sm { font-size: 14px; padding: 11px 22px; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--maroon);
}
.textlink:hover { color: var(--maroon-ink); gap: 10px; }
.textlink--underline { text-decoration: underline; text-underline-offset: 3px; font-weight: 500; color: var(--ink); }

.pill {
  display: inline-block;
  width: fit-content;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon);
  background: var(--maroon-wash);
  padding: 8px 16px;
  border-radius: 20px;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(184, 178, 172, 0.28);
  padding: 7px 14px;
  border-radius: 16px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon);
  background: var(--maroon-wash);
  padding: 6px 14px;
  border-radius: 14px;
}
.badge--ink { color: var(--ink); background: rgba(28, 28, 28, 0.07); }

/* --------------------------------------------------------------------------
   Media boxes + graceful image placeholders
   A .media box keeps its shape whether or not the photo has been added yet.
   -------------------------------------------------------------------------- */

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-2);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media--contain { background: var(--cream-2); }
/* :not(.media__blur) matters — the blurred backdrop is also an img inside this
   box, and must keep its own absolute/cover rules rather than inherit these. */
.media--contain img:not(.media__blur) { object-fit: contain; position: relative; z-index: 1; }
.media__blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(24px);
  transform: scale(1.2);
  opacity: 0.5;
  z-index: 0;
}

/* Placeholder state, applied by main.js when a photo is missing */
.media.is-placeholder {
  background: linear-gradient(145deg, var(--cream-2) 0%, var(--cream-3) 100%);
  display: grid;
  place-items: center;
}
.media.is-placeholder::before {
  content: attr(data-initials);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 24px;
  color: var(--maroon);
  background: var(--cream);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(28, 28, 28, 0.08);
}
.media.is-placeholder::after {
  content: attr(data-placeholder-label);
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.media.is-placeholder img,
.media.is-placeholder .media__blur { display: none; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-strong);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-h);
  padding-block: 14px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 20px; white-space: nowrap; }

.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  position: relative;
}
.nav__links a[aria-current="page"] { color: var(--maroon); font-weight: 600; }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--maroon);
  border-radius: 2px;
}
.nav__links .btn[aria-current="page"]::after { display: none; }
.nav__links .btn { white-space: nowrap; }
.nav__links .btn:hover { color: var(--cream); }

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}
.nav__toggle:hover { border-color: var(--maroon); color: var(--maroon); }
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }
.nav__toggle[aria-expanded="true"] .icon-menu { display: none; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }

  /* The dropdown panel is a fixed child of the header. A backdrop-filter on an
     ancestor makes fixed descendants that reach outside it composite wrongly in
     Chrome (the panel paints behind the page), so the blur goes at these widths. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--cream);
  }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    z-index: 110;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 18px 40px rgba(28, 28, 28, 0.1);
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.22s var(--ease), opacity 0.22s var(--ease), visibility 0.22s;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__links a {
    padding: 15px 2px;
    font-size: 16.5px;
    border-bottom: 1px solid var(--border);
  }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__links .btn {
    margin-top: 18px;
    border-bottom: none;
    padding: 15px 28px;
  }
  body.nav-open { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  padding-block: clamp(44px, 7vw, 72px);
}
.hero__body {
  flex: 999 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero h1 {
  font-size: clamp(30px, 5.2vw, 44px);
  line-height: 1.18;
}
.hero__lede {
  font-size: clamp(16px, 1.8vw, 17px);
  line-height: 1.6;
  max-width: 58ch;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.hero__media {
  flex: 1 1 340px;
  min-width: min(280px, 100%);
  max-width: 440px;
  aspect-ratio: 44 / 47;
}
.hero__media img { object-position: center 20%; }

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 40px);
  justify-content: space-between;
}
.stat { flex: 1 1 200px; text-align: center; }
.stat__num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 40px);
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat__label { font-size: 14px; line-height: 1.4; color: rgba(250, 247, 242, 0.72); }

/* --------------------------------------------------------------------------
   Selected work cards
   -------------------------------------------------------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 26px;
}
.work-card { display: block; }
.work-card .media { aspect-ratio: 3 / 4; }
.work-card:hover .media img { transform: scale(1.03); }
.work-card .media img { transition: transform 0.5s var(--ease); object-position: 50% 25%; }
.work-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.work-card__title { font-family: var(--font-serif); font-weight: 700; font-size: 20px; line-height: 1.25; }
.work-card__views { font-size: 15px; font-weight: 700; color: var(--maroon); white-space: nowrap; }
.work-card__meta { font-size: 13.5px; opacity: 0.65; margin-top: 5px; }
.work-card__cta { font-size: 13px; font-weight: 600; color: var(--maroon); margin-top: 12px; }
.work-card:hover .work-card__title { color: var(--maroon); }

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */

.tl-legend {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.tl-legend span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.tl-legend i {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--maroon);
}
.tl-legend i.is-edu { background: var(--ink); }

.tl-row { display: flex; align-items: stretch; }
.tl-row__years {
  width: 96px;
  flex-shrink: 0;
  text-align: right;
  padding: 2px 24px 0 0;
}
.tl-row__year {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--maroon);
}
.tl-row__year.is-edu { color: var(--ink); }
.tl-row__to {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 6px;
}
.tl-row__line { width: 1px; background: var(--rule); flex-shrink: 0; position: relative; }
.tl-row:last-of-type .tl-row__line { background: transparent; }
.tl-row__line::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--maroon);
  box-shadow: 0 0 0 5px var(--cream);
}
.tl-row__line.is-edu::before { background: var(--ink); }
.tl-row__body { flex: 1; min-width: 0; padding: 0 0 46px 30px; }
.tl-row:last-of-type .tl-row__body { padding-bottom: 0; }
.tl-row__kind {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 9px;
}
.tl-row__kind.is-edu { color: var(--ink); opacity: 0.55; }
.tl-row__role { font-family: var(--font-serif); font-weight: 700; font-size: clamp(18px, 2.4vw, 21px); line-height: 1.25; }
.tl-row__org { font-size: 14px; opacity: 0.6; margin-top: 6px; }
.tl-row__org a { color: var(--maroon); text-decoration: underline; text-underline-offset: 3px; }
.tl-row__text { font-size: 15px; opacity: 0.78; line-height: 1.62; margin-top: 12px; max-width: 56ch; }

.tl-footer { display: inline-block; margin-top: 32px; margin-left: 127px; }

@media (max-width: 680px) {
  .tl-row { position: relative; padding-left: 26px; }
  .tl-row__years {
    width: auto;
    text-align: left;
    padding: 0 0 8px 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .tl-row__year { font-size: 19px; }
  .tl-row__to { margin-top: 0; }
  .tl-row__to::before { content: "– "; }
  .tl-row__line {
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 0;
  }
  .tl-row__line::before { top: 0; }
  .tl-row__body { padding: 0 0 36px 0; }
  .tl-row__inner { display: contents; }
  .tl-footer { margin-left: 26px; }
}

/* Mobile timeline needs the year + body stacked inside one column */
@media (max-width: 680px) {
  .tl-row { display: block; }
  .tl-row__body { padding-left: 0; }
}

/* --------------------------------------------------------------------------
   Card grids (achievements, certifications, contact)
   -------------------------------------------------------------------------- */

.split {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.split__media { flex: 0 1 380px; min-width: min(260px, 100%); }
.split__body { flex: 999 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split__body h2 { font-size: clamp(24px, 3.4vw, 34px); }
.split__body p { font-size: clamp(15px, 1.7vw, 16px); line-height: 1.65; opacity: 0.84; max-width: 54ch; }
.split--reverse { flex-direction: row-reverse; }
@media (max-width: 860px) { .split--reverse { flex-direction: row; } }

.ach {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3vw, 32px);
  align-items: stretch;
}
.ach__media { flex: 1 1 300px; min-width: min(260px, 100%); aspect-ratio: 3 / 4; }
.ach__cards {
  flex: 999 1 460px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px;
  align-content: start;
}
.ach-card {
  background: var(--cream);
  border-top: 3px solid var(--maroon);
  padding: 28px 24px;
}
.ach-card__title { font-family: var(--font-serif); font-weight: 700; font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 8px; line-height: 1.2; }
.ach-card__text { font-size: 14px; line-height: 1.5; }

.counters {
  display: flex;
  gap: clamp(28px, 5vw, 48px);
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.counter__num { font-family: var(--font-serif); font-weight: 700; font-size: 34px; color: var(--maroon); line-height: 1; }
.counter__label { font-size: 13px; opacity: 0.7; margin-top: 6px; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
}
.cert {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
}
.cert__name { font-family: var(--font-serif); font-weight: 700; font-size: 17px; line-height: 1.35; margin-top: 12px; }
.cert__org { font-size: 13.5px; opacity: 0.7; margin-top: 6px; }

/* --------------------------------------------------------------------------
   Hosting list
   -------------------------------------------------------------------------- */

.host-list {
  font-size: clamp(15px, 1.7vw, 15.5px);
  line-height: 1.7;
  opacity: 0.84;
  margin-top: 6px;
  padding-left: 20px;
  max-width: 54ch;
}
.host-list li { margin-bottom: 4px; }

/* --------------------------------------------------------------------------
   Moments gallery
   -------------------------------------------------------------------------- */

.moments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 22px;
}
.moment { margin: 0; }
.moment .media { aspect-ratio: 5 / 6; cursor: zoom-in; }
.moment .media img { transition: transform 0.5s var(--ease); }
.moment:hover .media img { transform: scale(1.04); }
.moment figcaption { font-size: 14px; font-weight: 600; margin-top: 12px; }
.moment .media.is-placeholder { cursor: default; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(28, 28, 28, 0.94);
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0.2s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__fig { margin: 0; max-width: min(1000px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 14px; }
.lightbox__fig img {
  max-width: 100%;
  max-height: 78dvh;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__cap { color: rgba(250, 247, 242, 0.88); font-size: 14.5px; text-align: center; }
.lightbox__close {
  position: absolute;
  top: clamp(12px, 3vw, 24px);
  right: clamp(12px, 3vw, 24px);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(250, 247, 242, 0.35);
  background: transparent;
  color: var(--cream);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox__close:hover { background: rgba(250, 247, 242, 0.14); }

/* --------------------------------------------------------------------------
   Blog preview
   -------------------------------------------------------------------------- */

.blog-card {
  background: var(--cream);
  display: flex;
  flex-wrap: wrap;
  border-left: 3px solid var(--maroon);
}
.blog-card__media { flex: 1 1 300px; min-width: min(240px, 100%); min-height: 240px; }
.blog-card__media.media { border-radius: 0; }
.blog-card__body {
  flex: 999 1 380px;
  min-width: 0;
  padding: clamp(26px, 4vw, 36px) clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.blog-card__kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--maroon); }
.blog-card__body h3 { font-size: clamp(20px, 2.6vw, 24px); line-height: 1.3; }
.blog-card__body p { font-size: 15px; line-height: 1.6; opacity: 0.85; max-width: 62ch; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--maroon);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.contact-card--ink { border-top-color: var(--ink); }
.contact-card__kind {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 10px;
}
.contact-card--ink .contact-card__kind { color: var(--ink); opacity: 0.55; }
.contact-card__title { font-family: var(--font-serif); font-weight: 700; font-size: 21px; line-height: 1.25; }
.contact-card__text { font-size: 15px; opacity: 0.78; line-height: 1.6; margin: 12px 0 18px; }
.contact-card .btn { margin-top: auto; align-self: flex-start; }

.contact-detail { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 40px); align-items: flex-start; }
.contact-detail > div { flex: 1 1 300px; min-width: 0; }
.detail-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.detail-label + .detail-label { margin-top: 28px; }
.detail-email {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 22px);
  text-decoration: underline;
  text-underline-offset: 4px;
  word-break: break-word;
}
.detail-value { font-size: 16px; line-height: 1.6; }
.detail-stack { margin-top: 28px; }

.link-list { display: flex; flex-direction: column; gap: 10px; }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
}
.link-list a span:last-child { color: var(--maroon); }
.link-list a:hover { border-color: var(--maroon); background: var(--maroon-wash); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--ink); color: var(--cream); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding-block: 40px;
}
.site-footer small { font-size: 13px; color: rgba(250, 247, 242, 0.6); }
.site-footer nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.site-footer nav a { font-size: 14px; color: var(--cream); }
.site-footer nav a:hover { color: var(--border-strong); }
.site-footer nav a.is-accent { font-weight: 600; color: var(--maroon); }
.site-footer nav a.is-accent:hover { color: var(--cream); }

/* --------------------------------------------------------------------------
   Page header (interior pages)
   -------------------------------------------------------------------------- */

.page-head { padding-block: clamp(48px, 7vw, 80px) clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(30px, 5.2vw, 44px); line-height: 1.18; margin: 12px 0 20px; }
.page-head p { font-size: clamp(16px, 1.8vw, 17px); line-height: 1.65; opacity: 0.82; max-width: 68ch; }

/* --------------------------------------------------------------------------
   Creative journey project rows
   -------------------------------------------------------------------------- */

.project {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 44px);
  align-items: flex-start;
  padding-bottom: clamp(44px, 6vw, 64px);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(44px, 6vw, 64px);
}
.project:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.project__media { flex: 0 1 300px; min-width: min(240px, 100%); aspect-ratio: 5 / 7; }
.project__body { flex: 999 1 380px; min-width: 0; }
.project__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.project__head h2 { font-size: clamp(22px, 3.2vw, 28px); line-height: 1.2; }
.project__views { font-size: 18px; font-weight: 700; color: var(--maroon); }
.project__meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}
.project__body > .badge { margin-top: 16px; }
.project__text { font-size: clamp(15px, 1.7vw, 15.5px); line-height: 1.68; opacity: 0.84; margin-top: 18px; }
.project__text + .project__text { margin-top: 14px; }
.project__body .textlink { margin-top: 20px; }

/* --------------------------------------------------------------------------
   Resume page
   -------------------------------------------------------------------------- */

.resume-head {
  padding-block: clamp(44px, 7vw, 72px) clamp(32px, 5vw, 48px);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 36px);
  align-items: center;
}
.resume-head__body { flex: 999 1 400px; min-width: 0; }
.resume-head h1 { font-size: clamp(30px, 5.2vw, 44px); line-height: 1.15; margin: 12px 0 16px; }
.resume-head__contact { font-size: clamp(14.5px, 1.6vw, 16px); line-height: 1.7; opacity: 0.78; margin-bottom: 22px; }
.resume-head__contact a { text-decoration: underline; text-underline-offset: 3px; }
.resume-head__photo { flex: 0 0 auto; width: 190px; aspect-ratio: 2 / 3; }
.resume-head__photo.media--contain img { object-fit: cover; }

.resume-section { margin-bottom: clamp(44px, 6vw, 64px); }
.resume-section:last-child { margin-bottom: 0; }
.resume-section > h2 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--maroon);
  margin: 0 0 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.entry { margin-bottom: 28px; }
.entry:last-child { margin-bottom: 0; }
.entry--job { margin-bottom: 36px; }
.entry__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  align-items: baseline;
}
.entry__name { font-family: var(--font-serif); font-weight: 700; font-size: clamp(18px, 2.3vw, 20px); line-height: 1.3; }
.entry__when { font-size: 14px; color: var(--muted); }
.entry__sub { font-size: 15.5px; opacity: 0.8; margin-top: 5px; }
.entry__org { font-size: 14.5px; font-weight: 600; color: var(--maroon); margin-top: 5px; }
.entry__org a { color: var(--maroon); text-decoration: underline; text-underline-offset: 3px; }
.entry__list { font-size: clamp(15px, 1.7vw, 15.5px); line-height: 1.65; opacity: 0.84; margin-top: 14px; padding-left: 20px; }
.entry__list li { margin-bottom: 6px; }

.skill-cols { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 40px); }
.skill-cols > div { flex: 1 1 240px; min-width: min(220px, 100%); }
.skill-label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.skill-value { font-size: 15.5px; line-height: 1.7; opacity: 0.85; }
.plain-list { font-size: 15.5px; line-height: 1.9; opacity: 0.85; padding-left: 20px; }

/* --------------------------------------------------------------------------
   Maintenance / 404 states
   -------------------------------------------------------------------------- */

.state {
  min-height: calc(100dvh - var(--nav-h) - 180px);
  display: grid;
  place-items: center;
  padding-block: clamp(56px, 10vw, 110px);
  text-align: center;
}
.state__inner { max-width: 620px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.state h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.18; }
.state p { font-size: clamp(15.5px, 1.8vw, 17px); line-height: 1.65; opacity: 0.8; }
.state__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.state__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--maroon-wash);
  color: var(--maroon);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.state__icon svg { width: 34px; height: 34px; }

/* --------------------------------------------------------------------------
   Reveal-on-scroll + motion preferences
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Print — mainly so the resume page prints cleanly
   -------------------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .nav__toggle, .btn, .lightbox, .skip-link { display: none !important; }
  body { background: #fff; font-size: 11.5pt; }
  .resume-head { padding-top: 0; }
  .resume-section { margin-bottom: 24pt; page-break-inside: avoid; }
  .entry, .project { page-break-inside: avoid; }
  a { color: #000; }
  .media { display: none; }
}
