/* TR Lighting - page-specific styles */

/* ╭────────────────────╮
   │      HERO          │
   ╰────────────────────╯ */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 40px 80px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background: #050403;
  transition: background-color 2.6s cubic-bezier(.22,.61,.36,1);
}
.hero.is-on { background: var(--bg); }
[data-palette="ivory"] .hero,
[data-palette="oyster"] .hero {
  background: #1a1612;
}
[data-palette="ivory"] .hero.is-on,
[data-palette="oyster"] .hero.is-on {
  background: var(--bg);
}

/* architecture canvas - abstracted dark room */
.hero__architecture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.arch {
  position: absolute;
  transition: opacity 2s cubic-bezier(.22,.61,.36,1), transform 2s cubic-bezier(.22,.61,.36,1), filter 2.4s ease;
  opacity: 0;
}
.hero.is-on .arch { opacity: 1; }

.arch--wall-l {
  display: none;
}

.arch--wall-r {
  display: none;
}

.arch--floor {
  display: none;
}

.arch--alcove {
  right: 14%;
  top: 12%;
  width: 22%;
  height: 50%;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  border-radius: 50% 50% 0 0 / 18% 18% 0 0;
  background: linear-gradient(180deg,
    rgba(217, 201, 168, 0.10) 0%,
    rgba(217, 201, 168, 0.02) 100%);
  transition-delay: .55s;
}

.arch--column {
  left: 24%;
  top: 8%;
  bottom: 38vh;
  width: 1px;
  background: linear-gradient(180deg, var(--rule) 0%, transparent 100%);
  transition-delay: .8s;
}

.arch--lightline {
  right: 30%;
  top: 4%;
  bottom: 10%;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 244, 220, 0.0) 4%,
    rgba(255, 244, 220, 1) 22%,
    rgba(255, 248, 230, 1) 50%,
    rgba(255, 244, 220, 1) 78%,
    rgba(255, 244, 220, 0.0) 96%,
    transparent 100%);
  box-shadow:
    0 0 30px rgba(255, 244, 220, 0.95),
    0 0 80px rgba(243, 220, 170, 0.7),
    0 0 200px rgba(217, 180, 110, 0.55),
    0 0 380px rgba(217, 180, 110, 0.35);
  filter: blur(0.6px);
  opacity: 0;
}
.hero.is-on .arch--lightline {
  opacity: 1;
  transition: opacity 2.6s cubic-bezier(.22,.61,.36,1) .25s;
}
.arch--lightline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20%;
  bottom: -20%;
  width: 800px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 55% at 50% 50%,
    rgba(255, 244, 220, 0.55) 0%,
    rgba(243, 220, 170, 0.32) 22%,
    rgba(217, 180, 110, 0.14) 50%,
    transparent 80%);
  pointer-events: none;
  filter: blur(8px);
}

.arch--glow {
  right: -10%;
  top: -10%;
  bottom: -10%;
  width: 90%;
  background: radial-gradient(ellipse 55% 60% at 55% 50%,
    rgba(255, 244, 220, 0.85) 0%,
    rgba(243, 220, 170, 0.55) 14%,
    rgba(217, 180, 110, 0.32) 32%,
    rgba(217, 180, 110, 0.12) 55%,
    transparent 82%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: scale(0.6);
  transform-origin: 60% 50%;
  filter: blur(2px);
}
.hero.is-on .arch--glow {
  opacity: 1;
  transform: scale(1);
  transition: opacity 3s ease, transform 3s cubic-bezier(.22,.61,.36,1);
}
[data-palette="ivory"] .hero__light-vignette,
[data-palette="oyster"] .hero__light-vignette{
  background: radial-gradient(
    ellipse 100% 130% at 0% 100%,
    var(--bg) 0%,
    color-mix(in srgb, var(--bg) 96%, transparent) 22%,
    color-mix(in srgb, var(--bg) 78%, transparent) 42%,
    color-mix(in srgb, var(--bg) 42%, transparent) 60%,
    color-mix(in srgb, var(--bg) 12%, transparent) 74%,
    transparent 86%
  );
}


/* sweep variant */
.hero--sweep .arch--mask-sweep {
  inset: 0;
  background: linear-gradient(110deg,
    transparent 0%,
    transparent 30%,
    rgba(243, 230, 198, 0.4) 50%,
    transparent 80%);
  transform: translateX(-100%);
  opacity: 0;
}
.hero--sweep.is-on .arch--mask-sweep {
  opacity: 1;
  transform: translateX(100%);
  transition: transform 2.4s cubic-bezier(.4,.0,.2,1) .2s, opacity 1s ease;
}

/* radial variant: stronger glow, no light line */
.hero--radial .arch--lightline { opacity: 0 !important; }
.hero--radial .arch--glow {
  width: 130%;
  right: -25%;
  top: -25%;
  bottom: -10%;
  background: radial-gradient(circle at 70% 35%,
    rgba(255, 248, 230, 1) 0%,
    rgba(255, 240, 200, 0.78) 8%,
    rgba(243, 220, 170, 0.5) 18%,
    rgba(217, 180, 110, 0.3) 35%,
    rgba(217, 180, 110, 0.1) 55%,
    transparent 80%);
}

/* line variant: emphasize vertical */
.hero--line .arch--glow { opacity: 0.5 !important; }
.hero--line .arch--lightline {
  right: 35%;
  width: 1px;
}

.arch--vignette {
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%,
    transparent 25%, rgba(0,0,0,0.65) 95%);
  opacity: 1 !important;
}
[data-palette="ivory"] .arch--vignette,
[data-palette="oyster"] .arch--vignette {
  background: radial-gradient(ellipse at 50% 50%,
    transparent 50%, rgba(28, 24, 20, 0.06) 100%);
}

.arch--grain {
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.78 0 0 0 0 0.62 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.35 !important;
  mix-blend-mode: overlay;
}

/* hero content */
.hero__content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-bottom: 0px;
  max-width: clamp(600px, 50vw, 860px);
  width: 100%;
  padding-left: 0px;
}

/* Soft palette-aware scrim so hero copy keeps contrast over the photo.
   Uses var(--bg): light scrim under dark text (ivory), dark under light (dark mode). */
.hero__content::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -40px;
  right: -12%;
  top: -32px;
  bottom: -48px;
  pointer-events: none;
  background: radial-gradient(130% 125% at 0% 100%,
    color-mix(in srgb, var(--bg) 60%, transparent) 0%,
    color-mix(in srgb, var(--bg) 26%, transparent) 42%,
    transparent 68%);
}
[dir="rtl"] .hero__content::before {
  left: -12%;
  right: -40px;
  background: radial-gradient(130% 125% at 100% 100%,
    color-mix(in srgb, var(--bg) 60%, transparent) 0%,
    color-mix(in srgb, var(--bg) 26%, transparent) 42%,
    transparent 68%);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(8px);
}
.hero.is-on .hero__eyebrow {
  opacity: 1;
  transform: none;
  transition: opacity 1s ease 1s, transform 1s ease 1s;
}
.hero__eyebrow-rule {
  flex: 0 0 60px;
  height: 1px;
  background: var(--fg-mute);
}

.hero__title {
  font-size: var(--type-display);
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hero__title .hero__line {
  display: block;
  opacity: 0;
  transform: translateY(12px);
}
.hero.is-on .hero__line {
  opacity: 1;
  transform: none;
  transition: opacity 1.2s ease, transform 1.4s cubic-bezier(.22,.61,.36,1);
}
.hero.is-on .hero__line:nth-child(1) { transition-delay: 1.1s; }
.hero.is-on .hero__line:nth-child(2) { transition-delay: 1.4s; }
.hero.is-on .hero__line:nth-child(3) { transition-delay: 1.7s; }
.hero__line em {
  font-style: normal;
  color: var(--champagne);
}

.hero__body {
  max-width: 72ch;
  font-size: var(--type-body);
  line-height: 1.68;
  color: var(--fg-soft);
  margin-bottom: 36px;
  opacity: 0;
}
.hero.is-on .hero__body {
  opacity: 1;
  transition: opacity 1.4s ease 1.9s;
}

.hero__cta {
  display: flex;
  gap: 18px;
  align-items: center;
  opacity: 0;
}
.hero.is-on .hero__cta {
  opacity: 1;
  transition: opacity 1.2s ease 2.2s;
}

.cta {
  --pad-x: 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px var(--pad-x);
  border: 1px solid var(--fg-mute);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: default;
  transition: all .35s ease;
}
.cta:hover {
  border-color: var(--champagne);
  color: var(--champagne);
}
.cta__arrow { transition: transform .35s ease; }
.cta:hover .cta__arrow { transform: translateX(4px); }
.cta--ghost {
  border-color: var(--rule);
  color: var(--fg-mute);
}
.cta--ghost:hover { color: var(--fg); border-color: var(--fg-mute); }
.cta__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 8px var(--champagne);
}

/* hero chrome (corners) */
.hero__chrome {
  position: absolute;
  inset: 100px 40px auto 40px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
  opacity: 0;
}
.hero.is-on .hero__chrome {
  opacity: 1;
  transition: opacity 1.6s ease 1.6s;
}
.hero__chrome > div { display: flex; flex-direction: column; gap: 4px; }
.hero__chrome-r { text-align: right; align-items: flex-end; }
.hero__chrome-rule {
  width: 24px;
  height: 1px;
  background: var(--fg-mute);
  margin: 6px 0;
}

.hero__scroll {
  position: absolute;
  left: 40px; bottom: 40px;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  opacity: 0;
}
.hero.is-on .hero__scroll {
  opacity: 1;
  transition: opacity 1.4s ease 2.4s;
}
.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, var(--fg-mute), transparent);
  animation: scrollPulse 2.6s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.5); transform-origin: top; opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ╭────────────────────╮
   │     FIELDS         │
   ╰────────────────────╯ */
/* ╭──────────────────────────────────────────────────────────────╮
   │  CATEGORIES (.fields / .field)                                 │
   │  Single source of truth. Desktop values live in the base       │
   │  rules below; desktop-only tweaks in @media (min-width:901px); │
   │  responsive scale grouped in the 900 / 700 / 420 blocks at the │
   │  end of this section. The Hebrew title cap and the styles.css  │
   │  [dir="rtl"] letter-spacing reset are intentionally separate.  │
   ╰──────────────────────────────────────────────────────────────╯ */
.fields {
  padding: 2px 0px;
}
/* head / headline / bar are not rendered in the current layout */
.fields__head { display: none; }
.fields__list {
  list-style: none;
  border-top: 0;
}

.field {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 38px;
  grid-template-rows: auto auto;
  column-gap: 40px;
  row-gap: 0;
  align-items: baseline;                 /* centered on desktop - see min-width:901 */
  padding: 70px 0;
  border-bottom: 1px solid var(--rule);
  cursor: default;
  overflow: hidden;
  transition: background-color .8s cubic-bezier(.22,.61,.36,1), padding .6s ease, opacity .6s ease;
}
.field > * { position: relative; z-index: 2; }
.field .field__hit {
  position: absolute;
  inset: 0;
  z-index: 6;
  text-indent: -9999px;
}
.field.is-dim { opacity: 0.42; }
.field.is-hover {
  background-color: rgba(217, 180, 110, 0.04);
}
[data-palette="ivory"] .field.is-hover,
[data-palette="oyster"] .field.is-hover {
  background-color: rgba(184, 162, 116, 0.08);
}

/* category image - visible at rest, brightens on hover; bleeds in from the
   side and dissolves into the page via a same-as-background edge fade */
.field__image {
  position: absolute;
  left: 50%;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.28;
  transition: opacity 0.55s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
  overflow: hidden;
  background-image: var(--field-bg, none);
  background-size: cover;
  background-position: var(--field-bg-pos, center center);
}
.field__image::before {                  /* subtle warm tint */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(217, 180, 110, 0.07);
}
.field__image[data-has-image="true"]::after {   /* edge fade into the text */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to right, var(--bg) 0%, transparent 42%);
}
.field.is-hover .field__image { opacity: 0.78; }
[data-palette="ivory"] .field.is-hover .field__image,
[data-palette="oyster"] .field.is-hover .field__image { opacity: 0.96; }

/* RTL - image on the left, text on the right */
[dir="rtl"] .field__image {
  left: 0;
  right: 15%;
  transform: translateX(5px);
}
[dir="rtl"] .field.is-hover .field__image { transform: translateX(0); }
[dir="rtl"] .field__image[data-has-image="true"]::after {
  background: linear-gradient(to left, var(--bg) 0%, transparent 42%);
}

.field__num           { display: none; }
.field__arrow         { display: none; }
.field__image-caption { display: none; }

.field__name {
  grid-column: 1;
  grid-row: 1;
  display: block;
  max-width: 100%;
  /* English category titles: 0.8x of --type-display, set explicitly so the shared
     token (hero, section/expertise/manifesto titles) is left untouched. */
  font-size: clamp(23.2px, 3.2vw, 51.2px);
  line-height: 1;
  letter-spacing: 0;
  transform-origin: left center;
  transition:
    color .8s ease,
    transform .8s cubic-bezier(.22,.61,.36,1),
    text-shadow .8s ease !important;
}
.field.is-hover .field__name {
  color: var(--champagne);
  transform: translateX(4px);
  text-shadow: 0 0 22px color-mix(in srgb, var(--champagne) 18%, transparent);
}
[dir="rtl"] .field.is-hover .field__name { transform: translateX(-4px); }
/* Hebrew category-title scale - tuned independently of EN (--type-display); sits
   noticeably below the English titles. Kept proportional across breakpoints via
   the [dir="rtl"] counterparts in the mobile blocks below. */
[dir="rtl"] .field__name { font-size: clamp(20px, 2.94vw, 48px); }

.field__desc {
  grid-column: 1;
  grid-row: 2;
  margin-top: 14px;
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.62;
  color: var(--fg);
  transition: color .8s ease;
}
/* Hebrew category descriptions read small at 16px (Assistant) — bump HE only */
[dir="rtl"] .field__desc { font-size: 19px; }

/* ── desktop only ── */
@media (min-width: 901px) {
  .field { min-height: 300px; align-items: center; }
  .field__name, .field__desc { align-self: center; }
  .field__name { overflow-wrap: normal; }
}

/* ── tablet / large phone ── */
@media (max-width: 900px) {
  .fields { padding-top: 5px; }   /* side gutters come from the shared 24px rule */
  .field {
    grid-template-columns: 1fr 22px;
    gap: 16px;
    padding: 26px 0;
  }
  .field__name { font-size: clamp(28px, 10vw, 52px); }
  [dir="rtl"] .field__name { font-size: clamp(20px, 7.5vw, 38px); }
  .field__desc {
    grid-column: 1 / -1;
    max-width: 34ch;
    margin-top: -8px;
    line-height: 1.55;
  }
}

/* ── phone ── */
@media (max-width: 700px) {
  .field {
    grid-template-columns: 1fr 18px;
    gap: 12px;
  }
  .field__name {
    font-size: clamp(26px, 8vw, 40px);
    line-height: 0.98;
    letter-spacing: -0.02em;
  }
  [dir="rtl"] .field__name { font-size: clamp(19px, 6vw, 30px); }
  .field__desc { margin-top: 4px; }
}

/* ── small phone ── */
@media (max-width: 420px) {
  .field {
    grid-template-columns: 1fr 16px;
    gap: 10px;
  }
  .field__name { font-size: clamp(24px, 7.5vw, 36px); }
  [dir="rtl"] .field__name { font-size: clamp(18px, 5.64vw, 28px); }
  .field__desc { max-width: 32ch; }
}

/* ╭────────────────────╮
   │  SELECTED PROJECTS │
   ╰────────────────────╯ */
.selected {
  padding: 60px 40px 120px;
  position: relative;
}
.selected__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 20px;
}
.selected__all {
  display: inline-flex;
  gap: 14px;
  font-size: var(--type-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  transition: color .3s ease;
}
.selected__all:hover { color: var(--champagne); }

.selected__list {
  list-style: none;
  position: relative;
}

.proj-row {
  display: grid;
  grid-template-columns: 60px 2.4fr 1fr 1.4fr 80px 30px;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  cursor: default;
  transition: opacity .35s ease, padding .35s ease;
}
.selected__list:hover .proj-row { opacity: 0.32; }
.selected__list .proj-row:hover { opacity: 1; padding-inline-start: 16px; }
.proj-row__num { font-size: 11px; color: var(--fg-faint); }
.proj-row__name {
  font-size: var(--type-subtitle);
  line-height: 1.1;
  letter-spacing: 0;
  transition: color .35s ease;
}
.proj-row:hover .proj-row__name { color: var(--champagne); }
.proj-row__cat { color: var(--fg-mute); font-size: var(--type-label); }
.proj-row__loc { color: var(--fg-mute); font-size: var(--type-label); }
.proj-row__year { font-size: var(--type-caption); color: var(--fg-faint); text-align: end; }
.proj-row__arrow {
  text-align: end;
  color: var(--fg-faint);
  transition: color .35s ease, transform .35s ease;
}
.proj-row:hover .proj-row__arrow { color: var(--champagne); transform: translateX(4px); }

.selected__preview {
  position: fixed;
  pointer-events: none;
  width: 320px;
  height: 220px;
  top: 0; left: 0;
  transform: translate(-50%, -110%);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 30;
  display: none;
}

/* ╭────────────────────╮
   │     EXPERTISE       │
   ╰────────────────────╯ */
.expertise {
  padding: 56px 40px 120px;
}
.expertise__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 22px;
}
.expertise__head .label { grid-column: 1 / -1; margin-bottom: -28px; }
.expertise__title {
  font-size: var(--type-display);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}
.expertise__lede {
  font-size: var(--type-small);
  line-height: 1.7;
  color: var(--fg-mute);
  max-width: 48ch;
  margin-inline-start: auto;
}

.expertise__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  border-top: 1px solid var(--rule);
}
.exrow {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr 42px;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  cursor: default;
  transition: background-color .8s cubic-bezier(.22,.61,.36,1), padding .6s ease, opacity .6s ease;
  overflow: hidden;
}
.exrow > * { position: relative; z-index: 2; }
.exrow:hover { padding-left: 14px; padding-right: 14px; }
.exrow.is-dim { opacity: 0.32; }
.exrow.is-hover { background-color: rgba(217, 180, 110, 0.04); }
[data-palette="ivory"] .exrow.is-hover,
[data-palette="oyster"] .exrow.is-hover { background-color: rgba(184, 162, 116, 0.08); }

.exrow__arrow {
  font-size: 18px;
  color: var(--fg-faint);
  transition: color .8s ease, transform .8s cubic-bezier(.22,.61,.36,1);
}
.exrow.is-hover .exrow__arrow {
  color: var(--champagne);
  transform: translateX(8px);
}
.exrow__body { display: flex; flex-direction: column; gap: 8px; }
.exrow__name {
  font-size: var(--type-subtitle);
  line-height: 1;
  letter-spacing: 0;
  transition: color .8s ease, transform .8s cubic-bezier(.22,.61,.36,1);
}
.exrow.is-hover .exrow__name {
  color: var(--champagne);
  transform: translateX(4px);
}
.exrow__tags {
  font-size: var(--type-small);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--fg-soft);
  transition: color .8s ease;
}
.exrow.is-hover .exrow__tags { color: var(--fg); }
.exrow__num {
  font-size: var(--type-caption);
  color: var(--fg-faint);
  text-align: end;
  letter-spacing: 0.08em;
  transition: color .8s ease;
}
.exrow.is-hover .exrow__num { color: var(--champagne); }

/* Image reveal layer (re-uses field tints) */
.exrow__image {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.6s cubic-bezier(.22,.61,.36,1), transform 2.4s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
  overflow: hidden;
}
.exrow.is-hover .exrow__image { opacity: 1; transform: scale(1); }
.exrow__image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(255,255,255,0.04) 6px 7px),
    radial-gradient(ellipse 50% 65% at var(--lx) var(--ly),
      rgba(255, 244, 220, 0.55) 0%,
      rgba(243, 220, 170, 0.32) 22%,
      rgba(217, 180, 110, 0.14) 50%,
      rgba(20, 14, 8, 0.32) 100%);
}
[data-palette="ivory"] .exrow__image::before,
[data-palette="oyster"] .exrow__image::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(28,24,20,0.025) 6px 7px),
    radial-gradient(ellipse 55% 70% at var(--lx) var(--ly),
      rgba(184, 162, 116, 0.45) 0%,
      rgba(184, 162, 116, 0.22) 25%,
      transparent 85%);
}
.exrow__image[data-tint="green"]::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(255,255,255,0.04) 6px 7px),
    radial-gradient(ellipse 50% 65% at var(--lx) var(--ly),
      rgba(218, 230, 200, 0.45) 0%,
      rgba(160, 175, 130, 0.28) 25%,
      rgba(80, 95, 70, 0.18) 55%,
      rgba(20, 24, 18, 0.30) 100%);
}
[data-palette="ivory"] .exrow__image[data-tint="green"]::before,
[data-palette="oyster"] .exrow__image[data-tint="green"]::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(28,24,20,0.025) 6px 7px),
    radial-gradient(ellipse 55% 70% at var(--lx) var(--ly),
      rgba(150, 165, 120, 0.40) 0%,
      rgba(150, 165, 120, 0.18) 30%,
      transparent 80%);
}
.exrow__image[data-tint="cool"]::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(255,255,255,0.04) 6px 7px),
    radial-gradient(ellipse 50% 65% at var(--lx) var(--ly),
      rgba(230, 232, 240, 0.5) 0%,
      rgba(180, 190, 210, 0.25) 25%,
      rgba(60, 70, 90, 0.18) 55%,
      rgba(14, 18, 24, 0.32) 100%);
}
[data-palette="ivory"] .exrow__image[data-tint="cool"]::before,
[data-palette="oyster"] .exrow__image[data-tint="cool"]::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(28,24,20,0.025) 6px 7px),
    radial-gradient(ellipse 55% 70% at var(--lx) var(--ly),
      rgba(120, 140, 165, 0.32) 0%,
      rgba(120, 140, 165, 0.14) 30%,
      transparent 80%);
}
.exrow__image[data-tint="amber"]::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(255,255,255,0.04) 6px 7px),
    radial-gradient(ellipse 50% 65% at var(--lx) var(--ly),
      rgba(255, 220, 160, 0.6) 0%,
      rgba(220, 160, 80, 0.32) 22%,
      rgba(140, 90, 40, 0.20) 50%,
      rgba(30, 18, 10, 0.35) 100%);
}
[data-palette="ivory"] .exrow__image[data-tint="amber"]::before,
[data-palette="oyster"] .exrow__image[data-tint="amber"]::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(28,24,20,0.025) 6px 7px),
    radial-gradient(ellipse 55% 70% at var(--lx) var(--ly),
      rgba(200, 140, 70, 0.42) 0%,
      rgba(200, 140, 70, 0.18) 30%,
      transparent 80%);
}
.exrow__image-caption {
  position: absolute;
  right: 24px;
  bottom: 14px;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  display: flex; align-items: center; gap: 8px;
  opacity: 0;
  transition: opacity 1s ease .4s;
}
.exrow.is-hover .exrow__image-caption { opacity: 1; }
.exrow__image-caption .tick { width: 5px; height: 5px; border: 1px solid var(--fg-mute); display: inline-block; }

/* ╭────────────────────╮
   │    MANIFESTO       │
   ╰────────────────────╯ */
.manifesto {
  padding: 0 40px 140px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}
.manifesto__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.manifesto__quote {
  font-size: var(--type-display);
  line-height: 1.15;
  letter-spacing: 0;
  max-width: 24ch;
  text-wrap: balance;
}
.manifesto__quote::first-letter { color: var(--champagne); }
.manifesto__meta { color: var(--fg-mute); font-size: var(--type-caption); letter-spacing: 0.08em; }

/* ╭────────────────────╮
   │   ARCHIVE PAGE     │
   ╰────────────────────╯ */
.archive { padding-top: 100px; }
.archive__head {
  padding-top: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--rule);
}
.archive__crumb {
  display: flex; gap: 14px; margin-bottom: 36px;
}
.archive__title {
  font-size: var(--type-hero);
  line-height: 1;
  letter-spacing: 0;
  max-width: 22ch;
  margin-bottom: 48px;
  text-wrap: balance;
}
.archive__title em { color: var(--champagne); }
.archive__meta {
  display: flex; gap: 60px;
}
.archive__meta-item {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 16px;
}
.archive__meta-item .label { font-size: var(--type-caption); }

.archive__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.filter {
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 9px 16px 9px 16px;
  color: var(--fg-mute);
  font-size: var(--type-label);
  letter-spacing: var(--track-en);
  text-transform: uppercase;
  cursor: default;
  display: inline-flex; align-items: baseline; gap: 7px;
  transition: all .3s ease;
}
.filter:hover { color: var(--fg); border-color: var(--fg-mute); }
.filter.is-active {
  background: var(--champagne);
  color: var(--bg);
  border-color: var(--champagne);
  font-weight: 600;
}
[data-palette="ivory"] .filter.is-active,
[data-palette="oyster"] .filter.is-active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
[dir="rtl"] .filter { text-transform: none; }
.filter__count {
  font-size: var(--type-caption);
  opacity: 0.6;
}

.archive__body {
  padding-top: 40px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 60px;
}
.archive__list { list-style: none; }
.archive__row {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1fr 28px;
  gap: 10px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  cursor: default;
  transition: padding .35s ease, color .35s ease;
}
.archive__row--head {
  padding: 8px 0 12px;
  cursor: default;
}
.archive__row--head:hover { padding-inline-start: 0 !important; }
.archive__row:hover { padding-inline-start: 12px; background: color-mix(in srgb, var(--fg) 4%, transparent); }
.archive__num { display: none; }
.archive__row--head span:first-child { display: none; }
.archive__name {
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.1;
  letter-spacing: 0;
  transition: color .35s ease;
}
.archive__row:hover .archive__name { color: var(--champagne); }
.archive__cat, .archive__loc { color: var(--fg-soft); font-size: 14px; }
.archive__arrow { text-align: end; color: var(--fg-faint); transition: color .3s ease, transform .3s ease; }
.archive__row:hover .archive__arrow { color: var(--champagne); transform: translateX(4px); }

.archive__preview {
  position: sticky;
  top: calc(var(--header-height, 72px) + 32px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.archive__preview-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  /* Cap height so name + note always remain visible within the sticky viewport area.
     100vh - 210px: 100px sticky offset + ~110px for meta block and breathing room. */
  max-height: clamp(300px, calc(100vh - 210px), 62vh);
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  overflow: hidden;
}
/* Architectural fallback when no projects are in the list (edge case) */
.archive__preview-fallback {
  position: absolute; inset: 0;
  background: var(--bg-soft);
}

.archive__preview-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: preview-meta-in .4s ease both;
}
@keyframes preview-meta-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.archive__preview-name {
  font-size: var(--type-title);
  letter-spacing: 0;
  line-height: 1.1;
}
.archive__preview-note {
  font-size: 16px;
  color: var(--fg-soft);
  line-height: 1.55;
}

/* ╭────────────────────╮
   │   DETAIL PAGE      │
   ╰────────────────────╯ */
.detail { padding-top: 100px; }
.detail__crumbs {
  padding-top: 6px;
  display: flex; gap: 5px;
  font-size: 15px;
  color: var(--fg-mute);
}

[dir="rtl"] .detail__crumbs {
  font-size: 20px;
}

.detail__crumbs a:hover { color: var(--champagne); }

.detail__head {
  padding: 22px 40px 26px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
  border-bottom: 1px solid var(--rule);
}
/* No credits → no specs column; the title block spans the full width */
.detail__head--solo { grid-template-columns: 1fr; }
.detail__num { display: none; color: var(--fg-faint); margin-bottom: 8px; font-size: var(--type-caption); }
.detail__title {
  font-size: var(--type-hero);
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 12px;
  text-wrap: balance;
}
.detail__sub {
  color: var(--fg-soft);
  font-family: var(--sans);
  font-size: var(--type-label);
  letter-spacing: 0.03em;
}

.detail__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  font-size: var(--type-label);
  font-family: var(--sans);
  padding-top: 4px;
}
.detail__specs > div { display: flex; flex-direction: column; gap: 3px; }
.detail__specs dt { font-size: var(--type-caption); }
.detail__specs dd { color: var(--fg); font-size: 16px; }

/* Optional hero video — Vimeo embed above the hero photo; responsive 16:9, direction-agnostic */
.detail__hero-video {
  position: relative;
  margin: 0 40px 20px;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.detail__hero-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Mobile: full-bleed to match the edge-to-edge hero photo below (keep 16:9) */
@media (max-width: 900px) { .detail__hero-video { margin: 0 0 16px; border: 0; } }

.detail__hero {
  position: relative;
  height: 60vh;
  margin: 0 40px;
  background: var(--bg-soft);
  overflow: hidden;
}

.detail__body {
  padding: 100px 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
}
.detail__intro { display: flex; flex-direction: column; gap: 24px; }
.detail__lede {
  font-size: var(--type-title);
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}
.detail__copy { display: flex; flex-direction: column; gap: 18px; color: var(--fg-soft); font-size: 16px; line-height: 1.7; max-width: 56ch; }

.detail__gallery {
  padding-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.detail__plate { position: relative; }
/* Detail photos are clean - no cinematic caption/code overlays (hero "PRJ-XXX" + "HERO · …"
   and gallery "F.0X" + image-alt captions). Hidden here so the baked pages are clean without
   a regen; detail.jsx + the generator no longer emit them, so a regen drops the markup too. */
.detail__hero .plate__caption,
.detail__hero .plate__corner,
.detail__gallery .plate__caption,
.detail__gallery .plate__corner { display: none; }

.detail__notes {
  padding: 20px 40px 40px;
  border-top: 1px solid var(--rule);
}
.detail__notes-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 60px;
  margin-top: 28px;
}
.detail__notes-list li {
  display: grid;
  grid-template-columns: 1fr;   /* numbers removed - no 40px index column */
  gap: 16px;
  font-size: var(--type-body);
  line-height: 1.65;
  color: var(--fg-soft);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.detail__notes-list .mono { font-size: var(--type-caption); color: var(--fg-faint); padding-top: 4px; }
.detail__notes-list b { font-family: var(--serif); font-size: var(--type-subtitle); color: var(--fg); margin-inline-end: 6px; font-weight: 400; }

/* ╭────────────────────╮
   │     RESPONSIVE     │
   ╰────────────────────╯ */
@media (max-width: 900px) {
  /* styles.css owns all mobile header rules */
  .hero__chrome { display: none; }
  .filter { min-height: 44px; }   /* a11y: >=44px touch target on mobile */
  .hero__scroll { display: none; }
  .container, .fields, .selected, .manifesto, .archive__head, .archive__filters, .archive__body, .detail__head, .detail__body, .detail__notes { padding-left: 0px; padding-right: 0px; }
  .fields__head, .archive__body, .detail__head, .detail__body, .detail__notes-list, .manifesto, .expertise__head { grid-template-columns: 1fr; gap: 24px; }
  /* Footer mobile: brand spans the top, contacts | navigation share the row below */
  .footer { grid-template-columns: 1fr 1fr; padding: 56px 24px 40px; gap: 28px 40px; }
  .footer__brand { grid-column: 1 / -1; align-items: center; text-align: center; }
  /* Navigation column aligns to its outer edge (left in RTL) so the two columns hug the sides */
  .footer__col:not(.footer__brand):not(.footer__contacts) { text-align: end; }
  .expertise__head .label { margin-bottom: 0; }
  .expertise__lede { margin-inline-start: 0; }
  .exrow { grid-template-columns: 30px 1fr 50px; gap: 18px; padding: 24px 0; }
  .proj-row { grid-template-columns: 50px 1fr 60px; gap: 16px; }
  .proj-row__cat, .proj-row__loc { display: none; }
  .archive__row { grid-template-columns: 1fr 28px; }
  .archive__row .archive__cat, .archive__row .archive__loc { display: none; }
  .archive__row--head { display: none; }
  .archive__preview { display: none; }
  .detail__hero { height: 50vh; margin: 0 0px; }
  .detail__gallery { grid-template-columns: 1fr; }
  .detail__plate { grid-column: span 1 !important; }

  /* Mobile header is 58px - reduce archive padding-top to match */
  .archive { padding-top: 60px; }

  /* Archive filters: horizontal swipe strip */
  .archive__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    padding-top: 18px;
    padding-bottom: 18px;
    /* trailing (inline-end) fade + peek cues that the strip scrolls; flipped for RTL below */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  }
  .archive__filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
  [dir="rtl"] .archive__filters {
    -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);
            mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);
  }
}

/* SEO/static-project links */
.archive__row{position:relative;}
.archive__row-hit{position:absolute;inset:0;z-index:2;color:inherit;text-decoration:none;}
.archive__row > span{position:relative;z-index:1;pointer-events:none;}
/* Detail pages — static generated pages (body.static-project) AND the SPA detail
   route (body has a .detail page). Pin the header as an opaque bar so it stays put
   and legible over scrolling content instead of floating transparently. The
   .detail root already carries padding-top:100px, which clears the fixed header
   (86px desktop / 58px mobile) so content doesn't jump under it. */
.static-project .header,
body:has(.detail) .header{
  position:fixed;top:0;left:0;right:0;z-index:50;
  background:var(--bg);
  border-bottom:1px solid var(--rule);
}
/* Solid bar doesn't need the hero-legibility gradient overlay. */
.static-project .header::before,
body:has(.detail) .header::before{content:none;}
.static-project .footer a{color:inherit;}


/* Home polish - compact Fields/Expertise */
.exrow__arrow{font-size:15px;}
@media (max-width: 900px){
  .expertise{padding-top:48px;}
  .expertise__head{grid-template-columns:1fr;gap:18px;padding-bottom:28px;}
  .expertise__list{grid-template-columns:1fr;gap:0;border-top:1px solid var(--rule);}
  .exrow{grid-template-columns:30px 1fr 42px;gap:16px;padding:22px 0;}
}

/* Final home refinements - unified section hierarchy */
.hero__cta{
  display:none !important;
}

.section-head{
  display:grid;
  grid-template-columns:minmax(220px,.55fr) minmax(320px,1fr) minmax(260px,.85fr);
  gap:48px;
  align-items:end;
  padding-bottom:28px;
  margin-bottom:0;
  border-bottom:1px solid var(--rule);
}
.section-kicker{
  font-size:12.5px;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-weight:600;
  color:var(--fg-soft);
}
.section-kicker::before{
  content:"";
  display:inline-block;
  width:36px;
  height:1px;
  background:var(--champagne);
  margin-right:12px;
  vertical-align:middle;
}
.section-title{
  font-size:var(--type-display);
  line-height:1;
  letter-spacing:-.018em;
  text-wrap:balance;
}
.section-lede{
  max-width:48ch;
  margin-inline-start:auto;
  color:var(--fg-soft);
  font-size:var(--type-small);
  line-height:1.65;
}

.expertise{
  padding-top:34px;
  padding-bottom:108px;
}
.expertise__head{
  border-bottom:1px solid var(--rule);
  padding-bottom:28px;
}
.expertise__head .label{
  display:none;
}
/* expertise__title and __lede set in original component definition */
.expertise__list{
  margin-top:0;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 64px;
  border-top:0;
}
.exrow{
  grid-template-columns:30px 1fr 38px;
  gap:16px;
  padding:20px 0;
}
/* exrow sizes set in original component definition */

@media (max-width:900px){
  .section-head{grid-template-columns:1fr;gap:14px;padding-bottom:20px;}
  .section-title{font-size:clamp(34px,10vw,48px);}
  .section-lede{margin-inline-start:0;max-width:48ch;}
  .expertise{padding-top:30px;padding-bottom:72px;}
  .expertise__head{grid-template-columns:1fr;gap:14px;padding-bottom:20px;}
  .expertise__lede{margin-inline-start:0;max-width:48ch;}
  .expertise__list{grid-template-columns:1fr;gap:0;margin-top:0;}
  .exrow{padding:20px 0;}
}



.expertise{
  padding-top:28px;
  padding-bottom:104px;
}
.expertise__head{display:none;}
.expertise__intro{
  display:block;
  padding:24px 0 18px;
  border-top:1px solid var(--rule);
  border-bottom:0;
}
.expertise__kicker{
  margin:0;
  font-size:12.5px;
  line-height:1;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--fg-soft);
  font-weight:600;
}
.expertise__kicker::before{
  content:"";
  display:inline-block;
  width:36px;
  height:1px;
  background:var(--champagne);
  margin-right:14px;
  vertical-align:middle;
}
.expertise__summary{
  margin:28px 0 0;
  max-width:66ch;
  color:var(--fg);
  font-size:var(--type-subtitle);
  line-height:1.6;
  text-wrap:pretty;
}
.expertise__list{
  margin-top:0;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 64px;
  border-top:0;
}
.exrow{
  grid-template-columns:28px 1fr 34px;
  gap:14px;
  padding:19px 0;
}
/* exrow__name/tags/num inherit from the canonical definitions above */

@media (max-width:900px){
  .expertise{padding-top:22px;padding-bottom:72px;}
  .expertise__intro{
    grid-template-columns:1fr;
    gap:14px;
    padding:22px 0 20px;
  }
  .expertise__summary{max-width:46ch;}
  .expertise__list{grid-template-columns:1fr;gap:0;}
  .exrow{padding:18px 0;}
  .exrow__name{font-size:clamp(20px,6vw,30px);}
}


.expertise{
  padding-top:48px;
}
.expertise__intro{
  padding:40px 0 0;
}
.exrow{
  min-height:74px;
}

@media (max-width:900px){
  .hero{
    min-height:92vh;
    padding-top:96px;
    padding-bottom:56px;
    padding-left:20px;
    padding-right:20px;
    overflow-x:hidden;
  }
  .hero__content{
    max-width:100%;
  }
  .hero__title{
    /* Smaller scale + word-breaking so long words like "Architectural"
       can't overflow narrow viewports in either language. */
    font-size:clamp(32px,8.5vw,72px);
    overflow-wrap:anywhere;
  }
  .hero__body{
    max-width:40ch;
    line-height:1.66;
  }
  .expertise{
    padding-top:18px;
    padding-bottom:64px;
  }
  .expertise__intro{
    padding:16px 0 14px;
  }
  .expertise__summary{
    line-height:1.6;
  }
  .exrow{
    min-height:auto;
    padding:17px 0;
  }
}

@media (max-width:700px){
  .footer{
    grid-template-columns:1fr 1fr;
    padding:48px 20px 32px;
    gap:20px 28px;
  }
  .footer__brand .serif{
    font-size:30px;
  }
  .footer__base{
    margin-top:12px;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:8px;
  }
}

/* Hover stability + cinematic effect - keep the motion, avoid layout jump */


@media (max-width:900px){
  [dir="rtl"] .hero__content { padding-right: 0; }
}

.exrow__tags{
  line-height:1.45;
  letter-spacing:.02em;
}


/* Project archive row alignment - equal minimum height, centered cells, stable hover */
.archive__row{
  align-items:center;
  min-height:100px;
  padding:24px 0;
  transition:color .35s ease, background-color .35s ease;
}
.archive__row > span{
  align-self:center;
}
.archive__row:hover{
  padding-left:0;
}
.archive__row:hover .archive__name{
  color:var(--champagne);
  transform:translateX(6px);
}
.archive__name{
  transition:color .35s ease, transform .35s ease;
}
.archive__cat,.archive__loc{
  line-height:1.4;
}
@media(max-width:900px){
  .archive__row{
    min-height:96px;
    padding:18px 0;
    align-items:center;
  }
  .archive__row:hover .archive__name{
    transform:none;
  }
}

/* ─────────────────────────────────────────────
   Stable hover effect for project selections
   Restores the cinematic text hover without layout jumps.
───────────────────────────────────────────── */
.proj-row,
.archive__row{
  transition:opacity .28s ease, background-color .28s ease;
}

.proj-row:hover,
.archive__row:hover{
  padding-left:0 !important;
}

.proj-row__name,
.archive__name{
  display:inline-block;
  transform-origin:left center;
  transition:color .32s ease, transform .32s ease, text-shadow .32s ease;
  will-change:transform;
}

.proj-row:hover .proj-row__name,
.archive__row:hover .archive__name{
  color:var(--champagne);
  transform:translateX(4px);
  text-shadow:0 0 22px color-mix(in srgb, var(--champagne) 18%, transparent);
}

.proj-row:hover .proj-row__arrow,
.archive__row:hover .archive__arrow{
  color:var(--champagne);
  transform:translateX(4px);
}

@media(max-width:700px){
  .proj-row:hover .proj-row__name,
  .archive__row:hover .archive__name{
    transform:translateX(2px);
  }
}

/* ─────────────────────────────────────────────
   Typography authority - single canonical source.
   All component font-sizes reference the scale in styles.css :root.
   No !important. Original definitions (above) use variables;
   this block handles shared groups and mobile rhythm.
───────────────────────────────────────────── */

/* Quiet UI chrome - caption level */
.filter__count,
.field__image-caption,
.exrow__image-caption,
.section-kicker,
.fields__bar-title,
.expertise__kicker { font-size: var(--type-caption); }

/* Section kickers need uppercase tracking */
.section-kicker,
.fields__bar-title,
.expertise__kicker {
  font-family: var(--sans);
  letter-spacing: var(--track-en);
  text-transform: uppercase;
}
[dir="rtl"] .section-kicker,
[dir="rtl"] .fields__bar-title,
[dir="rtl"] .expertise__kicker { text-transform: none; letter-spacing: 0; }

/* Notes block - b is the big label, li is the body */
.detail__notes-list li { line-height: 1.7; align-items: center; }
.detail__notes-list b  { font-size: var(--type-subtitle); line-height: 1.2; margin-inline-end: 8px; font-weight: 400; }
.detail__notes-list .mono { display: none; }   /* item numbering removed (01/02/03) */

/* designNotes - Hebrew: larger "§" section label; notes hug the right (start) edge */
[dir="rtl"] .detail__notes .label { font-size: calc(var(--type-label) * 1.35); }
[dir="rtl"] .detail__notes-list li { font-size: calc(var(--type-body)); text-align: start; }

/* Descriptive body text - consistent across sections */
.section-lede,
.expertise__lede { font-size: 19px; }

/* proj-row metadata - label level (archive__cat/loc set in component definition) */
.proj-row__cat, .proj-row__loc { font-size: var(--type-label); }

@media (max-width: 900px) {
  .detail__copy,
  .detail__notes-list li { font-size: var(--type-body); line-height: 1.70; }
  .detail__notes-list b { font-size: var(--type-body); }
}

/* Hero real light-on effect */
.hero__light-scene{
  position:absolute;
  inset:0;
  overflow:hidden;
  z-index:0;
  background:#030405;
}

.hero__light-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  pointer-events:none;
  user-select:none;
  transform:scale(1.01);
}

/* OFF image is visible first */
.hero__light-img--off{
  opacity:1;
  filter:saturate(.86) contrast(1.04) brightness(.82);
}

/* ON image fades in - no scale, stays sharp */
.hero__light-img--on{
  opacity:0;
  filter:saturate(.96) contrast(1.02) brightness(.98);
}

/* When hero receives .is-on */
.hero.is-on .hero__light-img--on{
  opacity:1;
  transition: opacity 2.2s cubic-bezier(.22,.61,.36,1) .3s;
}

/* Soft light bloom when lights turn on */
.hero__light-glow{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
  background:
    radial-gradient(
      circle at 48% 48%,
      rgba(255,235,195,.28) 0%,
      rgba(255,224,175,.16) 20%,
      rgba(255,214,155,.07) 42%,
      transparent 70%
    );
  mix-blend-mode:screen;
  transform:scale(.85);
  filter:blur(10px);
}

.hero.is-on .hero__light-glow{
  opacity:1;
  transform:scale(1.08);
  transition:
    opacity 2.4s ease .5s,
    transform 2.8s cubic-bezier(.22,.61,.36,1) .5s;
}

/* Left-to-right warm gradient - text side clean, right side opens to photo */
.hero__light-vignette{
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(
    to right,
    rgba(18, 12, 6, 0.97) 0%,
    rgba(18, 12, 6, 0.93) 16%,
    rgba(18, 12, 6, 0.74) 34%,
    rgba(18, 12, 6, 0.38) 54%,
    rgba(18, 12, 6, 0.09) 70%,
    rgba(18, 12, 6, 0) 82%
  );
}

[data-palette="ivory"] .hero__light-vignette,
[data-palette="oyster"] .hero__light-vignette{
  background: radial-gradient(
    ellipse 100% 130% at 0% 100%,
    var(--bg) 0%,
    color-mix(in srgb, var(--bg) 96%, transparent) 22%,
    color-mix(in srgb, var(--bg) 78%, transparent) 42%,
    color-mix(in srgb, var(--bg) 42%, transparent) 60%,
    color-mix(in srgb, var(--bg) 12%, transparent) 74%,
    transparent 86%
  );
}

/* Light-on intro: starts dark, fades to clear over ~2s */
.hero__light-scene::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:10;
  background:rgba(4, 3, 2, 0.52);
  opacity:1;
  pointer-events:none;
  transition: opacity 2s cubic-bezier(.22,.61,.36,1) 0.15s;
}
.hero.is-on .hero__light-scene::after{
  opacity:0;
}

/* Mobile crop */
@media(max-width:900px){
  .hero__light-img{
    object-position:50% center;
  }

  .hero__light-vignette{
    background:
      linear-gradient(
        90deg,
        rgba(0,0,0,.90) 0%,
        rgba(0,0,0,.68) 48%,
        rgba(0,0,0,.40) 100%
      ),
      radial-gradient(
        ellipse 120% 90% at 50% 50%,
        transparent 42%,
        rgba(0,0,0,.55) 100%
      );
  }

  [data-palette="ivory"] .hero__light-vignette,
  [data-palette="oyster"] .hero__light-vignette{
    background:
      linear-gradient(
        90deg,
        rgba(243,236,224,.92) 0%,
        rgba(243,236,224,.72) 52%,
        rgba(243,236,224,.42) 100%
      ),
      radial-gradient(
        ellipse 120% 90% at 50% 50%,
        transparent 45%,
        rgba(243,236,224,.42) 100%
      );
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce){
  .hero__light-img--on,
  .hero.is-on .hero__light-img--on,
  .hero__light-glow,
  .hero.is-on .hero__light-glow,
  .hero__light-sweep,
  .hero.is-on .hero__light-sweep{
    transition:none;
  }

  .hero__light-img--on{
    opacity:1;
    transform:none;
  }

  /* Show hero copy immediately instead of the delayed fade-in reveal. */
  .hero__line,
  .hero.is-on .hero__line,
  .hero__body,
  .hero.is-on .hero__body,
  .hero__eyebrow,
  .hero.is-on .hero__eyebrow{
    opacity:1;
    transform:none;
    transition:none;
  }
}


/* ─ Layout rhythm - category and service row spacing ─ */

.exrow {
  padding-top: 24px;
  padding-bottom: 24px;
  min-height: auto;
}
@media (min-width: 901px) {
  .exrow {
    min-height: 70px;
    align-items: center;
  }
}

.expertise { padding-top: 16px; padding-bottom: 88px; }

.expertise__intro { padding: 22px 0 18px; }

/* ─ Mobile rhythm ─ */
@media (max-width: 900px) {
  .hero__content { padding-left: 0; }
  .hero__body  { max-width: 40ch; }
  .exrow       { padding-top: 20px; padding-bottom: 20px; min-height: auto; }
  .expertise   { padding-top: 14px; padding-bottom: 64px; }
}

@media (max-width: 700px) {
  .hero__body  { max-width: 36ch; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE PROJECT CARDS
   Replaces the desktop table + preview system on small screens.
   Image-first editorial cards - full-bleed photo, gradient
   overlay for the title, metadata row below.
═══════════════════════════════════════════════════════════ */

/* Hidden on desktop - cards are a mobile-only layout */
.archive__cards {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 900px) {
  /* Hide the desktop table; show cards instead */
  .archive__body { display: none !important; }

  .archive__cards {
    display: flex;
    flex-direction: column;
  }

  .archive__card {
    border-bottom: 1px solid var(--rule);
  }

  .archive__card-link {
    display: block;
    color: inherit;
  }

  /* Image area - 4:3 landscape, full viewport width */
  .archive__card-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-soft);
  }

  .archive__card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .archive__card-link:active .archive__card-photo {
    transform: scale(1.025);
  }

  /* Dark gradient - hardcoded so text is always readable regardless of palette */
  .archive__card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(5, 4, 3, 0) 38%,
      rgba(5, 4, 3, 0.50) 62%,
      rgba(5, 4, 3, 0.82) 100%
    );
    pointer-events: none;
  }

  /* Title overlay - sits over the bottom of the image */
  .archive__card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 20px 16px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .archive__card-num {
    font-size: 10px;
    color: rgba(243, 236, 224, 0.46);
    letter-spacing: 0.1em;
  }

  /* Title always uses light text - it sits on the dark gradient */
  .archive__card-name {
    font-size: clamp(19px, 5.6vw, 27px);
    line-height: 1.1;
    letter-spacing: 0;
    color: #f3ece0;
    margin: 0;
    font-weight: 700;
  }

  /* Meta row below the image */
  .archive__card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    font-family: var(--sans);
    font-size: 12px;
    color: var(--fg-mute);
  }

  .archive__card-sep {
    color: var(--fg-faint);
  }

  .archive__card-arrow {
    margin-left: auto;
    color: var(--fg-faint);
  }
}

/* ─── RTL hero gradient - mirror the vignette so the solid side covers the right (text) side ─── */
[dir="rtl"] .hero__light-vignette {
  background: linear-gradient(
    to left,
    rgba(18, 12, 6, 0.97)  0%,
    rgba(18, 12, 6, 0.93) 16%,
    rgba(18, 12, 6, 0.74) 34%,
    rgba(18, 12, 6, 0.38) 54%,
    rgba(18, 12, 6, 0.09) 70%,
    rgba(18, 12, 6, 0)    82%
  );
}
[dir="rtl"] [data-palette="ivory"] .hero__light-vignette,
[dir="rtl"] [data-palette="oyster"] .hero__light-vignette {
  background: radial-gradient(
    ellipse 100% 130% at 100% 100%,
    color-mix(in srgb, var(--bg) 100%, transparent)  0%,
    color-mix(in srgb, var(--bg)  96%, transparent) 22%,
    color-mix(in srgb, var(--bg)  78%, transparent) 42%,
    color-mix(in srgb, var(--bg)  42%, transparent) 60%,
    color-mix(in srgb, var(--bg)  12%, transparent) 74%,
    transparent 86%
  );
}

@media (max-width: 900px) {
  [dir="rtl"] .hero__light-vignette {
    background:
      linear-gradient(
        to left,
        rgba(0,0,0,.88) 0%,
        rgba(0,0,0,.50) 42%,
        rgba(0,0,0,.16) 100%
      ),
      radial-gradient(
        ellipse 120% 90% at 50% 50%,
        transparent 40%,
        rgba(0,0,0,.44) 100%
      );
  }
  [dir="rtl"] [data-palette="ivory"] .hero__light-vignette,
  [dir="rtl"] [data-palette="oyster"] .hero__light-vignette {
    background:
      linear-gradient(
        to left,
        rgba(243,236,224,.92)  0%,
        rgba(243,236,224,.72) 52%,
        rgba(243,236,224,.42) 100%
      ),
      radial-gradient(
        ellipse 120% 90% at 50% 50%,
        transparent 45%,
        rgba(243,236,224,.42) 100%
      );
  }
}


/* ─── Hebrew letter-spacing resets - override hover animations ───
   Hover rules use letter-spacing: inherit !important with higher specificity;
   these enforce 0 via the [dir="rtl"] scope so Hebrew text is never tracked. */
[dir="rtl"] .archive__name,
[dir="rtl"] .proj-row__name { letter-spacing: 0; }
[dir="rtl"] .archive__row--head .label { letter-spacing: 0; text-transform: none; }

/* ─── Hebrew title scale - local overrides for hero and project titles ─── */
[dir="rtl"] .hero__title   { font-size: clamp(38px, 9vw, 75px); }
[dir="rtl"] .detail__title { font-size: clamp(38px, 4.1vw, 50px); }
[dir="rtl"] .archive__name { font-size: clamp(16px, 1.5vw, 23px); }
[dir="rtl"] .hero__body    { font-size: 20px; }
/* Hebrew hero intro on phones: bold for legibility over the hero photo
   (Assistant loads up to weight 600 — its boldest available) */
@media (max-width: 700px) {
  [dir="rtl"] .hero__body { font-size: 18px; font-weight: 600; }
}

/* ─── Hebrew UI chrome - 25% larger than EN label/caption base ─── */
[dir="rtl"] .filter                { font-size: 16px; }
[dir="rtl"] .filter__count         { font-size: 14px; }
[dir="rtl"] .archive__cat,
[dir="rtl"] .archive__loc          { font-size: 17px; }
[dir="rtl"] .archive__preview-note { font-size: 20px; }
[dir="rtl"] .archive__row--head .label { font-size: 16px; }

/* P7: isolate Latin/neutral runs inside RTL so they align to start and do not reorder */
.detail__num, .detail__specs dd, .detail__sub{ unicode-bidi: isolate; }
[dir="rtl"] .detail__num,
[dir="rtl"] .detail__specs dt { font-size: 17px; }
[dir="rtl"] .detail__specs dd ,
[dir="rtl"] .detail__sub{ font-size: calc(var(--type-label) * 1.4); text-align: start; }

/* Hebrew detail page on phones — the RTL *1.2/*1.4 type is too large in the narrow column */
@media (max-width: 700px) {
  [dir="rtl"] .detail__notes-list li { font-size: 17px; line-height: 1.65; }
  [dir="rtl"] .detail__notes-list b  { font-size: 17px; }
  [dir="rtl"] .detail__notes .label  { font-size: 14px; }
  [dir="rtl"] .detail__specs dt      { font-size: 13px; }
  [dir="rtl"] .detail__specs dd,
  [dir="rtl"] .detail__sub           { font-size: 15px; }
}

/* ── Studio statement - deliberate two-part layout (home only) ──────────────
   Kicker + hairline in a narrow column, the statement paragraph in a wide one,
   so the full width is used instead of jamming everything onto one side.
   Mirrors automatically in RTL/LTR because the grid follows the inline axis. */
.expertise__intro {
  
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2.2fr);
  gap: 56px;
  align-items: start;
  padding: 44px 0 0;
  border-top: 1px solid var(--rule);
  border-bottom: 0;
}
.expertise__kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: var(--track-en);
  text-transform: uppercase;
  color: var(--fg-soft);
}
[dir="rtl"] .expertise__kicker {
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}
.expertise__kicker::before { content: none; }      /* drop the old inline overlapping rule */
.expertise__kicker::after {                          /* clean hairline beneath the label */
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin-top: 18px;
  background: var(--champagne);
}
.expertise__summary {
  margin: 0;
  max-width: 53rem;   /* font-independent so it fills the column in both HE and EN */
  color: var(--fg);
  font-size: var(--type-subtitle);
  line-height: 1.6;
  text-wrap: pretty;
}
@media (max-width: 900px) {
  .expertise__intro { grid-template-columns: 1fr; gap: 16px; padding-top: 30px; }
  .expertise__kicker::after { margin-top: 12px; }
  .expertise__summary { max-width: 52ch; }
}

/* Text inset from page edge (image still bleeds to the edge) */
.field__name,
.field__desc {
  padding-inline-start: 40px;
}

@media (max-width: 700px) {
  .field__name,
  .field__desc {
    padding-inline-start: 20px;
  }
}

@media (max-width: 900px) {
  .field__name,
  .field__desc {
    padding-inline-start: 20px;
  }
}


/* Studio statement - inset from page edges */
.expertise__intro {
  padding-inline-start: 40px;
  padding-inline-end: 40px;
}
@media (max-width: 900px) {
  .expertise__intro {
    padding-inline-start: 20px;
    padding-inline-end: 20px;
  }
}


[dir="rtl"] .expertise__summary {
  font-size: clamp(18px, 1.9vw, 26px);
}


.detail__notes-list b {
  font-size: inherit;      
  font-weight: 700;        
}


@media (max-width: 900px) {
  .detail__head,
  .detail__body,
  .detail__notes,
  .detail__crumbs{
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 900px) {
  .detail__crumbs {
    font-size: 12px;
    line-height: 1.5;
    flex-wrap: wrap;
    gap: 4px 6px;
  }
  [dir="rtl"] .detail__crumbs {
    font-size: 13px;
  }
}

/* Home page, light theme: nav + utilities sit over the dark side of the hero
   photo → make them light. Logo stays dark (it's on the white wash). */
[data-palette="ivory"] body:has(.hero) .header__nav a,
[data-palette="oyster"] body:has(.hero) .header__nav a {
  color: #f3ece0;
}
[data-palette="ivory"] body:has(.hero) .header__nav a:hover,
[data-palette="oyster"] body:has(.hero) .header__nav a:hover {
  color: var(--champagne);
}
[data-palette="ivory"] body:has(.hero) .theme-toggle__dot,
[data-palette="oyster"] body:has(.hero) .theme-toggle__dot {
  background-color: #f3ece0;
  filter: none;
}
[data-palette="ivory"] body:has(.hero) .lang-switch__opt.is-active,
[data-palette="oyster"] body:has(.hero) .lang-switch__opt.is-active {
  color: #f3ece0;
}
[data-palette="ivory"] body:has(.hero) .lang-switch__opt:not(.is-active),
[data-palette="oyster"] body:has(.hero) .lang-switch__opt:not(.is-active) {
  color: rgba(243, 236, 224, 0.55);
}
/* Option B: on the home hero (light theme), the logo corner is only half-washed —
   show the white logo there instead of the dark one. Footer logo unaffected. */
[data-palette="ivory"] body:has(.hero) .header__logo .logo-dark,
[data-palette="oyster"] body:has(.hero) .header__logo .logo-dark {
  display: block;
}
[data-palette="ivory"] body:has(.hero) .header__logo .logo-light,
[data-palette="oyster"] body:has(.hero) .header__logo .logo-light {
  display: none;
}
/* The over-hero light-color rules above leak into the mobile menu panel, which is
   a solid var(--bg) surface — re-assert panel-correct colors there (mirrors the
   leak selectors + .mobile-menu__controls for strictly higher specificity). */
[data-palette="ivory"] body:has(.hero) .mobile-menu__controls .lang-switch__opt:not(.is-active),
[data-palette="oyster"] body:has(.hero) .mobile-menu__controls .lang-switch__opt:not(.is-active) {
  color: var(--fg-mute);
}
[data-palette="ivory"] body:has(.hero) .mobile-menu__controls .lang-switch__opt.is-active,
[data-palette="oyster"] body:has(.hero) .mobile-menu__controls .lang-switch__opt.is-active {
  color: var(--fg);
}
[data-palette="ivory"] body:has(.hero) .mobile-menu__controls .theme-toggle__dot,
[data-palette="oyster"] body:has(.hero) .mobile-menu__controls .theme-toggle__dot {
  background-color: var(--fg);
  filter: none;
}
/* Mobile home, light theme: the logo corner sits on the light band of the mobile
   hero (measured luminance ~0.8) — flip back to the black logo there. Same
   specificity as the white-logo rule above; later in the file, so it wins. */
@media (max-width: 900px) {
  [data-palette="ivory"] body:has(.hero) .header__logo .logo-dark,
  [data-palette="oyster"] body:has(.hero) .header__logo .logo-dark { display: none; }
  [data-palette="ivory"] body:has(.hero) .header__logo .logo-light,
  [data-palette="oyster"] body:has(.hero) .header__logo .logo-light { display: block; }
}

/* ── Related projects (static project pages) — internal-linking grid ─────── */
.detail__related { margin-top: 0px; }
.related__grid {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.related__card { display: block; text-decoration: none; color: var(--fg); }
.related__img {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.related__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.related__card:hover .related__img img { transform: scale(1.03); }
.related__name { display: block; margin-top: 10px; font-size: 16px; line-height: 1.35; }
.related__meta { display: block; margin-top: 4px; color: var(--fg-mute); }
@media (max-width: 900px) {
  .related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* Footer grows to 4 columns for the "Selected projects" links */
@media (min-width: 761px) {
  .footer { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Mobile: hide the column visually but keep the links in the DOM for crawlers */
@media (max-width: 768px) {
  .footer__selected { display: none; }
}
