:root {
  --ink: oklch(.25 .025 45);
  --paper: oklch(.985 .008 75);
  --surface: oklch(.992 .005 75);
  --surface-2: oklch(.965 .014 75);
  --surface-3: oklch(.93 .02 72);
  --text: var(--ink);
  --text-2: oklch(.45 .022 48);
  --text-3: oklch(.53 .018 52);
  --line: oklch(.875 .028 72);
  --line-2: oklch(.72 .035 64);
  --agave: oklch(.39 .095 38);
  --agave-2: oklch(.52 .12 38);
  --agave-3: var(--ink);
  --accent: var(--agave);
  --warm: oklch(.52 .12 38);
  --campaign: oklch(.48 .095 38);
  --campaign-text: oklch(.965 .014 75);
  --display: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); }
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a, button, input, select, textarea { transition: background-color .2s, border-color .2s, color .2s, opacity .2s; }
svg { flex-shrink: 0; }
button svg { width: 18px; height: 18px; }
:focus-visible { outline: 3px solid oklch(.62 .13 38); outline-offset: 4px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; top: 10px; left: 14px; z-index: 100; padding: 12px 16px; background: var(--paper); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.top-header { position: absolute; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px max(32px, calc((100vw - 1376px) / 2)); color: oklch(.975 .01 75); }
.brand { display: grid; justify-items: start; color: inherit; line-height: 1; text-decoration: none; }
.brand-script { font-family: 'Snell Roundhand', 'Brush Script MT', cursive; font-size: 38px; font-weight: 700; letter-spacing: -.055em; }
.header-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.header-nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.header-nav a:hover { opacity: .7; }
.header-nav .nav-cta { min-width: 138px; justify-content: center; padding: 10px 20px; color: var(--ink); background: oklch(.965 .008 92); border: 1px solid oklch(.965 .008 92); }
.header-nav .nav-cta:hover { color: oklch(.965 .008 92); background: transparent; opacity: 1; }

.hero-section { --parallax-y: 0px; --image-scale: 1.07; position: relative; isolation: isolate; min-height: min(900px, 100svh); display: grid; align-items: center; overflow: hidden; padding: 150px max(36px, calc((100vw - 1376px) / 2)) 132px; color: oklch(.975 .008 75); background: var(--ink); }
.hero-section::before { content: ''; position: absolute; inset: 0; z-index: -1; background: oklch(.19 .035 45 / .58); }
.hero-section::after, .showcase-section::after { content: ''; position: absolute; inset: -7%; z-index: -2; background-position: center; background-size: cover; background-repeat: no-repeat; transform: translate3d(0, var(--parallax-y), 0) scale(var(--image-scale)); will-change: transform; }
.hero-section::after { background-image: url('assets/hero-bookings-v3.jpg'); }
.hero-content { width: min(760px, 58vw); padding-top: 12px; transform: translate3d(0, var(--copy-y, 0px), 0); will-change: transform; }
.hero-title { margin: 0 0 28px; max-width: 11ch; font: 650 clamp(62px, 6.9vw, 102px)/.92 var(--display); letter-spacing: -.065em; text-wrap: balance; }
.hero-subtitle { max-width: 34ch; font-size: clamp(19px, 1.6vw, 24px); font-weight: 400; line-height: 1.45; }
.hero-cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin: 38px 0 28px; }
.cta-button { min-height: 58px; min-width: 186px; display: inline-flex; align-items: center; justify-content: center; padding: 15px 24px; color: var(--ink); background: oklch(.975 .008 92); border: 1px solid oklch(.975 .008 92); font-weight: 600; text-decoration: none; }
.cta-button:hover { color: oklch(.975 .008 92); background: transparent; }
.text-link, .dark-link { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.text-link:hover, .dark-link:hover { opacity: .65; }
.showcase-section { --parallax-y: 0px; --image-scale: 1.07; position: relative; isolation: isolate; min-height: min(900px, 100svh); display: grid; align-items: center; padding: 130px max(36px, calc((100vw - 1376px) / 2)); overflow: hidden; color: oklch(.975 .01 75); background: var(--ink); }
.showcase-section::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, oklch(.18 .03 45 / .91) 0%, oklch(.18 .03 45 / .72) 42%, oklch(.18 .03 45 / .18) 72%); }
.showcase-section::after { background-image: url('assets/owner-studio-wide-v2.jpg'); }
.showcase-copy { max-width: 660px; }
.showcase-copy h2, .form-header h2, .footer-title { font-family: var(--display); font-weight: 650; letter-spacing: -.06em; text-wrap: balance; }
.showcase-copy h2 { margin: 0 0 30px; font-size: clamp(56px, 6.2vw, 94px); line-height: .92; }
.showcase-copy > p { max-width: 38ch; color: oklch(.91 .02 68); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; }
.showcase-offer { display: flex; align-items: end; gap: 22px; margin-top: 38px; }
.showcase-offer > p { color: oklch(.91 .02 68); }
.showcase-price { display: flex; align-items: baseline; gap: 9px; color: oklch(.975 .01 75) !important; line-height: 1; }
.showcase-price strong { font-size: clamp(54px, 6vw, 84px); font-weight: 650; letter-spacing: -.07em; }
.showcase-price span { font-size: 17px; }
.showcase-cta { margin-top: 34px; }
.dark-link { margin-top: 32px; }

.form-section { overflow: clip; padding: clamp(90px, 10vw, 150px) 28px; background: var(--surface); }
.form-header { max-width: 1160px; margin: 0 auto 56px; }
.form-header h2 { max-width: 15ch; font-size: clamp(50px, 5.5vw, 80px); line-height: 1; }
.form-container { max-width: 1160px; margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(34px, 5vw, 76px); align-items: start; }
.form-card { min-width: 0; padding: 0 clamp(8px, 2vw, 28px); background: var(--surface); }
.pricing-card { margin-bottom: 56px; padding: 0 0 36px; border-bottom: 1px solid var(--line); }
.pricing-amount { display: flex; align-items: baseline; gap: 9px; margin-bottom: 12px; color: var(--agave); line-height: 1; }
.pricing-amount strong { font-size: clamp(58px, 7vw, 82px); font-weight: 650; letter-spacing: -.07em; }
.pricing-amount span { font-size: 18px; }
.pricing-period { font-size: 20px; }
.pricing-includes { max-width: 54ch; margin-top: 8px; color: var(--text-2); font-size: 15px; }
.form-step { margin-bottom: 42px; padding: 0 0 42px; border-bottom: 1px solid var(--line); scroll-margin-top: 30px; }
.form-section-title { margin: 0 0 30px; font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.form-group { min-width: 0; margin-bottom: 24px; }
.form-group:last-child { margin-bottom: 0; }
.form-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.form-required { color: var(--agave); }
.form-hint { display: block; margin-top: 7px; color: var(--text-3); font-size: 12px; line-height: 1.55; }
.form-input, .form-select, .form-textarea, .phone-number-input, .color-input-text, .service-input, .duration-input, .duration-unit-select, .price-input, .contact-form-input, .contact-form-textarea { width: 100%; min-width: 0; min-height: 50px; padding: 12px 13px; color: var(--ink); background: oklch(.99 .003 92); border: 1px solid var(--line-2); border-radius: 0; font: 400 16px/1.4 var(--body); color-scheme: light; }
.form-input:focus, .form-select:focus, .form-textarea:focus, .phone-number-input:focus, .color-input-text:focus, .service-input:focus, .duration-input:focus, .duration-unit-select:focus, .price-input:focus { border-color: var(--agave); }
.form-textarea { min-height: 122px; resize: vertical; }
.form-input::placeholder, .form-textarea::placeholder, .service-input::placeholder, .contact-form-input::placeholder, .contact-form-textarea::placeholder { color: var(--text-3); opacity: 1; }
.form-select:disabled { color: var(--text-3); background: var(--surface-2); }
.font-sample { min-height: 72px; display: flex; align-items: center; margin-top: 10px; padding: 12px 14px; overflow-wrap: anywhere; color: var(--ink); background: var(--surface-2); font-size: clamp(28px, 4vw, 42px); line-height: 1.05; }
.phone-input-wrapper { display: flex; flex-wrap: wrap; gap: 8px; }
.country-code-display { min-width: 66px; max-width: 100%; display: flex; align-items: center; padding: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.phone-number-input { flex: 1; min-width: 120px; }
.copy-phone-btn, .add-service-btn, .remove-logo-btn, .remove-service-btn { min-height: 44px; padding: 10px 15px; color: var(--ink); background: transparent; border: 1px solid var(--line-2); border-radius: 0; }
.copy-phone-btn { font-size: 12px; }
.copy-phone-btn:hover, .add-service-btn:hover, .remove-logo-btn:hover { background: var(--surface-2); }
.color-input-group { display: flex; align-items: center; gap: 12px; }
.color-preview { width: 50px; height: 50px; flex: 0 0 50px; padding: 3px; background: var(--surface); border: 1px solid var(--line-2); cursor: pointer; }
.color-input-text { flex: 1; }
.file-input-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; clip-path: inset(50%); }
.file-upload-area { padding: 28px; text-align: center; background: var(--surface-2); border: 1px dashed var(--line-2); cursor: pointer; }
.file-upload-area:hover { background: var(--surface-3); }
.file-upload-icon { margin-bottom: 8px; }
.file-upload-icon svg { width: 25px; height: 25px; }
.file-upload-text { font-size: 14px; font-weight: 500; }
.file-upload-hint { margin-top: 5px; color: var(--text-3); font-size: 12px; }
.logo-preview-container { display: none; padding: 18px; text-align: center; border: 1px solid var(--line); }
.logo-preview { max-width: 160px; max-height: 140px; object-fit: contain; }
.logo-preview-name { margin: 8px 0; overflow-wrap: anywhere; font-size: 13px; }
.services-container { display: grid; gap: 12px; margin-bottom: 16px; }
.service-item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 44px; gap: 12px; padding: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.service-item > :first-child { grid-column: 1 / -1; }
.service-item label { display: block; margin-bottom: 5px; color: var(--text-2); font-size: 12px; }
.duration-input-wrapper, .price-input-wrapper { min-width: 0; display: flex; align-items: center; gap: 6px; }
.duration-unit-select { width: 80px; flex: 0 0 80px; padding-inline: 6px; }
.duration-input { min-width: 54px; }
.price-currency { font-size: 14px; }
.remove-service-btn { align-self: end; padding: 8px; color: oklch(.45 .14 25); }
.submit-button, .contact-form-submit { width: 100%; min-height: 56px; display: inline-flex; align-items: center; justify-content: center; padding: 15px 22px; color: oklch(.975 .008 92); background: var(--agave); border: 1px solid var(--agave); border-radius: 0; font-weight: 600; }
.submit-button:hover, .contact-form-submit:hover { background: var(--agave-3); }
.preview-panel { position: sticky; top: 28px; min-width: 0; }
.preview-header { margin-bottom: 15px; }
.preview-title { font-size: 18px; font-weight: 500; }
.preview-window { overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); }
.preview-browser-bar { display: flex; align-items: center; gap: 4px; padding: 10px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.browser-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.preview-content { max-height: 540px; overflow: auto; overscroll-behavior: contain; }
.preview-content > * { min-width: 0; overflow-wrap: anywhere; }

.footer { overflow: clip; padding: clamp(76px, 9vw, 130px) max(28px, calc((100vw - 1280px) / 2)) 26px; color: oklch(.965 .008 92); background: var(--agave-3); }
.footer-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr); gap: 14px clamp(70px, 9vw, 140px); }
.footer-title { grid-column: 1; max-width: 13ch; margin-top: 12px; font-size: clamp(50px, 5.5vw, 80px); line-height: 1; }
.contact-form { grid-column: 2; grid-row: 1 / 5; }
.contact-form-group { margin-bottom: 18px; }
.contact-form-label { display: block; margin-bottom: 7px; font-size: 13px; }
.contact-form-input, .contact-form-textarea { color: oklch(.965 .014 75); background: oklch(.30 .032 45); border-color: oklch(.52 .05 45); color-scheme: dark; }
.contact-form-input::placeholder, .contact-form-textarea::placeholder { color: oklch(.73 .012 92); }
.contact-form-textarea { min-height: 124px; resize: vertical; }
.contact-form-submit { color: var(--ink); background: oklch(.965 .008 92); border-color: oklch(.965 .008 92); }
.contact-form-submit:hover { color: oklch(.965 .008 92); background: transparent; }
.contact-form-success { display: none; margin-top: 16px; }
.contact-form-success.show { display: block; }
.footer-bottom { display: flex; gap: 24px; margin-top: 76px; padding-top: 24px; border-top: 1px solid oklch(.52 .05 45); font-size: 10px; letter-spacing: .12em; }

/* Scroll choreography: decisive masked lifts plus continuous image movement. */
.motion-enabled .motion-reveal {
  clip-path: inset(0 0 20% 0);
  transform: translate3d(0, 48px, 0) scale(.985);
  transform-origin: 50% 100%;
  transition: clip-path .82s cubic-bezier(.22, 1, .36, 1), transform .82s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-enabled .motion-reveal--strong { clip-path: inset(0 0 30% 0); transform: translate3d(0, 68px, 0) scale(.97); }
.motion-enabled .motion-reveal--side { clip-path: inset(0 12% 0 0); transform: translate3d(42px, 22px, 0) scale(.96); transform-origin: 100% 50%; }
.motion-enabled .motion-reveal.is-visible { clip-path: inset(0); transform: none; }

.success-popup-overlay, .popup-overlay { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 20px; background: oklch(.18 .025 45 / .84); }
.success-popup-overlay.show, .popup-overlay.show { display: grid; }
.success-message, .popup-content { position: relative; width: min(540px, 100%); max-height: calc(100dvh - 40px); overflow: auto; padding: 42px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
.success-close, .popup-close { position: absolute; top: 8px; right: 8px; min-width: 44px; min-height: 44px; border: 0; background: none; font-size: 26px; }
.success-icon { display: block; margin-bottom: 24px; color: var(--agave); }
.success-title { margin-bottom: 18px; font-size: 30px; font-weight: 500; line-height: 1.15; }
.success-text { overflow-wrap: anywhere; color: var(--text-2); }

@media (max-width: 1360px) {
  .form-container { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
}

@media (max-width: 1120px) {
  .hero-content { width: min(720px, 70vw); }
  .form-container { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 820px) {
  .top-header { padding: 16px 22px; }
  .header-nav { gap: 18px; }
  .header-nav a:nth-child(-n+2) { display: none; }
  .hero-section { min-height: 760px; padding: 130px 24px 124px; }
  .hero-section::after { background-position: 62% center; }
  .hero-section::before { background: oklch(.18 .03 45 / .66); }
  .hero-content { width: min(610px, 88vw); }
  .hero-title { font-size: clamp(54px, 12vw, 84px); }
  .showcase-section { min-height: 760px; padding: 110px 24px; }
  .showcase-section::after { background-position: 58% center; }
  .showcase-section::before { background: oklch(.18 .03 45 / .72); }
  .showcase-copy { max-width: 620px; }
  .form-section { padding: 76px 20px; }
  .form-header { display: block; margin-bottom: 40px; }
  .form-header h2 { margin: 16px 0 22px; }
  .form-container { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .preview-panel { grid-column: 1; grid-row: 1; }
  .form-card { grid-column: 1; grid-row: 2; }
  .footer { padding: 76px 24px 24px; }
  .footer-content { display: block; }
  .footer-title { margin: 16px 0 20px; }
  .contact-form { max-width: 620px; }
  .footer-bottom { margin-top: 48px; flex-wrap: wrap; }
}

@media (max-width: 500px) {
  .brand-script { font-size: 31px; }
  .header-nav > a:not(.nav-cta) { display: none; }
  .header-nav .nav-cta { min-width: 0; padding: 9px 13px; font-size: 12px; }
  .hero-section { min-height: 790px; padding-bottom: 110px; }
  .hero-section::after { background-position: 68% center; }
  .hero-content { width: 100%; }
  .hero-title { margin-block: 28px 24px; font-size: clamp(52px, 15vw, 70px); }
  .hero-subtitle { font-size: 19px; }
  .hero-cta-row { align-items: stretch; flex-direction: column; gap: 12px; margin-block: 32px 24px; }
  .cta-button { width: 100%; }
  .text-link { align-self: flex-start; }
  .showcase-section { min-height: 790px; padding: 100px 20px; }
  .showcase-section::after { background-position: 60% center; }
  .showcase-copy h2 { font-size: 52px; }
  .showcase-offer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .form-header h2, .footer-title { font-size: 46px; }
  .form-card { padding: 27px 20px; }
  .service-item { grid-template-columns: minmax(0, 1fr); }
  .service-item > * { grid-column: 1; }
  .remove-service-btn { justify-self: end; }
  .copy-phone-btn { width: 100%; }
  .success-message { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .hero-section::after, .showcase-section::after, .hero-content, .motion-enabled .motion-reveal { clip-path: none !important; transform: none !important; }
}
