/* ==========================================================================
   Beyond360 — Design System
   Editorial split-complementary palette anchored on orange.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;700&family=Heebo:wght@300;400;500;700;900&family=JetBrains+Mono:wght@400;500&family=Inter:wght@500&display=swap');

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Brand palette */
  --orange: #EE5A1F;
  --orange-soft: #F47A47;
  --paper: #FCFAF6;
  --paper-deep: #F4EFE5;
  --bone: #ECE6D9;
  --butter: #F4C95D;
  --teal: #1E9F8F;
  --indigo: #2D3A8C;
  --ink: #1A1814;
  --ink-soft: #3A3631;
  --line: rgba(26, 24, 20, 0.08);
  --line-strong: rgba(26, 24, 20, 0.16);

  /* Type */
  --display: 'Rubik', 'Heebo', system-ui, -apple-system, sans-serif;
  --body: 'Heebo', 'Assistant', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  --logo: 'Inter', 'Heebo', system-ui, sans-serif;

  /* Spacing scale (8px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 160px;
  --s-12: 200px;

  /* Layout */
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 4px;
  --radius-lg: 12px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  position: relative;
}
main, section, .wrap { max-width: 100%; }
.hero, .pin-stage, .projects, .cta-block, .site-footer { max-width: 100vw; overflow-x: clip; }
.hero__title { word-break: keep-all; overflow-wrap: break-word; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; text-decoration: none; }

/* --- Typography ---------------------------------------------------------
   Brand-book rules:
   • Display = Rubik 300, line-height 1.0–1.1, letter-spacing −0.005em
   • Body = Heebo 400 @ 17px, line-height 1.7–1.85, max 65ch
   • Emphasis = Heebo 500 + orange (no italics in Hebrew, no uppercase)
   • Eyebrow Heb = Heebo 500 / 12px / 0.04em + horizontal accent line
   • Eyebrow Latin/numeric = JetBrains Mono 500 / 12px / 0.18em
--------------------------------------------------------------------------- */
.display {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.005em;
  line-height: 1.05;
}
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(48px, 9vw, 120px); line-height: 1.0; letter-spacing: -0.012em; }
h2 { font-size: clamp(36px, 5.5vw, 72px); }
h3 { font-size: clamp(24px, 3vw, 38px); }
h4 { font-size: clamp(20px, 2vw, 26px); }
p { margin: 0; }

/* Eyebrow Hebrew (default) — Heebo 500, attached to short orange line */
.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--orange);
}
.eyebrow.no-line::before { display: none; }
.eyebrow--center { justify-content: center; }

/* Eyebrow technical — JetBrains Mono for Latin/numeric labels */
.eyebrow--mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Accent — replaces italics in Hebrew via weight + color */
em { font-style: normal; }              /* brand-book rule: no italics in Hebrew */
.accent { color: var(--orange); font-weight: 500; }
.accent-soft { color: var(--orange); font-weight: 400; }

/* --- Layout primitives -------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 960px; }
.wrap--wide { max-width: 1600px; }

.section { padding-block: clamp(64px, 12vw, 160px); }
.section--tight { padding-block: clamp(48px, 8vw, 96px); }
.section--lg { padding-block: clamp(96px, 16vw, 220px); }

.grid { display: grid; gap: var(--s-5); }
.flex { display: flex; }

/* --- The Plate (official SVG) --------------------------------------------
   The Plate is now rendered as inline SVG that uses currentColor for the
   stroke and both texts. To recolor: set `color` on the SVG (or its parent).
   Sizes are width × height on the SVG element. The SVG viewBox (240×240)
   keeps internal proportions identical to the brand-book artwork.
--------------------------------------------------------------------------- */
.plate {
  display: inline-block;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: var(--orange);   /* default tone; override via .plate--* or inline */
  overflow: visible;
  direction: ltr;          /* lock SVG layout LTR even inside Hebrew RTL */
  unicode-bidi: isolate;
}
.plate--sm  { width: 32px;  height: 32px; }
.plate--lg  { width: 96px;  height: 96px; }
.plate--xl  { width: 140px; height: 140px; }
.plate--xxl { width: 200px; height: 200px; }

/* Color variants — paint the whole mark in one tone (transparent background) */
.plate--orange { color: var(--orange); }
.plate--ink    { color: var(--ink); }
.plate--paper  { color: var(--paper); }
.plate--indigo { color: var(--indigo); }
.plate--teal   { color: var(--teal); }
.plate--butter { color: var(--butter); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  transition: transform 0.4s var(--ease-out), background-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
  position: relative;
  white-space: nowrap;
}
.btn::after {
  content: "←";
  font-family: var(--display);
  font-size: 17px;
  transition: transform 0.4s var(--ease-out);
}
.btn:hover::after { transform: translateX(-4px); }
.btn--primary {
  background: var(--orange);
  color: var(--paper);
  border-color: var(--orange);
}
.btn--primary:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding: 8px 0;
  border-radius: 0;
  border-bottom: 1.5px solid var(--ink);
}
.btn--quiet::after { font-size: 15px; }
.btn--quiet:hover { color: var(--orange); border-bottom-color: var(--orange); }

.btn[data-magnetic] { will-change: transform; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  padding-block: 18px;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-soft), padding 0.3s var(--ease-soft);
}
.site-header.is-scrolled {
  border-color: var(--line);
  padding-block: 12px;
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.site-header__brand .plate { transition: transform 0.5s var(--ease-spring); }
.site-header__brand:hover .plate { transform: rotate(-6deg); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  position: relative;
  transition: color 0.3s var(--ease-soft);
}
.nav__link::before {
  content: "";
  position: absolute;
  inset: auto 50% 6px 50%;
  height: 1px;
  background: currentColor;
  transition: inset 0.4s var(--ease-out);
}
.nav__link:hover { color: var(--orange); }
.nav__link:hover::before, .nav__link[aria-current="page"]::before {
  inset-inline: 16px;
}
.nav__link[aria-current="page"] { color: var(--orange); }

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}
.nav-toggle span {
  position: absolute;
  inset: 50% 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), opacity 0.2s linear, top 0.3s;
}
.nav-toggle span:first-child { top: 13px; }
.nav-toggle span:nth-child(2) { transform: translateY(-50%); }
.nav-toggle span:last-child { top: auto; bottom: 13px; }
.nav-toggle.is-open span:first-child { top: 50%; transform: rotate(45deg) translateY(-50%); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:last-child { top: 50%; bottom: auto; transform: rotate(-45deg) translateY(-50%); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-9) var(--gutter) var(--s-7);
    transform: translateY(-100%);
    transition: transform 0.6s var(--ease-out);
    z-index: 90;
    visibility: hidden;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav__link { font-size: 28px; padding: 12px 24px; font-family: var(--display); font-weight: 400; }
  .nav__cta { margin-top: var(--s-5); }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: clamp(120px, 16vw, 180px);
  padding-bottom: clamp(80px, 10vw, 140px);
  overflow: hidden;
  isolation: isolate;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  position: relative;
  z-index: 2;
}
.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero__title .l { display: block; }
.hero__title .l > span { display: block; }
.hero__title .accent { font-style: normal; color: var(--orange); }
.hero__lede {
  max-width: 540px;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
}
.hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-5);
}

/* Hero scenery — animated SVG buildings */
.scenery {
  position: absolute;
  inset: auto 0 0 0;
  height: 56vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.scenery svg { width: 100%; height: 100%; }
.scenery .b-stroke { stroke: var(--ink); stroke-width: 1; fill: none; opacity: 0.18; }
.scenery .b-fill-orange { fill: var(--orange); opacity: 0.92; }
.scenery .b-fill-paper { fill: var(--paper-deep); }
.scenery .b-fill-bone { fill: var(--bone); }

/* Hero floating plate */
.hero__plate {
  position: absolute;
  top: 30%;
  left: clamp(20px, 6vw, 80px);
  z-index: 1;
  transform-origin: center;
  will-change: transform;
}
@media (max-width: 900px) {
  .hero__plate { display: none; }
  .hero__title { font-size: clamp(40px, 9vw, 72px) !important; line-height: 1 !important; }
  .hero { min-height: auto; padding-top: clamp(96px, 18vw, 140px); padding-bottom: var(--s-8); }
  .hero__meta { flex-direction: column; align-items: stretch; gap: var(--s-3); }
  .hero__meta .btn { justify-content: center; }
  .hero__lede { font-size: 16px; }
  .scenery { height: 32vh; opacity: 0.45; }
  .scroll-cue { display: none; }

  h1, h2, h3, h4 { hyphens: none; }
  h1 { font-size: clamp(40px, 10vw, 72px); letter-spacing: -0.02em; }
  h2 { font-size: clamp(30px, 7vw, 56px); }
  .display, .hero__title, [data-split-title] { letter-spacing: -0.01em; }
  .pin-stage__phrase { font-size: clamp(28px, 8vw, 56px) !important; }
  .stat__num { font-size: clamp(40px, 11vw, 72px) !important; }
  .partner__name { font-size: 24px; }
  .step { gap: var(--s-3) var(--s-4); }
  .step__num { font-size: clamp(40px, 9vw, 64px); }
  .step__title { font-size: clamp(20px, 5vw, 28px); }
  .form { gap: var(--s-4); }
  .cta-block__lede { font-size: 16px; }
  .section-head__lede { font-size: 16px; }
  .pillars__title { font-size: 22px; }
  .pillars__cell { padding: var(--s-5) var(--s-4); }
}
@media (max-width: 480px) {
  .hero__title { font-size: clamp(34px, 9vw, 48px) !important; }
  .display, h1, h2 { font-size: clamp(28px, 8vw, 44px); }
  .eyebrow { font-size: 11px; letter-spacing: 0.14em; }
  .wrap { padding-inline: 20px; }
}

/* Hero scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  inset-inline-start: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  z-index: 3;
}
.scroll-cue__line {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, transparent, var(--ink) 30%, var(--ink) 70%, transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  background: var(--orange);
  animation: cue 2.4s var(--ease-soft) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* Reveal helpers retained as no-op visual containers (overflow + display) so
   markup using .l / .split-line still wraps cleanly without animation. */
.split-line { display: block; }
.split-line > span { display: block; }

/* --- Sections styling --------------------------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}
.section-head__title { max-width: 18ch; }
.section-head__lede { max-width: 56ch; color: var(--ink-soft); font-size: 19px; line-height: 1.65; }
.section-head--center { text-align: center; justify-items: center; }

/* Pillars (3-col) */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.pillars__cell {
  background: var(--paper);
  padding: var(--s-7) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  position: relative;
  transition: background-color 0.5s var(--ease-soft);
}
.pillars__cell:hover { background: var(--paper-deep); }
.pillars__num {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--orange);
  font-weight: 500;
}
.pillars__title { font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.15; }
.pillars__body { color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
@media (max-width: 800px) {
  .pillars { grid-template-columns: 1fr; }
}

/* Editorial split — 2-col asymmetric */
.split-2 {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-8);
  align-items: start;
}
.split-2--reverse { grid-template-columns: 7fr 5fr; }
@media (max-width: 900px) {
  .split-2, .split-2--reverse { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* Stats / number row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  padding-block: var(--s-7);
  border-block: 1px solid var(--line);
}
.stat__num {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  color: var(--orange);
  letter-spacing: -0.03em;
}
.stat__label {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-top: var(--s-3);
  display: block;
}
@media (max-width: 800px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* --- Project carousel --------------------------------------------------- */
.projects {
  background: var(--paper-deep);
  position: relative;
  overflow: hidden;
}
.projects__rail {
  display: flex;
  gap: var(--s-5);
  padding: 0 var(--gutter) var(--s-7);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.projects__rail::-webkit-scrollbar { display: none; }
.project-card {
  flex: 0 0 clamp(280px, 32vw, 440px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  isolation: isolate;
}
.project-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bone);
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
  will-change: transform;
}
.project-card:hover .project-card__media img { transform: scale(1.06); }
.project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,24,20,0.35) 0%, rgba(26,24,20,0) 50%);
  pointer-events: none;
}
.project-card__num {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--paper);
  background: color-mix(in oklab, var(--ink) 60%, transparent);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.project-card__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  color: var(--ink);
  margin-top: var(--s-3);
}
.project-card__city {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.project-card__note {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin-top: 2px;
}

.projects__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: 0 var(--gutter) 0;
  margin-top: var(--s-4);
}

/* Carousel arrows now overlay the rail itself, anchored to image edges */
.projects { position: relative; }
.projects__nav-overlay { display: contents; }
.projects__btn--rail {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 64px; height: 64px; border-radius: 999px;
  background: rgba(252, 250, 246, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid color-mix(in oklab, var(--ink) 14%, transparent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--ink);
  box-shadow: 0 12px 32px rgba(26,24,20,0.14);
  transition: transform 0.4s var(--ease-spring), background 0.3s, color 0.3s, border-color 0.3s;
}
.projects__btn--rail:hover { background: var(--orange); color: var(--paper); border-color: var(--orange); transform: translateY(-50%) scale(1.06); }
.projects__btn--rail:disabled { opacity: 0.35; cursor: default; }
.projects__btn--prev { inset-inline-start: clamp(12px, 2vw, 28px); }
.projects__btn--next { inset-inline-end: clamp(12px, 2vw, 28px); }

/* Smaller card-action set kept for the bottom controls (only progress + link) */
.projects__nav { display: inline-flex; gap: 8px; }
@media (max-width: 700px) {
  .projects__btn--rail { width: 48px; height: 48px; font-size: 18px; }
}
.projects__progress {
  flex: 1;
  max-width: 320px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.projects__progress::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--progress, 20%);
  background: var(--orange);
  transition: width 0.5s var(--ease-out);
}

/* --- Method (numbered steps) ------------------------------------------- */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 1fr 6fr 6fr;
  gap: var(--s-7);
  padding-block: var(--s-7);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-bottom: 0; }
.step__num {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 5vw, 80px);
  color: var(--orange);
  line-height: 1;
}
.step__title { font-size: clamp(26px, 3vw, 38px); }
.step__body { color: var(--ink-soft); font-size: 17px; line-height: 1.75; }
.step__icon {
  width: 100%;
  aspect-ratio: 1;
  max-width: 100px;
  margin-bottom: var(--s-4);
}
@media (max-width: 800px) {
  .step { grid-template-columns: auto 1fr; }
  .step__body { grid-column: 1 / -1; }
}

/* --- Partners ----------------------------------------------------------- */
.partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-7);
  align-items: start;
}
.partner {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 2px solid var(--ink);
  position: relative;
}
.partner--orange { border-top-color: var(--orange); }
.partner--indigo { border-top-color: var(--indigo); }
.partner--teal { border-top-color: var(--teal); }

.partner__plate-wrap {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: var(--s-2);
}
.partner__plate-wrap .plate { font-feature-settings: 'tnum'; }

.partner__role {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--orange);
}
.partner__name {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -0.012em;
  line-height: 1.05;
  color: var(--ink);
}
.partner__bio { color: var(--ink-soft); font-size: 16px; line-height: 1.75; }

@media (max-width: 1100px) {
  .partners { gap: var(--s-6); }
}
@media (max-width: 760px) {
  .partners { grid-template-columns: 1fr; gap: var(--s-6); }
  .partner { padding-top: var(--s-4); }
}

/* --- Audiences (Method's "for whom") ----------------------------------- */
.audiences {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.audience {
  background: var(--paper);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: background 0.3s var(--ease-soft);
}
.audience:hover { background: var(--paper-deep); }
.audience__tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange);
}
.audience__title { font-size: 22px; font-weight: 500; font-family: var(--display); }
.audience__body { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
@media (max-width: 700px) { .audiences { grid-template-columns: 1fr; } }

/* --- Triptych — three values --------------------------------------------- */
.triptych { background: var(--paper-deep); }
.triptych__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-7);
  align-items: start;
}
.triptych__cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-5);
  border-inline-end: 1px solid var(--line);
}
.triptych__cell:last-child { border-inline-end: 0; }
.triptych__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin-top: var(--s-3);
}
.triptych__body { color: var(--ink-soft); font-size: 16px; line-height: 1.7; max-width: 32ch; }
@media (max-width: 800px) {
  .triptych__row { grid-template-columns: 1fr; gap: var(--s-6); }
  .triptych__cell { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: var(--s-5) 0; }
  .triptych__cell:last-child { border-bottom: 0; }
}

/* --- Brand promise moment ---------------------------------------------- */
.brand-moment {
  padding: clamp(80px, 14vw, 180px) 0;
  text-align: center;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.brand-moment__line {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.brand-moment__line .accent { color: var(--orange); font-weight: 500; }

/* --- CTA Block ---------------------------------------------------------- */
.cta-block {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 10vw, 140px) var(--gutter);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-block__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--s-8);
  align-items: center;
}
.cta-block h2 { color: var(--paper); }
.cta-block .accent { color: var(--orange); }
.cta-block__lede { color: color-mix(in oklab, var(--paper) 75%, transparent); font-size: 18px; line-height: 1.7; max-width: 48ch; margin-top: var(--s-4); }
.cta-block .btn--primary:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-block__plate {
  display: flex;
  justify-content: center;
}
@media (max-width: 900px) {
  .cta-block__inner { grid-template-columns: 1fr; }
  .cta-block__plate { order: -1; }
}

/* --- Form --------------------------------------------------------------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5) var(--s-6);
}
.form__row { display: flex; flex-direction: column; gap: 8px; position: relative; }
.form__row--full { grid-column: 1 / -1; }
.form__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.form__input, .form__select, .form__textarea {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1.5px solid var(--line-strong);
  background: transparent;
  font-size: 17px;
  color: var(--ink);
  font-family: var(--body);
  transition: border-color 0.3s var(--ease-soft);
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: none;
  border-bottom-color: var(--orange);
}
.form__textarea { min-height: 120px; resize: vertical; padding: 14px 0; }
.form__select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%231A1814' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 4px center; padding-inline-start: 0; padding-inline-end: 24px; }
.form__check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; user-select: none; }
.form__check input { appearance: none; width: 20px; height: 20px; border: 1.5px solid var(--line-strong); border-radius: 4px; flex-shrink: 0; margin-top: 2px; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.form__check input:checked { background: var(--orange); border-color: var(--orange); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath stroke='%23FCFAF6' stroke-width='1.6' fill='none' d='M1 5l3 3 7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.form__check span { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.form__check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.form__submit-row { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-3); }
.form__status { font-size: 14px; color: var(--ink-soft); min-height: 1.5em; }
.form__status.is-success { color: var(--teal); }
.form__status.is-error { color: var(--orange); }
@media (max-width: 700px) {
  .form { grid-template-columns: 1fr; }
}

/* --- Contact info card -------------------------------------------------- */
.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  padding-top: var(--s-7);
  border-top: 1px solid var(--line);
  margin-top: var(--s-7);
}
.contact-info__row { display: flex; flex-direction: column; gap: 6px; }
.contact-info__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-info__value { font-size: 17px; font-weight: 500; color: var(--ink); }
.contact-info__value a:hover { color: var(--orange); }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 8vw, 96px) var(--gutter) 32px;
  position: relative;
  overflow: hidden;
}
.site-footer__top {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-8);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 16%, transparent);
}
.site-footer__brand { display: flex; flex-direction: column; gap: var(--s-4); align-items: flex-start; }
.site-footer__brand .plate { color: var(--orange); border-color: var(--orange); }
.site-footer__brand-name { font-family: var(--display); font-weight: 300; font-size: 36px; letter-spacing: -0.005em; }
.site-footer__promise { font-family: var(--display); font-weight: 300; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.01em; color: var(--paper); margin-top: var(--s-3); }
.site-footer__promise .accent { color: var(--orange); font-weight: 500; }
.site-footer__tagline { color: color-mix(in oklab, var(--paper) 60%, transparent); font-size: 14px; line-height: 1.7; max-width: 38ch; margin-top: var(--s-3); }
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.site-footer__col h4 {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--paper);
  margin-bottom: var(--s-4);
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-footer__col a { font-size: 15px; color: var(--paper); transition: color 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.site-footer__col a:hover { color: var(--orange); }
.site-footer__col a:hover::before { content: "←"; color: var(--orange); }

.site-footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: color-mix(in oklab, var(--paper) 60%, transparent);
  flex-wrap: wrap;
  gap: var(--s-3);
}
.site-footer__credit a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s;
}
.site-footer__credit a:hover { color: var(--paper); }

@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-footer__cols { grid-template-columns: 1fr; }
}

/* Preloader removed — content renders directly. */

/* --- Pin sticky moment -------------------------------------------------- */
.pin-stage {
  position: relative;
  background: var(--paper);
}
.pin-stage__inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pin-stage__plate {
  position: relative;
  z-index: 2;
  transition: background-color 0.6s var(--ease-soft), color 0.6s var(--ease-soft), border-color 0.6s var(--ease-soft);
}
.pin-stage__phrases {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.pin-stage__phrase {
  position: absolute;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 84px);
  letter-spacing: -0.025em;
  line-height: 1;
  opacity: 0;
  text-align: center;
  max-width: 80vw;
}
.pin-stage__phrase .accent { color: var(--orange); }
.pin-stage__phrase[data-phase] { will-change: transform, opacity; }

/* --- Back-to-top FAB --------------------------------------------------- */
.to-top {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 89;
  box-shadow: 0 12px 32px rgba(238, 90, 31, 0.32);
  opacity: 0;
  transform: translateY(16px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-spring), background 0.3s;
}
.to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.to-top:hover { background: var(--ink); }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 700px) {
  .to-top { bottom: 24px; width: 48px; height: 48px; }
}

/* --- Skip link & focus -------------------------------------------------- */
.skip-link {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  transform: translateY(-100%);
  z-index: 9999;
  transition: transform 0.3s;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
  border-radius: 4px;
}

/* --- Accessibility widget ---------------------------------------------- */
.a11y-fab {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 10px 30px rgba(26,24,20,0.18);
  transition: transform 0.4s var(--ease-spring);
}
.a11y-fab:hover { transform: scale(1.06); }

/* --- WhatsApp floating CTA -------------------------------------------- */
.whatsapp-fab {
  position: fixed;
  bottom: 88px;
  inset-inline-end: 24px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.42);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s;
}
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 14px 36px rgba(37, 211, 102, 0.55); }
.whatsapp-fab svg { width: 28px; height: 28px; }
@media (max-width: 700px) {
  .whatsapp-fab { width: 42px; height: 42px; bottom: 76px; }
  .whatsapp-fab svg { width: 22px; height: 22px; }
}
.a11y-panel {
  position: fixed;
  bottom: 88px;
  inset-inline-end: 24px;
  width: min(320px, calc(100vw - 48px));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: var(--s-5);
  z-index: 91;
  display: none;
  flex-direction: column;
  gap: var(--s-3);
  box-shadow: 0 24px 60px rgba(26,24,20,0.18);
}
.a11y-panel.is-open { display: flex; }
.a11y-panel h4 { font-family: var(--display); font-size: 18px; }
.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.a11y-row:last-child { border-bottom: 0; }
.a11y-row label { font-size: 14px; }
.a11y-row button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.a11y-row button[aria-pressed="true"], .a11y-row button:hover { background: var(--orange); color: var(--paper); border-color: var(--orange); }

/* --- Body class toggles for a11y ---------------------------------------- */
body.a11y-large { font-size: 19px; }
body.a11y-large h1 { font-size: clamp(56px, 10vw, 140px); }
body.a11y-large h2 { font-size: clamp(40px, 6vw, 80px); }
body.a11y-contrast { --paper: #FFFFFF; --paper-deep: #FFFFFF; --bone: #F5F5F5; --ink: #000000; --ink-soft: #000000; --line: rgba(0,0,0,0.4); --line-strong: rgba(0,0,0,0.7); }
body.a11y-contrast .scenery { display: none; }

/* --- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-cue__line::after { animation: none !important; }
  .preloader { display: none !important; }
}
body.a11y-stop-motion *, body.a11y-stop-motion *::before, body.a11y-stop-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* --- Page transition (legal pages) -------------------------------------- */
.legal {
  padding-top: clamp(120px, 15vw, 180px);
  padding-bottom: var(--s-9);
}
.legal h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: var(--s-5); }
.legal h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: var(--s-7); margin-bottom: var(--s-4); }
.legal p { margin-bottom: var(--s-4); color: var(--ink-soft); line-height: 1.8; }
.legal ul { padding-inline-start: 20px; line-height: 1.8; color: var(--ink-soft); }
.legal a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }

/* --- Project status badge ---------------------------------------------- */
.project-card__status {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  z-index: 2;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--paper);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  background: color-mix(in oklab, var(--ink) 55%, transparent);
}
.project-card__status--done { background: color-mix(in oklab, var(--teal) 88%, transparent); }
.project-card__status--building { background: color-mix(in oklab, var(--orange) 92%, transparent); }

/* --- Contact aside: disable sticky on mobile --------------------------- */
@media (max-width: 900px) {
  .contact-aside { position: static !important; top: auto !important; }
}

/* --- Cookie consent banner --------------------------------------------- */
.cookie-banner {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
  padding: 22px 24px;
  display: none;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  border: 1px solid color-mix(in oklab, var(--paper) 8%, transparent);
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.cookie-banner__body {
  font-size: 14px;
  line-height: 1.65;
  color: color-mix(in oklab, var(--paper) 78%, transparent);
}
.cookie-banner__body a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.cookie-banner__btn {
  font-family: var(--body);
  font-weight: 500;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.cookie-banner__btn--primary { background: var(--orange); color: var(--paper); }
.cookie-banner__btn--primary:hover { background: color-mix(in oklab, var(--orange) 80%, white); }
.cookie-banner__btn--ghost { background: transparent; color: var(--paper); border-color: color-mix(in oklab, var(--paper) 32%, transparent); }
.cookie-banner__btn--ghost:hover { border-color: var(--paper); }
.cookie-banner__btn--link { background: transparent; color: color-mix(in oklab, var(--paper) 72%, transparent); padding-inline: 8px; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__btn--link:hover { color: var(--paper); }
@media (min-width: 768px) {
  .cookie-banner {
    inset-inline: auto;
    inset-inline-end: 24px;
    bottom: 24px;
    max-width: 480px;
    padding: 26px 28px;
  }
}

/* --- Cookie preferences modal ----------------------------------------- */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: color-mix(in oklab, var(--ink) 70%, transparent);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cookie-modal.is-open { display: flex; }
.cookie-modal__inner {
  background: var(--paper);
  border-radius: 20px;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.cookie-modal__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 8px;
}
.cookie-modal__lede {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.cookie-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.cookie-row__text { flex: 1; }
.cookie-row__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.cookie-row__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.cookie-toggle {
  flex: 0 0 auto;
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--line);
  border: none;
  cursor: pointer;
  transition: background 0.25s;
}
.cookie-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--paper);
  transition: transform 0.25s;
}
.cookie-toggle[aria-checked="true"] { background: var(--orange); }
.cookie-toggle[aria-checked="true"]::after { transform: translateX(-20px); }
[dir="ltr"] .cookie-toggle[aria-checked="true"]::after { transform: translateX(20px); }
.cookie-toggle[disabled] { opacity: 0.5; cursor: not-allowed; }
.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* --- Maps consent placeholder ----------------------------------------- */
.map-consent-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--paper);
  padding: 32px;
  text-align: center;
}
.map-consent-placeholder p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 36ch;
  line-height: 1.6;
}
.map-consent-placeholder button {
  font-family: var(--body);
  font-weight: 500;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--paper);
  border: 0;
  cursor: pointer;
}
.map-consent-placeholder button:hover { background: var(--ink); }

/* --- Footer cookies link ---------------------------------------------- */
.site-footer__cookies-link {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
}
.site-footer__cookies-link:hover { color: var(--orange); }
