/* ============================================================
   .hilel — hilel-lasry.com  ·  prototype stylesheet
   Refined minimalism with warmth. RTL Hebrew, mobile-first.
   Logical properties everywhere (inline = horizontal in RTL).
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* color — warm paper, soft ink, one quiet ember accent */
  --paper:      #FAF8F4;
  --paper-2:    #F2EDE3;   /* bands, tiles back */
  --ink:        #1A1A18;
  --ink-soft:   #46423B;
  --muted:      #7E776B;
  --line:       #E7E1D4;
  --accent:     #B4561E;   /* the dot */
  --accent-deep:#8F4115;
  --scrim:      18, 15, 12; /* rgb for overlays */

  /* type — Hebrew has no caps: hierarchy = weight + size + space */
  --sans:  "Assistant", system-ui, sans-serif;
  --serif: "Frank Ruhl Libre", "Times New Roman", serif;

  /* type scale — modular 1.25 (major third); every size sits on a step */
  --step--1: .85rem;
  --step-0:  1.0625rem;  /* body */
  --step-1:  1.33rem;
  --step-2:  1.66rem;
  --step-3:  2.08rem;
  --step-4:  2.6rem;
  --step-5:  3.25rem;
  --step-6:  4.06rem;
  --step-7:  5.08rem;

  /* rhythm */
  --container: min(1160px, 92vw);
  --section:   clamp(6.5rem, 15vw, 11.5rem);  /* slow, confident pacing */
  --gap:       clamp(1rem, 2.5vw, 1.75rem);
  --radius:    4px;
  --ease:      cubic-bezier(.22, .61, .21, 1);
  --header-h:  4rem;
}

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

html { scroll-behavior: smooth; }
html.lb-open { overflow: hidden; } /* lightbox open: lock scroll, keep position */

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0; /* never track Hebrew */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-inline-size: 100%; block-size: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--paper); }

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

.container { inline-size: var(--container); margin-inline: auto; }

.skip-link {
  position: fixed; inset-block-start: -4rem; inset-inline-start: 1rem;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1.2rem; border-radius: 999px; z-index: 200;
  transition: inset-block-start .25s var(--ease);
}
.skip-link:focus-visible { inset-block-start: 1rem; }

/* ---------- 3. The dot motif ---------- */
.dot { color: var(--accent); }            /* accented period inside text   */

.eyebrow {                                 /* section marker: dot + label   */
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: .95rem; font-weight: 600; color: var(--ink-soft);
  margin-block-end: clamp(1.2rem, 3vw, 2rem);
}
.eyebrow::before {
  content: ""; inline-size: .5rem; block-size: .5rem;
  border-radius: 50%; background: var(--accent); flex: none;
}

/* ---------- 4. Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center;
  padding: .8em 1.6em; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              transform .3s var(--ease);
}
.btn:active { transform: scale(.98); }

.btn-ink   { background: var(--ink);   color: var(--paper); }
.btn-ink:hover   { background: var(--accent); }

.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--accent); color: var(--paper); }

.btn-ghost {
  background: transparent; color: inherit;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); box-shadow: none; }

.link-more {            /* quiet inline link with leading dot + RTL arrow */
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; color: var(--ink-soft);
  transition: color .25s var(--ease);
}
.link-more::after { content: "←"; transition: transform .3s var(--ease); }
.link-more:hover { color: var(--accent); }
.link-more:hover::after { transform: translateX(-4px); }

.chip {
  padding: .5em 1.25em; border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: all .25s var(--ease);
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 100;
  background: var(--paper);
  border-block-end: 1px solid var(--line);
}
.header-inner {
  inline-size: var(--container); margin-inline: auto;
  min-block-size: var(--header-h);
  display: flex; align-items: center; gap: clamp(1rem, 4vw, 2.5rem);
}

.brand {
  font-weight: 800; font-size: 1.3rem; line-height: 1;
  /* Latin wordmark: force LTR so ".hilel" keeps its leading dot */
  direction: ltr; unicode-bidi: isolate;
}
.brand .dot { transition: color .3s var(--ease); }
.brand:hover .dot { color: var(--ink); }

.site-nav { display: flex; gap: clamp(1.1rem, 3vw, 2rem); margin-inline-start: auto; }
.site-nav a {
  font-weight: 600; font-size: 1rem; color: var(--ink-soft); position: relative;
  padding-block: .35rem;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; inset-block-end: 0; inset-inline-start: 50%;
  transform: translateX(50%);
  inline-size: .35rem; block-size: .35rem; border-radius: 50%; background: var(--accent);
}

.header-inner .btn { padding-block: .65em; font-size: .95rem; }

@media (max-width: 480px) {
  .brand { font-size: 1.15rem; }
  .site-nav { gap: .9rem; }
  .site-nav a { font-size: .92rem; }
  .header-inner .btn { padding-inline: 1.1em; }
}

/* ---------- 6. Hero (home + category) ---------- */
.hero {
  position: relative;
  block-size: min(88svh, 56.25vw + 14rem); /* breathing room, never absurd on wide screens */
  min-block-size: 480px;
  overflow: hidden;
  background: var(--ink);
}
.hero-media, .hero-media img, .hero-media video {
  position: absolute; inset: 0; inline-size: 100%; block-size: 100%;
  object-fit: cover;
}
.hero::after { /* scrim for legibility — readable on a phone in the sun */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top,
      rgba(var(--scrim), .82) 0%,
      rgba(var(--scrim), .28) 48%,
      rgba(var(--scrim), .12) 100%);
}

.hero-content {
  position: absolute; z-index: 2;
  inset-block-end: clamp(2rem, 7vh, 4.5rem);
  inset-inline: 0;
  color: var(--paper);
}
.hero-tagline {
  font-weight: 800;
  font-size: clamp(2.5rem, 8.5vw, 5.25rem);
  line-height: 1.12;
  max-inline-size: 14ch;
}
.hero-sub {
  margin-block-start: 1rem;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: color-mix(in srgb, var(--paper) 88%, transparent);
  display: flex; flex-wrap: wrap; column-gap: .65rem; row-gap: .15rem; align-items: baseline;
}
.hero-sub .sep { color: color-mix(in srgb, var(--paper) 55%, transparent); }
/* clickable service links — quiet: inherit color, gentle underline + accent on hover */
.hero-svc {
  color: inherit;
  text-decoration: none;
  text-underline-offset: .25em;
  transition: color .25s var(--ease), text-decoration-color .25s var(--ease);
  text-decoration-color: transparent;
}
@media (hover: hover) {
  .hero-svc:hover {
    color: var(--paper);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--accent);
  }
}
.hero-svc:focus-visible { color: var(--paper); }
.hero-actions { margin-block-start: clamp(1.4rem, 3.5vh, 2.2rem); display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.hero-play {
  position: absolute; z-index: 2;
  inset-block-end: clamp(2rem, 7vh, 4.5rem); inset-inline-end: 4vw;
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--paper); font-weight: 600; font-size: .95rem;
  padding: .6em 1.2em; border-radius: 999px;
  background: rgba(var(--scrim), .35);
  box-shadow: inset 0 0 0 1px rgba(250, 248, 244, .35);
  backdrop-filter: blur(4px);
  transition: background-color .3s var(--ease);
}
.hero-play:hover { background: rgba(var(--scrim), .6); }
.hero-play svg { inline-size: .8em; block-size: .8em; fill: currentColor; }
@media (max-width: 720px) { .hero-play { display: none; } } /* hero tap = same action via CTA; keep mobile clean */

/* ---------- scroll cue ----------
   A quiet "there's more below" hint at the bottom of the home hero.
   Centered, accent dot + soft chevron, gentle bob. Fades out once the
   user scrolls (JS adds .gone). Hidden under reduced-motion. */
.scroll-cue {
  position: absolute; z-index: 2;
  inset-block-end: clamp(1.4rem, 4vh, 2.4rem); inset-inline: 0;
  display: grid; justify-items: center; gap: .5rem;
  color: var(--paper);
  pointer-events: none;
  opacity: 0;
  animation: cue-in .8s var(--ease) 1.4s forwards;
  transition: opacity .5s var(--ease);
}
.scroll-cue.gone { opacity: 0 !important; }
.scroll-cue .cue-dot {
  inline-size: .4rem; block-size: .4rem; border-radius: 50%;
  background: var(--accent);
}
.scroll-cue .cue-chevron {
  inline-size: 1.1rem; block-size: 1.1rem;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  opacity: .85;
  animation: cue-bob 2.4s var(--ease) infinite;
}
@keyframes cue-in { to { opacity: .9; } }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}
@media (max-width: 720px) {
  .scroll-cue { inset-block-end: clamp(1rem, 3vh, 1.8rem); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { display: none; }
}

/* category hero: shorter, with intro line */
.hero--category { block-size: min(62svh, 640px); min-block-size: 380px; }
.hero--category .hero-title {
  font-weight: 800; font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1.15;
}
.hero--category .hero-intro {
  margin-block-start: .8rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  color: color-mix(in srgb, var(--paper) 90%, transparent);
  max-inline-size: 36ch;
}

/* ---------- 7. Sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .62); }
.section--band { background: var(--paper-2); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  margin-block-end: clamp(1.8rem, 4vw, 3rem);
}
.section-title { font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.2; }
.section-note { color: var(--muted); margin-block-start: .5rem; font-size: 1rem; }

/* ---------- 8. Positioning strip ---------- */
.positioning {
  border-block: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.positioning ul {
  display: grid; gap: clamp(1.4rem, 3.5vw, 2.5rem) clamp(2rem, 5vw, 4rem);
}
.positioning li {
  display: flex; align-items: baseline; gap: .8rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem); font-weight: 500; color: var(--ink-soft);
  line-height: 1.5;
}
.positioning li::before {
  content: ""; inline-size: .38rem; block-size: .38rem; border-radius: 50%;
  background: var(--ink-soft); flex: none; transform: translateY(-.15em);
}
@media (min-width: 720px) { .positioning ul { grid-template-columns: 1fr 1fr; } }

/* ---------- 9. Work grids & tiles ---------- */
/* JS masonry: grid-auto-rows small + per-tile row span (keeps curated order
   reading top-first, unlike CSS columns). Degrades to plain grid without JS. */
.grid-masonry {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 8px;
  gap: 0 var(--gap);
  align-items: start;
}
@media (min-width: 600px)  { .grid-masonry { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-masonry { grid-template-columns: repeat(3, 1fr); } }

.tile { break-inside: avoid; }
.tile.is-hidden { display: none; }
.tile-inner { padding-block-end: clamp(1.6rem, 4vw, 2.4rem); }

.tile-media {
  position: relative; display: block; inline-size: 100%;
  border-radius: var(--radius); overflow: hidden;
  background: var(--paper-2);
}
.tile-media img {
  inline-size: 100%;
  transition: transform 1.1s var(--ease);
}
@media (hover: hover) {
  .tile-media:hover img { transform: scale(1.035); }
}

.play-badge {
  position: absolute; inset-block-end: .9rem; inset-inline-start: .9rem;
  inline-size: 2.6rem; block-size: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(var(--scrim), .55); color: var(--paper);
  backdrop-filter: blur(3px);
  transition: background-color .3s var(--ease);
}
.tile-media:hover .play-badge { background: var(--accent); }
.play-badge svg { inline-size: .85rem; block-size: .85rem; fill: currentColor; }

.tile figcaption {
  display: flex; align-items: baseline; gap: .6rem;
  padding-block-start: .8rem;
}
.tile-type  { font-size: .85rem; font-weight: 600; color: var(--muted); flex: none; }
.tile-title { font-size: .98rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- 10. Doorways (home: ways in) ----------
   An index, not tiles: hairline rows read as navigation,
   unmistakably different from the work grids. */
.doorways { border-block-start: 1px solid var(--line); }
.doorway {
  display: flex; align-items: center; gap: clamp(1.1rem, 3.5vw, 2.2rem);
  padding-block: clamp(1.2rem, 3.5vw, 1.9rem);
  border-block-end: 1px solid var(--line);
}
.doorway-thumb {
  flex: none; inline-size: clamp(64px, 9vw, 96px); aspect-ratio: 1;
  border-radius: var(--radius); overflow: hidden; background: var(--paper-2);
}
.doorway-thumb img {
  inline-size: 100%; block-size: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
@media (hover: hover) { .doorway:hover .doorway-thumb img { transform: scale(1.06); } }
.doorway-text { display: grid; gap: .1rem; min-inline-size: 0; }
.doorway-label { font-size: clamp(1.3rem, 3.4vw, 1.8rem); font-weight: 700; line-height: 1.25; }
.doorway-note { color: var(--muted); font-size: .95rem; }
.doorway-arrow {
  margin-inline-start: auto; flex: none;
  color: var(--muted); font-size: 1.35rem; line-height: 1;
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.doorway:hover .doorway-arrow { transform: translateX(-6px); color: var(--accent); }

/* ---------- 11. Story / serif moments ---------- */
.story {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.9;
  color: var(--ink-soft);
  max-inline-size: 36ch;
}
.story p + p { margin-block-start: 1.4em; }
.story strong { font-weight: 500; color: var(--ink); }

/* the signature beat — ".מצלם. עורך. מראה לאמא. ושוב" gets extra room */
.story-beat {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  line-height: 1.6;
  color: var(--ink);
  margin-block: clamp(2.2rem, 5vw, 3.5rem);
  max-inline-size: 22ch;
}

/* about-short on home: text + photo */
.about-short { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 840px) {
  .about-short { grid-template-columns: 1.15fr .85fr; }
}
.about-short-photo { border-radius: var(--radius); overflow: hidden; max-inline-size: 420px; }
.about-short .link-more { margin-block-start: 1.8rem; }

/* ---------- 12. Signature slot ---------- */
.signature-slot {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (min-width: 840px) { .signature-slot { grid-template-columns: .85fr 1.15fr; } }
.signature-slot-media { border-radius: var(--radius); overflow: hidden; max-inline-size: 460px; }
.signature-text {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.65; color: var(--ink);
  max-inline-size: 24ch;
}
.signature-note { margin-block-start: 1.2rem; color: var(--muted); font-size: .95rem; }

/* ---------- 13. Testimonial band (dormant until quotes exist) ---------- */
.testimonials[hidden] { display: none; }
.testimonials-list { display: grid; gap: clamp(2rem, 5vw, 3rem); }
@media (min-width: 840px) {
  .testimonials-list:has(> :nth-child(2)) { grid-template-columns: 1fr 1fr; }
}

/* WhatsApp review screenshots — deliberately understated:
   modest phone-proportioned crops in a soft paper card, a calm row,
   the project label muted beneath. Evidence, not decoration.
   Mobile: a screenshot of text must stay legible, so it goes large
   (most of the screen). The small "quiet row" treatment is desktop-only. */
.testimonials-list:has(.review) {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(2.5rem, 8vw, 3.5rem);
}
.review { margin: 0; display: grid; gap: .9rem; justify-items: center; max-inline-size: 100%; }
.review-shot {
  position: relative;
  display: block; padding: 0; cursor: zoom-in;
  inline-size: min(340px, 82vw);          /* mobile: big enough to read */
  border-radius: calc(var(--radius) * 2.5);
  overflow: hidden; background: var(--paper-2);
  box-shadow: 0 1px 0 var(--line), 0 14px 30px -22px rgba(var(--scrim), .55);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.review-shot img { inline-size: 100%; display: block; }

/* tap-to-enlarge hint (touch only — desktop uses cursor/hover) */
.review-shot::after {
  content: "להגדלה";
  position: absolute; inset-block-end: .6rem; inset-inline-start: 50%;
  transform: translateX(50%);
  background: rgba(var(--scrim), .62); color: var(--paper);
  font-size: .75rem; font-weight: 600; line-height: 1;
  padding: .45em .9em; border-radius: 999px;
  backdrop-filter: blur(3px);
}
@media (hover: hover) {
  .review-shot::after { display: none; }   /* desktop: no hint badge */
  .review-shot:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 22px 40px -22px rgba(var(--scrim), .6); }
}

/* desktop: the calm, quiet row of smaller cards */
@media (min-width: 720px) {
  .testimonials-list:has(.review) {
    flex-direction: row; flex-wrap: wrap; justify-content: center;
    gap: clamp(1.5rem, 4vw, 2.75rem);
  }
  .review-shot { inline-size: clamp(200px, 22vw, 248px); }
}

.review-cap {
  font-size: var(--step--1); color: var(--muted); font-weight: 600;
  text-align: center; max-inline-size: 26ch;
}

.testimonial blockquote {
  margin: 0;
  font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.8; color: var(--ink-soft);
  max-inline-size: 40ch;
}
.testimonial blockquote {
  border-inline-start: 2px solid var(--line);
  padding-inline-start: 1.3rem;
}
.testimonial figcaption {
  margin-block-start: 1.1rem; font-size: .95rem; color: var(--muted); font-weight: 600;
}

/* ---------- 14. Contact CTA band ---------- */
.cta-band { background: var(--ink); color: var(--paper); }
.cta-band .eyebrow { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.cta-title {
  font-weight: 800; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.2;
  max-inline-size: 18ch;
}
.cta-sub {
  margin-block-start: 1rem; max-inline-size: 44ch;
  color: color-mix(in srgb, var(--paper) 75%, transparent);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}
.cta-actions { margin-block-start: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.cta-quiet {
  margin-block-start: 2.6rem; display: flex; gap: 1.6rem 2.2rem; flex-wrap: wrap;
  font-size: .95rem; color: color-mix(in srgb, var(--paper) 65%, transparent);
}
.cta-quiet a { transition: color .25s var(--ease); }
.cta-quiet a:hover { color: var(--paper); }

/* ---------- 15. Footer ---------- */
.site-footer { border-block-start: 1px solid var(--line); }
.footer-inner {
  display: grid; gap: clamp(2.2rem, 6vw, 3rem);
  padding-block: clamp(3.5rem, 8vw, 5rem) clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.footer-brand {
  font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1;
  direction: ltr; unicode-bidi: isolate;
}
.footer-tagline { color: var(--muted); font-size: 1rem; margin-block-start: .6rem; }
.footer-links {
  display: flex; gap: 1.1rem 1.8rem; flex-wrap: wrap; justify-content: center;
  font-weight: 500; font-size: 1rem; color: var(--ink-soft);
}
.footer-links a { transition: color .25s var(--ease); }
.footer-links a:hover { color: var(--accent); }
.footer-base {
  display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: center;
  padding-block: 1.4rem clamp(1.8rem, 4vw, 2.6rem);
  border-block-start: 1px solid var(--line);
  font-size: .88rem; color: var(--muted);
}
.footer-base a { transition: color .25s var(--ease); }
.footer-base a:hover { color: var(--ink-soft); }

/* desktop: wordmark block on the start edge, nav on the end edge, balanced */
@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: auto auto;
    align-items: center; justify-content: space-between;
    text-align: start;
  }
  .footer-links { justify-content: flex-end; }
  .footer-base { justify-content: space-between; }
}

/* ---------- 16. Filters (all-work page) ---------- */
.filters {
  display: flex; gap: .6rem; flex-wrap: wrap;
  margin-block-end: clamp(1.8rem, 4vw, 2.8rem);
}

/* ---------- 17. Page headers (works / about / art) ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-title { font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.15; }
.page-lede {
  margin-block-start: 1rem; color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem); max-inline-size: 50ch;
}

/* ---------- 18. About page ---------- */
.about-layout { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (min-width: 900px) { .about-layout { grid-template-columns: 1.1fr .9fr; } }
.about-photos { display: grid; gap: var(--gap); }
.about-photos img { border-radius: var(--radius); }
@media (min-width: 900px) {
  .about-photos { position: sticky; inset-block-start: calc(var(--header-h) + 2rem); }
}

.note-card { /* the pre-army "available for work" note, handled gracefully */
  margin-block-start: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.4rem, 3.5vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-2);
  display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between;
}
.note-card-text { font-weight: 600; color: var(--ink-soft); max-inline-size: 34ch; }

/* about → personal art teaser */
.art-teaser {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
@media (min-width: 760px) { .art-teaser { grid-template-columns: .8fr 1.2fr; } }
.art-teaser-media { border-radius: var(--radius); overflow: hidden; }
.art-teaser h2 { font-weight: 800; font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.art-teaser p { margin-block: .8rem 1.6rem; color: var(--muted); max-inline-size: 40ch; }

/* ---------- 19. Personal art page — quieter, editorial ---------- */
.art-list { display: grid; gap: clamp(4rem, 9vw, 7rem); max-inline-size: 880px; margin-inline: auto; }
.art-piece .tile-media { border-radius: var(--radius); }
.art-piece figcaption {
  display: flex; align-items: baseline; gap: .7rem; padding-block-start: 1rem;
}
.art-piece .art-type { font-size: .85rem; font-weight: 600; color: var(--muted); flex: none; }
.art-piece .art-title { font-family: var(--serif); font-size: 1.2rem; color: var(--ink-soft); }
.art-intro { max-inline-size: 880px; margin-inline: auto; }

/* ---------- 20. Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none;
  background: rgba(var(--scrim), .95);
  color: var(--paper);
}
.lightbox.is-open { display: block; }

.lb-stage {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: clamp(3.5rem, 8vh, 5rem) clamp(.75rem, 4vw, 4.5rem) clamp(4.5rem, 10vh, 6rem);
  touch-action: pan-y; /* horizontal swipes are ours */
}
.lb-slide { max-inline-size: 100%; max-block-size: 100%; display: grid; place-items: center; }
.lb-slide img, .lb-slide video {
  max-inline-size: min(92vw, 1280px);
  max-block-size: calc(100svh - clamp(8rem, 18vh, 11rem));
  inline-size: auto; block-size: auto;
  border-radius: var(--radius);
  animation: lb-in .45s var(--ease);
}
@keyframes lb-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.lb-btn {
  position: absolute; z-index: 2;
  inline-size: 2.9rem; block-size: 2.9rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(250, 248, 244, .12); color: var(--paper);
  backdrop-filter: blur(4px);
  transition: background-color .25s var(--ease);
}
.lb-btn:hover { background: var(--accent); }
.lb-btn svg { inline-size: 1.05rem; block-size: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; }

.lb-close { inset-block-start: 1rem; inset-inline-end: 1rem; }
/* RTL gallery: "next" continues the reading direction — it sits on the LEFT
   (inline-end) and points left; "prev" sits on the RIGHT (inline-start). */
/* RTL gallery: forward (next) advances leftward — its arrow sits on the LEFT
   and points left; back (prev) sits on the RIGHT and points right. */
.lb-next { inset-inline-start: clamp(.5rem, 2vw, 1.5rem); inset-block-start: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-end: clamp(.5rem, 2vw, 1.5rem); inset-block-start: 50%; transform: translateY(-50%); }
@media (max-width: 720px) { .lb-next, .lb-prev { display: none; } } /* mobile: swipe */

.lb-bar {
  position: absolute; inset-block-end: 0; inset-inline: 0; z-index: 2;
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 4.5rem) 1.4rem;
}
.lb-caption { display: flex; align-items: baseline; gap: .6rem; min-inline-size: 0; }
.lb-type  { font-size: .85rem; font-weight: 600; color: color-mix(in srgb, var(--paper) 65%, transparent); flex: none; }
.lb-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-count {
  margin-inline-start: auto; font-size: .9rem; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--paper) 65%, transparent);
  direction: ltr; unicode-bidi: isolate; /* "2 / 5" stays in order */
}

.lb-video-placeholder { /* shown when a work's video has no real src yet */
  inline-size: min(92vw, 960px); aspect-ratio: 16 / 9;
  display: grid; place-items: center; gap: 0;
  background: #2A2622; border-radius: var(--radius);
  color: color-mix(in srgb, var(--paper) 70%, transparent);
  font-weight: 600; text-align: center; padding: 1rem;
}
.lb-video-placeholder span { display: block; font-size: .9rem; font-weight: 400; margin-block-start: .4rem; color: color-mix(in srgb, var(--paper) 45%, transparent); }

/* ---------- 21. Motion: one orchestrated reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* hero load stagger */
.hero .reveal:nth-child(1) { --d: .05s; }
.hero .reveal:nth-child(2) { --d: .18s; }
.hero .reveal:nth-child(3) { --d: .31s; }
.hero .reveal:nth-child(4) { --d: .44s; }

/* positioning strip — the "first section" part of the load reveal */
.positioning li:nth-child(1) { --d: .05s; }
.positioning li:nth-child(2) { --d: .15s; }
.positioning li:nth-child(3) { --d: .25s; }
.positioning li:nth-child(4) { --d: .35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 22. No-JS / utility ---------- */
.no-js .reveal { opacity: 1; transform: none; }
.visually-hidden {
  position: absolute; inline-size: 1px; block-size: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ============================================================
   PRECISION LAYER — now the site-wide default.
   Folded from the variant after the side-by-side comparison:
   lighter weights, modular-scale sizes, slower pacing, quieter
   chrome, plus the dynamic layer (curtain, cursor, scroll nav).
   ============================================================ */

/* ---------- chrome: smaller, quieter, scroll-aware ---------- */
.site-header { transition: transform .45s var(--ease); }
.site-header.nav-hidden { transform: translateY(-100%); }
.header-inner { min-block-size: 3.5rem; }
.brand { font-size: 1.15rem; }
.site-nav a { font-size: .92rem; font-weight: 500; }
.header-inner .btn {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: .88rem; font-weight: 500; padding: .55em 1.25em;
}
.header-inner .btn:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.btn { font-weight: 500; }

/* ---------- type: lighter, on the scale ---------- */
.hero-tagline  { font-weight: 600; font-size: clamp(var(--step-4), 7vw, var(--step-7)); line-height: 1.15; }
.section-title { font-weight: 600; font-size: clamp(var(--step-2), 3.2vw, var(--step-3)); }
.page-title    { font-weight: 600; font-size: clamp(var(--step-3), 5vw, var(--step-5)); }
.cta-title     { font-weight: 600; font-size: clamp(var(--step-3), 5.5vw, var(--step-5)); }
.doorway-label { font-size: clamp(var(--step-1), 3.2vw, var(--step-2)); font-weight: 600; }
.tile-type, .doorway-note, .art-piece .art-type { font-size: var(--step--1); }
.story       { font-size: clamp(1.2rem, 2.5vw, var(--step-2)); line-height: 1.95; }
.story-beat, .signature-text { font-size: clamp(var(--step-2), 3.6vw, var(--step-4)); font-weight: 500; }
.hero--category .hero-title { font-weight: 600; font-size: clamp(var(--step-3), 6vw, var(--step-5)); }
.footer-brand { font-weight: 700; }

/* ---------- hero: full screen (home), lighter scrim ---------- */
.hero { block-size: 100svh; min-block-size: 560px; }
.hero::after {
  background: linear-gradient(to top,
      rgba(var(--scrim), .60) 0%,
      rgba(var(--scrim), .22) 45%,
      rgba(var(--scrim), .14) 100%);
}
.hero--category { block-size: min(62svh, 640px); min-block-size: 380px; }

.hero-content--center { inset: 0; display: grid; place-items: center; text-align: center; }
.hero-content--center > div { inline-size: 100%; }
.hero-content--center .hero-tagline { max-inline-size: none; }
.hero-content--center .hero-sub { justify-content: center; margin-block-start: 1.2rem; font-weight: 400; font-size: clamp(.95rem, 1.8vw, 1.05rem); }
.hero-content--center .hero-actions { justify-content: center; margin-block-start: clamp(1.8rem, 4vh, 2.6rem); }
.hero-content--center .btn-paper {
  background: transparent; color: var(--paper);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--paper) 55%, transparent);
}
.hero-content--center .btn-paper:hover { background: var(--paper); color: var(--ink); box-shadow: none; }

/* hero background video — mp4 or YouTube iframe, covering, non-interactive */
.hero-media video,
.hero-media iframe {
  position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  transform: translate(50%, -50%); /* RTL: inline-start is right, so pull back +50% */
  inline-size: max(100%, calc(100vh * (16 / 9)));
  block-size:  max(100%, calc(100vw * (9 / 16)));
  border: 0; pointer-events: none;
}

/* ---------- positioning: a quiet centered manifesto ---------- */
.positioning { border: 0; text-align: center; }
.positioning ul { display: block; max-inline-size: 34rem; margin-inline: auto; }
.positioning li {
  display: block;
  font-weight: 300; color: var(--ink);
  font-size: clamp(1.1rem, 2.3vw, 1.45rem); line-height: 1.55;
  padding-block: clamp(.9rem, 2.2vw, 1.4rem);
  max-inline-size: 30ch; margin-inline: auto;
  text-wrap: balance;
}
.positioning li + li { border-block-start: 1px solid var(--line); }
.positioning li::before { display: none; }

/* ---------- work: larger pieces, quieter captions ---------- */
.grid-masonry { gap: 0 clamp(2rem, 4.5vw, 3.25rem); }
@media (min-width: 1000px) {
  .grid-masonry { grid-template-columns: repeat(2, 1fr); }
}
.tile-inner { padding-block-end: clamp(2.6rem, 6vw, 4rem); }
.tile figcaption { padding-block-start: .9rem; }
.tile-type  { font-weight: 500; }
.tile-title { font-weight: 500; color: var(--muted); }

/* dense modifier — the all-work browse + vertical reels keep 3 columns */
.grid-masonry--dense { gap: 0 var(--gap); }
@media (min-width: 1000px) {
  .grid-masonry--dense { grid-template-columns: repeat(3, 1fr); }
}
.grid-masonry--dense .tile-inner { padding-block-end: clamp(1.6rem, 4vw, 2.4rem); }

.section-head { margin-block-end: clamp(2.6rem, 6vw, 4.5rem); }
.doorway { padding-block: clamp(1.6rem, 4.5vw, 2.6rem); }
.about-short, .signature-slot { gap: clamp(2.5rem, 7vw, 6rem); }
.cta-sub { font-weight: 400; }

/* ---------- lightbox: embedded players (YouTube) ---------- */
.lb-embed {
  inline-size: min(92vw, 1280px); aspect-ratio: 16 / 9;
  max-block-size: calc(100svh - clamp(8rem, 18vh, 11rem));
  border-radius: var(--radius); overflow: hidden; background: #000;
  animation: lb-in .45s var(--ease);
}
.lb-embed iframe { inline-size: 100%; block-size: 100%; border: 0; }

/* ---------- the entrance: a single paper curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 400;
  background: var(--paper); pointer-events: none;
  animation: curtain-up .85s cubic-bezier(.7, 0, .18, 1) .25s forwards;
}
@keyframes curtain-up { to { transform: translateY(-101%); } }
.no-js .curtain { display: none; }

/* ---------- cursor-follow label on work tiles (fine pointers) ---------- */
.cursor-pill {
  /* physical left/top on purpose: clientX/translate() are physical
     coordinates — inline-start would anchor right in RTL and miss */
  position: fixed; top: 0; left: 0; z-index: 250;
  pointer-events: none;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: .88rem; line-height: 1;
  padding: .65em 1.15em; border-radius: 999px;
  opacity: 0;
  transition: opacity .25s var(--ease);
  will-change: transform;
}
.cursor-pill.is-on { opacity: 1; }
@media (pointer: fine) {
  .tile-media { cursor: none; }
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-pill { display: none; }
  .tile-media { cursor: pointer; }
}

/* ---------- motion: slower, finer; timed after the curtain ---------- */
.reveal { transform: translateY(18px); transition-duration: .9s; }
.hero .reveal:nth-child(1) { --d: .55s; }
.hero .reveal:nth-child(2) { --d: .75s; }
.hero .reveal:nth-child(3) { --d: .95s; }
.positioning li:nth-child(1) { --d: .7s; }
.positioning li:nth-child(2) { --d: .85s; }
.positioning li:nth-child(3) { --d: 1s; }
.positioning li:nth-child(4) { --d: 1.15s; }
@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
}

/* ---------- hover video previews on tiles ---------- */
.tile-preview {
  position: absolute; inset: 0;
  inline-size: 100%; block-size: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none; /* clicks pass through to the tile button beneath */
}
.tile-preview.is-on { opacity: 1; }
