/* NOX Group. Colors from Brand/Graphics/logo (Black, Mass, Brown, Clay, Creamic). */

@font-face { font-family: "Gilroy"; src: url("/fonts/Gilroy-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("/fonts/Gilroy-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --black: #282827;
  --mass: #616e63;
  --brown: #827a6f;
  --clay: #ede6d4;
  --creamic: #f9f4f2;
  --ink: var(--black);
  --ink-soft: #6f6a63;
  --rule: rgba(40, 40, 39, 0.14);
  --rule-light: rgba(249, 244, 242, 0.2);
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1520px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creamic);
  color: var(--ink);
  font: 300 17px/1.6 "Gilroy", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.display { margin: 0; font-weight: 300; font-size: clamp(44px, 6.6vw, 112px); line-height: 0.98; letter-spacing: -0.035em; }
.statement { margin: 0; font-size: clamp(26px, 3vw, 44px); line-height: 1.2; letter-spacing: -0.018em; }
.lead { margin: 0; max-width: 32em; color: var(--ink-soft); font-size: clamp(17px, 1.25vw, 19px); }
.overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,40,39,0.35) 0%, rgba(40,40,39,0) 35%, rgba(40,40,39,0.5) 100%); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 160px; padding: 17px 36px; border: 1px solid currentColor; border-radius: 999px;
  font-weight: 800; font-size: 14px; letter-spacing: 0.02em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--creamic); border-color: var(--ink); }

/* ---------- loader + hero entrance (the one orchestrated moment) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--black); color: var(--creamic);
  transition: opacity 0.9s var(--ease) 0.2s, visibility 0s linear 1.1s;
}
.loader-logo { width: clamp(160px, 16vw, 240px); height: auto; clip-path: inset(0 100% 0 0); animation: draw 1.3s var(--ease) 0.2s forwards; }
.is-loaded .loader, .no-loader .loader { opacity: 0; visibility: hidden; }
.no-loader .loader { transition: none; }
@keyframes draw { to { clip-path: inset(0 0 0 0); } }
.js .page-home .hero-title, .js .page-home .hero-sub { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease) 0.5s, transform 1.2s var(--ease) 0.5s; }
@media (prefers-reduced-motion: reduce) { .loader-logo { clip-path: none; } }
.js .page-home .hero-sub { transition-delay: 0.7s; }
.is-loaded .page-home .hero-title, .is-loaded .page-home .hero-sub { opacity: 1; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--gutter);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), color 0.4s var(--ease);
}
.nav-logo img { width: 104px; height: auto; }
.nav .logo-light { display: none; }
.nav--light { color: var(--creamic); }
.nav--light .logo-light { display: block; }
.nav--light .logo-dark { display: none; }
.nav.is-scrolled { background: rgba(249, 244, 242, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink); padding-top: 14px; padding-bottom: 14px; }
.nav.is-scrolled .logo-light { display: none; }
.nav.is-scrolled .logo-dark { display: block; }
.nav-menu { display: flex; align-items: center; gap: 40px; }
.nav-menu a { font-size: 15px; }
.nav-menu a:not(.nav-cta) { opacity: 0.85; transition: opacity 0.2s; }
.nav-menu a:hover { opacity: 1; }
.nav-cta { padding: 9px 22px; border: 1px solid currentColor; border-radius: 999px; }
.nav-toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav-toggle span:not(.sr-only) { position: absolute; left: 9px; right: 9px; height: 1px; background: currentColor; transition: transform 0.3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav-menu {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: var(--black); color: var(--creamic);
    opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .nav-menu a { font-size: 28px; }
  .nav-open .nav-menu { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav-open .nav-toggle { color: var(--creamic); }
}

/* ---------- hero ---------- */
.hero, .project-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--creamic); overflow: hidden; background: var(--black); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner, .project-hero-inner { position: relative; padding-bottom: clamp(44px, 8vh, 96px); }
.hero-title { max-width: 11.5em; }
.hero-sub { margin: 28px 0 0; font-size: 17px; opacity: 0.85; }
.project-hero { min-height: 92svh; }
.project-hero-grid { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; padding-bottom: clamp(44px, 8vh, 96px); }
.project-hero-grid p { margin: 0; font-size: 16px; opacity: 0.85; }
.project-hero-detail { justify-self: end; }
.project-hero-title { text-align: center; }
@media (max-width: 760px) { .project-hero-grid { grid-template-columns: 1fr; } .project-hero-title { text-align: left; } .project-hero-detail { justify-self: start; } }
.project-hero .hero-media { object-position: center 28%; }
.project-hero-title { font-size: clamp(56px, 10vw, 176px); }

/* ---------- intro ---------- */
.intro, .project-intro { padding: clamp(110px, 15vw, 220px) 0; }
.intro-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 120px); align-items: end; }
.intro .lead { justify-self: end; }
.project-intro .intro-grid { grid-template-columns: 4fr 8fr; align-items: start; }
@media (max-width: 760px) { .intro-grid, .project-intro .intro-grid { grid-template-columns: 1fr; } .intro .lead { justify-self: start; } }
.project-facts { margin: 0; display: grid; gap: 22px; align-content: start; }
.project-facts dt { font-size: 14px; color: var(--mass); }
.project-facts dd { margin: 2px 0 0; font-size: 18px; }
.project-facts a { border-bottom: 1px solid var(--rule); }

/* ---------- projects (Pillar layout: sticky intro, stacked 3:2 cards) ---------- */
.projects { background: var(--black); color: var(--creamic); padding: clamp(20px, 2.5vw, 36px); }
.projects-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 2.5vw, 36px); }
.projects-sticky { position: relative; }
.sticky-content { position: sticky; top: 110px; width: 88%; padding: clamp(24px, 3vw, 48px) clamp(4px, 1.5vw, 24px); }
.projects-kicker { margin: 0 0 28px; font-size: 15px; opacity: 0.7; }
.projects-sticky .display { font-size: clamp(40px, 4.6vw, 80px); }
.divider { display: block; width: 72px; height: 1px; margin: 36px 0; background: var(--rule-light); }
.projects-text { margin: 0; max-width: 28em; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; opacity: 0.75; }
.projects-cards { display: flex; flex-direction: column; gap: clamp(20px, 2.5vw, 30px); }
.project-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3 / 2; padding: 0 clamp(24px, 3.4vw, 50px) clamp(56px, 5vw, 76px); overflow: hidden; color: var(--creamic); }
.card-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.project-card:hover .card-media { transform: scale(1.03); }
.card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,40,39,0) 45%, rgba(40,40,39,0.7) 100%); }
.card-info { position: relative; display: grid; gap: 12px; }
.card-title { font-size: clamp(34px, 3.6vw, 60px); line-height: 1; letter-spacing: -0.03em; }
.card-link { font-size: 14px; opacity: 0.85; }
.card-rule { position: absolute; left: 0; right: 0; bottom: clamp(24px, 2.4vw, 35px); height: 1px; background: rgba(249, 244, 242, 0.45); }
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr; }
  .sticky-content { position: static; width: 100%; }
}

/* ---------- abstract ---------- */
.abstract { position: relative; padding: clamp(150px, 22vw, 340px) 0; color: var(--creamic); overflow: hidden; background: var(--mass); }
.abstract > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.abstract .wrap { position: relative; }
.abstract .statement { max-width: 17em; }

/* ---------- gallery ---------- */
.gallery { padding: clamp(24px, 2.5vw, 36px) 0 clamp(64px, 8vw, 110px); }
.gallery-track {
  position: relative; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 12vw;
}
.gallery-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 auto; margin: 0; scroll-snap-align: center; }
.slide img { height: clamp(320px, 72vh, 780px); width: auto; max-width: 90vw; object-fit: cover; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 28px; }
.gallery-btn { padding: 4px 0; border-bottom: 1px solid var(--rule); font-size: 15px; transition: border-color 0.2s; }
.gallery-btn:hover { border-color: var(--ink); }
.gallery-count { font-size: 14px; color: var(--ink-soft); }

/* ---------- next project ---------- */
.next-project { border-top: 1px solid var(--rule); }
.next-link { display: grid; gap: 16px; padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(72px, 10vw, 140px); }
.next-label { font-size: 15px; color: var(--mass); }
.next-link .display { transition: opacity 0.3s; }
.next-link:hover .display { opacity: 0.6; }

/* ---------- contact ---------- */
.contact { padding: clamp(100px, 12vw, 190px) 0; background: var(--clay); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); }
.contact-copy .lead { margin-top: 28px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 24px; align-content: start; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field span { font-size: 14px; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  background: transparent; color: var(--ink); font: inherit; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.contact-form .btn { justify-self: start; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink-soft); }
.form-note a { border-bottom: 1px solid var(--rule); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { padding: clamp(90px, 11vw, 150px) 0 36px; background: var(--black); color: var(--creamic); }
.footer-line { max-width: 10em; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-top: clamp(72px, 10vw, 130px); padding-top: 28px; border-top: 1px solid var(--rule-light); }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; }
.footer-links a { opacity: 0.8; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; }
.footer-legal { display: grid; gap: 4px; justify-items: end; font-size: 13px; }
.footer-legal p { margin: 0; opacity: 0.7; }
.credit-link { opacity: 0.5; transition: opacity 0.2s; }
.credit-link:hover { opacity: 0.9; }
@media (max-width: 760px) { .footer-legal { justify-items: start; } }

/* ---------- simple pages ---------- */
.simple { min-height: 70vh; padding: 190px 0 130px; }
.simple .display { margin-bottom: 32px; }
.simple .btn { margin-top: 36px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .page-home .hero-title, .js .page-home .hero-sub { opacity: 1; transform: none; }
}

/* ---------- legal (Hebrew, De Club format) ---------- */
[lang="he"] { font-family: "Gilroy", "Arial Hebrew", "Noto Sans Hebrew", Arial, sans-serif; }
.legal-hero { padding: 180px 0 56px; border-bottom: 1px solid var(--rule); }
.legal-hero .display { margin: 0 0 20px; }
.legal-hero-meta { margin: 0; color: var(--ink-soft); }
.legal-body { padding: 64px 0 120px; }
.legal-content { max-width: 820px; margin-left: auto; font-size: 16px; line-height: 1.8; }
.legal-intro p { margin: 0 0 16px; font-size: 18px; }
.legal-section { padding-top: 40px; }
.legal-section h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 16px; font-weight: 800; font-size: 20px; }
.legal-num { font-size: 13px; letter-spacing: 0.12em; color: var(--brown); }
.legal-clause { margin: 0 0 12px; }
.legal-sub { margin: 0 0 10px; padding-inline-start: 24px; }
.legal-content a { border-bottom: 1px solid var(--rule); }
.legal-table-wrap { overflow-x: auto; margin: 8px 0 16px; }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.legal-table th, .legal-table td { padding: 12px 14px; border: 1px solid var(--rule); text-align: start; vertical-align: top; }
.legal-table th { background: var(--clay); font-weight: 800; }
.legal-contact-block { margin-top: 12px; padding: 20px 24px; background: var(--clay); }
.legal-contact-block p { margin: 0 0 6px; }
.legal-footer-meta { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 14px; }
