:root {
  --bg-alabaster: #fdfbf7;
  --bg-beige: #efebe6;
  --bg-charcoal: #1f1f1f;
  --text-dark: #1f1f1f;
  --text-taupe: #6b6b6b;
  --text-light: #fdfbf7;
  --border-subtle: #e0dcd6;
  --max-width: 1400px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: "Space Mono", monospace;
  background: var(--bg-alabaster);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; padding: 0; }

.container {
  width: min(var(--max-width), calc(100% - 80px));
  margin: 0 auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-alabaster);
  padding: 32px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.header__nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.header__nav a {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: opacity 0.2s ease;
}
.header__nav a:hover {
  opacity: 0.6;
}
.header__icons {
  display: flex;
  gap: 20px;
  font-size: 18px;
}
.header__icons a {
  transition: opacity 0.2s ease;
}
.header__icons a:hover {
  opacity: 0.6;
}

/* Hero Split */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  margin-top: 80px;
}
.hero-split__content {
  background: var(--bg-alabaster);
  padding: 120px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-split__preheader {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-taupe);
  margin-bottom: 32px;
}
.hero-split__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 48px;
  color: var(--text-dark);
  text-transform: lowercase;
  letter-spacing: -0.5px;
}
.btn-charcoal {
  display: inline-block;
  padding: 16px 40px;
  background: var(--bg-charcoal);
  color: var(--text-light);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
  align-self: flex-start;
}
.btn-charcoal:hover {
  opacity: 0.9;
}
.hero-split__image {
  background: var(--bg-beige);
  overflow: hidden;
}
.hero-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ticker Bar */
.ticker-bar {
  background: var(--bg-charcoal);
  color: var(--text-light);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
}
.ticker-bar__content {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  display: inline-block;
}
@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Collections */
.collections {
  background: var(--bg-alabaster);
  padding: 120px 0;
}
.collections__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  text-align: center;
  margin: 0 0 80px;
  color: var(--text-dark);
  text-transform: lowercase;
  letter-spacing: -0.5px;
}
.collections__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.collection-card {
  background: var(--bg-alabaster);
}
.collection-card__image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  margin-bottom: 24px;
}
.collection-card__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--text-dark);
  text-transform: lowercase;
}
.collection-card__subtitle {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-taupe);
  margin: 0 0 16px;
  text-transform: uppercase;
}
.collection-card__link {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
  display: inline-block;
}
.collection-card__link:hover {
  opacity: 0.6;
}

/* Service Items */
.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  background: var(--bg-alabaster);
}
.service-item--reverse {
  direction: rtl;
  background: var(--bg-beige);
}
.service-item--reverse > * {
  direction: ltr;
}
.service-item__image {
  overflow: hidden;
}
.service-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-item__content {
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-item__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 400;
  margin: 0 0 32px;
  color: var(--text-dark);
  text-transform: lowercase;
  letter-spacing: -0.5px;
}
.service-item__text {
  font-family: "Space Mono", monospace;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-taupe);
  margin: 0 0 32px;
  max-width: 500px;
}
.service-item__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-item__list li {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  text-transform: uppercase;
}
.service-item__list li::before {
  content: '■';
  position: absolute;
  left: 0;
  font-size: 8px;
  color: var(--text-dark);
}

/* Service Carousel */
.service-carousel {
  position: relative;
  background: var(--bg-alabaster);
}
.service-carousel__viewport {
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.service-carousel__viewport::-webkit-scrollbar {
  display: none;
}
.service-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  width: 100%;
  align-items: stretch;
}
.service-carousel__slide {
  scroll-snap-align: start;
  height: auto;
}
.service-carousel .service-item {
  grid-template-columns: 1fr;
  min-height: auto;
}
.service-carousel .service-item--reverse {
  direction: ltr;
}
.service-carousel .service-item__content {
  padding: 100px 80px;
  width: 100%;
}
.service-carousel__controls {
  position: absolute;
  top: 50%;
  left: 24px;
  right: 24px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.service-carousel__button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(253, 251, 247, 0.85);
  color: var(--text-dark);
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: opacity 0.2s ease;
}
.service-carousel__button:hover {
  opacity: 0.7;
}

/* Consulting */
.consulting__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.consulting__item {
  display: flex;
  gap: 32px;
}
.consulting__number {
  font-family: "Space Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-dark);
  flex-shrink: 0;
  padding-top: 4px;
}
.consulting__info {
  flex: 1;
}
.consulting__label {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--text-dark);
}
.consulting__text {
  font-family: "Space Mono", monospace;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-taupe);
  margin: 0;
}

/* Facts */
.facts {
  background: var(--bg-alabaster);
  padding: 120px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.facts__grid::before,
.facts__grid::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-subtle);
}
.facts__grid::before {
  left: calc(33.333% - 0.5px);
}
.facts__grid::after {
  left: calc(66.666% - 0.5px);
}
.facts__item {
  padding: 60px 40px;
  text-align: center;
}
.facts__number {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 400;
  margin: 0 0 16px;
  color: var(--text-dark);
}
.facts__label {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-taupe);
  margin: 0;
}
.facts__quote {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 16px;
  color: var(--text-dark);
  font-style: italic;
}
.facts__author {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-taupe);
  margin: 0;
}

/* Footer */
.footer {
  background: var(--bg-alabaster);
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-taupe);
}
.footer__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__right a {
  color: var(--text-taupe);
  transition: opacity 0.2s ease;
}
.footer__right a:hover {
  opacity: 0.6;
}
.footer__divider {
  color: var(--text-taupe);
}

/* Calendar Tab */
.calendar-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
}
.calendar-tab__stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.calendar-tab__button {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 24px 12px;
  background: var(--bg-charcoal);
  color: var(--text-light);
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  transition: background 0.2s ease;
  cursor: pointer;
  border-radius: 4px 0 0 4px;
}
.calendar-tab__button[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}
.calendar-tab__button:hover {
  background: #2a2a2a;
}
.calendar-tab__panel {
  position: absolute;
  right: 100%;
  top: 0;
  width: 500px;
  max-width: calc(100vw - 100px);
  background: var(--bg-beige);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 4px 0 0 4px;
  overflow: hidden;
}
.calendar-tab__head {
  padding: 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calendar-tab__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-dark);
}
.calendar-tab__close {
  font-size: 32px;
  line-height: 1;
  color: var(--text-dark);
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.calendar-tab__close:hover {
  opacity: 0.6;
}
.calendar-tab__body {
  padding: 0;
}
#schedulerFrame {
  width: 100%;
  height: 500px;
  border: 0;
  background: var(--bg-alabaster);
}
.calendar-tab__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
}
.calendar-tab__link {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
}
.calendar-tab__link:hover {
  opacity: 0.6;
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; }
.lightbox[hidden] { display: none; }
.lightbox__scrim {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.lightbox__close {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 301;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__close span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--text-light);
  border-radius: 1px;
}
.lightbox__close span:first-child { transform: rotate(45deg); }
.lightbox__close span:last-child { transform: rotate(-45deg); }
.lightbox__content {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 80px 24px 24px;
}
.lightbox__frame {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}
.lightbox__frame iframe,
.lightbox__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-split,
  .service-item {
    grid-template-columns: 1fr;
  }
  .service-item--reverse {
    direction: ltr;
  }
  .hero-split__content {
    padding: 80px 40px;
  }
  .collections__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .facts__grid {
    grid-template-columns: 1fr;
  }
  .facts__grid::before,
  .facts__grid::after {
    display: none;
  }
  .calendar-tab__panel {
    width: 400px;
  }
}

@media (max-width: 768px) {
  .header__nav {
    gap: 24px;
  }
  .hero-split__content {
    padding: 60px 24px;
  }
  .collections__grid {
    grid-template-columns: 1fr;
  }
  .service-item__content {
    padding: 60px 40px;
  }
  .service-carousel__controls {
    left: 12px;
    right: 12px;
  }
  .service-carousel__button {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  .calendar-tab__panel {
    width: 100vw;
    max-width: 100vw;
    right: 0;
    border-radius: 0;
  }
  .calendar-tab__button {
    border-radius: 0;
  }
}
