/* סטודיו קו. One family (IBM Plex Sans Hebrew), plaster-white canvas, one sage hue in two
   lightnesses (deep on light grounds, pale on dark grounds), graphite for the drawing section.
   Radius scale: 0 everywhere, circles only for the floating accessibility control. */

:root {
  --canvas: #eceeea;
  --paper: #f3f4f0;
  --stone: #dfe3dd;
  --ink: #1b1f1c;
  --ink-soft: #545c56;
  --sage: #3d4b38;
  --sage-pale: #c4d1b6;
  --graphite: #1f2326;
  --graphite-2: #2a3033;
  --on-dark: #eef0ec;
  --on-dark-soft: #b3bab4;
  --line: rgba(27, 31, 28, 0.14);
  --line-dark: rgba(238, 240, 236, 0.18);
  --error: #a3301c;

  --sans: "IBM Plex Sans Hebrew", "Assistant", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(20px, 4vw, 64px);
  --nav-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

/* author display values (inline-flex buttons) must not resurrect hidden elements */
[hidden] { display: none !important; }

html {
  background: var(--canvas);
  color-scheme: light;
  scrollbar-color: #9aa39c var(--canvas);
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--sage); color: var(--on-dark); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h2 span, h1 span { display: block; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-dark);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip:focus { transform: none; }

/* The mark: three fins */
.logo { display: inline-flex; gap: 4px; align-items: stretch; height: 18px; }
.logo b { display: block; width: 3px; background: currentColor; }
.logo--big { gap: 9px; height: 58px; }
.logo--big b { width: 6px; }

/* ---------- Fins intro ---------- */
.fins {
  position: fixed;
  inset: 0;
  z-index: 90;
  perspective: 1400px;
  pointer-events: none;
}
.fins__row { position: absolute; inset: 0; display: flex; transform-style: preserve-3d; }
.fins__row i {
  flex: 1;
  background: linear-gradient(90deg, #f6f7f4 0%, #e9ebe6 52%, #d6dad3 100%);
  box-shadow: inset -1px 0 0 rgba(27, 31, 28, 0.07);
  backface-visibility: hidden;
}
.fins__brand {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: var(--ink);
}
.fins__name { font-size: 1.05rem; font-weight: 400; letter-spacing: 0.06em; }
.fins__skip {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 91;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.9rem;
  cursor: pointer;
}
html:not(.motion) .fins,
html:not(.motion) .fins__skip { display: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav-h);
  padding-inline: var(--gutter);
  color: var(--on-dark);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.nav.is-solid {
  color: var(--ink);
  background: rgba(236, 238, 234, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__menu {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid currentColor;
  background: transparent;
  font-size: 0.92rem;
  cursor: pointer;
}
.nav__lines { position: relative; display: block; width: 18px; height: 8px; }
.nav__lines i {
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.nav__lines i:first-child { top: 0; }
.nav__lines i:last-child { top: 7px; }
.nav__menu[aria-expanded="true"] .nav__lines i:first-child { top: 3.5px; transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__lines i:last-child { top: 3.5px; transform: rotate(-45deg); }
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
}
.nav__cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid currentColor;
  background: transparent;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s;
}
.nav__cta i { font-size: 1.1rem; }
@media (hover: hover) and (pointer: fine) {
  .nav__cta:hover,
  .nav__menu:hover { background: currentColor; }
  .nav__cta:hover span,
  .nav__cta:hover i,
  .nav__menu:hover span { color: var(--ink); }
  .nav.is-solid .nav__cta:hover span,
  .nav.is-solid .nav__cta:hover i,
  .nav.is-solid .nav__menu:hover span { color: var(--on-dark); }
  .nav__menu:hover .nav__lines i { background: var(--ink); }
  .nav.is-solid .nav__menu:hover .nav__lines i { background: var(--on-dark); }
}

/* ---------- Menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: 6vw;
  padding: calc(var(--nav-h) + 6vh) var(--gutter) 9vh;
  background: var(--paper);
  color: var(--ink);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-out);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu nav a {
  display: inline-block;
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 200;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), color 0.18s;
}
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open li:nth-child(2) a { transition-delay: 0.04s, 0.04s, 0s; }
.menu.is-open li:nth-child(3) a { transition-delay: 0.08s, 0.08s, 0s; }
.menu.is-open li:nth-child(4) a { transition-delay: 0.12s, 0.12s, 0s; }
.menu.is-open li:nth-child(5) a { transition-delay: 0.16s, 0.16s, 0s; }
.menu.is-open li:nth-child(6) a { transition-delay: 0.2s, 0.2s, 0s; }
.menu nav a:hover,
.menu nav a:focus-visible { color: var(--sage); }
.menu__aside { color: var(--ink-soft); }
.menu__aside p { margin: 0 0 6px; }
.menu__aside a { text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  color: #f4f5f2;
  background: var(--graphite);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 54% 34% at 50% 74%, rgba(18, 22, 19, 0.62), rgba(18, 22, 19, 0) 74%),
    linear-gradient(to top, rgba(18, 22, 19, 0.55), rgba(18, 22, 19, 0) 46%),
    linear-gradient(to bottom, rgba(18, 22, 19, 0.4), rgba(18, 22, 19, 0) 18%);
}
.hero__copy {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(48px, 13vh, 140px);
  padding-inline: var(--gutter);
  text-align: center;
}
.hero__kicker { margin: 0 0 14px; font-size: 1rem; font-weight: 400; letter-spacing: 0.02em; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6.6vw, 6rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero__sub {
  max-width: 46ch;
  margin: 18px auto 0;
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  font-weight: 300;
  line-height: 1.6;
}

/* ---------- Composition ---------- */
.compose { position: relative; }
.compose__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7vh;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--nav-h) + 6vh) var(--gutter) 8vh;
}
.compose__text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 3vw;
  align-items: start;
}
.compose h2 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  text-align: center;
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.compose h2 .w { display: inline-block; }
.compose__p { grid-row: 1; margin: 1.4em 0 0; max-width: 30ch; font-size: 1.02rem; color: var(--ink-soft); }
.compose__p--a { grid-column: 1; }
.compose__p--b { grid-column: 3; justify-self: end; }
.compose__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6vw;
  align-items: end;
}
.float { margin: 0; will-change: transform; }
.float img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 30px 50px -30px rgba(27, 31, 28, 0.45); }
.float figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Spaces ---------- */
.spaces { background: var(--sage); color: var(--on-dark); }
.spaces ::selection { background: var(--sage-pale); color: var(--ink); }
.spaces__pin { position: relative; padding: calc(var(--nav-h) + 6vh) var(--gutter) 10vh; }
.spaces__label {
  margin: 0 0 6vh;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--sage-pale);
}
.spaces__track { display: grid; gap: 12vh; }
.space { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr) minmax(0, 1fr); gap: 3vw; align-items: center; }
.space__frame { grid-column: 2; overflow: hidden; aspect-ratio: 16 / 10; }
.space__frame img { width: 100%; height: 100%; object-fit: cover; }
.space__title { grid-column: 1; grid-row: 1; }
.space__title p { margin: 0 0 6px; font-size: 0.9rem; color: var(--sage-pale); }
.space__title h3 { margin: 0; font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 200; line-height: 1.04; letter-spacing: -0.02em; }
.space__note { grid-column: 3; grid-row: 1; }
.space__essence { margin: 0 0 12px; font-size: 1.04rem; line-height: 1.5; }
.space__mat { margin: 0; font-size: 0.86rem; color: var(--sage-pale); }
.space__open {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: -23px;
  padding: 0 20px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.18s, transform 0.14s var(--ease-out);
}
.space__open:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .space__open:hover { background: #ffffff; }
}
.spaces__progress { display: none; }

/* Pinned version: four panels on one wall that pans right to left */
html.motion .spaces__pin { height: 100vh; height: 100dvh; padding: 0; overflow: hidden; }
html.motion .spaces__label { position: absolute; z-index: 3; top: calc(var(--nav-h) + 14px); inset-inline-start: var(--gutter); margin: 0; }
html.motion .spaces__track { position: absolute; inset: 0; display: flex; gap: 0; width: 400vw; will-change: transform; }
html.motion .space { flex: 0 0 100vw; height: 100%; display: block; }
html.motion .space__frame {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  clip-path: inset(17% 25% 16% 25%);
}
html.motion .space__title,
html.motion .space__note { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 19vw; }
html.motion .space__title { inset-inline-start: var(--gutter); }
html.motion .space__note { inset-inline-end: var(--gutter); }
html.motion .space__open { position: absolute; z-index: 2; left: 50%; bottom: 16%; margin: 0; transform: translate(-50%, 50%); }
html.motion .space__open:active { transform: translate(-50%, 50%) translateY(1px); }
html.motion .spaces__progress {
  position: absolute;
  z-index: 3;
  display: block;
  bottom: 30px;
  inset-inline: var(--gutter);
  height: 1px;
  background: var(--line-dark);
}
html.motion .spaces__progress i {
  display: block;
  height: 1px;
  background: var(--on-dark);
  transform-origin: 100% 50%;
  transform: scaleX(var(--p, 0.25));
}

/* ---------- Process ---------- */
.process { padding: clamp(96px, 18vh, 200px) var(--gutter) clamp(80px, 12vh, 140px); }
.process__head { max-width: 60rem; margin-bottom: 10vh; }
.process__head h2 {
  margin: 0 0 0.5em;
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.process__head p { margin: 0; max-width: 44ch; font-size: 1.08rem; color: var(--ink-soft); }
.process__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: start; }
.process__steps { order: 1; list-style: none; margin: 0; padding: 0; }
.process__media {
  order: 2;
  position: sticky;
  top: calc(var(--nav-h) + 6vh);
  height: 68vh;
  overflow: hidden;
  background: var(--stone);
}
.process__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.7s var(--ease-out), transform 1.2s var(--ease-out);
}
.process__media img.is-on { opacity: 1; transform: none; }
.pstep {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62vh;
  border-top: 1px solid var(--line);
  opacity: 0.32;
  transition: opacity 0.45s var(--ease-out);
}
.pstep.is-on { opacity: 1; }
.pstep h3 { margin: 0 0 0.45em; font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
.pstep p { margin: 0; max-width: 40ch; font-size: 1.06rem; color: var(--ink-soft); }
html:not(.motion) .pstep { opacity: 1; }

/* ---------- Disciplines ---------- */
.disc { background: var(--graphite); color: var(--on-dark); }
.disc ::selection { background: var(--sage-pale); color: var(--ink); }
/* the pinned layer carries its own ground: once pinned it is an isolated group, and the
   blueprint's blend needs graphite inside that group, not behind it */
.disc__pin { position: relative; padding: clamp(90px, 16vh, 180px) var(--gutter); overflow: hidden; background: var(--graphite); }
.disc__blueprint {
  position: absolute;
  top: 50%;
  left: 3vw;
  width: min(46vw, 760px);
  transform: translateY(-50%);
  filter: invert(1);
  mix-blend-mode: lighten;
  opacity: 0.22;
  pointer-events: none;
}
.disc__title {
  position: relative;
  margin: 0 0 10vh;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.disc__cards { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2vw; }
.card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(22px, 2.4vw, 36px);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.7);
}
.card h3 { margin: 0; font-size: clamp(1.8rem, 2.6vw, 2.6rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; }
.card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card p { margin: auto 0 0; font-size: 1rem; line-height: 1.6; }
.card--light { background: var(--paper); color: var(--ink); }
.card--light p { color: var(--ink-soft); }
.card--dark { background: var(--graphite-2); color: var(--on-dark); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 70px -40px rgba(0, 0, 0, 0.8); }
.card--dark p { color: var(--on-dark-soft); }
.card__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.card__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }

html.motion .disc__pin { height: 100vh; height: 100dvh; padding: 0; }
html.motion .disc__title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  text-align: center;
}
html.motion .disc__cards { position: absolute; inset: 0; display: block; }
html.motion .card { position: absolute; top: calc(var(--nav-h) + 4vh); bottom: 5vh; width: min(31vw, 500px); }
html.motion .card:nth-child(1) { right: 5vw; }
html.motion .card:nth-child(2) { right: calc(50% - min(31vw, 500px) / 2); }
html.motion .card:nth-child(3) { left: 5vw; }

/* ---------- Studio ---------- */
.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6vh 6vw;
  align-items: start;
  padding: clamp(96px, 18vh, 200px) var(--gutter);
}
.studio h2 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.studio__media { order: 2; margin: 0; }
.studio__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.studio__media figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--ink-soft); }
.studio__text { order: 1; padding-top: 2vh; }
.studio__text p { margin: 0 0 1.1em; max-width: 46ch; font-size: 1.1rem; line-height: 1.7; color: var(--ink-soft); }
.studio__text p:first-child { color: var(--ink); }
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 1.05rem;
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 0.4em;
}
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Notes ---------- */
.notes { padding: clamp(90px, 16vh, 180px) var(--gutter); background: var(--stone); }
.notes h2 {
  margin: 0 0 7vh;
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.notes__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.4vw; align-items: start; }
.note {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
  cursor: pointer;
}
.note__img { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--canvas); }
.note--wide .note__img { aspect-ratio: 16 / 11; }
.note__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.note__meta { margin-top: 6px; font-size: 0.85rem; color: var(--ink-soft); }
.note__title { font-size: 1.32rem; font-weight: 400; line-height: 1.35; }
@media (hover: hover) and (pointer: fine) {
  .note:hover .note__img img { transform: scale(1.04); }
  .note:hover .note__title { text-decoration: underline; text-underline-offset: 0.3em; }
}

/* ---------- Quote ---------- */
.quote {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 6vw;
  align-items: center;
  padding: clamp(90px, 16vh, 180px) var(--gutter);
}
.quote__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  margin: 0 0 0.8em;
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
  font-weight: 200;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.quote footer { display: flex; flex-direction: column; gap: 2px; }
.quote footer strong { font-weight: 500; }
.quote footer span { color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 5vh 6vw;
  padding: clamp(80px, 12vh, 140px) var(--gutter) clamp(90px, 16vh, 180px);
  border-top: 1px solid var(--line);
}
.faq h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 200;
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary {
  position: relative;
  display: block;
  padding: 24px 0 24px 44px;
  font-size: 1.24rem;
  font-weight: 400;
  list-style: none;
  cursor: pointer;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::before,
.faq__list summary::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
}
.faq__list summary::after { transform: rotate(90deg); }
.faq__list details[open] summary::after { transform: rotate(0deg); }
.faq__list details p { margin: 0 0 26px; max-width: 56ch; color: var(--ink-soft); }

/* ---------- Close ---------- */
.close {
  padding: clamp(110px, 22vh, 240px) var(--gutter);
  background: var(--sage);
  color: var(--on-dark);
  text-align: center;
}
.close h2 {
  margin: 0 0 0.35em;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.03em;
}
.close p { max-width: 42ch; margin: 0 auto 2.2em; font-size: 1.12rem; color: var(--sage-pale); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  font-size: 1.02rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, transform 0.14s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn i { font-size: 1.2rem; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) {
  .btn--light:hover { background: #ffffff; }
  .btn--dark:hover { background: var(--sage); }
}
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Footer ---------- */
.footer { padding: 12vh var(--gutter) 4vh; background: var(--graphite); color: var(--on-dark); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 5vh 5vw; padding-bottom: 9vh; }
.footer__brand { display: inline-flex; align-items: center; gap: 22px; font-size: clamp(3rem, 7vw, 6rem); font-weight: 200; line-height: 1; text-decoration: none; }
.footer__nav,
.footer__contact { display: flex; flex-direction: column; gap: 8px; }
.footer__nav a,
.footer__contact a { min-height: 32px; text-decoration: none; color: var(--on-dark); }
.footer__nav a:hover,
.footer__contact a:hover { color: var(--sage-pale); }
.footer__contact p { margin: 0; color: var(--on-dark-soft); }
.footer__bottom {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 4vw;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.88rem;
  color: var(--on-dark-soft);
}
.footer__bottom p { margin: 0; }
.footer__links { justify-self: end; }
.footer__links a { margin-inline-start: 18px; text-decoration: none; }
.footer__links a:hover { color: var(--on-dark); }
.footer__demo { grid-column: 1 / -1; }

/* ---------- Sheet (dialog) ---------- */
.sheet {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(640px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
  transform: translateX(-100%);
  transition: transform 0.55s var(--ease-out), overlay 0.55s allow-discrete, display 0.55s allow-discrete;
}
.sheet[open] { transform: none; }
@starting-style { .sheet[open] { transform: translateX(-100%); } }
.sheet::backdrop { background: rgba(20, 24, 21, 0.5); }
.sheet__close {
  position: sticky;
  top: 16px;
  float: left;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 1.4rem;
  cursor: pointer;
}
.sheet__body { padding: 76px clamp(22px, 4vw, 48px) 48px; }
.sheet__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 28px; }
.sheet__meta { margin: 0 0 6px; font-size: 0.9rem; color: var(--ink-soft); }
.sheet__title { margin: 0 0 0.5em; font-size: clamp(2rem, 4vw, 3rem); font-weight: 200; line-height: 1.05; letter-spacing: -0.02em; }
.sheet__lead { margin: 0 0 1.4em; font-size: 1.1rem; color: var(--ink-soft); }
.sheet__body p { max-width: 52ch; }
.palette { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 26px 0 30px; padding: 0; list-style: none; }
.palette li { display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; }
.palette span { display: block; aspect-ratio: 1; border: 1px solid var(--line); }

.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 0.95rem; }
.field input,
.field textarea {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(27, 31, 28, 0.28);
  border-radius: 0;
  background: #ffffff;
  font: inherit;
  color: var(--ink);
  caret-color: var(--sage);
  transition: border-color 0.16s;
}
.field textarea { resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: rgba(27, 31, 28, 0.5); }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--sage); outline-offset: 1px; border-color: var(--sage); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__error { margin: 0; font-size: 0.9rem; color: var(--error); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form__done { grid-column: 1 / -1; margin: 0; font-size: 1.08rem; color: var(--sage); }

.wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 26px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sage);
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 0.35em;
  cursor: pointer;
}
.wa i { font-size: 1.35rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  max-width: min(92vw, 460px);
  padding: 14px 18px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 0.98rem;
  box-shadow: 0 20px 40px -20px rgba(27, 31, 28, 0.6);
  transform: translateX(-50%);
}
.toast[hidden] { display: none; }

/* ---------- Accessibility control ---------- */
.a11y {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(27, 31, 28, 0.5);
}
.a11y:hover { border-color: var(--sage); color: var(--sage); }
.a11y-panel {
  position: fixed;
  left: 18px;
  bottom: 76px;
  z-index: 45;
  display: grid;
  gap: 6px;
  min-width: 210px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 20px 40px -20px rgba(27, 31, 28, 0.5);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel__title { margin: 0 0 4px; font-weight: 500; }
.a11y-panel button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: transparent;
  text-align: start;
  cursor: pointer;
}
.a11y-panel button[aria-pressed="true"] { border-color: var(--sage); color: var(--sage); }
html.a11y-text { font-size: 115%; }
html.a11y-contrast { --ink-soft: #1b1f1c; --on-dark-soft: #eef0ec; --sage-pale: #eef0ec; --line: rgba(27, 31, 28, 0.4); }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav__cta span { display: none; }
  .nav__cta { padding: 0 12px; }
  .nav__brand { font-size: 1.3rem; }

  .menu { grid-template-columns: 1fr; align-content: end; gap: 5vh; }

  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.6rem); }

  .compose__stage { gap: 5vh; padding: calc(var(--nav-h) + 4vh) var(--gutter) 6vh; }
  .compose__text { grid-template-columns: 1fr; gap: 0; }
  .compose h2,
  .compose__p--a,
  .compose__p--b { grid-column: 1; grid-row: auto; text-align: start; justify-self: start; }
  .compose h2 { margin-bottom: 0.3em; font-size: clamp(2.2rem, 9vw, 3rem); }
  .compose__p { margin-top: 0.6em; font-size: 0.98rem; }
  .compose__p--b { display: none; }
  .compose__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .float img { aspect-ratio: 1; }
  .float figcaption { margin-top: 6px; }

  .space { grid-template-columns: 1fr; gap: 14px; }
  .space__frame,
  .space__title,
  .space__note,
  .space__open { grid-column: 1; grid-row: auto; }
  .space__open { margin-top: 0; justify-self: start; }
  html.motion .space__frame { clip-path: inset(15% 6% 34% 6%); }
  html.motion .space__title { top: auto; bottom: 13%; transform: none; width: auto; inset-inline: var(--gutter); }
  html.motion .space__note { display: none; }
  html.motion .space__open { bottom: 34%; }
  html.motion .space__title h3 { font-size: 2.3rem; }

  .process__body { grid-template-columns: 1fr; gap: 0; }
  .process__media { order: 0; top: calc(var(--nav-h) + 6px); height: 30vh; z-index: 1; }
  .process__steps { order: 1; }
  .pstep { min-height: 52vh; }

  .disc__blueprint { width: 90vw; left: 5vw; top: 18vh; transform: none; }
  html.motion .disc__pin { height: auto; padding: clamp(90px, 16vh, 180px) var(--gutter); }
  html.motion .disc__title { position: relative; display: block; text-align: start; margin: 0 0 6vh; }
  html.motion .disc__cards,
  .disc__cards { position: relative; display: grid; grid-template-columns: 1fr; gap: 16px; }
  html.motion .card { position: relative; inset: auto; width: auto; right: auto; left: auto; }

  .studio { grid-template-columns: 1fr; }
  .studio__media { order: 1; }
  .studio__text { order: 2; }

  .notes__grid { grid-template-columns: 1fr; gap: 6vh; }
  .quote { grid-template-columns: 1fr; }
  .quote__img { width: 70%; }
  .faq { grid-template-columns: 1fr; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { grid-template-columns: 1fr; }
  .footer__links { justify-self: start; }
  .footer__links a { margin-inline: 0 18px; }

  .form { grid-template-columns: 1fr; }
}
