/* Alex Fleysher, portfolio. White + pink, taken from the "Alex is Design." logo. */
:root {
  --bg: #ffffff;
  --tint: #fff3fc;
  --pink: #ffaef0;
  --pink-soft: #ffd6f6;
  --magenta: #ee00b2;
  --magenta-ink: #c4008f;
  --magenta-btn: #d9009f; /* white text 4.9:1 */
  --ink: #2a0b22;
  --muted: #6d5367;
  --line: #f3dcec;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-text: "Poppins", system-ui, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --r-lg: 24px;
  --r-md: 16px;
  --nav-h: 72px;
  /* spacing rhythm: one step between sections, a smaller step inside a story */
  --space-section: clamp(56px, 5.6vw, 80px);
  --space-group: clamp(32px, 3.4vw, 48px);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--pink) var(--bg); accent-color: var(--magenta); caret-color: var(--magenta); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--pink); color: var(--ink); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display); font-weight: 800;
    letter-spacing: -0.025em; line-height: 1.02;
  font-size: clamp(40px, 6.2vw, 92px); text-wrap: balance;
}
.display--md { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; }
.hl { color: var(--magenta-btn); }
.hl-is { color: #fff; -webkit-text-stroke: 0; background: var(--magenta-btn); padding: 0 .14em .04em; border-radius: .22em; display: inline-block; line-height: .95; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--ink); }
.section-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.02em; line-height: 1.1; }

/* ---------- buttons ---------- */
.btn {
  --bg-b: var(--ink); --fg-b: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--bg-b); color: var(--fg-b); border: 1px solid transparent;
  font: 500 16px/1 var(--font-text); white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--pink { --bg-b: var(--magenta-btn); --fg-b: #fff; font-weight: 600; }
.btn--ink { --bg-b: var(--ink); --fg-b: #fff; }
.btn--ghost { --bg-b: transparent; --fg-b: var(--ink); border-color: color-mix(in oklab, var(--ink) 18%, transparent); }
.i-arrow, .i-back { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row--center { justify-content: center; }

.u-link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease-out); padding-bottom: 2px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  background: rgb(255 255 255 / .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__bar { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; transition: transform .5s var(--ease-out); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s; }
.nav__link.is-current { color: var(--ink); }
.nav__actions { display: flex; gap: 8px; }

main { padding-top: var(--nav-h); }

/* ---------- hero (home) ---------- */
/* The logo's own pink is the ground; the work drifts behind, the illustration floats in front. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: calc(100svh - var(--nav-h)); min-height: 620px;
  display: grid; place-items: center; background: var(--pink);
}
.mq { position: absolute; inset: 0; z-index: -2; }
.mq__inner { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; padding-inline: 16px; height: 100%; }
.mq__col { overflow: hidden; height: 100%; }
.mq__track { display: flex; flex-direction: column; will-change: transform; }
/* margin instead of gap, so each copy is exactly a third of the track */
.tile { border-radius: 14px; overflow: hidden; background: var(--tint); flex: none; margin-bottom: 16px; box-shadow: 0 10px 30px -18px rgb(90 0 64 / .45); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
/* a pink pool in the middle so the girl, the logo and the words sit on the logo's ground */
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 32% 64% at 50% 56%, var(--pink) 0 58%, rgb(255 174 240 / .8) 72%, rgb(255 174 240 / 0) 100%),
    linear-gradient(to bottom, rgb(255 174 240 / .5), rgb(255 174 240 / 0) 18%, rgb(255 174 240 / 0) 82%, rgb(255 174 240 / .6));
}
.hero__text { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-block: 24px; }
.float { position: relative; width: clamp(170px, 31vh, 320px); margin-bottom: 4px; }
.float__body img { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgb(90 0 64 / .18)); }
.float__shadow { display: block; width: 62%; height: 14px; margin: 14px auto 0; border-radius: 50%; background: radial-gradient(closest-side, rgb(90 0 64 / .28), rgb(90 0 64 / 0)); }
/* sized to sit inside the pink pool of the veil */
.hero__plate { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__logo { width: clamp(140px, 13vw, 200px); line-height: 0; }
.hero__logo img { width: 100%; height: auto; }
/* white like the "is" in the logo; a soft magenta shadow keeps it legible on the pink */
.hero__tagline { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2vw, 32px); letter-spacing: -.015em; line-height: 1.1; color: #fff; text-shadow: 0 1px 2px rgb(140 0 100 / .4), 0 3px 12px rgb(160 0 115 / .22); text-wrap: balance; }
.hero__text .btn-row { margin-top: 4px; }

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

/* ---------- section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.02em; line-height: 1.1; }
.section-head p { color: var(--muted); max-width: 56ch; text-wrap: pretty; }

/* ---------- work grid ---------- */
/* A gallery that carries on from the hero: full width, tight gaps, square corners.
   Each cover is a whole 4:3 picture over a grey caption with the title and year, as on the original portfolio. */
.work { background: #fff; padding: var(--space-group) var(--gutter) var(--space-section); }
.work > .wrap { max-width: none; padding-inline: 0; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.4vw, 20px); max-width: 1240px; margin-inline: auto; }
.work-grid { row-gap: clamp(36px, 3.6vw, 56px); }
/* an odd last cover sits centred under the pair above it */
@media (min-width: 768px) {
  .work-grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - clamp(14px, 1.4vw, 20px) / 2); }
}
.card { display: flex; flex-direction: column; }
.card__media { overflow: hidden; aspect-ratio: 4 / 3; background: #eee; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
/* under each picture: "Name – category" and the tags, as before, in Poppins */
/* the title sits centred under the picture, the tags centred under the title */
.card__caption { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 18px 8px 0; }
.card__caption .pills { justify-content: center; }
.card__caption h3 { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.35; font-weight: 400; text-wrap: balance; }
.card__caption h3 b { font-weight: 700; }
.card__caption h3 span { color: var(--muted); }
.pills .pill--year { background: transparent; box-shadow: none; color: var(--muted); padding-inline: 4px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; padding-inline: 2px; }
.pill { font-size: 12px; line-height: 1; padding: 8px 12px; border-radius: 999px; background: #f6f3f5; color: var(--ink); box-shadow: 0 0 0 1px rgb(42 11 34 / .07); }
.pill--win { background: var(--magenta-btn); color: #fff; box-shadow: none; font-weight: 600; }

/* ---------- intro (home) ---------- */
.intro { background: var(--tint); padding-block: clamp(72px, 10vw, 128px); }
.intro__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.intro__photo { border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.intro__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.facts { width: 100%; max-width: 560px; }
.facts li { padding-block: 14px; border-top: 1px solid color-mix(in oklab, var(--magenta) 22%, transparent); color: var(--muted); }
.facts li:last-child { border-bottom: 1px solid color-mix(in oklab, var(--magenta) 22%, transparent); }
.facts b { font-weight: 600; color: var(--magenta-ink); margin-right: 4px; }

/* ---------- footer ---------- */
.footer { padding-block: var(--space-section) 32px; }
/* on home the "more about me" line belongs with the closing block, so it sits one group-step above it */
.page-home .footer { padding-top: var(--space-group); }
.footer__cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: clamp(32px, 4.5vw, 56px) var(--gutter); background: var(--pink); border-radius: clamp(20px, 2.4vw, 32px); max-width: 860px; margin-inline: auto; }
.footer__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.2vw, 44px); letter-spacing: -0.02em; line-height: 1.1; max-width: 22ch; text-wrap: balance; }
.footer__title span { color: #9e0076; }
.footer__cta .btn--ghost { border-color: color-mix(in oklab, var(--ink) 30%, transparent); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 32px; font-size: 15px; }
.brand--footer img { width: 32px; height: 32px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__links a { display: inline-flex; min-height: 44px; align-items: center; }
.footer__legal { color: var(--muted); font-size: 14px; }

/* ---------- project page ---------- */
/* Dark header band, then a wide cover and an info card, then one narrow centred story column,
   then the rest of the pictures at full width. Every picture is shown whole. */
.page-project main { background: #f6f3f5; }
.wide { width: 100%; max-width: calc(1240px + 2 * var(--gutter-wide)); margin-inline: auto; padding-inline: var(--gutter-wide); }
:root { --gutter-wide: var(--gutter); }
.p-head { background: var(--ink); color: #fff; padding-block: clamp(40px, 5vw, 64px) clamp(56px, 6vw, 88px); }
.p-head__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; position: relative; }
.p-head .back { position: absolute; left: var(--gutter); top: -8px; color: rgb(255 255 255 / .7); }
.p-head .back:hover { color: #fff; }
.p-head__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -.025em; max-width: 20ch; text-wrap: balance; }
.p-head__title em { font-style: normal; font-weight: 500; color: var(--pink); }
.p-head__lede { max-width: 56ch; color: rgb(255 255 255 / .74); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; }
.pills--dark { justify-content: center; }
.pills--dark .pill { background: rgb(255 255 255 / .08); color: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / .16); }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.back .i-back { transition: transform .25s var(--ease-out); }

.p-cover { margin-top: clamp(24px, 3vw, 40px); display: flex; justify-content: center; }
.p-top { max-width: calc(1240px + 2 * var(--gutter-wide)); } /* same edge as every image below */
.p-cover img { width: 100%; height: auto; border-radius: 24px; }
.p-info { margin-top: 16px; background: #fff; border-radius: 20px; padding: clamp(20px, 2.4vw, 32px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 32px; }
.p-info dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.p-info dd { font-size: 15px; line-height: 1.5; }

.p-body { max-width: calc(800px + 2 * var(--gutter)); margin: 0 auto; padding: var(--space-section) var(--gutter) var(--space-group); display: flex; flex-direction: column; gap: clamp(36px, 4vw, 56px); }
.p-text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.p-text h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }
.callout { font-size: 17px; line-height: 1.65; padding: 20px 24px; background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px rgb(42 11 34 / .06); }
.callout--pink { background: #ffe6f6; }
.p-list { display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.p-list li { position: relative; padding-left: 20px; }
.p-list li::before { content: ""; position: absolute; left: 2px; top: .66em; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.p-list--impact li { font-weight: 500; }
.p-list--impact li::before { background: var(--magenta-btn); }
/* pictures inside the story break out of the text column to the same width as the gallery, so every image on the page shares one edge */
.p-inline { align-self: center; width: min(1240px, calc(100vw - 2 * var(--gutter) - 16px)); }
@media (max-width: 767px) { .p-inline { width: 100%; } }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 4vw, 60px); color: var(--magenta-btn); line-height: 1; letter-spacing: -.02em; }
.stat span { font-size: 15px; color: var(--muted); }

/* the long overview sits in the same column as the gallery, same corners, same gap, so it reads as one continuous set */
.longshot { margin-bottom: clamp(12px, 1.4vw, 20px); }
.longshot__img { border-radius: 20px; overflow: hidden; }
.longshot img { width: 100%; }

.p-gallery { padding-bottom: 0; }
.gallery, .p-inline { display: flex; flex-direction: column; gap: clamp(12px, 1.4vw, 20px); }
.g-row { display: flex; gap: clamp(12px, 1.4vw, 20px); }
.g-row figure { min-width: 0; border-radius: 20px; overflow: hidden; }
.g-row img { width: 100%; height: auto; display: block; }

.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.page-project .logos { padding-top: var(--space-section); }
.logo-item { display: flex; flex-direction: column; gap: 18px; }
/* an odd last mark sits centred under the pair above it */
.logos > .logo-item:last-child:nth-child(even) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 16px); }
.logo-item--wide .logo-item__media { background: #fff; }
.logo-item--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.logo-item__media { border-radius: 20px; overflow: hidden; }
.logo-item__media img { width: 100%; height: auto; transition: transform .7s var(--ease-out); }
.logo-item__media.is-dark { background: #000; }
.logo-item--flip { grid-template-columns: 5fr 7fr; }
.logo-item--flip .logo-item__media { order: 2; }
.logo-item__text { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.logo-item__text h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.logo-item__text h2 span { font-weight: 400; color: var(--muted); font-size: 15px; margin-left: 6px; }
.logo-item__text p { color: var(--muted); max-width: 56ch; }
.logo-item--wide .logo-item__text p { font-size: 18px; color: var(--ink); }
.logo-item__text .u-link { font-weight: 500; color: var(--magenta-ink); display: inline-flex; min-height: 44px; align-items: center; }

.next { padding-top: var(--space-section); }
.next__link { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 32px; padding: clamp(24px, 3vw, 40px); background: #fff; border-radius: 24px; overflow: hidden; }
.next__label { grid-column: 1; font-size: 14px; font-weight: 500; color: var(--magenta-ink); }
.next__title { grid-column: 1; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.015em; }
.next__title b { font-weight: 600; }
.next__title em { font-family: var(--font-display); font-style: normal; font-weight: 500; color: var(--muted); }
.next__media { grid-column: 2; grid-row: 1 / span 2; width: clamp(140px, 22vw, 300px); aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; }
.next__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--ease-out); }

/* ---------- about page ---------- */
/* About: every block carries half the section step on each side, so content-to-content is always one step,
   and the tinted block keeps half a step of tint inside */
.a-hero { padding-block: var(--space-group) calc(var(--space-section) / 2); }
.a-hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.a-hero__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.a-hero__text > p:not(.lead):not(.eyebrow) { color: var(--muted); max-width: 60ch; }
.a-hero__text .btn-row { margin-top: 8px; }
.a-hero__photo { border-radius: var(--r-lg); overflow: hidden; }
.a-block { padding-block: calc(var(--space-section) / 2); }
.a-block:last-child { padding-bottom: 0; }
.a-block--tint:last-child { padding-bottom: calc(var(--space-section) / 2); }
.a-block--tint { background: var(--tint); }
.skills { margin-top: 24px; }
.skills li { display: grid; grid-template-columns: 4fr 8fr; gap: 8px 32px; align-items: baseline; padding-block: 22px; border-bottom: 1px solid var(--line); }
.skills h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.015em; line-height: 1.2; }
.skills p { color: var(--muted); max-width: 60ch; }
.exp { margin-top: 24px; }
.exp li { display: grid; grid-template-columns: 4fr 8fr; gap: 8px 32px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.exp__org { font-weight: 600; font-size: 18px; }
.exp h3 { font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.exp p { color: var(--muted); }
.tools { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.tools h3 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--magenta-ink); }
.tools ul { display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { padding: 8px 14px; border-radius: 999px; background: #fff; font-size: 15px; }

/* ---------- motion ---------- */

/* Hero marquee: constant motion is linear; columns alternate direction at different speeds. */
@keyframes mq-up { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -33.3333%, 0); } }
@keyframes mq-down { from { transform: translate3d(0, -33.3333%, 0); } to { transform: translate3d(0, 0, 0); } }

/* The girl floats: a slow sine-like bob with a hint of sway; her shadow breathes with her. */
@keyframes float { 0% { transform: translate3d(0, 0, 0) rotate(-1.2deg); } 100% { transform: translate3d(0, -18px, 0) rotate(1.2deg); } }
@keyframes float-shadow { 0% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(.78); opacity: .55; } }
@keyframes lift { from { opacity: 0; transform: translate3d(0, 48px, 0) scale(.96); } }
.float__body { animation: float 3.2s var(--ease-in-out) infinite alternate; transform-origin: 50% 80%; }
.float__shadow { animation: float-shadow 3.2s var(--ease-in-out) infinite alternate; }
.float[data-enter] { animation: lift 1100ms var(--ease-out) both; animation-delay: 200ms; }
.mq__col[data-dir="up"] .mq__track { animation: mq-up var(--dur) linear infinite; }
.mq__col[data-dir="down"] .mq__track { animation: mq-down var(--dur) linear infinite; }
.mq.is-off .mq__track { animation-play-state: paused; }

/* One authored load moment: the columns rise in with uneven delays, then the words. */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } }
@keyframes enter { from { opacity: 0; transform: translate3d(0, 12px, 0); filter: blur(6px); } }
.mq__col { animation: rise 900ms var(--ease-out) both; }
.mq__col:nth-child(1) { animation-delay: 40ms; }
.mq__col:nth-child(2) { animation-delay: 140ms; }
.mq__col:nth-child(3) { animation-delay: 0ms; }
.mq__col:nth-child(4) { animation-delay: 100ms; }
.mq__col:nth-child(5) { animation-delay: 180ms; }
.mq__col:nth-child(6) { animation-delay: 70ms; }
[data-enter] { animation: enter 800ms var(--ease-out) both; animation-delay: calc(240ms + var(--d, 0) * 70ms); }
.page-project [data-enter], .page-about [data-enter] { animation-delay: calc(var(--d, 0) * 60ms); }

/* Scroll reveal: content is visible without JS; .js hides it until it enters. */
html.js [data-reveal] { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js .work-grid > .card:nth-child(even) { transition-delay: 80ms; }
html.js .card[data-reveal] .card__media img { transform: scale(1.06); }
html.js .card[data-reveal].is-in .card__media img { transform: scale(1); transition: transform 1200ms var(--ease-out); }

/* Press feedback everywhere it can be pressed. */
.btn:active { transform: scale(.97); transition-duration: 100ms; }
.next__link:active { transform: scale(.99); }
.card__media, .next__link { transition: transform 300ms var(--ease-out); }
.i-arrow { transition: transform 250ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn--pink:hover { --bg-b: #bf008c; }
  .btn--ink:hover { --bg-b: #4a1a3e; }
  .btn--ghost:hover { --bg-b: var(--tint); border-color: color-mix(in oklab, var(--magenta) 35%, transparent); }
  .btn:hover .i-arrow { transform: translate(2px, -2px); }
  .nav__link:hover { color: var(--ink); background: var(--tint); }
  .brand:hover img { transform: rotate(-10deg) scale(1.04); }
  .u-link:hover { background-size: 100% 1px; }
  .back:hover { color: var(--ink); }
  .back:hover .i-back { transform: translateX(-3px); }


  html .card:hover .card__media img, html.js .card[data-reveal].is-in:hover .card__media img { transform: scale(1.03); transition: transform 700ms var(--ease-out); }
  .card__caption h3 { transition: color 200ms ease; }
  .card:hover .card__caption h3 { color: var(--magenta-ink); }

  .mq__col:hover .mq__track { animation-play-state: paused; }
  .tile img { transition: transform 600ms var(--ease-out); }
  .tile:hover img { transform: scale(1.04); }

  .logo-item:hover .logo-item__media img, .g-row figure:hover img { transform: scale(1.02); }
  .g-row img { transition: transform 700ms var(--ease-out); }
  .next__link:hover .next__media img { transform: scale(1.05); }
  .next__link:hover .next__title { color: var(--magenta-ink); }
  .next__title { transition: color 200ms ease; }
}

@media (prefers-reduced-motion: reduce) {
  .mq__track, .mq__col, .float__body, .float__shadow { animation: none !important; }
  [data-enter] { animation: fade 300ms ease both; }
  html.js [data-reveal] { transform: none; transition: opacity 300ms ease; }
  html.js .card[data-reveal] .card__media img { transform: none; }
  .card:hover .card__media, .tile:hover img, .brand:hover img { transform: none !important; }
}
@keyframes fade { from { opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .mq__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mq__col:nth-child(n+5) { display: none; }
  .p-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .nav__actions { display: none; }
  .nav__links { gap: 0; }
  .hero { min-height: 600px; }
  .hero__veil { background:
    radial-gradient(ellipse 66% 50% at 50% 66%, var(--pink) 0 50%, rgb(255 174 240 / .82) 68%, rgb(255 174 240 / 0) 100%),
    linear-gradient(to bottom, rgb(255 174 240 / .4), rgb(255 174 240 / 0) 14%, rgb(255 174 240 / 0) 86%, rgb(255 174 240 / .6)); }
  .float { width: clamp(150px, 31vh, 240px); }
  .hero__logo { width: min(130px, 36vw); }
  .hero__tagline { font-size: clamp(20px, 5.6vw, 23px); max-width: 12em; }
  .mq__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-inline: 10px; }
  .tile { margin-bottom: 10px; }
  .mq__col:nth-child(n+4) { display: none; }
  .tile { border-radius: 10px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid { gap: 36px; }
  .p-head .back { position: static; align-self: flex-start; }
  .skills li { grid-template-columns: 1fr; }
  .intro__grid, .a-hero__grid { grid-template-columns: 1fr; }
  .a-hero__photo { order: -1; width: 62%; max-width: 280px; }

  .p-info { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .callout, .p-list { font-size: 16px; }
  .g-row { flex-direction: column; }
  .g-row figure { flex: none !important; }
  .g-row--many { display: grid; grid-template-columns: 1fr 1fr; }
  .logos { grid-template-columns: 1fr; }
  .logo-item--wide { grid-template-columns: 1fr; }
  .logo-item--flip .logo-item__media { order: 0; }
  .next__link { grid-template-columns: 1fr; }
  .next__media { grid-column: 1; grid-row: auto; width: 100%; }
  .exp li { grid-template-columns: 1fr; }
  .footer__cta .btn-row { width: 100%; flex-direction: column; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}

/* ---------- marketing design: each client is a chapter ----------
   A caption band leads (name and one line on the left, three short columns on the right),
   then the pictures follow right under it across the same width. Tight inside a chapter, generous between. */
.m-sec { padding-top: var(--space-section); }

.m-sec__band { display: grid; grid-template-columns: 4fr 3fr 3fr 3fr; gap: 20px clamp(24px, 3vw, 48px); align-items: start; padding-bottom: clamp(20px, 2vw, 28px); margin-bottom: clamp(16px, 1.6vw, 24px); border-bottom: 1px solid rgb(42 11 34 / .12); }
.m-sec__head h2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.m-sec__head p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 34ch; }
.m-sec__col h3 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--magenta-ink); margin-bottom: 8px; }
.m-sec__col p, .m-sec__col li { font-size: 14px; line-height: 1.6; color: #4a3a45; }
.m-sec__col ul { display: flex; flex-direction: column; gap: 6px; }
.m-sec__col li { position: relative; padding-left: 14px; }
.m-sec__col li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--pink); }
.m-sec__col--impact li { color: var(--ink); font-weight: 500; }
.m-sec__col--impact li::before { background: var(--magenta-btn); }
.m-sec__stat { margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.m-sec__stat b { display: block; font-size: clamp(32px, 3vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--magenta-btn); margin-bottom: 4px; }
.gallery--flush, .gallery--flush .g-row { gap: 10px; }
.gallery--flush .g-row figure { border-radius: 0; }
@media (max-width: 1023px) {
  .m-sec__band { grid-template-columns: 1fr 1fr; }
  .m-sec__head { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .m-sec__band { grid-template-columns: 1fr; gap: 18px; }
}
/* ---------- home: a short line that leads to the About page ---------- */
.more-me { padding-block: 0; }
.more-me__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; text-align: center; }
.more-me h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
/* About: the tinted Experience block gets the same tint above and below its content */
.a-block.a-block--tint { padding-block: var(--space-group); }
/* project galleries: the pictures sit edge to edge as one block, no white gaps; only the outer corners are rounded */
.page-project .p-gallery .gallery, .page-project .p-gallery .g-row { gap: 0; }
.page-project .p-gallery .gallery { border-radius: 20px; overflow: hidden; }
.page-project .p-gallery .g-row figure, .page-project .p-gallery .longshot__img { border-radius: 0; }
/* a picture row placed before the texts (Loquita's yellow logos): same width and corners as the gallery */
.p-lead { margin-top: 16px; gap: 0; border-radius: 20px; overflow: hidden; }
.p-lead .g-row { gap: 0; }
.p-lead .g-row figure { border-radius: 0; }
/* ---------- liquid glass (plain-CSS port of the LiquidButton component) ----------
   Every button and the navbar: a layered inner/outer shadow draws the glass rim, a layer under the content
   bends what is behind it with the #container-glass SVG filter (Chromium; other browsers keep a frosted blur).
   Each variant keeps its colour as a tint inside the glass. */
.glass-filter { position: absolute; width: 0; height: 0; overflow: hidden; }
.btn.btn--glass { position: relative; isolation: isolate; background: transparent; border: 0; font-weight: 600; color: var(--glass-ink, var(--ink));
  --glass-fill: rgb(255 255 255 / .2); transition: transform 300ms var(--ease-out), filter 200ms ease; }


.btn.btn--glass { --glass-fill: rgb(255 255 255 / .22); --glass-ink: var(--ink); }
.nav__bar .nav__link { color: var(--ink); }

.btn--glass > span { display: inline-flex; align-items: center; gap: 8px; }
.btn--glass::before, .nav__bar::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px; pointer-events: none;
  box-shadow: 0 0 6px rgba(0,0,0,.03), 0 2px 6px rgba(0,0,0,.08),
    inset 3px 3px .5px -3px rgba(0,0,0,.9), inset -3px -3px .5px -3px rgba(0,0,0,.85),
    inset 1px 1px 1px -.5px rgba(0,0,0,.6), inset -1px -1px 1px -.5px rgba(0,0,0,.6),
    inset 0 0 6px 6px rgba(0,0,0,.12), inset 0 0 2px 2px rgba(0,0,0,.06), 0 0 12px rgba(255,255,255,.15); }
.btn--glass::after, .nav__bar::after { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: 999px; overflow: hidden; pointer-events: none;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  backdrop-filter: blur(8px) saturate(1.4);
  backdrop-filter: url("#container-glass"); }
@media (hover: hover) and (pointer: fine) {
  .btn.btn--glass:hover { transform: scale(1.05); filter: brightness(1.06); }
}
.btn.btn--glass:active { transform: scale(.97); }

/* navbar: a floating glass pill */
.nav.nav { top: 12px; left: 0; right: 0; height: 60px; background: transparent; border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; }
.nav__bar { position: relative; isolation: isolate; pointer-events: auto; height: 60px;
  max-width: calc(1240px + 2 * var(--gutter)); width: calc(100% - 24px); margin-inline: auto; padding-inline: 12px 10px;
  --glass-fill: rgb(255 255 255 / .55); }
.nav__link:hover { background: rgb(255 255 255 / .5); }
:root { --nav-h: 84px; }
main { padding-top: 0; }
.page-home .hero { height: 100svh; min-height: 680px; }
.p-head { padding-top: calc(var(--nav-h) + clamp(32px, 4vw, 56px)); }
.a-hero { padding-top: calc(var(--nav-h) + var(--space-group)); }
@media (max-width: 767px) { .nav__bar { width: calc(100% - 16px); padding-inline: 8px 6px; } }
/* ---------- home: alternating project rows ----------
   One project per row; the cover takes ~60%, the text sits beside it, vertically centred; sides swap each row. */
.work .work-grid { display: flex; flex-direction: column; gap: var(--space-section); max-width: 1240px; margin-inline: auto; }
.card.card--row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; width: auto; justify-self: auto; }
.card.card--row.card--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.card--flip .card__media { order: 2; }
.work .work-grid > .card.card--row:last-child { width: auto; justify-self: auto; grid-column: auto; }
.card--row .card__media { border-radius: 20px; }
.card--row .card__caption { align-items: flex-start; text-align: left; padding: 0; gap: 14px; }
.card--row .card__caption .pills { justify-content: flex-start; }
.card--row .card__caption h3 { display: flex; flex-direction: column; gap: 4px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.02em; }
.card--row .card__caption h3 b { font-weight: 700; }
.card--row .card__caption h3 span { font-size: clamp(16px, 1.3vw, 19px); font-weight: 500; letter-spacing: 0; color: var(--muted); }
.card__num { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--magenta-ink); }
.card__lede { color: #4a3a45; max-width: 44ch; }
.card__more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--magenta-ink); }
@media (hover: hover) and (pointer: fine) {
  .card--row:hover .card__more .i-arrow { transform: translate(2px, -2px); }
}
@media (max-width: 899px) {
  .card.card--row { grid-template-columns: 1fr; gap: 20px; }
  .card.card--row.card--flip { grid-template-columns: 1fr; }
  .card--flip .card__media { order: 0; }
  .work .work-grid { gap: 56px; }
}
/* ---------- tags as soft liquid glass ----------
   Rounder and roomier than flat chips: a translucent fill, a frosted backdrop and the same soft glass rim
   as the hero button, so they read as glass beads rather than UI chips. The result tag stays solid pink, one step bigger. */
.pills { gap: 8px; }
.pill { position: relative; font-size: 12.5px; font-weight: 500; line-height: 1; padding: 10px 16px; border-radius: 999px;
  background: rgb(255 255 255 / .38); color: var(--ink);
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: 0 1px 4px rgba(42,11,34,.06),
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,.9), inset -1.5px -1.5px 1px -1px rgba(42,11,34,.25),
    inset 1px 1px 1px -.5px rgba(42,11,34,.18), inset -1px -1px 1px -.5px rgba(42,11,34,.18),
    inset 0 0 6px 3px rgba(42,11,34,.05); }
.pills .pill.pill--win { font-size: 13.5px; font-weight: 600; padding: 11px 18px; background: var(--magenta-btn); color: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 4px 12px -4px rgba(217,0,159,.45), inset 1px 1px 1px -.5px rgba(255,255,255,.55), inset -1px -1px 1px -.5px rgba(80,0,60,.4); }
.pills .pill.pill--year { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--muted); padding-inline: 4px; }
.pills--dark .pill { background: rgb(255 255 255 / .1); color: #fff;
  box-shadow: inset 1.5px 1.5px 1px -1px rgba(255,255,255,.6), inset -1px -1px 1px -.5px rgba(255,255,255,.35), inset 0 0 6px 3px rgba(255,255,255,.06); }

/* the one glass button in the hero carries white text, like the tagline above it */
/* the hero CV button: clear liquid glass, wider, dark text */
.hero .btn.btn--glass { --glass-ink: var(--ink); --glass-fill: rgb(255 255 255 / .3); text-shadow: none; padding-inline: 26px; }
/* ---------- footer: one pink block, edge to edge, the closing line and the links together ---------- */
.footer.footer { background: var(--pink); padding-block: var(--space-section) 28px; margin-top: var(--space-section); }
.page-home .footer.footer { margin-top: var(--space-group); }
.footer__cta.footer__cta { background: transparent; border-radius: 0; padding: 0; max-width: none; }
/* white on the logo pink keeps the look; a tight dark-magenta edge gives every letter a readable outline */
.footer__title { color: #fff; text-shadow: 0 0 1px #8a0063, 0 1px 1px #8a0063, 0 2px 3px rgb(120 0 86 / .55), 0 6px 20px rgb(160 0 115 / .35); }
.footer__title span { color: #9e0076; text-shadow: none; }
.footer__row { margin-top: var(--space-group); padding-top: 24px; border-top: 1px solid rgb(42 11 34 / .12); }
.footer__legal { color: #4a1a3e; }

/* ---------- About: intro stage + skills peek list ----------
   Stage layers are stacked; one carries .is-on. Changes are transitions (interruptible), not keyframes:
   ~320ms ease-out with a 3px blur to hide the crossfade; the "melt" from drawing to photo is slower (900ms)
   with a heavier blur, so the drawing seems to dissolve into the photograph. */
.a-hero__grid { grid-template-columns: 6fr 5fr; align-items: start; }
.a-hero__stage { position: sticky; top: calc(var(--nav-h) + 16px); }
.stage { position: relative; margin: 0; aspect-ratio: 720 / 964; isolation: isolate; }
.stage__layer { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; filter: blur(3px); transform: scale(1.015);
  transition: opacity 320ms var(--ease-out), filter 320ms var(--ease-out), transform 320ms var(--ease-out); pointer-events: none; }
.stage__draw { object-fit: contain; transform-origin: 50% 88%; }
.stage__pic { object-fit: contain; } /* the photo is a transparent cut-out, like the drawings */
.stage__layer.is-on { opacity: 1; filter: none; transform: none; }
/* the wave: only the hand moves, rocking from the wrist; the rest of her stays still */
.stage__wave > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stage__hand { transform-origin: 23.6% 63.5%; transition: transform 800ms var(--ease-in-out); }
@keyframes stage-wave { 0%, 100% { transform: rotate(0); } 18% { transform: rotate(-10deg); } 38% { transform: rotate(8deg); } 58% { transform: rotate(-9deg); } 78% { transform: rotate(6deg); } }
.stage__wave.is-on .stage__hand { animation: stage-wave 1500ms var(--ease-in-out) 300ms both; }
/* wave -> sit: one slow, soft crossfade while the hand travels on toward her cheek, so the pose flows instead of jumping */
.stage.is-settling .stage__layer { transition-duration: 850ms; transition-timing-function: var(--ease-in-out); }
.stage.is-settling .stage__draw:not(.is-on) { filter: blur(2px); transform: none; }
.stage.is-settling .stage__draw.is-on { transform: none; }
.stage.is-settling .stage__hand { transform: rotate(22deg); }
/* the melt */
.stage.is-melting .stage__layer { transition-duration: 1200ms; transition-timing-function: var(--ease-in-out); }
.stage.is-melting .stage__draw:not(.is-on) { filter: blur(14px); transform: scale(1.04); }
.stage.is-melting .stage__pic:not(.is-on) { filter: blur(14px); transform: scale(1.04); }
.stage__replay { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgb(255 255 255 / .75); color: var(--ink); opacity: 0; transition: opacity 200ms ease, transform 160ms var(--ease-out);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.stage__replay svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stage.is-done .stage__replay { opacity: 1; }
.stage__replay:active { transform: scale(.95); }

.peek { margin-top: var(--space-group); width: 100%; }
.peek__title { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -.015em; margin-bottom: 8px; }
.peek__list { border-top: 1px solid var(--line); }
.peek__list li { border-bottom: 1px solid var(--line); }
.peek__row { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6px 24px; align-items: baseline;
  width: 100%; padding: 18px 12px; border-radius: 12px; transition: background-color 200ms ease, color 200ms ease; }
.peek__name { font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; transition: color 200ms ease, transform 250ms var(--ease-out); }
.peek__line { color: var(--muted); font-size: 15px; line-height: 1.5; }
.peek__row:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
.peek__row.is-active { background: var(--tint); }
.peek__row.is-active .peek__name { color: var(--magenta-ink); transform: translateX(4px); }


@media (max-width: 767px) {
  .a-hero__grid { grid-template-columns: 1fr; }
  .a-hero__stage { position: static; order: -1; max-width: 340px; width: 80%; margin-inline: auto; }
  .peek__row { grid-template-columns: 1fr; padding: 14px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage__layer, .stage.is-melting .stage__layer { transition: opacity 200ms ease; filter: none !important; transform: none !important; animation: none !important; }
}
/* the waving hand may swing past the frame edge; never let it widen the page */
.a-hero { overflow-x: clip; }

/* event videos sit in the gallery exactly like pictures */
.g-row figure video { display: block; width: 100%; height: auto; background: #1a0716; }

/* a gallery split into blocks: the label and space set each block apart; inside a spaced block, pictures keep small gaps and their own corners */
.g-label { margin: var(--space-group) 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--magenta-ink); }
.g-label:empty { margin: var(--space-group) 0 0; }
.page-project .p-gallery .gallery.gallery--spaced { border-radius: 0; overflow: visible; }
.page-project .p-gallery .gallery--spaced .g-row { gap: clamp(8px, 1vw, 14px); }
.page-project .p-gallery .gallery--spaced .g-row figure { border-radius: 14px; }
.page-project .p-gallery .gallery--spaced .g-row figure:only-child { border-radius: 20px; }
@media (max-width: 767px) { .page-project .p-gallery .gallery--spaced .g-row { display: grid; grid-template-columns: 1fr 1fr; } }
/* project pages: the grey page ground runs below the Next project card, then the pink footer starts; no white strip, no card touching an edge */
.page-project .next { padding-bottom: var(--space-section); }
.page-project .footer.footer { margin-top: 0; }

/* navbar: wider and taller, with a denser frosted glass so the links read clearly over the moving work */
.nav.nav { top: 10px; height: 68px; }
.nav__bar { height: 68px; max-width: calc(1440px - 32px); width: calc(100% - 20px); padding-inline: 16px 12px; --glass-fill: rgb(255 255 255 / .78); }
.nav__bar::after { -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); }
.nav__bar .nav__link { font-weight: 600; }
:root { --nav-h: 90px; }

/* phone hero wall: every tile the same 4:5 shape, so the three columns line up in a calm, even grid */
@media (max-width: 767px) {
  .nav__bar { width: calc(100% - 16px); height: 60px; padding-inline: 10px 8px; }
  .nav.nav { height: 60px; }
  .tile { aspect-ratio: 4 / 5 !important; }
  .mq__inner { gap: 8px; padding-inline: 8px; }
  .tile { margin-bottom: 8px; border-radius: 12px; }
}
/* Project pages: images keep square corners, only the info card stays slightly rounded */
.page-project .p-cover img,
.page-project .p-lead,
.page-project .p-gallery .gallery,
.page-project .g-row figure,
.page-project .p-gallery .gallery--spaced .g-row figure,
.page-project .p-gallery .gallery--spaced .g-row figure:only-child,
.page-project .longshot__img,
.page-project .logo-item__media,
.page-project video { border-radius: 0 !important; }
.page-project .p-info { border-radius: 12px; }

/* Loquita long image: no baseline strip under it, so it joins the next picture */
.longshot__img { margin: 0; line-height: 0; }
.longshot img { display: block; }
/* Loquita: pictures butt together with no hairline seams on iPhone */
.page-loquita .p-gallery .gallery > * + *, .page-loquita .p-gallery .longshot + * { margin-top: -1px; }
.page-loquita .p-gallery .longshot { margin-bottom: 0; }
.page-loquita .p-gallery img { display: block; }
@media (max-width: 767px) {
  .page-loquita .g-row--many { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .page-loquita .g-row--many > * { grid-column: span 3; }
  .page-loquita .g-row--many > :nth-child(-n+3) { grid-column: span 2; }
}

/* ---------- Content creation ----------
   Motion thesis: the reels are the voice. One authored entrance (the reel wall rising out of the pink on load),
   then quiet feedback only: playback lines, a sound equaliser, sibling focus, and a viewer that grows out of the
   reel you tapped. Everything rests under reduced motion. */
:root { --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1); --ease-ui: cubic-bezier(0.23, 1, 0.32, 1); }
::selection { background: var(--pink); color: var(--ink); }

/* the reel wall: five brands playing at once */
.reelwall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); padding: clamp(16px, 2vw, 28px); background: var(--pink); }
.reelwall .reel { animation: wall-in 820ms var(--ease-out-expo) both; animation-delay: calc(180ms + var(--i) * 70ms); }
.reelwall.is-done .reel { animation: none; }
@keyframes wall-in { from { clip-path: inset(100% 0 0 0); transform: translateY(24px); } to { clip-path: inset(0 0 0 0); transform: none; } }

/* the brand names, running once across under the wall */
.bstrip { overflow: hidden; background: var(--ink); color: #fff; padding-block: 14px; }
.bstrip__track { display: flex; width: max-content; animation: bstrip 42s linear infinite; }
.bstrip.is-off .bstrip__track { animation-play-state: paused; }
.bstrip span { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-weight: 700; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -.01em; white-space: nowrap; }
.bstrip i { width: 9px; height: 9px; border-radius: 50%; background: var(--magenta); flex: none; }
@keyframes bstrip { to { transform: translateX(-50%); } }

/* one full-width band per brand; the name is the headline, the reels sit over its lower edge */
.brands { padding-bottom: 0; }
.cbrand { --gs: min(11vw, calc(170vw / var(--len)), 168px); padding-block: clamp(48px, 6vw, 96px); background: var(--bg, #fff); }
.cbrand--pink { background: var(--pink); }
.cbrand__giant { position: relative; z-index: 0; margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--gs); line-height: .86; letter-spacing: -.04em; color: var(--ink); white-space: nowrap; }
.cbrand__giant .dot { color: var(--magenta); }
.cbrand--pink .cbrand__giant .dot { color: #fff; }
.cbrand__body { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(24px, 3vw, 56px); align-items: start; margin-top: clamp(20px, 2vw, 32px); }
.cbrand__reels { margin-top: calc(var(--gs) * -0.62); }
.cbrand__text { display: grid; gap: 12px; padding-top: 4px; }
.cbrand__logo { width: 168px; padding: 12px 16px; background: #fff; box-shadow: 0 0 0 1px rgb(42 11 34 / .08); }
.cbrand__logo img { display: block; width: 100%; height: auto; }
.cbrand__sub { font-size: 15px; font-weight: 600; color: var(--magenta); }
.cbrand--pink .cbrand__sub { color: var(--ink); }
.cbrand__did { font-size: 16px; line-height: 1.6; color: var(--muted); }
.cbrand--pink .cbrand__did { color: rgb(42 11 34 / .82); }
.cbrand__text .u-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }

.cbrand__reels { display: grid; grid-template-columns: repeat(min(var(--n), 4), minmax(0, 1fr)); gap: 10px; }
.cbrand__reels[style*="--n:1"] { grid-template-columns: minmax(0, 280px); justify-content: end; }
.cbrand__reels[style*="--n:2"] { grid-template-columns: repeat(2, minmax(0, 280px)); justify-content: end; }

.reel { position: relative; margin: 0; aspect-ratio: 9 / 16; overflow: hidden; background: #2a0b22; box-shadow: 0 18px 40px -24px rgb(90 0 64 / .55); }
.reel--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.reel video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out-expo), opacity 220ms ease, filter 220ms ease; }
.reel__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: var(--magenta); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 260ms linear; pointer-events: none; }
.reel__open { position: absolute; inset: 0; z-index: 1; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.reel__open:focus-visible { outline: 3px solid var(--magenta); outline-offset: -3px; }
.reel__sound { position: absolute; right: 10px; bottom: 12px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; cursor: pointer;
  color: #fff; background: rgb(42 11 34 / .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform 140ms var(--ease-ui), background-color 200ms ease; }
.reel__sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.reel__sound .spk { fill: currentColor; stroke: none; }
.reel__sound .eq { display: none; gap: 2px; align-items: end; height: 14px; margin-left: -2px; }
.reel__sound .eq i { width: 3px; height: 100%; background: currentColor; border-radius: 2px; transform-origin: bottom; animation: eq 900ms ease-in-out infinite; }
.reel__sound .eq i:nth-child(2) { animation-delay: -300ms; }
.reel__sound .eq i:nth-child(3) { animation-delay: -600ms; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.reel__sound[aria-pressed="true"] { background: var(--magenta); }
.reel__sound[aria-pressed="true"] svg { display: none; }
.reel__sound[aria-pressed="true"] .eq { display: flex; }
.reel__sound:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .reel:hover video { transform: scale(1.03); }
  .cbrand__reels:has(.reel:hover) .reel:not(:hover) video { opacity: .5; filter: saturate(.6); }
  .reel__sound:hover { background: rgb(42 11 34 / .7); }
  .reel__sound[aria-pressed="true"]:hover { background: var(--magenta); }
}

/* the viewer grows out of the reel that was tapped */
.viewer { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.viewer::backdrop { background: rgb(42 11 34 / .86); }
.viewer[open] { display: grid; place-items: center; }
.viewer__frame { position: relative; height: min(86vh, 860px); aspect-ratio: 9 / 16; max-width: 92vw; background: #000; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6); }
.viewer__frame.is-wide { height: auto; width: min(92vw, 1200px); aspect-ratio: 16 / 9; }
.viewer__video { display: block; width: 100%; height: 100%; object-fit: contain; }
.viewer__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--magenta); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 260ms linear; }
.viewer__brand { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--pink); color: var(--ink); font-weight: 700; font-size: 14px; }
.viewer__btn { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; transition: transform 140ms var(--ease-ui), background-color 200ms ease; }
.viewer__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.viewer__btn:active { transform: scale(0.94); }
.viewer__close { top: 14px; right: 16px; }
.viewer__prev { left: 16px; top: 50%; margin-top: -24px; }
.viewer__next { right: 16px; top: 50%; margin-top: -24px; }
@media (hover: hover) and (pointer: fine) { .viewer__btn:hover { background: var(--pink); } }

/* Layout B: a phone per brand, the story and the brand's reels beside it */
.cbrand__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.cbrand--flip .phone { order: 2; }
.phone { position: relative; width: clamp(250px, 25vw, 340px); padding: 10px; border-radius: 46px; background: #1c0a17; box-shadow: 0 50px 80px -40px rgb(90 0 64 / .65), inset 0 0 0 1.5px rgb(255 255 255 / .12); }
.phone::before { content: ""; position: absolute; z-index: 4; top: 20px; left: 50%; width: 30%; height: 22px; margin-left: -15%; border-radius: 999px; background: #1c0a17; }
.reel--phone { border-radius: 36px; box-shadow: none; transform: translateZ(0); }
.reel--phone.is-wide video { object-fit: contain; background: #000; }
.reel--phone video { transition: opacity 200ms ease, filter 200ms ease, transform 500ms var(--ease-out-expo); }
.reel--phone.is-swapping video { opacity: .35; filter: blur(4px); }
.reel--phone .reel__sound { right: 14px; bottom: 18px; }
.cbrand__side { display: grid; gap: 14px; justify-items: start; }
.cbrand .cbrand__giant { font-size: min(6.4vw, calc(100vw / var(--len)), 104px); line-height: .9; white-space: normal; text-wrap: balance; }
.cbrand__did { max-width: 46ch; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.thumb { position: relative; display: block; width: 76px; aspect-ratio: 9 / 16; padding: 0; border: 0; overflow: hidden; background: #2a0b22; cursor: pointer; opacity: .62; transition: opacity 200ms ease, transform 140ms var(--ease-ui); }
.thumb--wide { width: 135px; aspect-ratio: 16 / 9; align-self: end; }
.thumbs li { display: flex; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--magenta); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-out-expo); }
.thumb[aria-current="true"] { opacity: 1; }
.thumb[aria-current="true"]::after { transform: scaleX(1); }
.thumb:active { transform: scale(0.95); }
.thumb:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .thumb:hover { opacity: 1; } }
@media (max-width: 899px) {
  .reelwall { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px; gap: 6px; }
  .reelwall .reel:nth-child(n+4) { display: none; }
  .cbrand { --gs: min(15vw, calc(150vw / var(--len))); }
  .cbrand__body { grid-template-columns: 1fr; }
  .cbrand__grid { grid-template-columns: 1fr; justify-items: center; gap: 28px; }
  .cbrand--flip .phone { order: 0; }
  .phone { width: min(72vw, 300px); }
  .cbrand__side { display: contents; }
  .cbrand .cbrand__giant { order: -1; justify-self: start; }
  .cbrand__side > :not(.cbrand__giant) { justify-self: start; }
  .cbrand .cbrand__giant { font-size: min(13vw, calc(150vw / var(--len))); }
  .thumb { width: 64px; }
  .thumb--wide { width: 114px; }
  .cbrand__reels { margin-top: 0; order: -1; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cbrand__reels[style*="--n:3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cbrand__reels[style*="--n:1"] { grid-template-columns: minmax(0, 64%); justify-content: start; }
  .cbrand__reels[style*="--n:2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reel__sound { right: 6px; bottom: 8px; }
  .viewer__prev, .viewer__next { top: auto; bottom: 18px; margin-top: 0; }
  .viewer__frame { height: min(78vh, 760px); }
}
@media (prefers-reduced-motion: reduce) {
  .reelwall .reel { animation: none; }
  .bstrip__track { animation: none; }
  .reel video, .reel__bar, .viewer__bar { transition: none; }
  .reel__sound .eq i { animation: none; transform: scaleY(.7); }
}
/* SHEVET shows its own wordmark where the other brands show their name */
.cbrand__giant--logo { line-height: 0; }
.cbrand__giant--logo img { display: block; height: 1em; width: auto; max-width: 100%; }
/* the info card sits fully on the grey, with room under it before the first brand band */
.page-content-creation main > .p-top { padding-bottom: clamp(40px, 5vw, 72px); }
.cbrand__giant--logo img { height: 1.1em; }

.cbrand__side .u-link { display: inline-flex; align-items: center; min-height: 44px; }

/* Content creation hero: the home hero's language, with the reels drifting behind Alex */
.hero--reels .tile--reel { background: #2a0b22; }
.hero--reels .tile--reel video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero--reels .hero__title { font-size: clamp(18px, 1.7vw, 25px); line-height: 1.1; letter-spacing: .01em; }
.hero--reels .hero__sub { max-width: 34em; margin: 14px auto 0; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgb(140 0 100 / .45), 0 3px 12px rgb(160 0 115 / .25); text-wrap: balance; }
.hero__back { position: absolute; z-index: 3; top: calc(var(--nav-h, 90px) + 8px); left: var(--gutter); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: rgb(255 255 255 / .82); color: var(--ink); font-weight: 600; font-size: 14px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform 140ms var(--ease-ui), background-color 200ms ease; }
.hero__back:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .hero__back:hover { background: #fff; } }
.page-content-creation .bstrip { margin-bottom: 0; }
.page-content-creation main > .p-top { padding-top: clamp(24px, 3vw, 40px); }

/* the brand's other reels: smaller phones of the same family, each playing on its own */
.minis { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; align-items: flex-end; }
.phone--mini { width: clamp(96px, 8.4vw, 124px); padding: 5px; border-radius: 20px; box-shadow: 0 24px 40px -24px rgb(90 0 64 / .6), inset 0 0 0 1px rgb(255 255 255 / .12); }
.phone--mini::before { top: 10px; height: 9px; }
.phone--mini .reel--phone { border-radius: 16px; }
.phone--land { width: clamp(170px, 15vw, 220px); }
.phone--land .reel--phone { aspect-ratio: 16 / 9; }
.phone--land::before { top: 50%; left: 8px; width: 9px; height: 26%; margin: 0; transform: translateY(-50%); }
@media (hover: hover) and (pointer: fine) {
  .phone--mini .reel--phone video { transition: transform 500ms var(--ease-out-expo); }
  .phone--mini:hover .reel--phone video { transform: scale(1.04); }
}
@media (max-width: 899px) {
  .minis { gap: 10px; }
  .phone--mini { width: clamp(86px, 26vw, 112px); }
  .phone--land { width: min(100%, 210px); }
  .hero__back { top: calc(var(--nav-h, 76px) + 4px); }
}

/* hero tiles are reels: always the full 9:16 frame */
.hero--reels .tile--reel { aspect-ratio: 9 / 16; }
.cc-intro { max-width: 40em; margin: 0 auto clamp(20px, 2.4vw, 32px); text-align: center; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; font-weight: 500; color: var(--ink); text-wrap: balance; }

/* the brand's reels: covers in proportion to the phone, tap one to play it there */
.thumbs__hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.thumbs__hint::before { content: ""; width: 18px; height: 2px; background: var(--magenta); }
.thumbs { gap: 12px; margin-top: 2px; }
.thumb { width: clamp(84px, 7.4vw, 112px); opacity: .72; box-shadow: 0 16px 28px -20px rgb(90 0 64 / .6); }
.thumb--wide { width: clamp(150px, 13vw, 198px); }
.thumb__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 999px; background: rgb(255 255 255 / .88); color: var(--ink); transition: transform 200ms var(--ease-ui), opacity 200ms ease; }
.thumb__play svg { width: 14px; height: 14px; margin-left: 2px; fill: currentColor; }
.thumb[aria-current="true"] .thumb__play { opacity: 0; transform: scale(.85); }
@media (hover: hover) and (pointer: fine) { .thumb:hover .thumb__play { transform: scale(1.08); } }
@media (max-width: 899px) { .thumb { width: clamp(76px, 22vw, 100px); } .thumb--wide { width: min(100%, 180px); } }

/* Alex is Media x Alex is Design, under the Content creation title */
.collab { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 1.6vw, 24px); margin: clamp(16px, 2vw, 26px) 0 0; }
.collab img { display: block; height: clamp(44px, 5vw, 72px); width: auto; }
.collab__x { width: clamp(20px, 1.8vw, 28px); height: auto; fill: none; stroke: var(--magenta); stroke-width: 3.2; stroke-linecap: round; }
@media (max-width: 899px) { .hero__back { display: none; } }
