﻿:root {
  --bg: #0b0b0e;
  --bg-2: #111117;
  --ink: #e8e8eb;
  --ink-dim: #b8b8c2;
  --brand: #7a7cff; /* soft luxe violet */
  --brand-2: #9a7cff; /* accent */
  --muted: #2a2a33;
  --card: #14141c;
  --chip: #1a1a23;
  --focus: #c7ffe0;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --header-height: clamp(48px, 8vw, 58px);
  --example-aspect: 2 / 4; /* Adjust to change example tile ratio */
  --lb-caption-bg: rgba(8, 8, 16, 0.027); /* Lightbox title overlay background */
  --lb-pad: clamp(16px, 4vw, 32px);
  --lb-arrow-size: clamp(48px, 6vw, 64px);
}
:root[data-theme="light"] {
  --bg: #f5f6fc;
  --bg-2: #ffffff;
  --ink: #15151f;
  --ink-dim: #5a5a72;
  --brand: #4d56ff;
  --brand-2: #7a5cff;
  --muted: #cfd4f5;
  --card: #ffffff;
  --chip: #eef0fb;
  --focus: #2f6aff;
  --shadow: 0 12px 28px rgba(38,56,120,0.15);
  --lb-caption-bg: rgba(242, 244, 255, 0.85);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: radial-gradient(1000px 600px at 80% -10%, #181822, transparent), var(--bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  padding-top: var(--header-height);
}
body.lb-lock {
  overflow: hidden;
  padding-right: var(--lb-scrollbar-comp, 0px);
}

:root[data-theme="light"] body {
  background: radial-gradient(1200px 720px at 25% -10%, rgba(85,103,255,0.25), transparent), var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px);
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #000; padding: .5rem .75rem; border-radius: .375rem;
}
.skip-link:focus { left: .5rem; top: .5rem; z-index: 9999; }

.container { width: min(1120px, 92%); margin-inline: auto; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(10px);
  background: color-mix(in hsl, var(--bg) 75%, transparent);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  width: 100%;
}
:root[data-theme="light"] .site-header {
  background: color-mix(in srgb, var(--bg) 85%, rgba(255,255,255,0.85));
  border-bottom: 1px solid rgba(35,42,92,0.12);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; padding: 0; min-height: var(--header-height);
}
.logo {
  font-family: ui-serif, Josefin Sans, Jost, Raleway, Urbanist, "Times New Roman", Times, serif;
  font-weight: 700; letter-spacing: .5px; font-size: 1.25rem;
}
.site-nav ul { display: none; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.site-nav a { padding: .5rem .75rem; border-radius: .5rem; }
.site-nav a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.header-cta {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.header-cta .btn { white-space: nowrap; }
.mode-toggle {
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 65%, #090912 35%), color-mix(in srgb, var(--card) 90%, #000 10%));
  border: 0px solid rgba(255,255,255,0.14);
  border-radius: .85rem;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.mode-toggle:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.22); }
.mode-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mode-toggle .icon { display: none; width: 22px; height: 22px; }
:root:not([data-theme="light"]) .mode-toggle .icon-sun { display: block; }
:root[data-theme="light"] .mode-toggle {
  border-color: rgba(46,55,120,0.18);
  background: linear-gradient(180deg, color-mix(in srgb, #ffffff 75%, var(--muted) 25%), color-mix(in srgb, #f4f6ff 85%, var(--muted) 15%));
  color: #2d2d44;
}
:root[data-theme="light"] .mode-toggle:hover { border-color: rgba(46,55,120,0.34); }
:root[data-theme="light"] .mode-toggle .icon-moon { display: block; }
:root[data-theme="light"] .mode-toggle .icon-sun { display: none; }
:root:not([data-theme="light"]) .mode-toggle .icon-moon { display: none; }

@media (min-width: 768px) {
  .site-nav ul { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem 1.1rem;
  border-radius: .95rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, #1b1b24, #12121a);
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  will-change: transform;
  font: inherit;
  color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(180deg, color-mix(in hsl, var(--brand) 25%, #ffffff 0%), #201f30);
  border-color: color-mix(in hsl, var(--brand) 50%, #000 0%);
}
.btn-ghost {
  background: #0f0f15;
}
:root[data-theme="light"] .btn {
  border-color: rgba(40,48,110,0.16);
  background: linear-gradient(180deg, color-mix(in srgb, #ffffff 82%, var(--muted) 18%), color-mix(in srgb, #f2f4ff 88%, var(--muted) 12%));
  color: #1c1c2a;
  box-shadow: 0 10px 28px rgba(34,45,110,0.15);
}
:root[data-theme="light"] .btn:hover { border-color: rgba(40,48,110,0.3); }
:root[data-theme="light"] .btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 35%, #ffffff 65%), color-mix(in srgb, var(--brand) 25%, #dfe2ff 75%));
  border-color: color-mix(in srgb, var(--brand) 55%, rgba(0,0,0,0) 45%);
  color: #10101f;
}
:root[data-theme="light"] .btn-ghost {
  background: color-mix(in srgb, #ffffff 90%, var(--muted) 10%);
  border-color: rgba(40,48,110,0.16);
  color: #1f1f2d;
}

.btn-reset {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Sections */
.section {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0;
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1080px, 92%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  opacity: .6;
  pointer-events: none;
}
:root[data-theme="light"] .section + .section::before {
  background: linear-gradient(90deg, transparent, rgba(28,32,70,0.18), transparent);
}
.section-quiet {
  background: var(--bg-2);
  border-top: 1px solid rgba(255,255,255,0.04);
}
:root[data-theme="light"] .section-quiet {
  border-top: 1px solid rgba(40,48,110,0.08);
}
.section-accent {
  background: linear-gradient(180deg, #13131b, #0d0d12);
  border-block: 1px solid rgba(255,255,255,0.06);
}
:root[data-theme="light"] .section-accent {
  background: linear-gradient(180deg, rgba(233,236,255,0.9), rgba(247,248,255,0.95));
  border-block: 1px solid rgba(44,52,110,0.08);
}
.section-tonal {
  background: radial-gradient(1000px 600px at 15% -10%, rgba(122,124,255,0.18), transparent), var(--bg-2);
}
:root[data-theme="light"] .section-tonal {
  background: radial-gradient(1100px 600px at 20% -10%, rgba(88,96,255,0.15), transparent), var(--bg-2);
}
.section-tonal-alt {
  background: radial-gradient(1000px 600px at 85% 110%, rgba(122,124,255,0.18), transparent), var(--bg-2);
}
:root[data-theme="light"] .section-tonal-alt {
  background: radial-gradient(1100px 600px at 80% 110%, rgba(88,96,255,0.15), transparent), var(--bg-2);
}
.section-band {
  background: linear-gradient(180deg, rgba(8,8,12,0.9), rgba(5,5,8,0.95));
  border-block: 1px solid rgba(255,255,255,0.04);
}
:root[data-theme="light"] .section-band {
  background: linear-gradient(0deg, rgb(253, 253, 255), rgba(206, 210, 255, 0.9));
  border-block: 1px solid rgba(44,52,110,0.08);
}
.section-intro {
  color: var(--ink-dim);
  max-width: 64ch;
  margin: 0;
}
.section-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2vw, 2.5rem);
}
.section-header {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 65ch;
}
.section-header h2 { margin: 0; }
.section-header .section-intro { margin-top: .25rem; }
.section-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .35em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
}
.section-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.3);
}
:root[data-theme="light"] .section-label::before {
  background: #3b2b8441;
}
.section-shell {
  background: color-mix(in srgb, var(--card) 80%, rgba(7,7,10,0.85));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.5vw, 1.75rem);
  backdrop-filter: blur(8px);
}
.section-shell > .btn-row { margin-top: 0; }
:root[data-theme="light"] .section-shell {
  background: color-mix(in srgb, var(--card) 92%, rgba(210,214,255,0.4));
  border: 1px solid rgba(44,52,110,0.1);
}

/* Hero */
.hero { padding-top: 56px; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.display {
  font-family: ui-serif, Josefin Sans, Jost, Raleway, Urbanist, "Times New Roman", Times, serif;
  font-weight: 100;
  font-size: clamp(2rem, 5vw + 1rem, 4rem);
  line-height: 1.1;
}
.lede { color: var(--ink-dim); font-size: 1.05rem; }
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .75rem; }
.hero-visual { position: relative; }
.hero-figure {
  border-radius: 1rem; overflow: hidden; border: 1px solid rgba(255,255,255,0.08);
  transform: translateZ(0);
}
.hero-figure img { aspect-ratio: 4/3; object-fit: cover; filter: saturate(0.9) contrast(1.05); }
:root[data-theme="light"] .hero-figure {
  border: 1px solid rgba(44,52,110,0.12);
}
:root[data-theme="light"] .hero-figure img {
  filter: saturate(1) contrast(1.02);
}
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 65%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(60% 40% at 50% 50%, color-mix(in hsl, var(--brand) 15%, transparent) 0%, transparent 65%);
  pointer-events: none;
}
:root[data-theme="light"] .hero-glow {
  background: radial-gradient(60% 40% at 50% 50%, color-mix(in srgb, var(--brand) 25%, transparent) 0%, transparent 70%);
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}

/* Cards */
.card-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--card); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem; padding: 1rem;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.18); }
.card h3 { margin-top: 0; margin-bottom: .25rem; font-size: 1.05rem; }
.card p { color: var(--ink-dim); margin: 0; }
:root[data-theme="light"] .card {
  background: color-mix(in srgb, var(--card) 96%, rgba(220,224,255,0.35));
  border: 1px solid rgba(44,52,110,0.12);
}
:root[data-theme="light"] .card:hover { border-color: rgba(44,52,110,0.24); }

@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid .card:nth-child(4),
  .card-grid .card:nth-child(5) { grid-column: span 1; }
}

/* Examples grid */
.examples-grid {
  margin-top: 0;
  display: grid;
  gap: .375rem; /* Reduce spacing between examples (adjust here for padding) */
  grid-template-columns: repeat(2, 1fr);
}
.example {
  margin: 0;
  border-radius: .45rem; overflow: hidden; border: 0px solid rgba(255,255,255,0.08);
  background: #111;
  aspect-ratio: var(--example-aspect, 4 / 5);
}
.example img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
:root[data-theme="light"] .example {
  background: #f7f8ff0c;
  border: 1px solid rgba(44,52,110,0.12);
}

@media (min-width: 900px) {
  .examples-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Feature chips */
.feature-chips {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: 0;
  list-style: none; padding: 0;
}
.chip {
  background: var(--chip); border: 1px solid rgba(255,255,255,0.1);
  padding: .5rem .75rem; border-radius: 999px; font-size: .9rem;
}
:root[data-theme="light"] .chip {
  border: 1px solid rgba(44,52,110,0.12);
}

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list a { text-decoration: underline; text-underline-offset: 2px; }

/* Footer */
.site-footer {
  padding: 32px 0; background: #0a0a0d; border-top: 1px solid rgba(255,255,255,0.08);
}
:root[data-theme="light"] .site-footer {
  background: #f2f3ff;
  border-top: 1px solid rgba(44,52,110,0.12);
  color: var(--ink);
}
.footer-inner {
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; gap: .75rem; }
.footer-links a[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* Form */
.contact-form { max-width: 720px; }
.form-row { display: grid; gap: .35rem; margin-bottom: .9rem; }
.form-row.checkbox { grid-template-columns: auto 1fr; align-items: center; gap: .6rem; }
label { font-weight: 600; }
input[type="text"], input[type="email"], textarea {
  background: #0f0f15; border: 1px solid rgba(255,255,255,0.12); color: var(--ink);
  border-radius: .6rem; padding: .7rem .8rem;
}
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
:root[data-theme="light"] input[type="text"],
:root[data-theme="light"] input[type="email"],
:root[data-theme="light"] textarea {
  background: #ffffff;
  border: 1px solid rgba(40,48,110,0.16);
  color: var(--ink);
}
.btn-row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: .25rem; }

.tiny-note { color: var(--ink-dim); font-size: .9rem; }

.lb {
  position: fixed;
  inset: 0;
  padding: var(--lb-pad);
  display: grid;
  place-items: center;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease;
}
.lb[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 14, 0.72);
  backdrop-filter: blur(12px);
}
:root[data-theme="light"] .lb__backdrop {
  background: rgba(228, 230, 248, 0.7);
}
.lb__inner {
  position: relative;
  z-index: 1;
  width: min(96vw, 1200px);
  max-width: 100%;
  height: calc(100vh - (var(--lb-pad) * 2));
  display: grid;
  grid-template-rows: 1fr;
  align-items: stretch;
  justify-items: center;
  gap: 0;
}
.lb__close {
  position: absolute;
  top: clamp(.25rem, 2vw, 1rem);
  right: clamp(.25rem, 2vw, 1rem);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ink);
  background: rgba(10, 10, 18, 0.85);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
  z-index: 2;
}
.lb__close:hover,
.lb__close:focus-visible {
  transform: scale(1.05);
  background: rgba(10, 10, 18, 0.95);
}
:root[data-theme="light"] .lb__close {
  background: rgba(240, 242, 255, 0.9);
  color: #1d1d2c;
}
.lb__stage {
  position: relative;
  width: min(96vw, 1180px);
  height: calc(100vh - (var(--lb-pad) * 2));
  min-height: calc(100vh - (var(--lb-pad) * 2));
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb__stage,
.lb__figure {
  min-height: 0;
}
.lb__figure {
  position: relative;
  margin: 0;
  height: 100%;  
  max-height: 100%;
  max-width: calc(100% - (var(--lb-arrow-size) * 2) - 2rem);
  border-radius: 1.5rem;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 45px 120px rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb__img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.lb__caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: .4rem 1.2rem;
  background: var(--lb-caption-bg);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  font-size: .95rem;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
:root[data-theme="light"] .lb__caption {
  background:rgba(255, 255, 255, 0.158);
  color: #1d1d2c;
}
.lb__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--lb-arrow-size);
  height: var(--lb-arrow-size);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(10, 10, 20, 0.6);
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.lb__arrow:hover,
.lb__arrow:focus-visible {
  transform: translateY(-50%) scale(1.05);
  border-color: rgba(255,255,255,0.45);
  background: rgba(10, 10, 20, 0.75);
}
.lb__prev { left: clamp(0.5rem, 4vw, 2.5rem); }
.lb__next { right: clamp(0.5rem, 4vw, 2.5rem); }
:root[data-theme="light"] .lb__arrow {
  background: rgba(242, 244, 255, 0.95);
  border-color: rgba(44,52,110,0.28);
  color: #1d1d2c;
}
.lb__counter {
  position: absolute;
  bottom: clamp(0.75rem, 2.5vw, 1.75rem);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: .35rem .95rem;
  color: var(--ink);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .85rem;
  border-radius: 999px;
  background: rgba(8, 8, 16, 0);
  backdrop-filter: blur(6px);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.55), 0 0 14px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
:root[data-theme="light"] .lb__counter {
  background: rgba(240, 242, 255, 0.301);
  color: #1d1d2c;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.65), 0 0 14px rgba(228, 230, 248, 0.5);
}
:root[data-theme="light"] .lb__figure {
  box-shadow: 0 40px 110px rgba(34, 45, 110, 0.18);
}
@media (max-width: 768px) {
  .lb__figure {
    border-radius: 1rem;
    max-width: calc(100% - (var(--lb-arrow-size) * 2) - 1rem);
  }
  .lb__caption {
    font-size: .85rem;
    padding: .65rem 1rem;
  }
  .lb__close {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}
@media (max-width: 540px) {
  .lb {
    padding: clamp(12px, 4vw, 20px);
  }
  .lb__inner {
    width: 100%;
    height: calc(100vh - (var(--lb-pad) * 2));
  }
  .lb__counter {
    font-size: .8rem;
  }
  .lb__prev { left: clamp(0.25rem, 3vw, 1rem); }
  .lb__next { right: clamp(0.25rem, 3vw, 1rem); }
}

/* Reveal on scroll */
.reveal-on-scroll { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .reveal-on-scroll { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
