/* =========================================================
   בן שאנן · אדריכלות ועיצוב פנים
   Monochrome / gallery / minimal - RTL Hebrew
   Modeled on the nhdesign.co.il aesthetic
   ========================================================= */

/* ---------- TelAviv Brutalist (site font) ---------- */
@font-face {
  font-family: 'TelAviv Brutalist';
  src: url('assets/fonts/TelAviv-BrutalistLight.ttf') format('truetype');
  font-weight: 100 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TelAviv Brutalist';
  src: url('assets/fonts/TelAviv-BrutalistRegular.ttf') format('truetype');
  font-weight: 301 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TelAviv Brutalist';
  src: url('assets/fonts/TelAviv-BrutalistBold.ttf') format('truetype');
  font-weight: 501 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: only light;   /* keep the light design; stop mobile browsers force-darkening it */
  --white:   #ffffff;
  --paper:   #fafafa;   /* faint off-white for alternating sections */
  --ink:     #0a0a0a;   /* near-black, headings */
  --ink-2:   #1c1c1c;
  --text:    #606060;   /* body gray (matches reference) */
  --text-2:  #8a8a8a;
  --line:    #e0e0e0;   /* hairlines (matches reference) */
  --line-2:  #ededed;

  /* warm hand-sketch ink - the architectural illustration line (site-wide) */
  --sketch-ink:   #2a241c;
  --sketch-mid:   #6f6657;
  --sketch-faint: #d9cfbc;
  --sketch-dim:   #a99c86;

  --font: 'TelAviv Brutalist', 'Assistant', system-ui, 'Segoe UI', sans-serif;

  --container: 1320px;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;            /* clip (not hidden) so position:sticky still works */
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
em { font-style: normal; color: var(--ink); }

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

.section { padding-block: clamp(80px, 12vw, 170px); }

/* ---------- shared headings ---------- */
.section-head { margin-bottom: clamp(44px, 6vw, 80px); max-width: 760px; }
.section-title {
  font-size: clamp(1.9rem, 4.4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-sub {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--text);
  max-width: 52ch;
}

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  transition: background .5s var(--ease), border-color .5s var(--ease), padding .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 34px;          /* client: move the logo further from the top */
  transition: padding .5s var(--ease);
}
.header.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header.scrolled .header-inner { padding-block: 16px; }

/* white header over the dark hero; reverts to dark once scrolled */
.header:not(.scrolled) .brand,
.header:not(.scrolled) .nav a { color: #ffffff; }
.header:not(.scrolled) .nav-toggle span { background: #ffffff; }

.brand {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  transition: color .5s var(--ease);
}

/* ---- B.Shanan logo mark (img; recolored to white via filter where the
        background is dark, mirroring the text brand's dark/white switch) ---- */
.brand-img { display: block; width: auto; }
.brand .brand-img        { height: 46px; }   /* client: smaller top logo */
.footer-brand .brand-img { height: 71px; }
.intro-brand .brand-img  { height: clamp(92px, 23vw, 150px); }

/* dark logo by default (footer/white header); white on dark backgrounds */
.intro-brand .brand-img { filter: brightness(0) invert(1); }
.header:not(.scrolled) .brand .brand-img { filter: brightness(0) invert(1); }
body:has(.hero--banner) .header:not(.scrolled) .brand .brand-img { filter: none; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav a {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-2);
  position: relative;
  padding-block: 4px;
  transition: color .5s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width .4s var(--ease);
}
.nav a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 6px; padding: 8px; z-index: 110; }
.nav-toggle span { width: 28px; height: 1.5px; background: var(--ink); transition: all .4s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* white header text while over the (dark-scrim) hero, dark once scrolled */
.header:not(.scrolled) .brand,
.header:not(.scrolled) .nav a { color: #fff; }
.header:not(.scrolled) .nav a::after { background: #fff; }
.header:not(.scrolled) .nav-toggle span { background: #fff; }

/* =========================================================
   Hero - full-bleed image, light overlay, minimal text
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--white);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  top: -15%;
  inset-inline: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center 70%;
  will-change: transform;
  scale: 1.04;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns { from { scale: 1.04; } to { scale: 1.13; } }

/* =========================================================
   Cinematic hero background - 3 frames, one continuous push-in.
   Only opacity + transform are animated (GPU friendly).
   Timing / scale / alignment live in cinematic-hero.js.
   ========================================================= */
.cinematic-hero {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #ece4d8;           /* ivory fallback - never a white flash */
}
.cine-frame {
  position: absolute;
  inset: 0;
}
.cine-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 60%;      /* default; overridden per-frame by JS */
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(1.02);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
/* Frame 1 painted immediately, before JS boots (prevents blank hero) */
.cine-frame[data-frame="0"] img { opacity: 1; }

/* Reduced motion → static Frame 1, no movement, no crossfades */
@media (prefers-reduced-motion: reduce) {
  .cine-frame img { transform: none !important; animation: none !important; }
  .cine-frame[data-frame="0"] img { opacity: 1 !important; }
  .cine-frame:not([data-frame="0"]) img { opacity: 0 !important; }
}

/* =========================================================
   Scroll-pinned hero journey
   The hero sticks while the track scrolls past it; cinematic-hero.js
   maps that scroll progress to the camera move (Frame 1 → 1.5 → 2 → 2.5 → 3).
   --hero-journey = how much extra scrolling the journey takes (more = slower).
   ========================================================= */
.hero-track {
  --hero-journey: 300svh;
  position: relative;
  height: calc(100svh + var(--hero-journey));
}
.hero-track > .hero {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 0;
}
@media (max-width: 760px) {
  .hero-track { --hero-journey: 200svh; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-track { height: 100svh; }            /* no journey - just a static hero */
  .hero-track > .hero { position: relative; }
}

/* =========================================================
   Hero · single-image BANNER variant
   One bright/airy image → dark copy + a light reading scrim, so the
   ivory palette stays intact. Active when .hero--banner is present.
   ========================================================= */
.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
  z-index: 0;
}
/* light wash on the reading (LEFT) side + top, for dark text over the blueprint */
.hero--banner .hero-overlay {
  background:
    linear-gradient(to right, rgba(255,255,255,.82) 0%, rgba(255,255,255,.40) 40%, rgba(255,255,255,0) 70%),
    linear-gradient(to bottom, rgba(255,255,255,.50) 0%, rgba(255,255,255,0) 26%);
}
.hero--banner .hero-eyebrow { color: var(--ink-2); }
.hero--banner .hero-title   { color: var(--ink); }
.hero--banner .hero-lead    { color: var(--text); }
.hero--banner .hero-cta     { color: var(--ink); border-bottom-color: rgba(10,10,10,.7); }
.hero--banner .hero-scroll span { background: rgba(10,10,10,.5); }

/* dark header over the bright banner (auto-applies while the banner
   variant is in the page; reverts when it is removed) */
body:has(.hero--banner) .header:not(.scrolled) .brand,
body:has(.hero--banner) .header:not(.scrolled) .nav a { color: var(--ink); }
body:has(.hero--banner) .header:not(.scrolled) .nav a::after { background: var(--ink); }
body:has(.hero--banner) .header:not(.scrolled) .nav-toggle span { background: var(--ink); }

/* ---- decorative illustration behind the banner copy (LEFT side) ---- */
.hero--banner .hero-copy {
  position: relative;
  isolation: isolate;            /* keeps the art's z-index local */
  width: fit-content;
  max-width: min(92vw, 620px);   /* wide enough for the long title line, never clip it */
  margin-inline-start: auto;     /* push the copy to the inline-end = LEFT in RTL */
}
.hero-copy-art {
  position: absolute;
  z-index: -1;
  inset: -58px -44px -54px -72px;
  pointer-events: none;
  /* warm ivory glow that lifts the text */
  background:
    radial-gradient(116% 96% at 32% 40%, rgba(255,250,242,.80) 0%, rgba(255,247,236,.46) 40%, rgba(255,247,236,0) 75%);
  -webkit-backdrop-filter: blur(3px) saturate(1.05);
  backdrop-filter: blur(3px) saturate(1.05);
  /* fade the panel + blur out organically - no hard rectangle */
  -webkit-mask-image: radial-gradient(116% 96% at 34% 42%, #000 0%, #000 48%, transparent 80%);
  mask-image: radial-gradient(116% 96% at 34% 42%, #000 0%, #000 48%, transparent 80%);
}

/* ---- hero copy sits on the LEFT (inline-end in RTL); base rules above
       handle the position, the ivory glow and the left-weighted wash ---- */
/* book & lecture heroes keep their centered treatment (their own glow/wash
   live in book.css / lecture.css) — only the home hero returns to the left */
.book-hero.hero--banner .hero-copy,
.lec-hero.hero--banner .hero-copy { margin-inline: auto; text-align: center; }
.book-hero.hero--banner .hero-title,
.book-hero.hero--banner .hero-lead,
.lec-hero.hero--banner .hero-title,
.lec-hero.hero--banner .hero-lead { margin-inline: auto; }
@media (max-width: 760px) {
  /* Mobile banner: anchor the copy to the BOTTOM over a clean light
     scrim, full width - instead of floating centred over the busy image. */
  .hero--banner { align-items: flex-end; }
  .hero--banner .hero-content {
    padding-top: 0;
    padding-bottom: clamp(28px, 6vh, 56px);
  }
  .hero--banner .hero-copy { width: 100%; max-width: 100%; }
  .hero--banner .hero-copy-art { display: none; }   /* scrim handles legibility */
  /* keep the copy compact so it sits on the sea (dead space), not the house */
  .hero--banner .hero-overlay {
    background: linear-gradient(to top,
      rgba(255,250,243,.94) 0%,
      rgba(255,250,243,.72) 24%,
      rgba(255,250,243,.26) 44%,
      rgba(255,250,243,0)   62%);
  }
  .hero--banner .hero-banner-img { object-position: 50% 50%; }
  .hero--banner .hero-eyebrow { margin-bottom: 12px; font-size: 0.76rem; }
  /* let the title wrap to the screen instead of forcing one long row */
  .hero--banner .hero-title {
    width: auto;
    max-width: 100%;
    font-size: clamp(1.8rem, 7.4vw, 2.4rem);
    line-height: 1.1;
  }
  .hero--banner .hero-title .line { white-space: normal; }
  .hero--banner .hero-lead {
    max-width: 40ch;
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .hero--banner .hero-cta { margin-top: 20px; }
  .hero--banner .hero-scroll { display: none; }
}

/* legibility scrim: dark from the reading side + bottom (for white text) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(10,10,10,.34) 0%, rgba(10,10,10,0) 30%),
    linear-gradient(to top, rgba(10,10,10,.48) 0%, rgba(10,10,10,0) 45%),
    linear-gradient(to left, rgba(10,10,10,.64) 0%, rgba(10,10,10,.26) 45%, rgba(10,10,10,0) 72%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 80px;
}
.hero-eyebrow {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #ffffff;
  width: max-content;
  max-width: 100%;
}
/* keep each title line on a single row (breaks are explicit in the markup) */
.hero-title .line { white-space: nowrap; }
/* the emphasised line - the key message in bold */
.hero-title .line--strong { font-weight: 700; }
.hero-lead {
  margin-top: clamp(20px, 2.4vw, 28px);
  max-width: 40ch;
  font-size: clamp(0.98rem, 1.1vw, 1.1rem);
  font-weight: 300;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.85);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  font-size: 1.02rem;
  font-weight: 500;
  color: #ffffff;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  transition: gap .35s var(--ease), opacity .3s;
}
.hero-cta svg { transition: transform .45s var(--ease); }
.hero-cta:hover { gap: 18px; }
.hero-cta:hover svg { transform: translateY(4px); }

/* =========================================================
   Manifesto
   ========================================================= */
.manifesto { text-align: center; }
.manifesto-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 34px;
}
.manifesto-text {
  font-size: clamp(1.5rem, 3.6vw, 2.7rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 24ch;
  margin-inline: auto;
}
@media (min-width: 700px) { .manifesto-text { max-width: 20ch; } }

/* =========================================================
   Projects - gallery grid
   ========================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 64px) clamp(24px, 3vw, 48px);
}
.project { display: block; }
.project--wide { grid-column: 1 / -1; }

.project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: 1px solid var(--line-2);
}
.project--wide .project-media { aspect-ratio: 16 / 7; }
.project-media img {
  position: absolute;
  top: -10%;
  inset-inline: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 75%;
  will-change: transform;
  transition: scale 1.1s var(--ease), filter .6s var(--ease);
}
.project:hover .project-media img { scale: 1.06; }

/* placeholders (until real photos arrive) */
.project-media.ph { display: flex; align-items: center; justify-content: center; }
.project-media.ph span {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.ph-a { background: linear-gradient(135deg, #f2f2f2, #e6e6e6); }
.ph-b { background: linear-gradient(135deg, #ededed, #e0e0e0); }
.ph-c { background: linear-gradient(135deg, #f4f4f4, #e9e9e9); }
.ph-d { background: linear-gradient(135deg, #ebebeb, #dedede); }

.project-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
}
.project-cap h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 400;
  color: var(--ink);
  transition: opacity .3s;
}
.project-cap span {
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: var(--text-2);
}
.project:hover .project-cap h3 { opacity: .55; }

/* =========================================================
   Services
   ========================================================= */
.services { background: var(--paper); border-block: 1px solid var(--line); }
.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.service {
  padding: clamp(36px, 4vw, 60px) clamp(28px, 3vw, 48px);
  border-inline-start: 1px solid var(--line);
}
.service:first-child { border-inline-start: none; }
.service-idx {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.service h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
}
.service p { font-size: 1.02rem; color: var(--text); max-width: 36ch; }

/* =========================================================
   Statement
   ========================================================= */
.statement {
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(90px, 14vw, 190px);
  text-align: center;
}
.statement blockquote {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 200;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin-inline: auto;
}

/* =========================================================
   Contact
   ========================================================= */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(44px, 7vw, 110px);
  align-items: start;
}
/* availability status pill */
.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: clamp(20px, 2.4vw, 30px);
}
.contact-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sketch-ink);
  position: relative;
}
.contact-status-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--sketch-ink); opacity: 0;
}
body.motion .contact-status-dot::after { animation: statusPulse 2.6s var(--ease) infinite; }
@keyframes statusPulse {
  0%   { transform: scale(.6); opacity: .6; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { opacity: 0; }
}

.contact-details { margin-top: clamp(36px, 4vw, 56px); display: grid; gap: 0; }
.contact-details li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
}
.contact-details li:last-child { border-bottom: 1px solid var(--line); }
.contact-details span:first-child {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.contact-details a, .contact-details .val { color: var(--ink); font-weight: 500; transition: opacity .3s; }
.contact-details a:hover { opacity: .55; }

/* ---------- the brief: premium form ---------- */
.contact-form { position: relative; }

.form-frame {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(26px, 3.2vw, 46px) clamp(22px, 3vw, 44px) clamp(28px, 3.2vw, 44px);
  display: grid;
  gap: clamp(4px, 1vw, 10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s var(--ease);
}
.contact-form.is-sent .form-frame {
  opacity: 0;
  transform: scale(.985);
  filter: blur(2px);
  pointer-events: none;
}

.form-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: clamp(10px, 1.6vw, 20px);
}
.form-eyebrow-line { width: 32px; height: 1px; background: var(--sketch-dim); display: inline-block; }

.field { position: relative; padding-top: 24px; }
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.06rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 4px 0 13px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  resize: none;
}
.field textarea { min-height: 46px; }
.field input:focus,
.field textarea:focus { outline: none; }

/* floating label */
.field label {
  position: absolute;
  inset-inline-start: 0;
  top: 28px;
  font-size: 1.06rem;
  color: var(--text-2);
  pointer-events: none;
  transform-origin: top right;
  transition: transform .34s var(--ease), color .34s var(--ease);
}
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-27px) scale(.74);
  color: var(--sketch-mid);
}
.field input:focus ~ label,
.field textarea:focus ~ label { color: var(--sketch-ink); }

/* blueprint annotation number */
.field::before {
  content: attr(data-index);
  position: absolute;
  inset-inline-end: 0;
  top: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--sketch-dim);
  font-variant-numeric: tabular-nums;
  transition: color .34s var(--ease);
}
.field:focus-within::before { color: var(--sketch-ink); }

/* the focus underline that draws in */
.field-underline {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 100%;
  height: 1.6px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.field input:focus ~ .field-underline,
.field textarea:focus ~ .field-underline { transform: scaleX(1); }

.field.is-error input,
.field.is-error textarea { border-bottom-color: var(--sketch-ink); }
.field.is-error label { color: var(--sketch-ink); }
.field.is-error { animation: fieldShake .4s var(--ease); }
@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
}

/* project-type chips */
.chips-field { padding-top: 22px; padding-bottom: 4px; }
.chips-label {
  display: block;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 15px;
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1;
  color: var(--ink-2);
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  transition: color .3s var(--ease), background .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.chip:hover { border-color: var(--sketch-mid); transform: translateY(-2px); }
.chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* submit row + live progress */
.form-foot {
  margin-top: clamp(22px, 2.8vw, 32px);
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  flex-wrap: wrap;
}
.btn-submit {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 16px 38px;
  background: var(--ink);
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn-submit-fill {
  position: absolute; inset: 0; z-index: -1;
  background: var(--sketch-ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -14px rgba(10,10,10,.55); }
.btn-submit:hover .btn-submit-fill { transform: scaleX(1); }
.btn-submit-arrow { transition: transform .45s var(--ease); }
.btn-submit:hover .btn-submit-arrow { transform: translateX(-6px); }

.form-progress {
  flex: 1 1 130px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.form-progress-track {
  position: relative;
  flex: 1;
  height: 1.6px;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
}
.form-progress-bar {
  position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .55s var(--ease);
}
.form-progress-count {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color .35s var(--ease);
}
.form-progress.is-ready .form-progress-count { color: var(--sketch-ink); }

/* animated success state */
.form-success {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 16px;
  padding: 30px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .6s .25s var(--ease), transform .6s .25s var(--ease);
}
.contact-form.is-sent .form-success { opacity: 1; transform: none; pointer-events: auto; }
.form-success-check { color: var(--ink); }
.form-success-title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 300; color: var(--ink); }
.form-success-sub { font-size: 0.98rem; color: var(--text); max-width: 30ch; }
.fs-ring { stroke-dasharray: 176; stroke-dashoffset: 176; }
.fs-tick { stroke-dasharray: 42; stroke-dashoffset: 42; }
.contact-form.is-sent .fs-ring { animation: fsDraw .7s .35s var(--ease) forwards; }
.contact-form.is-sent .fs-tick { animation: fsDraw .5s .95s var(--ease) forwards; }
@keyframes fsDraw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .field label, .field-underline, .form-progress-bar,
  .btn-submit, .btn-submit-fill, .btn-submit-arrow,
  .form-frame, .form-success { transition: none; }
  .fs-ring, .fs-tick { stroke-dashoffset: 0; }
  .contact-form.is-sent .fs-ring,
  .contact-form.is-sent .fs-tick { animation: none; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--white); border-top: 1px solid var(--line); }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(32px, 5vw, 84px);
  padding-block: clamp(58px, 7vw, 100px) clamp(40px, 5vw, 66px);
}

/* brand column */
.footer-brand-col { max-width: 38ch; }
.footer-logo { display: inline-block; }
.footer-logo .brand-img { height: clamp(48px, 6vw, 60px); width: auto; }
.footer-tagline {
  margin: clamp(20px, 2.4vw, 28px) 0 clamp(22px, 2.6vw, 30px);
  font-size: 1rem; font-weight: 300; line-height: 1.7; color: var(--text); max-width: 34ch;
}

/* minimal social icons */
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--ink-2);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.footer-social a svg { width: 18px; height: 18px; display: block; }
.footer-social a:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }

/* link columns */
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-col-title {
  margin-bottom: 6px;
  font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--text-2);
}
.footer-col a, .footer-loc { font-size: 1rem; color: var(--ink-2); transition: opacity .3s var(--ease); }
.footer-col a:hover { opacity: .55; }
.footer-loc { color: var(--text); }
.footer-cta {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; color: var(--ink); padding-bottom: 6px; border-bottom: 1px solid var(--ink);
}
.footer-cta svg { width: 19px; height: 10px; transition: transform .35s var(--ease); }
.footer-cta:hover svg { transform: translateX(-5px); }

/* bottom bar */
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-block: 24px; border-top: 1px solid var(--line);
  font-size: .86rem; color: var(--text-2);
}
.footer-bottom-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom-nav a { transition: opacity .3s var(--ease); }
.footer-bottom-nav a:hover { opacity: .55; }

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 48px); }
  .footer-brand-col { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* studio credit chip - white pill, sits in the bottom bar */
.footer-credit {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; font-size: .95rem; line-height: 1;
  color: #000; background: #fff; border: 1px solid rgba(0,0,0,0.08); text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 4px 12px -6px rgba(0,0,0,0.25);
}
.footer-credit:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(0,0,0,0.35); }
.footer-credit span { font-weight: 600; letter-spacing: .01em; color: #000; }
.footer-credit-logo { height: 1.7em; width: auto; display: block; }

/* =========================================================
   Reveal
   ========================================================= */
body.motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
body.motion .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .services-list { grid-template-columns: 1fr; }
  .service { border-inline-start: none; border-top: 1px solid var(--line); }
  .service:first-child { border-top: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .form-foot { gap: 18px; }
  .btn-submit { flex: 1 1 auto; justify-content: center; }
  .form-progress { flex: 1 1 100%; order: 2; }
}

/* Mobile / tablet nav - switch to the full-screen menu early so the
   six-item bar never wraps on narrow laptops or tablets */
@media (max-width: 1000px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    background: var(--white);
    transform: translateX(-100%);
    /* visibility:hidden keeps the off-canvas panel from being pannable on iOS
       (a position:fixed element parked off-screen otherwise lets the page swipe
       left-right beyond its width). It also ignores body's overflow-x:clip. */
    visibility: hidden;
    transition: transform .55s var(--ease), visibility .55s var(--ease);
  }
  .nav.open { transform: translateX(0); visibility: visible; }
  .nav a { font-size: 1.5rem; }
  /* full-screen menu has a white background → keep links/icon dark even over the hero */
  .header:not(.scrolled) .nav.open a { color: var(--ink); }
  .header:not(.scrolled) .nav-toggle.open span { background: var(--ink); }
  .nav-toggle { display: flex; }

  /* A scrolled header gains backdrop-filter, which establishes a containing block
     that traps this fixed full-screen menu inside the ~60px header box (the menu
     appeared mid-page after scrolling). Drop the filter while the menu is open so
     the overlay resolves against the viewport again. */
  .header:has(.nav.open) { backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* universal fallback for browsers without :has() (older iOS Safari) — the JS
     adds body.menu-open while the menu is open */
  body.menu-open .header { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

@media (max-width: 760px) {
  .hero-overlay {
    background:
      linear-gradient(to top, rgba(10,10,10,.62) 0%, rgba(10,10,10,.12) 45%, rgba(10,10,10,0) 70%),
      linear-gradient(to bottom, rgba(10,10,10,.4) 0%, rgba(10,10,10,0) 32%);
  }
  .hero-img { object-position: center 82%; }
  .projects-grid { grid-template-columns: 1fr; }
  .project--wide .project-media { aspect-ratio: 4 / 3; }
}

/* =========================================================
   MOTION LAYER - intro, cursor, marquee, parallax, reveals
   (all "hide first" states gated behind body.motion so the
    page is fully visible if JS never runs)
   ========================================================= */

/* ---- Intro loader ---- */
.intro {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  animation: introHide .8s var(--ease) 1.7s forwards;
}
.intro-panel { display: none; }
.intro-inner { text-align: center; }
.intro-brand {
  display: block; color: #fff;
  font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 300; letter-spacing: .03em;
}
.intro-sub {
  display: block; color: rgba(255,255,255,.45);
  font-size: .76rem; letter-spacing: .3em; text-transform: uppercase; margin-top: 16px;
}
body.motion .intro-inner { overflow: hidden; }
body.motion .intro-brand { transform: translateY(110%); animation: introUp .95s var(--ease) .2s forwards; }
body.motion .intro-sub { opacity: 0; animation: introFade .8s ease .7s forwards; }
@keyframes introUp   { to { transform: translateY(0); } }
@keyframes introFade { to { opacity: 1; } }
@keyframes introHide { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ---- Hero staggered reveal (only with motion; visible otherwise) ---- */
.hero-title .line { display: block; overflow: hidden; }
body.motion .hero-title .line > span { display: block; transform: translateY(115%); transition: transform 1s var(--ease); }
body.motion .hero-eyebrow,
body.motion .hero-lead,
body.motion .hero-cta { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
body.motion.loaded .hero-title .line:nth-child(1) > span { transform: translateY(0); transition-delay: .05s; }
body.motion.loaded .hero-title .line:nth-child(2) > span { transform: translateY(0); transition-delay: .17s; }
body.motion.loaded .hero-eyebrow { opacity: 1; transform: none; }
body.motion.loaded .hero-lead { opacity: 1; transform: none; transition-delay: .34s; }
body.motion.loaded .hero-cta { opacity: 1; transform: none; transition-delay: .46s; }

/* ---- Hero typewriter - the strong line types itself in a loop ---- */
.hero-type {
  /* override the staggered slide-reveal so it doesn't fight the typing */
  display: inline-block !important;
  transform: none !important;
  white-space: nowrap;
  /* JS reserves the full text width here so the title never reflows */
}
.hero-type.is-active::after {
  content: '';
  display: inline-block;
  inline-size: 0.07em;
  block-size: 0.94em;
  margin-inline-start: 0.08em;
  background: currentColor;
  border-radius: 1px;
  vertical-align: -0.08em;
  animation: heroCaretBlink 1.05s steps(1, end) infinite;
}
/* keep the caret solid while characters are actively added/removed */
.hero-type.is-typing::after { animation: none; opacity: 1; }
@keyframes heroCaretBlink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-type.is-active::after { display: none; }
}

/* ---- Image clip-reveal ---- */
body.motion .reveal-img { clip-path: inset(0 0 100% 0); }
body.motion .reveal-img.in { clip-path: inset(0 0 0 0); transition: clip-path 1.25s var(--ease); }

/* ---- Word/statement reveal ---- */
body.motion .word-reveal { display: inline-block; opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
body.motion .word-reveal.in { opacity: 1; transform: none; }

/* ---- Hero scroll indicator ---- */
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 1px; height: 56px; overflow: hidden;
}
.hero-scroll span {
  display: block; width: 100%; height: 100%;
  background: rgba(255,255,255,.7);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- Marquee ---- */
.marquee {
  overflow: hidden; white-space: nowrap;
  background: var(--white);
  border-block: 1px solid var(--line);
  padding-block: clamp(18px, 2.4vw, 30px);
}
.marquee-track { display: inline-flex; align-items: center; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: clamp(1.3rem, 3vw, 2.3rem);
  font-weight: 300; color: var(--ink);
  padding-inline: clamp(20px, 3vw, 40px);
}
.marquee-track i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-2); display: inline-block; flex: none;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Custom cursor (desktop pointer only) ---- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 1500;
  pointer-events: none; opacity: 0;
  transition: opacity .3s ease;
  will-change: transform;
  display: none;
}
.cursor::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--ink); mix-blend-mode: normal;
  transition: width .32s var(--ease), height .32s var(--ease), margin .32s var(--ease), background .25s;
}
.cursor-label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  color: #fff; font-size: .78rem; letter-spacing: .14em;
  opacity: 0; white-space: nowrap; transition: opacity .3s;
}
.cursor.is-link::before { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.cursor.is-view::before { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--ink); mix-blend-mode: normal; }
.cursor.is-view .cursor-label { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  body.has-cursor { cursor: none; }
  body.has-cursor a, body.has-cursor button { cursor: none; }
  body.has-cursor input, body.has-cursor textarea { cursor: text; }
  body.has-cursor .cursor { display: block; }
}
@media (hover: none) { .cursor { display: none !important; } }

/* =========================================================
   PHILOSOPHY (section 02) - hand-sketch architectural language
   Self-contained; scoped under .philosophy
   ========================================================= */
.philosophy {
  background: var(--white);
  position: relative;
  padding-block-start: clamp(20px, 3vw, 40px);
  /* warm sketch ink - echoes the hero illustration line */
  --sketch-ink:   #2a241c;
  --sketch-mid:   #6f6657;
  --sketch-faint: #d9cfbc;
  --sketch-dim:   #a99c86;
}
.ph-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

/* spec-sheet header */
.ph-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.ph-index { display: flex; align-items: baseline; gap: 16px; }
.ph-num { font-size: .95rem; font-weight: 600; letter-spacing: .12em; color: var(--ink); }
.ph-label { font-size: .8rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--text-2); }
.ph-coord { font-size: .72rem; letter-spacing: .18em; color: var(--text-2); direction: ltr; white-space: nowrap; }

.ph-rule {
  position: relative; height: 1px; background: var(--line);
  margin: 22px 0 clamp(44px, 5vw, 78px);
}
.ph-rule::before, .ph-rule::after {
  content: ""; position: absolute; top: -3px; width: 1px; height: 7px; background: var(--ink);
}
.ph-rule::before { inset-inline-start: 0; }
.ph-rule::after  { inset-inline-end: 0; }

/* layout */
.ph-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;   /* text narrow · illustration dominant */
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}

/* statement */
.ph-statement {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 600; line-height: 1.14; letter-spacing: -0.025em;
  color: var(--ink); max-width: 18ch;
}
.ph-statement em {
  font-style: normal; font-weight: 700; color: var(--ink);
}

/* editorial masthead - statement + lead */
.ph-intro {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(46px, 6vw, 90px);
}
.ph-lead {
  max-width: 38ch;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 300; line-height: 1.75; color: var(--text);
}

/* ===== signature interaction - sketch ⇆ finished home ===== */
.ph-reveal { margin: 0 auto; max-width: 1100px; }
.ph-cmp {
  position: relative; width: 100%; --pos: 50%;
  cursor: ew-resize; touch-action: none;
  -webkit-user-select: none; user-select: none;
  overflow: hidden;
}
.ph-cmp-img {
  display: block; width: 100%; height: auto;
  mix-blend-mode: multiply;          /* white paper melts into the bone page */
  -webkit-user-drag: none; pointer-events: none;
}
.ph-cmp-render { position: relative; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ph-cmp-sketch { position: absolute; top: 0; left: 0; clip-path: inset(0 0 0 var(--pos)); }

/* divider + grip */
.ph-cmp-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 1px; background: var(--sketch-ink);
  transform: translateX(-0.5px); pointer-events: none; z-index: 3;
}
.ph-cmp-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); color: var(--sketch-ink); border: 1px solid var(--sketch-ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -12px rgba(42,36,28,.55);
}
.ph-cmp-grip::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid var(--sketch-ink); opacity: 0;
  animation: gripPulse 2.8s ease-out infinite;
}
.ph-cmp.dragging .ph-cmp-grip::after { animation: none; }
@keyframes gripPulse { 0% { transform: scale(.8); opacity: .45; } 70%,100% { transform: scale(1.5); opacity: 0; } }

.ph-cmp-label {
  position: absolute; top: 16px; z-index: 2;
  font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sketch-dim);
  pointer-events: none;
}
.ph-cmp-label--a { right: 18px; }   /* sketch side */
.ph-cmp-label--b { left: 18px; }    /* finished side */
.ph-cmp-cap {
  margin-top: 20px; text-align: center;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2);
}

/* ===== refined principles - gallery grid of three ===== */
.ph-list {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.ph-row {
  position: relative;
  padding: clamp(36px, 3.6vw, 58px) clamp(24px, 2.2vw, 44px);
  border-inline-start: 1px solid var(--line);
}
.ph-row:first-child { border-inline-start: none; padding-inline-start: 0; }
/* top accent that draws in on hover */
.ph-row::after {
  content: "";
  position: absolute; inset-block-start: -1px; inset-inline-start: 0;
  width: 100%; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .6s var(--ease);
}

.ph-row-index {
  display: block;
  font-size: clamp(2.6rem, 3.6vw, 3.7rem);
  font-weight: 200; line-height: 1; letter-spacing: -.02em;
  color: var(--sketch-dim); direction: ltr;
  transition: color .5s var(--ease);
}

.ph-row-text { display: block; margin-top: clamp(28px, 2.6vw, 44px); }
.ph-row-tag {
  display: block; margin-bottom: 14px;
  font-size: .66rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--text-2); direction: ltr;
  transition: color .5s var(--ease);
}
.ph-row-name {
  margin-bottom: 13px;
  font-size: clamp(1.4rem, 1.85vw, 1.9rem);
  font-weight: 400; line-height: 1.12; letter-spacing: -.012em; color: var(--ink);
}
.ph-row-desc {
  max-width: 32ch;
  font-size: clamp(.95rem, 1.02vw, 1.04rem); line-height: 1.62; color: var(--text);
}

@media (hover: hover) {
  .ph-row:hover::after { transform: scaleX(1); }
  .ph-row:hover .ph-row-index { color: var(--ink); }
  .ph-row:hover .ph-row-tag { color: var(--ink-2); }
}

/* staggered reveal cascade for the rows */
body.motion .ph-row.reveal { transition-delay: var(--d, 0ms); }

@media (max-width: 760px) {
  .ph-list { grid-template-columns: 1fr; }
  .ph-row {
    display: grid; grid-template-columns: clamp(2.6rem, 15vw, 3.6rem) 1fr;
    align-items: center; column-gap: clamp(18px, 5vw, 26px);
    padding: 28px 0; border-inline-start: none; border-top: 1px solid var(--line);
  }
  .ph-row:first-child { border-top: none; padding-top: 6px; }
  .ph-row::after { inset-block-start: auto; inset-block-end: -1px; height: 1px; }
  .ph-row-index { font-size: clamp(2rem, 12vw, 2.9rem); }
  .ph-row-text { margin-top: 0; }
  .ph-row-tag { text-align: right; margin-bottom: 10px; }
  .ph-row-name { margin-bottom: 9px; }
  .ph-row-desc { max-width: none; }
}

/* =========================================================
   ABOUT (section 02) - "the space comes to life" · WebGL
   ========================================================= */
.about { position: relative; background: var(--white); }
/* TEMP: About section hidden for now - delete this single rule to restore it. */
#about { display: none; }
.about-track { position: relative; height: 240vh; }
.about-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--white); }
/* two stacked frames: peephole → inside */
.about-stage { position: absolute; inset: 0; overflow: hidden; background: #050505; z-index: 1; }
.about-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform, opacity; }
.about-img-1 { transform-origin: 50% 46%; }
.about-img-2 { opacity: 0; transform-origin: 50% 50%; }

/* legibility scrim - only once you're inside */
.about-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  transition: opacity .8s var(--ease);
  background:
    linear-gradient(to top, rgba(255,255,255,.9) 0%, rgba(255,255,255,.3) 28%, rgba(255,255,255,0) 54%),
    linear-gradient(to left, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 48%);
}
.about-pin.entered .about-scrim { opacity: 1; }

.about-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(54px, 10vh, 120px);
  pointer-events: none;
}
.about-eyebrow {
  display: block; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 22px;
}
.about-title {
  font-size: clamp(2.4rem, 6.5vw, 5.4rem);
  font-weight: 300; line-height: 1.07; letter-spacing: -0.025em; color: var(--ink);
}
.about-title .line { display: block; overflow: hidden; }
.about-sign {
  margin-top: 28px; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}

/* overlay hidden until you've "entered" (JS adds .entered); visible if no motion */
body.motion .about-title .line > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
body.motion .about-eyebrow,
body.motion .about-sign { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.about-pin.entered .about-title .line > span { transform: none; }
.about-pin.entered .about-title .line:nth-child(2) > span { transition-delay: .1s; }
.about-pin.entered .about-eyebrow { opacity: 1; transform: none; transition-delay: .05s; }
.about-pin.entered .about-sign { opacity: 1; transform: none; transition-delay: .45s; }

/* scroll hint - fades once you start moving (JS adds .moving) */
.about-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: opacity .6s ease;
}
.about-hint-txt { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: #fff; opacity: .9; }
.about-hint-line { position: relative; width: 1px; height: 40px; background: rgba(255,255,255,.35); overflow: hidden; }
.about-hint-line::after { content: ""; position: absolute; inset: 0; background: #fff; animation: scrollLine 2.2s var(--ease) infinite; }
.about-pin.moving .about-hint { opacity: 0; }

.about-after { background: var(--white); padding-block: clamp(78px, 11vw, 168px); position: relative; z-index: 4; }
.about-after-head { max-width: 760px; margin-bottom: clamp(48px, 6.5vw, 92px); }
.about-after-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: clamp(20px, 2.6vw, 30px);
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--text-2);
}
.about-after-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--ink); opacity: .85; }
.about-lead {
  max-width: 22ch;
  font-size: clamp(1.55rem, 3.2vw, 2.55rem);
  font-weight: 300; line-height: 1.32; letter-spacing: -.016em;
  color: var(--ink-2); text-wrap: balance;
}
.about-lead em { color: var(--ink); font-weight: 400; }

@media (prefers-reduced-motion: reduce) { .about-hint { display: none; } }
@media (max-width: 760px) { .about-track { height: 170vh; } }

/* =========================================================
   SERVICES STRIP (icons) - quick glance under the hero
   ========================================================= */
.svc-strip { background: var(--white); border-block: 1px solid var(--line); padding-block: clamp(40px, 5.5vw, 74px); }
.svc-strip-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.svc-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 4px clamp(20px, 2.6vw, 44px);
  border-inline-start: 1px solid var(--line);
  transition: transform .5s var(--ease);
}
.svc-item:first-child { border-inline-start: none; padding-inline-start: 0; }
.svc-item:hover { transform: translateY(-5px); }
.svc-ico { width: 46px; height: 46px; color: var(--sketch-ink); }
.svc-ico svg { width: 100%; height: 100%; display: block; filter: url(#sketchSm); }
.svc-item h3 { font-size: 1.18rem; font-weight: 500; color: var(--ink); }
.svc-item p { font-size: .9rem; line-height: 1.5; color: var(--text); max-width: 24ch; }

body.motion .svc-item .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
body.motion .svc-item.in .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease); }

@media (max-width: 760px) {
  .svc-strip-list { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .svc-item { border-inline-start: none; border-top: 1px solid var(--line); padding: 26px clamp(16px, 4vw, 26px); }
  .svc-item:nth-child(-n+2) { border-top: none; }
  .svc-item:nth-child(odd) { padding-inline-start: 0; }
}

/* Mobile fix: iOS Safari (and some mobile engines) fail to resolve
   filter:url(#…) from the zero-size <svg> defs block, blanking the filtered
   line-art — so the service icons AND the cinematic illustrations disappear
   on phones while rendering fine on desktop. The wobble is purely decorative;
   drop it on small screens so the crisp SVG always shows. */
@media (max-width: 900px) {
  .svc-ico svg,
  .ph-ico svg,
  .svc-svg { filter: none; }
}

/* =========================================================
   As seen on TV - הילה בן שאנן · "הורס או להריסה" (רשת 13)
   editorial split band: copy (right) + portrait still (left)
   ========================================================= */
.tv { background: var(--white); }
.tv-inner {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;   /* copy (right) | media (left) */
  gap: clamp(34px, 5vw, 84px);
  align-items: center;
}

.tv-copy { max-width: 48ch; }
.tv-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(18px, 2.4vw, 26px); }
.tv-eyebrow-txt { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.tv-logo { height: 26px; width: auto; display: block; }

/* "on air" live dot - a single deliberate pop of broadcast red on the monochrome page */
.tv-live { width: 9px; height: 9px; border-radius: 50%; background: #e0322f; position: relative; flex: none; }
.tv-live::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid #e0322f; opacity: 0; }
body.motion .tv-live::after { animation: statusPulse 2.2s var(--ease) infinite; }

/* title - the show's binary verdict, the two words carry the weight */
.tv-title {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1; color: var(--ink);
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.28em;
}
.tv-title b { font-weight: 600; }
.tv-title i {
  font-style: normal; font-weight: 300;
  font-size: 0.42em; letter-spacing: 0.04em; color: var(--text-2);
  align-self: center;
}
.tv-tagline {
  margin-top: clamp(16px, 1.8vw, 22px);
  font-size: clamp(1.12rem, 1.5vw, 1.4rem); font-weight: 500; line-height: 1.4; color: var(--ink-2);
}
.tv-lead {
  margin-top: clamp(10px, 1.2vw, 16px);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  font-weight: 300; line-height: 1.72; color: var(--text);
}

/* a furniture line-sketch that draws itself in - the studio's architectural hand */
.tv-furniture { margin-top: clamp(22px, 3vw, 34px); color: var(--sketch-mid); }
.tv-furniture-svg { width: clamp(132px, 17vw, 184px); height: auto; display: block; opacity: 0.9; }
body.motion .tv .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
body.motion .tv .reveal.in .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease); }
body.motion .tv .reveal.in .draw:nth-of-type(2) { transition-delay: .14s; }
body.motion .tv .reveal.in .draw:nth-of-type(3) { transition-delay: .26s; }
body.motion .tv .reveal.in .draw:nth-of-type(4) { transition-delay: .38s; }
body.motion .tv .reveal.in .draw:nth-of-type(5) { transition-delay: .52s; }
body.motion .tv .reveal.in .draw:nth-of-type(6) { transition-delay: .62s; }
.tv-cta {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: clamp(26px, 3.2vw, 38px);
  font-size: 1.02rem; font-weight: 500; color: var(--ink);
  padding-bottom: 8px; border-bottom: 1px solid rgba(10,10,10,.4);
  transition: gap .35s var(--ease), border-color .3s var(--ease);
}
.tv-cta:hover { gap: 18px; border-bottom-color: var(--ink); }
.tv-cta svg { transition: transform .45s var(--ease); }
.tv-cta:hover svg { transform: translateX(-6px); }

/* --- architectural drafting frame around the still --- */
.tv-frame {
  position: relative;
  width: 100%;
  max-width: 500px;
  justify-self: start;          /* hug the inner gutter (right edge of the left column in RTL) */
  padding: 15px;                /* the offset gap between photo and the drawing border */
  margin-bottom: 34px;          /* reserve room for the dimension line below */
  box-sizing: border-box;
}
.tv-frame::before {             /* the thin drawing border, offset around the photo */
  content: '';
  position: absolute; inset: 0;
  border: 1px solid var(--sketch-dim);
  pointer-events: none;
}

.tv-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0;             /* sharp = technical */
  aspect-ratio: 10 / 9;
  width: 100%;
  background: var(--paper);
  box-shadow: 0 26px 54px -32px rgba(0,0,0,.5);
}
.tv-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tv-media:hover img { transform: scale(1.045); }
.tv-play {
  position: absolute; inset: 0; margin: auto;
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.4);
  transition: transform .4s var(--ease), background .4s var(--ease);
  z-index: 2;
}
.tv-play svg { margin-inline-start: 4px; }   /* optically centre the triangle */
.tv-media:hover .tv-play { transform: scale(1.08); background: #fff; }

/* corner registration crosses (centred on the drawing-border corners) */
.tv-reg { position: absolute; width: 15px; height: 15px; z-index: 3; pointer-events: none; }
.tv-reg::before, .tv-reg::after { content: ''; position: absolute; background: var(--sketch-ink); }
.tv-reg::before { left: 50%; top: 0; transform: translateX(-50%); width: 1px; height: 100%; }
.tv-reg::after  { top: 50%; left: 0; transform: translateY(-50%); height: 1px; width: 100%; }
.tv-reg--tl { top: -7.5px; left: -7.5px; }
.tv-reg--tr { top: -7.5px; right: -7.5px; }
.tv-reg--bl { bottom: -7.5px; left: -7.5px; }
.tv-reg--br { bottom: -7.5px; right: -7.5px; }

/* horizontal dimension line below the frame */
.tv-dim {
  position: absolute; top: calc(100% + 13px);
  inset-inline: 0; height: 14px;
  display: flex; align-items: center; justify-content: center;
}
.tv-dim-bar {
  position: absolute; inset-inline: 0; top: 50%;
  height: 1px; background: var(--sketch-dim);
  transform: scaleX(1); transform-origin: center;
}
.tv-dim-bar::before, .tv-dim-bar::after {
  content: ''; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--sketch-dim);
}
.tv-dim-bar::before { inset-inline-start: 0; }
.tv-dim-bar::after  { inset-inline-end: 0; }
.tv-dim-label {
  position: relative; z-index: 1;
  background: var(--white); padding-inline: 11px;
  font-size: 0.64rem; letter-spacing: 0.18em; color: var(--sketch-mid);
  font-variant-numeric: tabular-nums; direction: ltr;
}

/* vertical dimension on the inner (text-facing) side */
.tv-vdim {
  position: absolute; top: 15px; bottom: 15px;   /* aligns to the photo's height */
  inset-inline-end: -19px; width: 1px; background: var(--sketch-dim);
  display: flex; align-items: center; justify-content: center;
}
.tv-vdim::before, .tv-vdim::after {
  content: ''; position: absolute; inset-inline-start: -4px; width: 9px; height: 1px; background: var(--sketch-dim);
}
.tv-vdim::before { top: 0; }
.tv-vdim::after  { bottom: 0; }
.tv-vdim-val {
  font-style: normal; font-size: 0.62rem; letter-spacing: 0.12em; color: var(--sketch-mid);
  font-variant-numeric: tabular-nums;
  background: var(--white); padding-block: 6px; writing-mode: vertical-rl; transform: rotate(180deg);
}

/* "drawing" reveal - the marks assemble as the section scrolls in */
body.motion .tv-frame::before { clip-path: inset(0 0 0 100%); transition: clip-path 1s var(--ease) .1s; }
body.motion .tv-frame.in::before { clip-path: inset(0 0 0 0); }
body.motion .tv-frame .tv-reg { opacity: 0; transform: scale(.4); transition: opacity .5s var(--ease), transform .5s var(--ease); }
body.motion .tv-frame.in .tv-reg { opacity: 1; transform: scale(1); }
body.motion .tv-frame.in .tv-reg--tr { transition-delay: .5s; }
body.motion .tv-frame.in .tv-reg--tl { transition-delay: .62s; }
body.motion .tv-frame.in .tv-reg--bl { transition-delay: .74s; }
body.motion .tv-frame.in .tv-reg--br { transition-delay: .86s; }
body.motion .tv-frame .tv-dim-bar,
body.motion .tv-frame .tv-vdim { transform: scaleX(0); }
body.motion .tv-frame .tv-vdim { transform: scaleY(0); transform-origin: top; }
body.motion .tv-frame .tv-dim-bar { transition: transform .9s var(--ease) .45s; }
body.motion .tv-frame .tv-vdim { transition: transform .9s var(--ease) .55s; }
body.motion .tv-frame.in .tv-dim-bar { transform: scaleX(1); }
body.motion .tv-frame.in .tv-vdim { transform: scaleY(1); }
body.motion .tv-frame .tv-dim-label,
body.motion .tv-frame .tv-vdim-val { opacity: 0; transition: opacity .5s var(--ease) 1.15s; }
body.motion .tv-frame.in .tv-dim-label,
body.motion .tv-frame.in .tv-vdim-val { opacity: 1; }

@media (max-width: 760px) {
  .tv-inner { grid-template-columns: 1fr; gap: clamp(26px, 6vw, 40px); justify-items: start; }
  .tv-frame { order: -1; max-width: 380px; justify-self: center; padding: 12px; }
  .tv-title { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .tv-play { width: 64px; height: 64px; }
  .tv-vdim { inset-inline-end: -16px; }
}

/* =========================================================
   PROJECTS - cinematic 3D coverflow carousel
   ========================================================= */
.projects { background: var(--white); padding-block: clamp(72px, 10vw, 150px); overflow: hidden; }
/* the "03 פרויקטים נבחרים" heading now introduces the lead project below it */
.projects--intro { padding-bottom: clamp(30px, 4.5vw, 58px); }
/* the carousel follows the immersive lead project, which already breaks the flow */
.projects--gallery { padding-top: clamp(40px, 6vw, 88px); }
.cine { margin-top: clamp(30px, 4vw, 56px); }
.cine-stage {
  position: relative;
  height: clamp(320px, 48vw, 580px);
  perspective: 1900px;
  transform-style: preserve-3d;
  touch-action: pan-y;
}
.ccard {
  position: absolute; top: 50%; left: 50%;
  width: clamp(280px, 46vw, 640px); aspect-ratio: 3 / 2;
  margin: 0; padding: 0; border: 0; background: var(--paper);
  overflow: hidden; cursor: pointer;
  box-shadow: 0 28px 60px -34px rgba(0,0,0,.4);
  transition: transform .85s var(--ease), opacity .7s var(--ease), box-shadow .6s var(--ease);
  will-change: transform, opacity;
}
.ccard img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: filter .6s var(--ease), transform 1.1s var(--ease);
  -webkit-user-drag: none; user-select: none;
}
.ccard:not(.is-active) img { filter: grayscale(.35) brightness(.92); }
.ccard.is-active { box-shadow: 0 50px 90px -34px rgba(0,0,0,.55); }
.ccard.is-active:hover img { transform: scale(1.04); }

.cine-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-top: clamp(28px, 3.6vw, 52px);
}
.cine-type { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sketch-dim); margin-bottom: 12px; }
.cine-title { font-size: clamp(1.6rem, 3vw, 2.7rem); font-weight: 300; letter-spacing: -0.015em; line-height: 1.05; color: var(--ink); }
.cine-loc { display: block; margin-top: 8px; font-size: .95rem; color: var(--text-2); }
.cine-nav { display: flex; align-items: center; gap: 18px; flex: none; }
.cine-arrow {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink); background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.cine-arrow:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cine-count { font-size: .9rem; letter-spacing: .12em; color: var(--text-2); min-width: 56px; text-align: center; }
.cine-count b { color: var(--ink); font-weight: 600; }
.cine-count i { font-style: normal; margin: 0 4px; }

@media (max-width: 760px) {
  /* single-card gallery (layout math in projects-cine.js) - keep it tight & centred */
  .cine { margin-top: clamp(22px, 5vw, 40px); }
  .cine-stage { height: clamp(228px, 60vw, 380px); perspective: none; }
  .ccard { width: 82vw; box-shadow: 0 22px 48px -28px rgba(0,0,0,.45); }
  .ccard.is-active { box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
  .ccard:not(.is-active) img { filter: grayscale(.4) brightness(.9); }

  .cine-foot { flex-direction: column; align-items: stretch; gap: 20px; text-align: start; }
  .cine-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .cine-nav { justify-content: space-between; width: 100%; gap: 0; }
  .cine-count { flex: 1; }
}

/* =========================================================
   SERVICES (תחומי עיסוק) - cinematic pinned scroll sequence
   default = simple stacked list (no-JS / reduced) ·
   .is-cine (JS) = pinned scroll-scrub
   ========================================================= */
.svc-cine { background: var(--white); padding-block: clamp(70px, 9vw, 130px); }
.svc-cine-top { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(34px, 5vh, 64px); }
.svc-cine-eyebrow { font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; color: var(--text-2); }
.svc-cine-count { font-size: .9rem; letter-spacing: .12em; color: var(--text-2); }
.svc-cine-count b { color: var(--ink); font-weight: 600; }
.svc-cine-ghost, .svc-cine-progress { display: none; }
.svc-cine-visuals { display: none; }

.svc-cine-texts { display: grid; gap: clamp(40px, 6vh, 72px); }
.svc-panel h3 { font-size: clamp(1.9rem, 4vw, 3.4rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.08; color: var(--ink); margin-bottom: 20px; }
.svc-panel p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; color: var(--text); max-width: 44ch; }

/* ---- cinematic mode ---- */
.svc-cine.is-cine { padding-block: 0; }
.svc-cine.is-cine .svc-cine-track { position: relative; height: 320vh; }
@media (max-width: 760px) { .svc-cine.is-cine .svc-cine-track { height: 240vh; } }
.svc-cine.is-cine .svc-cine-pin {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: center; overflow: hidden;
}
.svc-cine.is-cine .svc-cine-inner { position: relative; z-index: 2; width: 100%; }

.svc-cine.is-cine .svc-cine-ghost {
  display: block; position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: clamp(18rem, 46vw, 46rem); font-weight: 700; line-height: .8;
  color: var(--ink); opacity: .04;
}
.svc-cine.is-cine .svc-cine-ghost.flip { animation: svcGhost .6s var(--ease); }
@keyframes svcGhost { from { opacity: 0; transform: translate(-50%, -38%); } to { opacity: .04; transform: translate(-50%, -50%); } }

.svc-cine.is-cine .svc-cine-stage {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 84px); align-items: center;
}
.svc-cine.is-cine .svc-cine-texts { position: relative; min-height: 240px; display: block; }
.svc-cine.is-cine .svc-panel {
  position: absolute; inset: 0; opacity: 0; transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease); pointer-events: none;
}
.svc-cine.is-cine .svc-panel.is-active { opacity: 1; transform: none; pointer-events: auto; }

.svc-cine.is-cine .svc-cine-visuals { display: block; position: relative; aspect-ratio: 13 / 10; }
.svc-vis { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.svc-vis.is-active { opacity: 1; transform: none; }
.svc-svg { width: 100%; height: 100%; filter: url(#sketchFine); }
.svc-svg .ph-bp-main  { stroke: var(--sketch-ink);   stroke-width: 1.6; }
.svc-svg .ph-bp-thin  { stroke: var(--sketch-mid);   stroke-width: 1.05; }
.svc-svg .ph-bp-faint { stroke: var(--sketch-faint); stroke-width: .9; }
.svc-svg .ph-bp-hatch { stroke: var(--sketch-faint); stroke-width: .6; }
.svc-svg .ph-bp-dim   { fill: var(--sketch-dim); stroke: none; font-size: 8px; letter-spacing: .1em; }

.svc-cine.is-cine .svc-cine-progress { display: flex; gap: 10px; margin-top: clamp(32px, 5vh, 60px); }
.svc-tick { width: 40px; height: 2px; background: var(--line); transition: background .4s var(--ease), width .4s var(--ease); }
.svc-tick.is-active { background: var(--ink); width: 66px; }

@media (max-width: 860px) {
  .svc-cine.is-cine .svc-cine-stage { grid-template-columns: 1fr; gap: 30px; }
  .svc-cine.is-cine .svc-cine-texts { min-height: 200px; }
  /* visuals above the text, and force a real height: on desktop the 2-col grid
     stretches this column to the text's height; in the 1-col mobile grid that
     stretch is gone, so — because every .svc-vis is position:absolute — the box
     collapses to 0 and the illustration vanishes. An explicit height fixes it. */
  .svc-cine.is-cine .svc-cine-visuals {
    order: -1;
    width: 100%;
    height: auto;
    aspect-ratio: 13 / 10;
    min-height: 64vw;
  }
}
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(42px, 5vw, 70px);
}
.ph-principle {
  position: relative;
  padding: 26px clamp(16px, 1.7vw, 28px) 6px;
  border-inline-start: 1px solid var(--line);
  transition: transform .5s var(--ease);
}
.ph-principle:first-child { border-inline-start: none; padding-inline-start: 0; }
.ph-principle:hover { transform: translateY(-4px); }
.ph-principle-tag {
  display: block; margin-bottom: 22px;
  font-size: .66rem; letter-spacing: .2em; color: var(--sketch-dim); direction: ltr;
}
.ph-ico { display: block; width: 50px; height: 50px; color: var(--sketch-ink); margin-bottom: 20px; }
.ph-ico svg { width: 100%; height: 100%; display: block; filter: url(#sketchSm); }
.ph-principle h3 { font-size: 1.18rem; font-weight: 500; color: var(--ink); margin-bottom: 9px; }
.ph-principle p { font-size: .95rem; line-height: 1.62; color: var(--text); }

/* figure - clean stage, no gray box */
.ph-figure { margin: 0; }

/* floating illustration - hand-sketch dissolving into the finished space.
   mix-blend multiply melts the white paper into the page (no visible box). */
.ph-stage { position: relative; perspective: 1200px; }
.ph-art {
  position: relative;
  transform: rotateX(calc(var(--py,0) * -3deg)) rotateY(calc(var(--px,0) * 3.5deg));
  transition: transform .3s ease-out;
  will-change: transform;
}
.ph-art-img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.ph-art-sketch { animation: artSketch 12s ease-in-out infinite; }
.ph-art-render { position: absolute; inset: 0; opacity: 0; animation: artRender 12s ease-in-out infinite; }
@keyframes artSketch { 0%, 15% { opacity: 1; } 42%, 66% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes artRender { 0%, 15% { opacity: 0; } 42%, 66% { opacity: 1; } 92%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ph-art { transform: none !important; }
  .ph-art-sketch { animation: none; opacity: 1; }
  .ph-art-render { animation: none; opacity: 0; }
}
.ph-glow {
  position: absolute; inset: 6% 4%;
  background: radial-gradient(58% 54% at 50% 46%, rgba(214,190,150,.30), rgba(214,190,150,0) 72%);
  pointer-events: none;
}
.ph-corner { position: absolute; width: 12px; height: 12px; border: 1px solid var(--sketch-ink); opacity: .45; }
.ph-corner.tl { top: 0; left: 0; border-inline-end: 0; border-bottom: 0; }
.ph-corner.tr { top: 0; right: 0; border-inline-start: 0; border-bottom: 0; }
.ph-corner.bl { bottom: 0; left: 0; border-inline-end: 0; border-top: 0; }
.ph-corner.br { bottom: 0; right: 0; border-inline-start: 0; border-top: 0; }
.ph-anno {
  position: absolute; font-size: .64rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--sketch-dim); direction: ltr;
}
.ph-anno--fig { top: -2px; left: 20px; }
.ph-anno--scale { bottom: -2px; right: 20px; }

/* stacked planes (mouse-tilt parallax) */
.ph-plane { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.ph-bp   { filter: url(#sketch); transform: rotateX(calc(var(--py,0) * -5deg)) rotateY(calc(var(--px,0) * 5deg)); transition: transform .25s ease-out; }
.ph-fore { filter: url(#sketch); transform: rotateX(calc(var(--py,0) * -6deg)) rotateY(calc(var(--px,0) * 6deg)) translate3d(calc(var(--px,0) * 16px), calc(var(--py,0) * 11px), 0); transition: transform .2s ease-out; }
.ph-pen-layer { pointer-events: none; transform: rotateX(calc(var(--py,0) * -5deg)) rotateY(calc(var(--px,0) * 5deg)); transition: transform .25s ease-out; }
.ph-pen { fill: var(--sketch-ink); }
.ph-pen-halo { fill: var(--sketch-ink); opacity: .14; }

/* sheet-number watermark */
.ph-watermark {
  position: absolute; left: -2%; bottom: -9%; z-index: 0;
  font-size: clamp(7rem, 20vw, 15rem); font-weight: 700; line-height: .8;
  color: var(--sketch-ink); opacity: .05; pointer-events: none; user-select: none;
  animation: wmDrift 12s ease-in-out infinite alternate;
}
@keyframes wmDrift { to { transform: translateY(-16px); } }
.ph-glow { z-index: 0; }
.ph-corner, .ph-anno { z-index: 2; }

/* sketch svg */
.ph-bp-faint { stroke: var(--sketch-faint); stroke-width: 1; }
.ph-bp-main  { stroke: var(--sketch-ink);   stroke-width: 1.5; }
.ph-bp-thin  { stroke: var(--sketch-mid);   stroke-width: 1.1; }
.ph-bp-dim   { fill: var(--sketch-dim); font-size: 12px; letter-spacing: .06em; }

/* icon draw-in (one-time, on reveal) */
body.motion .ph-principle .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
body.motion .ph-principle.in .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease); }

/* figure draw-in (one-time on reveal); the tilt + travelling pen carry the life */
body.motion .ph-figure .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
body.motion .ph-figure.in .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease); }

/* principle hover - replay the icon draw + accent the title */
.ph-principle h3 { position: relative; display: inline-block; }
.ph-principle h3::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--sketch-ink); transition: width .5s var(--ease);
}
.ph-principle:hover h3::after { width: 100%; }
@keyframes icoDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.ph-principle:hover .ph-ico .draw { animation: icoDraw 1s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .ph-bp, .ph-fore, .ph-pen-layer { transform: none !important; }
  .ph-watermark { animation: none; }
}

@media (max-width: 900px) {
  .ph-grid { grid-template-columns: 1fr; gap: 48px; }
  .ph-figure { order: -1; }
}
@media (max-width: 600px) {
  .ph-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .ph-principles { grid-template-columns: 1fr; }
  .ph-principle { border-inline-start: none; border-top: 1px solid var(--line); padding: 24px 0 4px; }
  .ph-principle:first-child { border-top: none; }
}

/* =========================================================
   SHARED spec-sheet header (sections 03+)
   ========================================================= */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.sec-index { display: flex; align-items: baseline; gap: 16px; }
.sec-num { font-size: .95rem; font-weight: 600; letter-spacing: .12em; color: var(--ink); }
.sec-label { font-size: .8rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--text-2); }
.sec-coord { font-size: .72rem; letter-spacing: .18em; color: var(--text-2); direction: ltr; white-space: nowrap; }
.sec-rule { position: relative; height: 1px; background: var(--line); margin: 22px 0 clamp(40px, 5vw, 74px); }
.sec-rule::before, .sec-rule::after { content: ""; position: absolute; top: -3px; width: 1px; height: 7px; background: var(--ink); }
.sec-rule::before { inset-inline-start: 0; }
.sec-rule::after  { inset-inline-end: 0; }

/* =========================================================
   PROJECTS - legacy hand-sketch gallery (unused; carousel replaced it)
   ========================================================= */
.pj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(26px, 3.2vw, 48px); }
.pj { display: block; }
.pj--wide { grid-column: 1 / -1; }

.pj-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}
.pj--wide .pj-frame { aspect-ratio: 16 / 7; }

.pj-media { position: absolute; inset: 0; overflow: hidden; }
.pj-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 72%; transition: scale 1s var(--ease); }
.pj:hover .pj-media img { scale: 1.05; }

.pj-media--sketch { display: flex; align-items: center; justify-content: center; background: var(--white); }
.pj-glow {
  position: absolute; inset: 10%;
  background: radial-gradient(58% 56% at 50% 52%, rgba(214,190,150,.26), rgba(214,190,150,0) 72%);
  pointer-events: none;
}
.pj-sketch { position: relative; width: 82%; height: 82%; filter: url(#sketch); transition: transform .6s var(--ease); }
.pj:hover .pj-sketch { transform: translateY(-4px); }

/* corner registration marks + drawing tag */
.pj-corner { position: absolute; width: 11px; height: 11px; border: 1px solid var(--sketch-ink); opacity: .4; z-index: 2; }
.pj-corner.tl { top: 12px; left: 12px; border-inline-end: 0; border-bottom: 0; }
.pj-corner.tr { top: 12px; right: 12px; border-inline-start: 0; border-bottom: 0; }
.pj-corner.bl { bottom: 12px; left: 12px; border-inline-end: 0; border-top: 0; }
.pj-corner.br { bottom: 12px; right: 12px; border-inline-start: 0; border-top: 0; }
.pj-tag {
  position: absolute; bottom: 13px; inset-inline-start: 16px; z-index: 2;
  font-size: .62rem; letter-spacing: .2em; color: var(--sketch-dim); direction: ltr;
}

.pj-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 18px; }
.pj-cap h3 { font-size: clamp(1.2rem, 1.9vw, 1.65rem); font-weight: 400; color: var(--ink); transition: opacity .3s; }
.pj:hover .pj-cap h3 { opacity: .55; }
.pj-meta { font-size: .9rem; letter-spacing: .04em; color: var(--text-2); }

/* sketch draw-in on reveal (gated behind motion) */
body.motion .pj .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
body.motion .pj.in .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s var(--ease); }

@media (max-width: 760px) {
  .pj-grid { grid-template-columns: 1fr; }
  .pj--wide .pj-frame { aspect-ratio: 4 / 3; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* =========================================================
   BLUEPRINT → BUILT · interactive 3D
   ========================================================= */
.b3d { background: var(--white); }
.b3d-track { position: relative; height: 260vh; }
.b3d-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--white); }
/* two stacked frames: blueprint (base) → photoreal villa rises over it */
.b3d-stage { position: absolute; inset: 0; overflow: hidden; z-index: 1; background: var(--white); will-change: transform; }
.b3d-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.b3d-img-real { clip-path: inset(100% 0 0 0); }   /* hidden; reveals ground → roof */
/* scrim: invisible over the blueprint (white), dark once the photo is revealed */
.b3d-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  transition: opacity .55s var(--ease);
  background:
    linear-gradient(to bottom, rgba(10,10,10,.5) 0%, rgba(10,10,10,0) 30%),
    linear-gradient(to top, rgba(10,10,10,.58) 0%, rgba(10,10,10,0) 34%);
}
.b3d-pin.colored .b3d-scrim { opacity: 1; }

/* text flips to white once we're on the colored photo */
.b3d-eyebrow, .b3d-title, .b3d-lead,
.b3d-progress b, .b3d-progress i { transition: color .55s var(--ease); }
.b3d-pin.colored .b3d-eyebrow { color: rgba(255,255,255,.82); }
.b3d-pin.colored .b3d-title { color: #fff; }
.b3d-pin.colored .b3d-lead { color: rgba(255,255,255,.9); }
.b3d-pin.colored .b3d-progress b { color: #fff; }
.b3d-pin.colored .b3d-progress i { color: rgba(255,255,255,.7); }
.b3d-pin.colored .b3d-hint span { background: #fff; }
.b3d-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3; width: 1px; height: 42px; overflow: hidden; transition: opacity .5s ease; }
.b3d-hint span { display: block; width: 100%; height: 100%; background: var(--ink); opacity: .4; animation: scrollLine 2.3s var(--ease) infinite; }
.b3d-pin.moving .b3d-hint { opacity: 0; }
.b3d-overlay {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-block: clamp(72px, 11vh, 134px);
}
.b3d-row { width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.b3d-row-top { flex-direction: column; align-items: flex-start; gap: 16px; }
.b3d-eyebrow { font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; color: var(--text-2); }
.b3d-title { font-size: clamp(2.2rem, 5.2vw, 4.4rem); font-weight: 300; line-height: 1.05; letter-spacing: -.025em; color: var(--ink); }
.b3d-title .line { display: block; overflow: hidden; }
.b3d-lead { max-width: 40ch; font-size: clamp(1rem, 1.3vw, 1.18rem); font-weight: 300; line-height: 1.7; color: var(--text); }
.b3d-progress { flex: none; display: flex; align-items: baseline; gap: 8px; }
.b3d-progress b { font-size: clamp(1.6rem, 2.4vw, 2.4rem); font-weight: 300; color: var(--ink); direction: ltr; }
.b3d-progress i { font-size: .64rem; letter-spacing: .2em; color: var(--text-2); font-style: normal; }

@media (max-width: 760px) {
  .b3d-track { height: 200vh; }   /* slower sketch->reality scrub on mobile (was 160vh, felt too fast) */
  .b3d-row-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}


/* ===== clickable project reveal (sketch → reality) + CTA ===== */
.b3d--project { cursor: pointer; }
.b3d-link { position: absolute; inset: 0; z-index: 2; }
.b3d--project .b3d-overlay { pointer-events: none; z-index: 3; }
.b3d-cta {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 1rem; font-weight: 500; color: var(--ink);
  padding-bottom: 8px; border-bottom: 1px solid rgba(10,10,10,.5);
  transition: gap .35s var(--ease), color .55s var(--ease), border-color .55s var(--ease);
}
.b3d-cta svg { transition: transform .4s var(--ease); }
.b3d-cta:hover { gap: 18px; }
.b3d-cta:hover svg { transform: translateX(-5px); }
.b3d-pin.colored .b3d-cta { color: #fff; border-bottom-color: rgba(255,255,255,.6); }

/* =========================================================
   WALK THE PLAN (after projects) - scroll-walk a furnished
   blueprint; each room reveals its real photo · בית במושב זיתן
   ========================================================= */
.walk { position: relative; background: var(--paper); }

/* fallback (no JS / reduced-motion): normal flow, stacked gallery */
.walk-track { position: relative; }
.walk-pin   { position: relative; }
.walk-inner { width: 100%; padding-block: clamp(80px, 12vw, 150px); }

/* enhanced: pinned scroll-walk */
.walk.is-walk .walk-track { height: 540vh; }
.walk.is-walk .walk-pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; align-items: center;
}
.walk.is-walk .walk-inner { padding-block: clamp(18px, 4vh, 52px); }

/* ---- head ---- */
.walk-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
  margin-bottom: clamp(22px, 3.4vh, 44px);
}
.walk-eyebrow {
  display: block; font-size: clamp(.7rem, 1.4vw, .8rem);
  letter-spacing: .14em; color: var(--text-2);
}
.walk-title {
  margin-top: 8px; font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 300; line-height: 1.1; letter-spacing: -.01em; color: var(--ink);
}
.walk-count { font-size: clamp(1.1rem, 2.6vw, 1.7rem); color: var(--sketch-dim); white-space: nowrap; }
.walk-count b { color: var(--ink); font-weight: 500; }
.walk-count i { font-style: normal; color: var(--text-2); font-size: .62em; letter-spacing: .04em; }

/* ---- stage: plan | photo ---- */
.walk-stage {
  display: grid; grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(20px, 3.4vw, 56px); align-items: center;
}

/* ---- the plan ---- */
.walk-plan-wrap { position: relative; }
.walk-plan { width: 100%; height: auto; display: block; }
.walk.is-walk .walk-plan { max-height: 60vh; }

.walk-plan .ph-bp-main  { stroke: var(--sketch-ink);   stroke-width: 1.7; }
.walk-plan .ph-bp-thin  { stroke: var(--sketch-mid);   stroke-width: 1.1; }
.walk-plan .ph-bp-faint { stroke: var(--sketch-faint); stroke-width: .9; }
.walk-plan .ph-bp-dim   { fill: var(--sketch-dim); stroke: none; font-size: 11px; letter-spacing: .12em; }

.walk-room { cursor: pointer; }
.walk-room .room-fill { fill: transparent; pointer-events: all; transition: fill .7s var(--ease); }
.walk-room.is-visited .room-fill { fill: rgba(111,102,87,.05); }
.walk-room.is-active  .room-fill { fill: rgba(111,102,87,.13); }
/* room names are HTML inside <foreignObject>: Safari doesn't bidi-reorder SVG
   <text>, so SVG Hebrew came out reversed ("ןולסה"); HTML always reorders right. */
.walk-room .room-label-fo { overflow: visible; pointer-events: none; }
.walk-room .room-label {
  font: 500 16px/26px var(--font);
  color: var(--sketch-dim);
  text-align: center; direction: rtl; white-space: nowrap;
  letter-spacing: .01em; pointer-events: none; transition: color .5s var(--ease);
}
.walk-room .room-idx {
  fill: var(--sketch-faint); font-size: 10px; letter-spacing: .2em;
  pointer-events: none; transition: fill .5s var(--ease);
}
.walk-room.is-active .room-label { color: var(--sketch-ink); }
.walk-room.is-active .room-idx   { fill: var(--sketch-mid); }

/* the route + the camera dot */
.walk-route-ghost, .walk-route-trail, .walk-dot { pointer-events: none; }
.walk-route-ghost { stroke: var(--sketch-faint); stroke-width: 1.5; stroke-dasharray: 1 7; }
.walk-route-trail { stroke: var(--sketch-ink);  stroke-width: 2.2; opacity: .92; }
.walk-dot-core { fill: var(--sketch-ink); }
.walk-dot-ring { fill: none; stroke: var(--sketch-ink); stroke-width: 1.3; opacity: .45; }
.walk-dot-halo {
  fill: rgba(42,36,28,.16); transform-box: fill-box; transform-origin: center;
  animation: walkPulse 2.6s var(--ease) infinite;
}
@keyframes walkPulse { 0% { transform: scale(.5); opacity: .55; } 70% { transform: scale(1.6); opacity: 0; } 100% { opacity: 0; } }

/* hint */
.walk-hint {
  position: absolute; inset-block-end: 2px; inset-inline-end: 0;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .76rem; color: var(--text-2); transition: opacity .5s var(--ease);
}
.walk-hint-line { width: 32px; height: 1px; background: var(--sketch-dim); }
.walk.moving .walk-hint { opacity: 0; }

/* ---- the photo card ---- */
.walk-cards { position: relative; box-shadow: 0 34px 80px -46px rgba(10,10,10,.55); }
.walk.is-walk .walk-cards { aspect-ratio: 3 / 2; max-height: 60vh; }
.walk-fig {
  position: absolute; inset: 0; margin: 0; overflow: hidden;
  opacity: 0; transition: opacity .9s var(--ease);
}
.walk-fig.is-active { opacity: 1; }
.walk-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.walk.is-walk .walk-fig.is-active img { animation: walkKen 8s var(--ease) forwards; }
@keyframes walkKen { from { transform: scale(1.08); } to { transform: scale(1); } }

.walk-fig-cap {
  position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 2;
  padding: clamp(18px, 3vw, 34px); color: #fff;
  background: linear-gradient(to top, rgba(10,10,10,.66), rgba(10,10,10,.12) 58%, transparent);
}
.walk-fig-room { display: block; font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 400; line-height: 1.1; }
.walk-fig-desc { display: block; margin-top: 8px; font-size: clamp(.85rem, 1.4vw, 1rem); color: rgba(255,255,255,.82); max-width: 44ch; }

/* registration marks */
.walk-reg {
  position: absolute; width: 14px; height: 14px; z-index: 3; pointer-events: none;
  border: 0 solid var(--sketch-mid); opacity: .55;
}
.walk-reg--tl { top: -6px; inset-inline-start: -6px; border-top-width: 1.5px; border-inline-start-width: 1.5px; }
.walk-reg--tr { top: -6px; inset-inline-end: -6px;   border-top-width: 1.5px; border-inline-end-width: 1.5px; }
.walk-reg--bl { bottom: -6px; inset-inline-start: -6px; border-bottom-width: 1.5px; border-inline-start-width: 1.5px; }
.walk-reg--br { bottom: -6px; inset-inline-end: -6px;   border-bottom-width: 1.5px; border-inline-end-width: 1.5px; }

/* "to the full project" pill */
.walk-more {
  position: absolute; top: clamp(12px, 2vw, 20px); inset-inline-end: clamp(12px, 2vw, 20px); z-index: 4;
  display: inline-flex; align-items: center; gap: 9px; font-size: .82rem; color: #fff;
  padding: 9px 16px; border-radius: 100px; border: 1px solid rgba(255,255,255,.28);
  background: rgba(10,10,10,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .4s var(--ease), gap .4s var(--ease);
}
.walk-more:hover { background: rgba(10,10,10,.5); gap: 13px; }

/* ---- fallback gallery (no .is-walk) ---- */
.walk:not(.is-walk) .walk-stage { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); }
.walk:not(.is-walk) .walk-cards { display: grid; gap: 14px; box-shadow: none; }
.walk:not(.is-walk) .walk-fig { position: relative; opacity: 1; aspect-ratio: 3 / 2; }
.walk:not(.is-walk) .walk-hint, .walk:not(.is-walk) .walk-dot, .walk:not(.is-walk) .walk-route-trail { display: none; }
.walk:not(.is-walk) .walk-reg { display: none; }
.walk:not(.is-walk) .walk-room.is-active .room-fill { fill: transparent; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .walk-stage { grid-template-columns: 1fr; gap: clamp(16px, 4vw, 26px); }
  .walk.is-walk .walk-plan  { max-height: 34vh; }
  .walk.is-walk .walk-cards { max-height: 40vh; }
  .walk-head { gap: 14px; margin-bottom: clamp(16px, 3vh, 28px); }
  .walk-room .room-label { font-size: 18px; }
  .walk-hint { position: static; margin-top: 8px; justify-content: flex-end; }
  .walk.is-walk .walk-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .walk-dot-halo { animation: none; }
}


/* ---- fallback / reduced-motion: pair each service blueprint with its text ----
   svc-cine.js skips the pinned cinematic mode under prefers-reduced-motion (common
   on phones) and the base layout hides .svc-cine-visuals, so mobile was getting
   text-only stages. Promote both columns to grid items and interleave illustration
   + text so every stage shows its blueprint, like the desktop cinematic view. */
.svc-cine:not(.is-cine) .svc-cine-stage {
  display: grid; grid-template-columns: 1fr; gap: clamp(16px, 3vw, 24px);
}
.svc-cine:not(.is-cine) .svc-cine-texts,
.svc-cine:not(.is-cine) .svc-cine-visuals { display: contents; }
.svc-cine:not(.is-cine) .svc-vis {
  position: relative; inset: auto; opacity: 1; transform: none;
  width: 100%; aspect-ratio: 13 / 10;
}
.svc-cine:not(.is-cine) .svc-panel { position: relative; }
.svc-cine:not(.is-cine) .svc-vis:nth-of-type(1)   { order: 1; }
.svc-cine:not(.is-cine) .svc-panel:nth-of-type(1) { order: 2; }
.svc-cine:not(.is-cine) .svc-vis:nth-of-type(2)   { order: 3; }
.svc-cine:not(.is-cine) .svc-panel:nth-of-type(2) { order: 4; }
.svc-cine:not(.is-cine) .svc-vis:nth-of-type(3)   { order: 5; }
.svc-cine:not(.is-cine) .svc-panel:nth-of-type(3) { order: 6; }
.svc-cine:not(.is-cine) .svc-vis:nth-of-type(2),
.svc-cine:not(.is-cine) .svc-vis:nth-of-type(3) { margin-top: clamp(30px, 7vw, 58px); }


/* iOS / mobile Safari can fail to resolve the url(#sketchFine) SVG filter and then
   renders the whole blueprint illustration invisible (works fine in Chrome/desktop).
   The filter is only a cosmetic hand-drawn wobble, so drop it on small screens -
   the line-art renders crisply and, crucially, always shows. */
@media (max-width: 860px) {
  .svc-svg { filter: none; }
}


/* mobile: keep the header logo legible over the busy banner hero - it was sitting
   unclearly on the house photo. A soft scrim at the very top lifts the dark logo +
   menu off the image, without darkening the airy hero. */
@media (max-width: 760px) {
  body:has(.hero--banner) .header:not(.scrolled)::before {
    content: "";
    position: absolute; inset: 0 0 auto 0; height: 116px;
    background: linear-gradient(to bottom, rgba(247,244,237,.94), rgba(247,244,237,.55) 46%, rgba(247,244,237,0));
    pointer-events: none; z-index: 0;
  }
  .header-inner { position: relative; z-index: 1; }
}

/* =========================================================
   LECTURE TEASER (after Services) - cinematic warm-dark
   "spotlight stage" band that leads to the full lecture page
   ========================================================= */
.talk {
  position: relative; overflow: hidden; isolation: isolate;
  background: #14110d; color: #fff;
  padding-block: clamp(82px, 12vw, 168px);
}
/* warm stage spotlight from the top, gently breathing */
.talk-spot {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 68% at 70% -12%, rgba(198,162,106,.30), rgba(198,162,106,0) 60%),
    radial-gradient(90% 100% at 50% 128%, rgba(0,0,0,.55), rgba(0,0,0,0) 55%);
  animation: talkSpot 9s var(--ease) infinite alternate;
}
@keyframes talkSpot { from { opacity: .78; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .talk-spot { animation: none; } }

/* faint watermark word */
.talk-ghost {
  position: absolute; z-index: 0; inset-inline-end: -2%; inset-block-start: -7%;
  font-size: clamp(7rem, 22vw, 19rem); font-weight: 700; line-height: .8;
  color: #fff; opacity: .035; pointer-events: none; user-select: none; letter-spacing: -.02em;
}

.talk-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(36px, 5vw, 92px); align-items: center;
}

/* ---- copy ---- */
.talk-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .82rem; letter-spacing: .2em; color: rgba(255,255,255,.72);
  margin-bottom: clamp(22px, 3vw, 34px);
}
.talk-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 15px; }
.talk-eq i { width: 3px; height: 100%; border-radius: 2px; background: #c6a26a; transform-origin: bottom; animation: talkEq 1.1s ease-in-out infinite; }
.talk-eq i:nth-child(1) { animation-delay: 0s;   }
.talk-eq i:nth-child(2) { animation-delay: .18s; }
.talk-eq i:nth-child(3) { animation-delay: .36s; }
.talk-eq i:nth-child(4) { animation-delay: .52s; }
@keyframes talkEq { 0%, 100% { transform: scaleY(.32); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .talk-eq i { animation: none; transform: scaleY(.7); } }

.talk-title { font-size: clamp(2.1rem, 4.6vw, 4rem); font-weight: 200; line-height: 1.05; letter-spacing: -.025em; color: #fff; }
.talk-lead { margin-top: clamp(20px, 2.6vw, 32px); max-width: 44ch; font-size: clamp(1rem, 1.25vw, 1.16rem); font-weight: 300; line-height: 1.75; color: rgba(255,255,255,.78); }

.talk-meta { display: flex; flex-wrap: wrap; align-items: center; margin-top: clamp(24px, 3vw, 36px); }
.talk-meta li { position: relative; font-size: .85rem; color: rgba(255,255,255,.64); padding-inline: 16px; }
.talk-meta li:first-child { padding-inline-start: 0; }
.talk-meta li:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 12px; background: rgba(255,255,255,.22);
}

.talk-cta {
  display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(30px, 4vw, 46px);
  font-size: 1rem; font-weight: 500; color: #fff;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.5);
  transition: gap .35s var(--ease), border-color .35s var(--ease);
}
.talk-cta:hover { gap: 18px; border-bottom-color: #c6a26a; }
.talk-cta svg { color: #c6a26a; }

/* ---- media ---- */
.talk-media {
  position: relative; margin: 0; overflow: hidden; aspect-ratio: 16 / 10;
  box-shadow: 0 44px 100px -44px rgba(0,0,0,.75);
}
.talk-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: talkKen 17s ease-in-out infinite alternate; }
@keyframes talkKen { from { transform: scale(1.04); } to { transform: scale(1.13); } }
@media (prefers-reduced-motion: reduce) { .talk-media img { animation: none; transform: none; } }

.talk-badge {
  position: absolute; inset-block-start: 16px; inset-inline-start: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; letter-spacing: .16em; color: #fff;
  background: rgba(10,10,10,.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.26); padding: 7px 14px; border-radius: 100px;
}
.talk-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c6a26a; }

.talk-reg { position: absolute; width: 16px; height: 16px; border: 1.5px solid rgba(198,162,106,.7); z-index: 2; pointer-events: none; }
.talk-reg--tl { top: -7px; inset-inline-start: -7px; border-inline-end: 0; border-block-end: 0; }
.talk-reg--br { bottom: -7px; inset-inline-end: -7px; border-inline-start: 0; border-block-start: 0; }

@media (max-width: 860px) {
  .talk-inner { grid-template-columns: 1fr; gap: clamp(28px, 7vw, 42px); }
  .talk-media { order: -1; }
}

/* =========================================================
   Floating "scroll to continue the tour" cue (site-wide)
   ========================================================= */
.scroll-hint {
  position: fixed; z-index: 95; left: 50%; inset-block-end: clamp(18px, 2.6vw, 30px);
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px; border-radius: 100px; cursor: pointer;
  font-family: inherit; font-size: .8rem; letter-spacing: .12em; color: #fff; white-space: nowrap;
  background: rgba(12,12,12,.72); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 44px -20px rgba(0,0,0,.6);
  transition: opacity .5s var(--ease), transform .5s var(--ease), background .4s var(--ease), gap .4s var(--ease);
}
.scroll-hint:hover { background: rgba(12,12,12,.92); gap: 16px; }
.scroll-hint.is-hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(14px); }
.scroll-hint-ico { display: inline-flex; color: #c6a26a; animation: scrollHintBob 1.8s var(--ease) infinite; }
@keyframes scrollHintBob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
body:has(.nav.open) .scroll-hint { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .scroll-hint-ico { animation: none; } }
@media (max-width: 560px) {
  .scroll-hint { font-size: .72rem; padding: 10px 16px; gap: 9px; inset-block-end: 16px; }
}


/* ===== WhatsApp - floating button + contact CTA ===== */
.wa-fab{
  position: fixed;
  inset: auto auto clamp(16px, 4.5vw, 30px) clamp(16px, 4.5vw, 30px);
  z-index: 120;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .34), 0 4px 12px rgba(0, 0, 0, .18);
  opacity: 0;
  transform: translateY(14px) scale(.9);
  transition: opacity .55s var(--ease, ease), transform .55s var(--ease, ease), box-shadow .3s ease, background .3s ease;
  -webkit-tap-highlight-color: transparent;
}
body.loaded .wa-fab{ opacity: 1; transform: none; }
.wa-fab svg{ width: 32px; height: 32px; }
.wa-fab::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .45);
  animation: waPulse 2.8s ease-out infinite;
}
.wa-fab:hover{
  background: #1fb457;
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(37, 211, 102, .46), 0 6px 16px rgba(0, 0, 0, .22);
}
.wa-fab-tip{
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  white-space: nowrap;
  background: var(--ink, #1a1a1a);
  color: #fff;
  font: 500 .8rem/1 var(--font, sans-serif);
  padding: .55em .8em;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.wa-fab:hover .wa-fab-tip{ opacity: 1; transform: translateY(-50%) translateX(0); }
@keyframes waPulse{
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .4); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* WhatsApp CTA inside the contact section */
.contact-wa{
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin-top: 28px;
  padding: .85em 1.4em;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font: 600 1rem/1 var(--font, sans-serif);
  box-shadow: 0 10px 26px rgba(37, 211, 102, .26);
  transition: background .3s ease, transform .3s var(--ease, ease), box-shadow .3s ease;
}
.contact-wa svg{ width: 22px; height: 22px; flex: none; }
.contact-wa:hover{
  background: #1fb457;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 211, 102, .34);
}

@media (prefers-reduced-motion: reduce){
  .wa-fab{ transition: opacity .3s ease; transform: none; }
  .wa-fab::before{ animation: none; }
}

@media (max-width: 640px){
  .wa-fab{ width: 52px; height: 52px; }
  .wa-fab svg{ width: 28px; height: 28px; }
  .wa-fab-tip{ display: none; }
}

/* =========================================================
   Floating WhatsApp button (site-wide, bottom-right)
   ========================================================= */
.wa-float {
  position: fixed; z-index: 92;
  inset-block-end: clamp(18px, 2.6vw, 26px); right: clamp(18px, 2.6vw, 26px);
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  box-shadow: 0 12px 30px -10px rgba(37,177,90,.55), 0 4px 10px rgba(0,0,0,.16);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float svg { width: 32px; height: 32px; display: block; }
.wa-float:hover { transform: scale(1.07) translateY(-1px); box-shadow: 0 16px 38px -10px rgba(37,177,90,.65), 0 6px 14px rgba(0,0,0,.2); }
@media (max-width: 560px) {
  .wa-float { width: 52px; height: 52px; inset-block-end: 16px; right: 16px; }
  .wa-float svg { width: 30px; height: 30px; }
}
