/* =========================================================
   HANDS ON · main stylesheet
   1. Fonts  2. Tokens  3. Base  4. Layout + themes  5. Type
   6. Header + language switch  7. Mobile menu  8. Buttons/links/icons
   9. Hero  10. Positioning  11. Work chapters  12. Approach
   13. What I do  14. About  15. Testimonials  16. Contact
   17. Footer  18. Language transition  19. Reduced motion
   Logical properties only (inline/block), so RTL and LTR share one layout.
   Each section has its own composition (BRIEF §4): no shared "label + column" template.
   ========================================================= */

/* ---------- 1. Fonts ---------- */
@font-face { font-family: 'Noto Sans Hebrew'; src: url('../fonts/NotoSansHebrew-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Noto Sans Hebrew'; src: url('../fonts/NotoSansHebrew-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Noto Sans Hebrew'; src: url('../fonts/NotoSansHebrew-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Noto Sans Hebrew'; src: url('../fonts/NotoSansHebrew-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

/* Latin letters and digits inside Hebrew text read larger than the Hebrew letters around them
   (email, HANDS ON, Hands On). This face covers only Latin letters, digits and @, scaled down
   to sit at the same visual size as the Hebrew. Used first in the Hebrew font stack only. */
@font-face { font-family: 'HO Latin in Hebrew'; src: url('../fonts/NotoSansHebrew-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; size-adjust: 90%; unicode-range: U+0030-0039, U+0040-005A, U+0061-007A; }
@font-face { font-family: 'HO Latin in Hebrew'; src: url('../fonts/NotoSansHebrew-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; size-adjust: 90%; unicode-range: U+0030-0039, U+0040-005A, U+0061-007A; }
@font-face { font-family: 'HO Latin in Hebrew'; src: url('../fonts/NotoSansHebrew-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; size-adjust: 90%; unicode-range: U+0030-0039, U+0040-005A, U+0061-007A; }
@font-face { font-family: 'HO Latin in Hebrew'; src: url('../fonts/NotoSansHebrew-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; size-adjust: 90%; unicode-range: U+0030-0039, U+0040-005A, U+0061-007A; }

/* ---------- 2. Design tokens ---------- */
/* Tokens are declared on :root and on every element with a lang attribute, so a Hebrew block
   inside the English page (or the reverse) gets its own font, weights and +4% size. */
:root, [lang] {
  --cream: #F6F3EE;
  --paper: #FFFFFF;
  --ink: #111111;
  --stone: #6F6C65;
  --line: #DDD8CF;
  --accent: #BFB3E0;
  --accent-ink: #5B4B9A;

  /* Type scale (approved targets at 1440×900, English; Hebrew is +4%):
     display 64 · section heading 44 · statement 40 · project name 36 · second 28 ·
     lead 23 · body-l 19 · body 17 · nav/buttons 15 · label 14 */
  --fs-display:   calc(clamp(2.25rem, 1.1rem + 3.2vw, 4.25rem) * var(--scale));
  --fs-h2:        calc(clamp(2rem, 1.3rem + 1.9vw, 2.75rem) * var(--scale));
  --fs-statement: calc(clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem) * var(--scale));
  --fs-project:   calc(clamp(1.625rem, 1.15rem + 1.3vw, 2.25rem) * var(--scale));
  --fs-second:    calc(clamp(1.375rem, 1.05rem + 0.9vw, 1.75rem) * var(--scale));
  --fs-lead:      calc(clamp(1.25rem, 1.1rem + 0.45vw, 1.4375rem) * var(--scale));
  --fs-body-l:    calc(clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem) * var(--scale));
  --fs-body:      calc(clamp(1rem, 0.95rem + 0.2vw, 1.0625rem) * var(--scale));
  --fs-nav:       0.9375rem;
  --fs-label:     0.875rem;

  --w-light: 300;
  --w-regular: 400;
  --w-medium: 500;
  --w-bold: 700;

  --content-max: 1360px;
  --measure: 38rem;   /* comfortable reading width, about 65 characters */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --col-gap: clamp(1rem, 2vw, 2rem);
  --section-space: clamp(5rem, 10vw, 9rem);
  --header-h: 4.5rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* English */
:root, [lang="en"] {
  --font: 'Noto Sans', 'Noto Sans Hebrew', sans-serif;
  --scale: 1;
  --w-light: 300;
  --lh-display: 1.06;  --ls-display: -0.03em;
  --lh-h2: 1.12;       --ls-h2: -0.02em;
  --lh-statement: 1.18; --ls-statement: -0.015em;
  --lh-title: 1.2;     --ls-title: -0.01em;
  --lh-lead: 1.5;
  --lh-body-l: 1.6;
  --lh-body: 1.65;
  --ls-label: 0.03em;
  --ls-nav: 0.02em;
}

/* Hebrew */
:root[lang="he"], [lang="he"] {
  --font: 'HO Latin in Hebrew', 'Noto Sans Hebrew', 'Noto Sans', sans-serif;
  --scale: 1.04;  /* Hebrew glyphs read smaller: +4% */
  --w-light: 400; /* Hebrew: regular base so regular vs bold reads clearly */
  --lh-display: 1.14;   --ls-display: -0.01em;
  --lh-h2: 1.2;         --ls-h2: -0.005em;
  --lh-statement: 1.28; --ls-statement: 0;
  --lh-title: 1.3;      --ls-title: 0;
  --lh-lead: 1.65;
  --lh-body-l: 1.75;
  --lh-body: 1.8;
  --ls-label: 0.01em;
  --ls-nav: 0.01em;
}
[lang]:not(html) { font-family: var(--font); }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--w-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-inline-size: 100%; block-size: auto; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: inherit; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }
[id] { scroll-margin-block-start: var(--header-h); }
bdi, .ltr { unicode-bidi: isolate; }

/* Bold play: Hagar's **markers** become <strong>, bold against light/regular text. */
strong, b { font-weight: var(--w-bold); }

.skip-link {
  position: absolute; inset-inline-start: 1rem; inset-block-start: -4rem; z-index: 100;
  padding: 0.75rem 1rem; background: var(--ink); color: var(--cream);
  font-size: var(--fs-nav);
}
.skip-link:focus { inset-block-start: 1rem; }

/* ---------- 4. Layout + themes ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  padding-inline: var(--gutter);
  max-inline-size: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
}
.grid > * { grid-column: 1 / -1; min-inline-size: 0; }

.theme-paper { background: var(--paper); }
.theme-ink { background: var(--ink); color: var(--cream); }
/* Keyboard focus ring stays visible on dark areas (lavender on ink ≈ 9.7:1). */
.theme-ink :focus-visible, .site-footer :focus-visible, .vid :focus-visible { outline-color: var(--accent); }

/* Quiet section marker: a short lavender rule + a small word. */
.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: var(--fs-nav); font-weight: var(--w-medium); letter-spacing: var(--ls-nav);
  color: var(--stone); margin-block-end: clamp(1.5rem, 3vw, 2.5rem);
}
.eyebrow::before { content: ""; inline-size: 2rem; block-size: 1px; background: var(--accent-ink); }
.theme-ink .eyebrow { color: #A9A59D; }
.theme-ink .eyebrow::before { background: var(--accent); }

.placeholder-text { color: var(--stone); }
.theme-ink .placeholder-text { color: #8C887F; }
.placeholder-box {
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
  border: 1px dashed var(--line); background: var(--paper);
  color: var(--stone); font-size: var(--fs-label); min-block-size: 12rem;
}

/* ---------- 5. Type ---------- */
.display {
  font-size: var(--fs-display); line-height: var(--lh-display);
  letter-spacing: var(--ls-display); font-weight: var(--w-light);
}
.h2 {
  font-size: var(--fs-h2); line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2); font-weight: var(--w-light);
}
.statement {
  font-size: var(--fs-statement); line-height: var(--lh-statement);
  letter-spacing: var(--ls-statement); font-weight: var(--w-light);
}
.body-l { font-size: var(--fs-body-l); line-height: var(--lh-body-l); }
.label {
  font-size: var(--fs-label); line-height: 1.4; font-weight: var(--w-medium);
  letter-spacing: var(--ls-label); color: var(--stone);
}
/* Even line lengths in headings; no lonely last word in paragraphs. */
.display, .h2, .statement, .chapter__name, .hero__roles, .hero__second, .positioning__text, .tcar__slide blockquote { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-block-end: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled { border-block-end-color: var(--line); }
.site-header__inner {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem);
  block-size: var(--header-h);
  padding-inline: var(--gutter);
  max-inline-size: calc(var(--content-max) + 2 * var(--gutter)); margin-inline: auto;
}

.brand { display: inline-flex; align-items: center; min-block-size: 44px; margin-inline-end: auto; }
/* The logo is the words HANDS ON set as text (Hagar's decision). Latin, so always Noto Sans. */
.brand__word {
  font-family: 'Noto Sans', sans-serif; font-weight: 300; font-size: 1.25rem;
  letter-spacing: 0.22em; line-height: 1; white-space: nowrap; direction: ltr;
}
.brand__word--footer { font-size: 1.5rem; color: var(--cream); }

.site-nav { display: flex; gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.site-nav a {
  font-size: var(--fs-nav); font-weight: var(--w-medium); letter-spacing: var(--ls-nav);
  display: inline-flex; align-items: center; min-block-size: 44px;
}

/* Language switch: a small segmented pill. Its own direction is fixed (עב on the right)
   so the buttons never jump when the page direction flips. */
.lang-switch {
  position: relative; display: inline-flex;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; background: var(--cream);
}
.lang-switch__btn {
  position: relative; z-index: 1;
  inline-size: 2.75rem; min-block-size: 44px;
  font-size: var(--fs-label); font-weight: var(--w-medium); letter-spacing: 0.02em;
  color: var(--stone); border-radius: 999px;
  transition: color 0.35s ease;
}
.lang-switch__btn[aria-pressed="true"] { color: var(--ink); }
.lang-switch__btn:hover { color: var(--ink); }
.lang-switch__indicator {
  position: absolute; inset-block: 3px; right: 3px;
  inline-size: 2.75rem; border-radius: 999px;
  background: var(--accent);
  transition: transform 0.5s var(--ease-out);
}
:root[lang="en"] .lang-switch__indicator { transform: translateX(-100%); }

.menu-toggle { display: none; }

/* ---------- 7. Mobile header + menu ---------- */
@media (max-width: 760px) {
  :root { --header-h: 4rem; }
  .site-nav { display: none; }
  .brand__word { font-size: 1.0625rem; letter-spacing: 0.2em; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.6rem;
    min-block-size: 44px; min-inline-size: 44px; justify-content: center;
  }
  .menu-toggle__label { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .menu-toggle__lines { display: grid; gap: 6px; inline-size: 22px; }
  .menu-toggle__lines span { display: block; block-size: 1.5px; background: var(--ink); transition: transform 0.35s var(--ease-out); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__lines span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__lines span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--cream);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex; align-items: flex-start;
  opacity: 0; transition: opacity 0.35s ease;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__nav { display: grid; gap: 0.25rem; inline-size: 100%; }
.mobile-menu__nav a {
  font-size: var(--fs-h2); line-height: 1.2; font-weight: var(--w-light);
  padding-block: 0.75rem; border-block-end: 1px solid var(--line);
  transform: translateY(1rem); opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s ease;
}
.mobile-menu.is-open .mobile-menu__nav a { transform: none; opacity: 1; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) { transition-delay: 60ms; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(3) { transition-delay: 120ms; }
body.menu-open { overflow: hidden; }

/* ---------- 8. Links, buttons, icons ---------- */
.link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat;
  background-position: right bottom;
  transition: background-size 0.4s var(--ease-out), color 0.3s ease;
}
:root[dir="ltr"] .link { background-position: left bottom; }
.link:hover, .link:focus-visible { background-size: 100% 1px; }

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-block-size: 50px; padding-inline: 1.75rem;
  font-size: var(--fs-nav); font-weight: var(--w-medium); letter-spacing: var(--ls-nav);
  border: 1px solid var(--ink);
  transition: color 0.4s var(--ease-out), border-color 0.4s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
:root[dir="ltr"] .btn::before { transform-origin: left; }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: var(--cream); border-color: var(--ink); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--ghost { background: transparent; }

/* Thin-line icons: always beside the text, never instead of it. */
.icon {
  flex: none; inline-size: 1em; block-size: 1em;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: color 0.3s ease, transform 0.3s var(--ease-out);
}
:root[dir="rtl"] .icon--dir { transform: scaleX(-1); }

/* ---------- 9. Hero ---------- */
/* Fits the first screen of a real browser at 1366×768 (≈658px tall viewport) with space to spare:
   clean space under the header, portrait capped by the viewport height. */
.hero { padding-block: clamp(1.75rem, 5vh, 4.5rem) var(--section-space); }
.hero__grid { row-gap: 2.5rem; align-items: center; }
.hero__text { display: grid; gap: clamp(0.875rem, 2vh, 1.5rem); justify-items: start; }
.hero__roles { font-size: var(--fs-label); font-weight: var(--w-medium); letter-spacing: var(--ls-label); color: var(--stone); }
.hero__title { max-inline-size: 16ch; }
.hero__second {
  font-size: var(--fs-second); line-height: var(--lh-title); letter-spacing: var(--ls-title);
  font-weight: var(--w-light); max-inline-size: 38ch;
}
.hero__lead { max-inline-size: var(--measure); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 0.25rem; }

/* Portrait 4:5 at a moderate size; hero/hero-reel.mp4 covers it once the file exists. */
.hero__media { justify-self: end; inline-size: 100%; }
.hero__frame {
  position: relative; overflow: hidden; background: var(--paper);
  aspect-ratio: 4 / 5; margin-inline-start: auto;
  inline-size: min(100%, calc((100svh - var(--header-h) - 9rem) * 0.8), 26rem);
}
.hero__frame img, .hero__reel { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: center top; }
.hero__reel { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.has-reel .hero__reel { opacity: 1; }

@media (min-width: 900px) {
  .hero__text { grid-column: 1 / span 8; }
  .hero__media { grid-column: 9 / -1; grid-row: 1; }
}
@media (max-width: 899px) {
  .hero__ctas { inline-size: 100%; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__frame { inline-size: min(78%, 22rem); }
}

/* ---------- 10. Positioning ---------- */
.positioning { padding-block: 0 var(--section-space); }
.positioning__text {
  font-size: var(--fs-second); line-height: var(--lh-statement);
  font-weight: var(--w-light); max-inline-size: 40ch;
}
@media (min-width: 900px) {
  .positioning__text { grid-column: 4 / -1; }
}

/* ---------- 11. Selected work: one chapter template, alternating sides ---------- */
.work { padding-block: var(--section-space); border-block-start: 1px solid var(--line); }
.work__head { row-gap: 1rem; align-items: end; margin-block-end: clamp(3rem, 7vw, 5.5rem); }
/* hero.txt paragraph 4 (Hagar's clear choice of clients) introduces the work: an intro paragraph
   beside the heading. */
.work__lead { display: grid; gap: 0.75em; font-size: var(--fs-body-l); line-height: var(--lh-body-l); color: var(--ink); max-inline-size: var(--measure); }
@media (min-width: 900px) {
  .work__head { align-items: start; }
  .work__title { grid-column: 1 / span 5; }
  .work__lead { grid-column: 7 / -1; padding-block-start: 0.5rem; }
}

.work__chapters { display: grid; gap: clamp(4.5rem, 9vw, 8rem); }
.chapter { row-gap: clamp(1.5rem, 3vw, 2rem); align-items: center; }

/* Covers are shown whole, at their real ratio (never cropped); if the viewport is short,
   the image is contained inside a Paper backdrop. */
.chapter__media { display: block; background: var(--paper); }
.chapter__media img {
  inline-size: 100%; block-size: auto; max-block-size: 70vh;
  object-fit: contain; transition: opacity 0.4s ease;
}
.chapter__media:hover img, .chapter__media:focus-visible img { opacity: 0.94; }

.chapter__meta { display: grid; gap: 1rem; justify-items: start; align-content: center; }
.chapter__num {
  font-size: var(--fs-body-l); font-weight: var(--w-medium); color: var(--stone);
  font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
}
.chapter__name {
  font-size: var(--fs-project); line-height: var(--lh-title);
  letter-spacing: var(--ls-title); font-weight: var(--w-medium);
}
.chapter__desc { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink); max-inline-size: 34rem; }
.chapter__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chapter__tags li {
  font-size: var(--fs-label); font-weight: var(--w-medium); color: var(--stone);
  border: 1px solid var(--line); padding: 0.2rem 0.65rem;
}
.chapter__link {
  display: inline-flex; align-items: center; gap: 0.5rem; min-block-size: 44px;
  font-size: var(--fs-nav); font-weight: var(--w-medium); color: var(--accent-ink);
  border-block-end: 1px solid var(--accent);
}
.chapter__link:hover .icon { transform: translateX(4px); }
:root[dir="rtl"] .chapter__link:hover .icon { transform: scaleX(-1) translateX(4px); }

/* Client logo: sized by area in JS (≈56px tall, max 240px wide), cropped to the mark
   (box measured by the content script). Its row has a fixed height so names line up. */
.chapter__logo { display: inline-flex; align-items: center; min-block-size: 72px; }
.chapter__logo--chip { background: var(--ink); padding: 8px 12px; }
.logo-crop { position: relative; display: block; overflow: hidden; direction: ltr; }
.logo-crop img { position: absolute; max-inline-size: none; }
.logo-crop--blend img { mix-blend-mode: multiply; } /* white background disappears into the page */
.logo-plain { object-fit: contain; }

/* No cover: a typographic cover from the client name. */
.chapter__typo {
  display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 2rem; text-align: center;
  border: 1px solid var(--line);
  font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: var(--w-light);
}

@media (min-width: 900px) {
  /* media ≈58% of the container (7 of 12 columns), max 880px; text in the second column */
  .chapter__media { grid-column: 1 / span 7; grid-row: 1; max-inline-size: 880px; }
  .chapter__meta { grid-column: 9 / -1; grid-row: 1; }
  .chapter--flip .chapter__media { grid-column: 6 / -1; margin-inline-start: auto; inline-size: 100%; }
  .chapter--flip .chapter__meta { grid-column: 1 / span 4; }
}

/* ---------- 12. Approach (dark) ---------- */
.approach { padding-block: var(--section-space); }
.approach__q { display: grid; gap: 0.3em; }
.approach__old {
  justify-self: start; color: #8C887F;
  text-decoration: line-through; text-decoration-color: var(--accent);
  text-decoration-thickness: 0.06em;
}
.approach__new { color: var(--cream); }
.approach__body { display: grid; gap: 1em; margin-block-start: clamp(2rem, 4vw, 3rem); max-inline-size: 32rem; color: #E8E3DA; }
@media (min-width: 900px) {
  .approach__q { grid-column: 1 / span 10; }
  .approach__body { grid-column: 8 / -1; }
}

/* ---------- 13. What I do: three giant words ---------- */
.what { padding-block: var(--section-space); }
.what__list { display: grid; gap: clamp(2.5rem, 5vw, 3rem) var(--col-gap); }
.what__item { border-block-start: 1px solid var(--ink); padding-block-start: 1.25rem; }
.what__word {
  display: block;
  font-size: var(--fs-display); line-height: var(--lh-display);
  letter-spacing: var(--ls-display); font-weight: var(--w-light);
}
.what__sub {
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-block-start: 1rem;
  font-size: var(--fs-body-l); color: var(--stone);
}
@media (min-width: 900px) {
  .what__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .what__sub { display: grid; gap: 0.25rem; }
}

/* ---------- 14. About (paper) ---------- */
.about { padding-block: var(--section-space); }
.about .grid { row-gap: 2.5rem; }
.about__portrait img { inline-size: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.about__text { display: grid; gap: 2rem; }
.about__lead { font-size: var(--fs-lead); line-height: var(--lh-lead); max-inline-size: 44rem; }
.about__cols { columns: 1; column-gap: var(--col-gap); }
.about__cols p { margin-block-end: 1.25em; break-inside: avoid; }
@media (max-width: 899px) {
  .about__portrait { inline-size: 70%; max-inline-size: 22rem; }
}
@media (min-width: 900px) {
  .about__title { grid-column: 1 / -1; }
  .about__portrait { grid-column: 1 / span 4; grid-row: 2; }
  .about__text { grid-column: 6 / -1; grid-row: 2; }
  .about__cols { columns: 2; column-gap: clamp(2rem, 3vw, 3rem); }
  /* Without the portrait (until the hero reel exists): text across the full width. */
  .about--no-portrait .about__text { grid-column: 1 / -1; }
  .about--no-portrait .about__lead { max-inline-size: 48rem; }
}
.about--no-portrait .about__portrait { display: none; }

/* ---------- 15. Testimonials: one at a time ---------- */
.testimonials { padding-block: var(--section-space); }
.testimonials .grid { row-gap: 2rem; align-items: start; }
.tcar__slides { display: grid; }
.tcar__slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}
.tcar__slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.8s ease 0.15s, visibility 0s; }
.tcar__slide blockquote {
  font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: var(--w-light);
  max-inline-size: 42ch;
}
.tcar__by {
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin-block-start: 1.25rem;
  font-size: var(--fs-nav); line-height: 1.5; color: var(--stone);
}
.tcar__note { color: var(--accent-ink); }
.tcar__controls { display: flex; align-items: center; gap: 0.75rem; margin-block-start: 2rem; }
.tcar__btn {
  display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px;
  border: 1px solid var(--line); border-radius: 50%; font-size: 1.1rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.tcar__btn:hover, .tcar__btn:focus-visible { border-color: var(--ink); background: var(--paper); }
.tcar__count { font-size: var(--fs-nav); color: var(--stone); font-variant-numeric: tabular-nums; min-inline-size: 3.5em; text-align: center; }
@media (min-width: 900px) {
  .testimonials__title { grid-column: 1 / span 4; }
  .testimonials__stage { grid-column: 6 / -1; padding-block-start: 0.5rem; }
}

/* ---------- 16. Contact ---------- */
.contact { padding-block: var(--section-space); border-block-start: 1px solid var(--line); }
.contact .grid { row-gap: 2.5rem; align-items: end; }
.contact__eyebrow { margin-block-end: 0; }
.contact__intro { max-inline-size: 22ch; }
.contact__list { display: grid; gap: 0.5rem; justify-items: start; }
.contact__item {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-block-size: 48px; text-align: start;
  font-size: var(--fs-second); line-height: 1.25; font-weight: var(--w-regular);
}
.contact__item .icon { inline-size: 0.8em; block-size: 0.8em; }
.contact__item:hover .icon, .contact__item:focus-visible .icon { color: var(--accent-ink); }
.contact__value { transition: color 0.3s ease; overflow-wrap: anywhere; }
.contact__item:hover .contact__value { color: var(--accent-ink); }
/* The email is marked with a lavender underline. */
.contact__item--email .contact__value {
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 0.25em;
}
.contact__hint { display: flex; gap: 0.75rem; align-items: center; min-block-size: 1.5rem; margin-block-start: -1.5rem; }
.contact__copied { color: var(--accent-ink); opacity: 0; transition: opacity 0.3s ease; }
.contact__copied.is-visible { opacity: 1; }
@media (min-width: 900px) {
  .contact__eyebrow { grid-column: 1 / -1; }
  .contact__intro { grid-column: 1 / span 7; grid-row: 2; }
  .contact__list { grid-column: 8 / -1; grid-row: 2; }
  .contact__hint { grid-column: 8 / -1; grid-row: 3; }
}

/* ---------- 16b. Project layer ---------- */
/* Full-screen sheet that slides up from the bottom (500ms); the page behind dims and stops scrolling. */
html.layer-open { overflow: hidden; }
.layer-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgb(17 17 17 / 0.45);
  opacity: 0; transition: opacity 0.5s ease;
}
.layer-backdrop.is-open { opacity: 1; }
.layer {
  position: fixed; inset: 0; z-index: 70;
  background: var(--paper); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(100%); transition: transform 0.5s var(--ease-out);
}
.layer.is-open { transform: none; }
.layer[hidden], .layer-backdrop[hidden] { display: none; }

.layer__bar {
  position: sticky; inset-block-start: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  block-size: var(--header-h); padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--line);
}
.layer__pos { font-variant-numeric: tabular-nums; direction: ltr; }
.layer__close {
  display: inline-flex; align-items: center; gap: 0.6rem; min-block-size: 44px; padding-inline: 0.25rem;
  font-size: var(--fs-nav); font-weight: var(--w-medium);
}
.layer__x { font-size: 1.75rem; line-height: 1; font-weight: 300; transition: transform 0.3s var(--ease-out); }
.layer__close:hover .layer__x { transform: rotate(90deg); }

.layer__inner { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); row-gap: clamp(3rem, 6vw, 5rem); }
.layer__head { display: grid; gap: 1rem; justify-items: start; max-inline-size: 52rem; }
.layer__alt-name { margin-block-start: -0.5rem; }
.layer__lead { font-size: var(--fs-lead); line-height: var(--lh-lead); }

.layer__texts { display: grid; gap: 2.5rem var(--col-gap); }
.layer__block { display: grid; gap: 1em; align-content: start; font-size: var(--fs-body-l); line-height: var(--lh-body-l); }
.layer__block-title { margin-block-end: 0.25rem; }
.layer__block p { max-inline-size: var(--measure); }
@media (min-width: 900px) {
  .layer__texts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layer__block--intro { grid-column: 1 / -1; }
}

.layer__media { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(3rem, 6vw, 4.5rem); }
.car { min-inline-size: 0; }

/* Carousel: native horizontal scroll with snap; slides keep their real ratio. */
.car__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block-end: 1rem; }
.car__title { margin-block-end: 0; }
.car__controls { display: flex; align-items: center; gap: 0.5rem; }
.tcar__btn:disabled { opacity: 0.35; cursor: default; }
.car__track {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-block-end: 4px;
}
.car__track::-webkit-scrollbar { display: none; }
.car__slide { flex: none; scroll-snap-align: start; background: var(--cream); }
.car__slide img { block-size: clamp(320px, 62vh, 600px); inline-size: auto; max-inline-size: none; }
@media (max-width: 760px) {
  .car__controls .tcar__btn { display: none; } /* swipe on touch */
  .car__slide img { block-size: auto; inline-size: 82vw; }
}

/* Videos: vertical (9:16) web copies side by side; sound button over the corner. */
.vgrid { display: grid; gap: var(--col-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); align-items: start; }
.vid { position: relative; background: var(--ink); }
.vid video { inline-size: 100%; aspect-ratio: 9 / 16; object-fit: cover; cursor: pointer; }
.vid__sound {
  position: absolute; inset-block-end: 10px; inset-inline-end: 10px;
  min-block-size: 44px; padding-inline: 0.9rem; border-radius: 999px;
  background: rgb(17 17 17 / 0.7); color: var(--cream);
  font-size: var(--fs-label); font-weight: var(--w-medium);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color 0.3s ease;
}
.vid__sound:hover, .vid__sound:focus-visible, .vid__sound[aria-pressed="true"] { background: var(--accent); color: var(--ink); }

.layer__grid { display: grid; gap: var(--col-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); align-items: start; }
.layer__gallery--print .layer__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.layer__grid img { inline-size: 100%; block-size: auto; background: var(--cream); }

.layer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.layer__handle { color: var(--stone); font-weight: var(--w-regular); }

.layer__nav {
  display: grid; grid-template-columns: 1fr 1fr; border-block-start: 1px solid var(--line);
  max-inline-size: calc(var(--content-max) + 2 * var(--gutter)); margin-inline: auto;
}
.layer__nav-link {
  display: grid; gap: 0.35rem; padding: clamp(1.5rem, 4vw, 2.5rem) var(--gutter);
  transition: background-color 0.3s ease;
}
.layer__nav-link:hover, .layer__nav-link:focus-visible { background: var(--cream); }
.layer__nav-link--next { text-align: end; border-inline-start: 1px solid var(--line); }
.layer__nav-name { font-size: var(--fs-second); line-height: var(--lh-title); font-weight: var(--w-light); }

/* ---------- 17. Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); }
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  padding: 3rem var(--gutter);
  max-inline-size: calc(var(--content-max) + 2 * var(--gutter)); margin-inline: auto;
}
.site-footer__credit { font-size: var(--fs-label); color: #A9A59D; }

/* ---------- 18. Language transition ---------- */
/* Text fades down and out, the language and direction flip, then text rises in with a small stagger. */
[data-i18n], [data-content], [data-render] {
  transition:
    opacity 0.5s ease calc(var(--i, 0) * 45ms),
    transform 0.6s var(--ease-out) calc(var(--i, 0) * 45ms);
}
.is-lang-out [data-i18n], .is-lang-out [data-content], .is-lang-out [data-render]:not([data-render="heroMedia"]) {
  opacity: 0; transform: translateY(0.35em);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* ---------- 18b. Scroll motion (only with JS, never with reduced motion) ---------- */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
/* The frame is observed; only the image inside is clipped (a fully clipped target never counts as "in view"). */
.js .reveal-img { overflow: hidden; }
.js .reveal-img img {
  clip-path: inset(0 0 100% 0); transform: scale(1.06);
  transition: clip-path 1s var(--ease-out), transform 1.4s var(--ease-out), opacity 0.4s ease;
}
.js .reveal-img.is-in img { clip-path: inset(0 0 0 0); transform: none; }

/* Hero media parallax (set by JS on desktop) */
.hero__frame { translate: 0 var(--parallax, 0px); }

/* "View" circle that follows the mouse over project covers (desktop) */
.view-cursor {
  position: fixed; inset-block-start: 0; left: 0; z-index: 80; pointer-events: none;
  inline-size: 84px; block-size: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--ink);
  font-size: var(--fs-label); font-weight: var(--w-medium);
  opacity: 0; scale: 0.6; transition: opacity 0.25s ease, scale 0.35s var(--ease-out);
}
.view-cursor.is-on { opacity: 1; scale: 1; }
@media (hover: hover) and (pointer: fine) { .chapter__media { cursor: none; } }

/* Approach: animated strike-through, then the real questions */
.js .approach__old { text-decoration: none; position: relative; }
.js .approach__old::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-start: 55%;
  block-size: 0.06em; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.9s var(--ease-out) 0.3s;
}
.js[dir="ltr"] .approach__old::after { transform-origin: left; }
.js .approach__old { color: var(--cream); transition: color 0.9s ease 0.3s; }
.js .approach__new { opacity: 0; transform: translateY(0.3em); transition: opacity 0.8s ease 1.1s, transform 0.8s var(--ease-out) 1.1s; }
.js .approach.is-struck .approach__old { color: #8C887F; }
.js .approach.is-struck .approach__old::after { transform: scaleX(1); }
.js .approach.is-struck .approach__new { opacity: 1; transform: none; }

/* What I do: items open inline */
.what__word {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; inline-size: 100%;
  text-align: start; font: inherit; color: inherit;
  font-size: var(--fs-display); line-height: var(--lh-display);
  letter-spacing: var(--ls-display); font-weight: var(--w-light);
  min-block-size: 44px;
}
.what__plus { font-size: 0.45em; color: var(--stone); transition: transform 0.4s var(--ease-out); }
.what__item.is-open .what__plus { transform: rotate(45deg); }
.js .what__sub-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease-out); }
.js .what__sub-wrap > .what__sub { overflow: hidden; min-block-size: 0; margin-block-start: 0; }
.js .what__item.is-open .what__sub-wrap { grid-template-rows: 1fr; }
.js .what__item.is-open .what__sub { margin-block-start: 1rem; }
.what__sub { transition: margin 0.5s var(--ease-out); }

/* ---------- 19. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
