/* ==========================================================================
   Riri Creates — portfolio styles
   ========================================================================== */

:root {
  --pink: #E95170;
  --pink-soft: #DF6D84;
  --pink-line: #E295A5;
  --black: #1E1E1E;
  --ink: #252525;
  --cream: #FFFDFA;
  --blush: #FFF4F6;
  --lavender: #E8E3EF;
  --rose: #F4E5EC;
  --violet: #8E7DB5;
  --white: #fff;
  --muted: #6b6466;

  --gutter: clamp(16px, 6.9vw, 100px);
  --maxw: 1240px;
  --section: clamp(48px, 4.2vw, 60px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 80px;
  --font-serif: "roca", "Literata", Georgia, serif;
  /* the accent words: Neue Ralewe Light Italic (Italic for "Me" / "Eren"), or its upright Bold Expanded for the hero initials */
  --font-script: "Neue Ralewe", "Literata", Georgia, serif;
  --font-initials: "Neue Ralewe Expanded", "Literata", Georgia, serif;
}

@font-face {
  font-family: "Neue Ralewe";
  src: url("../fonts/ZTNeueRalewe-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Ralewe";
  src: url("../fonts/ZTNeueRalewe-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Ralewe Expanded";
  src: url("../fonts/ZTNeueRalewe-BoldExpanded.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 60px); }
body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--black);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
b, strong { font-weight: 700; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
hr { border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--black); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { max-width: 950px; }
.container--mid { max-width: 920px; }
.container--form { max-width: 770px; }
.section { padding-block: var(--section); }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.muted { color: var(--muted); }
.pink { color: var(--pink); }
.divider { height: 1px; background: var(--pink-line); margin: 48px 0; }
.rule { height: 1px; background: var(--pink-line); margin: 24px 0; }

/* ---------- Type ---------- */
.script { font-family: var(--font-script); font-weight: 300; font-style: italic; text-transform: none; letter-spacing: 0; }
.st--hero .script { font-family: var(--font-initials); font-weight: 700; font-style: normal; }
.st--about .script, .st--eren .script { font-weight: 400; }
.h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 300; line-height: 1.15; letter-spacing: -.01em; margin-bottom: 20px; }
.h2--lg { font-size: clamp(32px, 3.6vw, 48px); }
.eyebrow { font-size: 13px; letter-spacing: .02em; margin-bottom: 10px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); }
.prose p + p { margin-top: 1.15em; }
.prose--lg { font-size: clamp(17px, 1.4vw, 19px); }
.prose--measure { max-width: 820px; }

/* ---------- Section titles (ribbon tags) ---------- */
.st {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; font-weight: 100;
  font-size: clamp(34px, 4vw, 52px); line-height: 1.05;
  margin-bottom: clamp(40px, 5vw, 64px);
  letter-spacing: -.01em;
}
.st__line { display: block; }
.st--left { align-items: flex-start; text-align: left; }
.st .script { font-size: 1.5em; line-height: .8; }

/* the words sit in the optical middle of the band: Roca's caps run from .064em above to .156em below a line-height of .8,
   so equal visual space (--tp) above the caps and below the baseline needs these two offsets */
.tag { --tp: .34em; position: relative; display: inline-block; padding: calc(var(--tp) + .064em) .45em calc(var(--tp) - .156em); z-index: 0; color: #fff; line-height: .8; }
.tag::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--tag-bg, var(--ink));
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
  transform: rotate(-2deg);
  transform-origin: center;
}
.tag--dark { --tag-bg: var(--ink); }
.tag--pink { --tag-bg: var(--pink); }
.tag--light { --tag-bg: var(--rose); color: var(--pink); }
.tag--white { --tag-bg: var(--cream); color: var(--black); }
.tag .pink { color: var(--pink); }
.st .tag { margin-top: .02em; }

/* reveal animation for tags */
.js [data-reveal] .tag::before { transform: rotate(-2deg) scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .15s; }
.js .is-in .tag::before, .js [data-reveal].is-in .tag::before { transform: rotate(-2deg) scaleX(1); }
/* tags fitted to their text: a slanted band as wide as the words, not rotated ("MY PERSONAL WORK", "FROM STRUCTURE TO STYLE") */
.st--fit .tag { --tp: .19em; padding-inline: .55em; }
.st--fit .tag::before { clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); }
.st--fit .tag::before, .js .st--fit.is-in .tag::before { transform: none; }
.js [data-reveal].st--fit:not(.is-in) .tag::before { transform: scaleX(0); }
.st--fit .st__line + .st__line { margin-top: .08em; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  /* Roca sits high in its line box: a little more room above centres the capitals */
  min-height: 40px; padding: 10px 28px 6px; border: 0; cursor: pointer;
  font-size: 16px; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s;
}
.btn .icon { width: 20px; height: 20px; margin-top: -4px; transition: transform .25s var(--ease); }
.btn:hover, .js .btn[data-reveal].is-in:hover { transform: translateY(-3px); box-shadow: 0 14px 24px -12px rgba(30, 30, 30, .5); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--pink { background: var(--pink); color: #fff; }
.btn--pink:hover { background: #dc4060; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--black { background: #000; color: #fff; }
.btn--sm { min-height: 40px; padding: 10px 22px 6px; font-size: 15px; }
.btn--lg { min-height: clamp(56px, 4.9vw, 70px); padding: 15px clamp(54px, 6.25vw, 90px) 9px; font-size: clamp(20px, 1.8vw, 26px); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 2px 4px 6px;
  color: #b8325a; font-size: 16px; text-decoration: none;
  background: linear-gradient(var(--pink-line), var(--pink-line)) left bottom / 100% 1px no-repeat;
  transition: background-size .35s var(--ease), color .2s;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--pink); background-size: 100% 2px; }
.link-arrow:hover .icon { transform: translate(2px, -2px); }
.link-arrow--muted { color: var(--muted); background: none; font-style: italic; }

.icon { display: inline-block; width: 1em; height: 1em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 250, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--pink-line);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .35); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); padding-inline: clamp(16px, 2.8vw, 40px); }
/* a fixed frame: any logo uploaded in the admin fits it with its own proportions, the header never changes height */
.logo img { width: clamp(160px, 14.4vw, 207px); height: clamp(29px, 2.6vw, 37px); object-fit: contain; object-position: left center; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; align-items: baseline; }
.nav__link { position: relative; display: block; padding: 8px clamp(8px, 1vw, 14px); font-size: 16px; text-decoration: none; transition: color .2s; }
.nav__link::after {
  content: ""; position: absolute; left: -12px; right: -12px; bottom: 0; height: 2px; background: var(--pink);
  border-radius: 2px; transform: scaleX(0); transition: transform .35s var(--ease);
}
.nav__link:hover::after { transform: scaleX(.5); }
.nav__link.is-active { font-size: 20px; font-weight: 700; }
.nav__link.is-active::after { transform: scaleX(1); }
/* Sliding underline: one bar that travels to the active page (desktop, JS only) */
.nav { position: relative; }
.nav__indicator { position: absolute; left: 0; top: 0; width: 0; height: 2px; border-radius: 2px; background: var(--pink); opacity: 0; pointer-events: none; }
.nav__indicator.is-ready { opacity: 1; transition: transform .5s cubic-bezier(.65, 0, .25, 1), width .5s cubic-bezier(.65, 0, .25, 1), opacity .2s; }
.has-nav-indicator .nav__link::after, .has-nav-indicator .nav__link:hover::after { transform: scaleX(0); }
.nav__extra, .logo__mark { display: none; }
/* centred on the page, not between the logo and the actions */
@media (min-width: 1200px) {
  .nav { position: absolute; left: 50%; transform: translateX(-50%); }
  .site-header__actions { margin-left: auto; }
}
.site-header__actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: inline-flex; gap: 4px; font-size: 14px; text-decoration: none; color: var(--muted); padding: 6px 2px; }
.lang-switch .is-on { color: var(--black); font-weight: 700; }
.lang-switch:hover span:not(.is-on):not(.lang-switch__sep) { color: var(--pink); }
.site-header__cta { min-height: 41px; padding: 10px 31px 6px; font-size: 16px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--black); margin: 5px 0; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: var(--blush); transition: opacity .6s var(--ease), visibility .6s;
}
.js .preloader.is-done { opacity: 0; visibility: hidden; transition: none; }
/* "Oh, hi!" in pink, the black tag drops in mid-word, a blink, then "I'm Riri" in white */
.preloader__stage { position: relative; font-size: clamp(34px, 3.4vw, 54px); line-height: 1.2; }
.preloader__stage.is-blank { visibility: hidden; }
.preloader__tag { position: absolute; z-index: 0; inset: -.12em -.45em -.22em -.5em; background: var(--ink); clip-path: polygon(4% 0, 100% 0, 97% 84%, 0 100%); opacity: 0; }
.preloader__stage.has-tag .preloader__tag { opacity: 1; }
.preloader__text { position: relative; z-index: 1; display: block; min-height: 1.2em; white-space: pre; color: var(--pink); font-weight: 300; }
.preloader__stage.is-white .preloader__text { color: #fff; }
.preloader__ch { opacity: 0; animation: plChar .12s linear forwards; }
@keyframes plChar { to { opacity: 1; } }

/* ---------- Hero ---------- */
.hero { --hs: clamp(36px, 4.86vw, 70px); position: relative; background: var(--blush); padding-block: clamp(52px, 8vw, 115px) clamp(40px, 5vw, 62px); overflow: hidden; }
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.st--hero { font-size: var(--hs); line-height: 1; margin-bottom: clamp(44px, 6.2vw, 89px); }
/* fixed line pitch, so the tags and the big initials don't push the lines apart */
.st--hero .st__line { height: .94em; }
/* the script initials sit above the tags of the line before ("D" over "systems") */
.st--hero .script { position: relative; z-index: 1; color: var(--pink-soft); font-size: 1.33em; line-height: 0; margin-right: -.12em; vertical-align: -.12em; }
/* tags hug their neighbours: a word space is eaten on each side */
.st--hero .tag { margin-inline: -.14em; line-height: .9; }
.st--hero .st__line:first-child .script { font-size: 1.85em; margin-right: -.04em; vertical-align: 0; }
.st--hero .st__line + .st__line .script { font-size: 2.1em; margin-right: .02em; vertical-align: -.22em; }
.st--hero .st__line:first-child .tag { position: relative; top: .11em; margin-left: -.02em; padding: 0 .3em .05em .2em; }
.st--hero .st__line + .st__line .tag { padding: 0 .15em .04em .15em; }
/* the second line is not centred in the design: the D overlap pulls it left */
.st--hero .st__line:first-child { position: relative; left: .17em; }
.st--hero .st__line + .st__line { position: relative; top: .06em; left: -.7em; }
/* "Detail" drops below the baseline of "an eye for" and its D leans over "for" */
.st--hero .st__line + .st__line .sw { position: relative; margin-left: 0; }
/* narrow screens: the lines wrap, so let them grow and centre normally */
@media (max-width: 900px) {
  .st--hero .st__line { height: auto; }
  .st--hero .st__line:first-child { left: 0; }
  .st--hero .st__line + .st__line { top: 0; left: 0; margin-top: .1em; }
}
/* the stars hang off the ends of the title lines in em, so they keep clear of the words at any size, accent style or text */
.st--hero .st__line::before, .st--hero .st__line::after {
  position: absolute; z-index: 2; pointer-events: none; aspect-ratio: 1;
  background: url("../img/star-pink.svg") center / contain no-repeat;
}
.st--hero .st__line:first-child::before { content: ""; width: .95em; right: calc(100% + .45em); top: .1em; background-image: url("../img/star-black.svg"); animation: floaty 6s ease-in-out infinite; }
.st--hero .st__line:first-child::after { content: ""; width: .9em; left: calc(100% - .05em); top: -.95em; animation: floaty 7s ease-in-out -2s infinite; }
.st--hero .st__line + .st__line::before { content: ""; width: .5em; right: calc(100% + .35em); top: .3em; animation: floaty 5s ease-in-out -1s infinite; }
/* the accent letters' style, chosen in the admin per letter: Neue Ralewe Bold Expanded, Light Italic or Italic, each also with its decorative alternates (ss01) */
/* (every title and the name on the "Let's talk" card; the sizes and positions stay the component's own) */
:is(.st, .note__name) .script.script--bold, :is(.st, .note__name) .script.script--bold-alt { font-family: var(--font-initials); font-weight: 700; font-style: normal; }
:is(.st, .note__name) .script.script--light, :is(.st, .note__name) .script.script--light-alt { font-family: var(--font-script); font-weight: 300; font-style: italic; }
:is(.st, .note__name) .script.script--italic, :is(.st, .note__name) .script.script--italic-alt { font-family: var(--font-script); font-weight: 400; font-style: italic; }
:is(.st, .note__name) .script[class*="-alt"] { font-feature-settings: "ss01"; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(8deg); } }
.hero__text { width: 100%; max-width: 1038px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.3; padding-bottom: 12px; border-bottom: 1px solid var(--pink-soft); }
.hero__sub { font-size: 16px; font-weight: 100; margin-top: 16px; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 11px 28px; margin-top: 30px; }
.hero__cv { margin-top: 4px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--lavender); border-block: 1px solid var(--pink-line); padding: 11px 0 5px; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 8px; padding-right: 8px; font-size: clamp(15px, 1.4vw, 20px); font-weight: 400; white-space: nowrap; }
.marquee__star { flex: none; width: .6em; height: .78em; margin-top: -6px; fill: #df6d84; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--dark { background: var(--ink); border-color: var(--ink); color: var(--cream); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Project cards ---------- */
.featured { background: #fff; }
.featured__list { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 64px); margin-bottom: 56px; }
.featured__list > .divider { margin: 0; }
.pcard { display: grid; gap: 28px 41px; align-items: center; }
/* one frame for every kind of file: images, GIFs, videos and slideshows look the same, nothing shows behind them */
.pcard__media { display: block; position: relative; overflow: hidden; background: transparent; aspect-ratio: 16 / 9; }
.pcard__media img, .pcard__media video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pcard:hover .pcard__media > img, .pcard:hover .pcard__media > video { transform: scale(1.04); }
/* slideshow: the slides cross-fade in one frame (JS on hover); a phone swipes through them instead */
.pcard__slide { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity .8s var(--ease); }
.pcard__slide.is-on { opacity: 1; }
.pcard__slides:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
@media (hover: none) {
  .pcard__slides, .cs-hero__slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pcard__slides::-webkit-scrollbar, .cs-hero__slides::-webkit-scrollbar { display: none; }
  .pcard__slides .pcard__slide, .cs-hero__slides .pcard__slide { position: relative; flex: 0 0 100%; opacity: 1; scroll-snap-align: start; }
}
.pcard__num { display: flex; font-weight: 300; align-items: center; gap: 22px; color: var(--pink); font-size: clamp(44px, 4.9vw, 70px); line-height: 1; margin-bottom: 36px; }
.pcard__num span { display: block; width: 85px; height: 1px; background: var(--pink); transform-origin: left; transition: transform .8s var(--ease) .3s; }
.js .pcard[data-reveal]:not(.is-in) .pcard__num span { transform: scaleX(0); }
.pcard__title { font-size: clamp(44px, 4.9vw, 70px); font-weight: 300; line-height: 1.05; margin-bottom: 24px; letter-spacing: -.01em; }
.pcard__title a { text-decoration: none; }
.pcard__summary { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.3; padding-bottom: 16px; border-bottom: 1px solid var(--pink-line); margin-bottom: 12px; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; font-weight: 100; margin-bottom: 18px; }
.pcard__tags li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #b8325a; margin-right: 12px; vertical-align: 2px; }
.pcard--wide { grid-template-columns: minmax(0, 380fr) minmax(0, 829fr); }
.pcard--wide .pcard__media { order: 2; }
.pcard--wide-reverse { grid-template-columns: minmax(0, 829fr) minmax(0, 380fr); }
.pcard--grid { align-items: start; gap: 24px; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 64px) clamp(24px, 3vw, 32px); }
.pcard.plain .pcard__num { display: none; }
.pcard.is-hidden { display: none; }

/* ---------- Home about ---------- */
.home-about { --u: calc(min(100vw, 1440px) / 1440); background: var(--lavender); overflow: hidden; }
/* Desktop layout follows the Figma frame (1440px) measured in design pixels via --u */
.home-about__stage { position: relative; max-width: 1440px; margin-inline: auto; min-height: calc(752 * var(--u)); padding: calc(71 * var(--u)) calc(53 * var(--u)) calc(71 * var(--u)) calc(160 * var(--u)); }
.home-about__inner { position: relative; z-index: 1; display: grid; grid-template-columns: calc(410 * var(--u)) minmax(0, 1fr); column-gap: calc(97 * var(--u)); align-items: start; }
.photo-frame { position: relative; }
.photo-frame::before { content: ""; position: absolute; z-index: 0; top: calc(-20 * var(--u)); right: calc(-20 * var(--u)); width: calc(67.6% + 20 * var(--u)); height: 56.4%; background: #fff; }
.photo-frame img { position: relative; width: 100%; aspect-ratio: 410 / 550; object-fit: cover; }
.home-about__dog { position: absolute; z-index: 2; left: 0; bottom: 0; width: calc(187 * var(--u)); }
.home-about__dog img { width: 100%; }
.home-about__arrow { position: absolute; z-index: 2; left: calc(200 * var(--u)); bottom: calc(20 * var(--u)); width: calc(72 * var(--u)); }
.home-about__label { position: absolute; z-index: 2; left: calc(293 * var(--u)); bottom: calc(26 * var(--u)); font-size: 13px; letter-spacing: .01em; }
.home-about__body { position: relative; padding-top: calc(62 * var(--u)); }
.home-about__stars { position: absolute; right: calc(95 * var(--u)); top: calc(37 * var(--u)); width: calc(88 * var(--u)); }
.st--hi { font-size: clamp(36px, calc(80 * var(--u)), 80px); margin-bottom: 0; flex-direction: row; justify-content: center; }
.st--hi .script { font-size: 1.9em; margin-right: -.18em; position: relative; z-index: 1; }
.st--hi .tag { --tp: .31em; color: var(--black); padding-inline: .45em .35em; }
.st--hi .tag::before { transform: rotate(-3deg); clip-path: polygon(2% 0, 100% 0, 98% 100%, 0 100%); }
.home-about__body .rule { margin: calc(55 * var(--u)) 0 calc(25 * var(--u)); background: #8a8590; }
.home-about__body .prose { font-size: clamp(16px, calc(20 * var(--u)), 20px); line-height: 1.3; margin-bottom: 22px; }
.home-about__body .prose p + p { margin-top: 1.3em; }

/* ---------- Accordion ---------- */
.skills { background: var(--cream); }
.acc { --acc: var(--pink); }
.acc--violet { --acc: var(--violet); }

.acc__btn {
  display: flex; align-items: baseline; width: 100%; padding: clamp(18px, 2.1vw, 30px) clamp(16px, 2.8vw, 40px) 8px clamp(10px, 1.4vw, 20px); text-align: left;
  border: 0; cursor: pointer;
  /* the 2px underline is the fill itself: on hover it grows upwards into a full colour fill */
  background: linear-gradient(var(--acc), var(--acc)) center bottom / calc(100% - 2 * clamp(10px, 1.4vw, 20px)) 2px no-repeat;
  transition: background-size .3s var(--ease), box-shadow .3s var(--ease), color .25s, padding .45s var(--ease);
}
/* the fill also covers the line of the row above, so no seam is left between the rows */
.acc__btn:hover, .acc__btn:focus-visible, .acc.is-open .acc__btn { box-shadow: 0 -2px 0 var(--acc); }
.acc__num { flex: none; width: clamp(72px, 9.9vw, 142px); font-size: clamp(52px, 6.25vw, 90px); font-weight: 100; line-height: 1; color: var(--acc); transition: color .25s; }
.acc__title { flex: 1; font-size: clamp(24px, 3.2vw, 46px); font-weight: 300; }
.acc__icon { position: relative; align-self: center; width: 30px; height: 30px; background: var(--acc); flex: none; transition: background-color .25s; }
.acc__btn:hover, .acc__btn:focus-visible { background-size: 100% 100%; color: #fff; }
.acc__btn:hover .acc__num, .acc__btn:focus-visible .acc__num { color: #fff; }
.acc__btn:hover .acc__icon, .acc__btn:focus-visible .acc__icon { background: transparent; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: #fff; transform: translate(-50%, -50%); transition: transform .35s var(--ease); }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc.is-open .acc__btn { background-size: 100% 100%; color: #fff; padding-block: 13px; }
.acc.is-open .acc__num { color: #fff; }
.acc.is-open .acc__icon { background: transparent; }
.acc.is-open .acc__icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.acc.is-open .acc__icon::after { transform: translate(-50%, -50%) rotate(135deg); }
.acc__panel { overflow: hidden; transition: height .5s var(--ease); }
.acc__content { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 293px); justify-content: space-between; gap: 32px; padding: 47px clamp(16px, 3.4vw, 49px) 0 clamp(10px, 2.2vw, 31px); }
.acc__text { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 32px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.35; }
.acc__img { width: 100%; max-height: 310px; object-fit: contain; }
.acc__text p { letter-spacing: .05em; }

/* ---------- Icon cards (process / working / away) ---------- */
.process, .working, .away { background: var(--cream); }
.working, .away { background: #fff; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.icard { position: relative; display: flex; flex-direction: column; border: 1px solid var(--pink-line); padding: 20px 32px 22px 22px; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.25; background: #fff; }
/* Hover: the card lifts, gets a soft pink shadow, a pink line draws along the bottom and the illustration tilts up */
.icard::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 3px; background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.icard, .js .icard[data-reveal].is-in { transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s, opacity .8s var(--ease); }
.icard:hover, .js .icard[data-reveal].is-in:hover { transform: translateY(-10px); border-color: var(--pink); box-shadow: 0 24px 40px -26px rgba(233, 81, 112, .65); }
.icard:hover::after { transform: scaleX(1); }
.icard__num { color: var(--pink); font-size: clamp(22px, 2vw, 28px); line-height: 1.5; transition: transform .4s var(--ease); }
.icard:hover .icard__num { transform: translateX(4px); }
.icard__icon { width: clamp(130px, 13.3vw, 192px); align-self: flex-end; margin: -36px 2px 28px 0; transition: transform .5s var(--ease); }
.icard:hover .icard__icon { transform: translateY(-6px) rotate(-4deg) scale(1.05); }
.icard__title { margin-top: auto; font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; line-height: 1.15; margin-bottom: 8px; }
.icard--away .icard__art { display: grid; place-items: center; height: clamp(240px, 27.5vw, 396px); margin-bottom: 28px; }
.icard--away .icard__art img { max-height: clamp(200px, 21vw, 300px); width: auto; transition: transform .5s var(--ease); }
.icard--away:hover .icard__art img { transform: translateY(-6px) rotate(-2deg) scale(1.03); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--lavender); padding-block: 60px 56px; }
.testimonials .st { margin-bottom: 56px; }
.slider { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 24px; }
.slider__track { grid-column: 2; display: grid; width: 100%; max-width: 980px; justify-self: center; }
.slider__arrow { width: 48px; height: 48px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; transition: transform .25s var(--ease); }
.slider__arrow .icon { width: 32px; height: 32px; color: var(--black); }
.slider__arrow--prev { grid-column: 1; grid-row: 1; }
.slider__arrow--prev .icon { color: #8a8590; }
.slider__arrow--prev:hover { transform: translateX(-4px); }
.slider__arrow--next:hover { transform: translateX(4px); }
.quote { grid-area: 1 / 1; text-align: center; animation: fadeUp .6s var(--ease); }
.quote blockquote { font-size: clamp(19px, 1.95vw, 28px); line-height: 1.2; margin-bottom: 40px; }
.quote figcaption { display: flex; flex-direction: column; font-size: clamp(19px, 1.95vw, 28px); line-height: 1.3; }
.quote__name { font-style: italic; }
.quote__role { color: var(--pink); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Follow along ---------- */
.follow { padding-block: 60px 50px; background: #fff; }
.follow__head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.follow__title { font-size: clamp(16px, 1.4vw, 20px); font-weight: 700; white-space: nowrap; }
.follow__line { flex: 1; height: 1px; background: #b8325a; }
.follow__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); }
.follow__grid img { width: 100%; aspect-ratio: 197 / 243; object-fit: cover; transition: transform .4s var(--ease), box-shadow .4s; }
.follow__grid a:hover img { transform: translateY(-4px) rotate(-1.5deg); box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .5); }
.follow__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.follow__handle { font-size: clamp(20px, 2.1vw, 30px); font-weight: 400; margin-left: auto; }

/* ---------- Let's talk ---------- */
.lets-talk { background: var(--cream); padding-block: clamp(64px, 7.9vw, 114px) clamp(64px, 6.9vw, 100px); border-block: 1px solid var(--pink-line); overflow: hidden; }
.lets-talk__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.st--talk { font-size: clamp(52px, 7.4vw, 106px); color: var(--pink); margin-bottom: 44px; }
.st--talk .script { font-size: 1.3em; margin-bottom: -.32em; margin-left: -1.2em; position: relative; z-index: 1; }
.st--talk .tag { --tp: .21em; padding-inline: .6em; margin-left: .8em; }
.st--talk .tag::before { transform: rotate(-3deg); }
.lets-talk__text { max-width: 940px; font-size: clamp(19px, 2.1vw, 30px); line-height: 1.2; font-weight: 400; margin-bottom: 34px; }
.note {
  position: absolute; left: clamp(-48px, -3.3vw, 0px); top: -72px; width: clamp(280px, 26.4vw, 380px); padding: 34px 28px 26px; text-align: left;
  /* rotate, not transform: the reveal animation owns transform */
  background: var(--blush); rotate: -7deg; box-shadow: 3px 6px 12px rgba(0, 0, 0, .16);
}
.note__name { font-size: clamp(20px, 1.9vw, 27px); }
.note__name .script { font-size: 1.8em; line-height: .5; margin-right: -.08em; }
.note__text { font-size: clamp(15px, 1.4vw, 20px); margin-top: 10px; }
.note__star { position: absolute; right: -16px; top: -22px; width: 46px; animation: floaty 6s ease-in-out infinite; }

/* ---------- CTA bar ---------- */
.cta-bar { padding-block: clamp(40px, 4vw, 58px); border-block: 1px solid var(--pink-line); }
.cta-bar--cream { background: var(--cream); }
.cta-bar--lavender { background: var(--lavender); }
.cta-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px 80px; }
.st--inline { font-size: clamp(30px, 3.3vw, 48px); margin: 0; flex-direction: column; align-items: flex-start; text-align: left; }
.st--inline .st__line:first-child { padding-left: .3em; }
.st--inline .st__line:last-child { font-size: 1.15em; }
.st--inline .tag { padding-inline: .5em; }
.st__q { display: inline-block; font-size: 2.1em; line-height: .6; margin-left: -.06em; vertical-align: -.1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blush); padding-block: 40px 22px; }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 14px 40px; align-items: end; width: calc(100% - 2 * clamp(16px, 2.8vw, 40px)); max-width: none; }
.site-footer__logo { width: clamp(260px, 43.5vw, 627px); margin-bottom: 22px; }
.site-footer__email { display: inline-block; color: var(--pink); font-size: clamp(18px, 2.1vw, 30px); text-underline-offset: 3px; }
.site-footer__role { font-size: clamp(18px, 2.1vw, 30px); margin-top: 4px; }
.site-footer__side { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; }
.socials { display: flex; gap: 28px; }
.socials a { display: block; color: var(--pink); transition: transform .25s var(--ease); }
.socials a:hover { transform: translateY(-3px); }
.icon--social { width: 28px; height: 28px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 6px clamp(14px, 2.2vw, 32px); font-size: clamp(18px, 2.1vw, 30px); }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { color: var(--pink); }
.site-footer__bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; color: var(--pink); font-size: clamp(13px, 1.25vw, 18px); text-transform: uppercase; }
.site-footer__bottom span:first-child { text-transform: none; }
/* the developer credit: a small, paler line under the copyright */
.site-footer__credit { margin-top: 6px; font-size: clamp(11px, .85vw, 13px); text-transform: none; opacity: .7; }
.site-footer__credit a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-footer__credit a:hover { text-decoration-thickness: 2px; }

/* ---------- Work ---------- */
.work { background: #fff; padding-top: 56px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -24px 0 40px; }
.chips--left { justify-content: flex-start; }
.chip { border: 0; padding: 6px 14px; font-size: 12px; letter-spacing: .03em; background: var(--blush); color: #b8325a; cursor: pointer; transition: background-color .25s, color .25s, transform .2s; }
.chip:hover { transform: translateY(-1px); background: var(--rose); }
.chip.is-active { background: var(--pink); color: #fff; }

/* ---------- Case study ---------- */
/* hero: the project visual first, at its own proportions, then a dark information block */
.cs-hero { background: var(--ink); color: #fff; }
.cs-hero__media { position: relative; overflow: hidden; background: transparent; }
.cs-hero__media img, .cs-hero__media video { display: block; width: 100%; height: auto; }
.cs-hero__slides { aspect-ratio: var(--ratio, 16 / 9); }
/* Contain: slides of other proportions are fitted whole into the frame, never cropped */
.cs-hero__slides .pcard__slide img, .cs-hero__slides .pcard__slide video { width: 100%; height: 100%; object-fit: contain; }
/* Cover: a wide frame, never taller than the screen below the header, filled by the media and cropped around the focus */
.cs-hero--cover .cs-hero__media { aspect-ratio: 16 / 9; max-height: calc(100vh - var(--header-h) - 40px); min-height: 220px; }
.cs-hero--cover .cs-hero__media img, .cs-hero--cover .cs-hero__media video,
.cs-hero--cover .cs-hero__slides .pcard__slide img, .cs-hero--cover .cs-hero__slides .pcard__slide video { width: 100%; height: 100%; object-fit: cover; object-position: center var(--focus, center); }
/* "Contained" media: room left and right that grows with the screen (less on a phone), proportions kept */
.cs-hero, .cs-block--contained, .cs-gallery--contained { --hpad: clamp(12px, 6.5vw, 120px); }
.cs-hero--contained .cs-hero__media, .cs-block--contained > div { padding-inline: var(--hpad); }
.cs-gallery--contained { margin-inline: var(--hpad); }
.cs-hero__info { padding-block: clamp(32px, 3.6vw, 52px) clamp(24px, 2.4vw, 34px); }
.cs-hero__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-bottom: clamp(28px, 3vw, 44px); }
.cs-hero__title { font-size: clamp(44px, 5.6vw, 80px); font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.cs-hero__tagline { font-size: clamp(20px, 1.9vw, 27px); font-weight: 400; line-height: 1.3; margin-bottom: 14px; }
.cs-hero__intro { font-size: clamp(15px, 1.25vw, 18px); color: rgba(255, 255, 255, .85); }
.cs-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px 32px; }
.cs-meta dt { font-size: 11px; font-weight: 700; letter-spacing: .04em; margin-bottom: 8px; color: rgba(255, 255, 255, .7); }
.cs-meta dd { font-size: 16px; }
/* the section bar sticks under the site header; the project name slides in once the dark block has scrolled away */
.cs-tabs { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--pink-line); }
.cs-tabs__bar { display: flex; align-items: center; min-width: 0; }
.cs-tabs__name { flex: none; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; font-size: 20px; transition: max-width .45s var(--ease), opacity .3s, margin .45s var(--ease); }
.cs-tabs.is-compact .cs-tabs__name { max-width: 40%; opacity: 1; margin-right: 32px; }
.cs-tabs__inner { display: flex; gap: 8px 32px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cs-tabs__inner::-webkit-scrollbar { display: none; }
.cs-tabs__link { position: relative; padding: 18px 14px; font-size: 15px; text-decoration: none; white-space: nowrap; transition: color .2s; }
.cs-tabs__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; background: var(--pink); transform: scaleX(0); transition: transform .35s var(--ease); }
.cs-tabs__link.is-active { font-weight: 700; }
.cs-tabs__link.is-active::after, .cs-tabs__link:hover::after { transform: scaleX(1); }
/* a section reached from the bar stops below the header and the bar, not behind them */
[data-tab-section] { scroll-margin-top: 12px; }
.cs-tabs__toggle { display: none; }
.cs-block { padding-block: clamp(28px, 3vw, 40px); }
.cs-block--white { background: #fff; }
.cs-block--pink { background: var(--blush); }
.cs-block--cream { background: var(--cream); }
.cs-block--lavender { background: var(--lavender); }
.cs-block--pink + .cs-block--pink, .cs-block--white + .cs-block--white { padding-top: 0; }
.cs-block:not(.cs-block--pink) + .cs-block--pink, .cs-band + .cs-block, .cs-gallery + * { padding-top: clamp(48px, 5vw, 72px); }
.cs-columns { padding-block: clamp(48px, 5vw, 64px); }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px) clamp(24px, 4vw, 64px); align-items: start; }
.cs-columns .h2 { margin-bottom: 26px; }
.cs-columns .prose { font-size: 18px; }
.cs-image figure img { width: 100%; }
.cs-image figcaption { margin-top: 12px; font-size: 17px; }
.cs-image figcaption strong { display: block; font-weight: 400; }
.cs-band { background: var(--lavender); padding-block: 36px; border-block: 1px solid var(--pink-line); }
.cs-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 32px; align-items: start; }
.cs-band .h2 { margin: 0; }
.cs-text .prose { margin-top: -4px; }
.cs-text { padding-bottom: 20px; }
.cs-foundation .lead { margin-bottom: 18px; }
.cs-foundation__images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.cs-foundation__images img { width: 100%; height: 100%; object-fit: cover; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.swatches li { display: flex; flex-direction: column; justify-content: center; min-height: 76px; padding: 12px 16px; font-size: 14px; line-height: 1.3; transition: flex-grow .3s; }
.swatches strong { font-weight: 700; }
.cs-images img { width: 100%; }
.cs-gallery { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); background: #111; }
.cs-gallery img, .cs-gallery video { width: 100%; aspect-ratio: 1; object-fit: cover; }
/* shared section settings from the admin: spacing and full width */
.cs-block--compact { padding-block: clamp(16px, 1.6vw, 22px); }
.cs-block--wide { padding-block: clamp(56px, 6vw, 96px); }
.container--full { width: 100%; }
.cs-block video { display: block; width: 100%; height: auto; }
/* text columns: as many equal columns as there are filled ones */
.cols-auto { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 40px; }
.cols-auto[style*="--n:1"] .prose { max-width: 75ch; }
/* media + text, media on either side */
.cs-mediatext__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.cs-mediatext--right .cs-mediatext__media { order: 2; }
.cs-mediatext__media img { width: 100%; }
.cs-mediatext__media figcaption { margin-top: 10px; font-size: 15px; }
.cs-mediatext .h2 { margin-bottom: 16px; }
/* client testimonial */
.cs-quote { text-align: center; }
.cs-quote__text { font-size: clamp(20px, 2vw, 28px); line-height: 1.4; }
.cs-quote figcaption { margin-top: 20px; }
.cs-quote__name { display: block; font-family: var(--font-script); font-style: italic; font-weight: 300; font-size: clamp(22px, 2vw, 28px); }
.cs-quote__role { display: block; color: var(--pink); }
/* gallery: grid that keeps every file's proportions */
.cs-grid__cols { columns: var(--cols, 3); column-gap: clamp(12px, 1.6vw, 24px); }
.cs-grid__item { break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 24px); }
.cs-grid__item img { width: 100%; }
/* gallery: slow moving strip, common height, own widths; a pause button; still under reduced motion */
.cs-strip { position: relative; overflow: hidden; padding-block: clamp(28px, 3vw, 40px); cursor: pointer; }
.cs-strip:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; }
/* spacing as padding, not gap: two identical halves, so the -50% loop has no visible seam */
.cs-strip__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.cs-strip__item { padding-right: 16px; }
.cs-strip.is-paused .cs-strip__track { animation-play-state: paused; }
.cs-strip__item img, .cs-strip__item video { height: clamp(220px, 26vw, 380px); width: auto; max-width: none; }
.cs-outcome { background: var(--ink); color: #fff; padding-block: clamp(48px, 5vw, 56px); }
.cs-outcome .h2 { margin-bottom: 28px; }
.explore { background: var(--cream); }
.pgrid--explore { max-width: 950px; margin: 0 auto 48px; }

/* ---------- About ---------- */
.about-hero { background: #fff; overflow: hidden; }
.about-hero__inner { display: grid; grid-template-columns: minmax(0, 648px) minmax(0, 483px); justify-content: space-between; gap: 32px; align-items: end; padding-top: 40px; }
.about-hero__body { position: relative; padding-block: clamp(40px, 5.8vw, 84px) clamp(48px, 9.6vw, 138px); margin-left: clamp(-20px, -1.4vw, 0px); }
.about-hero .dots { font-size: clamp(14px, 1.4vw, 20px); font-weight: 100; }
.st--about { align-items: flex-start; text-align: left; font-weight: 300; font-size: clamp(44px, 6.5vw, 94px); margin-bottom: 60px; padding-left: .17em; }
/* "Me" tucks up under "little", as in the design */
.st--about .st__line:last-child { margin: -.62em 0 0 .55em; }
.st--about .script { font-size: 2.05em; }
.about-hero__star { position: absolute; pointer-events: none; }
.about-hero__star--pink { width: 37px; left: 14%; top: 50px; animation: floaty 6s ease-in-out infinite; }
.about-hero__star--black { width: 37px; left: 90%; top: 90px; animation: floaty 7s ease-in-out -2s infinite; }
.about-hero__star--lilac { width: 88px; left: 61%; top: 207px; animation: floaty 8s ease-in-out -4s infinite; }
.about-hero__lead { font-size: clamp(19px, 2.1vw, 30px); line-height: 1.27; font-weight: 400; padding-bottom: 22px; border-bottom: 1px solid var(--pink-line); margin-bottom: 22px; }
.about-hero__lead .pink { font-weight: 400; }
.dots { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }
.dots li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); margin-right: 12px; vertical-align: 2px; }
.about-hero__image img { width: 100%; max-width: 483px; margin-left: auto; }
.structure { background: var(--lavender); padding-block: 48px 56px; border-block: 1px solid var(--pink-line); overflow: hidden; }
.structure__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.structure__left { position: relative; padding-bottom: 60px; }
.structure__left .st { margin-bottom: 32px; padding-left: .3em; font-size: clamp(34px, 4.2vw, 61px); }
.structure__text { padding-top: clamp(0px, 5vw, 72px); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.3; letter-spacing: .05em; }
.structure__text p + p { margin-top: 1.3em; }
.structure__card { width: 82%; aspect-ratio: 1.62; margin-left: 8%; background: #fff; rotate: -6deg; box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .4); overflow: hidden; }
.structure__card img { width: 100%; height: 100%; object-fit: cover; }
.structure__arrow { position: absolute; right: 18%; bottom: 42px; width: 52px; transform: rotate(-8deg); }
.structure__note { position: absolute; right: 2%; bottom: 0; font-size: 12px; line-height: 1.35; }
.structure__star { position: absolute; pointer-events: none; }
.structure__star--pink { width: clamp(60px, 7.2vw, 103px); left: clamp(-82px, -5.7vw, -20px); bottom: 20px; animation: floaty 6s ease-in-out infinite; }
.structure__star--black { width: clamp(40px, 4.2vw, 61px); left: 8px; bottom: -36px; animation: floaty 7s ease-in-out -3s infinite; }
.path { background: var(--blush); }
.path .container { max-width: 1192px; }
.path__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 36px; }
.path__label { font-size: clamp(22px, 2.1vw, 30px); font-weight: 700; margin-bottom: 36px; }
.path__head .path__label { margin: 0; }
.path__item + .path__item { margin-top: 32px; }
.path__role { font-size: clamp(22px, 2.1vw, 30px); font-weight: 400; margin-bottom: 8px; }
.path__years { color: var(--pink); font-size: clamp(14px, 1.25vw, 18px); margin-bottom: 12px; }
.path__years--lg { font-size: clamp(22px, 2.1vw, 30px); margin: 4px 0 6px; }
.path__item .prose { font-size: clamp(16px, 1.32vw, 19px); line-height: 1.3; }
.path__item .prose p + p { margin-top: 1.4em; }
.path__edu + .path__edu { margin-top: 24px; }
.path__place { max-width: 720px; font-size: clamp(19px, 1.7vw, 24px); }
.desktop { background: var(--lavender); padding-block: 48px; border-block: 1px solid var(--pink-line); }
.desktop__inner { display: grid; grid-template-columns: minmax(0, 558fr) minmax(0, 682fr); gap: 32px 0; align-items: center; }
.st--tilt { margin: 0; justify-self: start; rotate: -5deg; font-size: clamp(32px, 4.2vw, 60px); }
.tools { display: flex; flex-direction: column; gap: clamp(12px, 1.2vw, 17px); margin-right: clamp(-50px, -3.4vw, 0px); }
.tools li { display: flex; align-items: center; gap: 32px; font-size: clamp(17px, 2.1vw, 30px); line-height: 1.25; }
.tools__icon { flex: none; display: grid; place-items: center; width: clamp(64px, 6.9vw, 100px); height: clamp(64px, 6.9vw, 100px); background: #fff; transition: transform .3s var(--ease); }
.tools li:hover .tools__icon { transform: rotate(-6deg) scale(1.05); }
.tools__icon img { width: 70%; height: 70%; object-fit: contain; }
.eren { background: var(--rose); overflow: hidden; }
.eren__inner { display: grid; grid-template-columns: minmax(0, 458fr) minmax(0, 735fr); gap: 32px clamp(32px, 13vw, 189px); align-items: center; max-width: 1440px; margin-inline: auto; padding-right: clamp(16px, 4vw, 58px); }
.eren__image img { width: 100%; max-height: 728px; object-fit: cover; object-position: top; }
.eren__body { position: relative; padding-block: 48px; }
.eren__star { position: absolute; pointer-events: none; }
.eren__star--pink { width: 35px; left: 307px; top: 113px; animation: floaty 6s ease-in-out infinite; }
.eren__star--black { width: 30px; left: 407px; top: 128px; animation: floaty 7s ease-in-out -2s infinite; }
.eren__star--white { width: 70px; left: 327px; top: 153px; filter: brightness(0) invert(1); animation: floaty 8s ease-in-out -4s infinite; }
.st--eren { font-size: clamp(40px, 5vw, 72px); margin-bottom: 68px; }
.st--eren .st__line:last-child { margin-top: -.5em; }
.st--eren .script { font-size: 2em; }
.eren .prose p + p { margin-top: .8em; }
.eren__body .prose { font-size: clamp(18px, 1.95vw, 28px); font-weight: 400; line-height: 1.35; letter-spacing: .03em; }

/* ---------- Playground ---------- */
.playground { background: #fff; padding-top: 56px; }
.playground__intro { text-align: center; margin: -24px auto 40px; max-width: 640px; font-size: 16px; }
/* masonry: independent columns (filled by JS, shortest column first); every file keeps its own proportions */
.play-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 24px; }
.play-grid.is-masonry { display: flex; align-items: flex-start; gap: 24px; }
.play-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.play-card__media { display: block; width: 100%; padding: 0; border: 0; background: #eee; cursor: zoom-in; overflow: hidden; }
.play-card__media img, .play-card__media video { display: block; width: 100%; height: auto; transition: transform .7s var(--ease); }
div.play-card__media { cursor: default; }
.play-card:hover .play-card__media img { transform: scale(1.05); }
.play-card__title { font-size: 28px; font-weight: 700; margin-top: 12px; }
.play-card__details { font-size: 16px; }
.play-card__year { color: var(--pink); font-weight: 700; margin-top: 6px; }
.play-card.is-hidden { display: none; }

/* ---------- Services (a draft page until it is published from the admin) ---------- */
.services { background: #fff; padding-top: clamp(32px, 2.8vw, 40px); padding-bottom: clamp(48px, 4.4vw, 64px); }
.st--services { font-size: clamp(34px, 3.4vw, 49px); margin-bottom: 24px; }
.st--services .tag { --tag-bg: var(--lavender); }
.services__intro { text-align: center; margin: 0 auto clamp(40px, 4vw, 56px); max-width: 560px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.35; }
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4.7vw, 68px); max-width: 1220px; margin-inline: auto; }
.service { display: flex; flex-direction: column; align-items: flex-start; }
.service__media { width: 100%; aspect-ratio: 235 / 220; background: #d9d9d9; overflow: hidden; margin-bottom: clamp(20px, 2vw, 28px); }
.service__media img, .service__media video { width: 100%; height: 100%; object-fit: cover; }
.service__title { font-size: clamp(26px, 2.75vw, 40px); font-weight: 700; line-height: 1.12; margin-bottom: 16px; }
.service__lead, .service__text { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.3; }
.service__text { margin-top: 10px; }
.service__label { align-self: stretch; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--pink-line); font-size: clamp(13px, 1vw, 15px); font-weight: 300; letter-spacing: .02em; }
.service__list { margin-top: 18px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; }
.service__link { margin-top: 18px; }
@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; max-width: 520px; }
}
.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; background: rgba(20, 16, 20, .88); cursor: zoom-out; animation: fadeIn .3s; }
.lightbox img { max-width: 100%; max-height: 90vh; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: fadeUp .4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Contact ---------- */
.contact { background: #fff; padding-top: 48px; }
.contact .st { margin-bottom: 40px; }
.contact .st__line:first-child { color: var(--pink); }
.contact__intro { text-align: center; font-size: clamp(17px, 1.6vw, 21px); margin-bottom: 48px; }
.form { display: flex; flex-direction: column; }
.form__label { font-size: 14px; margin: 0 0 8px; }
.form__input { width: 100%; padding: 12px 16px; margin-bottom: 20px; border: 1px solid var(--pink-line); border-radius: 0; background: #fff; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.form__input::placeholder { color: #7d7480; }
.form__input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(233, 81, 112, .15); }
.form__input.is-invalid { border-color: #c0203f; }
.form__textarea { min-height: 96px; resize: vertical; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 0; }
.form .btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.form__status { min-height: 1.5em; margin-top: 14px; text-align: center; font-size: 16px; }
.form__status.is-ok { color: #3c7a43; }
.form__status.is-error { color: #c0203f; }
.contact__alt { text-align: center; margin-top: 48px; font-size: 20px; }
.contact__prefer { margin-bottom: 8px; }
.contact__email { color: var(--pink); text-underline-offset: 3px; }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 8px; }
.contact__links a { text-underline-offset: 3px; }

.notfound { background: var(--blush); min-height: 50vh; }
.notfound .lead { margin-bottom: 28px; }

/* ---------- In-place page navigation ---------- */
#main { transition: opacity .2s var(--ease), transform .25s var(--ease); }
#main:focus { outline: none; }
#main.is-leaving { opacity: 0; transform: translateY(8px); }
#main.is-entering { opacity: 0; transform: translateY(-6px); transition: none; }
.nav-progress { position: fixed; top: 0; left: 0; z-index: 300; height: 3px; width: 0; background: var(--pink); opacity: 0; pointer-events: none; transition: width .3s var(--ease), opacity .3s; }
.is-loading .nav-progress { width: 70%; opacity: 1; transition: width 4s cubic-bezier(.1, .7, .3, 1), opacity .1s; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* revealed buttons get their own hover motion back */
.js .btn[data-reveal].is-in { transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, opacity .8s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__list { gap: 14px; }
  .site-header__cta { padding-inline: 18px; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  /* backdrop-filter would trap the fixed mobile menu inside the header */
  .site-header { background: var(--cream); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .burger { display: block; }
  .site-header__cta { display: none; }
  /* phone header: the RC monogram and the menu button only (language switch moves into the menu) */
  .site-header { border-bottom-color: var(--pink-line); }
  .logo__full, .site-header__actions > .lang-switch { display: none; }
  .logo .logo__mark { display: block; width: 34px; height: 40px; object-fit: contain; }
  /* the menu drops down under the header: links, then a light pink block with the email and the CV */
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 90; flex-direction: column; justify-content: flex-start; align-items: stretch;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto; background: #fff; border-top: 1px solid var(--pink-line);
    box-shadow: 0 18px 30px -18px rgba(30, 30, 30, .35);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .35s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 2px; padding: 22px var(--gutter) 26px; }
  .site-header__actions { margin-left: auto; }
  .nav__link, .nav__link.is-active { font-size: 20px; font-weight: 300; padding: 9px 0; }
  .nav__link.is-active { color: var(--pink); }
  .nav__link::after, .has-nav-indicator .nav__link.is-active::after { display: none; }
  .nav__indicator { display: none; }
  .nav__extra { display: block; }
  .nav__extra > .lang-switch { margin: 0 var(--gutter) 18px; font-size: 15px; }
  .nav__contact { padding: 22px var(--gutter) 26px; background: var(--blush); }
  .nav__contact-label { font-size: 14px; }
  .nav__email { display: block; margin: 2px 0 12px; font-size: 20px; text-decoration: none; color: var(--black); }
  body.nav-open { overflow: hidden; }

  .pcard--wide, .pcard--wide-reverse { grid-template-columns: 1fr; }
  .pcard--wide .pcard__media { order: 0; }
  .home-about__stage { --u: 1px; display: grid; grid-template-columns: auto auto 1fr; align-items: end; column-gap: 12px; min-height: 0; padding: 56px var(--gutter) 56px; }
  .home-about__inner { display: contents; }
  .home-about__media { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: min(100%, 410px); padding: 20px 20px 0 0; }
  .home-about__dog, .home-about__arrow, .home-about__label { position: relative; left: auto; bottom: auto; grid-row: 2; }
  .home-about__dog { width: 130px; margin-top: -90px; }
  .home-about__arrow { width: 52px; margin-bottom: 18px; }
  .home-about__label { margin-bottom: 12px; }
  .home-about__body { grid-column: 1 / -1; grid-row: 3; padding-top: 40px; }
  .home-about__stars { width: 64px; top: 24px; right: var(--gutter); }
  .acc__content { grid-template-columns: 1fr; }
  .acc__img { max-height: 240px; }
  .cards3 { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .icard__title { margin-top: 0; }
  .cs-hero__top, .cs-band__inner, .structure__inner, .desktop__inner, .about-hero__inner { grid-template-columns: 1fr; }
  .cols3 { grid-template-columns: 1fr; gap: 32px; }
  .about-hero__image { max-width: 360px; margin-inline: auto; }
  .about-hero__body { padding-bottom: 8px; }
  .structure__left { max-width: 520px; }
  .st--tilt { justify-self: center; }
  .eren__inner { grid-template-columns: 1fr; padding-inline: 0; }
  .eren__image { max-width: 420px; }
  .eren__body { padding: 0 var(--gutter) 48px; }
  .eren__star { display: none; }
  .note { position: relative; top: 0; left: 0; margin-bottom: 40px; rotate: -4deg; }
  .follow__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__side { align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .pgrid, .cols2, .cs-foundation__images, .cols-auto, .cs-mediatext__inner { grid-template-columns: 1fr; }
  .cs-mediatext--right .cs-mediatext__media { order: 0; }
  /* case study galleries on a phone: sized to the screen, whole files in their own proportions, in their order */
  .cs-grid__cols { columns: min(2, var(--cols, 3)); column-gap: 10px; }
  .cs-grid__item { margin-bottom: 10px; }
  .cs-strip { padding-block: 20px; }
  .cs-strip__item { padding-right: 10px; }
  .cs-strip__item img, .cs-strip__item video { height: auto; width: auto; max-height: min(52vw, 220px); max-width: calc(100vw - 64px); object-fit: contain; }
  .cs-gallery { --cols: 3 !important; }
  .st--hero .script { font-size: 1.12em; }
  /* the lines fill the width here: the stars move above the first line's ends */
  .st--hero .st__line:first-child::before { width: .7em; right: auto; left: -.3em; top: -1.15em; }
  .st--hero .st__line:first-child::after { width: .7em; left: auto; right: -.3em; top: -1.15em; }
  .st--hero .st__line + .st__line::before { display: none; }
  .acc__btn { gap: 14px; padding-inline: 10px; }
  .acc__content { padding-inline: 10px; }
  .slider { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 8px; }
  .slider__arrow { width: 40px; }
  .cta-bar__inner { gap: 24px; }
  .btn--lg { padding-inline: 36px; font-size: 19px; }
  .follow__foot { flex-direction: column-reverse; align-items: flex-start; }
  .follow__handle { margin-left: 0; }
  .site-footer__bottom { flex-direction: column; gap: 4px; }
  .site-footer__legal { display: contents; }
  .site-footer__credit { order: 1; }
  .lang-switch { font-size: 13px; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .tools li { gap: 16px; }
  .tools__icon { width: 60px; height: 60px; }
  .tools__icon img { width: 38px; height: 38px; }
  .structure__star--pink { left: -20px; width: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .cs-strip { overflow-x: auto; }
  .cs-strip__track { animation: none; }
  .cs-strip { cursor: auto; }
  .cs-strip__item[aria-hidden] { display: none; }
}

/* ---------- Phones: v5 corrections ---------- */
@media (max-width: 960px) {
  /* accordion: the open row keeps its line, number colour and icon (now ×) instead of turning solid pink */
  .acc__btn:hover, .acc__btn:focus-visible, .acc.is-open .acc__btn {
    background-size: calc(100% - 2 * clamp(10px, 1.4vw, 20px)) 2px; color: inherit; box-shadow: none;
  }
  .acc.is-open .acc__btn { padding-block: clamp(18px, 2.1vw, 30px) 8px; }
  .acc__btn:hover .acc__num, .acc__btn:focus-visible .acc__num, .acc.is-open .acc__num { color: var(--acc); }
  .acc__btn:hover .acc__icon, .acc__btn:focus-visible .acc__icon, .acc.is-open .acc__icon { background: var(--acc); }
  /* Eren: title and text first, the photo below them */
  .eren__body { order: 1; padding-top: 48px; }
  .eren__image { order: 2; max-width: 300px; }
  .eren__star { display: block; }
  .eren__star--pink { width: 20px; left: calc(var(--gutter) + 150px); top: 92px; }
  .eren__star--black { width: 16px; left: calc(var(--gutter) + 205px); top: 102px; }
  .eren__star--white { width: 40px; left: calc(var(--gutter) + 160px); top: 108px; }

  /* "Hi, I'm Raia!": title, text and button first; the photo after them with Eren over its lower left corner */
  .home-about__body { grid-row: 1; padding-top: 0; }
  .home-about__media { grid-row: 2; margin-top: 40px; }
  .home-about__dog, .home-about__arrow, .home-about__label { grid-row: 3; }
  /* case study: the section bar is a dropdown showing the current section */
  /* one low row: the project name (once scrolled) and the current section; the list drops down under it */
  .cs-tabs__bar { position: relative; }
  .cs-tabs__name { font-size: 17px; }
  .cs-tabs.is-compact .cs-tabs__name { max-width: 50%; margin-right: 16px; text-overflow: ellipsis; }
  .cs-tabs__toggle { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border: 0; background: none; font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
  .cs-tabs__toggle span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cs-tabs.is-compact .cs-tabs__toggle span { color: var(--muted); }
  .cs-tabs__chev { width: 10px; height: 10px; margin: -4px 4px 0 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease), margin .3s var(--ease); }
  .cs-tabs.is-open .cs-tabs__chev { transform: rotate(-135deg); margin-top: 6px; }
  .cs-tabs__inner { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 4px var(--gutter) 10px; overflow: visible; background: #fff; border-bottom: 1px solid var(--pink-line); box-shadow: 0 14px 24px -16px rgba(30, 30, 30, .3); }
  .cs-tabs.is-open .cs-tabs__inner { display: flex; }
  .cs-tabs__link { padding: 10px 0; }
  .cs-tabs__link::after { display: none; }
  .cs-tabs__link.is-active { color: var(--pink); font-weight: 400; }
  /* nothing may widen the page sideways */
  html, body { overflow-x: clip; }
  .cs-body img, .cs-body video { max-width: 100%; height: auto; }
  /* "Hi I'm Raia!" stays one composition on a phone: a smaller title that wraps instead of running off */
  .st--hi { font-size: 30px; flex-wrap: wrap; align-items: baseline; }
  .st--hi .st__line { max-width: 100%; }
  .st--hi .script { font-size: 1.75em; }
  /* stars around the titles, never over the text */
  .about-hero__star--lilac { width: 52px; left: 66%; top: 118px; }
  .about-hero__star--pink { left: 8%; top: 40px; width: 24px; }
  .about-hero__star--black { left: auto; right: 6%; top: 70px; width: 24px; }
}
