/* מתניה ברט — אדריכל. Visual language: concept 1C "שרטוט". */

:root {
  --paper: #eef0ef;
  --paper-2: #e2e5e4;
  --ink: #1b1e1f;
  --muted: #5c6364;
  --hair: #c5cbca;
  --grid-line: rgba(27, 30, 31, .06);
  --acc: oklch(0.55 0.12 40);
  --acc-lt: oklch(0.72 0.1 40);
  --ink-2: #3a4041;
  --ink-muted: #9aa3a3;
  --ink-soft: #b9c0c0;

  --sans: 'IBM Plex Sans Hebrew', system-ui, sans-serif;
  /* Plex Mono has no Hebrew glyphs — Hebrew falls through to Plex Sans Hebrew. */
  --mono: 'IBM Plex Mono', 'IBM Plex Sans Hebrew', ui-monospace, monospace;

  --max: 1280px;
  --gut: 40px;
  --cols: 12;
  --section-gap: clamp(104px, 12vw, 160px);
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  position: relative;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

/* The drafting grid: faint column rules aligned with the content container. */
body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 50%;
  width: min(100%, var(--max));
  transform: translateX(-50%);
  background-image: linear-gradient(to left, var(--grid-line) 1px, transparent 1px);
  background-size: calc(100% / var(--cols)) 100%;
  border-inline: 1px solid var(--grid-line);
  pointer-events: none;
  z-index: 0;
}
main, .site-header { position: relative; z-index: 1; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, ol { margin: 0; }
ol { padding: 0; list-style: none; }
strong { font-weight: 500; }

:focus-visible { outline: 1px solid var(--acc); outline-offset: 4px; }

::selection { background: var(--ink); color: var(--paper); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 14px;
}
.skip:focus { top: 16px; }

/* ---------- Type primitives ---------- */
.mono-label, .mono-sm, .mono-cap, .num {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0;
}
.mono-label { font-size: 12px; color: var(--muted); }
.mono-sm { font-size: 13px; color: var(--muted); }
.acc { color: var(--acc); }
.acc-lt { color: var(--acc-lt); }

.mono-cap {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12px; color: var(--muted);
  padding: 12px 0 0;
}

h2 {
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -.005em;
}
.num {
  font-size: 14px;
  color: var(--acc);
  margin-inline-end: 20px;
  vertical-align: .55em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--ink);
}
.header-inner {
  display: grid;
  grid-template-columns: 3fr 6fr 3fr;
  align-items: center;
  height: var(--header-h);
}
.brand { display: block; width: fit-content; }
.brand img { height: 56px; width: auto; transition: opacity .25s; }
.brand:hover img { opacity: .7; }
.nav {
  display: flex; gap: 32px; justify-content: center;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.nav a { position: relative; transition: color .25s; white-space: nowrap; }
.nav a i { font-style: normal; }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a.is-active i { color: var(--acc); }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a.is-active::after { transform: scaleX(1); }
.nav .nav-wa, .nav .nav-tel { display: none; }
.header-wa {
  justify-self: end; display: grid; place-items: center;
  width: 44px; height: 44px; margin-inline-end: -9px; color: var(--acc);
  transition: opacity .2s, transform .3s var(--ease);
}
.header-wa svg { display: block; }
.header-wa:hover { transform: translateY(-1px); }
.header-wa:hover { opacity: .7; }
.menu-btn { display: none; font-family: var(--mono); font-size: 13px; justify-self: end; }
.menu-close { display: none; }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--ink); }
.hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  padding-inline: 0;
}
.hero-text {
  padding: 96px var(--gut) 48px;
  border-left: 1px solid var(--ink);
  display: flex; flex-direction: column; justify-content: space-between; gap: 64px;
}
.hero-text .mono-label { margin-bottom: 40px; }
h1 {
  font-weight: 300;
  font-size: clamp(48px, 6.25vw, 80px);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.hero-foot p { font-size: 18px; color: var(--muted); max-width: 380px; margin-bottom: 32px; }
.hero-cta {
  display: inline-flex; gap: 40px; justify-content: space-between; align-items: center;
  border: 1px solid var(--ink); padding: 16px 20px; min-width: 260px;
  font-size: 15px; font-weight: 500;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.hero-cta:hover { background: var(--ink); color: var(--paper); }
.hero-media { position: relative; height: clamp(520px, calc(100vh - var(--header-h) - 40px), 760px); overflow: hidden; background: var(--paper-2); }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 55% 50%; filter: grayscale(.35); transition: filter 1.2s var(--ease); }
.hero-media:hover img { filter: grayscale(0); }
.hero-media .mono-cap {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 12px var(--gut); background: var(--paper); border-top: 1px solid var(--ink);
}

/* ---------- Sections ---------- */
.section { padding-top: var(--section-gap); }
.section-head {
  display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: end;
  margin-bottom: 48px;
}
.section-note { font-size: 15px; color: var(--muted); max-width: 520px; }

/* ---------- 01 Projects ---------- */
.project-thead, .project-row {
  display: grid;
  grid-template-columns: 56px 260px 1fr 220px;
  gap: 32px;
  align-items: center;
}
.project-thead {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.project-list li { border-bottom: 1px solid var(--hair); }
.project-list li:last-child { border-bottom-color: var(--ink); }
.project-row {
  width: 100%; text-align: inherit; padding: 24px 0;
  position: relative;
  transition: background .35s var(--ease);
}
.project-row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gut) * -1);
  background: var(--paper-2); opacity: 0; transition: opacity .35s var(--ease); z-index: -1;
}
.project-row:hover::before, .project-row:focus-visible::before { opacity: .7; }
.p-num { font-family: var(--mono); font-size: 13px; color: var(--acc); }
.p-thumb { height: 160px; overflow: hidden; background: var(--paper-2); }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project-row:hover .p-thumb img { transform: scale(1.03); }
.p-name { font-size: 26px; font-weight: 400; line-height: 1.25; }
.p-name small { display: block; font-size: 15px; font-weight: 300; color: var(--muted); margin-top: 6px; }
.p-region, .project-thead span:last-child { color: var(--muted); text-align: left; }
.p-region::after { content: "↖"; float: right; color: var(--acc); opacity: 0; transition: opacity .3s; }
.project-row:hover .p-region::after { opacity: 1; }
.p-tag {
  display: inline-block; vertical-align: middle; margin-inline-start: 10px; padding: 3px 8px 4px;
  font: 400 12px/1 var(--mono); color: var(--muted); border: 1px solid var(--hair);
}
.p-count { display: none; }

/* ---------- 02 Process ---------- */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink); background: var(--paper);
}
.process-grid li {
  padding: 32px; min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 72px;
  border-left: 1px solid var(--ink);
}
.process-grid li:last-child { border-left: 0; }
.process-grid h3 { font-size: 22px; font-weight: 500; margin-bottom: 10px; line-height: 1.3; }
.process-grid p { font-size: 15px; color: var(--muted); }
.process-grid .is-ink { background: var(--ink); color: var(--paper); }
.process-grid .is-ink p { color: var(--ink-soft); }

.plan-to-home {
  display: grid; grid-template-columns: 5fr 56px 7fr; align-items: center;
  margin-top: 40px;
}
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--ink); background: var(--paper-2); }
.plan-to-home .frame img { aspect-ratio: auto; height: clamp(240px, 30vw, 380px); }
.frame-plan img { object-fit: contain; background: transparent; mix-blend-mode: multiply; padding: 16px; filter: grayscale(1) contrast(1.05); }
.plan-arrow { text-align: center; font-family: var(--mono); color: var(--acc); font-size: 18px; padding-bottom: 32px; }

/* ---------- 03 Interior — "one day at home" (3B in 1C) ---------- */
.interior-intro .lead { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; margin-bottom: 8px; }
.interior-intro p:not(.lead) { color: var(--muted); font-size: 17px; }
.day-project {
  margin-top: 14px; display: inline-flex; gap: 8px; align-items: baseline;
  font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--hair); padding-bottom: 3px;
  transition: border-color .25s;
}
.day-project:hover { border-color: var(--ink); }

.day-track {
  --i: 0;
  position: relative;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--ink);
  padding: 28px 0 32px;
}
/* timeline rule + accent progress, both running right→left from the first stop */
.day-track::before, .day-track::after {
  content: ""; position: absolute; top: 74px; height: 1px;
  inset-inline-start: calc(100% / 12);
}
.day-track::before { inset-inline-end: calc(100% / 12); background: var(--hair); }
.day-track::after {
  width: calc(var(--i) * 100% / 6);
  background: var(--acc);
  transition: width .6s var(--ease);
}
.day-tab {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  opacity: .45; transition: opacity .35s var(--ease);
}
.day-tab:hover, .day-tab[aria-selected="true"] { opacity: 1; }
.day-tab .t-time { font-family: var(--mono); font-size: 15px; letter-spacing: .02em; direction: ltr; }
.day-tab .t-node {
  width: 11px; height: 11px; border: 1px solid var(--ink); background: var(--paper);
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.day-tab[aria-selected="true"] .t-node { background: var(--acc); border-color: var(--acc); transform: rotate(45deg); }
.day-tab .t-label { font-size: 15px; }
.day-tab .t-idx { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: -8px; }

.day-panel {
  display: grid; grid-template-columns: 7fr 5fr;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.day-media {
  position: relative; height: clamp(380px, 40vw, 540px); overflow: hidden;
  border-left: 1px solid var(--ink); background: var(--paper-2);
}
.day-img {
  position: absolute; inset: 0; width: 100%; height: calc(100% - 41px);
  object-fit: cover; opacity: 0;
  transition: opacity .5s var(--ease), transform 1.6s var(--ease);
  transform: scale(1.015);
}
.day-img.is-on { opacity: 1; transform: scale(1); }
.day-cap {
  position: absolute; inset-inline: 0; bottom: 0; height: 41px; align-items: center;
  padding: 0 24px; background: var(--paper); border-top: 1px solid var(--ink);
}
.day-text {
  padding: 40px 40px 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.day-time {
  font-weight: 300; font-size: clamp(56px, 6.8vw, 88px); line-height: 1;
  font-variant-numeric: tabular-nums; direction: ltr; text-align: right;
  margin-bottom: 24px; letter-spacing: -.02em;
}
.day-moment { font-size: 21px; line-height: 1.5; font-weight: 400; max-width: 420px; }
.day-decision { border-top: 1px solid var(--ink); padding-top: 20px; }
.day-decision .mono-sm { margin-bottom: 10px; color: var(--acc); }
.day-decision p { font-size: clamp(21px, 2vw, 26px); line-height: 1.4; font-weight: 500; }
.day-text .is-swap { animation: swapIn .55s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.day-nav {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--hair); padding-top: 16px;
  font-family: var(--mono); font-size: 13px;
}
.day-nav button { color: var(--muted); transition: color .2s; }
.day-nav button:hover { color: var(--ink); }

/* ---------- 04 About ---------- */
.about-grid {
  display: grid; grid-template-columns: 6fr 6fr;
  border-bottom: 1px solid var(--ink);
}
.about-media { overflow: hidden; background: var(--paper-2); align-self: start; }
.about-media img { width: 100%; height: auto; aspect-ratio: 1200 / 901; object-fit: cover; filter: grayscale(.35); }
.about-text {
  padding: 0 56px 56px 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.about-quote { font-size: clamp(24px, 2.7vw, 34px); line-height: 1.4; margin-bottom: 28px; text-wrap: pretty; }
.about-body { font-size: 17px; line-height: 1.8; color: var(--muted); max-width: 540px; }
.about-body + .about-body { margin-top: 16px; }

/* ---------- 05 FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--hair); padding: 26px 0; }
.faq details:last-child { border-bottom-color: var(--ink); }
.faq summary {
  display: grid; grid-template-columns: 48px 1fr 24px; align-items: baseline;
  font-size: 19px; font-weight: 400; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mono-sm { padding-top: 4px; }
.faq summary:hover span:nth-child(2) { color: var(--muted); }
.faq .pm::before { content: "+"; font-family: var(--mono); }
.faq details[open] .pm::before { content: "−"; color: var(--acc); }
.faq details p { margin: 14px 48px 0 0; font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 620px; }
.faq details[open] p { animation: swapIn .45s var(--ease); }

/* ---------- CTA + footer ---------- */
.cta {
  margin-top: var(--section-gap);
  background: var(--ink); color: var(--paper);
  padding: 120px 0 40px;
  position: relative; z-index: 1;
}
.cta-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: end; margin-bottom: 120px; }
.cta h2 { font-weight: 300; font-size: clamp(44px, 6.25vw, 80px); line-height: 1.05; margin-bottom: 56px; letter-spacing: -.01em; }
.cta-btn {
  display: flex; justify-content: space-between; align-items: center; max-width: 460px;
  border: 1px solid var(--paper); padding: 24px 28px; font-size: 18px; font-weight: 500;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.cta-btn:hover { background: var(--paper); color: var(--ink); }
.cta-media { height: 420px; overflow: hidden; border: 1px solid var(--ink-2); }
.cta-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.footer {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  border-top: 1px solid var(--ink-2); padding-top: 40px;
}
.footer-logo { height: 95px; width: auto; opacity: .92; }
.footer-meta {
  display: flex; gap: 40px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--ink-muted);
}
.footer a { direction: ltr; }
.footer a:hover { color: var(--paper); }

/* ---------- Floating WhatsApp (mobile) ---------- */
.fab-wa { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: var(--paper); color: var(--ink);
  display: none; grid-template-rows: auto 1fr auto;
}
.lightbox[open] { display: grid; animation: fade .35s var(--ease); }
.lightbox::backdrop { background: var(--paper); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h); padding-inline: var(--gut); border-bottom: 1px solid var(--ink);
}
.lb-title { display: flex; gap: 16px; align-items: baseline; font-size: 18px; font-weight: 500; }
.lb-num { color: var(--acc); }
.lb-close { justify-self: end; font-family: var(--mono); font-size: 13px; }
.lb-stage {
  position: relative; min-height: 0;
  display: grid; grid-template-columns: 72px 1fr 72px; align-items: center;
  padding: 32px 0;
}
.lb-img { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; min-height: 0; height: 100%; width: 100%; transition: opacity .3s; }
.lb-img.is-loading { opacity: 0; }
.lb-prev, .lb-next { height: 100%; font-family: var(--mono); font-size: 20px; color: var(--muted); transition: color .2s; }
.lb-prev:hover, .lb-next:hover { color: var(--acc); }
.lb-cap { padding: 0 var(--gut) 24px; text-align: center; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 22px; }
}

@media (max-width: 1024px) {
  :root { --cols: 6; --gut: 32px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-wa { display: none; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h));
    flex-direction: column; justify-content: flex-start; gap: 0;
    background: var(--paper); padding: 24px var(--gut);
    font-size: 15px; color: var(--ink);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav a { padding: 22px 0; border-bottom: 1px solid var(--hair); font-family: var(--sans); font-size: 26px; font-weight: 300; }
  .nav a i { font-family: var(--mono); font-size: 13px; color: var(--acc); margin-inline-end: 16px; vertical-align: .4em; }
  .nav a::after { display: none; }
  .nav .nav-wa { display: block; border: 1px solid var(--ink); margin-top: 32px; padding: 18px 20px; font-size: 17px; font-weight: 500; }
  .nav .nav-tel { display: flex; justify-content: space-between; border: 0; padding: 16px 0; font-family: var(--mono); font-size: 14px; color: var(--muted); }
  .nav .nav-tel span:last-child { direction: ltr; color: var(--ink); }
  .menu-open-state .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open-state .menu-open { display: none; }
  .menu-open-state .menu-close { display: inline; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { border-left: 0; border-bottom: 1px solid var(--ink); padding-top: 72px; gap: 48px; }
  .hero-media { height: auto; aspect-ratio: 4 / 3; }

  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .project-thead { display: none; }
  .project-list { border-top: 1px solid var(--ink); }
  .project-row { grid-template-columns: 40px 200px 1fr; grid-template-areas: "n t name" "n t region"; gap: 4px 24px; }
  .p-num { grid-area: n; align-self: start; padding-top: 6px; }
  .p-thumb { grid-area: t; height: 132px; }
  .p-name { grid-area: name; align-self: end; }
  .p-region { grid-area: region; align-self: start; text-align: start; }

  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid li:nth-child(2) { border-left: 0; }
  .process-grid li:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .process-grid li { min-height: 220px; }

  .day-panel { grid-template-columns: 1fr; }
  .day-media { border-left: 0; border-bottom: 1px solid var(--ink); height: auto; aspect-ratio: 4 / 3; }

  .about-grid { grid-template-columns: 1fr; border-bottom: 0; }
  .about-media { order: 2; margin-top: 40px; }
  .about-text { padding: 0; gap: 32px; }

  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-grid { grid-template-columns: 1fr; gap: 56px; margin-bottom: 80px; }
  .cta-media { height: auto; aspect-ratio: 16 / 10; }
}

@media (max-width: 720px) {
  :root { --cols: 4; --gut: 16px; --header-h: 64px; }
  body { font-size: 16px; }
  .brand img { height: 46px; }
  .hero-text { padding-top: 56px; padding-bottom: 32px; }
  .hero-cta { min-width: 0; width: 100%; }
  .hero-media .mono-cap span:last-child { display: none; }

  .project-row { grid-template-columns: 1fr auto; grid-template-areas: "t t" "name count" "region count"; gap: 4px 16px; padding: 20px 0 24px; }
  .p-num { display: none; }
  .p-thumb { height: auto; aspect-ratio: 16 / 10; margin-bottom: 14px; }
  .p-name { font-size: 22px; }
  .p-count { grid-area: count; align-self: start; padding-top: 8px; }
  .p-region::after { content: none; }
  .project-row::before { inset: 0 calc(var(--gut) * -1); }

  .process-grid { grid-template-columns: 1fr; }
  .process-grid li { border-left: 0; border-bottom: 1px solid var(--ink); min-height: 0; gap: 28px; padding: 24px; }
  .process-grid li:last-child { border-bottom: 0; }
  .plan-to-home { grid-template-columns: 1fr; gap: 8px; }
  .plan-arrow { transform: rotate(-90deg); padding: 0; }

  .day-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut);
  }
  .day-track::-webkit-scrollbar { display: none; }
  .day-tab { flex: 0 0 96px; scroll-snap-align: center; }
  .day-track::before { inset-inline: calc(var(--gut) + 48px) auto; width: calc(96px * 5); }
  .day-track::after { inset-inline-start: calc(var(--gut) + 48px); width: calc(var(--i) * 96px); }
  .day-text { padding: 28px 20px 20px; gap: 24px; }
  .day-time { margin-bottom: 16px; }
  .day-moment { font-size: 19px; }
  .day-cap { padding: 0 16px; }


  .faq summary { grid-template-columns: 40px 1fr 20px; font-size: 17px; }
  .faq details p { margin-right: 40px; }

  .cta { padding-top: 88px; }
  .cta-btn { padding: 20px; font-size: 16px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-logo { height: 80px; }
  .footer-meta { flex-direction: column; gap: 6px; }

  .lb-stage { grid-template-columns: 1fr; padding: 16px 0; }
  .lb-prev, .lb-next { display: none; }
  .lb-head { grid-template-columns: 1fr auto; }
  .lb-count { display: none; }
}

/* Numeric counters read left-to-right ("02 / 05") inside RTL text. */
.lb-count, .day-count { direction: ltr; unicode-bidi: isolate; }

/* ---------- Touch devices: no sticky hover, clear press feedback ---------- */
@media (hover: none) {
  .hero-media:hover img { filter: grayscale(.35); }
  .project-row:hover::before { opacity: 0; }
  .project-row:hover .p-thumb img { transform: none; }
  .project-row:hover .p-region::after { opacity: 0; }
  .hero-cta:hover, .cta-btn:hover { background: none; color: inherit; }
  .project-row:active::before { opacity: .7; }
  .hero-cta:active, .cta-btn:active, .day-nav button:active, .day-project:active, .fab-wa:active, .nav a:active { opacity: .6; }
}

@media (max-width: 1024px) {
  .menu-btn { min-height: 44px; min-width: 56px; text-align: end; }
}

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  :root { --section-gap: 88px; }

  /* Plex 300 is too thin for body copy on small screens. */
  p, .p-region, .faq summary span:nth-child(2) { font-weight: 400; }
  .about-quote { font-weight: 300; }
  .nav { overflow-y: auto; overscroll-behavior: contain; }

  .hero-text { gap: 36px; padding-top: 44px; }
  .hero-text .mono-label { margin-bottom: 24px; }
  h1 { font-size: clamp(44px, 13vw, 58px); }
  .hero-foot p { font-size: 17px; margin-bottom: 24px; }
  .hero-cta { min-height: 52px; }

  .section-head { margin-bottom: 32px; }
  .p-region.is-empty { display: none; }
  .p-count { display: block; font: 400 13px var(--mono); color: var(--acc); white-space: nowrap; }
  .p-count::after { content: " ↖"; }

  /* Timeline scrolls sideways: fade the edges so it reads as scrollable. */
  .day-track {
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 16px, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(to left, transparent 0, #000 16px, #000 calc(100% - 32px), transparent 100%);
  }
  .day-nav button { min-height: 44px; padding: 0 4px; }
  .day-decision p { font-size: 20px; }
  .day-project { min-height: 44px; }

  .faq summary { min-height: 44px; align-items: center; }
  .cta-btn { min-height: 56px; }
  .cta { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .footer a[data-tel] { padding: 10px 0; }

  /* Floating WhatsApp: appears after the hero, hides at the contact section. */
  .fab-wa {
    display: flex; gap: 12px; align-items: center;
    position: fixed; z-index: 40; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
    height: 48px; padding: 0 18px;
    background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 500;
    box-shadow: 0 10px 30px -10px rgba(27, 30, 31, .5);
    opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .fab-wa.is-on { opacity: 1; transform: none; pointer-events: auto; }
  .menu-open-state .fab-wa { opacity: 0; pointer-events: none; }

  /* Lightbox */
  .lb-head {
    grid-template-columns: 1fr auto auto; gap: 16px;
    height: calc(var(--header-h) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
  }
  .lb-title { font-size: 16px; gap: 10px; }
  .lb-count { display: block; }
  .lb-close { min-height: 44px; }
  .lb-cap { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
