/* ─────────────────────────────────────────────────────────────────────────
   Jack Ambai · Portfolio
   Editorial layout. Two fonts: Fraunces (display) + Inter (everything else).
   Warm bone palette with a single deep terracotta accent.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Palette */
  --bone:        #efece6;
  --bone-2:      #e7e2d8;
  --bone-3:      #d8d1c2;
  --ink:         #161311;
  --ink-2:       #2a2622;
  --muted:       #6b635a;
  --rule:        rgba(22,19,17,.14);
  --rule-2:      rgba(22,19,17,.08);
  --accent:      #b94720;
  --accent-ink:  #efece6;
  --paper:       #f6f3ec;

  /* Type. Fraunces for display; Inter for everything else. */
  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Scale & rhythm */
  --container:  88rem;
  --gutter:     clamp(1.25rem, 4vw, 3rem);
  --section-y:  clamp(3rem, 6.5vw, 5.5rem);
  --topbar-h:   4.25rem;

  /* Motion */
  --ease:    cubic-bezier(.2, .7, .2, 1);
  --ease-2:  cubic-bezier(.65, 0, .35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--bone); }

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

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

/* Eyebrow / meta utility, used wherever we need uppercase tracking labels.
   Replaces the old monospace styling, keeps the visual hierarchy. */
.eyebrow,
.section__num,
.status,
.fact dt,
.contact__label,
.refs__hint,
.cap__num,
.role__chip,
.when__dur,
.role__city,
.role__tags li,
.edu__qual,
.footer__tag,
.footer__meta,
.hero__meta,
.hero__locale,
.hero__scroll,
.mark {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .12em;
}

/* skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bone);
  padding: .5rem .75rem; font-size: .8rem;
  z-index: 1000;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Section anchor offset (clears fixed topbar) */
section[id] { scroll-margin-top: var(--topbar-h); }

/* Grain overlay */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Custom cursor (desktop, fine pointer only) */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 14px; height: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 998;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .2s var(--ease);
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  .cursor.is-link { width: 38px; height: 38px; background: var(--accent); border-color: transparent; }
}

/* ───────────────────────────────  TOPBAR  ─────────────────────────────── */

.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.1rem var(--gutter);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  background: color-mix(in oklab, var(--bone) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.topbar.is-scrolled { border-color: var(--rule-2); }

.topbar__inner {
  max-width: var(--container); margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.mark {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: .78rem;
  letter-spacing: .04em;
  font-weight: 500;
}
.mark__glyph {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  background: var(--ink); color: var(--bone);
  font-family: var(--serif); font-weight: 600; font-size: .95rem;
  border-radius: 6px;
  letter-spacing: 0;
}
.mark__rule { width: 18px; height: 1px; background: var(--ink); opacity: .4; }
.mark__name { letter-spacing: .02em; }

.nav {
  justify-self: center;
  display: flex; align-items: center; gap: 2rem;
  font-family: var(--sans); font-size: .85rem; font-weight: 500;
  letter-spacing: .01em;
}
.nav a { display: inline-flex; align-items: baseline; padding: .25rem 0; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.status {
  justify-self: end;
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.status__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 0 0 rgba(76,175,80,.55);
  animation: pulse 2.4s var(--ease) infinite;
}
.status__label { color: var(--ink); }
.status__sep { opacity: .5; }
.status__time { font-variant-numeric: tabular-nums; color: var(--ink); }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(76,175,80,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(76,175,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(76,175,80,0); }
}

@media (max-width: 980px) {
  .topbar__inner { grid-template-columns: auto auto; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .status__label, .status__sep { display: none; }
}

/* ───────────────────────────────  HERO  ───────────────────────────────── */

.hero {
  position: relative;
  min-height: 92svh;
  padding: clamp(5rem, 9vw, 7rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

/* Title + caption on the same row. The title takes its natural width
   on the left; the caption fills the empty right gutter and baselines
   with the bottom of the name. */
.hero__display {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.hero__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  font-weight: 500;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4.5rem, 18vw, 18rem);
  line-height: .88;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease) forwards;
}
.hero__title .line:nth-child(2) .word { animation-delay: .12s; }
.hero__title em.dot {
  font-style: normal; color: var(--accent);
  display: inline-block;
  transform: translateY(0);
  animation: pop .6s var(--ease) 1s both;
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes pop  { from { opacity: 0; transform: translateY(20%); } to { opacity: 1; transform: translateY(0); } }

.hero__caption {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-self: end;
  justify-self: end;
  text-align: right;
  max-width: 30rem;
  padding-bottom: clamp(.5rem, 2vw, 1.5rem);
}
.hero__role {
  font-family: var(--serif); font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.7vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.role__pre {
  font-family: var(--sans); font-style: normal; font-weight: 500;
  font-size: .55em; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  padding: 0 .25em;
  vertical-align: middle;
}
.role__amp { color: var(--accent); padding: 0 .15em; }

.hero__locale {
  font-size: .72rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: .6rem;
  justify-self: end;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 500;
}
.dotline { width: 32px; height: 1px; background: var(--ink); display: inline-block; opacity: .5; }

.hero__foot {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--rule);
}
.hero__bio {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  line-height: 1.55;
  letter-spacing: -0.005em;
  max-width: 56ch;
  color: var(--ink-2);
}
.hero__bio em {
  font-style: italic;
  color: var(--ink);
  font-weight: 500;
}

.hero__cta { display: flex; gap: .65rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  font-family: var(--sans); font-size: .85rem; font-weight: 500;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--solid { background: var(--ink); color: var(--bone); }
.btn--solid:hover { background: var(--accent); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); transform: translateY(-1px); }
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.hero__scroll {
  position: absolute;
  bottom: 1.25rem; right: var(--gutter);
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent; border: 0; cursor: pointer;
  font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  font-weight: 500;
}
.hero__scroll svg { animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

@media (max-width: 980px) {
  .hero__display {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    border-top: 1px solid var(--rule);
    padding-top: 1.25rem;
  }
  .hero__caption {
    text-align: left;
    justify-self: start;
    padding-bottom: 0;
  }
  .hero__locale { justify-self: start; }
}
@media (max-width: 760px) {
  .hero__foot { grid-template-columns: 1fr; }
}

/* ───────────────────────────────  MARQUEE  ────────────────────────────── */

.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
  padding: 1.25rem 0;
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-style: italic; font-weight: 300;
  letter-spacing: -0.01em;
}
.marquee__track {
  display: inline-flex; gap: 2rem; align-items: center;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  padding-left: 2rem;
}
.marquee__track .bullet { color: var(--accent); font-size: .6em; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ───────────────────────────────  SECTIONS  ───────────────────────────── */

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

.section__head {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
}
.section__num {
  font-size: .72rem;
  text-transform: uppercase;
  color: var(--muted);
  position: sticky;
  top: calc(var(--topbar-h) + 1rem);
  font-weight: 500;
}
.section__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 1; letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.section__title span { display: block; }
.section__title em {
  font-style: italic;
  color: var(--accent);
}

@media (max-width: 760px) {
  .section__head { grid-template-columns: 1fr; gap: 1rem; }
  .section__num { position: static; }
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__title .word { transform: none; animation: none; }
  .marquee__track { animation: none; }
  .status__dot { animation: none; }
}

/* ───────────────────────────────  ABOUT  ──────────────────────────────── */

.about__grid {
  display: grid;
  grid-template-columns: minmax(16rem, .85fr) 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  overflow: hidden;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(0,0,0,.04),
    0 30px 60px -30px rgba(0,0,0,.25),
    0 18px 36px -18px rgba(0,0,0,.12);
}
.about__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: contrast(1.02) saturate(.95);
  transition: transform 1.2s var(--ease);
}
.about__portrait:hover img { transform: scale(1.03); }

.about__portrait figcaption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  display: flex; justify-content: space-between; align-items: baseline;
  color: var(--bone);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.about__caption-loc { opacity: .8; }

.about__lede {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.2rem, 1.65vw, 1.55rem);
  line-height: 1.5; letter-spacing: -0.005em;
  color: var(--ink-2);
  display: grid; gap: 1.25rem;
}
.about__lede em { font-style: italic; color: var(--ink); font-weight: 500; }

.about__facts dl {
  display: grid; gap: 0;
  border-top: 1px solid var(--rule);
}
.fact {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.fact dt {
  font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.fact dd { font-size: .92rem; color: var(--ink); font-weight: 400; }

.pulse {
  color: #4caf50; font-size: .65em; vertical-align: middle;
  animation: dim 2s var(--ease) infinite;
}
@keyframes dim { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

@media (max-width: 1080px) {
  .about__grid { grid-template-columns: minmax(14rem, .9fr) 1.4fr; }
  .about__facts { grid-column: 1 / -1; max-width: 30rem; }
}
@media (max-width: 720px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { max-width: 22rem; }
}

/* ───────────────────────────────  TIMELINE  ───────────────────────────── */

.timeline { list-style: none; display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }

.role {
  display: grid;
  grid-template-columns: 9rem 2.5rem 1fr;
  gap: 0;
  position: relative;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}
.role:last-child { border-bottom: 0; padding-bottom: 0; }

.role__when {
  display: grid;
  grid-template-columns: auto;
  gap: .25rem;
  font-size: .78rem;
  align-self: start;
  padding-top: .25rem;
  font-weight: 500;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.when__from, .when__to { color: var(--ink); }
.when__sep { color: var(--muted); }
.when__to--now { color: var(--accent); }
.when__dur {
  margin-top: .35rem;
  font-size: .65rem; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase;
}

.role__rail {
  display: grid; justify-items: center;
  position: relative;
}
.role__rail::before {
  content: ""; position: absolute; top: .9rem; bottom: -3.5rem;
  width: 1px; background: var(--rule);
}
.role:last-child .role__rail::before { display: none; }
.role__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bone); border: 1.5px solid var(--ink);
  position: relative; z-index: 1;
  margin-top: .5rem;
}
.role:first-child .role__dot { background: var(--accent); border-color: var(--accent); }

.role__chip {
  display: inline-block;
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px;
  margin-bottom: .9rem;
  font-weight: 500;
}

.role__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.1; letter-spacing: -0.02em;
}
.role__org {
  margin-top: .5rem;
  font-size: .92rem; color: var(--ink-2);
  display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: baseline;
}
.role__org a {
  border-bottom: 1px solid var(--rule);
  transition: border-color .2s var(--ease);
}
.role__org a:hover { border-color: var(--ink); }
.role__city {
  font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  font-weight: 500;
}
.role__city::before { content: "·"; padding-right: .5rem; letter-spacing: 0; }

.role__brief {
  margin-top: 1rem;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.05rem, 1.3vw, 1.15rem);
  line-height: 1.55; color: var(--ink-2);
  max-width: 60ch;
}

.role__points {
  margin-top: 1.25rem;
  list-style: none;
  display: grid; gap: .55rem;
  max-width: 68ch;
}
.role__points li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .94rem; line-height: 1.6; color: var(--ink-2);
}
.role__points li::before {
  content: ""; position: absolute; left: 0; top: .7rem;
  width: 14px; height: 1px; background: var(--accent);
}

.role__tags {
  margin-top: 1.25rem;
  list-style: none;
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.role__tags li {
  font-size: .7rem;
  padding: .35rem .65rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
  letter-spacing: .04em;
  font-weight: 500;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.role__tags li:hover { border-color: var(--ink); color: var(--ink); }

@media (max-width: 760px) {
  .role { grid-template-columns: 1fr; gap: 1rem; }
  .role__rail { display: none; }
  .role__when {
    grid-template-columns: auto auto auto auto; gap: .5rem;
    align-items: baseline;
  }
  .when__dur { margin: 0; }
}

/* ───────────────────────────────  CAPABILITIES  ───────────────────────── */

.caps__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
}
.cap {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  position: relative;
  transition: background .35s var(--ease);
}
.cap:nth-child(2n) { border-right: 0; }
.cap:hover { background: var(--paper); }

.cap__num {
  display: block;
  font-size: .72rem;
  color: var(--muted); letter-spacing: .14em;
  margin-bottom: .9rem;
  font-weight: 500;
  text-transform: uppercase;
}
.cap h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.2; letter-spacing: -0.015em;
  margin-bottom: .65rem;
}
.cap p {
  color: var(--ink-2);
  font-size: .94rem; line-height: 1.6;
  max-width: 42ch;
}

@media (max-width: 760px) {
  .caps__grid { grid-template-columns: 1fr; }
  .cap, .cap:nth-child(2n) { border-right: 0; }
}

/* ───────────────────────────────  EDUCATION  ──────────────────────────── */

.edu__list {
  list-style: none;
  border-top: 1px solid var(--ink);
}
.edu__list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: background .3s var(--ease);
}
.edu__list li:hover { background: var(--paper); }

.edu__main { display: grid; gap: .35rem; }
.edu__qual {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .14em;
  font-weight: 500;
  text-transform: uppercase;
}
.edu__field {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.edu__inst {
  font-size: .88rem; color: var(--muted);
  text-align: right;
}

@media (max-width: 760px) {
  .edu__list li { grid-template-columns: 1fr; gap: .5rem; }
  .edu__inst { text-align: left; }
}

/* ───────────────────────────────  CONTACT  ────────────────────────────── */

.contact__title em { color: var(--accent); }

.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  margin-bottom: 3rem;
}
.contact__lede p {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.2rem, 1.65vw, 1.5rem);
  line-height: 1.5; color: var(--ink-2);
  letter-spacing: -0.005em;
}
.contact__lede p + p { margin-top: 1rem; }
.contact__avail {
  font-family: var(--sans) !important;
  font-size: .85rem !important;
  font-style: normal !important;
  color: var(--ink) !important;
  letter-spacing: .04em;
  font-weight: 500;
}

.contact__list {
  list-style: none;
  border-top: 1px solid var(--rule);
}
.contact__list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.contact__label {
  font-size: .68rem;
  color: var(--muted); letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500;
}
.contact__value {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
a.contact__value {
  position: relative;
  transition: color .2s var(--ease);
  border-bottom: 1px solid transparent;
}
a.contact__value:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.refs {
  border-top: 1px solid var(--ink);
  padding-top: 1.25rem;
}
.refs > summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
}
.refs > summary::-webkit-details-marker { display: none; }
.refs > summary > span:first-child {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.015em;
}
.refs__hint {
  font-size: .7rem;
  color: var(--muted); letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500;
}
.refs[open] .refs__hint { color: var(--accent); }

.refs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.ref { display: grid; gap: .25rem; }
.ref__name { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; }
.ref__role { font-size: .88rem; color: var(--ink-2); }
.ref__org {
  font-size: .72rem; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: .5rem;
  font-weight: 500;
}
.ref__contact { font-size: .9rem; line-height: 1.65; }
.ref__contact a { border-bottom: 1px solid var(--rule); transition: border-color .2s var(--ease); }
.ref__contact a:hover { border-color: var(--ink); }

@media (max-width: 760px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__list li { grid-template-columns: 1fr; gap: .25rem; }
  .refs__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ───────────────────────────────  FOOTER  ─────────────────────────────── */

.footer {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) 0;
  margin-top: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__name { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.015em; }
.footer__tag { font-size: .72rem; color: rgba(255,255,255,.55); margin-top: .35rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }

.footer__col--right { text-align: right; }
.footer__meta {
  font-size: .72rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
}
.footer__meta--mute { color: rgba(255,255,255,.4); margin-top: .35rem; }

.footer__wordmark {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(7rem, 26vw, 24rem);
  line-height: .85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.18);
  text-align: center;
  user-select: none;
  margin-top: 1.5rem;
  font-variation-settings: "opsz" 144;
  white-space: nowrap;
  overflow: hidden;
}

@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .footer__col--right { text-align: center; }
}
