/* Malina Software Kft. — Apple-like scroll-scrubbed motion (2024–2026)
   White / #f5f5f7 / graphite + restrained raspberry accent */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-elevated: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent: #a33b52;
  --accent-hover: #8c3246;
  --accent-soft: rgba(163, 59, 82, 0.08);
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.12);
  --success: #2d8a5e;
  --error: #c4413a;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 980px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-media: 0 20px 60px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-lift: 0 28px 70px rgba(0, 0, 0, 0.14), 0 8px 24px rgba(0, 0, 0, 0.06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --container: 1080px;
  --container-wide: 1180px;
  --header-h: 52px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-apple: cubic-bezier(0.28, 0.11, 0.32, 1);
  --section-pad: clamp(5rem, 11vw, 8rem);
  --header-blur: 0px;
  --header-bg-alpha: 0.55;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--text);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ---------- Header — progressive blur/opacity ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, var(--header-bg-alpha));
  backdrop-filter: saturate(180%) blur(var(--header-blur));
  -webkit-backdrop-filter: saturate(180%) blur(var(--header-blur));
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease);
  will-change: background, backdrop-filter;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
  opacity: 0.75;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-menu a:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

.nav-cta {
  background: var(--text) !important;
  color: #fff !important;
  margin-left: 0.35rem;
  padding-inline: 1rem !important;
}

.nav-cta:hover {
  background: #000 !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.55rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(163, 59, 82, 0.2);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 8px 24px rgba(163, 59, 82, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Typography ---------- */

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
}

h1 {
  font-size: clamp(2.75rem, 7.5vw, 5.25rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-lead,
.hero-lead {
  margin: 1.15rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--text-secondary);
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head-center {
  text-align: center;
}

.section-head-center .section-lead {
  margin-inline: auto;
}

/* ---------- Sections / tone crossfade ---------- */

.section {
  padding: var(--section-pad) 0;
}

.section-tone-white {
  background: var(--bg);
}

.section-tone-soft {
  background: var(--bg-soft);
}

/* ---------- Hero — blur→sharp / scale / rise ---------- */

.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(4rem, 9vw, 6.5rem);
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(163, 59, 82, 0.07), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 0, 0, 0.02), transparent 50%);
  pointer-events: none;
  overflow: hidden;
}

@keyframes hero-ambient {
  from { opacity: 0.85; transform: scale(1); }
  to { opacity: 1; transform: scale(1.04); }
}

.hero-copy {
  position: relative;
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero-line {
  display: block;
}

.hero-lead {
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-visual {
  position: relative;
  width: min(100% - 2.5rem, var(--container-wide));
  margin-inline: auto;
  --hero-media-y: 0px;
  --hero-media-scale: 1;
}

.hero-frame {
  margin: 0;
  border-radius: clamp(16px, 2.5vw, 28px);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-media);
  transform: translate3d(0, var(--hero-media-y), 0) scale(var(--hero-media-scale));
  transform-origin: center bottom;
  will-change: transform;
}

.hero-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-caption {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
}

/* Hero entrance states */
.hero-enter {
  opacity: 0;
  will-change: opacity, transform, filter;
}

.hero-enter[data-hero-enter="eyebrow"] {
  transform: translateY(16px);
}

.hero-enter[data-hero-enter="line1"],
.hero-enter[data-hero-enter="line2"] {
  transform: scale(1.08);
  filter: blur(12px);
}

.hero-enter[data-hero-enter="lead"] {
  transform: translateY(24px);
}

.hero-enter[data-hero-enter="cta1"],
.hero-enter[data-hero-enter="cta2"] {
  transform: translateY(20px);
}

.hero-enter[data-hero-enter="media"] {
  transform: translate3d(0, 64px, 0) scale(1.04);
  filter: blur(4px);
}

.hero-enter[data-hero-enter="caption"] {
  transform: translateY(12px);
}

.hero.is-ready .hero-enter {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.15s var(--ease-out),
    filter 1.1s var(--ease-out);
}

.hero.is-ready .hero-enter[data-hero-enter="eyebrow"] { transition-delay: 60ms; }
.hero.is-ready .hero-enter[data-hero-enter="line1"] { transition-delay: 140ms; }
.hero.is-ready .hero-enter[data-hero-enter="line2"] { transition-delay: 260ms; }
.hero.is-ready .hero-enter[data-hero-enter="lead"] { transition-delay: 400ms; }
.hero.is-ready .hero-enter[data-hero-enter="cta1"] { transition-delay: 520ms; }
.hero.is-ready .hero-enter[data-hero-enter="cta2"] { transition-delay: 600ms; }
.hero.is-ready .hero-enter[data-hero-enter="media"] { transition-delay: 280ms; }
.hero.is-ready .hero-enter[data-hero-enter="caption"] { transition-delay: 720ms; }

/* ---------- Sticky scroll scenes ---------- */

.scroll-scene {
  position: relative;
}

.scroll-scene-track {
  /* height set by JS: steps * 100vh (approx) */
  position: relative;
}

.scroll-scene-pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 1.25rem) 0 2rem;
  box-sizing: border-box;
}

.pin-inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.pin-head {
  text-align: center;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.pin-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

/* Gallery (showcase pin) */
.gallery-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.gallery-frame {
  position: relative;
  width: min(100%, 920px);
  aspect-ratio: 16 / 10;
  border-radius: clamp(16px, 2.2vw, 28px);
  overflow: hidden;
  background: #e8e8ed;
  box-shadow: var(--shadow-media);
  --gallery-scale: 1;
  --gallery-radius: clamp(16px, 2.2vw, 28px);
  transform: scale(var(--gallery-scale));
  border-radius: var(--gallery-radius);
  will-change: transform;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: none;
  will-change: opacity, transform;
}

.gallery-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.gallery-caption.is-active {
  opacity: 1;
  transform: none;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-slide[data-gallery-slide="3"] img {
  object-fit: contain;
  background: #1d1d1f;
  padding: 4% 28%;
}

.gallery-copy {
  position: relative;
  width: min(100%, 36rem);
  min-height: 5.5rem;
  text-align: center;
}

.gallery-caption {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  will-change: opacity, transform;
}

.gallery-caption h3 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}

.gallery-caption p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.45;
}

.gallery-progress {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 0.25rem;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.gallery-dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

/* Services pin */
.services-pin {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  width: min(100% - 2.5rem, var(--container-wide));
}

@media (min-width: 900px) {
  .services-pin {
    grid-template-columns: 0.95fr 1.15fr;
    gap: 2.5rem;
  }

  .services-pin-head {
    text-align: left;
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }

  .services-pin-head .section-lead {
    margin-inline: 0;
  }
}

.services-pin-head .section-lead {
  max-width: 28rem;
}

.services-cascade {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .services-cascade {
    grid-template-columns: 1fr 1fr;
  }
}

.service-cascade-card {
  opacity: 0;
  transform: translateY(48px) scale(0.96);
  will-change: opacity, transform;
}

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem 1.85rem;
  transition:
    box-shadow 0.4s var(--ease-out),
    border-color 0.4s var(--ease);
}

.service-card:hover {
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.15rem;
  color: var(--accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  margin-bottom: 0.55rem;
}

.service-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* ---------- Showcase more (zoom-out frames) ---------- */

.showcase-more {
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.showcase-more-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 720px) {
  .showcase-more-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.showcase-tile {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.media-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8e8ed;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-zoom-frame {
  --media-zoom: 1.12;
  --media-opacity: 0.85;
}

.media-zoom-frame img {
  transform: scale(var(--media-zoom));
  opacity: var(--media-opacity);
  will-change: transform, opacity;
  transition: none;
}

.showcase-meta h3 {
  margin-bottom: 0.35rem;
}

.showcase-meta p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.tag-subtle {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}

/* ---------- Reveal scrub (non-pinned sections) ---------- */

[data-reveal-scrub] {
  opacity: 0;
  transform: translateY(36px);
  will-change: opacity, transform;
}

[data-reveal-scrub].is-in {
  /* driven mostly by JS inline style; class as fallback */
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-bg {
      animation-timeline: scroll();
      animation-range: 0vh 60vh;
    }
  }
}

/* ---------- Why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why-card {
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  transition: background 0.35s var(--ease);
}

.why-card:hover {
  background: #eeeef0;
}

.why-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}

.why-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* ---------- Process ---------- */

.process-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.process-step:first-child {
  border-top: 1px solid var(--line);
}

.process-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.process-step h3 {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

.process-step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* ---------- Contact / Form ---------- */

.section-contact {
  padding-bottom: clamp(5rem, 10vw, 7rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-bullets {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contact-bullets li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.contact-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.form-wrap {
  background: var(--bg-soft);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: inset 0 0 0 1px var(--line);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field label,
.field legend {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.field legend {
  padding: 0;
  margin-bottom: 0.15rem;
}

.req {
  color: var(--accent);
}

.optional {
  color: var(--text-tertiary);
  font-weight: 400;
}

.field-hint {
  margin: 0 0 0.55rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a1a1a6;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(0, 0, 0, 0.22);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: #fff;
}

.field input.is-invalid,
.field textarea.is-invalid,
.field-chips.is-invalid .chips {
  border-color: var(--error);
}

.field-error {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--error);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.chip span {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.chip:hover span {
  border-color: rgba(0, 0, 0, 0.22);
  color: var(--text);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.chip input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(163, 59, 82, 0.25);
}

.chip:active span {
  transform: scale(0.97);
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.form-note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-tertiary);
  max-width: 28rem;
}

.form-success {
  text-align: center;
  padding: 2rem 1rem;
}

.form-success[hidden] {
  display: none !important;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: rgba(45, 138, 94, 0.12);
  color: var(--success);
  font-size: 1.4rem;
  font-weight: 600;
  animation: success-pop 0.55s var(--ease-out);
}

@keyframes success-pop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.form-success h3 {
  margin-bottom: 0.65rem;
  font-size: 1.5rem;
}

.form-success p {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  max-width: 28rem;
  margin-inline: auto;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.875rem;
}

.footer-brand strong {
  font-weight: 600;
  color: var(--text);
}

.footer-brand a {
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ---------- Mobile nav ---------- */

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0.3s;
  }

  .nav-menu.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
  }

  .nav-menu a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .nav-cta {
    margin: 0.5rem 0 0 !important;
    text-align: center;
    justify-content: center;
  }

  .scroll-scene-pin {
    min-height: auto;
    padding-top: calc(var(--header-h) + 1.5rem);
    padding-bottom: 2.5rem;
    align-items: flex-start;
  }

  .gallery-frame {
    aspect-ratio: 4 / 3;
  }
}


/* ========== EXTRAVAGANT SVG MOTION LAYER ========== */

/* Hero SVG theater */
.hero-svg-theater {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.4s var(--ease-out), transform 1.6s var(--ease-out);
}

.hero.is-ready .hero-svg-theater {
  opacity: 1;
  transform: none;
}

.hero-arc-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.2s var(--ease-out);
}

.hero.is-ready .hero-arc-draw {
  stroke-dashoffset: 0;
}

.hero.is-ready .hero-arc-draw:nth-child(2) {
  transition-delay: 0.35s;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: var(--p-size, 4px);
  height: var(--p-size, 4px);
  border-radius: 50%;
  background: var(--accent);
  opacity: var(--p-opacity, 0.35);
  left: var(--p-x, 50%);
  top: var(--p-y, 50%);
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  box-shadow: 0 0 12px rgba(163, 59, 82, 0.25);
  animation: particle-float var(--p-dur, 12s) ease-in-out infinite alternate;
  animation-delay: var(--p-delay, 0s);
}

.hero-particle.is-orbit {
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(163, 59, 82, 0.45);
  box-shadow: none;
  animation: particle-orbit var(--p-dur, 18s) linear infinite;
  animation-delay: var(--p-delay, 0s);
}

@keyframes particle-float {
  from { transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(1); }
  to { transform: translate(-50%, -50%) translate3d(var(--p-dx, 20px), var(--p-dy, -30px), 0) scale(1.15); }
}

@keyframes particle-orbit {
  from { transform: translate(-50%, -50%) rotate(0deg) translateX(var(--p-orbit, 40px)) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg) translateX(var(--p-orbit, 40px)) rotate(-360deg); }
}

/* Scroll-tied ribbon above gallery */
.scroll-ribbon {
  display: block;
  width: min(100%, 920px);
  height: 48px;
  margin: 0 auto 0.5rem;
  overflow: visible;
}

.scroll-ribbon-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  will-change: stroke-dashoffset;
}

.scroll-ribbon-dot {
  opacity: 0;
  will-change: cx, cy, opacity;
}

/* Gallery SVG overlay corners */
.gallery-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

.gallery-corner {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  will-change: stroke-dashoffset;
}

/* Service stroke-draw icons */
.icon-stroke-draw .icon-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  fill: none;
  transition: none;
}

.icon-stroke-draw .icon-path-fill {
  fill-opacity: 0;
}

.service-cascade-card.is-drawn .icon-path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s var(--ease-out);
}

.service-cascade-card.is-drawn .icon-path:nth-child(2) {
  transition-delay: 0.12s;
}

.service-cascade-card.is-drawn .icon-path:nth-child(3) {
  transition-delay: 0.22s;
}

.service-cascade-card.is-drawn .icon-path-fill {
  fill-opacity: 1;
  transition: fill-opacity 0.4s var(--ease-out) 0.35s;
}

.services-pin {
  position: relative;
}

.services-scroll-accent {
  display: none;
  position: absolute;
  left: -2.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: min(70%, 420px);
  pointer-events: none;
  opacity: 0.9;
}

@media (min-width: 1100px) {
  .services-scroll-accent {
    display: block;
  }
}

.services-scroll-accent path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  will-change: stroke-dashoffset;
}

/* SVG section dividers */
.svg-divider {
  position: relative;
  line-height: 0;
  margin: -1px 0;
  z-index: 2;
  overflow: hidden;
}

.svg-divider svg {
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 80px);
}

.svg-divider-ribbon svg {
  height: clamp(50px, 7vw, 100px);
}

.wave-path-b {
  animation: wave-drift 10s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes wave-drift {
  from { transform: translateX(-1.5%) scaleY(1); }
  to { transform: translateX(1.5%) scaleY(1.08); }
}

.ribbon-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.svg-divider.is-in-view .ribbon-draw {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.4s var(--ease-out);
}

/* Soft ambient float on hero marks when ready */
.hero.is-ready .hero-marks {
  animation: marks-breathe 8s ease-in-out infinite alternate;
}

@keyframes marks-breathe {
  from { opacity: 0.45; }
  to { opacity: 0.7; }
}

@media (max-width: 760px) {
  .hero-svg-theater .hero-marks {
    opacity: 0.35;
  }
  .scroll-ribbon {
    height: 36px;
  }
  .gallery-svg-overlay {
    opacity: 0.65;
  }
}


/* ---------- Reduced motion — static layout, no scrub/sticky ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-bg {
    animation: none;
  }

  .hero-enter {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .scroll-scene-track {
    height: auto !important;
  }

  .scroll-scene-pin {
    position: relative !important;
    min-height: auto;
    top: auto;
  }

  .gallery-slide {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    inset: auto;
    margin-bottom: 1rem;
  }

  .gallery-frame {
    height: auto;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transform: none !important;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  .gallery-slide img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-media);
    aspect-ratio: 16 / 10;
  }

  .gallery-copy {
    position: static;
    min-height: 0;
  }

  .gallery-caption {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
    margin-bottom: 1.25rem;
  }

  .gallery-progress {
    display: none;
  }

  .service-cascade-card,
  [data-reveal-scrub] {
    opacity: 1 !important;
    transform: none !important;
  }

  .media-zoom-frame img {
    transform: none !important;
    opacity: 1 !important;
  }

  .hero-visual {
    --hero-media-y: 0px !important;
    --hero-media-scale: 1 !important;
  }

  .hero-svg-theater,
  .hero-particles,
  .scroll-ribbon,
  .gallery-svg-overlay,
  .services-scroll-accent {
    animation: none !important;
  }

  .hero-svg-theater {
    opacity: 0.55 !important;
    transform: none !important;
  }

  .hero-svg-theater animate,
  .hero-svg-theater animateTransform {
    display: none;
  }

  .hero-particles {
    display: none !important;
  }

  .hero-arc-draw,
  .scroll-ribbon-path,
  .gallery-corner,
  .icon-stroke-draw .icon-path,
  .ribbon-draw,
  .services-scroll-accent path {
    stroke-dashoffset: 0 !important;
  }

  .icon-stroke-draw .icon-path-fill {
    fill-opacity: 1 !important;
  }

  .wave-path-b {
    animation: none !important;
  }

  .scroll-ribbon-dot {
    opacity: 0 !important;
  }

}

/* Body class when JS detects reduced motion (extra safety) */
body.reduce-motion .scroll-scene-track {
  height: auto !important;
}

body.reduce-motion .scroll-scene-pin {
  position: relative !important;
  min-height: auto;
}


body.reduce-motion .hero-particles,
body.reduce-motion .gallery-svg-overlay circle {
  display: none !important;
}

body.reduce-motion .hero-arc-draw,
body.reduce-motion .scroll-ribbon-path,
body.reduce-motion .gallery-corner,
body.reduce-motion .icon-path,
body.reduce-motion .ribbon-draw {
  stroke-dashoffset: 0 !important;
}


/* ---------- Simple email contact (no form) ---------- */
.contact-simple {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  padding-block: clamp(2rem, 6vw, 4rem);
}
.contact-simple-lead {
  margin-inline: auto;
  max-width: 34rem;
}
.email-card {
  margin: 2rem auto 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 1.25rem;
  background: var(--surface-soft, #f5f5f7);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.email-card-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6e6e73;
}
.email-card-address {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: break-all;
}
.email-card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.email-card-hint {
  margin: 0;
  font-size: 0.9rem;
  color: #34c759;
}
.contact-bullets-simple {
  justify-content: center;
  text-align: left;
  display: inline-block;
  margin-inline: auto;
}
