/* ==========================================================================
   Lev HaMakom — site styles (Design 2)
   1. Base   2. Layout   3. Components   4. Header   5. Footer   6. Sections/Pages
   All values come from tokens.css.
   ========================================================================== */

/* 1. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font-family); font-size: var(--text-body-m); line-height: var(--text-body-m-lh);
  color: var(--color-text-primary); background: var(--color-bg-page);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--color-border-focus); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.h1 { font-size: var(--text-h1-size); line-height: var(--text-h1-lh); font-weight: 700; }
.h2 { font-size: var(--text-h2-size); line-height: var(--text-h2-lh); font-weight: 600; }
.h3 { font-size: var(--text-h3-size); line-height: var(--text-h3-lh); font-weight: 600; }
.h4 { font-size: var(--text-h4-size); line-height: var(--text-h4-lh); font-weight: 500; }
.body-l { font-size: var(--text-body-l); line-height: var(--text-body-l-lh); }
.body-s { font-size: var(--text-body-s); line-height: var(--text-body-s-lh); }
.bold { font-weight: 700; }
.text-brand { color: var(--color-text-brand); }
.text-secondary { color: var(--color-text-secondary); }
.text-inverse { color: var(--color-text-inverse); }
.center { text-align: center; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--color-bg-brand); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 16px; }

/* 2. Layout -------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--studio { max-width: calc(800px + 2 * var(--gutter)); } /* studio pages: content capped at 800px */
.container--narrow { max-width: calc(909px + 2 * var(--gutter)); }
.section { padding-block: clamp(56px, 7vw, var(--spacing-6xl)); }
.section--subtle { background: var(--color-bg-subtle); }
.stack { display: flex; flex-direction: column; }
.page-title { padding-block: clamp(40px, 5vw, 64px) var(--spacing-xl); }
.page-title .h2 { color: var(--color-text-brand); }
.page-title p { max-width: 1000px; margin-top: var(--spacing-xs); }
.container--studio .page-title { padding-bottom: 40px; } /* Figma: 40px from the intro to the first card */
.container--studio .page-title p { margin-top: 0; }

/* Wave background (sky-50 band with a soft curved edge, like the Figma "גלים" vector) */
.wave-bg { position: relative; isolation: isolate; }
.wave-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-bg-subtle);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 660' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H1440 V615 C 1200 650 960 655 720 622 S 240 585 0 625 Z' fill='%23000'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 660' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H1440 V615 C 1200 650 960 655 720 622 S 240 585 0 625 Z' fill='%23000'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* 3. Components ---------------------------------------------------------- */
/* Icon (SVG via mask so it takes currentColor) */
.icon { display: inline-block; width: 24px; height: 24px; flex: none; color: inherit; line-height: 0; }
.icon svg { width: 100%; height: 100%; display: block; fill: currentColor; }

/* Button — Figma "Button": Primary / Secondary / Ghost / Ghost Inverse × Medium / Large */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--spacing-xs);
  height: 40px; padding-inline: var(--spacing-lg); border-radius: var(--radius-full); border: 2px solid transparent;
  font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--lg { height: 48px; padding-inline: var(--spacing-xl); }
.btn--primary { background: var(--color-action-primary); color: var(--color-text-inverse); }
.btn--primary:hover { background: var(--color-action-primary-hover); }
.btn--secondary { background: var(--color-action-secondary); color: var(--color-text-brand); }
.btn--secondary:hover { background: var(--color-action-secondary-hover); }
.btn--ghost { border-color: var(--color-border-brand); color: var(--color-text-brand); background: transparent; }
.btn--ghost:hover { background: var(--color-action-secondary-hover); }
.btn--ghost-inverse { border-color: var(--color-border-inverse); color: var(--color-text-inverse); background: transparent; }
.btn--ghost-inverse:hover { background: var(--color-bg-glass); }
.btn[disabled] { background: var(--color-action-disabled); color: var(--color-text-disabled); border-color: transparent; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--spacing-md); }

/* Chip — Highlight / Subtle */
.chip { display: inline-flex; align-items: center; min-height: 22px; padding: 1px var(--spacing-xs); border-radius: var(--radius-full);
  font-size: var(--text-body-s); line-height: 20px; background: var(--color-bg-subtle); color: var(--color-text-primary); }
.chip--highlight { background: var(--color-bg-accent); color: var(--color-text-inverse); font-weight: 700; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--spacing-xs); }

/* Feature list (icon + text rows) */
.features { display: grid; gap: var(--spacing-sm); }
.features li { display: flex; align-items: center; gap: var(--spacing-sm); }
.features .icon { color: var(--color-icon-brand); }

/* Form fields — Input Field / Dropdown / Text Area / Checkbox */
.field { display: grid; gap: var(--spacing-xs); }
.field__label { font-size: var(--text-body-s); line-height: 20px; font-weight: 700; }
.field__box { position: relative; display: flex; align-items: center; gap: var(--spacing-xs); min-height: 48px; padding-inline: var(--spacing-md);
  background: var(--color-bg-page); border: 1px solid var(--color-border-default); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; }
.field__box:hover { border-color: var(--color-border-hover); }
.field__box:focus-within { border-color: var(--color-border-focus); }
.field__box .icon { color: var(--color-icon-secondary); }
.field__control { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding-block: 12px; font-size: 16px; line-height: 24px; }
.field__control::placeholder { color: var(--color-text-secondary); }
select.field__control { appearance: none; cursor: pointer; }
.field__box--textarea { align-items: stretch; padding-block: var(--spacing-sm); }
textarea.field__control { min-height: 104px; resize: vertical; padding-block: 0; }
.field__foot { display: flex; justify-content: space-between; gap: var(--spacing-sm); font-size: var(--text-body-s); line-height: 20px; color: var(--color-text-secondary); }
.field__error { color: var(--color-text-error); display: none; }
.field.is-invalid .field__box { border-color: var(--color-border-error); box-shadow: inset 0 0 0 1px var(--color-border-error); }
.field.is-invalid .field__error { display: block; }

.checkbox { display: inline-flex; align-items: flex-start; gap: var(--spacing-xs); cursor: pointer; }
.checkbox input { appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-xs); background: var(--color-bg-page); cursor: pointer; display: grid; place-content: center; }
.checkbox input:checked { background: var(--color-action-primary); border-color: var(--color-action-primary); }
.checkbox input:checked::after { content: ""; width: 14px; height: 14px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' %3E%3Cpath fill='currentColor' d='m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' %3E%3Cpath fill='currentColor' d='m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.checkbox.is-invalid input { border-color: var(--color-border-error); border-width: 2px; }
.checkbox a { color: var(--color-text-brand); text-decoration: underline; }

/* Accordion — native <details> */
.accordion { display: grid; gap: var(--spacing-xs); }
.accordion details { border-radius: 0; border-bottom: 1px solid var(--color-border-default); }
.accordion summary { display: flex; align-items: center; gap: var(--spacing-md); padding: var(--spacing-md); cursor: pointer; list-style: none;
  font-size: var(--text-body-l); line-height: 28px; font-weight: 700; transition: background .15s, color .15s; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; margin-inline-start: auto; width: 24px; height: 24px; flex: none; background: var(--color-icon-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' %3E%3Cpath fill='currentColor' d='M465-364.5q-7-2.5-13-8.5L268-557q-11-11-11-28t11-28q11-11 28-11t28 11l156 156 156-156q11-11 28-11t28 11q11 11 11 28t-11 28L508-373q-6 6-13 8.5t-15 2.5q-8 0-15-2.5Z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' %3E%3Cpath fill='currentColor' d='M465-364.5q-7-2.5-13-8.5L268-557q-11-11-11-28t11-28q11-11 28-11t28 11l156 156 156-156q11-11 28-11t28 11q11 11 11 28t-11 28L508-373q-6 6-13 8.5t-15 2.5q-8 0-15-2.5Z'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .2s var(--ease); }
.accordion summary:hover { background: var(--color-bg-subtle); color: var(--color-text-brand); }
.accordion details[open] { background: var(--color-bg-subtle); }
.accordion details[open] summary { color: var(--color-text-brand); }
.accordion details[open] summary::after { transform: rotate(180deg); background: var(--color-icon-brand); }
.accordion details { transition: background-color .3s; }
.accordion summary::after { transition: transform .38s cubic-bezier(.4, 0, .2, 1), background-color .3s; }
.accordion details.is-closing { background: transparent; }
.accordion details.is-closing summary { color: inherit; }
.accordion details.is-closing summary::after { transform: none; background: var(--color-icon-primary); }
.accordion ul { padding: 0 var(--spacing-md) var(--spacing-md); display: grid; gap: var(--spacing-xs); }
.accordion li { position: relative; padding-inline-start: 18px; }
.accordion li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-icon-brand); }

/* Card */
.card { background: var(--color-bg-page); border: 1px solid var(--color-border-default); border-radius: var(--radius-sm); overflow: hidden; }
.card--shadow { border: 0; box-shadow: var(--shadow-soft); }

/* 4. Header (Figma "Navigation": Floating / Sticky) ---------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-bg-page); box-shadow: var(--shadow-soft); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-xl); min-height: var(--header-h); max-width: none; } /* full width: logo pinned right, menu pinned left */
.site-header__logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--spacing-2xl); }
.nav__list { display: flex; align-items: center; gap: var(--spacing-2xl); }
.nav__link { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 700; padding-block: 8px; transition: color .15s; }
.nav__link::after { content: ""; width: 100%; height: 8px; border-radius: 0; background: transparent; transition: background .15s; }
.nav__link:hover { color: var(--color-text-brand); }
.nav__link[aria-current="page"] { color: var(--color-text-brand); }
.nav__link[aria-current="page"]::after { background: var(--color-bg-accent); }
/* Studio dropdown */
.nav__item--dd { position: relative; }
button.nav__link { border: 0; background: none; font: inherit; font-weight: 700; color: inherit; cursor: pointer; }
.nav__label { display: inline-flex; align-items: center; gap: 2px; }
.nav__chev { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.nav__link[data-current] { color: var(--color-text-brand); }
.nav__link[data-current]::after { background: var(--color-bg-accent); }
.nav__sub { position: absolute; top: calc(100% + 10px); inset-inline-start: 50%; translate: 50% 0; min-width: 200px; display: grid; gap: 2px; padding: var(--spacing-xs);
  background: var(--color-bg-page); border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgb(24 64 72 / .14), 0 2px 6px rgb(24 64 72 / .06);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .22s var(--ease), transform .28s var(--ease), visibility .22s; z-index: 60; }
.nav__sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; } /* hover bridge */
.nav__sublink { display: block; padding: 10px var(--spacing-md); border-radius: var(--radius-xs); font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.nav__sublink:hover, .nav__sublink:focus-visible { background: var(--color-bg-subtle); color: var(--color-text-brand); }
.nav__sublink[aria-current="page"] { color: var(--color-text-brand); }
@media (min-width: 1181px) {
  .nav__item--dd:hover .nav__sub, .nav__item--dd.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
  .nav__item--dd:hover .nav__chev, .nav__item--dd.is-open .nav__chev { transform: rotate(180deg); }
}
/* Figma: 24x24 icon (20px glyph), same 40px gap as the items, centred on the label line (not on label + indicator) */
.nav__wa { position: relative; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-bottom: 8px; color: var(--color-icon-primary); transition: color .15s; } /* 2px below the geometric centre: optical alignment with the Hebrew labels */
.nav__wa::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; background: var(--color-bg-subtle); opacity: 0; transition: opacity .15s; } /* hover halo, outside the layout box */
.nav__wa .icon { position: relative; }
.nav__wa:hover { color: var(--color-icon-brand); }
.nav__wa:hover::before { opacity: 1; }
.nav__wa .icon { width: 20px; height: 20px; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: var(--radius-sm); background: transparent; cursor: pointer; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--color-icon-primary); transition: transform .2s var(--ease), opacity .2s; }
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* Home (Floating variant): the 60px menu box starts 22px below the top of the hero,
   scrolls up with the page and sticks once it reaches the top (then becomes the Sticky bar). */
.page-home { --float-offset: 22px; }
.page-home .site-header { margin-top: var(--float-offset); margin-bottom: calc(-1 * (var(--header-h) + var(--float-offset))); background: transparent; box-shadow: none; transition: box-shadow .4s var(--ease); }
/* Sticky bar background grows out of the menu box (left) across the screen when the header docks */
/* Docking: the white band sweeps in at the menu box's 48px height, then band + box grow to 60px together (undocking runs in reverse) */
.page-home .site-header::before { content: ""; position: absolute; inset: 0; background: var(--color-bg-page); transform: scaleX(0); transform-origin: left center; clip-path: inset(0 0 12px 0);
  transition: clip-path .3s cubic-bezier(.65, 0, .35, 1), transform .55s cubic-bezier(.65, 0, .35, 1) .25s; }
.page-home .site-header__inner { position: relative; }
.page-home .site-header .site-header__logo { opacity: 0; transform: translateX(16px); pointer-events: none; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.page-home .site-header .nav { align-self: stretch; background: linear-gradient(var(--color-bg-page), var(--color-bg-page)) top / 100% 48px no-repeat; transition: background-size .3s cubic-bezier(.65, 0, .35, 1); padding-inline: 24px; margin-inline-start: auto; margin-inline-end: calc(-1 * var(--gutter)); } /* box flush to the left edge, as in Figma; it stays exactly in place when docking. White box is only 48px: labels centred, underline flush with its bottom */
.page-home .site-header.is-stuck { box-shadow: var(--shadow-soft); transition-delay: .5s; }
.page-home .site-header.is-stuck::before { transform: scaleX(1); clip-path: inset(0); transition: transform .55s cubic-bezier(.65, 0, .35, 1), clip-path .3s cubic-bezier(.65, 0, .35, 1) .5s; }
.page-home .site-header.is-stuck .nav { background-size: 100% 100%; transition-delay: .5s; }
.page-home .site-header.is-stuck .site-header__logo { opacity: 1; transform: none; pointer-events: auto; transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) { .page-home .site-header, .page-home .site-header::before, .page-home .site-header .site-header__logo, .page-home .site-header .nav { transition: none; } }

@media (max-width: 1180px) {
  .site-header__logo img { height: 36px; }
  .nav-toggle { display: grid; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--color-bg-page); padding: var(--spacing-md) var(--gutter) var(--spacing-xl); box-shadow: 0 16px 24px rgb(24 64 72 / .08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s; max-height: calc(100dvh - var(--header-h)); overflow: auto; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: flex; flex-direction: row; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--color-border-default); font-size: 18px; }
  .nav__link::after { width: 4px; height: 20px; }
  button.nav__link { width: 100%; text-align: start; }
  .nav__label { flex: 1; justify-content: space-between; }
  .nav__sub { position: static; translate: none; transform: none; box-shadow: none; padding: 0 var(--spacing-md); min-width: 0; border-radius: 0;
    opacity: 1; visibility: visible; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
  .nav__sub > li { overflow: hidden; min-height: 0; }
  .nav__sub::before { display: none; }
  .nav__item--dd.is-open .nav__sub { grid-template-rows: 1fr 1fr; padding-block: var(--spacing-xs); border-bottom: 1px solid var(--color-border-default); }
  .nav__item--dd.is-open .nav__chev { transform: rotate(180deg); }
  .nav__sublink { padding: 12px 4px; font-size: 17px; }
  .nav__wa::before { display: none; }
  .nav__wa { margin-top: var(--spacing-md); margin-bottom: 0; width: auto; gap: 8px; border-radius: var(--radius-full); border: 2px solid var(--color-border-brand); color: var(--color-text-brand); height: 44px; display: flex; justify-content: center; font-weight: 600; }
  .nav__wa::after { content: "וואטסאפ"; }
  .page-home { --float-offset: 0px; }
  .page-home .site-header { background: var(--color-bg-page); box-shadow: var(--shadow-soft); }
  .page-home .site-header::before { transform: none; clip-path: none; }
  .page-home .site-header .site-header__logo { opacity: 1; transform: none; pointer-events: auto; }
  .page-home .site-header .nav { align-self: auto; padding: var(--spacing-md) var(--gutter) var(--spacing-xl); margin: 0; background: var(--color-bg-page); }
}

/* 5. Footer -------------------------------------------------------------- */
.site-footer { background: var(--color-bg-brand); color: var(--color-text-inverse); padding-block: clamp(56px, 8vw, 128px); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: var(--spacing-3xl); flex-wrap: wrap; }
.site-footer__brand { display: grid; gap: var(--spacing-lg); justify-items: start; }
.site-footer__brand img { width: 300px; }
.site-footer__address { display: grid; gap: 2px; }
.site-footer__contact { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-md); }
.site-footer__contact li + li { padding-inline-start: var(--spacing-md); border-inline-start: 1px solid var(--color-bg-accent); }
.site-footer__contact a:hover, .site-footer__cols a:hover { color: var(--color-text-brand); }
.site-footer__cols { display: flex; gap: var(--spacing-3xl); }
.site-footer__cols h2 { color: var(--color-text-brand); font-size: var(--text-body-l); line-height: 28px; font-weight: 700; margin-bottom: 6px; }
.site-footer__cols ul { display: grid; gap: var(--spacing-sm); }
@media (max-width: 760px) {
  .site-footer__inner { flex-direction: column; align-items: stretch; }
  .site-footer__brand img { width: 220px; }
  .site-footer__cols { gap: var(--spacing-2xl); flex-wrap: wrap; }
}

/* 6. Sections ------------------------------------------------------------ */
/* Home hero */
.hero { position: relative; min-height: 440px; display: flex; align-items: center; color: var(--color-text-inverse); background: var(--color-bg-brand) center / cover no-repeat; }
.hero__inner { display: grid; gap: var(--spacing-md); justify-items: start; padding-block: 104px 56px; }
.hero__logo { width: min(391px, 70vw); margin-bottom: var(--spacing-xs); }
.hero .h1 { max-width: 560px; }
@media (max-width: 1180px) { .hero__inner { padding-block: calc(var(--header-h) + 40px) 48px; } .hero__logo { display: none; } }

/* Home intro */
.intro { display: grid; grid-template-columns: 1fr auto; gap: var(--spacing-2xl); align-items: end; }
.intro__text { display: grid; gap: var(--spacing-md); max-width: 1045px; }
.intro__mark { width: 138px; color: var(--color-icon-primary); }
@media (max-width: 760px) { .intro { grid-template-columns: 1fr; } .intro__mark { width: 100px; } }

/* Facility image cards (home) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-md); margin-top: var(--spacing-6xl); }
.tile { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 314 / 267; background: var(--color-bg-muted); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
/* Tile hover: strip keeps its size; a brand fill sweeps in from the reading side, text turns white, an arrow slides in */
.tile__label { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-xs); height: 56px; padding-inline: var(--spacing-md); background: var(--color-bg-glass); backdrop-filter: blur(6px); font-size: var(--text-h3-size); line-height: 36px; font-weight: 600; isolation: isolate; transition: color .35s var(--ease); }
.tile__label::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-bg-accent); transform: scaleX(0); transform-origin: right center; transition: transform .45s cubic-bezier(.65, 0, .35, 1); }
.tile__label::after { content: ""; width: 24px; height: 24px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M313-440l224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M313-440l224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; transform: translateX(12px); transition: opacity .3s var(--ease), transform .45s cubic-bezier(.22, 1, .36, 1); }
.tile:hover .tile__label, .tile:focus-visible .tile__label { color: var(--color-text-inverse); }
.tile:hover .tile__label::before, .tile:focus-visible .tile__label::before { transform: scaleX(1); }
.tile:hover .tile__label::after, .tile:focus-visible .tile__label::after { opacity: 1; transform: none; transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) { .tile__label::before, .tile__label::after { transition: none; } }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

/* Wellness trio (home) */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 205px)); justify-content: space-between; gap: var(--spacing-2xl); max-width: 902px; margin: var(--spacing-6xl) auto 0; text-align: center; }
.trio__item { display: grid; justify-items: center; gap: var(--spacing-xs); }
.trio__item img { height: 72px; width: auto; margin-bottom: var(--spacing-md); }
.trio__item .h3 + .rule { margin-block: 0 var(--spacing-xs); }
.rule { width: 22px; height: 2px; border-radius: var(--radius-full); background: var(--color-bg-accent); }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; justify-content: center; } }

/* Hours */
.hours { --hours-pt: clamp(32px, 4vw, 56px); position: relative; padding-block: var(--hours-pt) clamp(80px, 9vw, 140px); }
/* Vertical tab hangs from the top edge of the section, to the right of the table (Figma "Frame 34") */
.hours .container--narrow { max-width: calc(909px + 112px + 2 * var(--gutter)); }
.hours__tab { position: absolute; right: var(--gutter); top: calc(-1 * var(--hours-pt) - 25px); z-index: 1; height: 258px; width: max-content; writing-mode: vertical-rl; line-height: 1; white-space: nowrap; background: var(--color-bg-brand); color: var(--color-text-inverse); padding: var(--spacing-lg) 13px; text-align: end; font-size: var(--text-body-l); font-weight: 700; }
.hours__wrap { padding-inline-start: 112px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hours-table { width: 100%; min-width: 620px; border-collapse: collapse; text-align: start; table-layout: fixed; } /* fixed: the 3 time columns share the width equally */
.hours-table th:first-child { width: 150px; }
.hours-table th { padding: 0 0 var(--spacing-lg); font-size: var(--text-body-s); font-weight: 700; color: var(--color-text-brand); text-align: start; }
.hours-table td { padding-block: var(--spacing-lg); border-top: 1px solid var(--color-border-divider); white-space: nowrap; }
.hours-table td:first-child { font-weight: 700; width: 150px; }
.hours-table td:not(:first-child) { direction: ltr; text-align: right; unicode-bidi: plaintext; }
@media (max-width: 1180px) { .hours__wrap { padding-inline-start: 72px; } }
/* "היום" chip sits to the right of the day name; every row reserves its space so the days stay aligned */
.hours-table th:first-child, .hours-table td:first-child { padding-inline-start: 56px; }
.hours-table td:first-child { position: relative; }
/* Hours page (Figma "שעות פעילות"): tab hangs from the top of the background, under the header,
   and the wavy bottom of the background overlaps the footer */
.page-hours .hours { z-index: 1; margin-bottom: -90px; }
.page-hours .hours__tab { top: calc(-1 * var(--hours-pt)); }
.page-hours .site-footer { padding-top: calc(clamp(56px, 8vw, 128px) + 90px); }
.hours-table .chip { position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) { .hours-table th:first-child, .hours-table td:first-child { padding-inline-start: 52px; } }
@media (max-width: 760px) { .hours__tab { position: static; writing-mode: horizontal-tb; display: inline-block; border-radius: var(--radius-sm); margin-bottom: var(--spacing-xl); } .hours__wrap { padding-inline-start: 0; } }

/* App */
.app { display: grid; grid-template-columns: minmax(0, 436px) minmax(0, 478px); justify-content: center; gap: var(--spacing-6xl); align-items: center; }
.app__img { border-radius: var(--radius-sm); }
.app__eyebrow { display: inline-flex; align-items: center; gap: var(--spacing-xs); color: var(--color-text-brand); font-size: var(--text-body-s); font-weight: 500; }
.app__eyebrow::after { content: ""; width: 24px; height: 1px; background: currentColor; }
.app__text { display: grid; gap: var(--spacing-md); }
.steps { display: grid; gap: var(--spacing-xs); padding-top: var(--spacing-sm); }
.steps li { display: grid; grid-template-columns: 40px 80px 1fr; gap: var(--spacing-sm); align-items: center; }
.steps .num { color: var(--color-text-brand); font-size: var(--text-h3-size); line-height: 36px; font-weight: 600; }
.stores { display: flex; align-items: center; gap: var(--spacing-sm); margin-top: 0; }
.store-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: var(--radius-sm);
  background: var(--color-action-primary); color: var(--color-text-inverse); text-align: left; transition: background-color .2s, transform .2s var(--ease), box-shadow .2s; }
.store-btn svg { width: 22px; height: 22px; flex: none; }
.store-btn__txt { display: grid; line-height: 1.05; }
.store-btn__txt small { font-size: 10px; font-weight: 500; letter-spacing: .02em; }
.store-btn__txt b { font-size: 17px; font-weight: 700; white-space: nowrap; }
.store-btn:hover { background: var(--color-action-primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.store-btn:focus-visible { outline: 2px solid var(--color-border-focus); outline-offset: 3px; }
.stores > img { width: 70px; margin-inline-start: var(--spacing-xs); }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; gap: var(--spacing-2xl); } .app__media { order: -1; } .steps li { grid-template-columns: 36px 1fr; } .steps li p:last-child { grid-column: 2; } }

/* Join */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 676px); gap: var(--spacing-6xl); align-items: center; }
.join img.photo { border-radius: var(--radius-sm); }
.join__text { display: grid; gap: var(--spacing-lg); justify-items: end; justify-self: end; text-align: left; }
.join__text .mark { width: 153px; }
.join__sub { max-width: 34ch; }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; gap: var(--spacing-2xl); } .join img.photo { order: -1; } .join__text { justify-self: stretch; justify-items: start; text-align: start; } }

/* Facilities */
.fac-hero { position: relative; color: var(--color-text-inverse); background: var(--sky-100) left center / cover no-repeat; } /* Figma crop (2880x876); anchored left so the dark tiles stay in view */
.fac-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgb(255 255 255 / .1) 11.5%, rgb(6 11 44 / .8) 100%); pointer-events: none; } /* Figma overlay: light on the tiles, deep navy behind the text */
.fac-hero > .container { position: relative; }
.fac-hero__inner { display: grid; gap: var(--spacing-lg); justify-items: start; padding-block: clamp(48px, 4.7vw, 67px) clamp(56px, 6.3vw, 91px); max-width: 640px; }
.fac-hero .body-s { font-weight: 500; }
.fac-hero .chip-row { gap: var(--spacing-xs); }
.fac-hero .h1 mark { background: var(--color-bg-accent); color: var(--color-text-inverse); padding-inline: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.fac-hero p { font-weight: 700; }
.pools { display: grid; grid-template-columns: 1fr 1px 1fr; gap: var(--spacing-4xl); }
.pools__divider { background: var(--color-border-brand); }
.fac-block { display: grid; gap: var(--spacing-md); align-content: start; }
.section--pools { padding-block: clamp(40px, 4vw, 56px); } /* tighter than Figma's 500px divider, per review: content starts close to the hero */
@media (min-width: 901px) { .pools { align-items: start; } .pools__divider { align-self: stretch; } }
.fac-block__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-xs); } /* chips sit under the title, side by side */
.fac-block__head > .h2 { flex-basis: 100%; }
.fac-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-4xl); align-items: center; }
.fac-row img { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 620 / 440; object-fit: cover; }
.fac-row--reverse .fac-row__media { order: -1; }
/* Gym (Figma 75:5207): light wave band, text 635 | 64 | photos 613 = large 344 square + stack of two (254 wide) */
.section--gym { padding-block: clamp(56px, 6.7vw, 96px); }
.section--gym::before { inset-block: 14px -13px; }
.gym { grid-template-columns: minmax(0, 635fr) minmax(0, 613fr); }
/* Figma: brand wave mark (138x51) at the far end of the text column, bottom aligned ~8px above the buttons' baseline */
.gym .fac-block { position: relative; align-self: stretch; align-content: center; } /* column spans the full row so its bottom = bottom of the photos */
.gym__mark { position: absolute; inset-inline-end: 0; bottom: 0; width: 138px; color: var(--color-icon-primary); }
@media (max-width: 1180px) { .gym__mark { inset-inline-end: 0; } }
@media (max-width: 760px) { .gym__mark { position: static; width: 100px; height: 38px !important; justify-self: end; } }
.chip--on-subtle { background: var(--color-bg-page); }
.gym-grid { display: grid; grid-template-columns: minmax(0, 254fr) minmax(0, 344fr); gap: var(--spacing-md); }
.gym-grid__stack { display: grid; grid-template-rows: 168fr 159fr; gap: var(--spacing-md); height: 0; min-height: 100%; } /* follows the large square's height */
.fac-row .gym-grid img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: var(--radius-xs); }
.fac-row .gym-grid .gym-grid__main { aspect-ratio: 1; height: auto; }
.gym-grid__stack img { min-height: 0; }
.section--fac { padding-block: clamp(48px, 4.5vw, 64px); }
@media (max-width: 900px) { .gym { grid-template-columns: 1fr; } .section--pools { padding-block: 40px; } }
@media (max-width: 900px) { .pools { grid-template-columns: 1fr; gap: var(--spacing-2xl); } .pools__divider { height: 1px; } .fac-row { grid-template-columns: 1fr; gap: var(--spacing-xl); } .fac-row__media { order: -1; } }
.cta-band { display: grid; justify-items: center; gap: var(--spacing-md); text-align: center; }

/* Studio classes */
/* Studio classes (Figma "Frame 63"): cards 40px apart; text column (max 460) sits 40px from the 260px photo,
   vertically centred; title+coach tight, 16px to the description, 8px to the chips */
.classes { display: grid; gap: 40px; }
.class-card { display: grid; grid-template-columns: 260px 1fr; column-gap: 40px; align-items: center; min-height: 244px; }
.class-card .class-card__media { order: -1; align-self: stretch; }
.class-card--media-start { grid-template-columns: 1fr 260px; }
.class-card--media-start .class-card__media { order: 1; }
.class-card__media img { width: 100%; height: 100%; object-fit: cover; }
.class-card__body { display: grid; align-content: center; gap: 0; max-width: 460px; width: 100%; padding-block: 20px; justify-self: start; padding-inline-end: var(--spacing-lg); }
.class-card--media-start .class-card__body { justify-self: end; padding-inline: var(--spacing-lg) 0; }
.class-card__coach { color: var(--color-text-brand); font-size: var(--text-body-m); line-height: 24px; margin-bottom: var(--spacing-md); }
.class-card .chip-row { margin-top: var(--spacing-xs); }
/* Studio promo: dark brand card, faded brand mark, perks + two actions */
.promo { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--spacing-xl) var(--spacing-2xl);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 48px); background: var(--color-bg-brand); color: var(--color-text-inverse); border-radius: var(--radius-sm); }
.promo::before { content: ""; position: absolute; z-index: -1; width: 300px; aspect-ratio: 153 / 85; inset-inline-end: -60px; top: -44px; background: var(--color-bg-accent); opacity: .2;
  -webkit-mask: url(../logo/logo-mark.svg) center / contain no-repeat; mask: url(../logo/logo-mark.svg) center / contain no-repeat; }
.promo__body { display: grid; gap: var(--spacing-sm); justify-items: start; }
.promo__eyebrow { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 12px; border-radius: var(--radius-full); background: var(--color-bg-accent); color: var(--color-text-inverse); font-size: var(--text-body-s); font-weight: 700; }
.promo .h2 { color: inherit; margin-top: 4px; }
.promo__body > p { max-width: 44ch; opacity: .9; }
.promo__perks { display: flex; flex-wrap: wrap; gap: var(--spacing-xs) var(--spacing-lg); margin-top: var(--spacing-xs); font-weight: 600; }
.promo__perks li { display: inline-flex; align-items: center; gap: 6px; }
.promo__perks .icon { width: 20px; height: 20px; color: var(--color-bg-accent); }
.promo__actions { display: grid; gap: var(--spacing-sm); justify-items: stretch; min-width: 170px; }
.promo__actions .btn { justify-content: center; }
@media (max-width: 760px) { .promo { grid-template-columns: 1fr; } .promo__actions { grid-auto-flow: column; justify-content: start; min-width: 0; } .promo::before { width: 220px; inset-inline-end: -50px; bottom: auto; top: -20px; } }
@media (max-width: 760px) { .class-card, .class-card--media-start { grid-template-columns: 1fr; } .class-card .class-card__media, .class-card--media-start .class-card__media { order: -1; aspect-ratio: 16/10; } .class-card__body, .class-card--media-start .class-card__body { max-width: none; padding: var(--spacing-lg); } }

/* Studio team: 3-column masonry; cards hug their content, square photos */
.coaches { columns: 3; column-gap: var(--spacing-lg); }
.coach { break-inside: avoid; margin-bottom: var(--spacing-lg); display: block; }
.coach img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 20%; }
@media (max-width: 760px) { .coaches { columns: 2; column-gap: var(--spacing-md); } .coach { margin-bottom: var(--spacing-md); } }
@media (max-width: 480px) { .coaches { columns: 1; } }
.coach__body { display: grid; gap: 2px; padding: var(--spacing-md); }
.coach__role { color: var(--color-text-brand); font-size: var(--text-body-s); }
.coach__bio { margin-top: var(--spacing-sm); }

/* Team (country) */
.team-hero { text-align: center; display: grid; justify-items: center; gap: var(--spacing-lg); }
.team-hero p { max-width: 760px; }
.values { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--spacing-3xl); margin-top: var(--spacing-md); }
.values li { display: grid; justify-items: center; gap: 4px; max-width: 240px; }
.values .bar { width: 32px; height: 4px; border-radius: 2px; background: var(--color-bg-accent); }
.people { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--spacing-lg); }
.person { flex: 0 1 calc((100% - 3 * var(--spacing-lg)) / 4); min-width: 240px; display: flex; flex-direction: column; }
.person img { width: 100%; aspect-ratio: 310 / 340; object-fit: cover; }
.person__body { display: grid; gap: var(--spacing-xs); padding: var(--spacing-lg); }
.person__role { color: var(--color-text-brand); font-size: var(--text-body-s); font-weight: 500; }

/* Terms */
.terms-head { display: grid; gap: var(--spacing-md); }
.terms-head p { max-width: 720px; }
.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-md); margin-top: var(--spacing-lg); }
.tip { padding: var(--spacing-lg); display: grid; gap: var(--spacing-xs); align-content: start; }
.tip .icon { color: var(--color-icon-brand); }
@media (max-width: 1000px) { .tips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tips { grid-template-columns: 1fr; } }
.terms-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--spacing-4xl); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); padding: var(--spacing-lg); background: var(--color-bg-subtle); border-radius: var(--radius-md); display: grid; gap: var(--spacing-xs); }
.toc a { display: flex; justify-content: space-between; align-items: center; padding-block: 4px; }
.toc a::after { content: ""; width: 3px; height: 20px; border-radius: 2px; background: transparent; }
.toc a.is-active { color: var(--color-text-brand); font-weight: 700; }
.toc a.is-active::after { background: var(--color-border-brand); }
.terms-groups { display: grid; gap: var(--spacing-3xl); }
.terms-group { display: grid; gap: var(--spacing-md); }
.notice { padding: var(--spacing-lg); border-radius: var(--radius-md); background: var(--color-bg-muted); display: flex; gap: var(--spacing-md); }
.notice .icon { color: var(--color-icon-brand); }
.full-terms { display: flex; justify-content: space-between; align-items: center; gap: var(--spacing-lg); flex-wrap: wrap; padding-top: var(--spacing-lg); border-top: 1px solid var(--color-border-default); }
@media (max-width: 900px) { .terms-layout { grid-template-columns: 1fr; } .toc { position: static; } }

/* Contact */
.methods { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--spacing-3xl); padding-bottom: var(--spacing-2xl); border-bottom: 1px solid var(--color-border-default); }
.method { display: flex; align-items: center; gap: var(--spacing-sm); }
.method__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-bg-accent); color: #fff; }
.method small { display: block; font-size: var(--text-body-s); }
.method a:hover { color: var(--color-text-brand); }
.form-card { max-width: 812px; margin-inline: auto; padding: clamp(24px, 4vw, 40px); background: var(--color-bg-page); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-lg) var(--spacing-xl); }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-submit { display: flex; justify-content: space-between; align-items: center; gap: var(--spacing-lg); flex-wrap: wrap; }
.form-success { text-align: center; display: grid; gap: var(--spacing-sm); justify-items: center; padding-block: var(--spacing-2xl); }
.form-success .icon { width: 56px; height: 56px; color: var(--color-icon-brand); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.map { position: relative; border-radius: var(--radius-md); overflow: hidden; height: clamp(320px, 36vw, 440px); background: var(--color-bg-muted) center / cover no-repeat; border: 1px solid var(--color-border-default); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map__card { position: absolute; inset-inline-start: 24px; top: 24px; display: grid; gap: var(--spacing-xs); justify-items: start; padding: var(--spacing-md) var(--spacing-lg); background: var(--color-bg-page); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
@media (max-width: 640px) { .map__card { position: static; border-radius: 0; box-shadow: none; } .map { height: auto; } .map iframe { height: 320px; } }

/* Terms tips: no border */
.tip.card { border: 0; }

/* Mirrored wave (contact page) */
.wave-bg--flip::before { transform: scaleY(-1); } /* wave on top, straight bottom (Figma contact page) */

/* Coach name links (studio) -> instructor card (studio team); land below the sticky header and flash the card */
.class-card__coach a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.class-card__coach a:hover, .class-card__coach a:focus-visible { text-decoration-color: currentColor; }
.coach:target { animation: coach-flash 1.8s var(--ease); }
@keyframes coach-flash { 0%, 35% { box-shadow: 0 0 0 3px var(--color-border-focus); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* Pricing placeholder ("בהקמה") */
.soon { min-height: calc(100vh - var(--header-h) - 240px); display: grid; align-items: center; }
.soon__inner { display: grid; justify-items: center; gap: var(--spacing-md); text-align: center; max-width: 640px; }
.soon__inner .btn-row { justify-content: center; margin-top: var(--spacing-sm); }

/* Hours table: translucent white row hover (home + hours page) */
.hours-table tbody tr { transition: background-color .2s var(--ease); }
.hours-table tbody tr:hover { background: rgb(255 255 255 / .6); }

/* Contact (Figma 61:2999): card 56px under the divider; the light wave starts 100px below the card top and ends 89px below the card */
.contact-form-sec { padding-block: 56px 89px; }
.contact-form-sec::before { inset-block-start: 156px; }
@media (max-width: 760px) { .contact-form-sec { padding-block: 32px 56px; } .contact-form-sec::before { inset-block-start: 96px; } }


/* Studio page backdrop: light wave band behind the class cards + two faded brand marks */
.page-studio main { position: relative; isolation: isolate; overflow: hidden; }
.page-studio main::before { content: ""; position: absolute; z-index: -1; inset: 300px 0 0; background: var(--color-bg-subtle);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C 240 6 480 6 720 40 S 1200 78 1440 30 V80 H0 Z'/%3E%3C/svg%3E") top / 100% 80px no-repeat, linear-gradient(#000, #000) 0 79px / 100% calc(100% - 79px) no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C 240 6 480 6 720 40 S 1200 78 1440 30 V80 H0 Z'/%3E%3C/svg%3E") top / 100% 80px no-repeat, linear-gradient(#000, #000) 0 79px / 100% calc(100% - 79px) no-repeat; }
.page-studio .container--studio::before, .page-studio .container--studio::after { content: ""; position: absolute; z-index: -1; aspect-ratio: 153 / 85; background: var(--color-bg-accent);
  -webkit-mask: url(../logo/logo-mark.svg) center / contain no-repeat; mask: url(../logo/logo-mark.svg) center / contain no-repeat; pointer-events: none; }
.page-studio .container--studio::before { --w: clamp(220px, 26vw, 400px); width: var(--w); top: 56px; left: calc(50% - 400px - 48px - var(--w)); opacity: .12; } /* sits fully outside the 800px column */
.page-studio .container--studio::after { --w: clamp(180px, 20vw, 320px); width: var(--w); bottom: 12%; right: calc(50% - 400px - 48px - var(--w)); opacity: .1; transform: scaleX(-1); }
@media (max-width: 1000px) { .page-studio .container--studio::before { left: -60px; top: 20px; opacity: .08; } .page-studio .container--studio::after { right: -60px; opacity: .07; } }
@media (max-width: 760px) { .page-studio main::before { inset-block-start: 340px; } }

/* Page transitions (cross-document View Transitions; unsupported browsers just navigate normally).
   Old page fades out fast, new one fades in with a slight rise; the menu bar stays put between inner pages. */
@view-transition { navigation: auto; }
body:not(.page-home) .site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .2s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .45s cubic-bezier(.22, 1, .36, 1) .05s both; }
::view-transition-group(site-header) { animation-duration: .3s; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root), ::view-transition-group(*) { animation: none; }
}


