:root {
  --paper: #f3f0ea;
  --paper-2: #e8e3da;
  --ink: #191918;
  --muted: #6e6a63;
  --line: rgba(25, 25, 24, .18);
  --accent: #8a4f37;
  --dark: #191b1b;
  --max: 1440px;
  --pad: clamp(22px, 5vw, 78px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Heebo", "Noto Sans Hebrew", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.skip-link { position: fixed; top: -80px; right: 20px; z-index: 1000; padding: 12px 18px; background: white; }
.skip-link:focus { top: 20px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 94px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  transition: background .35s, color .35s, height .35s, box-shadow .35s;
}
.site-header.scrolled { height: 76px; color: var(--ink); background: rgba(243,240,234,.94); backdrop-filter: blur(14px); box-shadow: 0 1px var(--line); }
.brand { display: inline-flex; align-items: baseline; gap: 14px; direction: ltr; }
.brand-name { font: 600 clamp(24px, 2.3vw, 34px)/1 "Inter", Arial, sans-serif; letter-spacing: .17em; }
.brand-sub { font-size: 11px; letter-spacing: .08em; direction: rtl; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px); font-size: 14px; }
.site-nav a { position: relative; }
.site-nav a:not(.nav-contact)::after { content: ""; position: absolute; right: 0; bottom: -7px; width: 0; height: 1px; background: currentColor; transition: width .25s; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { width: 100%; }
.nav-contact { border: 1px solid currentColor; padding: 11px 19px; }
.menu-button { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 10px; }
.menu-button span { display: block; height: 1px; background: currentColor; margin: 7px 0; }

.hero { position: relative; min-height: min(930px, 100svh); display: flex; align-items: flex-end; color: white; overflow: hidden; }
.hero-image { position: absolute; inset: 0; height: 100%; object-fit: cover; animation: hero-in 1.4s ease both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.08), rgba(0,0,0,.03) 40%, rgba(0,0,0,.56)); }
.hero-content { position: relative; z-index: 1; width: min(840px, 90%); margin: 0 var(--pad) clamp(74px, 10vh, 120px) auto; }
.eyebrow { margin: 0 0 25px; font-size: 11px; letter-spacing: .22em; direction: ltr; text-align: right; }
.hero h1 { margin: 0; font: 300 clamp(56px, 8vw, 126px)/.92 "Heebo", Arial, sans-serif; letter-spacing: -.055em; }
.hero-copy { max-width: 540px; margin: 28px 0 0; font-size: clamp(17px, 1.5vw, 23px); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 38px; }
.button { display: inline-flex; padding: 15px 24px; border: 1px solid; font-size: 14px; transition: .25s; }
.button-light { background: white; border-color: white; color: var(--ink); }
.button-light:hover { background: transparent; color: white; }
.text-link { font-size: 14px; }
.text-link span { display: inline-block; margin-right: 8px; transition: transform .25s; }
.text-link:hover span { transform: translateX(-5px); }
.hero-caption { position: absolute; z-index: 1; left: var(--pad); bottom: 35px; margin: 0; font-size: 11px; letter-spacing: .05em; }
.scroll-cue { position: absolute; z-index: 2; right: 50%; bottom: 26px; width: 24px; height: 46px; border: 1px solid rgba(255,255,255,.6); border-radius: 20px; }
.scroll-cue span { position: absolute; top: 9px; right: 10px; width: 2px; height: 7px; background: white; animation: scroll 1.8s infinite; }

.section { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 11vw, 170px) var(--pad); }
.section-kicker { margin-bottom: 48px; color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.display-heading { margin: 0; font: 300 clamp(52px, 7vw, 112px)/.98 "Heebo", Arial, sans-serif; letter-spacing: -.055em; }
.intro-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 9vw; align-items: end; }
.intro-copy { max-width: 520px; font-size: 18px; line-height: 1.9; }
.intro-copy p { margin: 0 0 20px; }

.projects-section { padding-top: 50px; }
.section-heading-row { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 60px; align-items: end; margin-bottom: 78px; }
.section-heading-row .section-kicker { margin-bottom: 24px; }
.section-heading-row > p { margin: 0 0 5px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(45px, 7vw, 110px) clamp(22px, 3.5vw, 55px); }
.project-card { cursor: pointer; outline: none; }
.project-card-large { grid-column: 1 / -1; width: 78%; }
.interiors-grid .project-card-large { margin-right: auto; }
.project-image-wrap { overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; }
.project-card-large .project-image-wrap { aspect-ratio: 16 / 8.7; }
.project-image-wrap img { height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .4s; }
.project-card:hover img, .project-card:focus-visible img { transform: scale(1.025); filter: saturate(.9); }
.project-meta { padding-top: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-top: 1px solid var(--line); }
.project-meta > div { display: flex; gap: 15px; align-items: baseline; }
.project-meta span { color: var(--muted); font-size: 10px; }
.project-meta h3 { margin: 0; font: 400 clamp(23px, 2.3vw, 36px)/1.2 "Heebo", Arial, sans-serif; letter-spacing: -.025em; }
.project-meta p { margin: 0; color: var(--muted); font-size: 12px; }

.category-break { position: relative; height: min(78vh, 850px); margin: 30px 0 clamp(100px, 11vw, 170px); overflow: hidden; color: white; }
.category-break::after { content: ""; position: absolute; inset: 0; background: rgba(15,15,14,.32); }
.category-break img { height: 100%; object-fit: cover; }
.category-break p { position: absolute; z-index: 1; left: var(--pad); bottom: 6vw; margin: 0; font: 500 clamp(70px, 12vw, 180px)/.78 "Inter", Arial, sans-serif; direction: ltr; text-align: left; letter-spacing: -.07em; }

.disclosure { padding-top: 20px; padding-bottom: 80px; display: grid; grid-template-columns: 150px 1fr; gap: 30px; border-top: 1px solid var(--line); }
.disclosure span { padding-top: 8px; color: var(--muted); font-size: 11px; }
.disclosure p { max-width: 880px; margin: 0; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.55; }

.about { display: grid; grid-template-columns: 1fr .7fr; gap: 10vw; background: var(--paper-2); max-width: none; padding-right: max(var(--pad), calc((100vw - var(--max))/2 + var(--pad))); padding-left: max(var(--pad), calc((100vw - var(--max))/2 + var(--pad))); }
.about-title-block .section-kicker { margin-bottom: 35px; }
.about-content { align-self: end; max-width: 560px; }
.about-lead { font: 300 clamp(25px, 2.6vw, 39px)/1.55 "Heebo", Arial, sans-serif; letter-spacing: -.025em; }
.about-content > p:not(.about-lead) { color: #4e4b46; font-size: 16px; line-height: 1.9; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 38px; direction: ltr; }
.skills span { padding: 9px 15px; border: 1px solid var(--line); font-size: 12px; }

.contact { padding: clamp(110px, 14vw, 210px) var(--pad); background: var(--dark); color: white; text-align: center; }
.contact .eyebrow { text-align: center; }
.contact h2 { margin: 0 0 54px; font: 300 clamp(70px, 12vw, 180px)/.88 "Heebo", Arial, sans-serif; letter-spacing: -.065em; }
.contact-links { display: flex; justify-content: center; gap: 25px 55px; flex-wrap: wrap; direction: ltr; }
.contact-links a { border-bottom: 1px solid rgba(255,255,255,.45); padding-bottom: 5px; font-size: clamp(17px, 1.5vw, 22px); }
.contact-note { margin: 45px 0 0; color: #aaa9a4; font-size: 13px; }

.site-footer { min-height: 170px; padding: 45px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--dark); color: #bbb9b3; border-top: 1px solid #363737; font-size: 11px; }
.footer-brand { color: white; }

.project-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.project-dialog::backdrop { background: rgba(0,0,0,.65); }
.dialog-close { position: fixed; z-index: 3; top: 24px; left: 28px; width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 50%; background: rgba(243,240,234,.9); cursor: pointer; font-size: 29px; line-height: 1; }
.dialog-layout { min-height: 100%; display: grid; grid-template-columns: minmax(310px, .62fr) 1.38fr; direction: rtl; }
.dialog-copy { position: sticky; top: 0; height: 100vh; padding: clamp(80px, 10vw, 150px) clamp(30px, 5vw, 75px); display: flex; flex-direction: column; justify-content: center; }
.dialog-index { color: var(--muted); font-size: 11px; letter-spacing: .14em; }
.dialog-copy h2 { margin: 18px 0; font: 300 clamp(48px, 6vw, 92px)/.98 "Heebo", Arial, sans-serif; letter-spacing: -.05em; }
.dialog-subtitle { color: var(--accent); font-size: 13px; }
.dialog-description { max-width: 510px; margin-top: 30px; color: #4e4b46; font-size: 16px; line-height: 1.9; }
.dialog-note { margin-top: auto; padding-top: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.dialog-gallery { direction: ltr; background: #ded9d0; }
.dialog-gallery figure { position: relative; margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: clamp(20px, 4vw, 65px); }
.dialog-gallery figure.drawing { background: #f7f5f1; }
.dialog-gallery figure > a { display: block; width: 100%; cursor: zoom-in; }
.dialog-gallery img { max-height: calc(100vh - 110px); object-fit: contain; }
.dialog-gallery figure > a img { margin: 0 auto; }
.dialog-gallery figcaption { position: absolute; right: clamp(20px, 4vw, 65px); bottom: 22px; padding: 7px 11px; background: rgba(25,25,24,.84); color: white; font-size: 11px; letter-spacing: .04em; }
.dialog-gallery figure.drawing figcaption::after { content: "  ↗"; direction: ltr; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes hero-in { from { transform: scale(1.035); filter: brightness(.7); } to { transform: scale(1); filter: none; } }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(17px); } }

@media (max-width: 900px) {
  .site-header { height: 76px; }
  .menu-button { display: block; color: inherit; z-index: 2; }
  .site-nav { position: fixed; inset: 0; padding: 120px var(--pad) 50px; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; align-items: flex-start; gap: 28px; font: 300 34px/1.2 "Heebo", Arial, sans-serif; transform: translateX(-100%); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
  .site-nav.open { transform: none; }
  .site-header.menu-open { color: var(--ink); }
  .nav-contact { border: 0; padding: 0; }
  .hero-content { margin-right: var(--pad); }
  .hero-shade { background: linear-gradient(0deg, rgba(0,0,0,.58), transparent 80%); }
  .scroll-cue { display: none; }
  .intro-grid, .section-heading-row, .about { grid-template-columns: 1fr; }
  .intro-grid, .about { gap: 50px; }
  .section-heading-row { gap: 28px; margin-bottom: 55px; }
  .project-card-large { width: 100%; }
  .project-meta { align-items: flex-start; }
  .project-meta p { display: none; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-copy { position: relative; height: auto; min-height: 70vh; }
  .dialog-gallery figure { min-height: auto; padding: 40px 12px 55px; }
  .dialog-gallery figcaption { right: 12px; bottom: 14px; }
}

@media (max-width: 640px) {
  .brand-sub { display: none; }
  .hero { min-height: 92svh; }
  .hero h1 { font-size: clamp(52px, 17vw, 78px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .hero-caption { display: none; }
  .section { padding-top: 95px; padding-bottom: 95px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-large { grid-column: auto; }
  .project-card .project-image-wrap, .project-card-large .project-image-wrap { aspect-ratio: 4 / 3; }
  .category-break { height: 66vh; }
  .category-break p { bottom: 11vw; }
  .disclosure { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .dialog-close { top: 14px; left: 14px; }
}

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