:root {
  color-scheme: light;
  --terracotta: #C6503C;
  --terracotta-dark: #A94332;
  --charcoal: #252525;
  --cream: #FFFFD3;
  --off-white: #F5F2E7;
  --surface: #FAF8F0;
  --surface-2: #ECE8DB;
  --text: #252525;
  --muted: #68645D;
  --line: rgba(56, 48, 42, .14);
  --card-shadow: 0 18px 48px rgba(57, 42, 34, .07);
  --header-bg: rgba(245, 242, 231, .86);
  --success: #26A047;
  --error: #CB3135;
  --info: #2967CC;
  --content-width: 1240px;
  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-height: 72px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --off-white: #252525;
  --surface: #2D2D2B;
  --surface-2: #353431;
  --text: #F5F2E7;
  --muted: #C3BFB5;
  --line: rgba(245, 242, 231, .13);
  --card-shadow: 0 20px 55px rgba(0, 0, 0, .16);
  --header-bg: rgba(37, 37, 37, .88);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); scrollbar-gutter: stable; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--off-white);
  color: var(--text);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  transition: background-color .35s ease, color .35s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--terracotta); color: var(--cream); }

.skip-link {
  position: fixed; z-index: 200; inset-inline-start: 1rem; top: 1rem;
  transform: translateY(-200%); background: var(--charcoal); color: var(--cream);
  padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 4px; }

.site-header {
  position: fixed; z-index: 100; inset: 0 0 auto; height: var(--header-height);
  border-bottom: 1px solid transparent; transition: background .3s ease, border-color .3s ease, height .3s ease;
}
.site-header.is-scrolled { background: var(--header-bg); border-color: var(--line); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); }
.header-inner { width: min(calc(100% - (var(--gutter) * 2)), var(--content-width)); height: 100%; margin-inline: auto; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-nav { display: flex; align-items: center; gap: 18px; }
.header-nav a { position: relative; font-size: 14px; font-weight: 700; }
.header-nav a:not(.header-cta)::after { content: ""; position: absolute; right: 0; left: 100%; bottom: -7px; height: 2px; background: var(--terracotta); transition: left .25s var(--ease); }
.header-nav a:not(.header-cta):hover::after, .header-nav a:not(.header-cta):focus-visible::after { left: 0; }
.header-cta { background: var(--terracotta); color: var(--cream); padding: 8px 24px; border-radius: 6px; font-size: 13px !important; font-weight: 800; transition: transform .25s var(--ease), background .25s; }
.header-cta:hover { background: var(--terracotta-dark); transform: translateY(-2px); }
.theme-toggle { width: 56px; height: 28px; padding: 0; border: none; border-radius: 14px; background: transparent; cursor: pointer; position: relative; display: flex; flex-shrink: 0; }
.theme-toggle-track { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .25s, background .25s; display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.theme-toggle:hover .theme-toggle-track { border-color: var(--terracotta); }
.theme-toggle-thumb { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--terracotta); transition: transform .3s var(--ease), background .3s; }
[data-theme="dark"] .theme-toggle-thumb { transform: translateX(-28px); background: var(--terracotta); border-color: transparent; }
.theme-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; z-index: 2; position: relative; transition: opacity .25s, color .25s; }
.theme-toggle .sun { color: var(--cream); }
.theme-toggle .moon { color: var(--muted); }
[data-theme="dark"] .theme-toggle .sun { color: var(--muted); }
[data-theme="dark"] .theme-toggle .moon { color: var(--cream); }

/* --- Base Parallax Wrappers (Static for now) --- */
.scene-wrapper { position: relative; width: 100%; isolation: isolate; }
.scene-sticky { position: relative; width: 100%; overflow: hidden; }
.scene-background { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.scene-content { position: relative; z-index: 2; width: 100%; }
.scene-foreground { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

.hero-scene .scene-content { min-height: 100svh; display: grid; align-items: center; padding: calc(var(--header-height) + 30px) var(--gutter) 60px; }
.hero-scene .scene-background::after { content: ""; position: absolute; z-index: -2; inset: auto 0 0; height: 23%; background: linear-gradient(to bottom, transparent, var(--surface-2)); clip-path: polygon(0 64%, 66% 10%, 100% 42%, 100% 100%, 0 100%); opacity: .48; }
.hero-grid { width: min(100%, var(--content-width)); margin: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr); align-items: center; gap: clamp(44px, 7vw, 100px); }
.hero-copy { position: relative; z-index: 4; min-width: 0; will-change: transform; }
.eyebrow { margin: 0 0 20px; color: var(--terracotta); font-size: 13px; font-weight: 800; letter-spacing: .04em; display: flex; align-items: center; gap: 10px; }
.eyebrow > span { width: 28px; height: 2px; background: currentColor; }
.hero-scene h1 { max-width: 760px; margin: 0; font-size: clamp(34px, 4.2vw, 62px); line-height: 1.16; letter-spacing: -.03em; font-weight: 900; }
h1 em, h2 em { color: var(--terracotta); font-style: normal; }
.hero-lead { max-width: 640px; margin: 14px 0 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.85; overflow-wrap: anywhere; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.button { min-height: 54px; padding: 13px 24px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border-radius: 8px; font-size: 15px; font-weight: 800; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--terracotta); color: var(--cream); }
.button-primary:hover { background: var(--terracotta-dark); }
.button-secondary { border-color: var(--line); background: var(--surface); }
.button-secondary:hover { border-color: var(--terracotta); color: var(--terracotta); }

.hero-backdrop { position: absolute; z-index: -1; inset: 0; pointer-events: none; will-change: transform; }
.hero-word { position: absolute; left: -2vw; top: 25%; direction: ltr; color: transparent; -webkit-text-stroke: 1px var(--line); font: 900 clamp(100px, 17vw, 280px)/1 Arial, sans-serif; letter-spacing: -.08em; opacity: .58; }
.brand-arc { position: absolute; display: block; border: clamp(28px, 5vw, 70px) solid var(--terracotta); opacity: .03; }
.arc-one { width: 35vw; height: 35vw; min-width: 360px; min-height: 360px; top: -18vw; right: -10vw; border-radius: 0 0 0 70%; border-top: 0; border-right: 0; }
.arc-two { width: 24vw; height: 24vw; bottom: -10vw; left: 8vw; border-radius: 0 70% 0 0; border-bottom: 0; border-left: 0; }

.system-visual { position: relative; aspect-ratio: 1; width: min(100%, 500px); margin-inline: auto; will-change: transform; direction: ltr; }
.system-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--terracotta); stroke-width: 1; stroke-dasharray: 5 8; opacity: .38; animation: orbit 18s linear infinite; }
.growth-core { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 145px; aspect-ratio: 1; border-radius: 36% 36% 36% 8%; background: var(--charcoal); color: var(--cream); display: grid; place-content: center; text-align: center; box-shadow: 18px 20px 0 color-mix(in srgb, var(--terracotta) 22%, transparent); }
.growth-core::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,211,.25); border-radius: inherit; }
.growth-core span { font-size: 12px; opacity: .7; }.growth-core strong { font-size: 24px; line-height: 1.25; }
.system-node { position: absolute; min-width: 90px; min-height: 42px; padding: 8px 14px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 7px; box-shadow: var(--card-shadow); font: 700 12px/1 Arial, sans-serif; animation: float 5s ease-in-out infinite; }
.system-node::before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); }
.node-1 { top: 2%; left: 39%; }.node-1::before { bottom: -4px; }
.node-2 { top: 15%; right: 2%; animation-delay: -.6s }.node-2::before { left: -4px; }
.node-3 { top: 42%; right: -2%; animation-delay: -1.2s }.node-3::before { left: -4px; }
.node-4 { bottom: 12%; right: 7%; animation-delay: -1.8s }.node-4::before { left: -4px; }
.node-5 { bottom: 0; left: 38%; animation-delay: -2.4s }.node-5::before { top: -4px; }
.node-6 { bottom: 13%; left: 5%; animation-delay: -3s }.node-6::before { right: -4px; }
.node-7 { top: 42%; left: -3%; animation-delay: -3.6s }.node-7::before { right: -4px; }
.node-8 { top: 14%; left: 5%; animation-delay: -4.2s }.node-8::before { right: -4px; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-7px) } }
.scroll-cue { position: absolute; bottom: 24px; right: 50%; transform: translateX(50%); display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 700; }
.scroll-cue i { width: 1px; height: 34px; background: var(--terracotta); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; width: 100%; height: 45%; background: var(--cream); top: -45%; animation: scrollLine 2s infinite; }
@keyframes scrollLine { 100% { top: 100%; } }

.services-scene { background: var(--surface-2); }
.services-scene .scene-content { padding: clamp(100px, 12vw, 180px) var(--gutter); }
.services-scene .scene-background::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(135deg, transparent 48%, color-mix(in srgb, var(--terracotta) 5%, transparent) 48% 52%, transparent 52%); background-size: 76px 76px; opacity: .65; }
.section-thread { position: absolute; z-index: -1; inset: -70px 6vw auto auto; width: 2px; height: 260px; background: linear-gradient(var(--terracotta), transparent); transform: rotate(24deg); }
.services-layout { width: min(100%, var(--content-width)); margin-inline: auto; display: grid; grid-template-columns: minmax(240px, .6fr) minmax(0, 2fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.section-heading { position: sticky; top: calc(var(--header-height) + 56px); }
.section-heading h2, .lead-copy h2 { margin: 0; font-size: clamp(38px, 4.3vw, 62px); line-height: 1.28; letter-spacing: -.04em; font-weight: 900; }
.section-heading > p:last-child { color: var(--muted); margin: 24px 0 0; font-size: 17px; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; perspective: 1000px; align-items: start; }
.service-card { --reveal-y: 20px; padding: 28px; border: 1px solid rgba(56, 48, 42, .08); border-radius: 14px; background: var(--surface); box-shadow: 0 4px 20px rgba(0,0,0,0.02); display: flex; flex-direction: column; position: relative; overflow: hidden; transform: translate3d(0, calc(var(--reveal-y) + var(--card-shift, 0px)), 0); opacity: 0; transition: transform .5s var(--ease), opacity .5s ease, border-color .3s, box-shadow .3s, background .3s; }
[data-theme="dark"] .service-card { border-color: rgba(245, 242, 231, .06); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.service-card:nth-child(even) { margin-top: 24px; }
.service-card.is-visible { --reveal-y: 0px; opacity: 1; }
.service-card::after { content: ""; position: absolute; right: 32px; bottom: 0; width: 0; height: 3px; background: var(--terracotta); transition: width .4s var(--ease); }
.service-card:hover { transform: translate3d(0, calc(var(--card-shift, 0px) - 4px), 0); border-color: color-mix(in srgb, var(--terracotta) 30%, transparent); box-shadow: 0 12px 30px rgba(0,0,0,0.05); }
[data-theme="dark"] .service-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.service-card:hover::after { width: calc(100% - 64px); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.card-top svg { width: 44px; height: 44px; padding: 10px; color: var(--terracotta); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; background: color-mix(in srgb, var(--terracotta) 6%, transparent); border-radius: 10px; transition: transform .3s var(--ease), background .3s; }
[data-theme="dark"] .card-top svg { background: color-mix(in srgb, var(--terracotta) 12%, transparent); }
.service-card:hover .card-top svg { transform: translateY(-3px) scale(1.05); background: color-mix(in srgb, var(--terracotta) 10%, transparent); }
.service-number { color: var(--text); font: 600 13px/1 Arial, sans-serif; letter-spacing: .05em; opacity: 0.3; }
.service-card h3 { margin: 0 0 10px; font-size: 21px; font-weight: 800; line-height: 1.4; }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

.form-scene { position: relative; min-height: 100vh; height: auto; overflow: visible; background: var(--charcoal); color: var(--off-white); }
.form-static-content { position: relative; z-index: 2; transform: none !important; padding: clamp(90px, 10vw, 130px) var(--gutter); }
.form-scene-background::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0; width: 34%; background: var(--terracotta); clip-path: polygon(58% 0, 100% 0, 100% 100%, 0 100%, 0 24%); opacity: .94; }
.form-backdrop { position: absolute; z-index: -2; inset: 0; pointer-events: none; }
.form-backdrop span { position: absolute; bottom: -2vw; right: -1vw; direction: ltr; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255,255,211,.11); font: 900 clamp(90px, 15vw, 230px)/1 Arial,sans-serif; letter-spacing: -.07em; }
.lead-layout { position: relative; transform: none !important; width: min(100%, 1240px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 120px); align-items: center; }
.eyebrow-light { color: var(--cream); }
.lead-copy { position: relative; z-index: 2; width: 100%; max-width: 520px; }
.lead-copy h2 { color: #F5F2E7; }
.lead-copy p:last-of-type { color: #D2CEC4; max-width: 440px; margin-top: 24px; font-size: 18px; }
.route-line { direction: ltr; display: flex; align-items: center; gap: 0; margin-top: 45px; width: min(100%, 360px); }
.route-line i { width: 13px; height: 13px; border-radius: 50%; background: var(--cream); position: relative; }
.route-line i + i { margin-left: 92px; }
.route-line i + i::before { content: ""; position: absolute; right: 13px; top: 6px; width: 92px; height: 1px; background: rgba(255,255,211,.45); }
.form-shell { position: relative; transform: none !important; width: 100%; max-width: 720px; height: auto; min-height: 0; overflow: visible; background: var(--surface); color: var(--text); border-radius: 18px; padding: clamp(28px, 4vw, 32px) clamp(30px, 4vw, 36px) clamp(28px, 4vw, 32px); box-shadow: 0 35px 90px rgba(0,0,0,.26); border: 1px solid rgba(255,255,211,.09); justify-self: end; }
#leadForm { position: relative; transform: none !important; display: flex; flex-direction: column; justify-content: flex-start; height: auto; min-height: 0; }
.form-intro { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
.form-intro span { flex: 0 0 auto; color: var(--terracotta); font-weight: 900; }.form-intro p { margin: 0; color: var(--muted); font-size: 13px; }
.form-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field--full { grid-column: 1 / -1; }
.field { margin: 0; }
.field label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 800; line-height: 1.4; }
.field label b { color: var(--terracotta); }
.field input, .select-wrapper select { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 8px; padding: 0 15px; background: var(--off-white); color: var(--text); font-family: inherit; font-size: inherit; transition: border-color .2s, box-shadow .2s, background .2s; }
.select-wrapper { position: relative; }
.select-wrapper select { appearance: none; padding-left: 40px; padding-right: 15px; cursor: pointer; }
.select-wrapper select:invalid { color: var(--muted); }
.select-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; pointer-events: none; color: var(--muted); }
.field input:hover, .select-wrapper select:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--line)); }
.field input:focus, .select-wrapper select:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px color-mix(in srgb, var(--terracotta) 18%, transparent); background: var(--surface); }
.field.is-invalid input, .field.is-invalid .select-wrapper select { border-color: var(--error); box-shadow: 0 0 0 2px color-mix(in srgb, var(--error) 14%, transparent); }
.field-error { min-height: 16px; margin: 4px 0 0; color: var(--error); font-size: 12px; font-weight: 700; line-height: 1.3; }
.field-error:empty { visibility: hidden; }
.consent-field { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 8px; margin: 16px 0 0; align-items: start; }
.consent-field input { appearance: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid var(--line); border-radius: 5px; background: var(--off-white); display: grid; place-content: center; cursor: pointer; }
.consent-field input::before { content: ""; width: 9px; height: 5px; border: solid var(--cream); border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(0); transition: transform .15s; margin-top: -2px; }
.consent-field input:checked { background: var(--terracotta); border-color: var(--terracotta); }.consent-field input:checked::before { transform: rotate(-45deg) scale(1); }
.consent-field label { color: var(--muted); font-size: 13px; cursor: pointer; line-height: 1.4; }
.consent-field .field-error { grid-column: 1/-1; }
.consent-field.is-invalid input { border-color: var(--error); }
.form-status { margin: 0; padding: 0; font-size: 13px; font-weight: 700; border: 1px solid transparent; border-radius: 7px; min-height: 0; }
.form-status:empty { display: none; }
.form-status:not(:empty) { display: block; margin-block: 10px; padding: 10px 12px; }
.form-status.is-error { color: var(--error); border-color: color-mix(in srgb, var(--error) 30%, transparent); background: color-mix(in srgb, var(--error) 7%, transparent); }
.form-status.is-info { color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, transparent); background: color-mix(in srgb, var(--info) 7%, transparent); }
.form-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.submit-button { width: 100%; min-height: 50px; margin: 0; border: 0; border-radius: 8px; padding: 13px 20px; background: var(--terracotta); color: var(--cream); font-weight: 900; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background .25s, transform .25s var(--ease); }
.submit-button:hover:not(:disabled) { background: var(--terracotta-dark); }
.submit-button:active:not(:disabled) { transform: scale(0.98); }
.submit-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; transform: rotate(180deg); }
.submit-button:disabled { opacity: .72; cursor: wait; }.spinner { display: none; width: 20px; height: 20px; border: 2px solid rgba(255,255,211,.35); border-top-color: var(--cream); border-radius: 50%; animation: spin .7s linear infinite; }
.submit-button.is-loading .spinner { display: block; }.submit-button.is-loading svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-separator { display: flex; align-items: center; text-align: center; color: var(--muted); margin: 0; font-size: 13px; gap: 12px; }
.form-separator p { margin: 0; }
.form-separator::before, .form-separator::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.whatsapp-button { width: 100%; min-height: 50px; margin: 0; border: 0; border-radius: 8px; padding: 0 20px; background: #25B85A; color: #FFFFFF; font-weight: 900; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s, transform .2s var(--ease); }
.whatsapp-button:hover { background: #1FA451; transform: translateY(-1px); }
.whatsapp-button:active { background: #198A45; transform: scale(0.99); }
.whatsapp-button svg { width: 20px; height: 20px; flex-shrink: 0; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.success-state { min-height: 480px; display: grid; place-content: center; text-align: center; animation: successIn .5s var(--ease) both; }
.success-icon { width: 62px; height: 62px; margin: 0 auto 22px; border: 2px solid var(--success); color: var(--success); border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 900; }
.success-state .success-label { margin: 0 0 9px; color: var(--success); font-size: 12px; font-weight: 900; }.success-state h3 { margin: 0; font-size: 28px; }.success-state p { max-width: 450px; color: var(--muted); margin: 15px auto 25px; }.success-state .button { justify-self: center; }
@keyframes successIn { from { opacity: 0; transform: translateY(20px); } }

.site-footer { min-height: 66px; padding: 16px var(--gutter); border-top: 1px solid rgba(245,242,231,.1); background: var(--charcoal); color: #C8C3B8; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 12px; }
.site-footer a:hover { color: var(--cream); }
.reveal:not(.service-card) { opacity: 0; transform: translateY(35px); transition: opacity .75s ease, transform .75s var(--ease); }
.reveal.is-visible:not(.service-card) { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr 420px; gap: 35px; }.hero-scene h1 { font-size: clamp(44px, 6vw, 64px); }
  .services-layout { grid-template-columns: 1fr; }.section-heading { position: relative; top: auto; max-width: 700px; }
  
  .hero-scene .scene-background { transform: translate3d(0, calc(var(--internal-progress, 0) * 14px), 0) !important; }
  .hero-scene .hero-copy { transform: translate3d(0, calc(var(--internal-progress, 0) * -25px), 0) !important; }
  .hero-scene .system-visual { transform: none !important; }
  .hero-scene .scene-content { transform: none !important; opacity: 1 !important; }
}
@media (max-width: 900px) {
  .lead-layout { grid-template-columns: 1fr; gap: 50px; }
  .lead-copy { text-align: center; max-width: 100%; margin-inline: auto; }
  .lead-copy .eyebrow, .route-line { justify-content: center; margin-inline: auto; }
  .lead-copy p:last-of-type { margin-inline: auto; }
  .form-shell { justify-self: center; }
}
@media (max-width: 820px) {
  :root { --header-height: 72px; }
  .header-inner { gap: 16px; }.brand img { width: 44px; height: 44px; }.header-nav { gap: 16px; }.header-nav a { font-size: 12px; }
  .hero-scene .scene-content { padding-top: calc(var(--header-height) + 55px); padding-bottom: 95px; }.hero-grid { width: 100%; max-width: 100%; grid-template-columns: minmax(0, 1fr); }.hero-copy { width: 100%; max-width: 100%; text-align: center; }.eyebrow, .hero-actions { justify-content: center; }.hero-lead { margin-inline: auto; }
  .system-visual { width: min(88vw, 500px); margin-top: 25px; }.hero-word { top: 45%; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.service-card:nth-child(even) { margin-top: 20px; }
  .lead-layout { grid-template-columns: 1fr; }.lead-copy { text-align: center; }.lead-copy .eyebrow, .route-line { justify-content: center; margin-inline: auto; }.lead-copy p:last-of-type { margin-inline: auto; }
  .form-scene .scene-background::before { width: 100%; height: 33%; clip-path: polygon(0 0,100% 0,100% 70%,0 100%); opacity: .92; }
}
@media (max-width: 700px) {
  .form-fields-grid { grid-template-columns: 1fr; gap: 16px; }
  .field--full { grid-column: auto; }
}
@media (max-width: 580px) {
  :root { --gutter: 18px; }
  .header-inner { width: calc(100% - 28px); }.header-nav a:not(.header-cta) { display: none; }.header-actions { gap: 12px; }.theme-toggle { width: 52px; height: 26px; }.theme-toggle-track { padding: 0 3px; }.theme-toggle-thumb { width: 20px; height: 20px; right: 2px; }[data-theme="dark"] .theme-toggle-thumb { transform: translateX(-26px); }
  .hero-scene .scene-content { min-height: auto; padding-top: 120px; }.hero-scene h1 { width: 100%; max-width: 100%; font-size: clamp(33px, 9.5vw, 39px); letter-spacing: -.02em; }.hero-scene h1 > span { display: block; white-space: nowrap; }.hero-lead { width: 100%; font-size: 16px; }.hero-actions { flex-direction: column; }.button { width: 100%; }
  .system-visual { width: 100%; margin-top: 20px; }.system-node { min-width: 68px; min-height: 35px; padding: 6px 8px; font-size: 10px; }.growth-core { width: 110px; }.growth-core strong { font-size: 20px; }.system-lines { opacity: .26; }.scroll-cue { display: none; }
  .services-scene .scene-content { padding-top: 90px; padding-bottom: 100px; }.services-grid { grid-template-columns: 1fr; gap: 14px; }.service-card, .service-card:nth-child(even) { min-height: 255px; margin-top: 0; padding: 24px; }
  .section-heading h2, .lead-copy h2 { font-size: 39px; }
  .form-static-content { padding-top: 90px; padding-bottom: 90px; }.form-scene-background::before { height: 31%; }.form-shell { padding: 24px 20px; }.form-intro { display: block; }.form-intro p { margin-top: 7px; }.route-line i + i { margin-left: 62px; }.route-line i + i::before { width: 62px; }
  .field input, .select-wrapper select { height: 48px; }
  .site-footer { flex-direction: column; justify-content: center; text-align: center; }
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  /* --- HERO PARALLAX --- */
  .hero-scene { z-index: 1; }
  .hero-scene .scene-sticky {
    transform: translate3d(0, calc(var(--scene-exit, 0) * 30vh), 0);
  }
  .hero-scene .scene-background {
    transform: translate3d(0, calc(var(--internal-progress, 0) * 24px), 0);
    will-change: transform; backface-visibility: hidden;
  }
  .hero-scene .hero-copy {
    transform: translate3d(0, calc(var(--internal-progress, 0) * -42px), 0);
    will-change: transform; backface-visibility: hidden;
  }
  .hero-scene .system-visual {
    transform: translate3d(0, calc(var(--internal-progress, 0) * -58px), 0);
    will-change: transform; backface-visibility: hidden;
  }
  .hero-scene .scene-foreground {
    /* removed */
  }
  .hero-scene .scene-content {
    transform: scale(calc(1 - (var(--scene-exit, 0) * 0.015)));
    opacity: calc(1 - (var(--scene-exit, 0) * 0.08));
    transform-origin: center center;
    will-change: transform, opacity;
  }

  /* --- SERVICES PARALLAX --- */
  .services-scene { z-index: 2; box-shadow: 0 -15px 40px rgba(0,0,0,0.04); }
  [data-theme="dark"] .services-scene { box-shadow: 0 -15px 40px rgba(0,0,0,0.15); }
  .services-scene .scene-sticky {
    transform: translate3d(0, calc(var(--scene-exit, 0) * 45vh), 0);
  }
  .services-scene .section-thread {
    transform: translate3d(0, calc(var(--scene-progress, 0) * -40px), 0) rotate(24deg);
  }
  .services-scene .scene-content {
    transform: scale(calc(1 - (var(--scene-exit, 0) * 0.015)));
    opacity: calc(1 - (var(--scene-exit, 0) * 0.5));
    transform-origin: center center;
  }

  /* --- FORM PARALLAX --- */
  .form-scene { z-index: 3; box-shadow: 0 -15px 40px rgba(0,0,0,0.06); }
  [data-theme="dark"] .form-scene { box-shadow: 0 -15px 40px rgba(0,0,0,0.2); }
  .form-scene .form-backdrop {
    transform: translate3d(0, calc((1 - var(--scene-enter, 1)) * 50px), 0);
  }
}

html.capture-mode .site-header { position: absolute; }
html.capture-mode .scene-sticky { position: relative !important; top: auto !important; transform: none !important; }
html.capture-mode .scene-wrapper { height: auto !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-parallax], .service-card, .reveal { transform: none !important; }
  .section-heading { position: relative; top: auto; }
  .scene-wrapper { height: auto !important; }
  .scene-sticky { position: relative !important; top: auto !important; transform: none !important; }
}
