@font-face {
  font-family: "Bebas Neue";
  src: url("fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("fonts/MartianMono-Variable.ttf") format("truetype");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

/* Everything is measured from the 2000px-wide Figma frame.
   --u = 1 design pixel, scaled to the viewport width. */
:root {
  /* scale to whichever is tighter — width or height — so the page always fits one screen */
  --u: min(calc(100vw / 2000), calc(100vh / 1420));
  --ink: #000;
  --paper: #fff;
  --magenta: #ff00e6;
  --lilac: #c8b8ff;
  --lime: #dfff88;
  --orange: #ff6a1f;
  --blue: #0201fc;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* pixel-arrow cursor everywhere (pink); turns blue over anything clickable */
html, body { cursor: url("images/cursor.svg") 3 3, auto; }
a, button, .tile, .index__row, a * { cursor: url("images/cursor-hover.svg") 3 3, pointer; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Martian Mono", monospace;
}
/* home page: exactly one screen, no scroll */
body.home {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---------- Nav ---------- */
.nav {
  display: grid;
  grid-template-columns: 44.8% 17.9% 16.5% 1fr;
  height: calc(109 * var(--u));
  border-bottom: max(1px, calc(2 * var(--u))) solid var(--ink);
}
.nav__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  font-size: calc(29.5 * var(--u));
  font-weight: 350;
  font-stretch: 87.5%;
  transition: background .2s;
}
.nav__cell + .nav__cell { border-left: max(1px, calc(2 * var(--u))) solid var(--ink); }
.nav__cell:hover { background: var(--lime); }
.nav__cell[aria-current="page"]:not(.nav__name) { background: var(--ink); color: var(--paper); }
.nav__name { font-weight: 500; font-size: calc(30 * var(--u)); }

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 calc(40 * var(--u)) max(16px, 3.1vw);
}
.hero__title {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: calc(139 * var(--u));
  line-height: calc(153 * var(--u));
  padding-left: 0;
  letter-spacing: -0.016em;
}
.hero__line { display: flex; align-items: flex-end; }
.icons {
  position: relative;
  width: calc(112 * var(--u));
  height: calc(115 * var(--u));
  margin-left: calc(52 * var(--u));
  margin-bottom: calc(26 * var(--u));
  flex-shrink: 0;
}
.icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .2s ease, transform .2s ease;
}
.icon.is-active { opacity: 1; transform: scale(1); }
.hero__sub {
  margin-top: calc(40 * var(--u));
  max-width: calc(1200 * var(--u));
  font-size: calc(35.8 * var(--u));
  font-weight: 300;
  font-stretch: 87.5%;
  line-height: calc(40 * var(--u));
  color: var(--ink);
  text-wrap: pretty;
}

/* ---------- Color bars ---------- */
.bars__row { height: calc(146 * var(--u)); overflow: hidden; }
/* each track holds the row twice (200% wide) and loops seamlessly */
.bars__track { display: flex; width: 200%; height: 100%; will-change: transform; }
.bars__track--right { animation: loop-right 18s linear infinite; }
.bars__track--left  { animation: loop-left 18s linear infinite; }
.bar { display: block; height: 100%; flex-shrink: 0; }
.bar--magenta { width: 30.1%;   background: var(--magenta); }
.bar--lilac   { width: 19.9%;   background: var(--lilac); }
.bar--lime    { width: 29.475%; background: var(--lime); }
.bar--orange  { width: 20.525%; background: var(--orange); }

@keyframes loop-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes loop-left  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bars__track { animation: none; } .bars__track--right { transform: translateX(-50%); } }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --u: calc(100vw / 760); }
  .nav { grid-template-columns: 1.6fr 1fr 1fr 1fr; height: 56px; }
  body.home { height: auto; min-height: 100dvh; overflow: visible; }
  .nav__cell { font-size: 11px; }
  .hero { padding: 72px 16px 56px; min-height: 0; }
  .hero__title { font-size: 15vw; line-height: 1.05; padding-left: 0; }
  .hero__line { flex-wrap: wrap; }
  .icons { width: 11vw; height: 11.3vw; margin-left: 3vw; margin-bottom: 2.6vw; }
  .hero__sub { font-size: 13px; line-height: 1.55; margin-top: 24px; max-width: none; }
  .bars__row { height: 56px; }
}

/* ---------- Index page ---------- */
.page-index .nav, .page-projects .nav { position: sticky; top: 0; background: var(--paper); z-index: 3; }
.index {
  --gutter: 24px;
  padding: 56px 0 120px;          /* lines run edge to edge */
  font-weight: 200;               /* Martian Mono ExtraLight */
  font-stretch: 87.5%;
}
.index__heading {
  padding: 0 var(--gutter) 28px;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(56px, calc(139 * var(--u)), 139px);
  line-height: .9;
  letter-spacing: -0.016em;
}
.index__row {
  color: inherit;
  text-decoration: none;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 80px;
  align-items: center;
  column-gap: 24px;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--ink);
  font-size: 15px;
}
.index__row:last-child { border-bottom: 1px solid var(--ink); }
.index__year { text-align: right; }
.index__tag { margin-left: 10px; font-size: 10px; color: #8a8a8a; }

/* hover: black band with scrolling "View Project" */
.index__hover {
  position: absolute;
  inset: -1px 0;
  background: var(--lime);
  color: var(--ink);
  display: flex;
  align-items: center;
  overflow: hidden;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.index__marquee { display: flex; flex-shrink: 0; animation: view-project 14s linear infinite; }
.index__marquee span { padding-right: 64px; white-space: nowrap; }
.index__hover .index__marquee { padding-left: var(--gutter); }
.index__row:hover .index__hover { opacity: 1; }
@keyframes view-project { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* floating cover image */
.index__preview {
  position: fixed;
  top: 50%;
  left: 67%;                       /* always the same spot, right side of the page */
  transform: translateY(-40%);
  width: clamp(200px, 18vw, 320px);
  aspect-ratio: 4 / 5;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.index__preview.is-visible { opacity: 1; }
.index__preview img, .index__preview video { display: none; width: 100%; height: 100%; object-fit: cover; }
.index__preview .is-on { display: block; }

@media (max-width: 640px) {
  .index { --gutter: 16px; padding-top: 32px; }
  .index__row { padding: 14px var(--gutter); }
  .index__row { grid-template-columns: 1fr 48px; row-gap: 2px; font-size: 13px; }
  .index__field { grid-row: 2; color: #666; }
  .index__year { grid-row: 1 / 3; grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .index__marquee { animation: none; } }

/* ---------- Projects page ---------- */
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 24px;
  padding: 24px 24px 120px;
  font-stretch: 87.5%;
}
.tile { display: block; color: inherit; text-decoration: none; }
.tile__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f2f2f2;
}
.tile__media img, .tile__media video {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.tile:hover .tile__media img, .tile:hover .tile__media video { transform: scale(1.03); }
.tile__media--empty { display: grid; place-items: center; }
.tile__icon { width: 18%; height: auto; fill: var(--ink); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover .tile__icon { transform: scale(1.1) rotate(-6deg); }
.tile__media img.tile__icon { position: static; width: 13%; height: auto; object-fit: contain; }
.tile:hover .tile__media img.tile__icon { transform: scale(1.1) rotate(-6deg); }

.tile__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 14px;
}
.tile__name { font-size: 16px; font-weight: 400; }
.tile__meta {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 200;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .projects { grid-template-columns: 1fr; gap: 40px; padding: 20px 20px 80px; }
  .tile__name { font-size: 15px; }
  .tile__caption { flex-wrap: wrap; row-gap: 4px; }
  .tile__meta { font-size: 12px; gap: 14px; }
}


/* ---------- Project page ---------- */
.page-project .nav { position: sticky; top: 0; background: var(--paper); z-index: 3; }
/* ---------- Project pages ----------
   One grid for the whole page, on the same lines as the header:
   | side (label + text) — up to the "Index" line | main (screens) — to the right edge | */
.project {
  --gutter: 24px;
  --grid: 22.4% 22.4% 17.9% 16.5% 1fr;
  --phone: clamp(220px, 17vw, 340px);
  font-stretch: 87.5%;
  font-weight: 200;               /* Martian Mono ExtraLight */
}

.p-hero { padding-top: 56px; }
.p-title {
  padding: 0 var(--gutter);
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(64px, 10vw, 180px);
  line-height: .88;
  letter-spacing: -0.016em;
}
.p-info {
  display: grid;
  grid-template-columns: var(--grid);
  margin-top: 40px;
  border-top: 1px solid var(--ink);
  font-size: 14px;
  line-height: 1.75;
}
.p-info > * { padding: 20px var(--gutter) 64px; }
.p-facts { grid-column: 1; display: grid; gap: 12px; align-content: start; }
.p-facts dt { font-size: 11px; color: #8a8a8a; }
.p-facts dd { margin: 0; }
.p-credits { grid-column: 2; list-style: none; font-size: 13px; color: #555; }
.p-desc { grid-column: 3 / -1; }
.p-desc p { max-width: 64ch; }
.p-desc p + p { margin-top: 1em; }

.p-body { padding-bottom: 120px; }

/* big section title: MANAGER DASHBOARD / EMPLOYEE MOBILE APP / RESEARCH */
.sec-title {
  margin-top: 72px;
  padding: 20px var(--gutter) 24px;
  border-top: 1px solid var(--ink);
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: clamp(56px, 7vw, 128px);
  line-height: .88;
  text-transform: uppercase;
}

/* one section */
.blk {
  display: grid;
  grid-template-columns: var(--grid);
  border-top: 1px solid var(--ink);
}
.blk__side { grid-column: 1 / 3; padding: 20px var(--gutter) 48px; }
.blk__sticky { position: sticky; top: 100px; }
.blk__main {
  grid-column: 3 / -1;
  min-width: 0;
  padding: 20px var(--gutter) 72px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.blk--wide .blk__main { grid-column: 1 / -1; align-items: stretch; }
.blk__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.blk__label + .p-text { margin-top: 14px; }

.p-text { font-size: 14px; line-height: 1.75; }
.p-text > * { max-width: 64ch; }
.p-text strong { font-weight: 500; }
.p-text p + p, .p-text ul + p, .p-text p + ul { margin-top: .9em; }
.p-text ul { padding-left: 1.2em; }

/* screens */
.m { margin: 0; min-width: 0; }
.m--land { width: 100%; }
.m--port { width: var(--phone); }
.m img { display: block; width: 100%; height: auto; }
.m-vid { position: relative; width: 100%; background: #f2f2f2; }
.m--port .m-vid { background: transparent; }
.m-vid video, .m-vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.m figcaption { margin-top: 10px; font-size: 12px; color: #8a8a8a; }
.m-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px; width: 100%; }
.m-row .m--land { flex: 1 1 0; min-width: min(100%, 360px); width: auto; }
.m-row .m--port { flex: 0 0 var(--phone); }
/* a row of phones only: always side by side, equal size */
.m-row:not(:has(.m--land)) {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, var(--phone));
  align-items: start;
}
.m-row:not(:has(.m--land)) .m--port { width: auto; }
.m-grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 24px; width: 100%; }
.m-grid--phones { grid-template-columns: repeat(var(--cols), minmax(0, var(--phone))); }
.m-grid img { display: block; width: 100%; height: auto; }

.p-next {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 40px 24px;
  border-top: 1px solid var(--ink);
  color: inherit;
  text-decoration: none;
  transition: background .25s;
}
.p-next:hover { background: var(--lime); }
.p-next__label { font-size: 14px; font-weight: 300; font-stretch: 87.5%; }
.p-next__name {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(40px, 6vw, 96px);
  line-height: .9;
  text-transform: uppercase;
  text-align: right;
}

/* ---------- Visual language ---------- */
.swatches { list-style: none; display: flex; flex-wrap: wrap; gap: 32px; }
.swatches li { display: flex; flex-direction: column; gap: 12px; font-size: 12px; }
.swatch { display: block; width: clamp(96px, 9vw, 160px); aspect-ratio: 1; border-radius: 50%; border: 1px solid #e6e6e6; }
.swatches code { font-family: inherit; letter-spacing: .04em; }
.illos { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; align-items: end; width: 100%; }
.illos img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: contain; object-position: bottom; }

/* ---------- Research (live text replacing a research image) ---------- */
.research .sec-title { margin-top: 72px; }
.case__num { font-family: "Bebas Neue", sans-serif; font-size: 48px; line-height: .9; }
.case__head .blk__label { margin-top: 12px; }
.case__logo { display: block; height: 32px; width: auto; margin-top: 20px; }
.case__logo--mark { height: 44px; }
.case__body { font-size: 14px; line-height: 1.75; }
.case__body p { max-width: 64ch; }
.case__body strong { font-weight: 500; }
.case__shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; width: 100%; }
.case__shots img { display: block; width: 100%; height: auto; border: 1px solid #e6e6e6; }
.case__shots--single { grid-template-columns: minmax(0, 760px); }
.case__shots--phones { grid-template-columns: repeat(4, minmax(0, var(--phone))); }
.case__shots--phones img { border: 0; }
.case__shots figure { margin: 0; min-width: 0; }
.case__shots figcaption, .m figcaption { margin-top: 12px; font-size: 11px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: #8a8a8a; }
.case__badges { display: grid; grid-template-columns: repeat(4, minmax(0, 120px)); gap: 24px; align-items: end; width: 100%; }
.case__badges img { display: block; width: 100%; height: auto; }
.case__badges-cap { grid-column: 1 / -1; font-size: 11px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: #8a8a8a; }
/* bare app screens (no marketing background): our own minimal frame */
.case__shots img.screen { border: 1px solid #dcdcdc; border-radius: 12% / 5.6%; }
.case__takeaway { padding-top: 14px; border-top: 1px solid #e3e3e3; }
.case__takeaway::before {
  content: "Takeaway";
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a8a8a;
}

@media (max-width: 760px) {
  .project { --gutter: 16px; --phone: calc(50vw - 24px); }
  .p-hero { padding-top: 32px; }
  .p-info { grid-template-columns: 1fr 1fr; }
  .p-info > * { padding-bottom: 32px; }
  .p-facts { grid-column: 1; } .p-credits { grid-column: 2; } .p-desc { grid-column: 1 / -1; padding-top: 0; }
  .blk { grid-template-columns: 1fr; }
  .blk__side, .blk__main, .blk--wide .blk__main { grid-column: 1; }
  .blk__side { padding-bottom: 0; }
  .blk__sticky { position: static; }
  .blk__main { padding-bottom: 48px; gap: 20px; }
  .m-row, .m-grid { gap: 12px; }
  .m-grid--phones, .case__shots--phones { grid-template-columns: repeat(2, 1fr); }
  .m-row .m--port { flex: 0 0 calc(50% - 6px); width: calc(50% - 6px); }
  .m-row:not(:has(.m--land)) { grid-auto-columns: minmax(0, 1fr); }
  .illos { grid-template-columns: repeat(3, 1fr); }
  .case__shots { grid-template-columns: 1fr; }
  .case__shots--phones, .m-row:not(:has(.m--land)), .m-grid--phones {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
    scrollbar-width: none;
  }
  .case__shots--phones > *, .m-row:not(:has(.m--land)) > *, .m-grid--phones > * { flex: 0 0 58vw; width: 58vw; scroll-snap-align: start; }
  .m-grid.m-grid--phones > img { width: 58vw; }
  .p-next { flex-direction: column; padding: 32px 16px; }
  .p-next__name { text-align: left; }
}

/* ---------- Yamim Levanim: a quieter, gallery-like layout ---------- */
.yl { --paper: #f5f3ee; --kraft: #cbbfae; }
.yl-tag {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px var(--gutter);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.yl-tag span { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 32px; letter-spacing: 0; line-height: .8; }
.yl-tag em { font-style: normal; font-weight: 300; color: #8a8a8a; }
.yl figcaption { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a8a8a; }

.yl-band { position: relative; background: var(--paper); border-top: 1px solid var(--ink); }

/* 01 logo */
.yl-logo { padding-bottom: 12vh; background: none; }
.yl-logo__mark { margin: 6vh auto 0; width: min(900px, 80%); text-align: center; }
.yl-logo__mark img { display: block; width: 100%; height: auto; }
.yl-logo__mark figcaption { margin-top: 32px; }

/* 02 elements: two objects floating in one quiet space */
.yl-elements { height: min(78vh, 760px); min-height: 520px; overflow: hidden; }
.yl-el { position: absolute; margin: 0; }
.yl-el img { display: block; width: 100%; height: auto; filter: drop-shadow(0 32px 26px rgba(0,0,0,.18)); }
.yl-el figcaption { margin-top: 14px; }
.yl-el--wood { top: 16%; right: 6%; width: 50%; animation: yl-float 9s ease-in-out infinite alternate; }
.yl-el--stone { bottom: 12%; left: 16%; width: 11%; animation: yl-float 11s ease-in-out -4s infinite alternate; }
.yl-el--wood figcaption { text-align: right; }
@keyframes yl-float { from { transform: translateY(-8px) rotate(-.6deg); } to { transform: translateY(8px) rotate(.6deg); } }

/* 03 posters: big, side by side */
.yl-posters { border-top: 1px solid var(--ink); padding-bottom: 14vh; }
.yl-posters__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4vw; padding: 4vh 4vw 0; }
.yl-posters__row img {
  display: block; width: 100%; height: auto;
  box-shadow: 0 40px 70px -40px rgba(0,0,0,.45);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.yl-posters__row img:hover { transform: translateY(-8px); }

/* 04 soaps: staggered, like objects laid on a table */
.yl-soaps { border-top: 1px solid var(--ink); padding-bottom: 10vh; }
.yl-soaps__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6vw; padding: 2vh 4vw 0; }
.yl-soaps__grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.yl-soaps__grid .yl-soaps__hero { grid-column: 1 / -1; aspect-ratio: 16 / 9.9; }

/* 05 parchment: the print sheets as translucent waxed paper on kraft */
.yl-parch { background: var(--kraft); border-top: 1px solid var(--ink); padding-bottom: 14vh; }
.yl-parch__row { display: flex; justify-content: center; padding: 6vh 4vw 0; }
.yl-sheet {
  position: relative;
  flex: 0 1 36%;
  margin: 0 -2.5%;
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0));
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  filter: drop-shadow(0 18px 24px rgba(60,45,25,.25));
}
.yl-sheet:nth-child(1) { --r: -3deg; --y: 2vw; z-index: 1; }
.yl-sheet:nth-child(2) { --r: 1.5deg; z-index: 2; }
.yl-sheet:nth-child(3) { --r: -1deg; --y: 3vw; z-index: 3; }
.yl-sheet img {
  display: block; width: 100%; height: auto;
  opacity: .8;                     /* translucent: the kraft and the sheet below show through */
  mix-blend-mode: multiply;
}
.yl-sheet::after {                 /* waxed sheen + fine paper grain on top of the print */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,.18) 60%, rgba(255,255,255,0) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
  opacity: .55;
}
.yl-sheet:hover { --r: 0deg; --y: -10px; z-index: 4; }

/* 06 bottles */
.yl-bottles { border-top: 1px solid var(--ink); padding-bottom: 10vh; }
.yl-bottles img { display: block; width: calc(100% - 8vw); margin: 2vh auto 0; height: auto; }

/* 07 candle */
.yl-candles { border-top: 1px solid var(--ink); padding-bottom: 10vh; }
.yl-candles__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6vw; padding: 2vh 4vw 0; }
.yl-candles__row img { display: block; width: 100%; aspect-ratio: 1.11; object-fit: cover; }

/* 08 candle wrap: the real cotton, moving, fading into the page */
.yl-fabric { border-top: 1px solid var(--ink); padding-bottom: 12vh; }
.yl-fabric__stage { display: flex; flex-direction: column; align-items: center; padding: 2vh 4vw 0; }
.yl-fabric__stage .yl-cloth { width: min(1400px, 78%); }
.yl-cloth { position: relative; aspect-ratio: 16 / 10.5; }
.yl-cloth::after {                       /* soft shadow the cloth casts on the page */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 9%; height: 9%;
  background: radial-gradient(ellipse at center, rgba(70,55,35,.22), transparent 70%);
  filter: blur(14px); z-index: -1;
}
.yl-cloth canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.yl-cloth__still { position: absolute; inset: 12% 14%; width: 72%; height: 76%; object-fit: cover; transition: opacity .6s; }
.yl-fabric__note { font-size: 13px; line-height: 1.7; max-width: 46ch; text-align: center; }

/* 09 notebooks */
.yl-notebooks { border-top: 1px solid var(--ink); padding-bottom: 10vh; }
.yl-notebooks__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6vw; padding: 2vh 4vw 0; }
.yl-notebooks__row img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.yl-notebooks__note { padding: 24px 4vw 0; max-width: calc(46ch + 8vw); font-size: 14px; line-height: 1.75; }

/* 10 clip */
.yl-clip { border-top: 1px solid var(--ink); padding-bottom: 12vh; }
/* the whole clip + its controls fit on one screen (header ≈ 80px, label + controls ≈ 130px) */
.yl-clip { --clip-w: min(calc(100% - 8vw), calc((100vh - 230px) * 16 / 9)); }
.yl-clip__frame { position: relative; width: var(--clip-w); margin: 1vh auto 0; background: #000; }
.yl-clip__frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.yl-clip__frame video { cursor: pointer; }
.yl-clip__frame video:fullscreen { object-fit: contain; background: #000; }
.yl-player { display: flex; align-items: center; gap: 16px; width: var(--clip-w); margin: 0 auto; padding: 14px 0; border-bottom: 1px solid var(--ink); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.yl-player button { padding: 6px 12px; border: 1px solid var(--ink); background: none; color: var(--ink); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; min-width: 78px; }
.yl-player button:hover { background: var(--lime); }
.yl-player button { flex-shrink: 0; white-space: nowrap; }
.yl-player__full { min-width: 0 !important; display: grid; place-items: center; }
.yl-player__full svg { display: block; }
.yl-player__seek { min-width: 40px; }
.yl-player__time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.yl-player__seek {
  flex: 1; height: 18px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.yl-player__seek::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(var(--ink), var(--ink)) 0 / var(--p, 0%) 100% no-repeat, #d6d6d6; }
.yl-player__seek::-moz-range-track { height: 2px; background: #d6d6d6; }
.yl-player__seek::-moz-range-progress { height: 2px; background: var(--ink); }
.yl-player__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5px; border-radius: 50%; background: var(--ink); }
.yl-player__seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--ink); }

@media (prefers-reduced-motion: reduce) { .yl-el { animation: none; } }

@media (max-width: 760px) {
  .yl-logo__mark { width: 92%; margin-top: 2vh; }
  .yl-elements { height: 120vw; min-height: 0; }
  .yl-el--wood { top: 14%; right: 4%; width: 78%; }
  .yl-el--stone { bottom: 8%; left: 12%; width: 24%; }
  .yl-posters__row {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 2vh 16px 24px; scrollbar-width: none;
  }
  /* parchment on a phone: the sheets lie on top of each other, slightly fanned, so the
     translucency shows where they overlap */
  .yl-parch__row { display: block; padding: 3vh 16px 0; }
  .yl-parch__row .yl-sheet { width: 92%; margin: -16% 0 0; }
  .yl-parch__row .yl-sheet:first-child { margin-top: 0; }
  .yl-parch__row .yl-sheet:nth-child(2) { margin-left: auto; }
  .yl-parch__row .yl-sheet:nth-child(1) { --r: -2.5deg; --y: 0; }
  .yl-parch__row .yl-sheet:nth-child(2) { --r: 2deg; --y: 0; }
  .yl-parch__row .yl-sheet:nth-child(3) { --r: -1.2deg; --y: 0; }
  .yl-posters__row img { flex: 0 0 78vw; width: 78vw; scroll-snap-align: center; }
  .yl-soaps__grid { gap: 8px; padding: 0 16px; }
  .yl-bottles img { width: calc(100% - 32px); }
  .yl-candles__row { gap: 8px; padding: 0 16px; }
  .yl-fabric__stage { padding: 0; }
  .yl-fabric__stage .yl-cloth { width: 100%; }
  .yl-notebooks__row { gap: 8px; padding: 0 16px; }
  .yl-clip { --clip-w: calc(100% - 32px); }
  .yl-player { gap: 10px; }
  .yl-player button { min-width: 0; padding: 6px 8px; }
  .yl-player { flex-wrap: wrap; row-gap: 12px; }
  .yl-player__seek { order: 5; flex-basis: 100%; }
  .yl-player__sound { margin-left: auto; }
  .yl-player__time { font-size: 10px; }
  .yl-notebooks__row { grid-template-columns: 1fr; }
  .yl-notebooks__note { padding: 16px 16px 0; }
  .yl-fabric__note { padding: 0 16px; }
}

/* ---------- Balance: one wordmark, many waves ---------- */
.bl { overflow-x: clip; }
.bl section { border-top: 1px solid var(--ink); padding-bottom: 10vh; }
.bl-logo__note { padding: 0 var(--gutter); max-width: calc(52ch + 2 * var(--gutter)); font-size: 14px; line-height: 1.75; }
/* each wave is drawn on a very wide frame, so it keeps running past both edges of the screen */
.bl-wave { margin: 4vh 0 0; position: relative; }
.bl-wave img { display: block; width: 104vw; max-width: none; margin-left: -2vw; height: auto; }
.bl-wave figcaption {
  position: absolute; left: var(--gutter); bottom: 22%;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a8a8a;
}
.bl-wide { display: block; width: calc(100% - 8vw); height: auto; margin: 2vh auto 0; }
.bl-wide + .bl-wide { margin-top: 1.6vw; }
.bl-flat { display: block; width: min(980px, 56vw); height: auto; margin: 4vh auto 6vh; filter: drop-shadow(0 24px 34px rgba(120, 20, 80, .16)); }
.bl-flatfig { position: relative; margin: 0; }
/* "Dieline" — a centred title above each flat layout */
.bl-flatfig figcaption {
  margin: 5vh 0 0; text-align: center;
  font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 34px; letter-spacing: .02em; line-height: .9;
}
.bl-flatfig .bl-flat { margin-top: 2.5vh; }
.bl-flat--label { width: min(1200px, 72vw); filter: drop-shadow(0 24px 34px rgba(170, 80, 20, .16)); }
.bl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6vw; padding: 0 4vw; }
.bl-pair img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bl-pair { margin-top: 2vh; }
.bl-posters__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2vw; padding: 2vh 4vw 0; }
.bl-posters__row img { display: block; width: 100%; height: auto; box-shadow: 0 30px 60px -36px rgba(0,0,0,.45); }
.bl-posters__row + .bl-wide { margin-top: 6vh; }
@media (max-width: 760px) {
  .bl-wave img { width: 250vw; margin-left: -75vw; }
  .bl-wave figcaption { position: static; padding: 4px 16px 0; }
  .bl-wide { width: calc(100% - 32px); }
  .bl-flat, .bl-flat--label { width: calc(100% - 32px); margin-bottom: 12px; }
  .bl-flatfig figcaption { margin-top: 3vh; font-size: 28px; }
  .bl-pair { grid-template-columns: 1fr; gap: 8px; padding: 0 16px; }
  .bl-posters__row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2vh 16px 16px; scrollbar-width: none; }
  .bl-posters__row img { flex: 0 0 72vw; width: 72vw; scroll-snap-align: center; }
}

/* ---------- 3D artefacts: quiet, slowly turning, floating a little ---------- */
.m3d { margin: 0; }
.m3d model-viewer {
  display: block; width: 100%; height: 300px; background: transparent;
  --poster-color: transparent; --progress-bar-color: transparent;
  animation: m3d-float 7s ease-in-out infinite alternate;
}
.m3d__hint {
  display: inline-flex; align-items: center; gap: 6px; margin: 10px auto 0; padding: 5px 10px;
  border: 1px solid #d8d8d8; border-radius: 999px;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #6f6f6f;
  animation: m3d-hint 2.4s ease-in-out infinite;
}
.m3d__hint svg { flex: none; }
@keyframes m3d-hint { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.m3d--hero { align-items: center; padding-bottom: 32px !important; }
.m3d figcaption { margin-top: 6px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #9a9a9a; }
@keyframes m3d-float { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
.blk__side .m3d { margin-top: 28px; max-width: 280px; }
/* hero: the gilded coffin stands in the header row, in the last column of the grid */
.p-info:has(.m3d--hero) .p-desc { grid-column: 3 / 5; }
.m3d--hero { grid-column: 5; grid-row: 1; align-self: stretch; padding: 0 var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.m3d--hero model-viewer { height: min(560px, 62vh); }
.m3d--hero figcaption { text-align: center; }
@media (prefers-reduced-motion: reduce) { .m3d model-viewer { animation: none; } }
@media (max-width: 760px) {
  .p-info:has(.m3d--hero) .p-desc { grid-column: 1 / -1; }
  .m3d--hero { grid-column: 1 / -1; grid-row: auto; padding-top: 0; }
  .m3d--hero model-viewer { height: 340px; }
  .blk__side .m3d { max-width: none; }
  .blk__side .m3d model-viewer { height: 240px; }
}

/* ---------- Egyptian Afterlife: bigger screens ---------- */
/* the four opening screens read as one set: two rows, desktop + phone, same sizes */
.page-egyptian-afterlife .project { --phone: clamp(270px, 22vw, 460px); }
.page-egyptian-afterlife .blk--opening + .blk--opening { border-top: 0; }
.page-egyptian-afterlife .blk--opening .blk__main { padding: 2vh 4vw; }
.page-egyptian-afterlife .blk--opening .m-row { justify-content: center; align-items: center; gap: 3vw; flex-wrap: nowrap; }
.page-egyptian-afterlife .blk--opening .m-row .m--land { flex: 0 1 62%; }
.page-egyptian-afterlife .blk--opening .m-row .m--port { flex: 0 0 var(--phone); }
/* everywhere else: a narrower text column so the screens get more room */
@media (min-width: 761px) {
  .page-egyptian-afterlife .blk:not(.blk--wide) .blk__side { grid-column: 1; }
  .page-egyptian-afterlife .blk:not(.blk--wide) .blk__main { grid-column: 2 / -1; }
}
/* flow chart + wireframes: reference material, so they take far less room */
.page-egyptian-afterlife .m--land:has(img[src$="egyptian-afterlife/03.jpg"]) { width: min(100%, 760px); }
.page-egyptian-afterlife .m--land:has(img[src$="egyptian-afterlife/09.jpg"]) { width: min(100%, 860px); }
/* the museum objects that inspired the project: smaller, one row */
.page-egyptian-afterlife .m-grid:not(.m-grid--phones) { grid-template-columns: repeat(4, 1fr); gap: 2vw; max-width: 980px; align-items: end; }
.page-egyptian-afterlife .m-grid:not(.m-grid--phones) img { max-height: 260px; object-fit: contain; }
@media (max-width: 760px) {
  .page-egyptian-afterlife .blk--opening .m-row { flex-wrap: wrap; }
  .page-egyptian-afterlife .blk--opening .m-row .m--land { flex: 1 1 100%; }
  .page-egyptian-afterlife .m-grid:not(.m-grid--phones) { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Projects: Egyptian Afterlife cover — three artefacts turning on the guide's blue ---------- */
.tile__media--3d { position: relative; background: radial-gradient(120% 90% at 50% 40%, #3a32ff 0%, #211cff 55%, #1a14d6 100%); }
.tile3d { position: absolute; inset: 6% 4%; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; pointer-events: none; }
.tile3d model-viewer { width: 100%; height: 100%; background: transparent; --poster-color: transparent; --progress-bar-color: transparent; }
.tile:hover .tile__media--3d .tile3d { transform: scale(1.03); transition: transform .5s ease; }
/* small four-point glints that twinkle */
.sparkle {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  background: #fff; pointer-events: none; opacity: 0;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 4px rgba(255,255,255,.9));
  animation: glint 4.8s ease-in-out var(--d) infinite;
}
@keyframes glint { 0%, 70%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 80% { opacity: 1; transform: scale(1) rotate(45deg); } 90% { opacity: .2; transform: scale(.6) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .sparkle { animation: none; } }

/* ---------- Miyazaki catalog: the real pages, bound right-to-left ---------- */
.mz { padding: 24px 0 96px; }
.mz-read { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.mz-stage { width: 100%; display: flex; justify-content: center; perspective: 2800px; padding: 8px 0 30px; overflow: hidden; box-sizing: border-box; }
.mz-book {
  --ar: 1.2222; /* two 110×180 mm pages */
  position: relative; width: min(94vw, calc((100vh - 290px) * var(--ar)), 1400px); aspect-ratio: 1.2222;
  transform-style: preserve-3d; transition: transform .9s cubic-bezier(.645,.045,.355,1);
  cursor: pointer; outline: none; -webkit-user-select: none; user-select: none;
}
/* flat, like a scan: closed covers just slide to the centre, no tilt */
.mz-book.at-start { transform: translateX(25%); }
.mz-book.at-end { transform: translateX(-25%); }
.mz-leaf {
  position: absolute; top: 0; left: 0; width: 50%; height: 100%;
  transform-origin: right center; transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.645,.045,.355,1);
}
.mz-leaf.is-turned { transform: rotateY(180deg); }
.mz-face { position: absolute; inset: 0; overflow: hidden; background: #fcfaf2; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.07), 0 0 2px rgba(0,0,0,.05), 0 6px 16px -10px rgba(0,0,0,.10); }
/* pages lying under the top one draw no edge, so the outline never builds up */
.mz-leaf.is-under:not(.is-moving) .mz-face { box-shadow: none; }
.mz-back { transform: rotateY(180deg); }
.mz-face img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* the page shades as it lifts */
.mz-face::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(to left, rgba(0,0,0,.28), rgba(0,0,0,.06)); }
.mz-leaf.is-moving .mz-face::before { animation: mz-shade .9s ease-in-out; }
@keyframes mz-shade { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.mz-nav { display: flex; align-items: center; gap: 24px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: .04em; }
.mz-count { min-width: 92px; text-align: center; }
.mz-btn { background: none; border: 0; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: #111; }
.mz-btn:hover:not(:disabled) { opacity: .55; }
.mz-btn:disabled { opacity: .25; cursor: default; }
.mz-hint { margin: -10px 0 0; font-size: 13px; font-weight: 200; color: #8a8a8a; }
/* phone: one page at a time, turning away to the right */
@media (max-width: 760px) { .mz-stage { padding-left: 16px; padding-right: 16px; } }
.mz-book.is-single { width: min(100%, calc((100vh - 290px) * .6111)); aspect-ratio: .6111; transform: none; }
.mz-book.is-single .mz-leaf { width: 100%; }
.mz-book.is-single .mz-leaf.is-turned { opacity: 0; transition: transform .9s cubic-bezier(.645,.045,.355,1), opacity .25s .65s; }
@media (prefers-reduced-motion: reduce) { .mz-book, .mz-leaf { transition-duration: .01s; } }

/* the rainbow stickers Romy placed on the spine, red to purple */
.mz-book { --stk: linear-gradient(to bottom,
  #e04b30 0 11.9%, #fff 11.9% 12.6%, #e77b2d 12.6% 24.4%, #fff 24.4% 25.1%, #f2b635 25.1% 36.9%, #fff 36.9% 37.6%,
  #41a44a 37.6% 49.4%, #fff 49.4% 50.1%, #3bb497 50.1% 61.9%, #fff 61.9% 62.6%, #007bb8 62.6% 74.4%, #fff 74.4% 75.1%,
  #d92c82 75.1% 86.9%, #fff 86.9% 87.6%, #82367f 87.6% 100%); }
.mz-spine { display: none; position: absolute; top: 0; left: 50%; width: 3.4%; height: 100%; transform-origin: left center; transform: rotateY(90deg);
  background: var(--stk); box-shadow: inset 6px 0 8px -4px rgba(0,0,0,.18), inset -6px 0 8px -4px rgba(0,0,0,.18); }
.mz-stk { position: absolute; top: 0; bottom: 0; width: 1.6%; background: var(--stk); z-index: 2; }
.mz-stk--front { right: 0; }
.mz-stk--back { left: 0; }
.mz-book.is-single .mz-stk--front { width: 2.2%; }

.mz-print { display: flex; flex-direction: column; gap: 14px; margin-top: clamp(80px, 10vw, 160px); }
.mz-print .yl-tag { margin-bottom: 14px; }
.mz-print img { display: block; width: 100%; height: auto; }
.mz-print__wide { max-height: 92vh; object-fit: cover; }
.mz-print__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .mz-print__row { grid-template-columns: 1fr 1fr; gap: 8px; } }
@media (max-width: 760px) { .mz-print { padding: 0 16px; } }

/* strip of spreads under the Miyazaki book — click one to jump straight to it */
.mz-thumbs { display: flex; direction: rtl; gap: 12px; max-width: 100%; overflow-x: auto; box-sizing: border-box;
  padding: 6px 16px 10px; margin-top: 6px; scrollbar-width: none; }
.mz-thumbs::-webkit-scrollbar { display: none; }
.mz-thumb { flex: 0 0 auto; display: flex; direction: rtl; padding: 0 0 7px; border: 0; border-bottom: 1.5px solid transparent;
  background: none; cursor: pointer; opacity: .5; transition: opacity .2s, border-color .2s; }
.mz-thumb img { display: block; width: 36px; height: 59px; object-fit: cover; box-shadow: 0 0 0 .5px rgba(0,0,0,.12); }
.mz-thumb:hover, .mz-thumb:focus-visible { opacity: .85; }
.mz-thumb.is-active { opacity: 1; border-bottom-color: #111; }
.mz-thumb:focus-visible { outline: 1px solid #111; outline-offset: 3px; }
.mz-book.is-jump .mz-leaf { transition: none; }
@media (max-width: 760px) { .mz-thumbs { gap: 10px; } .mz-thumb img { width: 30px; height: 49px; } }

/* ---------- Floor: closed-by-default sections (accordion) ---------- */
.acc { position: relative; cursor: pointer; }
.acc.is-open { cursor: auto; }
.acc.is-open .blk__side { cursor: pointer; }
.acc .blk__side { padding-bottom: 20px; transition: padding .35s ease; }
.acc.is-open .blk__side { padding-bottom: 48px; }
.acc .blk__main { display: grid; grid-template-rows: 0fr; padding-top: 0; padding-bottom: 0;
  transition: grid-template-rows .45s cubic-bezier(.4,0,.2,1), padding .45s cubic-bezier(.4,0,.2,1); }
.acc.is-open .blk__main { grid-template-rows: 1fr; padding-top: 20px; padding-bottom: 72px; }
.acc__inner { min-height: 0; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 32px;
  opacity: 0; transition: opacity .3s ease; }
.acc.is-open .acc__inner { opacity: 1; transition-delay: .1s; }
.acc .blk__sticky { position: static; }
.acc.is-open .blk__sticky { position: sticky; }
.acc__btn { position: absolute; top: 12px; right: calc(var(--gutter) - 10px); width: 40px; height: 40px;
  border: 0; background: none; cursor: pointer; color: var(--blue); display: grid; place-items: center; }
.acc__icon { position: relative; width: 16px; height: 16px; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px;
  background: currentColor; transform: translateY(-50%); transition: transform .35s ease; }
.acc__icon::after { transform: translateY(-50%) rotate(90deg); }
.acc.is-open .acc__icon::after { transform: translateY(-50%) rotate(0deg); }
.acc:not(.is-open):hover .blk__label { opacity: .6; }
.acc__btn:focus-visible { outline: 1px solid var(--blue); outline-offset: -4px; }
@media (max-width: 760px) {
  .acc .blk__side { padding-right: 56px; }
  .acc.is-open .blk__side { padding-bottom: 0; }
  .acc.is-open .blk__main { padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) { .acc .blk__main, .acc__inner, .acc .blk__side, .acc__icon::after { transition: none; } }

/* ---------- Elifelet: a calm, even layout ---------- */
.el { padding: 0 var(--gutter) 120px; }
.el-logo { display: flex; justify-content: center; padding: clamp(32px, 6vw, 96px) 0 clamp(24px, 4vw, 64px); }
.el-logo img { display: block; width: clamp(220px, 30vw, 480px); height: auto; mix-blend-mode: multiply; }
.el-sec { padding-top: clamp(56px, 7vw, 120px); }
.el-sec .yl-tag { margin-bottom: 20px; }
.el-stickers { display: block; width: min(100%, 1320px); height: auto; margin: 0 auto; mix-blend-mode: multiply; }
.el-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: min(100%, 1040px); margin: 0 auto; }
.el-photos img { display: block; width: 100%; aspect-ratio: 1404 / 2000; object-fit: cover;
  position: relative; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease; }
@media (hover: hover) {
  .el-photos img:hover { transform: scale(1.06); z-index: 1; box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); }
}
.el-ig { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .el-photos { grid-template-columns: 1fr 1fr; gap: 8px; }
  .el-sec { padding-top: 56px; }
}

/* ---------- Pearl: film (click to play) + large frames ---------- */
.pl { padding-bottom: 120px; }
.pl-clip { border-top: 0; padding-bottom: 0; }
.pl-clip .yl-clip__frame { overflow: hidden; }
.pl-big-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); color: #111; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); transition: transform .3s ease, opacity .3s ease, background .2s; }
.pl-big-play svg { margin-left: 4px; }
.pl-big-play:hover { transform: translate(-50%, -50%) scale(1.06); background: var(--lime); }
.pl-clip.is-playing .pl-big-play { opacity: 0; pointer-events: none; }
.pl-frames { margin-top: clamp(72px, 9vw, 140px); }
.pl-frames__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 4px var(--gutter) 0; }
.pl-frames__grid img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 760px) {
  .pl-frames__grid { grid-template-columns: 1fr; gap: 10px; }
  .pl-big-play { width: 64px; height: 64px; }
}

/* ---------- Yes We Can: live site, process, research table ---------- */
.ywc-link { color: inherit; text-underline-offset: 3px; }
.ywc-link:hover { background: var(--lime); }

.ywc-live-blk { border-top: 0; }
.ywc-live { width: 100%; border: 1px solid var(--ink); background: #eef0fa; }
.ywc-live__bar { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--ink); background: var(--paper); font-size: 12px; }
.ywc-live__dots { display: flex; gap: 6px; }
.ywc-live__dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--ink); }
.ywc-live__url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8a8a8a; }
.ywc-live__open { color: inherit; text-decoration: none; white-space: nowrap; padding: 2px 8px; }
.ywc-live__open:hover { background: var(--lime); }
.ywc-live__frame { position: relative; aspect-ratio: 16 / 10; max-height: calc(100vh - 140px); width: 100%; }
.ywc-live__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ywc-live__cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--ink); background: #eef0fa center / cover no-repeat; }
.ywc-live__cover::before { content: ""; position: absolute; inset: 0; background: rgba(238, 240, 250, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .3s; }
.ywc-live__cover > * { position: relative; }
.ywc-live__play { padding: 16px 28px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 14px; font-weight: 400; transition: background .25s, color .25s; }
.ywc-live__hint { font-size: 12px; color: #6b6b7a; letter-spacing: .02em; }
.ywc-live__cover:hover .ywc-live__play, .ywc-live__cover:focus-visible .ywc-live__play { background: var(--ink); color: var(--paper); }
.ywc-live__cover:hover::before { background: rgba(238, 240, 250, .74); }
.ywc-live.is-live .ywc-live__cover { display: none; }

.ywc-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; font-size: 14px; line-height: 1.75; }
.ywc-steps li { border-top: 1px solid #e3e3e3; padding-top: 14px; }
.ywc-steps__n { font-family: "Bebas Neue", sans-serif; font-size: 48px; line-height: .9; }
.ywc-steps h4 { margin: 10px 0 6px; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }

.ywc-table-hint { margin-top: 18px; font-size: 11px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: #8a8a8a; }
.ywc-table { width: 100%; }
.ywc-table__tools { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 12px; }
.ywc-table__search { display: flex; flex-direction: column; gap: 6px; color: #8a8a8a; }
.ywc-table__search input { width: min(280px, 70vw); padding: 8px 10px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; }
.ywc-table__count { color: #8a8a8a; }
.ywc-table__scroll { width: 100%; max-height: 70vh; overflow: auto; border: 1px solid var(--ink); }
.ywc-table__scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ywc-table table { width: 100%; min-width: 1100px; border-collapse: collapse; font-family: "Martian Mono", system-ui, sans-serif; font-size: 12px; line-height: 1.5; font-weight: 300; }
.ywc-table th, .ywc-table td { padding: 8px 12px; text-align: right; vertical-align: top; border-bottom: 1px solid #ececec; }
.ywc-table thead th { position: sticky; top: 0; z-index: 1; background: var(--ink); color: var(--paper); font-weight: 400; white-space: nowrap; }
.ywc-table tbody th { font-weight: 500; white-space: nowrap; }
.ywc-table tbody tr:hover { background: var(--lime); }
.ywc-rank { display: inline-block; min-width: 2.4em; color: #8a8a8a; font-weight: 300; }
.ywc-table__note { margin-top: 12px; font-size: 11px; color: #8a8a8a; }

.ywc-vid { background: #eef0fa; border: 1px solid #e3e3e3; }

@media (max-width: 760px) {
  .ywc-live__frame { aspect-ratio: 9 / 14; }
  .ywc-live__open { padding: 2px 0; }
  .ywc-steps { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Alona Yoga: black & white logo, signage, business cards ---------- */
.ay { padding-bottom: 120px; }
.ay-logo { border-top: 1px solid var(--ink); }
.ay-logo__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); border-top: 1px solid var(--ink); margin-top: 8px; }
.ay-logo__cell { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(40px, 7vw, 120px) var(--gutter) 20px; }
.ay-logo__cell + .ay-logo__cell { border-left: 1px solid var(--ink); }
.ay-logo__cell img { display: block; height: auto; margin: auto; }
.ay-logo__cell--mark img { width: clamp(110px, 13vw, 220px); }
.ay-logo__cell--type img { width: min(100%, 720px); }
.ay-logo__cell figcaption,
.ay-signs figcaption { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a8a8a; }
.ay-logo__cell--mark img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .ay-logo__cell--mark:hover img { transform: scale(1.06) rotate(-4deg); } }

.ay-sec { padding-top: clamp(56px, 7vw, 120px); }
.ay-sec .yl-tag { margin-bottom: 20px; }
.ay-signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); width: calc(100% - 2 * var(--gutter)); margin: 0 auto; }
.ay-signs figure { margin: 0; }
.ay-signs img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: 12px; }

.ay-class { margin: 0 auto; width: min(100% - 2 * var(--gutter), 720px); }
.ay-class img { display: block; width: 100%; height: auto; }

.ay-cards { display: grid; gap: clamp(24px, 3vw, 48px); width: min(100% - 2 * var(--gutter), 1100px); margin: 0 auto; }
.ay-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 40px); }
.ay-card img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 5; object-fit: cover;
  box-shadow: 0 22px 40px -26px rgba(0,0,0,.45); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .ay-card img:hover { transform: translateY(-6px) rotate(-1deg); } }

@media (max-width: 760px) {
  .ay-logo__grid { grid-template-columns: 1fr; }
  .ay-logo__cell + .ay-logo__cell { border-left: 0; border-top: 1px solid var(--ink); }
  .ay-signs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ay-card { grid-template-columns: 1fr; gap: 12px; }
  .ay-sec { padding-top: 56px; }
}

/* ---------- About me ---------- */
.page-about .nav { position: sticky; top: 0; background: var(--paper); z-index: 3; }
.about { --gutter: 24px; font-stretch: 87.5%; font-weight: 300; }
.about__intro {
  display: grid;
  grid-template-columns: 44.8% 1fr;         /* same line as "Index" in the nav */
  border-bottom: 1px solid var(--ink);
}
.about__photo { position: relative; margin: 0; padding: clamp(32px, 4vw, 64px) clamp(40px, 5vw, 96px); border-right: 1px solid var(--ink); }
.about__photo img { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.sticker { position: absolute; width: clamp(40px, 4.4vw, 72px); height: auto; animation: sticker-bob 4.8s ease-in-out infinite alternate; }
.sticker--heart  { top: 6%;  right: 8%;  --r: 10deg; }
.sticker--star   { top: 40%; left: 4%;   --r: -12deg; animation-delay: -1.6s; }
.sticker--sun    { bottom: 6%; right: 10%; --r: 8deg; animation-delay: -3.1s; width: clamp(48px, 5.2vw, 84px); }
.sticker--smiley { bottom: 16%; left: 12%; --r: -6deg; animation-delay: -.8s; width: clamp(34px, 3.6vw, 58px); }
@keyframes sticker-bob { from { transform: translateY(-6px) rotate(var(--r)); } to { transform: translateY(6px) rotate(calc(var(--r) * -1)); } }

.about__text { padding: clamp(32px, 4vw, 64px) var(--gutter) 40px clamp(24px, 4vw, 72px); font-size: 14px; line-height: 1.75; align-self: center; }
.about__text p { max-width: 56ch; }
.about__text p + p { margin-top: 1em; }
.about__title {
  font-family: "Bebas Neue", sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(48px, 5vw, 96px); line-height: .88; letter-spacing: -0.016em;
  margin-bottom: clamp(20px, 2vw, 32px);
}

.talk { padding: clamp(40px, 4vw, 72px) 0 clamp(56px, 6vw, 100px); }
.talk__title {
  display: flex; align-items: flex-end; padding: 0 var(--gutter);
  font-family: "Bebas Neue", sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(56px, 7vw, 140px); line-height: .85; letter-spacing: -0.016em;
}
.talk .icons { width: .5em; height: .52em; margin: 0 0 .1em .25em; }
.talk__open { display: flex; align-items: center; gap: 10px; padding: 18px var(--gutter) 32px; font-size: 14px; }
.talk__dot { width: 10px; height: 10px; background: #2bd96b; flex-shrink: 0; animation: talk-blink 1.6s steps(2, jump-none) infinite; }
@keyframes talk-blink { 50% { opacity: .25; } }
.talk__list { list-style: none; border-top: 1px solid var(--ink); }
.talk__list li { border-bottom: 1px solid var(--ink); }
.talk__row {
  display: grid; grid-template-columns: 44.8% 1fr auto; align-items: center;
  padding: 16px var(--gutter); color: inherit; text-decoration: none;
  font-size: clamp(14px, 1.1vw, 17px); transition: background .2s;
}
.talk__label { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.talk__value { overflow-wrap: anywhere; }
.talk__arrow { display: flex; font-size: 1.2em; transition: transform .25s; }
.talk__row:hover { background: var(--lime); }
.talk__row:hover .talk__arrow { transform: translateX(6px); }
.talk__row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) { .sticker, .talk__dot { animation: none; } }
@media (max-width: 760px) {
  .about__intro { grid-template-columns: 1fr; }
  .about__photo { border-right: 0; border-bottom: 1px solid var(--ink); padding: 40px 48px; }
  .about__text { padding: 32px 16px 48px; }
  .about { --gutter: 16px; }
  .talk__row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .talk__label { grid-column: 1 / -1; }
}

/* ---------- Footer: small pixel contact icons (every page but the home page) ---------- */
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--ink); font-size: 12px; font-weight: 300; font-stretch: 87.5%; }
.foot__links { display: flex; gap: 8px; }
.foot__link { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ink); color: var(--ink); transition: background .2s; }
.foot__link svg { width: 20px; height: 20px; fill: currentColor; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.foot__link:hover { background: var(--lime); }
.foot__link:hover svg { transform: scale(1.15) rotate(-6deg); }
.foot__link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 760px) { .foot { padding: 12px 16px; } }

/* pixel arrow — same drawing language as the heart / sun / star icons */
.px-arrow { display: inline-block; width: .9em; height: .72em; fill: currentColor; vertical-align: -.02em; }
.px-arrow--out { transform: rotate(-45deg); }
.p-next__name .px-arrow { width: .62em; height: .5em; margin-left: .12em; vertical-align: .1em; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.p-next:hover .p-next__name .px-arrow { transform: translateX(.12em); }

/* ---------- Loading screen (home page, once per visit) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background: var(--paper); padding: 16px;
  transition: opacity .45s steps(4), visibility 0s .45s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__box {
  width: min(880px, 100%);
  border: clamp(4px, .6vw, 8px) solid var(--ink);
  padding: clamp(18px, 3vw, 40px) clamp(16px, 3.4vw, 48px);
}
.ld-text { display: block; width: 100%; height: auto; fill: var(--ink); overflow: visible; }
/* letters type in one by one (driven by the script, so it works in every browser), then the dots blink */
.ld-ch, .ld-dot { visibility: hidden; }
.ld-ch.is-on, .ld-dot.is-on { visibility: visible; }
/* pixel progress bar: 16 blocks fill in steps */
.loader__bar { display: flex; gap: clamp(3px, .5vw, 6px); width: min(880px, 100%); }
.loader__bar span { flex: 1; height: clamp(8px, 1.2vw, 16px); background: #e9e9e9; }
.loader__bar span.is-on:nth-child(4n+1) { background: var(--magenta); }
.loader__bar span.is-on:nth-child(4n+2) { background: var(--lilac); }
.loader__bar span.is-on:nth-child(4n+3) { background: var(--lime); }
.loader__bar span.is-on:nth-child(4n+4) { background: var(--orange); }
