/* =====================================================================
   PORTFOLIO — editorial design system
   Positioning: UI & visual craft is the hero. Research is present but
   demoted. Layout itself is meant to read as a design sample.
   Palette + type are token-driven so they are easy to re-skin.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Palette (restrained, editorial, cool-neutral / slate) */
  --bg:        #F2F5FB;   /* page background, cool bluish off-white */
  --surface:   #FFFFFF;   /* cards / raised media */
  --ink:       #12151E;   /* near-black, cool slate */
  --ink-2:     #454B57;   /* secondary text */
  --muted:     #7F8493;   /* labels, meta, captions */
  --faint:     #B1B6C1;   /* de-emphasized */
  --line:      #E2E6EF;   /* hairlines / dividers */
  --line-2:    #D3D9E4;   /* stronger hairline */
  --accent:    #2F6BED;   /* single confident accent — swap freely */
  --accent-ink:#1E52C9;   /* accent, darker for text/hover */
  --shadow:    0 1px 2px rgba(19,26,44,.05), 0 18px 40px -24px rgba(19,26,44,.24);

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;

  /* Metrics */
  --nav-h: 68px;
  --sidebar-w: 300px;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1500px;
  --measure: 66ch;       /* readable text column */
  --radius: 14px;
  --radius-sm: 10px;

  /* Vertical rhythm — one spacing scale drives media/section gaps */
  --space-cap: 14px;                       /* media → its own caption (tight: keeps them a pair) */
  --space-md: clamp(26px, 4vw, 44px);      /* text block → media (studies) */
  --space-figure: clamp(40px, 6vw, 72px);  /* figure → next figure / section child */
  --space-section: clamp(52px, 8vw, 96px); /* intro/text → the visual block */

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.serif { font-family: var(--serif); }
.lede {
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: var(--measure);
}
.text-link {
  color: var(--accent-ink);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transition: border-color .2s var(--ease);
}
.text-link:hover { border-bottom-color: var(--accent); }

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.stack > * + * { margin-top: 1.1em; }

/* =====================================================================
   TOP NAV
   ===================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: baseline;
  gap: .5ch;
}
.brand__mark { color: var(--accent); }
.brand__role {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav__links { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav__link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 2px;
  position: relative;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after,
.nav__link:hover::after { transform: scaleX(1); }

.nav__toggle { display: none; }

/* Mobile nav */
@media (max-width: 720px) {
  .brand__role { display: none; }              /* no role tag in the mobile header */
  .nav__toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    margin-right: -10px;
  }
  .nav__toggle span {
    width: 22px; height: 2px; background: var(--ink);
    transition: transform .25s var(--ease), opacity .2s var(--ease);
  }
  body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px var(--gutter) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
  }
  body.menu-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { font-size: 15px; padding: 10px 0; }
}

/* =====================================================================
   HOME
   ===================================================================== */
.home-hero {
  padding-block: clamp(56px, 10vw, 128px) clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 48%);
  align-items: center;
  column-gap: clamp(20px, 3vw, 48px);
}
.home-hero__stage {
  position: relative;
  height: clamp(400px, 54vh, 580px);
  touch-action: none;
}
.hero-canvas { display: block; }
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero__stage { display: none; }
}
.home-hero__eyebrow { margin-bottom: 22px; }
.home-hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -.02em;
  max-width: 16ch;
}
.home-hero__title em { font-style: italic; color: var(--accent); }
.home-hero__sub {
  margin-top: 28px;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 54ch;
}
.home-hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { transform: translateY(-2px); background: #000; }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* Selected work showcase — big visual, UI first */
.showcase { padding-block: clamp(20px, 4vw, 40px) clamp(60px, 9vw, 120px); }
.showcase__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.showcase__title { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); font-weight: 500; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 36px);
}
.feature {
  grid-column: span 6;
  display: block;
}
.feature--wide { grid-column: span 12; }
.feature__framewrap { display: block; overflow: hidden; border-radius: var(--radius); }
.feature__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.feature__name {
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: -.01em;
}
.feature__tag { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.feature__line { margin-top: 4px; color: var(--ink-2); font-size: 15px; max-width: 52ch; }
.feature--wide .feature__line { max-width: none; }   /* wide card: keep the line on one row */
.feature .media__frame { transition: transform .5s var(--ease); }
.feature__framewrap:hover .media__frame { transform: scale(1.015); }

@media (max-width: 720px) {
  .feature, .feature--wide { grid-column: 1 / -1; }
  .feature-grid { row-gap: 48px; }   /* clearly separate one project from the next */
  .feature__meta { margin-top: 12px; }  /* keep the text close to its visual */
}

/* =====================================================================
   WORK LAYOUT — persistent sidebar + content
   ===================================================================== */
.worklayout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) 96px;
  align-items: start;
}

/* ---- Sidebar (always visible) ---- */
.sidebar {
  position: sticky;
  top: var(--nav-h);
  align-self: start;
  max-height: calc(100vh - var(--nav-h));
  min-height: min(560px, calc(100vh - var(--nav-h)));
  overflow-y: auto;
  padding: clamp(28px, 4vw, 44px) 0 40px;
  display: flex;
  flex-direction: column;
}
.projnav__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.projnav__list { display: flex; flex-direction: column; }
.projnav__item a {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  transition: color .18s var(--ease);
}
.projnav__item:last-child a { border-bottom: 1px solid var(--line); }
.projnav__idx {
  font-size: 11px;
  font-weight: 600;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  transition: color .18s var(--ease);
}
.projnav__name {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--ink);
}
.projnav__meta {
  grid-column: 2;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.projnav__item a:hover .projnav__name { color: var(--accent-ink); }
.projnav__item a:hover .projnav__idx { color: var(--accent); }

/* active state */
.projnav__item a[aria-current="page"] { position: relative; }
.projnav__item a[aria-current="page"] .projnav__name { color: var(--accent-ink); }
.projnav__item a[aria-current="page"] .projnav__idx { color: var(--accent); }
.projnav__item a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -14px; top: 14px; bottom: 14px;
  width: 3px; border-radius: 3px;
  background: var(--accent);
}

/* de-emphasized UX studies group, pinned to the bottom */
.projnav__studies { margin-top: auto; padding-top: 34px; }
.projnav__studies .projnav__label { color: var(--faint); }
.projnav__studies .projnav__item a { padding: 9px 0; border-top: 1px solid var(--line); }
.projnav__studies .projnav__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.projnav__studies .projnav__item a:hover .projnav__name { color: var(--ink-2); }
.projnav__studies .projnav__item a[aria-current="page"] .projnav__name { color: var(--ink); }

/* mobile sidebar → collapsible drawer */
.sidebar__toggle { display: none; }
@media (max-width: 900px) {
  .worklayout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 72px; }
  .sidebar {
    position: static;
    max-height: none;
    min-height: 0;
    overflow: visible;
    padding: 18px 0 6px;
  }
  .sidebar__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-2);
  }
  .sidebar__chev { width: 20px; height: 20px; flex: none; transition: transform .25s var(--ease); }
  .sidebar.is-open .sidebar__chev { transform: rotate(180deg); }
  .sidebar.is-open .sidebar__toggle { border-bottom-color: transparent; }  /* no double divider when open */
  .projnav__label { display: none; }              /* toggle already reads "Work" */
  .projnav { display: none; padding-top: 4px; }
  .sidebar.is-open .projnav { display: flex; flex-direction: column; max-height: 184px; overflow-y: auto; }
  .projnav__studies { margin-top: 20px; }
}

/* =====================================================================
   PROJECT PAGE
   ===================================================================== */
.workmain { padding-top: clamp(28px, 4vw, 52px); min-width: 0; }

.proj__head { max-width: 60ch; }
.proj__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 5.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 14px 0 0;
}
.proj__lede {
  margin-top: 20px;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
}

/* Role / Platform / Scope — tight, left aligned */
.scope {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 4px 28px;
  max-width: 760px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.scope > div { display: flex; flex-direction: column; padding: 6px 0; }
.scope dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.scope dd { font-size: 14.5px; line-height: 1.45; color: var(--ink); }

/* ---- SCREENS = the hero ---- */
.screens { margin-top: var(--space-section); }
/* consistent gap between every direct child (hero figure, grid, prototype) —
   this is also what gives the prototype video air below the grid captions */
.screens > * + * { margin-top: var(--space-figure); }
.screens__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: var(--space-figure);
  column-gap: clamp(20px, 3vw, 40px);
}
.screens__grid .media--span2 { grid-column: 1 / -1; }

/* pop-up gallery — centered stage; each figure capped per asset (via inline max-width)
   so low-resolution promo assets aren't over-upscaled */
.popups { display: flex; flex-direction: column; align-items: center; gap: var(--space-figure); }
.popups .media { width: 100%; margin: 0; }
.popups .media__cap { text-align: center; margin-inline: auto; }

/* alternating case-study rows — a visual beside its own text */
.cs { margin-top: var(--space-section); }
.cs-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.cs-row + .cs-row { margin-top: clamp(48px, 8vw, 100px); }
.cs-row:nth-child(even) .cs-row__media { order: 2; }
.cs-row__h {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(22px, 3vw, 32px); line-height: 1.08; letter-spacing: -.015em;
  margin-bottom: 16px;
}
.cs-row__text p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.cs-row__text p + p { margin-top: .8em; }
.cs-row__sub {
  margin-top: 18px; font-size: 11.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.cs-list { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.cs-list li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.cs-list li::before {
  content: ""; position: absolute; left: 2px; top: .58em;
  width: 5px; height: 5px; border-radius: 2px; background: var(--accent);
}
@media (max-width: 760px) {
  .cs-row { grid-template-columns: 1fr; gap: 20px; }
  .cs-row:nth-child(even) .cs-row__media { order: 0; }
}
@media (max-width: 640px) {
  .screens__grid { grid-template-columns: 1fr; }
}

/* ---- Media / placeholder slot ---- */
.media { margin: 0; }
.media + .media { margin-top: var(--space-figure); }
.media__frame {
  position: relative;
  aspect-ratio: var(--ratio, 16 / 10);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, #EDF0F6, #E2E8F1);
  border: 1px dashed var(--line-2);
  box-shadow: var(--shadow);
}
.media__img,
.media__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .55s var(--ease);
}
.media__frame.is-loaded { border-style: solid; border-color: var(--line); background: var(--surface); }
.media__frame.is-loaded .media__img,
.media__frame.is-loaded .media__video { opacity: 1; }

/* variant: show full asset uncropped (ideal for tall phone screenshots) */
.media--fit .media__frame { background: #E8EDF5; }
.media--fit .media__frame.is-loaded { background: #E8EDF5; }
.media--fit .media__img,
.media--fit .media__video { object-fit: contain; }

/* dark stage — for screenshots exported on a transparent background (avoids white showing through) */
.media--ondark .media__frame,
.media--ondark .media__frame.is-loaded { background: #0b0e15; border-color: #232833; }

/* UX Studies hidden for now — re-enable by deleting this rule */
.projnav__studies { display: none; }

/* placeholder label (shown until the real asset is loaded) */
.media__frame::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8% 12%;
  font-size: 12.5px;
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--muted);
  white-space: pre-line;
}
.media__frame.is-loaded::after { content: none; }
.media__frame::before {
  content: "◳ asset slot";
  position: absolute;
  top: 12px; left: 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.media__frame.is-loaded::before { content: none; }

/* caption naming a deliberate UI decision */
.media__cap {
  margin-top: var(--space-cap);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 58ch;
}
.media__cap b { font-weight: 600; color: var(--ink); }

/* prototype row */
.media--video .media__frame::before { content: "▶ prototype"; }
.protorow { margin-top: 10px; }
.protolink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-ink);
}
.protolink:hover { color: var(--accent); }
.protolink svg { width: 13px; height: 13px; }

/* ---- Case study (below the fold, demoted) ---- */
.case {
  margin-top: clamp(56px, 9vw, 104px);
  padding-top: clamp(32px, 5vw, 52px);
  border-top: 1px solid var(--line);
}
.case__eyebrow { margin-bottom: 30px; }
.case__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 52px);
  max-width: 1040px;
}
.case__block h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.case__block p, .case__block li { font-size: 15px; line-height: 1.62; color: var(--ink-2); max-width: var(--measure); }
.case__block p + p { margin-top: .9em; }
.case__block ul { display: flex; flex-direction: column; gap: 10px; }
.case__block li { position: relative; padding-left: 20px; }
.case__block li::before {
  content: "";
  position: absolute; left: 2px; top: .62em;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent);
}

/* metrics row inside outcome */
.metrics { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 6px; }
.metric__num {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.metric__label { margin-top: 6px; font-size: 12.5px; color: var(--muted); max-width: 22ch; }

/* next project pager */
.pager {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.pager__lbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pager__name { font-family: var(--serif); font-size: clamp(18px, 2.4vw, 24px); font-weight: 500; }
.pager a { display: inline-flex; flex-direction: column; gap: 4px; }
.pager a:hover .pager__name { color: var(--accent-ink); }
.pager .pager__next { text-align: right; }

/* =====================================================================
   UX STUDY PAGE (report-oriented, deliberately quieter)
   ===================================================================== */
.study__head { max-width: 70ch; }
.study__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin-top: 12px;
}
.study__body { margin-top: clamp(30px, 4vw, 44px); max-width: 74ch; }
.study__body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 26px);
  margin: 40px 0 12px;
}
.study__body h3 {
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  margin: 28px 0 10px;
}
.study__body p, .study__body li { color: var(--ink-2); max-width: var(--measure); }
.study__body p + p { margin-top: 1em; }
.study__body ul { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.study__body li { position: relative; padding-left: 20px; }
.study__body li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 6px; height: 6px; border-radius: 2px; background: var(--line-2);
}
.study .media { margin-top: var(--space-md); }

/* =====================================================================
   RESUME
   ===================================================================== */
.resume { padding: clamp(48px, 8vw, 104px) 0 clamp(60px, 9vw, 120px); }
.resume__grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.resume__aside { position: sticky; top: calc(var(--nav-h) + 40px); }
.resume__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.04;
  letter-spacing: -.02em;
}
.resume__role { margin-top: 8px; color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.resume__contact { margin-top: 22px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.resume__contact a { color: var(--ink-2); }
.resume__contact a:hover { color: var(--accent-ink); }
.resume__dl { margin-top: 24px; }

.resume__section { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.resume__section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.resume__h {
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.resume__summary { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: var(--measure); }
.job { display: grid; grid-template-columns: 130px 1fr; gap: 4px 24px; padding: 16px 0; }
.job + .job { border-top: 1px solid var(--line); }
.job__when { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.job__role { font-weight: 600; font-size: 16px; }
.job__co { color: var(--accent-ink); }
.job__desc { grid-column: 2; margin-top: 6px; font-size: 14.5px; color: var(--ink-2); max-width: 60ch; }
.job__sub { grid-column: 2; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.job__list { grid-column: 2; margin-top: 6px; display: flex; flex-direction: column; gap: 7px; }
.job__list li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.job__list li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 5px; height: 5px; border-radius: 2px; background: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2);
}
.chip--strong { border-color: var(--ink); color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
  .resume__grid { grid-template-columns: 1fr; }
  .resume__aside { position: static; }
  .job { grid-template-columns: 1fr; }
  .job__desc { grid-column: 1; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 72px) 0;
  margin-top: 40px;
}
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: baseline; justify-content: space-between;
}
.footer__note { color: var(--muted); font-size: 13.5px; max-width: 44ch; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { font-size: 13.5px; color: var(--ink-2); }
.footer__links a:hover { color: var(--accent-ink); }

/* =====================================================================
   MOTION / A11Y
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 12px; }
