/* Two families only: Heebo for UI/body, Frank Ruhl Libre as the display
   serif on h1/h2. Loaded via <link> in index.html's <head> (with
   preconnect) rather than @import, so the browser discovers the font
   request immediately instead of waiting to parse this file first.
   Variable weight ranges so every font-weight value used below
   (400-900) renders at its exact weight instead of snapping to the
   nearest static instance. */

:root {
  /* Brand */
  --rose-25: #fff9fb;
  --rose-50: #fff3f7;
  --rose-100: #fde2ec;
  --rose-200: #edb7cd;
  --rose-500: #d84f84;
  --petal-veil: #fff3f7;
  --rose-water: #f8e4ec;
  --blush-clay: #f0d4df;
  --orchid-mist: #fbe9f0;
  --berry: #7b173f;
  --ink: #2f1d27;
  --muted: #7c6671;
  --sage: #8fa39a;
  --white: #ffffff;
  --champagne: #c39b4f;
  --line: rgba(123, 23, 63, 0.16);
  --shadow: 0 22px 70px rgba(80, 25, 52, 0.16);

  /* Neutral ramp */
  --n-50: #faf8f9;
  --n-100: #f3eff1;
  --n-200: #e6dee2;
  --n-300: #d1c3cb;
  --n-400: #a8939d;
  --n-500: #7c6671;
  --n-600: #5b4751;
  --n-700: #453540;
  --n-800: #2f1d27;
  --n-900: #201319;

  /* Semantic surfaces */
  --surface: var(--white);
  --surface-raised: var(--rose-25);
  --surface-glass: rgba(255, 255, 255, 0.72);
  --overlay: rgba(47, 29, 39, 0.55);
  --focus-ring: 0 0 0 3px rgba(216, 79, 132, 0.45);

  /* Typography */
  --font-body: "Heebo", "Noto Sans Hebrew", system-ui, -apple-system, sans-serif;
  --font-display: "Frank Ruhl Libre", "Noto Serif Hebrew", serif;
  --fs-xs: clamp(0.78rem, 0.74rem + 0.2vw, 0.86rem);
  --fs-sm: clamp(0.88rem, 0.84rem + 0.22vw, 0.98rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --fs-lg: clamp(1.15rem, 1.08rem + 0.35vw, 1.42rem);
  --fs-xl: clamp(1.4rem, 1.25rem + 0.75vw, 1.9rem);
  --fs-2xl: clamp(1.8rem, 1.5rem + 1.5vw, 2.6rem);
  --fs-3xl: clamp(2.2rem, 1.7rem + 2.5vw, 3.6rem);
  --fs-4xl: clamp(2.8rem, 2rem + 4vw, 5rem);
  --fs-5xl: clamp(3.4rem, 2.3rem + 5.5vw, 6.4rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 999px;

  /* Elevation */
  --shadow-sm: 0 4px 16px rgba(80, 25, 52, 0.1);
  --shadow-md: 0 12px 32px rgba(80, 25, 52, 0.14);
  --shadow-lg: 0 22px 70px rgba(80, 25, 52, 0.16);

  /* Blur */
  --blur-sm: 8px;
  --blur-md: 16px;
  --blur-lg: 24px;

  /* Motion */
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 180ms;
  --duration-base: 320ms;
  --duration-slow: 500ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 247, 250, 0.96), rgba(255, 251, 248, 0.96) 28rem),
    var(--rose-25);
  font-family: var(--font-body);
  line-height: 1.6;
}

body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

section[id] {
  scroll-margin-top: 7rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.7rem, 1.6vw, 1.6rem);
  min-height: 6.2rem;
  padding: 0.45rem clamp(1rem, 4vw, 3.25rem);
  background:
    radial-gradient(150% 220% at 88% -60%, rgba(240, 107, 160, 0.18), transparent 55%),
    radial-gradient(120% 200% at 8% -40%, rgba(195, 155, 79, 0.12), transparent 50%),
    linear-gradient(92deg, #fff2f7 0%, #fde5ee 46%, #fbe6f1 78%, #fff2f7 100%);
  border-bottom: 1px solid rgba(216, 79, 132, 0.18);
  backdrop-filter: blur(20px) saturate(1.15);
  box-shadow: 0 14px 40px rgba(123, 23, 63, 0.09);
}

/* Luxurious rose + champagne accent line under the bar */
.topbar::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(216, 79, 132, 0.55),
    rgba(195, 155, 79, 0.7),
    rgba(216, 79, 132, 0.55),
    transparent
  );
  opacity: 0.85;
}

.brand,
.nav-links,
.hero-actions,
.closing-actions {
  display: flex;
  align-items: center;
}

.brand {
  min-width: clamp(15rem, 30vw, 28rem);
  font-weight: 850;
}

.brand-logo {
  width: clamp(15rem, 30vw, 27rem);
  max-height: 5.45rem;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.nav-links {
  gap: clamp(0.75rem, 2.4vw, 2.1rem);
  color: rgba(47, 29, 39, 0.66);
  font-size: 0.88rem;
  font-weight: 750;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--berry);
}

.nav-cta,
.button {
  border: 1px solid var(--berry);
  border-radius: 999px;
  padding: 0.74rem 1.2rem;
  font-weight: 800;
}

.nav-cta {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 12px 28px rgba(47, 29, 39, 0.14);
}

.button {
  display: inline-flex;
  justify-content: center;
  min-width: 10rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button:focus-visible,
.lightbox-close:focus-visible {
  outline: 3px solid rgba(216, 79, 132, 0.35);
  outline-offset: 3px;
}

.primary {
  color: var(--white);
  background: var(--berry);
  box-shadow: 0 14px 36px rgba(123, 23, 63, 0.28);
}

.secondary {
  color: var(--berry);
  background: rgba(255, 255, 255, 0.72);
}

.hero-cta-primary {
  min-width: 13rem;
  padding: 0.96rem 1.56rem;
  font-size: 1.3rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero {
  width: min(100%, 1180px);
  min-height: calc(82svh - 4.1rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(20rem, 0.82fr);
  grid-template-rows: 1fr auto;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.hero-media {
  position: relative;
  justify-self: center;
  width: min(100%, 25rem);
  height: auto;
  aspect-ratio: 13 / 20;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: transparent;
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.2s;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
}

.editable-image {
  position: relative;
}

.text-editable {
  border-radius: 6px;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.hero-copy {
  max-width: 34rem;
  padding-block: clamp(1rem, 3vw, 2.5rem);
}

.hero-copy > * {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy .eyebrow { animation-delay: 0.1s; }
.hero-copy h1 { animation-delay: 0.2s; }
.hero-copy .lead { animation-delay: 0.3s; }
.hero-copy .hero-actions { animation-delay: 0.4s; }

/* Hero title lockup: the brand logo drifting slowly, with a soft shine that
   sweeps across it. The shine is masked to the logo's own artwork so it only
   catches the lettering and icons, never the transparent area around them. */
.hero-title-logo {
  margin-bottom: 1.2rem;
  font-size: 0;
  line-height: 0;
}

.hero-title-logo-frame {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: min(100%, 28rem);
  animation: hero-logo-float 6s ease-in-out infinite;
}

.hero-title-logo-frame img {
  width: 100%;
  height: auto;
}

.hero-title-logo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 44%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 56%
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  -webkit-mask-image: url("assets/logo-header-new-pink.png");
  mask-image: url("assets/logo-header-new-pink.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: hero-logo-shine 6s ease-in-out infinite;
}

@keyframes hero-logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.45rem);
  }
}

@keyframes hero-logo-shine {
  0%,
  12% {
    background-position: 175% 0;
  }
  58%,
  100% {
    background-position: -75% 0;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 6.8vw, 6.15rem);
  font-style: italic;
  font-weight: 500;
}

h2 {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4.4rem);
  font-weight: 700;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.lead {
  max-width: 29rem;
  color: #513843;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
}

.hero-actions,
.closing-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.section-band,
.portfolio,
.closing {
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 4vw, 3rem);
}

.section-band {
  display: grid;
  grid-template-columns: minmax(15rem, 0.65fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  background: var(--white);
  border-block: 1px solid var(--line);
}

.intro p:not(.eyebrow) {
  max-width: 55rem;
  color: #4f3b45;
  font-size: clamp(1.08rem, 1.55vw, 1.45rem);
}

.section-heading {
  max-width: 42rem;
}

.section-heading.compact {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.portfolio {
  background: linear-gradient(180deg, #fffafd, #ffffff 45%, var(--rose-25));
  padding-inline: 0;
}

.portfolio .section-heading {
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.portfolio-story {
  width: 100%;
  margin: 0;
}

.story-stage {
  position: absolute;
  inset-block-start: 0;
  display: grid;
  place-items: center;
  width: 50vw;
  height: 100svh;
  overflow: hidden;
  padding: 0;
  border: 0;
  opacity: 1;
  pointer-events: auto;
  background: #fff7fb;
  cursor: zoom-in;
}

.story-stage img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: 50% 48%;
  transform: none !important;
  clip-path: none !important;
}

.story-step:last-child {
  min-height: 100svh;
}

.story-step:last-child .story-pin {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
}

.story-step:last-child .story-stage {
  inset-block-start: 0;
  height: 100svh;
}

.story-step:last-child .story-copy {
  min-height: 100svh;
  z-index: 1;
}

.story-track {
  display: block;
}

.story-step {
  position: relative;
  min-height: clamp(38rem, 72svh, 44rem);
  isolation: isolate;
}

.story-step--image-left {
  background: var(--petal-veil);
}

.story-step--image-right {
  background: var(--rose-water);
}

.story-step--image-left .story-stage {
  background: var(--blush-clay);
}

.story-step--image-right .story-stage {
  background: var(--orchid-mist);
}

.story-step--image-left .story-copy {
  background: var(--petal-veil);
}

.story-step--image-right .story-copy {
  background: var(--rose-water);
}

.story-step:nth-child(1) .story-stage img { object-position: 50% 44%; }
.story-step:nth-child(3) .story-stage img { object-position: 50% 42%; }
.story-step:nth-child(6) .story-stage img { object-position: 50% 54%; }
.story-step:nth-child(7) .story-stage img { object-position: 50% 56%; }

@media (min-width: 961px) {
  /* Full-viewport steps keep the pin coverage continuous (no empty gaps
     between pinned images as you scroll). */
  .story-step,
  .story-copy {
    min-height: 100svh;
  }

  /* Present each image as a large but contained rounded card with a soft
     shadow, floating on the step's single ground (transparent stage). It
     fills most of the viewport height (little empty space) yet is not an
     edge-to-edge full-bleed crop, so it reads richer and more grid-like. */
  .story-stage,
  .story-step--image-left .story-stage,
  .story-step--image-right .story-stage,
  .story-step:last-child .story-stage {
    background: transparent;
    padding-inline: clamp(1.5rem, 4vw, 4rem);
  }
  .story-stage img {
    width: min(100%, 34rem) !important;
    height: clamp(34rem, 82vh, 48rem) !important;
    border-radius: 20px;
    box-shadow: var(--shadow);
    object-fit: cover;
  }

  .story-step:nth-child(1) .story-stage img { object-position: 50% 62%; }
  .story-step:nth-child(7) .story-stage img { object-position: 50% 60%; }

  .story-step:nth-child(2) .story-stage img { object-position: 50% 60%; }
  .story-step:nth-child(3) .story-stage img { object-position: 50% 60%; }
  .story-step:nth-child(4) .story-stage img { object-position: 50% 55%; }
  .story-step:nth-child(5) .story-stage img { object-position: 50% 55%; }
  .story-step:nth-child(6) .story-stage img { object-position: 50% 60%; }
}

.story-pin {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 1px;
}

.story-pin.is-pinned {
  position: fixed;
  inset: 0 auto auto 0;
}

.story-step:nth-child(2) .story-pin { z-index: 2; }
.story-step:nth-child(3) .story-pin { z-index: 3; }
.story-step:nth-child(4) .story-pin { z-index: 4; }
.story-step:nth-child(5) .story-pin { z-index: 5; }
.story-step:nth-child(6) .story-pin { z-index: 6; }
.story-step:nth-child(7) .story-pin { z-index: 7; }

.story-step:last-child .story-pin {
  z-index: 0;
}

.story-step--image-left .story-stage {
  inset-inline-start: 0;
  inset-inline-end: auto;
}

.story-step--image-right .story-stage {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

.story-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  min-height: clamp(38rem, 72svh, 44rem);
  padding: clamp(4rem, 9vw, 8rem) clamp(2rem, 7vw, 7rem);
  background: #fffafd;
  direction: rtl;
  text-align: right;
}

.story-step--image-left .story-copy {
  margin-inline-start: auto;
}

.story-step--image-right .story-copy {
  margin-inline-end: auto;
}

.story-copy h3 {
  width: min(100%, 34rem);
  margin: 0;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 4.6rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.04;
}

.story-copy p {
  max-width: 34rem;
  margin: 1.2rem 0 0;
  color: #5b4751;
  font-family: var(--font-body);
  font-size: clamp(1.16rem, 1.48vw, 1.42rem);
  font-weight: 400;
  line-height: 1.82;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.service-grid article {
  min-height: 15.5rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 241, 247, 0.95), rgba(255, 255, 255, 0.82));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.service-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(123, 23, 63, 0.08);
  border-color: rgba(123, 23, 63, 0.3);
}

.service-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem 0.7rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(123, 23, 63, 0.14);
}

.service-price-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.18rem 0.65rem;
  border: 1px solid rgba(123, 23, 63, 0.2);
  border-radius: 999px;
  color: var(--berry);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.service-price strong {
  color: var(--berry);
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 1.7vw, 2.15rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

/* תמונת רקע בכרטיסי "מה מקבלים בפועל" — מובייל בלבד */
/* Photo cards for "מה מקבלים בפועל" — shown at ALL widths so the
   desktop layout matches the phone exactly. */
.service-card--photo {
  position: relative;
  isolation: isolate;
  background: none;
  overflow: hidden;
}

.service-card--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* שכבת השקיפות מעל התמונה — מבהירה את הרקע כדי שהטקסט יישאר קריא */
.service-card--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 241, 247, 0.68), rgba(255, 255, 255, 0.66));
}

.service-card--base::before {
  background-image: url("assets/service-base-bg.jpg");
}

.service-card--build::before {
  background-image: url("assets/service-build-bg.jpg");
}

.service-card--fill::before {
  background-image: url("assets/service-fill-bg.jpg");
}

.service-card--decor::before {
  background-image: url("assets/service-decor-bg.jpg");
}

.service-card--extreme::before {
  background-image: url("assets/service-extreme-bg.jpg");
}

/* כיתוב שחור וקריא על גבי התמונה — הילה לבנה סביב האותיות */
.service-card--photo h3,
.service-card--photo p {
  color: #111;
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff,
    0 0 5px #fff,
    0 0 8px #fff;
}


.service-icon {
  display: inline-flex;
  align-items: flex-end;
  height: 3.6rem;
  margin-bottom: 0.7rem;
}

.service-icon img,
.service-icon svg {
  width: auto;
  height: 100%;
  display: block;
}

.service-grid p,
.closing p {
  color: var(--muted);
}

.service-grid p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.78;
}

.student-works-scrub {
  display: flex;
  justify-content: center;
}

.student-works-scrub-pin {
  display: contents;
}

.student-works-scrub-video {
  display: block;
  width: 100%;
  max-width: 24rem;
  aspect-ratio: 9 / 16;
  max-height: 34rem;
  object-fit: cover;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.closing {
  min-height: 70svh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 224, 236, 0.95), transparent 35rem),
    var(--rose-25);
}

.closing h2 {
  max-width: 52rem;
}

.closing p:not(.eyebrow) {
  max-width: 38rem;
  font-size: 1.1rem;
}

.lead-form {
  position: relative;
  width: 100%;
  max-width: 40rem;
  margin-top: 3rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% -10%, rgba(216, 79, 132, 0.08), transparent 22rem),
    var(--white);
  text-align: right;
  box-shadow: var(--shadow);
}

.lead-form::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--rose-500), var(--berry));
}

.lead-form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.lead-form-heading {
  margin-bottom: 1.75rem;
  text-align: center;
}

.lead-form-heading .eyebrow {
  margin-bottom: 0.4rem;
}

.lead-form-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 900;
  line-height: 1.25;
}

.lead-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.lead-field-full {
  grid-column: 1 / -1;
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.lead-field label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
}

.lead-required {
  color: var(--rose-500);
}

.lead-field input,
.lead-field select,
.lead-field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--rose-50);
  color: var(--ink);
  font: inherit;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

/* Safari's native date control paints itself using its own OS-drawn
   chrome, which can ignore width/min-width/box-sizing entirely - the
   box lays out at the right size but the visible widget still renders
   wider. Stripping the native appearance forces WebKit to paint the
   control using its own generic (CSS-respecting) box instead of the
   OS-drawn one. This only affects rendering, not the tap-to-open
   behavior - the native date picker sheet still opens on tap. */
.lead-field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
}

.lead-field input::placeholder,
.lead-field textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.lead-field input:hover,
.lead-field select:hover,
.lead-field textarea:hover {
  border-color: var(--rose-200);
}

.lead-field input:focus-visible,
.lead-field select:focus-visible,
.lead-field textarea:focus-visible {
  outline: none;
  border-color: var(--rose-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(216, 79, 132, 0.16);
}

.lead-field textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.lead-file-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.lead-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lead-file-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--berry);
  border-radius: 999px;
  color: var(--berry);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.lead-file-button svg {
  width: 1.1rem;
  height: 1.1rem;
}

.lead-file-button:hover {
  color: var(--white);
  background: var(--berry);
  transform: translateY(-1px);
}

.lead-file-input:focus-visible + .lead-file-button {
  outline: 2px solid rgba(216, 79, 132, 0.4);
  outline-offset: 2px;
}

.lead-file-name {
  font-size: 0.88rem;
  color: var(--muted);
}

.lead-file-name.has-file {
  color: var(--berry);
  font-weight: 700;
}

.lead-submit {
  display: flex;
  margin: 2rem auto 0;
}

.lead-form-status {
  min-height: 1.4rem;
  margin: 0.9rem 0 0;
  text-align: center;
  font-weight: 700;
}

.lead-form-status.is-success {
  color: #1c7a4a;
}

.lead-form-status.is-error {
  color: #b3223f;
}

@media (max-width: 640px) {
  .lead-form-grid {
    grid-template-columns: 1fr;
  }

  .lead-form {
    padding: 1.5rem;
  }

  .lead-submit {
    width: 100%;
  }
}

/* ==========================================================================
   Nail-themed decorative accents (polish bottles + glitter sparkles)
   ========================================================================== */
.icon-deco {
  position: absolute;
  pointer-events: none;
}

.lead-form-bottle {
  width: clamp(2.6rem, 6vw, 3.6rem);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(123, 23, 63, 0.22));
  animation: bottle-bob 5s ease-in-out infinite;
}

.lead-form-bottle--1 {
  top: -1.6rem;
  right: 1.6rem;
  transform: rotate(-12deg);
}

.lead-form-bottle--2 {
  bottom: -1.4rem;
  left: 1.8rem;
  transform: rotate(16deg);
  animation-delay: 1.4s;
}

@keyframes bottle-bob {
  0%,
  100% {
    transform: translateY(0) rotate(var(--bottle-rot, -12deg));
  }
  50% {
    transform: translateY(-0.4rem) rotate(var(--bottle-rot, -12deg));
  }
}

.lead-form-bottle--1 {
  --bottle-rot: -12deg;
}

.lead-form-bottle--2 {
  --bottle-rot: 16deg;
}

.icon-deco--sparkle {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--champagne);
  animation: sparkle-twinkle 2.6s ease-in-out infinite;
}

@keyframes sparkle-twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.lead-form-sparkle-1 {
  top: 0.5rem;
  left: 2.2rem;
  color: var(--rose-500);
}

.lead-form-sparkle-2 {
  top: 3.5rem;
  right: 2.5rem;
  animation-delay: 0.8s;
}

.lead-form-sparkle-3 {
  bottom: 4rem;
  left: -0.6rem;
  animation-delay: 1.6s;
  color: var(--rose-500);
}

.faq-section {
  position: relative;
}

.faq-sparkle-1 {
  top: 2.5rem;
  right: 8%;
  color: var(--rose-500);
}

.faq-sparkle-2 {
  bottom: 3rem;
  right: 14%;
  animation-delay: 1.1s;
}

.faq-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: var(--rose-100);
}

.faq-icon-badge svg {
  width: 1.35rem;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .lead-form-bottle,
  .icon-deco--sparkle,
  .hero-title-logo-frame {
    animation: none;
  }

  .icon-deco--sparkle {
    opacity: 0.7;
  }

  .hero-title-logo-frame::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .lead-form-bottle,
  .lead-form-sparkle-3 {
    display: none;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(35, 18, 28, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  width: auto;
  max-width: min(94vw, 82rem);
  max-height: 90svh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  font-size: 1.9rem;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .nav-links {
    display: none;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero,
  .section-band,
  .portfolio-story {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    width: min(100%, 760px);
  }

  .hero-copy {
    order: -1;
  }

  .hero-media {
    width: min(100%, 24rem);
    height: auto;
  }

  .story-step,
  .story-copy {
    min-height: auto;
  }

  .story-step:last-child {
    min-height: auto;
  }

  .story-pin {
    position: relative;
    height: auto;
  }

  .story-step:last-child .story-pin {
    position: relative;
    inset: auto;
    z-index: 1;
    height: auto;
  }

  .story-stage,
  .story-step--image-left .story-stage,
  .story-step--image-right .story-stage {
    position: relative;
    inset: auto;
    width: min(100%, 30rem);
    height: auto;
    aspect-ratio: 3 / 4;
    margin-inline: auto;
  }

  .story-step:last-child .story-stage {
    inset-block-start: auto;
    height: auto;
  }

  .story-step:last-child .story-copy {
    min-height: auto;
  }

  .story-copy,
  .story-step--image-left .story-copy,
  .story-step--image-right .story-copy {
    width: min(100%, 42rem);
    min-height: auto;
    margin-inline: auto;
    padding: clamp(2rem, 7vw, 4rem) clamp(1rem, 4vw, 2rem) clamp(3.5rem, 8vw, 5rem);
  }
}

@media (max-width: 640px) {
  section[id] {
    scroll-margin-top: 6rem;
  }

  .topbar {
    justify-content: center;
    padding: 0;
    min-height: 0;
  }

  .brand {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .brand-logo {
    width: 65%;
    max-height: none;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 0.85rem;
    overflow: hidden;
    text-align: center;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    padding-inline: 0.25rem;
  }

  .hero-copy .eyebrow,
  .lead {
    max-width: 100%;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 10.5vw, 2.8rem);
    line-height: 0.94;
    overflow-wrap: normal;
  }

  .lead {
    margin-inline: auto;
    max-width: min(100%, 18.5rem);
    font-size: clamp(0.98rem, 4vw, 1.08rem);
    line-height: 1.68;
  }

  .hero-actions {
    width: 100%;
    justify-content: center;
    gap: 0.65rem;
  }

  .hero-actions .button {
    width: min(100%, 17rem);
    min-width: 0;
    padding-inline: 0.95rem;
    font-size: 0.9rem;
  }

  .hero-actions .hero-cta-primary {
    width: min(100%, 22rem);
    padding-inline: 1.24rem;
    font-size: 1.17rem;
  }

  .student-works-scrub {
    display: block;
    position: relative;
    height: calc(100svh + 100vh);
    /* Overshoot past the viewport edge by a few px (safely clipped by the
       page's overflow-x: clip) instead of matching it exactly — real devices
       can round calc(50% - 50vw) slightly differently, and an exact match is
       one rounding error away from a visible sliver of background at the edge. */
    margin-inline: calc(50% - 50vw - 4px);
  }

  .student-works-scrub-pin {
    display: block;
    position: sticky;
    top: 0;
    /* dvh (not svh) so this keeps filling the screen as the browser's
       address-bar chrome collapses mid-scroll — svh is fixed to the
       smallest possible viewport, so once the chrome hides and the real
       viewport grows past it, a gap opens at the bottom showing the page's
       plain background underneath. */
    height: 100dvh;
    overflow: hidden;
    background: var(--ink);
  }

  .student-works-scrub-video {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    aspect-ratio: auto;
    max-height: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .student-works-scrub.is-scrub-unavailable {
    height: auto;
    margin-inline: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .student-works-scrub.is-scrub-unavailable .student-works-scrub-pin {
    position: static;
    height: auto;
    display: contents;
  }

  .student-works-scrub.is-scrub-unavailable .student-works-scrub-video {
    position: static;
    opacity: 1;
    aspect-ratio: 9 / 16;
    max-height: 34rem;
    border-radius: 14px;
  }

  .hero-media {
    width: min(100%, 20.5rem);
    height: auto;
    margin-inline: auto;
  }

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

  .section-band,
  .portfolio,
  .closing {
    padding-inline: 0.9rem;
  }

  .portfolio .section-heading.compact {
    margin-bottom: 1.9rem;
  }

  .portfolio .section-heading h2 {
    max-width: 24rem;
    font-size: clamp(2rem, 9vw, 2.9rem);
    line-height: 1.06;
  }

  .portfolio {
    padding-inline: 0;
  }

  .portfolio .section-heading {
    width: 100%;
    padding-inline: 0.9rem;
  }

  .story-step {
    min-height: auto;
    padding: 0;
    border-block-start: 1px solid rgba(123, 23, 63, 0.14);
  }

  .story-step:last-child {
    min-height: auto;
  }

  .portfolio .story-step .story-pin,
  .story-step:last-child .story-pin {
    position: sticky;
    inset: auto;
    top: 5.1rem;
    z-index: 1;
    width: 100%;
    height: calc(100svh - 5.1rem);
  }

  .story-stage,
  .story-step--image-left .story-stage,
  .story-step--image-right .story-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    aspect-ratio: auto;
  }

  .story-step:last-child .story-stage {
    inset: 0;
    height: 100%;
  }

  .story-step:nth-child(1) .story-stage img,
  .story-step:nth-child(7) .story-stage img {
    object-fit: cover;
    object-position: center;
  }

  .story-copy,
  .story-step--image-left .story-copy,
  .story-step--image-right .story-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: clamp(20rem, 42svh, 24rem);
    margin: 0;
    padding: 2.4rem 1.2rem 3rem;
    justify-content: center;
  }

  .story-step:last-child .story-copy {
    min-height: clamp(20rem, 42svh, 24rem);
    z-index: 2;
  }

  .story-copy h3 {
    color: var(--ink);
    font-size: clamp(1.72rem, 8vw, 2.28rem);
    line-height: 1.02;
  }

  .story-copy p {
    margin-top: 0.15rem;
    color: #49343f;
    font-size: clamp(0.98rem, 4vw, 1.06rem);
    font-weight: 560;
    line-height: 1.65;
  }

  .about-instructor-media {
    width: min(100%, 23rem);
    height: clamp(20rem, 52svh, 29rem);
    margin-inline: auto;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }

  .footer-brand,
  .legal-links,
  .footer-note {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .student-works-scrub {
    height: auto;
    margin-inline: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .student-works-scrub-pin {
    position: static;
    height: auto;
    display: contents;
  }

  .student-works-scrub-video {
    position: static;
    opacity: 1;
    aspect-ratio: 9 / 16;
    max-height: 34rem;
    border-radius: 14px;
    transition: none;
  }

  .story-step,
  .story-step:last-child {
    min-height: auto;
  }

  .story-pin,
  .story-step:last-child .story-pin {
    position: relative;
    top: auto;
    height: auto;
  }

  .story-stage,
  .story-step--image-left .story-stage,
  .story-step--image-right .story-stage,
  .story-step:last-child .story-stage {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .story-copy,
  .story-step--image-left .story-copy,
  .story-step--image-right .story-copy,
  .story-step:last-child .story-copy {
    min-height: auto;
    margin: 0;
  }
}

/* ==========================================================================
   About Instructor Section
   ========================================================================== */
.about-instructor {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(21rem, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.about-instructor-media {
  position: relative;
  justify-self: center;
  width: min(100%, 28rem);
  height: auto;
  aspect-ratio: 17 / 20;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: transparent;
}

.about-instructor-media img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-instructor-copy {
  max-width: 36rem;
  padding-block: clamp(1rem, 3vw, 2.5rem);
}

.about-instructor-copy h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(2rem, 4.5vw, 4.4rem);
  font-weight: 900;
}

.about-instructor-copy .subtitle {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 750;
}

.about-instructor-copy p {
  color: #4f3b45;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  color: var(--muted);
  background: rgba(255, 248, 251, 0.96);
  border-top: 1px solid var(--line);
}

.footer-brand,
.legal-links {
  display: flex;
  align-items: center;
}

.footer-brand {
  color: var(--ink);
  font-weight: 850;
}

.footer-logo {
  width: clamp(10rem, 20vw, 16rem);
  height: auto;
  object-fit: contain;
}

.legal-links {
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  font-weight: 750;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--berry);
}

.footer-note {
  width: 100%;
  margin: 0;
  font-size: 0.86rem;
}

.legal-page {
  background:
    linear-gradient(180deg, rgba(255, 224, 236, 0.62), rgba(255, 248, 251, 0.96) 20rem),
    var(--rose-25);
}

.legal-content {
  width: min(100% - 2rem, 54rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.legal-content h1 {
  margin: 0.3rem 0 0.5rem;
  color: var(--ink);
  font-size: clamp(2.15rem, 6vw, 4rem);
  line-height: 1.05;
}

.legal-updated {
  margin: 0 0 2rem;
  color: var(--muted);
  font-weight: 700;
}

.legal-content section {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0 0 0.65rem;
  color: var(--berry);
  font-size: 1.25rem;
}

.legal-content p {
  margin: 0;
  color: #4f3b45;
  font-size: 1.05rem;
}

.legal-content p + p {
  margin-top: 0.75rem;
}

.legal-content ul {
  margin: 0.75rem 0 0;
  padding-inline-start: 1.35rem;
  color: #4f3b45;
  font-size: 1.05rem;
}

.legal-content li + li {
  margin-top: 0.45rem;
}

.legal-content li strong {
  color: var(--ink);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  background: linear-gradient(180deg, var(--rose-25), var(--white));
  border-bottom: 1px solid var(--line);
}

.faq-grid {
  max-width: 48rem;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.faq-item:hover,
.faq-item.is-open {
  border-color: rgba(123, 23, 63, 0.25);
  background: var(--white);
}

.faq-item.is-open {
  box-shadow: 0 8px 24px rgba(123, 23, 63, 0.05);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: right;
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--ink);
  cursor: pointer;
}

.faq-question:focus-visible {
  outline: none;
  background: var(--rose-50);
}

.faq-icon-pour {
  position: relative;
  display: inline-flex;
  flex: none;
  width: 1.5rem;
  height: 1.85rem;
}

.faq-icon-pour svg {
  width: 100%;
  height: 100%;
  color: var(--berry);
  transform-origin: 78% 88%;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.faq-item.is-open .faq-icon-pour svg {
  color: var(--rose-500);
  transform: rotate(-58deg);
}

@media (prefers-reduced-motion: reduce) {
  .faq-icon-pour svg {
    transition: none;
  }
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-answer-content {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer {
    transition: none;
  }
}

@media (max-width: 960px) {
  .about-instructor {
    grid-template-columns: 1fr;
  }
  
  .about-instructor-media {
    width: min(100%, 25rem);
    min-height: 0;
  }
  
  .about-instructor-copy {
    order: -1;
  }
}

/* כפתור צף (מובייל) שקופץ ל"מה מקבלים בפועל" */
.mobile-services-jump {
  display: none;
}

@media (max-width: 640px) {
  .mobile-services-jump {
    position: fixed;
    inset-inline-end: 1rem;
    inset-block-end: 1rem;
    z-index: 18;
    display: grid;
    width: 4.6rem;
    height: 4.6rem;
    place-items: center;
    padding: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 50%;
    color: var(--white);
    background: rgba(216, 79, 132, 0.7);
    box-shadow: 0 18px 38px rgba(123, 23, 63, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.6rem) scale(0.94);
    transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
    backdrop-filter: blur(14px) saturate(1.2);
  }

  .mobile-services-jump span {
    max-width: 3.3rem;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.12;
    text-align: center;
  }

  .mobile-services-jump.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .mobile-services-jump.is-visible:active {
    background: rgba(123, 23, 63, 0.76);
    transform: translateY(0.08rem) scale(0.98);
  }

  .mobile-services-jump:focus-visible {
    outline: 3px solid rgba(123, 23, 63, 0.24);
    outline-offset: 4px;
  }
}

/* Desktop/tablet: "מה מקבלים בפועל" — phone-size square cards with photos,
   laid out in two centered columns. */
@media (min-width: 641px) {
  #services.section-band {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: clamp(2rem, 5vw, 3rem);
  }

  #services .section-heading {
    width: min(94vw, 760px);
    max-width: 760px;
  }

  #services .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(94vw, 760px);
    max-width: 760px;
    margin-inline: auto;
    gap: 1rem;
  }
}

/* ── Clickable service cards + track modal ─────────────────────────── */
.service-card--clickable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.service-card--clickable:focus-visible {
  outline: 3px solid rgba(123, 23, 63, 0.35);
  outline-offset: 3px;
}

.track-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2rem);
}

.track-modal[hidden] {
  display: none;
}

.track-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(52, 12, 28, 0.55);
  backdrop-filter: blur(4px);
  animation: fadeIn 180ms ease both;
}

.track-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 30rem);
  max-height: min(92vh, 44rem);
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background: var(--white, #fff);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(76, 15, 39, 0.32);
  animation: fadeInUp 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.track-modal-close {
  position: absolute;
  inset-block-start: 0.7rem;
  inset-inline-start: 0.9rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted, #7a5563);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.track-modal-close:hover {
  background: rgba(123, 23, 63, 0.08);
  color: var(--berry, #7b173f);
}

.track-modal-eyebrow {
  margin: 0 0 0.25rem;
  color: var(--berry, #7b173f);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.track-modal-track {
  margin: 0 0 0.4rem;
  color: var(--ink, #2b1620);
  font-size: clamp(1.5rem, 4vw, 1.95rem);
  line-height: 1.1;
}

.track-modal-sub {
  margin: 0 0 1.4rem;
  color: var(--muted, #7a5563);
  font-size: 0.98rem;
  line-height: 1.55;
}

.track-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.track-form .button.primary {
  width: 100%;
  margin-top: 1.3rem;
}

.track-form-status {
  margin: 0.9rem 0 0;
  min-height: 1.2rem;
  font-weight: 800;
  text-align: center;
}

.track-form-status.is-error {
  color: #b3123f;
}

.track-form-status.is-success {
  color: #1c7d4d;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .track-form-grid {
    grid-template-columns: 1fr;
  }
}

.track-modal-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.track-modal-head-text {
  flex: 1 1 auto;
  min-width: 0;
}

.track-modal-head-text .track-modal-eyebrow,
.track-modal-head-text .track-modal-track {
  margin-bottom: 0;
}

.track-modal-head-text .track-modal-eyebrow {
  margin-bottom: 0.25rem;
}

.track-modal-icon {
  order: 2;
  flex: 0 0 auto;
  height: 3.6rem;
  width: auto;
  object-fit: contain;
}

.track-modal-icon[hidden] {
  display: none;
}

/* Reserve space at the top of the track modal for the close button */
.track-modal-card {
  padding-top: 3rem;
}
