/* Shared foundations. Palette from her own Figma art scene: lavender, sunshine yellow,
   and a deep violet night, with black display type and her handwriting for notes. */

:root {
  --canvas: #f5f2fb;
  --dot: transparent;
  --lav: #cdbdf6;
  --lav-soft: #ece5fd;
  --yellow: #ffd84d;
  --night: #1f1233;
  --paper: #ffffff;
  --ink: #19171c;
  --text: #3b393f;
  --muted: #66646a;
  --line: #e3e2dd;
  --line-strong: #d0cec7;
  --violet: #6d4aff;
  --violet-strong: #5232e8;
  --lilac: #eee8fb;
  --lavender: #e7def4;
  --teal: #2e6e63;
  --gold: #b0872f;

  --font: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-hand: 'Delicious Handrawn', 'Comic Sans MS', cursive;
  /* Names the case-study modules use. */
  --font-display: var(--font);
  --font-body: var(--font);
  --font-ui: var(--font);
  --font-mono: var(--font);
  --subtle: var(--muted);
  --surface: #f7f7f5;
  --note: var(--violet-strong);

  --ease-out: cubic-bezier(.22, .8, .24, 1);
  --header-h: 64px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--text);
  background-color: var(--canvas);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
::selection { background: #dcd2ff; color: var(--ink); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.icon { width: 20px; height: 20px; flex: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
main { display: block; }

/* Her handwriting: notes and asides, never body copy. */
.hand { font-family: var(--font-hand); font-weight: 400; color: var(--violet-strong); line-height: 1.1; letter-spacing: 0; }

/* ------------------------------------------------------------------ Frames */

.frame-label {
  display: flex; align-items: center; gap: 6px; margin: 0 0 10px 1px;
  font: 500 13px/1.3 var(--font); letter-spacing: 0; color: var(--muted);
}
.frame { position: relative; background: var(--paper); }

/* ------------------------------------------------------------------ Top bar */

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: 14px; transform: translateY(-200%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.topbar {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: #ffffffee;
  transition: transform .3s var(--ease-out); view-transition-name: topbar;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar { background: #ffffffcc; -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
}
.header-hidden .topbar { transform: translateY(-100%); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h);
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; border-radius: 10px; }
.brand-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--violet); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font: 600 15px/1.25 var(--font); color: var(--ink); white-space: nowrap; }
.brand-role { font: 400 12.5px/1.3 var(--font); color: var(--muted); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; font: 500 14.5px/1 var(--font); }
.nav a { padding: 10px 12px; border-radius: 8px; color: var(--text); transition: background-color .2s, color .2s; }
.nav a:hover { background: #19171c0d; color: var(--ink); }
.nav a[aria-current]:not(.nav-cta) { background: var(--lilac); color: var(--violet-strong); }
.nav .nav-cta { margin-left: 6px; padding: 11px 16px; background: var(--ink); color: #fff; }
.nav .nav-cta:hover { background: #000; color: #fff; }
.nav-recruiter {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 8px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--yellow); font: 600 14px/1 var(--font); color: var(--ink); transition: transform .25s var(--ease-out), box-shadow .25s;
}
.nav-recruiter .icon { width: 15px; height: 15px; }
.nav-recruiter:hover { transform: translateY(-1px) rotate(-1.5deg); box-shadow: 3px 3px 0 var(--ink); }
.menu-button { display: none; }

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

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 18px;
  border: 1.5px solid transparent; border-radius: 999px; font: 600 15px/1 var(--font); white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease-out);
}
.button .icon { width: 17px; height: 17px; transition: transform .25s var(--ease-out); }
.button-primary, .button-dark { background: var(--ink); color: #fff; }
.button-primary:hover, .button-dark:hover { background: #000; }
.button-dark:hover .icon-down { transform: translateY(2px); }
.button-primary:hover .icon-arrow { transform: translateX(3px); }
.button-primary:hover .icon-down { transform: translateY(2px); }
.button-secondary, .button-light { border-color: var(--ink); background: var(--paper); color: var(--ink); }
.button-secondary:hover, .button-light:hover { box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.copy-status { min-height: 1.4em; margin-top: 10px; font-size: 14px; color: var(--muted); }
.copy-status:empty { min-height: 0; margin: 0; }

/* ------------------------------------------------------------ Phone frames */
/* A CSS phone around a real screen export, so screens stay crisp on any background. */

.phone { display: block; container-type: inline-size; }
.phone-frame {
  display: block; position: relative; overflow: hidden; border: 3.6cqi solid #141414; border-radius: 15cqi; background: #141414;
  box-shadow: 0 2px 3px #00000014, 0 28px 50px -26px #0f1e1c80;
}
.phone-screen { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------------- Lightbox */

.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: #141218f2; }
.lightbox[open] { display: grid; animation: lightbox-in .25s var(--ease-out); }
.lightbox-inner {
  position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px;
  width: 100%; height: 100%; max-width: 1240px; margin: 0 auto; padding: 14px 16px 18px;
}
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lightbox-count { font: 500 13px/1 var(--font); font-variant-numeric: tabular-nums; color: #ffffffb3; }
.lightbox-close {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid #ffffff3d; border-radius: 10px; background: #ffffff14; color: #fff; font: 500 14px/1 var(--font);
}
.lightbox-close:hover { background: #ffffff29; }
.lightbox-close .icon { width: 16px; height: 16px; }
.lightbox-figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; min-height: 0; padding: 0 56px; }
.lightbox-figure img {
  justify-self: center; align-self: center; width: auto; height: auto; max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 4px; box-shadow: 0 30px 70px -24px #000;
}
.lightbox-caption { text-align: center; font-size: 15px; line-height: 1.5; color: #ffffffd9; }
.lightbox-nav {
  position: absolute; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px;
  border: 1px solid #ffffff3d; border-radius: 50%; background: #ffffff14; color: #fff;
}
.lightbox-nav:hover { background: #ffffff29; }
.lightbox-nav[hidden] { display: none; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
html.has-modal { overflow: hidden; }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------- Recruiter mode */
/* One sheet with everything needed to shortlist her: who, facts from her own copy, experience, work, contact. */

.recruiter {
  width: min(1040px, calc(100% - 24px)); max-width: none; max-height: calc(100% - 24px); margin: auto; padding: 0;
  border: 2px solid var(--ink); border-radius: 26px; background: #fff; color: var(--text); box-shadow: 10px 10px 0 var(--ink); overflow: auto;
}
.recruiter::backdrop { background: #1f1233b3; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.recruiter[open] { animation: recruiter-in .35s var(--ease-out); }
.recruiter-sheet { padding: clamp(18px, 3vw, 30px); }
.recruiter-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.recruiter-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--yellow); font: 600 14px/1.2 var(--font); color: var(--ink); }
.recruiter-kicker .icon { width: 16px; height: 16px; }
.recruiter-close { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font: 600 14px/1 var(--font); }
.recruiter-close .icon { width: 16px; height: 16px; }
.recruiter-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); }
.recruiter-who { align-self: start; position: sticky; top: 0; }
.recruiter-photo { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: 18px; background: var(--lav); }
.recruiter-who h2 { margin-top: 18px; font: 700 clamp(34px, 3.4vw, 44px)/.9 var(--font); font-stretch: 75%; letter-spacing: 0; }
.recruiter-role { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--text); }
.recruiter-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.recruiter-actions .button { min-height: 42px; padding: 0 15px; font-size: 14px; }
.recruiter-email { margin-top: 12px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.recruiter-body h3 { margin: 22px 0 10px; font: 600 13px/1.3 var(--font); letter-spacing: 0; color: var(--muted); }
.recruiter-body h3:first-child { margin-top: 0; }
.rs-facts { margin: 0; padding: 0; list-style: none; }
.rs-facts li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.45; color: var(--ink); }
.rs-facts li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--lav); box-shadow: inset 0 0 0 2px var(--violet); }
.rs-jobs { margin: 0; padding: 0; list-style: none; }
.rs-jobs li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rs-role { font-weight: 600; color: var(--ink); }
.rs-org { color: var(--text); }
.rs-dates { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-work { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rs-work a { display: grid; grid-template-columns: 74px minmax(0, 1fr) 20px; align-items: center; gap: 14px; padding: 8px; border: 1.5px solid var(--line); border-radius: 14px; transition: border-color .2s, background-color .2s; }
.rs-work a:hover { border-color: var(--ink); background: var(--lav-soft); }
.rs-work img { width: 74px; height: 54px; object-fit: cover; border-radius: 9px; }
.rs-project { display: block; font: 600 16px/1.3 var(--font); color: var(--ink); }
.rs-summary { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); }
.rs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rs-chips li { padding: 6px 12px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 14px; color: var(--ink); }
@keyframes recruiter-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }

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

.site-footer { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 72px var(--gutter) 32px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; padding-bottom: 22px; border-bottom: 1px solid var(--line-strong); }
.footer-name { font: 600 16px/1.3 var(--font); color: var(--ink); }
.footer-brand p:last-child { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; font: 500 14.5px/1 var(--font); }
.footer-links a { padding: 10px 0; color: var(--text); }
.footer-links a:hover { color: var(--violet-strong); }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; font-size: 13.5px; color: var(--muted); }
.back-to-top { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; color: var(--text); }
.back-to-top .icon { width: 15px; height: 15px; }

/* --------------------------------------------------------------- Not found */

.not-found { max-width: calc(var(--max) + 2 * var(--gutter)); min-height: calc(100vh - var(--header-h) - 200px); margin: 0 auto; padding: 96px var(--gutter); }
.not-found-bubble { display: inline-block; margin-bottom: 22px; font-size: 32px; transform: rotate(-4deg); }
.not-found h1 { font: 700 clamp(56px, 9vw, 120px)/.88 var(--font); font-stretch: 75%; letter-spacing: -.005em; }
.not-found > p { max-width: 52ch; margin-top: 22px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* ------------------------------------------------------- View transitions */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: .4s; animation-timing-function: cubic-bezier(.22, .8, .24, 1); }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
}

/* -------------------------------------------------------------- Responsive */

@media (max-width: 860px) {
  .nav a { padding: 10px 9px; }
}

@media (max-width: 760px) {
  :root { --header-h: 58px; }
  body { font-size: 16px; background-size: 20px 20px; }
  .brand-avatar { width: 32px; height: 32px; }
  .brand-name { font-size: 14.5px; }
  .brand-role { font-size: 12px; }
  .menu-button {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px 0 14px;
    border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; font: 500 14px/1 var(--font);
  }
  .menu-button .icon { width: 18px; height: 18px; }
  .menu-button .when-open, .menu-button[aria-expanded='true'] .when-closed { display: none; }
  .menu-button[aria-expanded='true'] .when-open { display: block; }
  .nav {
    position: absolute; top: calc(var(--header-h) - 4px); left: 10px; right: 10px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 8px;
    border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 24px 48px -20px #19171c4d;
    font-size: 17px; opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, transform .2s var(--ease-out), visibility 0s linear .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a { padding: 15px 14px; border-radius: 10px; }
  .nav .nav-cta { margin: 6px 0 0; padding: 15px 14px; }
  .nav-recruiter { justify-content: center; margin: 6px 0 0; padding: 14px; }
  .recruiter { border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); }
  .recruiter-grid { grid-template-columns: 1fr; }
  .recruiter-who { position: static; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; align-items: center; }
  .recruiter-photo { grid-row: 1 / 3; aspect-ratio: 1; border-radius: 14px; }
  .recruiter-who h2 { margin-top: 0; font-size: 32px; }
  .recruiter-role { margin-top: 0; font-size: 14.5px; }
  .recruiter-actions, .recruiter-email { grid-column: 1 / -1; }
  .rs-jobs li { grid-template-columns: minmax(0, 1fr) auto; }
  .rs-org { grid-column: 1; grid-row: 2; }
  .rs-dates { grid-column: 2; grid-row: 1; }
  .lightbox-inner { padding: 10px 10px 14px; }
  .lightbox-figure { padding: 0 0 64px; }
  .lightbox-nav { top: auto; bottom: 18px; margin-top: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .brand-role { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .skip-link, .topbar, .site-footer, .lightbox, .menu-button { display: none !important; }
  body { background: #fff; font-size: 11pt; }
}
