/* ==========================================================================
   arabellahc.app — shared stylesheet (index.html + resume.html)
   Editorial sports magazine × modern British creative × social-native
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Palette: ~70% ivory, 20% ink navy, 8% cobalt, 2% butter */
  --ivory: #F7F4EF;
  --ivory-deep: #FBEFC4;     /* soft butter for alternating sections */
  --navy: #17233A;
  --cobalt: #3157D5;
  --butter: #F2D35E;
  --white: #FFFFFF;
  --rule: rgba(23, 35, 58, 0.16);
  --rule-strong: rgba(23, 35, 58, 0.9);
  --muted: rgba(23, 35, 58, 0.68);
  --on-navy-muted: rgba(247, 244, 239, 0.68);

  /* Three-font system */
  --f-italic: "Newsreader", "Iowan Old Style", Georgia, serif;          /* personality */
  --f-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif; /* authority */
  --f-sys: "Montserrat", "Helvetica Neue", Arial, sans-serif;            /* information */
  --f-cjk: "Noto Serif SC", "Songti SC", serif;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --header-h: 66px;
  --checker: 18px;
}
@media (max-width: 700px) { :root { --header-h: 58px; --checker: 8px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-display); font-size: 1.0625rem; line-height: 1.6;
  color: var(--navy); background: var(--ivory); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 750; letter-spacing: -0.03em; line-height: 1.02; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--butter); color: var(--navy); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--butter); color: var(--navy); padding: .6rem 1rem; font-family: var(--f-sys); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--gutter) - var(--checker), var(--wrap)); margin-inline: auto; }

/* ---------- Typographic devices ---------- */
.it { font-family: var(--f-italic); font-style: italic; font-weight: 400; letter-spacing: -0.015em; color: var(--cobalt); }
.on-navy .it { color: var(--ivory); }
.hl { background: linear-gradient(transparent 58%, var(--butter) 58% 90%, transparent 90%); padding: 0 .08em; }

/* Small system label */
.label { font-family: var(--f-sys); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.on-navy .label { color: var(--on-navy-muted); }
.on-navy .talk .label { color: var(--butter); }

/* Section eyebrow label */
.stamp {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.4rem;
  font-family: var(--f-sys); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
}
.stamp time { color: var(--cobalt); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.stamp::after { content: ""; flex: 1; max-width: 80px; height: 1px; background: var(--rule-strong); order: 1; }
.stamp span { order: 2; }
.on-navy .stamp { color: var(--ivory); }
.on-navy .stamp time { color: var(--butter); }
.on-navy .stamp::after { background: rgba(247,244,239,.6); }

/* ---------- Checkered strip (fixed, right edge) ---------- */
.checker {
  position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: var(--checker); pointer-events: none;
  background: conic-gradient(var(--navy) 25%, var(--ivory) 0 50%, var(--navy) 0 75%, var(--ivory) 0) 0 0 / var(--checker) var(--checker);
}
@media (max-width: 700px) {
  .checker { background: conic-gradient(var(--navy) 25%, var(--ivory) 0 50%, var(--navy) 0 75%, var(--ivory) 0) 0 0 / 16px 16px; }
}

/* ---------- Section rhythm ---------- */
.band { padding-block: var(--section); background: var(--ivory); position: relative; }
.band--deep { background: var(--ivory-deep); }
.band--navy { background: var(--navy); color: var(--ivory); }
.band--navy h2, .band--navy h3 { color: var(--ivory); }
.band + .band:not(.band--navy) { border-top: 1px solid var(--rule); }

.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); max-width: 52rem; }
.section-head h2 { font-size: clamp(2.3rem, 1.3rem + 4.4vw, 5rem); }
.section-head p { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.on-navy .section-head p { color: var(--on-navy-muted); }

/* ---------- Buttons & links (arrow icons) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.3rem; border-radius: 2px;
  font-family: var(--f-sys); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--navy); color: var(--navy); background: transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--navy); color: var(--ivory); }
.btn--navy { background: var(--navy); color: var(--ivory); }
.btn--navy:hover { background: var(--cobalt); border-color: var(--cobalt); }
.btn--butter { background: var(--butter); border-color: var(--butter); color: var(--navy); }
.btn--butter:hover { background: var(--ivory); border-color: var(--ivory); }
.btn--light { border-color: rgba(247,244,239,.7); color: var(--ivory); }
.btn--light:hover { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }

.btn::after, .text-link::after {
  content: ""; flex: none; width: 1em; height: 1em; display: inline-block; margin-left: .3em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s;
}
a[target="_blank"].btn::after, a[target="_blank"].text-link::after, a[href^="mailto:"].btn::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
}
.btn:hover::after, .text-link:hover::after { transform: translateX(3px); }
a[target="_blank"]:hover::after { transform: translate(2px, -2px); }
button.btn::after { display: none; }

.text-link {
  display: inline-flex; align-items: center; font-family: var(--f-sys); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cobalt); text-decoration: none; padding-bottom: .3rem; border-bottom: 1px solid currentColor;
}
.text-link:hover { color: var(--navy); }
.on-navy .text-link { color: var(--ivory); border-bottom-color: var(--butter); }

/* ==========================================================================
   Header — always visible
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 var(--checker) auto 0; z-index: 100; height: var(--header-h);
  background: var(--navy); color: var(--ivory);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; min-width: 0; }
.brand__name { font-family: var(--f-display); font-weight: 750; font-size: 1.05rem; letter-spacing: -0.02em; white-space: nowrap; color: var(--ivory); }
.brand__cjk { font-family: var(--f-cjk); font-size: .95rem; color: var(--butter); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav a { text-decoration: none; font-family: var(--f-sys); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--butter); }
.nav .btn { padding: .7rem 1rem; background: var(--butter); border-color: var(--butter); color: var(--navy); }
.nav .btn:hover { background: var(--ivory); border-color: var(--ivory); color: var(--navy); }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; margin-right: -.5rem; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ivory); margin: 6px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: var(--checker); flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.5rem; background: var(--navy); border-top: 1px solid rgba(247,244,239,.14);
    transform: translateY(-110%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid rgba(247,244,239,.14); font-size: .8rem; }
  .nav .btn { margin-top: 1.2rem; justify-content: center; padding: 1rem; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 420px) { .brand__name { font-size: .95rem; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)); padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.hero__meta .live { display: inline-flex; align-items: center; gap: .5rem; }
.hero__meta .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 3px rgba(49, 87, 213, .18); }
.hero__name { font-size: clamp(1.55rem, 0.5rem + 4.7vw, 5rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.hero__name .n { white-space: nowrap; }
@media (max-width: 700px) {
  .hero__name { white-space: normal; font-size: clamp(2.1rem, 9.6vw, 3rem); line-height: .95; letter-spacing: -0.05em; }
  .hero__name .n { display: block; }
  .hero .hero__role { font-size: 1.55rem; }
}

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: end; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
/* Role set in the italic serif so the bold sans name stays the loudest thing on the page */
.hero__role { font-family: var(--f-italic); font-style: italic; font-size: clamp(1.8rem, 1rem + 2.7vw, 3.2rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; max-width: 16ch; color: var(--navy); }
.hero__role .it { font-size: 1em; }
.hero__lede { margin-top: 1.75rem; max-width: 34rem; font-size: 1.15rem; line-height: 1.6; color: var(--muted); }
.hero__lede .hl { color: var(--navy); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.socials { display: flex; align-items: center; gap: 1.1rem; margin-top: 2rem; }
.socials a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-family: var(--f-sys); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.socials a:hover { color: var(--cobalt); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

.hero__photo { position: relative; width: min(100%, 380px); justify-self: end; }
.hero__photo .frame { position: relative; }
.hero__photo .frame::before { content: ""; position: absolute; right: -14px; bottom: -14px; width: 46%; height: 38%; background: var(--cobalt); z-index: 0; }
.hero__photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; }
.hero__photo figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; padding-top: .8rem; border-top: 1px solid var(--rule); }
.hero__photo figcaption .cjk { font-family: var(--f-cjk); color: var(--cobalt); font-size: 1rem; letter-spacing: 0; text-transform: none; }
.hero__stat { position: absolute; z-index: 2; left: -2.75rem; top: 8%; width: 9.5rem; background: var(--ivory); padding: .9rem 1rem 1rem; border: 1px solid var(--rule); }
.hero__stat b { display: block; font-family: var(--f-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.05em; line-height: .9; color: var(--navy); }
.hero__stat b sup { font-size: .5em; color: var(--cobalt); vertical-align: top; }
.hero__stat span { display: block; margin-top: .5rem; font-size: .6rem; letter-spacing: .1em; line-height: 1.5; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { justify-self: start; width: min(78%, 330px); margin-top: 1rem; margin-left: 2.2rem; }
  .hero__stat { left: -2.2rem; top: auto; bottom: 22%; }
}

/* ==========================================================================
   Logo marquee
   ========================================================================== */
.logos { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.logos .label { display: block; text-align: center; margin-bottom: 1.75rem; padding-inline: calc(var(--gutter) + var(--checker)); }
.marquee { overflow: hidden; padding-block: 2px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 1.5rem); }
.marquee ul.marquee__group { padding-right: clamp(.9rem, 2.4vw, 1.5rem); }
.logo-tile { flex: none; width: clamp(118px, 13vw, 150px); height: clamp(70px, 7.5vw, 84px); padding: .8rem 1rem; display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--rule); }
.logo-tile img { width: auto; height: auto; max-width: 100%; max-height: clamp(40px, 5vw, 52px); object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Work — editorial case studies
   ========================================================================== */
.case { overflow: hidden; overflow: clip; }
.case__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 6rem);
  grid-template-areas: "text phones" "results results" "links links"; align-items: center;
}
.case--flip .case__grid { grid-template-areas: "phones text" "results results" "links links"; }
.case__text { grid-area: text; }
.case__phones { grid-area: phones; }
.results { grid-area: results; }
.case__links { grid-area: links; }

.case__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.case__logo { height: 56px; width: auto; max-width: 150px; object-fit: contain; padding: .45rem .7rem; background: var(--white); border: 1px solid var(--rule); }
.case h3 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.2rem); font-weight: 800; letter-spacing: -0.045em; }
.case__pull { margin-top: .5rem; font-family: var(--f-italic); font-style: italic; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); line-height: 1.15; letter-spacing: -0.015em; color: var(--cobalt); max-width: 22ch; }
.story { margin-top: 2rem; display: grid; gap: 1.1rem; }
.story div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.story .label { padding-top: .3rem; color: var(--cobalt); }
.story p { color: var(--muted); max-width: 34rem; }
.story strong { color: var(--navy); font-weight: 650; }

.scope { margin-top: 1.75rem; }
.scope .label { display: block; margin-bottom: .7rem; }
.scope ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.scope li { font-family: var(--f-sys); font-size: .72rem; font-weight: 600; letter-spacing: .02em; padding: .42rem .75rem; border: 1px solid var(--rule-strong); border-radius: 999px; background: transparent; }

/* Scoreboard results */
.results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 2px solid var(--navy); border-bottom: 1px solid var(--rule); }
.results div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .7rem; padding: 1.4rem 1.25rem 1.5rem; border-left: 1px solid var(--rule); }
.results div:first-child { border-left: 0; padding-left: 0; }
.results dd { font-family: var(--f-display); font-size: clamp(2.4rem, 1.4rem + 3.2vw, 4.4rem); font-weight: 800; line-height: .9; letter-spacing: -0.055em; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.results dd.word { font-family: var(--f-italic); font-style: italic; font-weight: 400; letter-spacing: -0.02em; font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem); line-height: 1; }
.results dt { font-family: var(--f-sys); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; color: var(--navy); max-width: 22ch; }
.case__links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.75rem; }

@media (max-width: 960px) {
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results div:nth-child(3) { border-left: 0; padding-left: 0; }
  .results div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 900px) {
  .case__grid, .case--flip .case__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "phones" "results" "links"; }
  .case__phones { margin-top: 2.5rem; }
}
@media (max-width: 520px) {
  .story div { grid-template-columns: 1fr; gap: .4rem; }
  .results div { padding: 1.1rem .9rem 1.2rem; }
}

/* Phone groups */
.case__phones { position: relative; display: flex; justify-content: center; align-items: flex-start; padding-block: 1rem 3rem; }
.case__phones .phone + .phone { margin-left: -40px; margin-top: 70px; }
.case__phones--3 .phone { --w: 210px; }
.case__phones--3 .phone:nth-child(2) { margin-top: 110px; }
.case__phones--3 .phone:nth-child(3) { margin-top: 20px; }
@media (max-width: 1100px) { .case__phones--3 .phone { --w: 180px; } }
@media (max-width: 480px) {
  .case__phones .phone { --w: 160px; }
  .case__phones .phone + .phone { margin-left: -26px; margin-top: 46px; }
  .case__phones.case__phones--3 .phone { --w: 124px; }
  .case__phones--3 .phone:nth-child(2) { margin-top: 70px; }
}
.js-motion .slide-in { will-change: transform, opacity; }

/* ---------- iPhone template ---------- */
.phone { --w: 250px; position: relative; flex: none; width: var(--w); }
.iphone {
  position: relative; width: 100%; aspect-ratio: 9 / 19.5; padding: calc(var(--w) * 0.035); border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(145deg, #3b3e44, #101114 40%, #2a2c30);
  box-shadow: inset 0 0 0 1.5px #5b5e64, inset 0 0 0 4px #0c0c0d, 0 30px 50px -30px rgba(23, 35, 58, 0.55);
}
.iphone::before, .iphone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2c2e32; }
.iphone::before { left: -3px; top: 22%; height: 11%; }
.iphone::after { right: -3px; top: 28%; height: 16%; }
.iphone__screen { position: relative; height: 100%; overflow: hidden; isolation: isolate; border-radius: calc(var(--w) * 0.13); background: var(--bar, #fff); }
.iphone__island { position: absolute; z-index: 6; top: 3.1%; left: 50%; transform: translateX(-50%); width: 31%; height: 4.3%; border-radius: 20px; background: #000; }
.iphone__status {
  position: absolute; z-index: 5; inset: 0 0 auto; height: 8.6%; display: flex; justify-content: space-between; align-items: center;
  padding: 2% 9% 0 11%; font-family: var(--f-display); font-size: calc(var(--w) * 0.046); font-weight: 650; color: #fff; background: var(--bar, #000);
}
.iphone--light .iphone__status { color: #000; }
.iphone__status svg { height: 1em; width: auto; fill: currentColor; }
.iphone__status .icons { display: flex; gap: .35em; align-items: center; }
.iphone__shot { position: absolute; left: 0; right: 0; top: 8.6%; bottom: 0; width: 100%; height: 91.4%; object-fit: cover; object-position: top; }

/* Post variant: media on a white app screen */
.iphone--post .iphone__screen { background: #fff; color: #000; font-family: var(--f-display); font-size: calc(var(--w) * 0.04); }
.iphone--post .iphone__shot { height: auto; bottom: auto; object-fit: contain; }
.post { position: absolute; left: 0; right: 0; top: 8.6%; bottom: 0; display: flex; flex-direction: column; }
.post__head { display: flex; align-items: center; gap: .5em; padding: .9em 1em; font-weight: 700; }
.post__avatar { width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--navy); }
.post__media { width: 100%; aspect-ratio: 1; object-fit: cover; }
.post__actions { display: flex; gap: .9em; padding: .8em 1em .3em; }
.post__actions svg { width: 1.7em; height: 1.7em; stroke: #000; fill: none; stroke-width: 1.8; }
.post__caption { padding: .2em 1em; line-height: 1.4; }
.app-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 9%; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid #eee; background: #fff; }
.app-nav svg { width: calc(var(--w) * 0.08); height: calc(var(--w) * 0.08); stroke: #000; fill: none; stroke-width: 1.8; }

/* Overlay annotation card on phones */
.overlay {
  position: absolute; z-index: 8; left: -26%; bottom: 14%; width: max-content; max-width: calc(var(--w) * 1.05);
  background: var(--ivory); border: 1px solid var(--rule-strong); padding: .7rem .85rem .75rem;
  box-shadow: 0 14px 30px -22px rgba(23,35,58,.6);
}
.phone + .phone .overlay, .overlay--right { left: auto; right: -22%; bottom: auto; top: 18%; }
.overlay__meta { display: flex; justify-content: space-between; gap: 1.2rem; font-family: var(--f-sys); font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt); }
.overlay__meta time { color: var(--muted); font-variant-numeric: tabular-nums; }
.overlay__brand { margin-top: .4rem; font-family: var(--f-sys); font-size: .66rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.overlay__title { font-family: var(--f-display); font-size: 1.05rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.overlay__desc { margin-top: .15rem; font-family: var(--f-italic); font-style: italic; font-size: .95rem; color: var(--cobalt); line-height: 1.2; }
@media (max-width: 480px) {
  .overlay { left: -4%; bottom: 6%; padding: .5rem .6rem; max-width: 150px; }
  .phone + .phone .overlay, .overlay--right { right: -4%; top: 10%; }
  .overlay__title { font-size: .85rem; }
  .overlay__desc { font-size: .8rem; }
  .overlay__brand { font-size: .58rem; }
  .overlay__meta { font-size: .5rem; gap: .6rem; }
}

/* ==========================================================================
   Speaking (navy — a bold moment)
   ========================================================================== */
.talks { display: grid; gap: clamp(4rem, 8vw, 6.5rem); }
.talk { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.talk--flip .talk__media { order: 2; }
.talk h3 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 750; margin: .6rem 0 1.1rem; }
.talk p { color: var(--on-navy-muted); }
.talk p + p { margin-top: .9rem; }
.talk .text-link { margin-top: 1.75rem; }
.talk__quote { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(247,244,239,.25); font-family: var(--f-italic); font-style: italic; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); line-height: 1.25; color: var(--ivory) !important; }
.talk__quote::before { content: "“"; color: var(--butter); }
.talk__quote::after { content: "”"; color: var(--butter); }
.talk__topics { margin-top: 1.25rem; padding: 0; list-style: none; border-top: 1px solid rgba(247,244,239,.2); }
.talk__topics li { padding: .7rem 0; border-bottom: 1px solid rgba(247,244,239,.2); color: var(--on-navy-muted); font-size: .98rem; }
.talk__topics li::before { content: "—"; color: var(--butter); margin-right: .7rem; }

.yt { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt button { position: absolute; inset: 0; width: 100%; background: rgba(23,35,58,.18); border: 0; padding: 0; display: grid; place-items: center; }
.yt button span { display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.3rem; background: var(--butter); color: var(--navy); font-family: var(--f-sys); font-weight: 700; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; transition: transform .2s; }
.yt button:hover span { transform: scale(1.04); }
.yt button svg { width: 12px; height: 12px; fill: currentColor; }
.yt__tag { position: absolute; z-index: 2; left: 1rem; top: 1rem; display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .55rem; background: var(--navy); color: var(--ivory); font-family: var(--f-sys); font-size: .6rem; font-weight: 700; letter-spacing: .14em; }
.yt__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--butter); }
.media-stack { display: grid; grid-template-columns: 1fr .55fr; gap: .75rem; margin-top: .75rem; }
.media-stack img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.media-stack img.portrait { object-position: top; }
.media-cap { display: flex; justify-content: space-between; margin-top: .8rem; color: var(--on-navy-muted); }
.slide img { width: 100%; }
@media (max-width: 860px) { .talk { grid-template-columns: 1fr; } .talk--flip .talk__media { order: 0; } }

/* ==========================================================================
   About / career route
   ========================================================================== */
.about__head h2 { font-size: clamp(2.6rem, 1.2rem + 6.4vw, 7rem); letter-spacing: -0.055em; line-height: .95; }
.about__head h2 .line { display: block; }
.about__head h2 .it { letter-spacing: -0.03em; }
.route__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); gap: clamp(2rem, 6vw, 5.5rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.route__intro p { color: var(--muted); }
.route__intro p + p { margin-top: 1rem; }
.route__facts { margin-top: 2rem; display: grid; border-top: 1px solid var(--rule); }
.route__facts p { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--rule); color: var(--navy) !important; font-weight: 550; margin: 0 !important; }
.stops { display: grid; border-top: 2px solid var(--navy); }
.stop { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.stop__years { font-family: var(--f-sys); font-size: .7rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.stop__where { font-weight: 650; letter-spacing: -0.01em; }
.stop__where small { display: block; font-family: var(--f-sys); font-weight: 500; font-size: .72rem; letter-spacing: .02em; color: var(--muted); margin-top: .15rem; }
.stop__city { font-family: var(--f-italic); font-style: italic; font-size: 1.35rem; color: var(--cobalt); text-align: right; }
.stop--now .stop__city { background: linear-gradient(transparent 60%, var(--butter) 60% 92%, transparent 92%); }
@media (max-width: 860px) { .route__grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .stops { display: none; } }
@media (max-width: 520px) { .stop { grid-template-columns: 1fr auto; } .stop__years { grid-column: 1 / -1; } }

/* ==========================================================================
   Archive — parallax wall of phones
   ========================================================================== */
.archive { position: relative; overflow: hidden; }
.archive__word {
  position: absolute; left: 0; right: 0; top: 9%; z-index: 0; pointer-events: none; text-align: center; white-space: nowrap;
  font-family: var(--f-italic); font-style: italic; font-size: clamp(6rem, 22vw, 21rem); line-height: .8; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(23, 35, 58, .1); will-change: transform;
}
.archive .wrap { position: relative; z-index: 1; }
.archive__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; }
.archive__col { display: grid; gap: clamp(3rem, 6vw, 4.5rem); will-change: transform; }
.archive__col:nth-child(2) { margin-top: 7rem; }
.archive__col:nth-child(3) { margin-top: 3rem; }
.project { display: grid; gap: .65rem; align-content: start; }
.project .phone { --w: 220px; margin: 0 auto 1.4rem; }
.project__meta { display: flex; justify-content: space-between; gap: 1rem; padding-top: .8rem; border-top: 1px solid var(--navy); }
.project__meta .label:first-child { color: var(--cobalt); }
.project h3 { font-size: 1.45rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; }
.project p { font-size: .97rem; line-height: 1.55; color: var(--muted); }
.project p strong { color: var(--navy); font-weight: 650; }
.project .text-link { justify-self: start; margin-top: .35rem; }
@media (max-width: 960px) {
  .archive__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive__col:nth-child(3) { display: contents; }
  .archive__col:nth-child(2) { margin-top: 4rem; }
}
@media (max-width: 600px) {
  .archive__cols { grid-template-columns: 1fr; }
  .archive__col, .archive__col:nth-child(2) { margin-top: 0; }
  .archive__cols { gap: 3.5rem; }
  .project .phone { --w: 200px; }
}

/* ==========================================================================
   Contact / footer (navy)
   ========================================================================== */
.contact { background: var(--navy); color: var(--ivory); padding-block: var(--section) 2.25rem; }
.contact h2 { color: var(--ivory); font-size: clamp(2.4rem, 1.2rem + 5vw, 5.6rem); letter-spacing: -0.05em; line-height: .98; max-width: 15ch; }
.contact__email { display: inline-block; margin-top: 2.25rem; font-family: var(--f-italic); font-style: italic; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.3rem); color: var(--ivory); text-decoration: none; border-bottom: 2px solid var(--butter); word-break: break-word; }
.contact__email:hover { color: var(--butter); }
.contact__row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: clamp(4rem, 8vw, 6rem); padding-top: 1.25rem; border-top: 1px solid rgba(247,244,239,.2); }
.site-footer .label { color: var(--on-navy-muted); }

/* ==========================================================================
   Resume page
   ========================================================================== */
.resume-hero { padding-top: calc(var(--header-h) + clamp(2.25rem, 5vw, 3.75rem)); padding-bottom: 2.25rem; }
.resume-hero__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--navy); }
.resume-hero__id { display: flex; align-items: center; gap: 1.25rem; }
.resume-hero__id img { width: 84px; height: 84px; object-fit: cover; object-position: center 18%; }
.resume-hero h1 { font-size: clamp(1.7rem, 1rem + 3vw, 3.3rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.resume-hero__role { margin-top: .55rem; font-family: var(--f-italic); font-style: italic; font-size: 1.25rem; color: var(--cobalt); }
.resume-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.resume-sheet { margin-bottom: var(--section); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); background: var(--white); border: 1px solid var(--rule); }
.resume-aside { background: var(--navy); color: var(--ivory); padding: clamp(1.75rem, 4vw, 2.6rem); display: grid; gap: 2.1rem; align-content: start; }
.resume-aside h2 { color: var(--butter); font-family: var(--f-sys); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; }
.resume-aside ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.resume-aside a { color: var(--ivory); word-break: break-word; text-decoration-color: rgba(247,244,239,.4); }
.resume-aside .chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.resume-aside .chips li { border: 1px solid rgba(247,244,239,.35); border-radius: 999px; padding: .25rem .7rem; font-family: var(--f-sys); font-size: .7rem; font-weight: 500; }
.resume-aside .edu li { font-size: .92rem; line-height: 1.45; color: var(--on-navy-muted); }
.resume-aside .edu b { display: block; color: var(--ivory); font-weight: 650; }
.resume-main { padding: clamp(1.75rem, 4vw, 3rem); }
.resume-main > h2 { font-family: var(--f-sys); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 1rem; }
.resume-main > h2:not(:first-child) { margin-top: 2.75rem; }
.resume-bio { font-size: 1.15rem; line-height: 1.6; max-width: 46rem; }
.job { padding-block: 1.6rem; border-top: 1px solid var(--rule); }
.job:first-of-type { border-top: 2px solid var(--navy); }
.job__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: baseline; }
.job__org { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; }
.job__when { font-family: var(--f-sys); font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--cobalt); text-align: right; font-variant-numeric: tabular-nums; }
.job__title { font-family: var(--f-italic); font-style: italic; font-size: 1.1rem; }
.job__place { font-family: var(--f-sys); font-size: .7rem; color: var(--muted); text-align: right; }
.job__summary { margin-top: .75rem; max-width: 46rem; color: var(--muted); }
.job ul { margin-top: .75rem; padding-left: 1.1rem; display: grid; gap: .5rem; max-width: 46rem; color: var(--muted); }
.job li::marker { color: var(--cobalt); }
.job li b { color: var(--navy); font-weight: 650; }
@media (max-width: 860px) { .resume-sheet { grid-template-columns: 1fr; } .resume-aside { order: 2; } }
@media (max-width: 520px) { .job__head { grid-template-columns: 1fr; } .job__when, .job__place { text-align: left; } }

@media print {
  :root { --header-h: 0px; --checker: 0px; }
  body { background: #fff; font-size: 10.5pt; }
  .site-header, .resume-actions, .contact, .skip-link, .checker { display: none !important; }
  .resume-hero { padding: 0 0 12pt; }
  .resume-sheet { display: block; border: 0; margin: 0; }
  .resume-aside { background: none; color: #000; padding: 0 0 10pt; display: flex; flex-wrap: wrap; gap: 10pt 24pt; }
  .resume-aside a, .resume-aside .edu li, .resume-aside .edu b { color: #000; }
  .resume-aside h2 { color: var(--cobalt); }
  .resume-aside .chips li { border-color: #999; }
  .resume-main { padding: 0; }
  .job { break-inside: avoid; padding-block: 8pt; }
  .btn::after, .text-link::after { display: none; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .marquee__track { animation: none; width: auto; justify-content: center; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee ul.marquee__group { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .slide-in, .archive__col, .archive__word { transform: none !important; opacity: 1 !important; }
}

/* Selected work intro: tighten the gap between the intro copy and the first case-study divider */
.work-intro { padding-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.work-intro .section-head { margin-bottom: 0; }
