/* =====================================================
   Ellie Macieira-Fielding — portfolio
   Pink, Leckerli One script, typewriter body,
   Ellie's own handwriting for the margin notes.
   ===================================================== */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Leckerli One';
  src: url('../assets/fonts/leckerli-one.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ellies Handwriting';
  src: url('../assets/fonts/ellies-handwriting.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cutive';
  src: url('../assets/fonts/cutive.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --pink: #eb72b0;
  --pink-nav: #eb72b0;
  --pink-deep-bg: #eb72b0;
  --script: #df539b;
  --ink: #2b181d;
  --white: #f0f0f0;
  --shadow: 0 2px 6px rgba(43, 24, 29, 0.16), 0 14px 34px rgba(43, 24, 29, 0.14);
  --leckerli: 'Leckerli One', 'Brush Script MT', cursive;
  --typewriter: 'American Typewriter', 'AmericanTypewriter', 'Cutive', 'Courier New', serif;
  --hand: 'Ellies Handwriting', 'Bradley Hand', cursive;
  --measure: 60ch;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--pink);
  color: var(--white);
  font-family: var(--typewriter);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.05em;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
/* Cutive fallback (no American Typewriter installed): ease the tracking */
body.no-atw { letter-spacing: -0.02em; }
body.no-atw .tw-tight { letter-spacing: -0.04em; }

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--white); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: 0.6em 1em; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- type ---------- */
.tw-tight {
  letter-spacing: -0.13em; /* Canva: -130 */
  line-height: 1.02;       /* Canva: 1.02 */
  word-spacing: 0.12em;    /* restore the spaces the tracking eats */
}
.hand {
  font-family: var(--hand);
  line-height: 0.65;       /* per Ellie's spec */
  letter-spacing: 0;
  color: var(--white);
  font-size: 1.5rem;
}
.section-title {
  font-family: var(--leckerli);
  font-weight: 400;
  color: var(--white);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0;
  margin: 0 0 0.4em;
}
.script-sub {
  font-family: var(--leckerli);
  font-weight: 400;
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0 0 0.45em;
}
.section-intro {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  max-width: 44ch;
  margin-top: 0;
  margin-bottom: 2.2rem;
}

/* ---------- layout ---------- */
.section {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.1rem, 4vw, 3rem);
}
.section-deep {
  max-width: none;
  background: var(--pink-deep-bg);
}
.section-deep > * { max-width: 66rem; margin-left: auto; margin-right: auto; }
p { max-width: var(--measure); }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0.8rem; z-index: 50;
  padding: 0 clamp(1.1rem, 4vw, 3rem);
  margin-top: 0.8rem;
}
.site-nav nav {
  max-width: 72rem;
  margin: 0 auto;
  background: color-mix(in srgb, var(--pink-nav) 82%, transparent);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 999px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  padding: 0.65rem 1.4rem; /* a little taller */
}
.site-nav ul { flex: 1; }
.site-nav .nav-contact { margin-left: auto; }
.site-nav .nav-contact a {
  background: var(--white);
  color: var(--script);
  font-weight: 700;
}
.site-nav .nav-contact a:hover { background: var(--ink); color: var(--white); }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin: 0; padding: 0;
}
.site-nav li a {
  display: block;
  text-decoration: none;
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: -0.05em;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
}
.site-nav li a:hover { color: var(--ink); }
.site-nav li a[aria-current='true'] { background: var(--white); color: var(--script); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.nav-toggle .bar {
  display: block;
  width: 1.6rem; height: 3px;
  border-radius: 2px;
  background: var(--white);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded='true'] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  background: var(--white);
  padding: 4.6rem clamp(1.1rem, 4vw, 3rem) 3.5rem;
  margin-top: -4.6rem; /* white band extends up behind the sticky nav */
}
.hero-stage {
  position: relative;
  max-width: 76rem;
  margin: 0 auto;
  min-height: clamp(30rem, calc(100vh - 6rem), 49rem);
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
}
.hero-cutout {
  position: absolute;
  z-index: 2;
  top: 2.5rem; /* anchored up top so a taller stage doesn't move her */
  left: -1rem;
  width: auto;
  height: min(calc(100% - 5.5rem), 43.5rem);
  filter: contrast(1.04);
  pointer-events: none;
}
.hero-name {
  position: relative;
  font-family: var(--leckerli);
  font-weight: 400;
  color: var(--pink);
  line-height: 0.8;
  letter-spacing: 0;
  margin: 0;
  padding-top: clamp(1.2rem, 4vh, 2.5rem);
}
.hn { display: block; position: relative; z-index: 3; opacity: 0.85; /* slightly transparent, in front */ }
.hn-1 { z-index: 1; /* the E tucks slightly behind her */ font-size: clamp(5rem, 21vw, 18rem); margin-left: 26%; }
.hn-2 { font-size: clamp(3.4rem, 14vw, 11.5rem); margin-left: 33%; margin-top: 0.06em; }
.hn-3 { font-size: clamp(3.4rem, 14vw, 11.5rem); margin-left: 37%; margin-top: 0.03em; }

.thats-me {
  position: absolute;
  z-index: 3;
  top: 5%;
  left: clamp(1rem, 5%, 4rem);
  font-family: var(--hand);
  font-size: 1.7rem;
  line-height: 0.85;
  color: var(--pink);
  transform: rotate(-8deg);
  margin: 0;
}
.thats-me .arrow { stroke: var(--pink); }
.hero-standfirst {
  position: relative;
  z-index: 3;
  margin-left: 37%; /* tucked directly under the name */
  margin-top: 2.6rem;
  max-width: 28rem;
}
.hero-standfirst p {
  color: var(--pink);
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  margin: 0;
}

/* hand-drawn arrows */
.arrow {
  stroke: var(--white);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arrow-thats-me { width: 3.2rem; display: block; margin: 0.4rem 0 0 1.2rem; transform: rotate(8deg); }
.arrow-standfirst { width: 2.6rem; display: inline-block; vertical-align: -1.2rem; margin-left: 0.5rem; }

/* ---------- about / facts ---------- */
.about-title { margin-bottom: 0.25em; }
.about-copy p { max-width: 40ch; font-size: clamp(1.15rem, 1.6vw, 1.65rem); }
.about-split .framed { max-width: 28rem; justify-self: end; }
.about-copy p + p { margin-top: 1.2em; }
.about-split { align-items: start; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); }
.facts { margin-top: 2.8rem; margin-bottom: 2.5rem; text-align: center; }
.fact-btn {
  position: relative;
  z-index: 2;
  font-family: var(--typewriter);
  font-weight: 500;
  letter-spacing: -0.05em;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 999px;
  padding: 0.55em 1.5em;
  cursor: pointer;
  margin-bottom: -1.1rem; /* overlaps the fact box below */
  transform: rotate(-2deg);
  box-shadow: 0 3px 10px rgba(43, 24, 29, 0.2);
}
.fact-btn:hover { background: var(--ink); color: var(--white); }
.fact-btn:active { transform: rotate(-2deg) translateY(1px); }
.fact-box {
  position: relative;
  z-index: 1;
  background: var(--script);
  color: var(--white);
  border-radius: 14px;
  max-width: none; /* runs from the copy's left edge to the polaroid's right edge */
  margin: 0;
  padding: 2.2rem 2.4rem 1.9rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: -0.07em; /* a touch wider than the tw-tight default */
  box-shadow: var(--shadow);
  cursor: pointer;
}
@keyframes fact-wobble {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(1.4deg); }
  50% { transform: rotate(-1.1deg); }
  75% { transform: rotate(0.6deg); }
  100% { transform: rotate(0deg); }
}
.fact-box.wobble { animation: fact-wobble 0.45s ease; }
@media (prefers-reduced-motion: reduce) {
  .fact-box.wobble { animation: none; }
}

/* ---------- journalism: white editorial ---------- */
.section-light {
  max-width: none;
  background: var(--white);
  color: var(--ink);
}
.band { border-radius: 3rem 3rem 0 0; margin-top: -3rem; position: relative; }
.section-full { max-width: none; }
.section-full > .wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.1rem, 4vw, 3rem);
}
.bg-pink { background: var(--pink); }
.section-darker {
  max-width: none;
  background: var(--script);
}
.section-darker > * { max-width: 66rem; margin-left: auto; margin-right: auto; }
.consult-split { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; }
.consult-photo { max-width: 20rem; justify-self: center; }
.light-wrap { max-width: 66rem; margin: 0 auto; }
.section-light .section-title { color: var(--pink); }
.section-light .script-sub { color: var(--script); }
.section-light p { color: var(--ink); }
.origin-split { grid-template-columns: minmax(0, 11fr) minmax(0, 7fr); align-items: center; }
.origin-copy p { max-width: 52ch; font-size: clamp(1.05rem, 1.5vw, 1.4rem); }
.origin-copy p + p { margin-top: 1.1em; }
.origin-split .framed { max-width: 24rem; justify-self: end; }
.caption-pink { color: var(--script); font-size: 1.3rem; }

.tnf-strip {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1.8rem;
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.tnf-logo { width: 100%; height: auto; }

.section-light .stats { margin-bottom: 0; }
.section-light .stats li {
  border-color: rgba(43, 24, 29, 0.25);
  background: rgba(235, 114, 176, 0.09);
}
.section-light .stats strong { color: var(--script); }
.section-light .stats span { color: rgba(43, 24, 29, 0.8); }
.section-light .credits li { border-bottom-color: rgba(43, 24, 29, 0.35); }
.section-light .credits span { color: rgba(43, 24, 29, 0.8); }

.tab-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.6rem 0 0; }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: var(--script); color: #fff; }
.btn-pink-ghost { background: var(--pink); color: #fff; }
.btn-pink-ghost:hover { background: var(--script); color: #fff; }

.fav-block { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); }
.margin-note {
  position: absolute;
  top: -0.4rem;
  left: clamp(14rem, 30%, 20rem);
  color: var(--pink);
  transform: rotate(-4deg);
}
.margin-note .arrow { stroke: var(--pink); }
.fav-arrow { width: 2rem; display: inline-block; vertical-align: -0.9rem; margin-left: 0.3rem; transform: rotate(15deg); }
.clippings {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 0.8rem;
}
.clippings a {
  display: block;
  background: #fff;
  border: 1px solid #e4dee1;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.clippings a:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 26px rgba(43, 24, 29, 0.16);
}
.clip-thumb {
  width: 100%;
  height: clamp(9.5rem, 19vh, 14.5rem);
  object-fit: cover;
  display: block;
}
.clip-text { display: block; padding: 0.8rem 1.1rem 1rem; }
.clippings-grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.clippings .clip-title {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.04em;
  line-height: 1.4;
}
.clippings .clip-meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.76rem;
  color: #8a8286;
}

.press-split { margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.chips-label { margin-bottom: 0.5rem; font-weight: 700; }
.chips {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0; padding: 0;
}
.chips li {
  background: rgba(235, 114, 176, 0.16);
  color: var(--script);
  border-radius: 999px;
  padding: 0.32em 0.95em;
  font-size: 0.88rem;
}
.press-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
.press-left p:first-child { font-size: clamp(1.1rem, 1.6vw, 1.4rem); max-width: 48ch; margin-top: 0; }
.press-right { position: relative; }
.awards-card {
  background: var(--pink);
  border-radius: 20px;
  padding: 1.6rem 1.8rem 1.2rem;
  box-shadow: 0 14px 36px rgba(43, 24, 29, 0.2);
}
.awards-note { color: #fff; font-size: 1.6rem; margin: 0 0 0.8rem; }
.section-light .credits-onpink li, .credits-onpink li { border-bottom-color: rgba(255, 255, 255, 0.45); }
.section-light .credits-onpink strong, .credits-onpink strong { color: #fff; }
.section-light .credits-onpink span, .credits-onpink span { color: rgba(255, 255, 255, 0.9); }
.awards-polaroid {
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  max-width: 11rem;
  z-index: 2;
}
.endorsed {
  color: var(--pink);
  font-size: 2rem;
  margin: 1.6rem 0 0;
  transform: rotate(-2deg);
  display: inline-block;
}
.endorsed-arrow { stroke: var(--pink); width: 2.4rem; display: inline-block; vertical-align: -1rem; margin-left: 0.4rem; transform: rotate(-15deg); }
.awards-photo { max-width: 15rem; margin-top: 1.6rem; }

/* ---------- journalism: horizontal slides ---------- */
.hs-section { padding: 0 0 3rem; }
.hs-scroll { position: relative; }
.hs-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 4.2rem 0 1.2rem;
}
.hs-viewport { overflow: hidden; }
.hs-track {
  display: flex;
  align-items: center;
  gap: clamp(5rem, 12vw, 11rem);
  width: max-content;
  padding: 0 max(8vw, calc((100vw - 76rem) / 2 + 3rem));
  will-change: transform;
}
.hs-panel { flex: 0 0 auto; width: min(84vw, 50rem); }
.hs-wide { width: min(92vw, 70rem); }
.hs-fav { flex: 0 0 auto; width: min(88vw, 56rem); }
@media (min-width: 48.01rem) {
  .hs-panel:nth-child(2) { margin-right: clamp(3rem, 9vw, 9rem); }
}
.hs-desk { width: min(82vw, 100rem); }
.hs-desk-title {
  color: var(--pink);
  opacity: 0.85;
  text-align: center;
  font-size: clamp(4rem, 12.5vw, 10.5rem);
  margin: 0;
  position: relative;
  z-index: 1;
}
.desk-stage {
  position: relative;
  margin-top: -1.2em; /* the typewriter paper tucks up behind the title */
}
.typewriter-wrap {
  position: relative;
  width: min(64vw, 32rem);
  margin: 0 auto;
  z-index: 2;
}
.typewriter-img { width: 100%; height: auto; display: block; }
.paper-text {
  position: absolute;
  top: 3.5%;
  left: 20.5%;
  width: 60%;
  margin: 0;
  color: var(--pink);
  font-size: clamp(0.92rem, 1.55vw, 1.3rem);
  line-height: 1.22;
}
.desk-icon {
  position: absolute;
  z-index: 3;
  width: 12rem;
  background: none;
  border: 0;
  padding: 0.3rem;
  cursor: pointer;
  text-align: center;
  font-family: var(--typewriter);
  transition: transform 0.15s ease;
}
.desk-icon:hover { transform: translateY(-3px); }
.desk-icon img {
  width: 7rem;
  height: 7rem;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
.desk-icon span:last-child {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--pink);
}
.desk-icon:hover span:last-child { text-decoration: underline; color: var(--script); }
.folder-ic {
  position: relative;
  display: block;
  width: 7rem;
  height: 4.7rem;
  margin: 0 auto;
  background: linear-gradient(180deg, #f596c7 0%, var(--pink) 90%);
  border-radius: 5px;
}
.folder-ic::before {
  content: '';
  position: absolute;
  top: -0.4rem;
  left: 0;
  width: 45%;
  height: 0.6rem;
  background: var(--pink);
  border-radius: 4px 6px 0 0;
}
.di-tnf { left: 0; top: 26%; }
.di-awards { right: 2%; top: 4%; }
.di-bylines { right: 0; top: 46%; }
.di-work { left: 2%; bottom: 14%; }
.hs-cols {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 3vw, 2.8rem);
  align-items: start;
}
.hs-cols .framed { max-width: 26rem; justify-self: end; margin-top: -2.5rem; }
.hs-panel .script-sub {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 0.25em;
}
.hs-copy p { font-size: clamp(1.15rem, 1.7vw, 1.55rem); max-width: 44ch; }
.hs-copy p + p { margin-top: 1em; }
.hs-copy-wide { max-width: 60ch; font-size: clamp(1rem, 1.3vw, 1.2rem); }
.hs-logo-head { margin: 0 0 1rem; text-align: center; }
.hs-logo-head img { width: clamp(11rem, 16vw, 15rem); height: auto; display: inline-block; }
.tnf-card {
  background: var(--pink);
  border-radius: 26px;
  padding: clamp(1.4rem, 2.5vw, 2rem) clamp(1.4rem, 3vw, 2.6rem) clamp(1.4rem, 2.2vw, 1.8rem);
  text-align: center;
  box-shadow: 0 18px 50px rgba(43, 24, 29, 0.22);
}
.tnf-card .hs-logo-head {
  display: block;
  text-align: center;
  margin: 0 0 0.6rem;
}
.tnf-card .hs-logo-head img { width: clamp(9rem, 12vw, 12rem); display: inline-block; }
.tnf-laptop-wrap {
  position: relative;
  display: inline-block;
  padding: 1.2rem 0 0 1.6rem;
}
.tnf-laptop { width: clamp(22rem, 36vw, 34rem); height: auto; display: block; }
.tnf-card p { color: #fff; }
.tnf-card-copy {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  max-width: 80ch;
  margin: 0.9rem auto 0;
}
.tnf-card .tab-actions { justify-content: center; max-width: none; }
.tnf-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 10.5rem;
  height: 10.5rem;
  border-radius: 50%;
  background: var(--script);
  border: 3px solid #fff;
  color: #fff;
  display: grid;
  place-content: center;
  text-align: center;
  transform: rotate(-8deg);
  box-shadow: 0 6px 18px rgba(43, 24, 29, 0.2);
}
.tnf-badge strong {
  font-family: var(--typewriter);
  font-weight: 700;
  color: #fff;
  font-size: 1.75rem;
  letter-spacing: -0.05em;
  line-height: 1;
}
.tnf-badge span { display: block; color: #fff; font-size: 0.82rem; line-height: 1.25; letter-spacing: -0.03em; padding-top: 0.35rem; }
.hs-panel .stats { margin: 1.6rem 0 0; }
.hs-panel .tab-actions { margin-top: 1.1rem; flex-wrap: nowrap; }
.hs-panel .tab-actions .btn { white-space: nowrap; }
.btn {
  display: inline-block;
  font-family: var(--typewriter);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
  background: var(--white);
  color: var(--script);
  padding: 0.75em 1.6em;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(43, 24, 29, 0.16);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn-ghost {
  background: color-mix(in srgb, var(--white) 25%, transparent);
  color: var(--white);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--white); color: var(--script); }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 3px 10px rgba(43, 24, 29, 0.16); }
.btn-pink:hover { background: var(--script); color: #fff; }
.btn-pink-ghost { background: var(--pink); color: #fff; box-shadow: 0 3px 10px rgba(43, 24, 29, 0.16); }
.btn-pink-ghost:hover { background: var(--script); color: #fff; }

/* ---------- framed photos ---------- */
.framed {
  background: #fff;
  border: 1px solid #e8e2e5;
  padding: 0.7rem;
  box-shadow: var(--shadow);
  margin: 0;
}
.framed img { filter: grayscale(1) contrast(1.05); }
.framed-colour img { filter: none; }
.framed figcaption { padding: 0.7rem 0.15rem 0.15rem; }
.rotate-l { transform: rotate(-1.4deg); }
.rotate-r { transform: rotate(1.6deg); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.rotate-l.is-visible { transform: rotate(-1.4deg); }
.rotate-r.is-visible { transform: rotate(1.6deg); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .rotate-l, .rotate-l.is-visible { transform: rotate(-1.4deg); }
  .rotate-r, .rotate-r.is-visible { transform: rotate(1.6deg); }
}

/* ---------- shared blocks ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.split .framed { max-width: 22rem; justify-self: center; }

.stats {
  list-style: none; padding: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
}
.stats li {
  background: rgba(255, 253, 249, 0.12);
  border: 1px solid rgba(255, 253, 249, 0.4);
  padding: 1.2rem 1.1rem 1rem;
  border-radius: 14px;
}
.stats strong {
  display: block;
  font-family: var(--typewriter);
  font-weight: 700;
  letter-spacing: -0.06em;
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  color: var(--white);
  line-height: 1;
}
.stats span { font-size: 0.85rem; }

.tnf-cta { margin: 1.6rem 0 0; }

.duo-block {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.video-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.video-frame video { width: 100%; height: auto; background: #000; border-radius: 12px; }
.video-frame.portrait { max-width: 20rem; margin: 0 auto; }
.bylines-head { margin-top: 1.4em; }

.awards-block { margin-top: clamp(2.5rem, 6vw, 4rem); }
.credits {
  list-style: none; padding: 0; margin: 0;
}
.credits li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px dotted rgba(255, 253, 249, 0.55);
}
.credits strong { font-size: 1rem; }
.credits span { font-size: 0.9rem; opacity: 0.9; }
.credits-wide { max-width: 44rem; }
.awards-aside { display: grid; gap: 2rem; }
.awards-aside .framed { max-width: 20rem; }

.theroux {
  margin: 0;
  background: rgba(255, 253, 249, 0.12);
  border: 2px dashed rgba(255, 253, 249, 0.6);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
}
.theroux p { margin: 0; font-size: 0.92rem; }
.theroux-note { font-size: 1.6rem; margin-bottom: 0.7rem !important; }

/* ---------- cards ---------- */
.cards {
  columns: 2 20rem;
  column-gap: 1.4rem;
}
.card {
  break-inside: avoid;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 1.4rem;
}
.card-body { padding: 1.1rem 1.3rem 1.3rem; }
.card h3 {
  font-family: var(--leckerli);
  font-weight: 400;
  color: var(--script);
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0 0 0.4em;
}
.card p { font-size: 0.92rem; margin: 0; }
.card-img-phone { max-height: 28rem; object-fit: cover; object-position: top; width: 100%; }
.card .video-frame video { border-radius: 0; }

/* ---------- content creation: card grid ---------- */
.cc-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.3rem;
  align-items: stretch;
}
.cc-card {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 1.8rem 2rem 1.9rem;
  box-shadow: 0 10px 30px rgba(43, 24, 29, 0.14);
}
.cc-card p { color: var(--ink); }
.cc-card .script-sub { color: var(--script); margin-bottom: 0.35em; }
.cc-line { margin: 0 0 1.1rem; font-size: 0.95rem; color: rgba(43, 24, 29, 0.75); }
.cc-social p { font-size: clamp(1rem, 1.3vw, 1.2rem); max-width: 54ch; }
.cc-social p + p { margin-top: 0.9em; }
.cc-social .chips { margin-top: 1.2rem; }
.cc-numbers {
  background: var(--script);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 1rem;
}
.cc-num { margin: 0; }
.cc-num strong {
  display: block;
  font-family: var(--typewriter);
  font-weight: 700;
  letter-spacing: -0.06em;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  color: #fff;
  line-height: 1;
}
.cc-num span { color: rgba(255, 255, 255, 0.9); font-size: 0.92rem; }
.cc-receipts, .cc-video, .cc-brand { grid-column: 1 / -1; }
.receipt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.receipt-grid img {
  width: 100%;
  height: clamp(12rem, 20vw, 17rem);
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  border: 1px solid #e8e2e5;
}
.video-row {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.video-row video {
  height: clamp(14rem, 26vw, 22rem);
  width: auto;
  max-width: 100%;
  border-radius: 12px;
  background: #000;
}
.brand-carousel {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  padding: 0.6rem 0.2rem 1.4rem;
  cursor: grab;
  scrollbar-color: var(--pink) transparent;
  -webkit-overflow-scrolling: touch;
}
.brand-carousel.dragging { cursor: grabbing; scroll-behavior: auto; }
.brand-card {
  flex: 0 0 auto;
  width: clamp(15rem, 24vw, 21rem);
  background: #fff;
  border: 1px solid #e8e2e5;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
  font-family: var(--typewriter);
  text-align: left;
}
.brand-card:hover { transform: translateY(-4px); }
.brand-card img {
  width: 100%;
  height: clamp(10rem, 15vw, 14rem);
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.brand-card span {
  display: block;
  padding: 0.9rem 1.1rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.04em;
  color: var(--script);
}
.brand-modal[hidden] { display: none; }
.brand-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(43, 24, 29, 0.55);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.brand-modal-card {
  position: relative;
  background: #fdfdfd;
  color: var(--ink);
  border-radius: 18px;
  max-width: 42rem;
  max-height: 88vh;
  overflow: auto;
  padding: 1.4rem 1.6rem 1.6rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
#bm-imgs { display: grid; gap: 0.8rem; }
#bm-imgs img { width: 100%; border-radius: 12px; }
.brand-modal-card h4 {
  font-family: var(--leckerli);
  font-weight: 400;
  color: var(--script);
  font-size: 1.9rem;
  margin: 1rem 0 0.3rem;
}
.brand-modal-card p { margin: 0; font-size: 1rem; color: var(--ink); white-space: pre-line; }
.brand-close {
  position: absolute;
  top: 0.7rem; right: 0.9rem;
  background: var(--pink);
  color: #fff;
  border: 0;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}
.brand-close:hover { background: var(--script); }

/* ---------- photography ---------- */
#photography .section-title { text-align: center; }
#photography .section-intro { text-align: center; margin-left: auto; margin-right: auto; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.8rem);
}
.photo-grid figure { margin: 0; }
.photo-grid img { border-radius: 12px; box-shadow: var(--shadow); }

/* ---------- direction ---------- */
.covers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}
.covers figure { margin: 0; }
.covers img { border-radius: 12px; box-shadow: var(--shadow); }
.covers figcaption { font-size: 0.8rem; margin-top: 0.7rem; }
.spread-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(12rem, 15rem);
  gap: 1rem;
  overflow-x: auto;
  padding: 1.6rem 0.2rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--white) transparent;
}
.spread-strip img { border-radius: 10px; box-shadow: var(--shadow); }
.bts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
  margin-top: 1.5rem;
}

/* ---------- public speaking + consultancy ---------- */
.speak-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.speak-left .section-title { margin-bottom: 0.35em; }
.speak-left .section-intro { margin-bottom: 1.6rem; max-width: 40ch; }
.speak-left .credits { max-width: 36rem; }
.awards-card .hand { color: #fff; }
.speak-videos {
  display: flex;
  gap: 1.1rem;
  justify-content: flex-end;
}
.speak-videos video {
  width: min(100%, 21rem);
  height: auto;
  border-radius: 12px;
  background: #000;
}
.consult-copy { font-size: clamp(1rem, 1.4vw, 1.25rem); max-width: 52ch; }

/* ---------- contact + footer ---------- */
.contact { text-align: center; }
.contact .section-intro { margin-left: auto; margin-right: auto; }
.contact-list {
  list-style: none; padding: 0; margin: 0 auto;
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
}
.site-footer {
  border-top: 1px solid rgba(255, 253, 249, 0.4);
  padding: 2rem clamp(1.1rem, 4vw, 3rem) 3rem;
  text-align: center;
  font-size: 0.85rem;
}
.site-footer p { max-width: none; margin: 0.4rem 0; }
.footer-note { font-size: 1.6rem; }

/* =====================================================
   responsive
   ===================================================== */
@media (max-width: 56rem) {
  .split:not(.about-split),
  .duo-block { grid-template-columns: 1fr; }
  .split:not(.about-split) .framed { margin-top: 1rem; }
}
@media (max-width: 40rem) {
  .about-split { grid-template-columns: 1fr; }
  .about-split .framed { margin-top: 1.5rem; }
}
@media (max-width: 56rem) {
  /* the journalism deck stacks vertically on small screens */
  .hs-scroll { height: auto !important; }
  .hs-sticky { position: static; height: auto; display: block; overflow: visible; padding: 3rem 0 1rem; }
  .hs-viewport { overflow: visible; }
  .hs-track {
    display: flex;
    flex-direction: column;
    width: auto !important;
    transform: none !important;
    gap: 3rem;
    padding: 0 1.1rem;
  }
  .hs-panel, .hs-wide, .hs-fav, .hs-desk { width: 100%; }
  .hs-progress-track { display: none; }
  .tl-line { display: none; }
  .section { padding-bottom: 6.5rem; }
  .section-full > .wrap { padding-bottom: 6.5rem; }
  .hs-section { padding-bottom: 6rem; }
  .paper-text {
    font-size: 0.66rem;
    line-height: 1.16;
    top: 2.5%;
    left: 18.5%;
    width: 64%;
  }
  .typewriter-wrap { width: min(92vw, 24rem); }
  .desk-stage { margin-top: 1.2rem; }
  .speak-videos { justify-content: center; }
  .credits li { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .hs-cols { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .cc-grid { grid-template-columns: 1fr; }
  .speak-grid { grid-template-columns: 1fr; }
  .receipt-grid { grid-template-columns: 1fr; }
  .receipt-grid img { height: auto; max-height: 24rem; }
  .video-row { flex-direction: column; align-items: stretch; }
  .video-row video { width: 100%; height: auto; }
  .hs-panel .tab-actions { flex-wrap: wrap; }
  .desk-icon { width: 5.2rem; }
  .desk-icon img { width: 2.8rem; height: 2.8rem; }
  .typewriter-wrap { width: min(64vw, 20rem); }
  .theroux-aside { flex-direction: column; align-items: flex-start; }
  .hs-panel .stats { grid-template-columns: 1fr; gap: 0.6rem; }
  .tnf-strip { grid-template-columns: 1fr; }
  .tnf-logo { max-width: 10rem; }
  .origin-split { grid-template-columns: 1fr; }
  .origin-split .framed { justify-self: center; margin-top: 1rem; }
  .press-split { grid-template-columns: 1fr; }
  .margin-note { position: static; display: inline-block; margin: 0 0 0.6rem 1rem; }
}
@media (max-width: 48rem) {
  .site-nav { padding: 0 0.8rem; top: 0.6rem; margin-top: 0.6rem; }
  .site-nav nav {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav-toggle {
    display: grid;
    place-content: center;
    width: 3.1rem;
    height: 3.1rem;
    margin: 0;
    padding: 0;
    background: var(--pink);
    border-radius: 50%;
    box-shadow: var(--shadow);
  }
  .site-nav ul { display: none; }
  .site-nav nav.open ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 0.6rem;
    background: var(--pink);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 0.6rem 0.5rem;
  }
  .site-nav nav.open li { display: block; }
  .site-nav nav.open .nav-contact { margin-left: 0; }
  .site-nav li a { font-size: 1rem; padding: 0.55rem 0.7rem; }

  /* mobile hero: photo first, name laid over it below her face */
  .hero { padding-top: 3.2rem; margin-top: -3.2rem; }
  .hero-stage { min-height: 0; padding-bottom: 1rem; }
  .thats-me { display: none; }
  .hero-cutout {
    position: relative;
    display: block;
    width: min(88vw, 26rem);
    height: auto;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    margin: 0.2rem 0 0;
  }
  .hero-name {
    position: absolute;
    z-index: 3;
    top: 66vw;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0;
  }
  .hn-1, .hn-2, .hn-3 { margin-left: 0; }
  .hn { opacity: 1; }
  .hn-1 { font-size: clamp(5.2rem, 26vw, 9rem); }
  .hn-2, .hn-3 { font-size: clamp(3.3rem, 16.5vw, 6rem); }
  .hero-standfirst {
    position: static;
    max-width: 30rem;
    margin: 1.4rem auto 0;
    padding: 0 1.1rem;
    text-align: center;
  }
  .hero-standfirst p { margin: 0 auto; }
  /* where it started: centred photo */
  .hs-cols .framed { justify-self: center; max-width: 16rem; margin-top: 0.5rem; }
  /* my work: one card per row so they are all the same size */
  .clippings-grid { grid-template-columns: 1fr; }
  .tnf-badge { width: 6rem; height: 6rem; left: -0.4rem; }
  .tnf-badge strong { font-size: 1rem; }
  .tnf-badge span { font-size: 0.56rem; padding-top: 0.15rem; }
  .tnf-card .hs-logo-head { margin-bottom: 0; }
  .tnf-laptop-wrap { display: block; width: 100%; padding: 3.4rem 0 0; }
  .tnf-laptop { width: 100%; margin: 0 auto; }
  .cc-card { min-width: 0; }
  .cc-grid > * { min-width: 0; }
}
@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .video-duo { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}
