/* =========================================================
   סטודיו קו, Swiss / International Typographic Style
   מונוכרום, גריד מודולרי, טיפוגרפיה גאומטרית צפופה
   ========================================================= */

:root {
  --bg: #fbfbf9;
  --fg: #111111;
  --line: rgba(17, 17, 17, 0.14);
  --line-strong: rgba(17, 17, 17, 0.34);
  --accent: #6b6b66; /* אפור בטון בודד */
  --muted: #55554f;
  --max: 1400px;
  --gap: clamp(1rem, 2.4vw, 2.5rem);
  --font-sans: "Heebo", "Assistant", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Space Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 2.5rem);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  direction: ltr;
  unicode-bidi: isolate;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 2.4em;
  height: 1px;
  background: var(--line-strong);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 3.2vw + 1.2rem, 5.4rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.7rem, 1.6vw + 1.1rem, 3rem);
  line-height: 1.12;
}

h3 { font-size: clamp(1.15rem, 0.6vw + 1rem, 1.5rem); }

p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 0.4vw + 1rem, 1.4rem); color: var(--muted); }

.hairline { border: none; border-top: 1px solid var(--line); margin: 0; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ================= Header ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  direction: ltr;
  unicode-bidi: isolate;
}
.logo span { color: var(--accent); }

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  gap: clamp(1rem, 1.6vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  text-decoration: none;
  font-size: 0.92rem;
  position: relative;
  padding-bottom: 4px;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  right: 0; left: 0; bottom: -1px;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-desktop a:hover::after { transform: scaleX(1); }

.btn.nav-cta {
  display: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  padding: 0.75em 1.4em;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  font-family: var(--font-sans);
}
.btn:hover { background: transparent; color: var(--fg); }
.btn-outline {
  background: transparent;
  color: var(--fg);
}
.btn-outline:hover { background: var(--fg); color: var(--bg); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  height: 1px;
  background: var(--fg);
  width: 100%;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile nav: MUST default to display:none via [hidden] */
.mobile-nav[hidden] { display: none; }
.mobile-nav {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--bg);
  z-index: 40;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 2rem var(--gap);
  display: flex;
  flex-direction: column;
}
.mobile-nav a {
  text-decoration: none;
  font-size: 1.5rem;
  padding: 0.75em 0;
  border-bottom: 1px solid var(--line);
  display: block;
}
.mobile-nav .mobile-cta { margin-top: 1.5rem; }

@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .btn.nav-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ================= Hero ================= */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(251,251,249,0.99) 12%, rgba(251,251,249,0.9) 42%, rgba(251,251,249,0.62) 70%, rgba(251,251,249,0.28) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 6rem 3.4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
.hero-index {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 0.5vw + 0.7rem, 1rem);
  color: var(--muted);
  display: flex;
  gap: 1.2rem;
  direction: ltr;
  justify-content: flex-end;
}
.hero h1 { max-width: 16ch; }
.hero-sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  margin-top: 1rem;
}
.hero-sub p { max-width: 42ch; margin: 0; color: var(--fg); font-weight: 500; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.7rem, 2.4vw, 2.6rem);
}
.stat { text-align: start; min-width: 0; }
.stat .num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 1.4vw + 1rem, 2.4rem);
  display: block;
  direction: ltr;
  text-align: start;
}
.stat .label {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ================= Section scaffolding ================= */

section { padding: clamp(3.5rem, 7vw, 8rem) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-bottom: clamp(2rem, 4vw, 4rem);
}
@media (min-width: 900px) {
  .section-head.split {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}
.section-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  direction: ltr;
}

/* ================= Manifesto ================= */

.manifesto { background: var(--bg); }
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
}
@media (min-width: 900px) {
  .manifesto-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--gap); }
}
.manifesto-media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #ddd;
}
.manifesto-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.manifesto-list { list-style: none; margin: 0; padding: 0; }
.manifesto-list li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.manifesto-list li:last-child { border-bottom: 1px solid var(--line); }
.manifesto-list .n {
  font-family: var(--font-mono);
  color: var(--muted);
  direction: ltr;
}
.manifesto-list h3 { margin-bottom: 0.3em; }
.manifesto-list p { color: var(--muted); margin: 0; }

/* ================= Work areas ================= */

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}
.work-card {
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .work-card {
    padding: 2.4rem clamp(1rem, 2vw, 2rem);
    border-bottom: 1px solid var(--line);
  }
  .work-card:not(:last-child) { border-left: 1px solid var(--line); }
}
.work-num {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  color: var(--line-strong);
  direction: ltr;
  display: block;
  margin-bottom: 1rem;
}
.work-card h3 { margin-bottom: 0.6em; }
.work-card p { color: var(--muted); }
.work-card .work-media {
  margin-top: 1.2rem;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.work-card .work-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

/* ================= Process ================= */

.process-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
}
@media (min-width: 900px) {
  .process-wrap { grid-template-columns: 1fr 1fr; gap: var(--gap); }
  .process-media { position: sticky; top: 100px; }
}
.process-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  align-self: start;
}
.process-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.process-steps { list-style: none; margin: 0; padding: 0; }
.process-steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
}
.process-steps li:last-child { border-bottom: 1px solid var(--line); }
.process-steps .n { font-family: var(--font-mono); color: var(--muted); direction: ltr; }
.process-steps h3 { margin-bottom: 0.25em; }
.process-steps p { color: var(--muted); margin: 0; }

/* ================= Projects ================= */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 640px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}
.project-card { text-decoration: none; color: inherit; display: block; }
.project-media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #ddd;
  position: relative;
}
.project-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform 0.6s ease, filter 0.6s ease;
}
.project-card:hover .project-media img { transform: scale(1.04); filter: grayscale(0.15) contrast(1.05); }
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  margin-top: 0.9rem;
}
.project-meta .name { font-weight: 700; }
.project-meta .info { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); direction: ltr; text-align: left; }
.project-loc { color: var(--muted); font-size: 0.88rem; margin-top: 0.2rem; }

/* ================= About ================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--gap); }
}
.about-media { aspect-ratio: 4/5; overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.about-text .role { color: var(--muted); margin-bottom: 1.4rem; }
.about-facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.about-facts dt { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.about-facts dd { margin: 0.2em 0 0; font-weight: 700; }

/* ================= Testimonials ================= */

.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
}
.testi-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .testi-card { padding: 2rem clamp(1rem, 2vw, 2rem); }
  .testi-card:not(:last-child) { border-left: 1px solid var(--line); }
}
.testi-quote { font-size: 1.05rem; margin-bottom: 1.4rem; }
.testi-name { font-weight: 700; }
.testi-role { color: var(--muted); font-size: 0.86rem; }

/* ================= FAQ ================= */

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: right;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
}
.faq-q .plus {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item[data-open="true"] .plus { transform: rotate(45deg); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.faq-a p { color: var(--muted); padding-bottom: 1.4rem; max-width: 65ch; }
.faq-item[data-open="true"] .faq-a { max-height: 20em; }

/* ================= Contact ================= */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
}
@media (min-width: 900px) {
  .contact-wrap { grid-template-columns: 0.9fr 1.1fr; gap: var(--gap); }
}
.contact-info dl { margin: 1.6rem 0; }
.contact-info dt { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-top: 1.2rem; }
.contact-info dd { margin: 0.2em 0 0; font-size: 1.05rem; }

.form-row { margin-bottom: 1.3rem; }
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.5em;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: 0.7em 0.1em;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s ease;
}
.form-row textarea { resize: vertical; min-height: 6em; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--fg); }
.form-row .err {
  display: block;
  color: var(--fg);
  font-size: 0.8rem;
  margin-top: 0.4em;
  min-height: 1.1em;
}
.form-row.invalid input,
.form-row.invalid select,
.form-row.invalid textarea { border-color: #b00020; }
.form-row.invalid .err { color: #b00020; }

.form-success {
  display: none;
  border: 1px solid var(--line-strong);
  padding: 1.4rem;
  margin-top: 1rem;
}
.form-success.show { display: block; }
.form-success[hidden] { display: none; }

/* ================= Footer ================= */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav a { text-decoration: none; display: inline-block; padding: 0.25em 0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-bottom a { text-decoration: underline; }

/* ================= Legal pages ================= */

.legal-main { padding: clamp(3rem, 6vw, 6rem) 0; }
.legal-main h1 { margin-bottom: 1rem; }
.legal-main h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.legal-main p, .legal-main li { color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 2rem; text-decoration: underline; font-size: 0.9rem; }

/* ================= Skip link ================= */
.skip-link {
  position: absolute;
  right: -999px;
  top: 0;
  background: var(--fg);
  color: var(--bg);
  padding: 0.8em 1.2em;
  z-index: 100;
}
.skip-link:focus { right: 1rem; top: 1rem; }
