/* ==========================================================================
   Marwa El-Shaarawy — Copywriter Portfolio
   Aesthetic: Y2K sticker-collage / scrapbook. Cream paper, die-cut stickers,
   hard offset shadows, bold display type, brush script accents.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Paper + ink */
  --cream:      #F1EEE9;
  --cream-deep: #E7E2D9;
  --paper:      #FCFBF9;
  --ink:        #141414;
  --ink-soft:   #35322E;
  --muted:      #5C5852;

  /* Sticker palette */
  --pink:       #FF2BA6;
  --pink-text:  #C00E72;   /* AA-safe pink for small text on cream */
  --lime:       #F2E63B;
  --lav:        #C6A5E8;
  --mint:       #9FE3D8;
  --peach:      #F8CBAE;
  --sky:        #A9D5F5;

  /* Structure */
  --stroke:     2.5px;
  --radius:     16px;
  --radius-lg:  28px;
  --shadow:     4px 5px 0 var(--ink);
  --shadow-sm:  3px 3px 0 var(--ink);
  --shadow-lg:  7px 8px 0 var(--ink);
  --shadow-soft: 0 12px 30px -12px rgba(20,20,20,.35);

  /* Type */
  --display: "Archivo Black", "Helvetica Neue", Impact, sans-serif;
  --script:  "Kaushan Script", "Brush Script MT", cursive;
  --serif:   "EB Garamond", Georgia, "Times New Roman", serif;
  --arabic:  "Cairo", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;

  /* Rhythm */
  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --section-y: clamp(4.5rem, 11vw, 9rem);
  --shell: 1240px;
}

/* ---------- 2. Reset / base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% 8%,  rgba(198,165,232,.20), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(159,227,216,.22), transparent 40%),
    radial-gradient(circle at 50% 96%, rgba(255,43,166,.10),  transparent 46%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1rem, .96rem + .2vw, 1.09rem);
  line-height: 1.62;
  overflow-x: hidden;
}

/* Paper grain — sits above the wash, below everything else. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--pink-text); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.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;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 999;
  background: var(--ink); color: var(--lime);
  padding: .8rem 1.2rem; border-radius: 0 0 12px 12px;
  font-family: var(--display); font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--lime); }

/* ---------- 3. Layout helpers ------------------------------------------- */
.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.shell--wide { width: min(100% - 2rem, 1480px); }

section { padding-block: var(--section-y); }
section[id], header[id] { scroll-margin-top: 84px; }

.section-head { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--pink-text);
  margin-bottom: .6rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2.5px; background: var(--pink); border-radius: 2px;
}

.title-xl { font-size: clamp(2.5rem, 7.5vw, 5.25rem); }
.title-lg { font-size: clamp(2.1rem, 5.6vw, 3.9rem); }
.title-md { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }

.script {
  font-family: var(--script);
  font-weight: 400;
  color: var(--pink);
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: none;
  /* Kaushan sits high; nudge optical alignment. */
  padding-inline: .06em;
}

.lede {
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
  max-width: 62ch;
  color: var(--ink-soft);
}

.muted { color: var(--muted); }

/* Marker-pen highlight for a single punchline phrase. */
.hl {
  color: inherit;
  background: linear-gradient(transparent 52%, var(--lime) 52%, var(--lime) 92%, transparent 92%);
  padding-inline: .08em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- 4. Sticker primitives --------------------------------------- */
.card {
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Die-cut sticker chrome for decorative SVGs: white keyline + soft drop. */
.sticker {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(2px 3px 2px rgba(20,20,20,.28));
  z-index: 2;
}
.sticker svg { width: 100%; height: 100%; overflow: visible; }
.sticker--front { z-index: 6; }

.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--display);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .42rem .78rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--ink);
  white-space: nowrap;
}
.tag--pink  { background: var(--pink);  color: #fff; }
.tag--lime  { background: var(--lime); }
.tag--lav   { background: var(--lav); }
.tag--mint  { background: var(--mint); }
.tag--peach { background: var(--peach); }
.tag--ink   { background: var(--ink); color: var(--lime); }

/* Washi tape strip — used to "stick" cards to the page. */
.tape {
  position: absolute;
  width: 118px; height: 30px;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.42) 0 7px, rgba(255,255,255,0) 7px 15px),
    var(--peach);
  opacity: .92;
  border-left: 1px dashed rgba(20,20,20,.16);
  border-right: 1px dashed rgba(20,20,20,.16);
  box-shadow: 0 2px 5px rgba(20,20,20,.18);
  z-index: 5;
  pointer-events: none;
  clip-path: polygon(3% 0, 100% 4%, 97% 100%, 0 94%);
}
.tape--mint { background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.42) 0 7px, rgba(255,255,255,0) 7px 15px),
    var(--mint); }
.tape--lav  { background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.42) 0 7px, rgba(255,255,255,0) 7px 15px),
    var(--lav); }
.tape--top  { top: -14px; left: 50%; transform: translateX(-50%) rotate(-2.5deg); }

/* Button */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display);
  font-size: .82rem; letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none;
  padding: .95rem 1.5rem;
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .16s cubic-bezier(.2,.9,.3,1.2), box-shadow .16s;
}
.btn:hover, .btn:focus-visible {
  color: var(--ink);
  transform: translate(-2px, -3px);
  box-shadow: 6px 8px 0 var(--ink);
}
.btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--pink { background: var(--pink); color: #fff; }
.btn--pink:hover, .btn--pink:focus-visible { color: #fff; }
.btn--lime { background: var(--lime); }
.btn--ink  { background: var(--ink); color: var(--lime); }
.btn--ink:hover, .btn--ink:focus-visible { color: var(--lime); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- 5. Nav ------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(9px);
  background: rgba(241,238,233,.82);
  border-bottom: var(--stroke) solid var(--ink);
}
.nav__inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .7rem;
}
.nav__brand {
  font-family: var(--display);
  font-size: .95rem; letter-spacing: -.01em;
  text-decoration: none; color: var(--ink);
  display: flex; align-items: center; gap: .5rem;
}
.nav__brand .nav__name span { color: var(--pink-text); }
.nav__brand svg { width: 22px; height: 22px; }

/* The "Menu" button and its dropdown show at every width. */
.nav__toggle {
  display: inline-flex; align-items: center; gap: .45rem; flex: none;
  font-family: var(--display); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--lime); border: var(--stroke) solid var(--ink);
  border-radius: 999px; padding: .55rem 1rem; cursor: pointer;
  box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.nav__toggle:hover { transform: translate(-1px,-2px); box-shadow: 4px 5px 0 var(--ink); }
.nav__links {
  position: absolute; top: calc(100% + .35rem); right: 0;
  width: min(17rem, 100%);
  flex-direction: column; align-items: stretch; gap: .4rem;
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .8rem;
  display: none;
}
.nav__links[data-open="true"] { display: flex; }
.nav__links a {
  font-family: var(--display);
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  padding: .7rem .9rem; border-radius: 999px; text-align: center;
  border: 2px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.nav__links a:hover, .nav__links a:focus-visible {
  background: var(--lime); border-color: var(--ink); transform: rotate(-1.5deg);
}
.nav__links .btn { justify-content: center; padding: .7rem 1rem; font-size: .72rem; box-shadow: var(--shadow-sm); }
.nav__links .btn:hover { transform: translate(-1px,-2px); box-shadow: 4px 5px 0 var(--ink); }
/* On phones the menu spans the screen; on tablets and up it drops from the button. */
@media (max-width: 560px) {
  .nav__links { left: -.5rem; right: -.5rem; width: auto; }
}

/* Profile / The work switcher */
.tabs {
  display: inline-flex; padding: 3px; gap: 2px;
  border: var(--stroke) solid var(--ink); border-radius: 999px;
  background: var(--paper); box-shadow: var(--shadow-sm);
}
.tab {
  font-family: var(--display); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  padding: .5rem .95rem; border-radius: 999px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.tab:hover { background: var(--lime); color: var(--ink); }
.tab[aria-current="page"] { background: var(--ink); color: var(--lime); }
/* Résumé sits in the pill on wide screens; on narrower ones the pill keeps
   only the three views (the menu always lists Résumé too). */
@media (max-width: 1080px) { .tab--sub { display: none; } }
.view[hidden] { display: none; }

.tabs { margin-left: auto; }
@media (max-width: 940px) { .nav__inner { gap: .6rem; } }
@media (max-width: 560px) {
  .nav__name { display: none; }
  .tab { padding: .45rem .6rem; font-size: .62rem; letter-spacing: .05em; }
  .nav__toggle { padding: .5rem .7rem; }
}
/* Below this the menu button shows its icon only, so all three tabs fit. */
@media (max-width: 480px) { .nav__toggle { font-size: 0; gap: 0; } }
@media (max-width: 350px) { .tab { padding: .42rem .45rem; font-size: .58rem; letter-spacing: .03em; } .nav__brand svg { display: none; } }

/* ---------- 6. Hero ------------------------------------------------------ */
.hero { padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: 0; }

/* The crumpled-plastic banner from the moodboard. */
.banner {
  position: relative;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(158deg, #FFFFFF 0%, #F4F2EE 30%, #FDFDFC 52%, #EDEAE4 74%, #FBFAF8 100%);
  padding: clamp(2.75rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem) clamp(2.5rem, 7vw, 5rem);
  min-height: clamp(380px, 52vw, 620px);
  display: grid;
  place-items: center;
}
/* Wrinkle sheen: broad soft highlights + a turbulence crinkle. */
.banner::before {
  content: ""; position: absolute; inset: -12%; z-index: 0; pointer-events: none;
  background:
    linear-gradient(74deg,  rgba(255,255,255,.95) 0 6%,  rgba(255,255,255,0) 14%),
    linear-gradient(101deg, rgba(20,20,20,.07)   0 3%,   rgba(255,255,255,0) 11%),
    linear-gradient(-63deg, rgba(255,255,255,.9)  0 5%,  rgba(255,255,255,0) 17%),
    linear-gradient(-38deg, rgba(20,20,20,.06)   0 4%,   rgba(255,255,255,0) 13%),
    linear-gradient(24deg,  rgba(255,255,255,.7)  0 7%,  rgba(255,255,255,0) 19%);
  filter: blur(6px);
  opacity: .95;
}
.banner::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .8; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.011' numOctaves='4' seed='7'/%3E%3CfeDiffuseLighting surfaceScale='2.6' diffuseConstant='1.05' lighting-color='%23ffffff'%3E%3CfeDistantLight azimuth='228' elevation='58'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='700' height='700' filter='url(%23c)'/%3E%3C/svg%3E");
  background-size: 700px 700px;
}
.banner__inner { position: relative; z-index: 4; text-align: center; width: 100%; }

.hero__word {
  font-family: var(--display);
  font-size: clamp(3.6rem, 17vw, 13.5rem);
  line-height: .8;
  letter-spacing: -.045em;
  margin: 0;
  text-transform: uppercase;
}
.hero__word em { font-style: normal; display: block; }
.hero__word .lo { margin-left: -.06em; }


.hero__script {
  font-family: var(--script);
  color: var(--pink);
  font-size: clamp(1.5rem, 4.6vw, 3rem);
  margin-top: .1em;
  position: relative;
  display: inline-block;
}
.hero__script::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -.06em; height: .09em;
  background: var(--pink); border-radius: 999px; transform: rotate(-1deg);
}

.hero__name {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .6rem 1rem;
}
.hero__name h1 {
  font-size: clamp(1.35rem, 3.4vw, 2.35rem);
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.hero__roles {
  display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center;
  margin-top: 1rem;
}

/* Marquee ribbon — the wrapper absorbs the rotation so the page never
   gains a horizontal scrollbar (clipping on <html> would break the
   sticky nav in Chromium). */
.ribbon-wrap { overflow: hidden; }
.ribbon {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--ink);
  border-block: var(--stroke) solid var(--ink);
  overflow: hidden;
  padding-block: .85rem;
  transform: rotate(-.7deg) scale(1.03);
}
.ribbon__track {
  display: flex; width: max-content;
  animation: slide 42s linear infinite;
}
.ribbon__group {
  display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem;
  font-family: var(--display);
  font-size: clamp(.85rem, 1.6vw, 1.15rem);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--lime); white-space: nowrap;
}
.ribbon__group span { display: inline-flex; align-items: center; gap: 2.5rem; }
.ribbon__group svg { width: 1.1em; height: 1.1em; color: var(--pink); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon__track { animation: none; } }

/* ---------- Selected work strip (Profile) -------------------------------- */
.featured { padding-bottom: 0; }
.featured__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.featured__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.carousel__nav { display: flex; gap: .5rem; }
.carousel__btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  font-size: 1.25rem; line-height: 1; cursor: pointer;
  background: var(--lime); color: var(--ink);
  border: var(--stroke) solid var(--ink); border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.carousel__btn:hover:not(:disabled) { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--ink); }
.carousel__btn:disabled { opacity: .35; cursor: default; box-shadow: none; }

/* Native horizontal scroll with snap: swipe, trackpad, keyboard and the
   arrow buttons all move the same track. */
.featured__track {
  list-style: none; margin: 0; padding: 4px 14px 18px 4px;
  display: flex; gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: 4px;
  scrollbar-width: none;
}
.featured__track::-webkit-scrollbar { display: none; }
.featured__track:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; border-radius: var(--radius); }
/* Cards are sized so the next one always peeks in (≈⅓ of a card). */
.featured__track > li { flex: 0 0 calc((100% - 3 * var(--gap)) / 3.35); scroll-snap-align: start; }
@media (max-width: 900px) { .featured__track > li { flex-basis: calc((100% - 2 * var(--gap)) / 2.35); } }
@media (max-width: 560px) { .featured__track > li { flex-basis: 78%; } }
/* Full bleed at every size: the track stretches to both edges of the
   window (cards slide past the page margins on either side) while its
   inset keeps the first card aligned with the heading. --bleed is the
   .shell side gutter; using the same value for margin, padding and
   scroll-padding keeps the snap point on the heading's left edge. */
.featured, .snips { --bleed: max(1.25rem, calc((100vw - var(--shell)) / 2)); }
.featured__track {
  margin-inline: calc(-1 * var(--bleed));
  padding-inline: var(--bleed);
  scroll-padding-inline: var(--bleed);
}
.feat {
  display: flex; flex-direction: column; height: 100%;
  background: var(--paper); color: var(--ink); text-decoration: none;
  border: var(--stroke) solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s cubic-bezier(.2,.9,.3,1.2), box-shadow .2s;
}
.feat:hover, .feat:focus-visible { color: var(--ink); transform: translate(-3px, -4px); box-shadow: 8px 10px 0 var(--ink); }
.feat__img { display: block; aspect-ratio: 1 / 1; border-bottom: var(--stroke) solid var(--ink); background: var(--cream); overflow: hidden; }
.feat__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.feat:hover .feat__img img { transform: scale(1.04); }
.feat__meta { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1rem 1.1rem 1.15rem; }
.feat__tag { font-size: .6rem; padding: .3rem .6rem; box-shadow: 1px 1px 0 var(--ink); }
.feat__client { font-family: var(--display); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.1; margin-top: .2rem; }
.feat__what { font-size: .95rem; line-height: 1.4; color: var(--ink-soft); }
@media (max-width: 520px) {
  .feat__meta { padding: .75rem .8rem .85rem; }
  .feat__what { font-size: .86rem; }
}
.client[id] { scroll-margin-top: 90px; }
.project[id] { scroll-margin-top: 100px; }

/* Selected work as slides: one project at a time, the next one just
   peeking in, so visitors slide to reveal each. Wide screens lay a slide
   out sideways — picture left, details right. */
.featured__track--slides > li { flex: 0 0 min(84%, 1000px); }
@media (max-width: 560px) { .featured__track--slides > li { flex-basis: 86%; } }
.feat__cta {
  margin-top: .5rem;
  font-family: var(--display); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 2px solid var(--pink); padding-bottom: 2px;
}
@media (min-width: 761px) {
  .featured__track--slides .feat { flex-direction: row; }
  .featured__track--slides .feat__img {
    flex: 0 0 48%; aspect-ratio: 1 / 1;
    border-bottom: 0; border-right: var(--stroke) solid var(--ink);
  }
  .featured__track--slides .feat__meta { justify-content: center; gap: .6rem; padding: clamp(1.5rem, 4vw, 3.25rem); }
  .featured__track--slides .feat__tag { font-size: .66rem; padding: .38rem .75rem; }
  .featured__track--slides .feat__client { font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 1; letter-spacing: -.02em; }
  .featured__track--slides .feat__what { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.45; max-width: 36ch; }
}
/* Illustrated covers for the two deck projects. Sizes use container
   units, so each mock-up scales with its slide on any screen. */
.cover-deck, .cover-board { container-type: inline-size; display: block; padding: 0; }
.cover-deck > *, .cover-board > * { position: absolute; }
.cover-deck .feat__sticker, .cover-board .feat__sticker { top: 6%; right: 6%; width: 20%; z-index: 3; }

/* Talabeya: a stack of strategy slides, palette chips, and a leads chart */
.deck__slide {
  left: 9%; top: 15%; width: 64%; aspect-ratio: 16 / 10.5;
  display: flex; flex-direction: column; gap: 3.2cqw;
  padding: 5cqw 5.5cqw;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: 2.4cqw;
  box-shadow: 1.1cqw 1.3cqw 0 var(--ink);
  transform: rotate(-4deg);
}
.deck__slide--back { background: var(--mint); transform: rotate(5deg) translate(9%, 9%); }
.deck__eyebrow {
  font-family: var(--display); font-size: 2.3cqw; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pink-text);
}
.deck__title { font-family: var(--display); font-size: 7.6cqw; line-height: .9; letter-spacing: -.03em; color: var(--ink); }
.deck__lines { display: flex; flex-direction: column; gap: 1.4cqw; }
.deck__lines i { display: block; height: 1.3cqw; border-radius: 99px; background: rgba(20,20,20,.18); }
.deck__lines i:nth-child(1) { width: 92%; } .deck__lines i:nth-child(2) { width: 78%; } .deck__lines i:nth-child(3) { width: 56%; }
.deck__swatches { display: flex; margin-top: auto; }
.deck__swatches i {
  width: 7cqw; height: 7cqw; border-radius: 50%; border: 2px solid var(--ink);
  margin-right: -1.6cqw; background: var(--pink);
}
.deck__swatches i:nth-child(2) { background: var(--lime); }
.deck__swatches i:nth-child(3) { background: var(--mint); }
.deck__swatches i:nth-child(4) { background: var(--peach); }
.deck__swatches i:nth-child(5) { background: var(--ink); }
.deck__chart {
  right: 8%; bottom: 9%; width: 36%; aspect-ratio: 1 / .95;
  display: flex; flex-direction: column; gap: 2cqw; padding: 3.4cqw;
  background: var(--lime); border: 2.5px solid var(--ink); border-radius: 2.4cqw;
  box-shadow: 1.1cqw 1.3cqw 0 var(--ink); transform: rotate(4deg); z-index: 2;
}
.deck__bars { flex: 1; display: flex; align-items: flex-end; gap: 2.4cqw; border-bottom: 2px solid var(--ink); }
.deck__bars i { flex: 1; height: var(--h); background: var(--pink); border: 2px solid var(--ink); border-bottom: 0; border-radius: 1cqw 1cqw 0 0; }
.deck__chart-label { font-family: var(--display); font-size: 3.6cqw; color: var(--ink); }

/* Investment: a storyboard sheet of numbered scene frames */
.board {
  inset: 13% 8% 9% 8%;
  display: flex; flex-direction: column; gap: 3.2cqw; padding: 4.5cqw;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: 2.4cqw;
  box-shadow: 1.2cqw 1.4cqw 0 var(--ink); transform: rotate(-2.5deg);
}
.board__head { display: flex; align-items: baseline; justify-content: flex-start; gap: 2.4cqw; border-bottom: 2px dashed rgba(20,20,20,.3); padding-bottom: 2cqw; }
.board__head b { font-family: var(--display); font-weight: 400; font-size: 4.4cqw; letter-spacing: -.02em; color: var(--ink); }
.board__head span { font-family: var(--serif); font-style: italic; font-size: 3.2cqw; color: var(--ink-soft); }
.board__grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3cqw 2.6cqw; }
.board__cell { display: flex; flex-direction: column; gap: 1.2cqw; min-height: 0; }
.board__frame {
  flex: 1; display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 1.2cqw; background: var(--cream);
}
.board__cell:nth-child(2) .board__frame, .board__cell:nth-child(6) .board__frame { background: var(--mint); }
.board__cell:nth-child(3) .board__frame { background: var(--lime); }
.board__cell:nth-child(4) .board__frame { background: var(--lav); }
.board__frame svg { width: 46%; height: auto; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.board__cap { font-family: var(--display); font-size: 2.3cqw; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

.deck__slide, .deck__chart, .board { transition: transform .3s ease; }
.feat:hover .deck__slide:not(.deck__slide--back) { transform: rotate(-2deg) translateY(-2%); }
.feat:hover .deck__chart { transform: rotate(1deg) translateY(-3%); }
.feat:hover .board { transform: rotate(-1deg); }

/* "Download résumé" box beside the Résumé heading */
.resume-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; }
.resume-dl {
  gap: .85rem; padding: .7rem 1.4rem .7rem .7rem; border-radius: 18px;
  background: var(--lime); text-transform: none; letter-spacing: 0;
}
.resume-dl__icon {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  background: var(--ink); color: var(--lime); border-radius: 12px;
}
.resume-dl__icon svg { width: 22px; height: 22px; }
.resume-dl__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.resume-dl__text b { font-weight: 400; font-size: 1rem; letter-spacing: .03em; text-transform: uppercase; }
.resume-dl__text small { font-family: var(--serif); font-style: italic; font-size: .9rem; margin-top: .15rem; }

.carousel__count {
  align-self: center; min-width: 3.4em; text-align: center;
  font-family: var(--display); font-size: .78rem; letter-spacing: .08em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}

/* Designed covers for strip items that have no image (decks). */
.feat__cover {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  gap: .4rem; padding: 1.4rem;
  background-image: radial-gradient(rgba(20,20,20,.14) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}
.feat__cover--lav   { background-color: var(--lav); }
.feat__cover--mint  { background-color: var(--mint); }
.feat__cover--peach { background-color: var(--peach); }
.feat__sticker {
  position: absolute; top: 1.2rem; right: 1.2rem; width: 30%; height: auto; aspect-ratio: 1;
  overflow: visible; filter: drop-shadow(2px 3px 2px rgba(20,20,20,.25)); transform: rotate(10deg);
  transition: transform .3s ease;
}
.feat:hover .feat__sticker { transform: rotate(-6deg) scale(1.06); }

/* ---------- Snippets: copy carousel (Home) ------------------------------- */
.snips { padding-bottom: 0; }
.snip {
  position: relative; margin: 0; height: 100%;
  display: flex; flex-direction: column; gap: 1rem;
  min-height: 300px; padding: 3.4rem 1.5rem 1.4rem;
  border: var(--stroke) solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); background: var(--paper);
}
.snips__track > li:nth-child(5n+1) .snip { background: var(--lime); }
.snips__track > li:nth-child(5n+2) .snip { background: var(--mint); }
.snips__track > li:nth-child(5n+3) .snip { background: var(--lav); }
.snips__track > li:nth-child(5n+4) .snip { background: var(--peach); }
.snips__track > li:nth-child(5n+5) .snip { background: var(--paper); }
/* Each card wears a little sticker illustration on its top-right corner;
   the track gets extra top padding so the overhang isn't clipped. */
.snips__track { padding-top: 2.4rem; }
.snip__art {
  position: absolute; top: -2.1rem; right: .7rem; z-index: 2;
  width: 86px; height: 86px; overflow: visible;
  filter: drop-shadow(2px 3px 2px rgba(20,20,20,.25));
  transform: rotate(8deg); transition: transform .3s ease;
}
.snips__track > li:nth-child(even) .snip__art { transform: rotate(-8deg); }
.snip:hover .snip__art { transform: rotate(-4deg) scale(1.08); }
@media (max-width: 560px) { .snip__art { width: 72px; height: 72px; top: -1.8rem; } .snip { padding-top: 3rem; } }
.snip__mark {
  position: absolute; top: -.35rem; left: 1.1rem;
  font-family: var(--display); font-size: 5rem; line-height: 1; color: var(--pink);
  -webkit-text-stroke: 2px var(--ink);
}
.snip__quote {
  margin: 0; flex: 1;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.3; color: var(--ink);
  text-wrap: balance;
}
.snip__quote--ar { font-family: var(--arabic); font-style: normal; font-weight: 600; font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.65; text-align: right; }
.snip__trans { margin: -.4rem 0 0; font-size: .98rem; font-style: italic; color: var(--ink-soft); }
.snip__foot {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem;
  padding-top: .9rem; border-top: 2px dashed rgba(20,20,20,.28);
}
.snip__client { font-family: var(--display); font-size: 1rem; }
.snip__kind { font-size: .9rem; font-style: italic; color: var(--ink-soft); }
.snip__link {
  flex-basis: 100%; margin-top: .35rem;
  font-family: var(--display); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--pink); align-self: flex-start;
  width: max-content; padding-bottom: 2px;
}
.snip__link:hover { color: var(--pink-text); }

/* ---------- 7. Hello / about -------------------------------------------- */
.hello__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 880px) { .hello__grid { grid-template-columns: 1fr; } }

.portrait {
  position: relative;
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 14px 14px 58px;
  transform: rotate(-2deg);
  max-width: 380px;
  margin-inline: auto;
}
.portrait__frame {
  aspect-ratio: 4 / 4.6;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background:
    radial-gradient(circle at 50% 24%, var(--mint), transparent 58%),
    linear-gradient(170deg, var(--lav), var(--peach));
  display: grid; place-items: center;
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait__frame svg { width: 88%; height: auto; }
.portrait__caption {
  position: absolute; left: 0; right: 0; bottom: 14px;
  text-align: center;
  font-family: var(--script);
  color: var(--pink);
  font-size: 1.5rem;
}

/* ---------- 8. Stats ----------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(178px, 100%), 1fr));
  gap: var(--gap);
}
.stat {
  position: relative;
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem 1.35rem;
  text-align: center;
}
.stat:nth-child(4n+1) { background: var(--lime);  transform: rotate(-1.4deg); }
.stat:nth-child(4n+2) { background: var(--mint);  transform: rotate(1.1deg); }
.stat:nth-child(4n+3) { background: var(--lav);   transform: rotate(-.8deg); }
.stat:nth-child(4n+4) { background: var(--peach); transform: rotate(1.5deg); }
.stat__num {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.stat__label {
  margin-top: .5rem;
  font-size: .84rem; line-height: 1.35;
  font-family: var(--display);
  letter-spacing: .05em; text-transform: uppercase;
}

/* ---------- 9. Résumé ---------------------------------------------------- */
.resume__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: start;
}
@media (max-width: 940px) { .resume__grid { grid-template-columns: 1fr; } }

.block-label {
  font-family: var(--display);
  font-size: .95rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pink-text);
  margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: .6rem;
}
.block-label svg { width: 18px; height: 18px; color: var(--pink); flex: none; }

/* Experience timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.9rem; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: .55rem; bottom: .55rem;
  width: 3px; background: var(--ink); border-radius: 3px;
}
.job { position: relative; padding-bottom: 1.9rem; }
.job:last-child { padding-bottom: 0; }
.job::before {
  content: ""; position: absolute; left: calc(-1.9rem + 1px); top: .42rem;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--lime); border: 2.5px solid var(--ink);
}
.job--now::before { background: var(--pink); }
.job--now::after {
  content: ""; position: absolute; left: calc(-1.9rem - 5px); top: calc(.42rem - 6px);
  width: 27px; height: 27px; border-radius: 50%;
  border: 2.5px dashed var(--pink);
  animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .job--now::after { animation: none; } }

.job__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem;
}
.job__co {
  font-family: var(--display);
  font-size: 1.16rem; letter-spacing: -.01em;
}
.job__role { font-size: 1.02rem; font-style: italic; color: var(--ink-soft); }
.job__date {
  font-family: var(--display);
  font-size: .68rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted);
}
.job__date--now { color: var(--pink-text); }
.job ul { margin: .5rem 0 0; padding-left: 1.05rem; }
.job li { margin-bottom: .18rem; }
.job li::marker { color: var(--pink); }
.more--timeline { margin: 1.5rem 0 0 1.9rem; }

/* Side panels */
.panel {
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem;
  margin-bottom: var(--gap);
  position: relative;
}
.panel--lav  { background: var(--lav); }
.panel--mint { background: var(--mint); }
.panel:last-child { margin-bottom: 0; }

.lang { margin-bottom: 1rem; }
.lang:last-child { margin-bottom: 0; }
.lang__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin-bottom: .35rem;
}
.lang__name { font-family: var(--display); font-size: .92rem; }
.lang__level { font-size: .88rem; font-style: italic; color: var(--ink-soft); }
.lang__bar {
  height: 13px; border: 2.5px solid var(--ink); border-radius: 999px;
  background: var(--paper); overflow: hidden;
}
.lang__fill {
  height: 100%;
  background: repeating-linear-gradient(45deg, var(--pink) 0 7px, #FF63BE 7px 14px);
  width: var(--w, 100%);
  border-radius: 999px 0 0 999px;
}

.pills { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.pills li {
  font-family: var(--display);
  font-size: .7rem; letter-spacing: .05em; text-transform: uppercase;
  background: var(--paper);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: .4rem .72rem;
  box-shadow: 2px 2px 0 var(--ink);
}
.panel--lav .pills li:nth-child(3n+1) { background: var(--lime); }
.panel--lav .pills li:nth-child(3n+2) { background: var(--mint); }

.certs { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.certs li { display: flex; gap: .65rem; align-items: flex-start; font-size: .97rem; line-height: 1.4; }
.certs svg { width: 15px; height: 15px; color: var(--pink); flex: none; margin-top: .28em; }
.certs b { font-family: var(--display); font-weight: 400; font-size: .95rem; }
.certs em { color: var(--muted); font-size: .87rem; font-style: normal; display: block; }

/* ---------- 10. Insights ------------------------------------------------- */
.insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: var(--gap);
}
.insight {
  position: relative;
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem 1.5rem 1.6rem;
  transition: transform .2s cubic-bezier(.2,.9,.3,1.2), box-shadow .2s;
}
.insight:hover { transform: translate(-3px, -4px) rotate(-.6deg); box-shadow: 8px 10px 0 var(--ink); }
.insight__n {
  position: absolute; top: -18px; left: 18px;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--pink); color: #fff;
  border: var(--stroke) solid var(--ink); border-radius: 50%;
  font-family: var(--display); font-size: .95rem;
  box-shadow: 2px 3px 0 var(--ink);
}
.insight:nth-child(3n+2) .insight__n { background: var(--lime); color: var(--ink); }
.insight:nth-child(3n+3) .insight__n { background: var(--mint); color: var(--ink); }
.insight h3 { font-size: 1.16rem; margin-bottom: .6rem; line-height: 1.15; }
.insight p { font-size: .99rem; color: var(--ink-soft); }
.insight__proof {
  margin-top: .9rem; padding-top: .8rem;
  border-top: 2px dashed rgba(20,20,20,.2);
  font-size: .82rem; color: var(--muted);
  font-family: var(--display); letter-spacing: .045em; text-transform: uppercase;
  line-height: 1.4;
}

/* ---------- 11. Work ----------------------------------------------------- */
.filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filter {
  font-family: var(--display);
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .6rem 1.05rem;
  border: var(--stroke) solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.filter:hover { transform: translate(-1px,-2px); box-shadow: 4px 5px 0 var(--ink); }
.filter[aria-pressed="true"] { background: var(--pink); color: #fff; }

.work__list { display: grid; gap: clamp(2rem, 4vw, 3rem); }

.client {
  position: relative;
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.client[hidden] { display: none; }
.client__head {
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.1rem;
  padding-bottom: 1.15rem; margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--ink);
}
.client__name {
  font-size: clamp(1.35rem, 3.2vw, 2.05rem);
  text-transform: uppercase;
  margin-right: auto;
}
.client__what {
  font-family: var(--serif); font-style: italic;
  font-size: 1.02rem; color: var(--muted);
  text-transform: none; letter-spacing: 0;
  display: block; margin-top: .2rem;
  font-weight: 400;
}

/* auto-fill (not auto-fit) so a client with one or two samples keeps card-width
   columns instead of stretching a single card across the whole row. */
.samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(268px, 100%), 1fr));
  gap: var(--gap); align-items: start; }
.sample {
  position: relative;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.2rem 1.2rem;
  display: flex; flex-direction: column;
}
.sample:nth-child(4n+2) { background: #FEFCF4; }
.sample:nth-child(4n+3) { background: #F5FBFA; }
.sample:nth-child(4n+4) { background: #FBF6FD; }
.sample[hidden] { display: none; }
.sample__kind {
  position: absolute; top: -11px; left: 14px;
  font-family: var(--display);
  font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--ink); color: var(--lime);
  padding: .28rem .6rem; border-radius: 999px;
}
.sample__kind--ar { background: var(--pink); color: #fff; }
.sample p { font-size: 1rem; line-height: 1.55; }
.sample .ar {
  font-family: var(--arabic);
  direction: rtl; text-align: right;
  font-size: 1.02rem; line-height: 1.95;
}
.sample__rule {
  height: 0; border: 0; border-top: 2px dashed rgba(20,20,20,.22);
  margin: .95rem 0;
}
.sample__tags {
  margin-top: .35rem; padding-top: .85rem;
  font-family: var(--display);
  font-size: .68rem; letter-spacing: .03em;
  color: var(--pink-text);
  word-break: break-word;
}
.sample__tags.ar { direction: rtl; text-align: right; font-family: var(--arabic); font-size: .78rem; }
.sample__link {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: .7rem;
  font-family: var(--display); font-size: .66rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--pink); padding-bottom: 2px;
  align-self: flex-start;
}
.sample__link:hover { color: var(--pink-text); }
.sample__link svg { width: .85em; height: .85em; }

.more {
  margin-top: 1.5rem;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display);
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--lime); color: var(--ink);
  border: var(--stroke) solid var(--ink); border-radius: 999px;
  padding: .6rem 1.15rem; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.more:hover { transform: translate(-1px,-2px); box-shadow: 4px 5px 0 var(--ink); }
.more svg { width: .9em; height: .9em; transition: transform .2s; }
.more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Design thumbnails — each opens in the lightbox viewer. */
.sample__media { margin: .3rem 0 1rem; }
.sample__media--pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; align-items: start; }
.zoom {
  display: block; width: 100%; padding: 0;
  border: 2px solid var(--ink); border-radius: 9px;
  background: #fff; overflow: hidden; cursor: zoom-in;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .18s cubic-bezier(.2,.9,.3,1.2), box-shadow .18s;
}
.zoom img { width: 100%; height: auto; display: block; }
.zoom:hover, .zoom:focus-visible { transform: translate(-1px, -2px) rotate(-.6deg); box-shadow: 4px 5px 0 var(--ink); }
/* Product shots are small studio photos: show them whole on white. */
.sample__media--product .zoom { padding: .6rem; }
.sample__media--product img { max-height: 240px; width: auto; max-width: 100%; margin-inline: auto; }

/* Vertical video frames on the Halan cards — each one opens its video. */
.stills { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: .4rem; margin: .35rem 0 0; }
.video {
  position: relative; display: block; aspect-ratio: 9 / 16;
  border: 2px solid var(--ink); border-radius: 7px; overflow: hidden;
  background: var(--ink);
  transition: transform .18s cubic-bezier(.2,.9,.3,1.2), box-shadow .18s;
}
.video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video:hover, .video:focus-visible { transform: translate(-1px, -2px); box-shadow: 2px 3px 0 var(--ink); }
.video__play {
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 50%; border: 2px solid var(--ink); background: var(--pink);
  box-shadow: 1px 2px 0 var(--ink);
}
.video__play::after {
  content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}
.video:hover .video__play { background: var(--lime); }
.video:hover .video__play::after { border-left-color: var(--ink); }
/* Videos whose deck thumbnail was a blank frame get a designed tile instead. */
.video--blank {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,43,166,.35), transparent 55%),
    radial-gradient(circle at 75% 85%, rgba(242,230,59,.25), transparent 50%),
    var(--ink);
}
.video__num {
  position: absolute; left: .45rem; top: .35rem;
  font-family: var(--display); font-size: .7rem; color: var(--lime);
}
/* Play-button links for videos that have no thumbnail on the page. */
.watch {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: .7rem; align-self: flex-start;
  padding: .32rem .85rem .32rem .32rem;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink); text-decoration: none;
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--display); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase;
  transition: transform .16s cubic-bezier(.2,.9,.3,1.2), box-shadow .16s;
}
.watch:hover, .watch:focus-visible { color: var(--ink); transform: translate(-1px, -2px); box-shadow: 3px 4px 0 var(--ink); }
.watch .video__play { position: relative; left: auto; top: auto; transform: none; flex: none; width: 28px; height: 28px; box-shadow: none; }
.watch .video__play::after { border-width: 6px 0 6px 9px; }
.watch:hover .video__play { background: var(--lime); }
.watch:hover .video__play::after { border-left-color: var(--ink); }
.watch > svg { width: .8em; height: .8em; flex: none; }
.watch-set { display: grid; grid-template-columns: 1fr; gap: .45rem; margin-top: .4rem; }
.watch-set .watch { margin-top: 0; }

.project .stills__hint {
  margin: .4rem 0 0;
  font-family: var(--display); font-size: .6rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}

/* Lightbox */
.lightbox {
  padding: 0; border: var(--stroke) solid var(--ink); border-radius: 20px;
  background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow-lg);
  width: min(94vw, 980px); max-height: 94vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(20, 20, 20, .8); }
.lightbox__figure { margin: 0; padding: clamp(.8rem, 2vw, 1.2rem) clamp(.8rem, 2vw, 1.2rem) .4rem; }
.lightbox__img {
  display: block; margin-inline: auto;
  max-width: 100%; max-height: calc(94vh - 9rem); width: auto; height: auto;
  border-radius: 10px; border: 2px solid var(--ink); background: #fff;
}
.lightbox__caption { margin-top: .75rem; font-size: .98rem; color: var(--ink-soft); text-align: center; text-wrap: balance; }
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .3rem clamp(.8rem, 2vw, 1.2rem) clamp(.8rem, 2vw, 1.1rem);
}
.lightbox__btn, .lightbox__close {
  font-family: var(--display); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  border: var(--stroke) solid var(--ink); border-radius: 999px; cursor: pointer;
  background: var(--lime); color: var(--ink); box-shadow: var(--shadow-sm);
  padding: .55rem 1rem;
}
.lightbox__btn[disabled] { opacity: .35; cursor: default; box-shadow: none; }
.lightbox__count { font-family: var(--display); font-size: .72rem; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.lightbox__close {
  position: absolute; top: -16px; right: -16px;
  width: 42px; height: 42px; padding: 0; font-size: 1.4rem; line-height: 1;
  background: var(--pink); color: #fff;
}
@media (max-width: 520px) { .lightbox__close { top: 6px; right: 6px; } }

/* Halan project cards get a slightly different treatment */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr));
  gap: var(--gap); align-items: start; }
.project {
  border: 2px solid var(--ink); border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.2rem;
  background: var(--cream);
  display: flex; flex-direction: column; gap: .5rem;
}
.project:nth-child(3n+1) { background: #FEFCF4; }
.project:nth-child(3n+2) { background: #F5FBFA; }
.project:nth-child(3n+3) { background: #FBF6FD; }
/* `display: flex` above would otherwise defeat the collapse's hidden attribute. */
.project[hidden] { display: none; }
.project h4 { font-size: 1.02rem; line-height: 1.2; }
.project p { font-size: .95rem; color: var(--ink-soft); }
/* Qualified so `.project p` above doesn't override the label size. */
.project .project__role {
  margin-top: .35rem;
  font-family: var(--display); font-size: .64rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--pink-text);
}

.work__empty {
  text-align: center; padding: 3rem 1rem;
  font-family: var(--display); letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.work__empty[hidden] { display: none; }

/* Work view header: intro copy beside a photo box */
.work-head {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.work-head .section-head { margin-bottom: 0; }
@media (max-width: 820px) { .work-head { grid-template-columns: 1fr; } .work-head .photo-box { max-width: min(260px, calc(100% - 48px)); } }

.photo-box {
  position: relative; margin: 0 auto; width: 100%; max-width: 320px;
  background: var(--paper);
  border: var(--stroke) solid var(--ink); border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 12px 12px 52px;
  transform: rotate(2.2deg);
}
.photo-box__frame {
  aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--lav);
}
.photo-box__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-box__caption {
  position: absolute; left: 0; right: 0; bottom: 12px; text-align: center;
  font-family: var(--script); color: var(--pink); font-size: 1.45rem;
}

/* ---------- 12. Contact -------------------------------------------------- */
.contact { position: relative; }
.contact__card {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  border: var(--stroke) solid var(--ink);
  box-shadow: var(--shadow-lg);
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  overflow: hidden;
}
.contact__card::before {
  content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 20%, var(--pink) 0 2px, transparent 2px),
    radial-gradient(circle at 68% 74%, var(--lime) 0 2px, transparent 2px);
  background-size: 34px 34px, 44px 44px;
}
.contact__card > *:not(.sticker) { position: relative; z-index: 2; }
.contact h2 { color: var(--cream); font-size: clamp(2.4rem, 8vw, 5.5rem); }
.contact h2 em { font-style: normal; color: var(--lime); display: block; }
.contact__script { font-family: var(--script); color: var(--pink); font-size: clamp(1.6rem, 4.5vw, 2.75rem); }
.contact__mail {
  display: inline-block; margin-top: .4rem;
  font-family: var(--display);
  font-size: clamp(.95rem, 2.7vw, 1.65rem);
  color: var(--lime); text-decoration: none;
  border-bottom: 3px solid var(--pink);
  word-break: break-all;
}
.contact__mail:hover { color: #fff; }
.contact__actions {
  margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
}
.contact__actions .btn { box-shadow: 4px 5px 0 var(--pink); }
.contact__actions .btn:hover { box-shadow: 6px 8px 0 var(--pink); }

.copy-flash {
  display: block; margin-top: .9rem; min-height: 1.2em;
  font-family: var(--display); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--mint);
}

.footer {
  padding-block: 2.5rem 3rem;
  text-align: center;
  font-size: .88rem; color: var(--muted);
}
.footer a { color: var(--pink-text); }

/* ---------- Let's work view --------------------------------------------- */
.lets__grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
@media (max-width: 900px) { .lets__grid { grid-template-columns: 1fr; } }

.lets__h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-bottom: .9rem; }
.lets__pitch > p { font-size: clamp(1.04rem, 1.4vw, 1.14rem); color: var(--ink-soft); max-width: 62ch; }

.perks {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: .85rem;
}
.perk {
  display: flex; gap: .85rem; align-items: flex-start;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 14px;
  box-shadow: var(--shadow-sm); padding: 1rem 1rem 1.05rem;
  transition: transform .18s cubic-bezier(.2,.9,.3,1.2), box-shadow .18s;
}
.perk:nth-child(4n+1) { transform: rotate(-.8deg); }
.perk:nth-child(4n+2) { transform: rotate(.6deg); }
.perk:nth-child(4n+3) { transform: rotate(.4deg); }
.perk:nth-child(4n+4) { transform: rotate(-.5deg); }
.perk:hover { transform: translate(-2px, -3px) rotate(0); box-shadow: 4px 5px 0 var(--ink); }
.perk__icon { width: 42px; height: 42px; flex: none; overflow: visible; filter: drop-shadow(1px 2px 1px rgba(20,20,20,.22)); }
.perk b { display: block; font-family: var(--display); font-weight: 400; font-size: .98rem; margin-bottom: .2rem; }
.perk span { font-size: .96rem; line-height: 1.45; color: var(--ink-soft); }

/* The contact card, reworked as a side panel */
.lets__card {
  text-align: left; overflow: visible;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.4rem, 3.5vw, 2.25rem);
}
.lets__card::before { border-radius: inherit; }
.lets__card .contact__script { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.lets__card .contact__mail { font-size: clamp(.95rem, 2.1vw, 1.3rem); }
.lets__card .contact__actions { justify-content: flex-start; margin-top: 1.6rem; }
.lets__card .copy-flash { text-align: left; }
.lets__info { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .65rem; }
.lets__info li { display: flex; align-items: center; gap: .75rem; }
.lets__info .ico {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border-radius: 9px; background: var(--lime); color: var(--ink);
}
.lets__info li:nth-child(2) .ico { background: var(--mint); }
.lets__info li:nth-child(3) .ico { background: var(--lav); }
.lets__info .ico svg { width: 17px; height: 17px; }
.lets__info a, .lets__info span { color: var(--cream); overflow-wrap: anywhere; }
.lets__info a { text-decoration-color: var(--pink); }
.lets__info a:hover { color: var(--lime); }

.lets__back { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: clamp(2.5rem, 6vw, 4rem); }

/* Banner that closes the Profile and Work views */
.cta-band { padding-block: 0 clamp(3rem, 8vw, 5.5rem); }
.cta-band__link {
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  text-decoration: none; color: var(--ink); text-align: center;
  background: var(--lime);
  border: var(--stroke) solid var(--ink); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem) 1.25rem;
  transition: transform .2s cubic-bezier(.2,.9,.3,1.2), box-shadow .2s, background .2s;
}
.cta-band__link:hover, .cta-band__link:focus-visible {
  color: var(--ink); background: var(--mint);
  transform: translate(-3px, -4px); box-shadow: 10px 12px 0 var(--ink);
}
/* Profile's banner points at the work: pink, tilted the other way. */
.cta-band__link--proof { background: var(--pink); color: #fff; }
.cta-band__link--proof .cta-band__kicker { color: var(--ink); }
.cta-band__link--proof:hover, .cta-band__link--proof:focus-visible { color: var(--ink); background: var(--lime); }
.cta-band__link--proof:hover .cta-band__kicker, .cta-band__link--proof:focus-visible .cta-band__kicker { color: var(--pink-text); }
.cta-band__kicker { font-family: var(--script); color: var(--pink-text); font-size: clamp(1.3rem, 3vw, 1.9rem); }
.cta-band__text { font-family: var(--display); font-size: clamp(1.7rem, 5.2vw, 3.4rem); line-height: 1; letter-spacing: -.02em; }

/* ---------- 13. Reveal on scroll ----------------------------------------
   Content is visible by default. JS arms only the sections that start below
   the fold, so the first painted frame — and any thumbnail of it — is never
   a page of blank boxes waiting on an observer. */
.reveal.is-armed { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal.is-armed { opacity: 1; transform: none; transition: none; }
}

/* ---------- 14. Print ---------------------------------------------------- */
@media print {
  .nav, .ribbon, .filters, .more, .contact__actions, .sticker, .tape, .lightbox, .cta-band, .lets__back { display: none !important; }
  body { background: #fff; }
  body::before { display: none; }
  .card, .client, .panel, .sample, .insight, .stat { box-shadow: none; break-inside: avoid; }
  .banner { box-shadow: none; min-height: auto; }
  .job[hidden] { display: block !important; }  /* print the full résumé */
  .more--timeline { display: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .7em; }
}


/* ---------- 15. Small screens: thin out the hero collage --------------- */

@media (max-width: 760px) {
  .banner { min-height: 0; padding-inline: 1.15rem; }
  .hero__word { font-size: clamp(3rem, 15.5vw, 5rem); }
  /* Badges and mid-canvas stickers collide with the type at this width. */
  .banner .sticker--sm-hide { display: none; }
  .tape { width: 84px !important; height: 24px; }
}

@media (max-width: 520px) {
  .banner { border-radius: 20px; }
  .hero__roles { gap: .35rem; }
  .tag { font-size: .62rem; padding: .36rem .62rem; }
  .portrait { transform: none; }
}
