/* ============================================
   ALLI AGENTS & WEB STUDIOS · Warm Architectural Luxe
   Design tokens + components
   ============================================ */

:root {
  /* Palette — Warm Architectural Luxe */
  --color-bg:        oklch(97.5% 0.012 85);   /* Bone */
  --color-surface:   oklch(94% 0.018 82);     /* Travertine light */
  --color-surface-2: oklch(88% 0.024 80);     /* Travertine */
  --color-ink:       oklch(16% 0.02 60);      /* Espresso ink — pushed darker */
  --color-ink-soft:  oklch(30% 0.02 60);      /* Muted ink — pushed darker */
  --color-mute:      oklch(58% 0.015 70);     /* Silt */
  --color-gold:      oklch(72% 0.11 82);      /* Champagne gold */
  --color-gold-deep: oklch(60% 0.12 65);      /* Brushed brass */
  --color-linen:     oklch(90% 0.02 85);      /* Linen */
  --color-leather:   oklch(30% 0.04 45);      /* Espresso leather */
  --color-glass:     oklch(97% 0.012 85 / .55);
  --color-line:      oklch(22% 0.02 60 / .12);

  /* Typography */
  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --text-xs:   clamp(0.75rem, 0.72rem + 0.15vw, 0.813rem);
  --text-sm:   clamp(0.813rem, 0.78rem + 0.2vw, 0.875rem);
  --text-base: clamp(0.95rem, 0.92rem + 0.2vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --text-xl:   clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-2xl:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --text-3xl:  clamp(2.75rem, 2rem + 3.5vw, 4.5rem);
  --text-hero: clamp(3.5rem, 2.4rem + 5.5vw, 7.5rem);

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-6:  24px;
  --space-8:  32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Radii + shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --shadow-sm: 0 1px 2px rgba(48, 32, 20, 0.06), 0 2px 6px rgba(48, 32, 20, 0.04);
  --shadow-md: 0 6px 20px rgba(48, 32, 20, 0.08), 0 2px 8px rgba(48, 32, 20, 0.05);
  --shadow-lg: 0 24px 60px rgba(48, 32, 20, 0.12), 0 8px 24px rgba(48, 32, 20, 0.08);
  --shadow-warm: 0 30px 80px rgba(147, 105, 45, 0.18), 0 10px 30px rgba(147, 105, 45, 0.10);

  /* Layout */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section {
  position: relative;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-ink-soft);
  max-width: 58ch;
  line-height: 1.5;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: var(--space-4);
  background: color-mix(in oklab, var(--color-bg), transparent 15%);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--color-line);
  background: color-mix(in oklab, var(--color-bg), transparent 5%);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}
.brand svg { color: var(--color-gold-deep); }
.brand strong { font-weight: 500; }

.nav__links {
  display: none;
  gap: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}
.nav__links a { position: relative; transition: color .3s var(--ease); }
.nav__links a:hover { color: var(--color-ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--color-gold-deep);
  transition: right .5s var(--ease);
}
.nav__links a:hover::after { right: 0; }

@media (min-width: 900px) { .nav__links { display: inline-flex; } }

/* Mobile hamburger menu */
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--color-ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .nav__toggle { display: none; } }

@media (max-width: 899px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-2) var(--space-4);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a {
    width: 100%;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-line);
    font-size: var(--text-base);
  }
  .nav__links a:last-child { border-bottom: none; }
}

.nav__cta { white-space: nowrap; }
.nav__cta__text { display: none; }
.nav__cta__text--sm { display: inline; }
@media (min-width: 640px) {
  .nav__cta__text { display: inline; }
  .nav__cta__text--sm { display: none; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: var(--color-ink);
  color: var(--color-bg);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--color-leather);
}
.btn--gold {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-deep) 100%);
  color: var(--color-bg);
  box-shadow: var(--shadow-warm);
}
.btn--gold:hover { transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-line);
}
.btn--ghost:hover { border-color: var(--color-ink); background: color-mix(in oklab, var(--color-ink), transparent 96%); }
.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: clamp(120px, 14vh, 180px);
  padding-bottom: var(--space-16);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.02) saturate(1.04);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, transparent 0%, var(--color-bg) 85%),
    linear-gradient(180deg, color-mix(in oklab, var(--color-bg), transparent 30%) 0%, transparent 30%, color-mix(in oklab, var(--color-bg), transparent 20%) 100%);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .55;
  mask-image: radial-gradient(ellipse 45% 65% at 88% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 45% 65% at 88% 40%, #000 30%, transparent 80%);
}
@media (max-width: 959px) {
  #hero-canvas {
    opacity: .5;
    mask-image: radial-gradient(ellipse 90% 40% at 50% 15%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 90% 40% at 50% 15%, #000 30%, transparent 80%);
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: end;
  min-height: 70vh;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--space-16); }
}
.hero__text .eyebrow { margin-bottom: var(--space-6); }
.hero__title {
  font-size: clamp(3rem, 2rem + 5vw, 7.5rem);
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--color-ink);
  line-height: 0.98;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold-deep);
  padding-right: 0.15em;
  margin-right: 0.08em;
}
.hero__sub {
  margin-top: var(--space-8);
  max-width: 52ch;
  font-size: var(--text-lg);
  color: var(--color-ink-soft);
  line-height: 1.5;
}
.hero__cta {
  margin-top: var(--space-12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  padding: var(--space-6);
  background: color-mix(in oklab, var(--color-bg), transparent 8%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  align-self: end;
  box-shadow: 0 20px 60px -30px rgba(40, 28, 15, 0.25);
}
.hero__meta__item span:first-child {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-gold-deep);
  line-height: 1;
}
.hero__meta__item span:last-child {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-mute);
  margin-top: var(--space-2);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-mute);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--color-gold-deep), transparent);
  animation: dropline 2.4s var(--ease) infinite;
}
@keyframes dropline {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================
   TIERED CONVERSION
   Book · Portfolio · Templates
   ============================================ */
.tier {
  position: relative;
}
.tier__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-16);
  align-items: end;
}
@media (min-width: 900px) { .tier__head { grid-template-columns: 1.2fr 1fr; gap: var(--space-12); } }
.tier__title {
  font-size: var(--text-3xl);
  letter-spacing: -0.03em;
  font-weight: 500;
}
.tier__title em { font-style: italic; color: var(--color-gold-deep); }
.tier__intro {
  font-size: var(--text-lg);
  color: var(--color-ink-soft);
  max-width: 46ch;
  line-height: 1.5;
}

/* --- BOOK A CALL --- */
.book {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding: clamp(var(--space-8), 4vw, var(--space-16));
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-linen) 100%);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.book::before {
  content: "";
  position: absolute;
  top: -60%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, color-mix(in oklab, var(--color-gold), transparent 60%) 0%, transparent 70%);
  pointer-events: none;
}
@media (min-width: 900px) { .book { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }
.book__text h3 { font-size: var(--text-2xl); font-weight: 500; letter-spacing: -0.025em; }
.book__text p { margin-top: var(--space-4); color: var(--color-ink-soft); font-size: var(--text-base); max-width: 42ch; }
.book__list {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}
.book__list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.book__list li::before {
  content: "";
  width: 18px; height: 18px;
  border: 1px solid var(--color-gold-deep);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
}
.book__list li::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  background: var(--color-gold-deep);
  border-radius: 50%;
  margin-left: 6px;
  margin-top: 8px;
}
.book__card {
  position: relative;
  background: var(--color-bg);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-lg);
}
.book__card__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-mute);
}
.book__slots {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.book__slot {
  padding: var(--space-3);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: var(--text-sm);
  transition: all .3s var(--ease);
}
.book__slot:hover, .book__slot.is-active {
  border-color: var(--color-gold-deep);
  background: color-mix(in oklab, var(--color-gold), transparent 90%);
  color: var(--color-ink);
}
.book__slot span { display: block; font-size: var(--text-xs); color: var(--color-mute); margin-top: 2px; }

/* --- PORTFOLIO --- */
.portfolio {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 720px) { .portfolio { grid-template-columns: repeat(6, 1fr); } }

.work {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  background: var(--color-surface);
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.work__cta {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.work:hover .work__cta { opacity: 1; transform: translateY(0); }
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work__media {
  position: absolute; inset: 0;
  transition: transform 1.2s var(--ease), filter .5s var(--ease);
}
.work__media img { width: 100%; height: 100%; object-fit: cover; }
.work:hover .work__media { transform: scale(1.05); }
.work__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(28, 20, 12, 0.35) 55%, rgba(28, 20, 12, 0.85) 82%, rgba(28, 20, 12, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  color: var(--color-bg);
}
.work__title {
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.work__tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: .9;
}
.work__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-top: var(--space-2);
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--color-bg);
}
.work__desc {
  font-size: var(--text-sm);
  opacity: 0;
  transform: translateY(8px);
  transition: all .5s var(--ease);
  margin-top: var(--space-3);
  max-width: 48ch;
  color: color-mix(in oklab, var(--color-bg), transparent 15%);
}
.work:hover .work__desc { opacity: 1; transform: translateY(0); }

.work.is-hero { grid-column: span 1; }
@media (min-width: 720px) {
  .work.is-hero      { grid-column: span 4; grid-row: span 2; aspect-ratio: 16 / 11; }
  .work.is-portrait  { grid-column: span 2; }
  .work.is-wide      { grid-column: span 3; aspect-ratio: 4 / 3; }
  .work.is-square    { grid-column: span 3; aspect-ratio: 1; }
}

/* --- TEMPLATE STORE --- */
.templates {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 720px) { .templates { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .templates { grid-template-columns: repeat(3, 1fr); } }

.tpl {
  position: relative;
  padding: var(--space-8);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
.tpl:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-warm);
  border-color: color-mix(in oklab, var(--color-gold-deep), transparent 50%);
}
.tpl.is-featured {
  background: linear-gradient(160deg, var(--color-ink) 0%, var(--color-leather) 100%);
  color: var(--color-bg);
  border-color: transparent;
}
.tpl.is-featured .tpl__price,
.tpl.is-featured .tpl__list { color: color-mix(in oklab, var(--color-bg), transparent 25%); }
.tpl__badge {
  position: absolute;
  top: var(--space-6); right: var(--space-6);
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--color-gold);
  color: var(--color-ink);
  border-radius: 999px;
  z-index: 2;
}
.tpl.is-featured .tpl__num { padding-right: 88px; }
.tpl__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  color: var(--color-mute);
}
.tpl.is-featured .tpl__num { color: var(--color-gold); }
.tpl__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-top: var(--space-4);
  letter-spacing: -0.02em;
  font-weight: 400;
}
.tpl__desc { margin-top: var(--space-3); color: var(--color-ink-soft); font-size: var(--text-sm); flex-grow: 1; }
.tpl.is-featured .tpl__desc { color: color-mix(in oklab, var(--color-bg), transparent 25%); }
.tpl__list {
  margin: var(--space-6) 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}
.tpl__list li { display: flex; gap: var(--space-3); align-items: center; }
.tpl__list li::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--color-gold-deep);
  border-radius: 50%;
}
.tpl.is-featured .tpl__list li::before { background: var(--color-gold); }
.tpl__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-line);
}
.tpl.is-featured .tpl__footer { border-top-color: color-mix(in oklab, var(--color-bg), transparent 80%); }
.tpl__price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
}
.tpl__price small { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-mute); font-weight: 400; }

/* ============================================
   SERVICES · Doctors · Lawyers · Luxury
   ============================================ */
.services {
  background: var(--color-ink);
  color: var(--color-bg);
  position: relative;
  overflow: hidden;
}
.services::before {
  content: "";
  position: absolute;
  top: 20%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, color-mix(in oklab, var(--color-gold-deep), transparent 55%) 0%, transparent 70%);
  pointer-events: none;
}
.services__head { grid-template-columns: 1fr; }
.services__title { color: var(--color-bg); }
.services__title em { color: var(--color-gold); }
.services__intro { color: color-mix(in oklab, var(--color-bg), transparent 25%); }

.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-16);
}
@media (min-width: 960px) { .svc-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-12); } }

.svc-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  align-self: start;
}
@media (min-width: 960px) {
  .svc-image { position: sticky; top: 100px; }
}
.svc-image img { width: 100%; height: 100%; object-fit: cover; }

.svc-list {
  display: grid;
  gap: var(--space-4);
}
.svc {
  padding: var(--space-8);
  border: 1px solid color-mix(in oklab, var(--color-bg), transparent 88%);
  border-radius: var(--radius-lg);
  transition: all .5s var(--ease);
  cursor: pointer;
  background: color-mix(in oklab, var(--color-bg), transparent 96%);
}
.svc:hover {
  background: color-mix(in oklab, var(--color-bg), transparent 92%);
  border-color: color-mix(in oklab, var(--color-gold), transparent 60%);
}
.svc__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-6); }
.svc__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  color: var(--color-gold);
}
.svc__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-bg);
  letter-spacing: -0.02em;
}
.svc__desc {
  margin-top: var(--space-4);
  color: color-mix(in oklab, var(--color-bg), transparent 30%);
  font-size: var(--text-base);
  line-height: 1.55;
  max-width: 52ch;
}
.svc__tags {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.svc__tag {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid color-mix(in oklab, var(--color-bg), transparent 78%);
  border-radius: 999px;
  color: color-mix(in oklab, var(--color-bg), transparent 25%);
}

/* ============================================
   PALETTE SHOWCASE
   ============================================ */
.palette__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}
@media (min-width: 960px) { .palette__wrap { grid-template-columns: 1fr 1fr; } }

.palette__image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-lg);
}
.palette__image img { width: 100%; height: 100%; object-fit: cover; }

.chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.chip {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .4s var(--ease);
}
.chip:hover { transform: translateY(-3px); }
.chip__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}
.chip__code {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  opacity: .8;
}
.chip--bone     { background: oklch(97.5% 0.012 85); color: var(--color-ink); border: 1px solid var(--color-line); }
.chip--travertine { background: oklch(88% 0.024 80); color: var(--color-ink); }
.chip--gold      { background: linear-gradient(135deg, oklch(78% 0.11 82), oklch(60% 0.12 65)); color: oklch(15% 0.02 60); }
.chip--espresso  { background: oklch(22% 0.02 60); color: var(--color-bg); }
.chip--linen     { background: oklch(90% 0.02 85); color: var(--color-ink); }
.chip--leather   { background: oklch(30% 0.04 45); color: var(--color-bg); }

/* ============================================
   SCHEDULING DEMO
   ============================================ */
.schedule {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-20));
  margin-top: var(--space-16);
}
.schedule__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-line);
  padding-bottom: var(--space-4);
}
.schedule__tab {
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  color: var(--color-mute);
  transition: all .3s var(--ease);
  border: 1px solid transparent;
}
.schedule__tab.is-active {
  color: var(--color-ink);
  background: var(--color-bg);
  border-color: var(--color-line);
  box-shadow: var(--shadow-sm);
}
.schedule__panel { display: none; }
.schedule__panel.is-active { display: grid; grid-template-columns: 1fr; gap: var(--space-8); }
@media (min-width: 900px) { .schedule__panel.is-active { grid-template-columns: 1.1fr 0.9fr; } }

.demo-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.demo-card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-line);
}
.demo-card__title { font-family: var(--font-display); font-size: var(--text-lg); }
.demo-card__meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-mute); letter-spacing: 0.14em; }
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: var(--space-6);
}
.calendar__dow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-mute);
  text-align: center;
  padding: var(--space-2) 0;
}
.calendar__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  border-radius: 8px;
  color: var(--color-ink-soft);
  transition: all .3s var(--ease);
  cursor: pointer;
}
.calendar__day.is-empty { visibility: hidden; }
.calendar__day.is-available { color: var(--color-ink); }
.calendar__day.is-available:hover { background: color-mix(in oklab, var(--color-gold), transparent 85%); }
.calendar__day.is-today {
  background: var(--color-ink); color: var(--color-bg);
}
.calendar__day.is-selected {
  background: var(--color-gold-deep); color: var(--color-bg);
}

.times {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.times__slot {
  padding: var(--space-3);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-ink);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.times__slot:hover, .times__slot.is-selected {
  border-color: var(--color-gold-deep);
  background: color-mix(in oklab, var(--color-gold), transparent 88%);
}

/* ============================================
   BLOG / SEO STUB
   ============================================ */
.journal {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-16);
}
@media (min-width: 720px) { .journal { grid-template-columns: repeat(3, 1fr); } }

.entry {
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-6);
  transition: transform .4s var(--ease);
  cursor: pointer;
}
.entry:hover { transform: translateY(-4px); }
.entry:hover .entry__title { color: var(--color-gold-deep); }
.entry__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-mute);
  display: flex;
  gap: var(--space-4);
}
.entry__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-top: var(--space-4);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 400;
  transition: color .3s var(--ease);
}
.entry__excerpt {
  margin-top: var(--space-3);
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  line-height: 1.55;
}

/* ============================================
   CONTACT / FOOTER
   ============================================ */
.contact {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-linen) 100%);
  text-align: center;
}
.contact__title {
  font-size: var(--text-3xl);
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 18ch;
  margin: 0 auto;
}
.contact__title em { font-style: italic; color: var(--color-gold-deep); }
.contact__sub {
  margin-top: var(--space-6);
  color: var(--color-ink-soft);
  font-size: var(--text-lg);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}
.contact__cta {
  margin-top: var(--space-12);
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}
.contact__email {
  margin-top: var(--space-16);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-ink);
}
.contact__email a { border-bottom: 1px solid var(--color-line); padding-bottom: 2px; }
.contact__email a:hover { border-color: var(--color-gold-deep); color: var(--color-gold-deep); }

.footer {
  padding-block: var(--space-16) var(--space-8);
  border-top: 1px solid var(--color-line);
  background: var(--color-bg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}
@media (min-width: 720px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer__brand p {
  margin-top: var(--space-4);
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  max-width: 34ch;
  line-height: 1.55;
}
.footer__col h5 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-mute);
  font-weight: 500;
  margin-bottom: var(--space-4);
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-ink-soft); }
.footer__col a:hover { color: var(--color-gold-deep); }
.footer__legal {
  margin-top: var(--space-16);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-mute);
  letter-spacing: 0.1em;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ============================================
   HERO WORDMARK STAGE — Ping-style 3D placeholder
   ============================================ */
.wordmark-stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.wordmark-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.wordmark-fallback__text {
  font-family: var(--font-display, 'Anton'), 'Fraunces', serif;
  font-size: clamp(4rem, 12vw, 12rem);
  letter-spacing: -0.03em;
  color: color-mix(in oklab, var(--color-gold-deep), transparent 60%);
  line-height: 1;
}
/* Only show fallback when WebGL is unsupported (JS adds .no-webgl to <html>) */
html.no-webgl .wordmark-fallback { display: flex; }
/* Also show for reduced-motion users who won't see the animated canvas */
@media (prefers-reduced-motion: reduce) {
  .wordmark-fallback { display: flex; opacity: 0.35; }
}

/* Chat Widget Styles */
#alli-chat-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    font-family: var(--font-body), sans-serif;
    pointer-events: none; /* container never blocks taps; only its visible children do */
}

.chat-pill-button {
    background: var(--bg-color);
    color: var(--ink-color);
    border: 1px solid var(--accent-color);
    padding: 1rem 1.5rem;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.875rem;
    pointer-events: auto;
}

.chat-pill-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(201,162,39,0.15);
}

.chat-pill-button.hidden {
    display: none;
}

.chat-panel {
    width: 400px;
    height: 600px;
    background: rgba(245, 240, 228, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--accent-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    transform-origin: bottom right;
}

.chat-panel.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.chat-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(201,162,39,0.3);
    background: var(--bg-color);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-color);
}

.chat-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ink-color);
    cursor: pointer;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.chat-close:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 85%;
}

.ai-message {
    background: var(--bg-color);
    color: var(--ink-color);
    border: 1px solid rgba(201,162,39,0.3);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    background: var(--ink-color);
    color: var(--bg-color);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    border: 1px solid var(--accent-color);
}

.typing-indicator span {
    animation: typing 1.4s infinite both;
    font-size: 1.5rem;
    line-height: 0.5;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.chat-suggestions {
    padding: 0 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-chip {
    background: transparent;
    border: 1px solid rgba(201,162,39,0.5);
    color: var(--ink-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-chip:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

.chat-input-area {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(201,162,39,0.3);
    display: flex;
    gap: 1rem;
    background: var(--bg-color);
}

#chat-input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink-color);
    transition: border-color 0.3s ease;
}

#chat-input:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
}

#chat-send {
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#chat-send:hover {
    transform: scale(1.05);
}

.chat-voice-btn {
    background: transparent;
    color: var(--ink-color);
    border: 1px solid rgba(201,162,39,0.4);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-voice-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.chat-voice-btn.is-listening {
    background: #7A1F2B;
    color: #fff;
    border-color: #7A1F2B;
    animation: chat-pulse 1.1s ease-in-out infinite;
}

@keyframes chat-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(122,31,43,0.5); }
    50% { box-shadow: 0 0 0 8px rgba(122,31,43,0); }
}

.chat-tts-toggle {
    background: transparent;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 2px;
    margin-left: 0.5rem;
    display: inline-flex;
    vertical-align: middle;
    opacity: 0.85;
}

.chat-tts-toggle:hover { opacity: 1; }

.chat-tts-toggle.is-muted {
    color: var(--muted-color, #999);
    text-decoration: line-through;
}

/* Demo 3D hero stacking — keep the live Three.js canvas above the image backdrop/poster */
.canvas-container { position: relative; }
.canvas-container > img { z-index: 0; }
.canvas-container > canvas { position: relative; z-index: 1; pointer-events: none; }

.chat-action-btn {
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 480px) {
    #alli-chat-container {
        bottom: 1rem;
        right: 1rem;
    }
    
    .chat-panel {
        width: calc(100vw - 2rem);
        height: 80vh;
    }
}
