/* Ayan Studio refresh — shared visual system */
:root {
  --bg: #080d12;
  --bg-soft: #0c141b;
  --surface: rgba(18, 28, 36, .84);
  --surface-strong: #121d26;
  --surface-soft: rgba(153, 231, 244, .08);
  --border: rgba(196, 223, 230, .12);
  --border-strong: rgba(196, 223, 230, .24);
  --text: #f1f7f8;
  --muted: #a2b2b8;
  --text-secondary: #a2b2b8;
  --brand: #a8edf3;
  --brand-strong: #50bbcb;
  --brand-contrast: #061115;
  --glow: rgba(80, 187, 203, .18);
  --shadow: 0 28px 80px rgba(0, 0, 0, .35);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1200px;
  color-scheme: dark;
}

[data-theme="dark"] {
  --bg: #060a0e;
  --bg-soft: #0a1117;
  --surface: rgba(15, 23, 30, .9);
  --surface-strong: #101a21;
  --surface-soft: rgba(153, 231, 244, .075);
  --border: rgba(196, 223, 230, .10);
  --border-strong: rgba(196, 223, 230, .20);
  --text: #f3f8f9;
  --muted: #9eacb2;
  --text-secondary: #9eacb2;
  --brand: #9ce7ee;
  --brand-strong: #40aebf;
  --brand-contrast: #041014;
  --glow: rgba(64, 174, 191, .16);
}

[data-theme="light"] {
  --bg: #eff5f5;
  --bg-soft: #e8f0f1;
  --surface: rgba(255, 255, 255, .88);
  --surface-strong: #ffffff;
  --surface-soft: rgba(15, 99, 112, .07);
  --border: rgba(25, 58, 64, .11);
  --border-strong: rgba(25, 58, 64, .19);
  --text: #102329;
  --muted: #5f7379;
  --text-secondary: #5f7379;
  --brand: #147f8d;
  --brand-strong: #0c6573;
  --brand-contrast: #f5ffff;
  --glow: rgba(20, 127, 141, .12);
  --shadow: 0 24px 64px rgba(22, 54, 60, .12);
  color-scheme: light;
}

html { scroll-padding-top: calc(var(--header-height) + 16px); }
body {
  background:
    radial-gradient(ellipse at 82% 0%, color-mix(in srgb, var(--glow) 64%, transparent), transparent 35rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
body::before { opacity: .28; background-size: 58px 58px; }
.ambient span { opacity: .055; filter: blur(110px); }
.page-shell { isolation: isolate; }

.site-header {
  height: auto;
  min-height: var(--header-height);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom-color: var(--border);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}
[data-theme="dark"] .site-header { background: color-mix(in srgb, var(--bg) 86%, transparent); }
[data-theme="light"] .site-header { background: color-mix(in srgb, var(--bg) 86%, transparent); }
.navbar { min-height: var(--header-height); }
.brand { gap: 12px; }
.brand-mark { box-shadow: 0 0 0 1px var(--border), 0 9px 28px var(--glow); }
.brand-copy strong { letter-spacing: -.035em; }
.brand-copy span { letter-spacing: .08em; }
.nav-links { gap: 3px; }
.nav-links a { padding: 10px 12px; font-size: 11px; }
.nav-links a.active { color: var(--text); background: var(--surface-soft); }
.nav-actions { gap: 7px; }
.pill, .icon-btn { background: color-mix(in srgb, var(--surface-strong) 78%, transparent); }
.pref-panel { background: color-mix(in srgb, var(--surface-strong) 96%, var(--bg)); border-color: var(--border-strong); }

.btn {
  min-height: 48px;
  padding-inline: 21px;
  border-radius: 999px;
  letter-spacing: -.01em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.btn-primary {
  background: linear-gradient(130deg, var(--brand), var(--brand-strong));
  box-shadow: 0 10px 30px var(--glow), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-secondary { background: color-mix(in srgb, var(--surface-strong) 78%, transparent); }
.btn:focus-visible, .pill:focus-visible, .icon-btn:focus-visible,
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.hero {
  min-height: min(780px, calc(100svh - var(--header-height)));
  background: radial-gradient(ellipse at 78% 40%, rgba(70, 155, 169, .16), transparent 42%), var(--bg);
}
.hero-media { overflow: hidden; background: radial-gradient(ellipse at 76% 36%, rgba(64, 165, 178, .20), transparent 38%), linear-gradient(135deg, #0c171d, #090d12 72%); }
.hero-media video { filter: saturate(.78) contrast(1.08) brightness(.62); opacity: 0; transition: opacity .8s ease; }
.hero-media video.is-playing { opacity: 1; }
.hero-media::after {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 96%, transparent) 0%, color-mix(in srgb, var(--bg) 76%, transparent) 48%, color-mix(in srgb, var(--bg) 48%, transparent) 100%),
    linear-gradient(180deg, transparent 52%, color-mix(in srgb, var(--bg) 90%, transparent) 100%);
}
[data-theme="light"] .hero-media::after {
  background: linear-gradient(90deg, rgba(239,245,245,.94), rgba(239,245,245,.76) 48%, rgba(239,245,245,.36)), linear-gradient(180deg, transparent 55%, rgba(239,245,245,.88));
}
.hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .68fr); gap: clamp(30px, 6vw, 82px); align-items: center; padding-block: clamp(72px, 10vh, 120px); }
.hero-copy { max-width: 700px; }
.eyebrow, .kicker { color: var(--brand); letter-spacing: .11em; }
.eyebrow .dot { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 11%, transparent), 0 0 20px var(--glow); }
.hero h1 { max-width: 720px; font-size: clamp(46px, 7.2vw, 88px); line-height: 1.08; letter-spacing: -.06em; }
.hero h1 span { color: var(--brand); }
.hero-lead { max-width: 580px; margin-top: 22px; font-size: clamp(14px, 1.6vw, 17px); line-height: 1.95; }
.hero-actions { gap: 12px; margin-top: 32px; }
.hero-side { gap: 10px; }
.floating-card {
  width: min(100%, 330px);
  padding: 19px 20px;
  border-color: var(--border-strong);
  border-radius: 19px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-strong) 82%, transparent), color-mix(in srgb, var(--bg) 62%, transparent));
  box-shadow: 0 20px 50px rgba(0,0,0,.17), inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter: blur(12px);
  animation: none;
}
.floating-card small { color: var(--brand); letter-spacing: .1em; }
.floating-card strong { font-size: 17px; line-height: 1.65; }

.section { padding-block: clamp(66px, 8vw, 104px); }
.section-sm { padding-block: clamp(46px, 6vw, 76px); }
.section-head { margin-bottom: 34px; }
.section-head h2, .page-hero h1, .gallery-hero h1 { line-height: 1.17; letter-spacing: -.045em; }
.section-head p, .page-hero p, .gallery-hero p { line-height: 1.95; }
.card {
  border-color: var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, color-mix(in srgb, var(--surface-strong) 84%, transparent), color-mix(in srgb, var(--surface) 68%, transparent));
  box-shadow: 0 16px 48px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(12px);
}
.card:hover { border-color: color-mix(in srgb, var(--brand) 34%, var(--border)); box-shadow: 0 24px 58px rgba(0,0,0,.20), 0 0 28px color-mix(in srgb, var(--glow) 45%, transparent); }
.card::after { display: none; }
.package { overflow: hidden; }
.package-cinematic { border-radius: 25px; }
.packages-showcase { position: relative; }
.packages-showcase-head { gap: 24px; }
.packages-showcase-title h2 { max-width: 720px; }
.package-visual { border-radius: 20px 20px 0 0; }
.package-content { padding: clamp(18px, 2vw, 25px); }
.package-content ul { line-height: 1.8; }
.package-cta { width: 100%; }
.cta-banner { border-radius: 26px; border-color: var(--border-strong); background: radial-gradient(ellipse at 82% 0%, var(--glow), transparent 48%), linear-gradient(130deg, var(--surface-strong), var(--bg)); }
.site-footer { background: color-mix(in srgb, var(--bg) 88%, transparent); border-top-color: var(--border); }

.page-hero, .gallery-hero, .terms-page .terms-hero { padding-block: clamp(64px, 8vw, 100px) 42px; }
.page-hero::after, .gallery-hero::after { opacity: .5; }
.feature-grid, .service-grid, .process-grid { gap: 14px; }
.feature-grid > *, .service-grid > *, .process-grid > * { border-radius: 21px; }
.gallery-tabs { background: var(--surface-strong); border-color: var(--border-strong); }
.gallery-tab { min-height: 42px; padding-inline: 18px; }
.gallery-tab.active { background: linear-gradient(130deg, var(--brand), var(--brand-strong)); }
.gallery-card { border-radius: 20px; }
.gallery-card .media-wrap { background: linear-gradient(140deg, #14242a, #0a1115); }
.gallery-card img, .gallery-card video { aspect-ratio: 4 / 5; }
.gallery-loading-status { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.gallery-loading-status::after { content: ''; display: inline-block; width: 20px; height: 2px; margin-inline-start: 8px; vertical-align: middle; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--brand), transparent); animation: galleryLoadingSweep 1.2s ease-in-out infinite; }
.gallery-skeleton { min-height: 320px; overflow: hidden; position: relative; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(145deg, var(--surface-strong), color-mix(in srgb, var(--bg) 74%, var(--surface-strong))); }
.gallery-skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--brand) 7%, transparent), transparent); animation: gallerySkeletonSweep 1.6s ease-in-out infinite; }
@keyframes galleryLoadingSweep { 0%,100% { transform: translateX(-24%); opacity: .45; } 50% { transform: translateX(24%); opacity: 1; } }
@keyframes gallerySkeletonSweep { to { transform: translateX(100%); } }
.lightbox { backdrop-filter: blur(14px); }

.booking-hero { padding-bottom: 22px; }
.booking-layout { grid-template-columns: minmax(0, 1.34fr) minmax(300px, .72fr); gap: 20px; }
.booking-main-card { padding: clamp(20px, 3vw, 36px); border-radius: 28px; background: radial-gradient(ellipse at 88% 0%, var(--glow), transparent 44%), linear-gradient(145deg, color-mix(in srgb, var(--surface-strong) 96%, transparent), color-mix(in srgb, var(--bg) 92%, transparent)); }
.booking-main-card .packingbackground { opacity: 0 !important; transition: opacity .8s ease; }
.booking-main-card .packingbackground.is-playing { opacity: .11 !important; }
.booking-signature { border-radius: 28px; background: radial-gradient(ellipse at 90% 0%, var(--glow), transparent 44%), linear-gradient(150deg, var(--surface-strong), var(--bg)); }
.booking-signature-title { letter-spacing: .055em; }
.booking-signature-step { border-color: var(--border); }
.booking-progress { margin-bottom: 30px; }
.booking-progress span b { width: 34px; height: 34px; }
.booking-package-grid { gap: 10px; }
.booking-package-choice { border-radius: 16px; background: color-mix(in srgb, var(--surface-strong) 85%, transparent); border-color: var(--border); }
.booking-package-choice:hover, .booking-package-choice.selected { border-color: color-mix(in srgb, var(--brand) 56%, var(--border)); background: color-mix(in srgb, var(--brand) 8%, var(--surface-strong)); }
.form-control { min-height: 49px; border-radius: 13px; background-color: color-mix(in srgb, var(--bg) 72%, var(--surface-strong)); }
.form-control { color: var(--text) !important; background: color-mix(in srgb, var(--bg) 68%, var(--surface-strong)) !important; border: 1px solid var(--border-strong) !important; caret-color: var(--brand) !important; -webkit-text-fill-color: var(--text) !important; }
.form-control::placeholder { color: var(--muted) !important; -webkit-text-fill-color: var(--muted) !important; }
.form-control:focus { color: var(--text) !important; background: color-mix(in srgb, var(--surface-strong) 92%, var(--bg)) !important; border-color: var(--brand) !important; box-shadow: 0 0 0 4px var(--glow) !important; -webkit-text-fill-color: var(--text) !important; }
[data-theme="light"] .form-control { color: var(--text) !important; background: rgba(255,255,255,.94) !important; border-color: var(--border-strong) !important; -webkit-text-fill-color: var(--text) !important; }
[data-theme="light"] .form-control::placeholder { color: var(--muted) !important; -webkit-text-fill-color: var(--muted) !important; }
[data-theme="light"] .form-control:focus { background: #fff !important; color: var(--text) !important; -webkit-text-fill-color: var(--text) !important; }
select.form-control option { background: var(--surface-strong) !important; color: var(--text) !important; }
textarea.form-control { min-height: 120px; }
.form-group label, .booking-field-head label { color: var(--text); font-weight: 700; }
.booking-price-summary { border-radius: 18px; border-color: var(--border-strong); }
.terms-consent { border-radius: 16px; }
.booking-submit-row { gap: 16px; }
.booking-submit-row .form-submit { min-width: 190px; }

.support-section .form-card, .support-section .card { border-radius: 25px; }
.form-card { border-color: var(--border-strong); background: linear-gradient(145deg, var(--surface-strong), color-mix(in srgb, var(--bg) 82%, transparent)); }
.terms-page .terms-card { border-radius: 22px; }
.toast { border-color: var(--border-strong); background: color-mix(in srgb, var(--surface-strong) 96%, var(--bg)); }
.social-float-toggle { box-shadow: 0 12px 34px var(--glow); }

/* Checkout keeps its existing pricing and payment logic; only the presentation changes. */
body.checkout-page { min-height: 100vh; }
.checkout-wrap { width: min(1020px, 100%); max-width: 1020px; padding: clamp(28px, 5vw, 64px) 18px 80px; }
.checkout-card {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 14px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  background: radial-gradient(ellipse at 88% 0%, var(--glow), transparent 38%), linear-gradient(145deg, color-mix(in srgb, var(--surface-strong) 97%, transparent), color-mix(in srgb, var(--bg) 94%, transparent));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
}
.checkout-logo, .checkout-kicker, .checkout-title, .checkout-sub, .checkout-demo,
.payment-selector, .checkout-actions, .payment-methods, .checkout-error, .checkout-status,
.checkout-back, .checkout-secure { grid-column: 1 / -1; }
.checkout-logo { width: 66px; height: 66px; margin-bottom: 8px; }
.checkout-kicker { color: var(--brand); letter-spacing: .18em; }
.checkout-title { margin-top: 0; font-size: clamp(29px, 5vw, 42px); letter-spacing: -.04em; }
.checkout-sub { margin-bottom: 12px; color: var(--muted); }
.checkout-summary, .checkout-customer, .payment-selector, .payment-methods {
  margin: 0;
  padding: 18px;
  border-color: var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 36%, var(--surface-strong));
}
.checkout-skeleton-row { display: block; width: 100%; height: 13px; border-radius: 99px; background: linear-gradient(100deg, color-mix(in srgb, var(--brand) 5%, var(--surface-strong)), color-mix(in srgb, var(--brand) 13%, var(--surface-strong)), color-mix(in srgb, var(--brand) 5%, var(--surface-strong))); background-size: 220% 100%; animation: checkoutSkeletonSweep 1.45s ease-in-out infinite; }
.checkout-summary .checkout-skeleton-row:nth-child(2) { width: 86%; }
.checkout-summary .checkout-skeleton-row:nth-child(3) { width: 74%; }
.checkout-summary .checkout-skeleton-row:nth-child(4) { width: 92%; }
.checkout-customer .checkout-skeleton-row:nth-child(2) { width: 76%; }
.checkout-customer .checkout-skeleton-row:nth-child(3) { width: 88%; }
.checkout-empty { color: var(--muted); font-size: 12px; line-height: 1.8; }
@keyframes checkoutSkeletonSweep { to { background-position: -220% 0; } }
.checkout-summary { align-content: start; }
.checkout-customer { align-content: start; }
.checkout-row { align-items: baseline; line-height: 1.65; }
.checkout-row.total { color: var(--text); }
.checkout-row.total strong { color: var(--brand); }
.payment-selector { display: grid; gap: 12px; }
.payment-selector-title, .payment-methods-title { color: var(--text); }
.payment-choice-grid { gap: 12px; }
.payment-choice {
  min-height: 82px;
  border-color: var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
}
.payment-choice.selected { border-color: color-mix(in srgb, var(--brand) 65%, transparent); background: color-mix(in srgb, var(--brand) 8%, var(--surface-strong)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 15%, transparent); }
.payment-choice-copy small, .payment-choice-price { color: var(--muted); }
.checkout-email { height: 50px; border-color: var(--border-strong); border-radius: 13px; background: color-mix(in srgb, var(--bg) 72%, var(--surface-strong)); color: var(--text); }
.checkout-email:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--glow); }
.checkout-actions button { min-height: 56px; font-size: 14px; }
.payment-methods-list { gap: 9px; }
.payment-method { border-radius: 13px; background: color-mix(in srgb, var(--surface-strong) 80%, transparent); }
.payment-method.active { border-color: color-mix(in srgb, var(--brand) 28%, var(--border)); }
.checkout-secure { line-height: 1.8; }

body.payment-result-page {
  min-height: 100svh;
  padding: 24px;
  color: var(--text);
  background: radial-gradient(ellipse at 50% 0%, var(--glow), transparent 38rem), linear-gradient(145deg, var(--bg-soft), var(--bg));
  font-family: Inter, 'IBM Plex Sans Arabic', system-ui, sans-serif;
}
.payment-result-page main {
  width: min(720px, 100%);
  padding: clamp(24px, 6vw, 52px);
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  background: radial-gradient(ellipse at 50% 0%, var(--glow), transparent 45%), color-mix(in srgb, var(--surface-strong) 95%, transparent);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.045);
}
.payment-result-page .logo { width: 70px; height: 70px; object-fit: contain; }
.payment-result-page .eyebrow { color: var(--brand); }
.payment-result-page .icon { color: var(--brand); border-color: var(--border-strong); background: var(--surface-soft); }
.payment-result-page .status { border: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 48%, var(--surface-strong)); color: var(--text); line-height: 1.75; }
.payment-result-page .status.hidden, .payment-result-page .actions.hidden { display: none; }
.payment-result-page .status.error { border-color: rgba(222,106,106,.28); background: rgba(170,53,53,.12); color: #ffd4d4; }
.payment-result-page .primary { color: var(--brand-contrast); background: linear-gradient(130deg, var(--brand), var(--brand-strong)); }
.payment-result-page .ghost { color: var(--text); border: 1px solid var(--border); background: var(--surface-soft); }

/* Invoice preview remains print-friendly. */
body.invoice-page:not(.embedded) { min-height: 100vh; padding: 22px; background: linear-gradient(145deg, #0a1117, #111e25); color: #14252a; }
.invoice-page:not(.embedded) .wrap { width: min(940px, 100%); }
.invoice-page .toolbar-title { color: #d4e3e7; }
.invoice-page .download { background: #117f8d; box-shadow: 0 10px 24px rgba(17,127,141,.22); }
.invoice-page .back { border-color: #284047; background: #15242a; color: #e6f1f2; }
.invoice-page .invoice-top { background: linear-gradient(145deg, #071015, #163038); }
.invoice-page .invoice-meta .eyebrow { color: #50bbcb; }
.invoice-page .section-label::before { background: #117f8d; }
.invoice-page .notice-icon { background: #e5f6f7; color: #117f8d; }
.invoice-page .line.total { background: linear-gradient(135deg, #f2fbfb, #eaf5f6); }
.invoice-page .line.total strong { color: #117f8d; }
.invoice-page .payment-badge { background: #e5f6f7; color: #116b77; }
.invoice-page:not(.embedded) .invoice { border-radius: 26px; box-shadow: 0 30px 90px rgba(0,0,0,.30); }
@media print { body.invoice-page:not(.embedded) { padding: 0; background: #fff; } }

/* Developer page */
.info-hero { min-height: 650px; background: radial-gradient(ellipse at 80% 42%, var(--glow), transparent 40%), var(--bg); }
.info-hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(320px, .78fr); gap: clamp(28px, 7vw, 90px); padding-block: clamp(72px, 10vh, 118px); }
.info-hero-copy h1 { max-width: 700px; font-size: clamp(48px, 7vw, 84px); line-height: 1.08; letter-spacing: -.06em; }
.info-hero-copy h1 span { color: var(--brand); }
.info-hero-copy > p { max-width: 590px; margin-top: 20px; color: var(--muted); font-size: 15px; line-height: 1.95; }
.info-proof-row { gap: 10px; }
.info-proof-row div { min-width: 118px; border-color: var(--border); border-radius: 15px; background: color-mix(in srgb, var(--surface-strong) 76%, transparent); }
.info-proof-row strong { color: var(--brand); }
.info-code-card { border-color: var(--border-strong); border-radius: 23px; background: linear-gradient(145deg, #101a20, #091116); box-shadow: 0 30px 80px rgba(0,0,0,.34); }
.info-windowbar { border-bottom-color: var(--border); }
.info-windowbar span { color: #98acb1; }
.info-code-status { color: #95acb1; border-top-color: var(--border); }
.info-code-status span { background: var(--brand-strong); box-shadow: 0 0 14px var(--brand-strong); }
.info-pillar, .info-project-card, .info-stack-panel { border-color: var(--border); border-radius: 22px; }
.info-number { color: var(--brand); }
.info-project-card { min-height: 430px; background: radial-gradient(ellipse at 50% 22%, var(--glow), transparent 42%), linear-gradient(150deg, var(--surface-strong), var(--bg)); }
.project-logo { border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.project-tags span, .stack-cloud span { border-color: var(--border); background: color-mix(in srgb, var(--surface-strong) 82%, transparent); color: var(--muted); }
.info-stack-panel { background: radial-gradient(ellipse at 80% 0%, var(--glow), transparent 48%), linear-gradient(145deg, var(--surface-strong), var(--bg)); }
.info-cta-banner { border-radius: 26px; }

.footer-developer-credit { border-color: var(--border); background: color-mix(in srgb, var(--surface-strong) 74%, transparent); }
.ecommerce-verification { border-color: var(--border); border-radius: 18px; background: color-mix(in srgb, var(--surface-strong) 66%, transparent); }

@media (max-width: 980px) {
  .nav-links { gap: 0; }
  .nav-links a { padding-inline: 8px; font-size: 10px; }
  .checkout-page .nav-actions .btn-primary { display: inline-flex !important; min-height: 40px; padding-inline: 14px; font-size: 10px; }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-signature { order: 2; }
  .booking-main-card { order: 1; }
  .packages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-hero-inner { grid-template-columns: 1fr; }
  .info-code-card { max-width: 760px; width: 100%; margin-inline: auto; }
}
@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding-block: 76px 58px; }
  .hero h1 { max-width: 620px; font-size: clamp(44px, 12vw, 70px); }
  .hero-side { grid-template-columns: 1fr; justify-items: stretch; }
  .floating-card { width: 100%; }
  .floating-card strong { font-size: 15px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .booking-layout { gap: 14px; }
  .checkout-card { grid-template-columns: 1fr; }
  .checkout-summary, .checkout-customer { grid-column: 1; }
  .info-hero { min-height: 0; }
  .info-hero-inner { padding-block: 62px 58px; }
  .info-hero-copy h1 { font-size: clamp(46px, 12vw, 72px); }
  .info-project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .navbar { gap: 8px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-mark { width: 39px; height: 39px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy span { font-size: 8px; letter-spacing: .04em; }
  .nav-actions { gap: 5px; }
  .nav-actions .pill { min-height: 36px; padding-inline: 8px; font-size: 9px; }
  .hero-grid { padding-block: 62px 48px; }
  .hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { min-height: 47px; padding-inline: 12px; font-size: 11px; }
  .packages-grid { grid-template-columns: 1fr; }
  .booking-main-card { padding: 18px !important; border-radius: 21px; }
  .booking-signature { padding: 24px 20px; }
  .booking-submit-row { align-items: stretch; flex-direction: column; }
  .booking-submit-row .form-submit { width: 100%; }
  .payment-choice-grid { grid-template-columns: 1fr; }
  .checkout-wrap { padding: 28px 12px 52px; }
  .checkout-card { padding: 20px 16px; border-radius: 23px; }
  .checkout-summary, .checkout-customer, .payment-selector, .payment-methods { padding: 14px; }
  .payment-methods-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .payment-method { min-width: 0; }
  .payment-result-page { padding: 14px; }
  .payment-result-page main { padding: 24px 18px; border-radius: 23px; }
  .payment-result-page .actions { display: grid; grid-template-columns: 1fr; }
  .payment-result-page .actions a { text-align: center; }
  body.invoice-page:not(.embedded) { padding: 10px; }
  .info-proof-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-proof-row div { min-width: 0; padding: 12px 8px; }
  .info-proof-row strong { font-size: 17px; }
  .info-proof-row span { font-size: 8px; }
  .info-code-card pre { overflow-x: auto; }
  .info-project-card { min-height: 390px; }
  .gallery-skeleton { min-height: 230px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Warm light mode with a cinematic cover keeps the pale palette crisp. */
[data-theme="light"] {
  --bg: #f2efe7;
  --bg-soft: #e9eee9;
  --surface: rgba(255, 253, 248, .94);
  --surface-strong: #fffdf8;
  --surface-soft: rgba(8, 109, 119, .075);
  --border: rgba(18, 50, 55, .13);
  --border-strong: rgba(18, 50, 55, .22);
  --text: #12272b;
  --muted: #53686b;
  --text-secondary: #53686b;
  --brand: #087f89;
  --brand-strong: #075f68;
  --brand-contrast: #f8ffff;
  --glow: rgba(8, 127, 137, .13);
  --shadow: 0 24px 64px rgba(24, 47, 45, .12);
}

body[data-theme="light"] {
  background:
    radial-gradient(ellipse at 82% 0%, rgba(8, 127, 137, .09), transparent 35rem),
    linear-gradient(180deg, #f5f2eb 0%, #e8eeea 100%);
}
[data-theme="light"] .site-header {
  background: rgba(246, 244, 238, .92);
  border-bottom-color: rgba(18, 50, 55, .12);
}
[data-theme="light"] .hero {
  color: #f4f7f4;
  background: #071116;
}
[data-theme="light"] .hero-media {
  background:
    radial-gradient(ellipse at 76% 38%, rgba(20, 127, 141, .20), transparent 38%),
    linear-gradient(135deg, #101d21, #071116 72%);
}
[data-theme="light"] .hero-media video {
  filter: saturate(.82) contrast(1.08) brightness(.48);
}
[data-theme="light"] .hero-media::after {
  background:
    linear-gradient(90deg, rgba(4, 13, 17, .62) 0%, rgba(4, 13, 17, .76) 52%, rgba(4, 13, 17, .88) 100%),
    linear-gradient(180deg, rgba(4, 13, 17, .10) 35%, rgba(4, 13, 17, .84) 100%);
}
[data-theme="light"] .hero h1 { color: #f6f8f4; }
[data-theme="light"] .hero h1 span { color: #69d0d1; }
[data-theme="light"] .hero .hero-lead { color: rgba(239, 246, 243, .78); }
[data-theme="light"] .hero .eyebrow { color: #69d0d1; }
[data-theme="light"] .floating-card {
  border-color: rgba(225, 244, 244, .20);
  background: linear-gradient(145deg, rgba(12, 31, 36, .82), rgba(7, 18, 22, .68));
  box-shadow: 0 22px 52px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255,255,255,.08);
}
[data-theme="light"] .floating-card small { color: #72d7da; }
[data-theme="light"] .floating-card strong { color: #f1f7f6; }
[data-theme="light"] .hero .btn-secondary {
  color: #13282c;
  border-color: rgba(255,255,255,.72);
  background: rgba(255, 253, 248, .96);
}

/* Keep the booking form wide and readable in both writing directions. */
.booking-layout {
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.34fr);
  align-items: start;
}
.booking-main-card { min-width: 0; }
@media (min-width: 981px) {
  .booking-signature {
    position: sticky;
    top: calc(var(--header-height) + 18px);
    align-self: start;
    height: fit-content;
    min-height: 0;
  }
}
[data-theme="light"] .booking-main-card {
  border-color: rgba(18, 50, 55, .16);
  background: linear-gradient(145deg, #fffdf8 0%, #f5f7f2 100%);
  box-shadow: 0 24px 64px rgba(24, 47, 45, .13), inset 0 1px 0 #fff;
}
[data-theme="light"] .booking-main-card .packingbackground { opacity: 0 !important; }
[data-theme="light"] .booking-main-card .packingbackground.is-playing {
  opacity: .035 !important;
  filter: saturate(.5) brightness(1.2);
}
[data-theme="light"] .booking-main-card .packingbackground-overlay {
  background: linear-gradient(145deg, rgba(255, 253, 248, .88), rgba(244, 248, 245, .96)) !important;
}
[data-theme="light"] .booking-signature {
  border-color: rgba(18, 50, 55, .16) !important;
  background:
    radial-gradient(circle at 50% 7%, rgba(8,127,137,.09), transparent 36%),
    linear-gradient(150deg, #fffdf8, #edf2ed) !important;
  box-shadow: 0 24px 64px rgba(24, 47, 45, .12) !important;
}
[data-theme="light"] .booking-signature-step {
  background: rgba(255, 255, 255, .84) !important;
  border-color: rgba(18, 50, 55, .12) !important;
}
[data-theme="light"] .booking-signature-step.is-active,
[data-theme="light"] .booking-signature-step.is-done {
  border-color: rgba(8, 127, 137, .35) !important;
  background: linear-gradient(135deg, rgba(8,127,137,.12), rgba(255,255,255,.92)) !important;
}
[data-theme="light"] .booking-signature-step-num {
  background: rgba(8,127,137,.09) !important;
  border-color: rgba(8,127,137,.24) !important;
  color: #087f89 !important;
}
[data-theme="light"] .booking-flow-details .is-empty { display: none; }
[data-theme="light"] .booking-flow-details .is-placeholder { color: #748487; font-weight: 500; }
[data-theme="light"] .booking-package-choice {
  grid-template-columns: 42px minmax(0, 1fr) minmax(84px, auto);
  min-height: 94px;
  padding: 15px 14px;
  border-color: rgba(18, 50, 55, .15);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 20px rgba(24, 47, 45, .035);
}
[data-theme="light"] .booking-package-choice:hover,
[data-theme="light"] .booking-package-choice.selected {
  border-color: rgba(8, 127, 137, .48);
  background: linear-gradient(135deg, rgba(8,127,137,.09), #fffdf8 72%);
  box-shadow: 0 14px 32px rgba(8, 86, 95, .11);
}
[data-theme="light"] .booking-package-copy strong { color: #14292d; }
[data-theme="light"] .booking-package-copy small { color: #53686b; }
[data-theme="light"] .booking-package-price b { color: #087f89; }
[data-theme="light"] .booking-price-summary,
[data-theme="light"] .payment-methods {
  border-color: rgba(18, 50, 55, .15);
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(241,246,242,.96));
  box-shadow: 0 12px 30px rgba(24, 47, 45, .06);
}
[data-theme="light"] .payment-method {
  border-color: rgba(18, 50, 55, .18);
  background: #fffefa;
}
[data-theme="light"] .payment-method.maintenance small { color: #53686b; }
[data-theme="light"] .payment-method img[alt="Tamara"],
[data-theme="light"] .payment-method img[alt="Visa"],
[data-theme="light"] .payment-method img[alt="Apple Pay"] {
  filter: brightness(0) saturate(100%) opacity(.82);
}
[data-theme="light"] .payment-method img[alt="Tabby"] {
  filter: drop-shadow(0 3px 8px rgba(15, 158, 107, .16));
}
[data-theme="light"] .booking-progress i { background: linear-gradient(90deg, rgba(8,127,137,.28), rgba(18,50,55,.10)); }

/* The gallery reads like a curated photo story instead of a plain file grid. */
.gallery-hero {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 78% 24%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 32rem),
    linear-gradient(155deg, color-mix(in srgb, var(--surface-strong) 48%, var(--bg)), var(--bg));
}
.gallery-hero::before {
  content: "";
  position: absolute;
  width: clamp(230px, 34vw, 460px);
  aspect-ratio: 1;
  inset-inline-end: 5%;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid color-mix(in srgb, var(--brand) 17%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 26px color-mix(in srgb, var(--brand) 3%, transparent), 0 0 0 62px color-mix(in srgb, var(--brand) 2%, transparent);
  pointer-events: none;
  z-index: -1;
}
.gallery-hero .container { position: relative; z-index: 1; }
.gallery-hero h1 { max-width: 820px; font-size: clamp(40px, 6vw, 72px); }
.gallery-hero p { max-width: 600px; font-size: 14px; }
.gallery-toolbar { padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.gallery-count strong { color: var(--brand); font-size: 17px; }
.gallery-grid { align-items: start; gap: 18px; }
.gallery-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 23px;
  background: var(--surface-strong);
  box-shadow: 0 18px 44px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.gallery-card .media-wrap { aspect-ratio: 4 / 5; border-radius: 22px 22px 0 0; }
.gallery-card img, .gallery-card video { height: 100%; aspect-ratio: auto; }
.gallery-card.video-card video { aspect-ratio: auto; }
.gallery-card.video-card { cursor: default; }
.gallery-card .caption {
  min-height: 50px;
  padding: 15px 17px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
}
.gallery-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--brand) 42%, var(--border));
  box-shadow: 0 24px 55px rgba(0,0,0,.17), 0 0 24px color-mix(in srgb, var(--glow) 40%, transparent);
}
.gallery-card:nth-child(8n + 1) { grid-column: span 2; }
.gallery-card:nth-child(8n + 1) .media-wrap { aspect-ratio: 1.48; }
.gallery-card:nth-child(8n + 1) .media-badge { top: 16px; inset-inline-start: 16px; }
.gallery-skeleton { border-radius: 23px; }
[data-theme="light"] .gallery-card {
  background: #fffdf8;
  border-color: rgba(18, 50, 55, .14);
  box-shadow: 0 18px 44px rgba(24, 47, 45, .10);
}
[data-theme="light"] .gallery-card:hover {
  box-shadow: 0 24px 55px rgba(24, 47, 45, .15), 0 0 24px rgba(8,127,137,.10);
}
[data-theme="light"] .gallery-hero::before {
  border-color: rgba(8,127,137,.18);
  box-shadow: 0 0 0 26px rgba(8,127,137,.035), 0 0 0 62px rgba(8,127,137,.022);
}

@media (max-width: 980px) {
  .booking-layout { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .gallery-card:nth-child(8n + 1) .media-wrap { aspect-ratio: 1.2; }
  .booking-package-choice { grid-template-columns: 38px minmax(0, 1fr) minmax(76px, auto); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card:nth-child(8n + 1) { grid-column: auto; }
  .gallery-card:nth-child(8n + 1) .media-wrap { aspect-ratio: 4 / 5; }
}

/* Homepage work preview adds real photography before the visitor reaches the gallery. */
.home-showcase {
  position: relative;
  overflow: hidden;
  padding-block: clamp(54px, 7vw, 86px);
}
.home-showcase::before {
  content: "";
  position: absolute;
  width: 420px;
  aspect-ratio: 1;
  inset-inline-start: -220px;
  top: 4%;
  border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 34px color-mix(in srgb, var(--brand) 2.5%, transparent);
  pointer-events: none;
}
.home-showcase-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.home-showcase-head h2 {
  max-width: 720px;
  margin-top: 10px;
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.16;
  letter-spacing: -.045em;
}
.home-showcase-head p {
  max-width: 620px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.home-showcase-link { flex: 0 0 auto; }
.home-showcase-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  grid-auto-rows: minmax(185px, auto);
  gap: 14px;
}
.home-showcase-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 185px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 23px;
  background:
    radial-gradient(ellipse at 50% 0%, var(--glow), transparent 55%),
    linear-gradient(145deg, var(--surface-strong), var(--bg));
  box-shadow: 0 20px 48px rgba(0,0,0,.15);
  isolation: isolate;
}
.home-showcase-card.home-showcase-featured {
  grid-row: span 2;
  min-height: 384px;
}
.home-showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,12,16,.18), transparent 38%, rgba(4,12,16,.5));
  pointer-events: none;
}
.home-showcase-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  position: absolute;
  inset: 0;
  object-fit: cover;
  filter: saturate(.92) contrast(1.03);
  transition: transform .75s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}
.home-showcase-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.05);
}
.home-showcase-card:hover {
  border-color: color-mix(in srgb, var(--brand) 50%, var(--border-strong));
  box-shadow: 0 26px 58px rgba(0,0,0,.22), 0 0 25px color-mix(in srgb, var(--glow) 44%, transparent);
}
.home-showcase-index,
.home-showcase-open {
  position: absolute;
  z-index: 1;
  color: #f5fbfa;
}
.home-showcase-index {
  inset-inline-start: 17px;
  bottom: 17px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}
.home-showcase-open {
  inset-inline-end: 15px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  background: rgba(5,15,19,.42);
  backdrop-filter: blur(8px);
  font-size: 16px;
  transition: transform .3s ease, background .3s ease;
}
.home-showcase-card:hover .home-showcase-open {
  transform: translate(2px,-2px);
  background: color-mix(in srgb, var(--brand) 80%, #071116);
}
.story-grid .story-card { min-height: 100%; }
[data-theme="light"] .home-showcase-card {
  border-color: rgba(18,50,55,.18);
  box-shadow: 0 20px 48px rgba(24,47,45,.12);
}
@media (max-width: 760px) {
  .home-showcase-head { align-items: flex-start; flex-direction: column; }
  .home-showcase-link { min-height: 44px; }
  .home-showcase-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: minmax(200px, auto); gap: 11px; }
  .home-showcase-card.home-showcase-featured { grid-column: 1 / -1; grid-row: auto; min-height: 280px; }
}
@media (max-width: 480px) {
  .home-showcase-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(210px, auto); }
  .home-showcase-card.home-showcase-featured { grid-column: auto; min-height: 260px; }
  .home-showcase-head h2 { font-size: clamp(28px, 8vw, 38px); }
}

/* Final premium pass shared by every page. */
html { text-rendering: optimizeLegibility; }
body {
  background:
    radial-gradient(ellipse at 12% 8%, color-mix(in srgb, var(--brand) 5%, transparent), transparent 30rem),
    radial-gradient(ellipse at 88% 28%, color-mix(in srgb, var(--glow) 55%, transparent), transparent 38rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}
body::before { opacity: .18; }
.site-header {
  box-shadow: 0 12px 38px rgba(0,0,0,.12);
  border-bottom-color: color-mix(in srgb, var(--brand) 10%, var(--border));
}
.nav-links a {
  position: relative;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
  border-color: var(--border);
}
.nav-links a.active {
  border-color: color-mix(in srgb, var(--brand) 16%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
h1, h2, h3 { text-wrap: balance; }
.hero h1, .page-hero h1, .gallery-hero h1, .section-head h2 {
  text-shadow: 0 8px 34px rgba(0,0,0,.16);
}
.section-head p, .page-hero p, .gallery-hero p { max-width: 680px; }
.btn-primary {
  border: 1px solid color-mix(in srgb, var(--brand) 38%, transparent);
  background: linear-gradient(128deg, color-mix(in srgb, var(--brand) 92%, white), var(--brand-strong));
  box-shadow: 0 12px 32px color-mix(in srgb, var(--glow) 72%, transparent), inset 0 1px 0 rgba(255,255,255,.42);
}
.btn-primary:hover { filter: brightness(1.045); transform: translateY(-1px); }
.btn-secondary {
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.card, .floating-card, .cta-banner, .booking-main-card, .booking-signature, .checkout-card,
.info-project-card, .info-stack-panel, .terms-page .terms-card, .support-section .form-card {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.card { box-shadow: 0 18px 48px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.045); }
.feature-grid > *, .service-grid > *, .process-grid > * { transition: transform .28s var(--ease), border-color .28s ease, box-shadow .28s ease; }
.feature-grid > *:hover, .service-grid > *:hover, .process-grid > *:hover { transform: translateY(-3px); }
.gallery-toolbar { align-items: center; }
.gallery-card .caption { border-top: 1px solid var(--border); }
.gallery-card img, .gallery-card video { backface-visibility: hidden; }
.form-control, .checkout-email { transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.booking-price-summary, .checkout-summary { box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.payment-method { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.payment-method.active:hover { transform: translateY(-2px); }
.payment-method.maintenance img { opacity: 1; }
.site-footer { border-top-color: var(--border); }
.ecommerce-verification { box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
[data-theme="light"] .site-header { box-shadow: 0 10px 34px rgba(25,58,64,.06); }
[data-theme="light"] .hero h1, [data-theme="light"] .section-head h2,
[data-theme="light"] .page-hero h1, [data-theme="light"] .gallery-hero h1 { text-shadow: none; }
[data-theme="light"] .payment-method img[alt="Tamara"],
[data-theme="light"] .payment-method img[alt="Apple Pay"] { filter: none; }
[data-theme="light"] .payment-method img[alt="Tamara"] { box-shadow: none; }
@media (max-width: 760px) {
  .section-head { gap: 10px; }
  .hero-grid { padding-inline: 2px; }
  .gallery-toolbar { gap: 14px; }
  .site-footer { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .feature-grid > *, .service-grid > *, .process-grid > *, .nav-links a, .btn-primary,
  .payment-method, .gallery-card { transition: none !important; }
}
