:root {
  --split: 50%;
  --ink: #151513;
  --muted: rgba(21, 21, 19, 0.68);
  --light: #f8f5ef;
  --panel: rgba(255, 252, 246, 0.9);
  --panel-solid: #fffaf1;
  --border: rgba(255, 255, 255, 0.42);
  --dark-glass: rgba(20, 18, 15, 0.28);
  --shadow: 0 24px 80px rgba(13, 11, 8, 0.28);
  --radius: 28px;
  --motion: 220ms cubic-bezier(.2,.8,.2,1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0f0f0d;
  color: var(--ink);
}

body {
  min-height: 100dvh;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: clamp(12px, 2vw, 28px);
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 28px));
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(248, 245, 239, 0.08);
  color: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px) saturate(120%);
  opacity: 0.72;
  transition: opacity var(--motion), background var(--motion), border-color var(--motion), box-shadow var(--motion);
}

.topbar:hover,
.topbar:focus-within {
  opacity: 1;
  background: rgba(248, 245, 239, 0.24);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.brand__mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff7df;
  box-shadow: 0 0 22px rgba(255, 247, 223, 0.8);
}

.brand__text {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav__item {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 15px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  transition: color var(--motion), background var(--motion), transform var(--motion);
}

.nav__item:hover,
.nav__item:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  outline: none;
}

.hero {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.compare {
  position: absolute;
  inset: 0;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  background: #191815;
}

.compare__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.compare__image--after {
  z-index: 1;
}

.compare__before {
  position: absolute;
  z-index: 2;
  inset: 0;
  clip-path: polygon(0 0, var(--split) 0, var(--split) 100%, 0 100%);
  will-change: clip-path;
}

.compare__shade {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.compare__shade--left {
  background: linear-gradient(90deg, rgba(0,0,0,0.32), transparent 42%);
}

.compare__shade--right {
  background: linear-gradient(270deg, rgba(0,0,0,0.24), transparent 44%);
}

.label {
  position: absolute;
  z-index: 10;
  bottom: clamp(22px, 5vw, 56px);
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(12, 12, 10, 0.2);
  color: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.label--left {
  left: clamp(18px, 4vw, 54px);
}

.label--right {
  right: clamp(18px, 4vw, 54px);
}

.divider {
  position: absolute;
  z-index: 12;
  top: 0;
  left: var(--split);
  width: 64px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
  touch-action: none;
}

.divider:focus-visible {
  outline: none;
}

.divider:focus-visible .divider__handle {
  box-shadow: 0 0 0 4px rgba(255,255,255,0.22), 0 18px 52px rgba(0,0,0,0.3);
}

.divider__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.92) 14%, rgba(255,255,255,0.92) 86%, transparent);
  box-shadow: 0 0 20px rgba(255,255,255,0.45);
}

.divider__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.32);
  color: #fff;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 18px 52px rgba(0,0,0,0.28);
  transition: transform var(--motion), background var(--motion);
}

.divider:hover .divider__handle,
.compare.is-dragging .divider__handle {
  transform: translate(-50%, -50%) scale(1.04);
  background: rgba(255, 250, 241, 0.42);
}

.divider__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.divider__chevron {
  font-size: 26px;
  line-height: 1;
  transform: translateY(-1px);
}

.hero__copy {
  position: absolute;
  z-index: 9;
  left: clamp(20px, 5vw, 70px);
  top: 50%;
  width: min(560px, calc(100vw - 40px));
  transform: translateY(-50%);
  color: #fff;
  pointer-events: none;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.eyebrow,
.panel__eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.hero__copy h1 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.058em;
  text-wrap: balance;
}

.hero__copy p:not(.eyebrow) {
  max-width: 520px;
  margin: 20px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
}

.hero__copy .hero__note {
  max-width: 455px;
  margin-top: 10px;
  color: rgba(255,255,255,0.9);
}

.primary-action {
  pointer-events: auto;
  margin-top: 28px;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 999px;
  padding: 0 22px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  backdrop-filter: blur(14px);
  transition: background var(--motion), transform var(--motion);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: rgba(255,255,255,0.26);
  transform: translateY(-1px);
  outline: none;
}

.overlay,
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.overlay[hidden],
.lightbox[hidden] {
  display: none;
}

.overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 7, 0.36);
  backdrop-filter: blur(7px);
}

.panel {
  position: absolute;
  top: clamp(84px, 12vh, 120px);
  right: clamp(14px, 3vw, 42px);
  bottom: clamp(14px, 3vw, 42px);
  width: min(520px, calc(100vw - 28px));
  border: 1px solid rgba(255,255,255,0.52);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(120%);
  animation: panelIn 260ms cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateX(20px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.panel__close,
.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20,18,15,0.12);
  border-radius: 50%;
  background: rgba(255,255,255,0.38);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  transition: transform var(--motion), background var(--motion), opacity var(--motion);
}

.panel__close,
.lightbox__close {
  top: 18px;
  right: 18px;
}

.panel__close:hover,
.panel__close:focus-visible,
.lightbox__close:hover,
.lightbox__close:focus-visible {
  transform: rotate(90deg);
  background: rgba(255,255,255,0.72);
  outline: none;
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  background: rgba(255,255,255,0.24);
  transform: translateY(-50%) scale(1.06);
  outline: none;
}

.panel__section {
  height: 100%;
  padding: 42px clamp(22px, 5vw, 46px);
}

.panel__eyebrow {
  color: rgba(21,21,19,0.52);
}

.panel h2 {
  margin: 0 52px 22px 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.panel__scroll {
  max-height: calc(100% - 126px);
  overflow: auto;
  padding-right: 8px;
  color: var(--muted);
  line-height: 1.68;
}

.panel__section[data-content="about"]:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.panel__section[data-content="about"] .panel__eyebrow,
.panel__section[data-content="about"] h2 {
  flex: 0 0 auto;
}

.panel__section[data-content="about"] .panel__scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  padding-bottom: 28px;
}

.panel__scroll::-webkit-scrollbar {
  width: 7px;
}

.panel__scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(21,21,19,0.2);
}

.advantages {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.advantages li {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  border: 1px solid rgba(21,21,19,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.34);
}

.advantages strong {
  color: var(--ink);
  font-size: 15px;
  letter-spacing: -0.01em;
}

.advantages span {
  color: rgba(21,21,19,0.52);
  font-size: 14px;
  line-height: 1.45;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: calc(100% - 96px);
  overflow: auto;
  padding-right: 4px;
}

.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #ddd4c5;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms cubic-bezier(.2,.8,.2,1), filter 360ms cubic-bezier(.2,.8,.2,1);
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.02);
}

.gallery__item:focus-visible {
  outline: 3px solid rgba(21,21,19,0.36);
  outline-offset: 3px;
}

.contact-card {
  display: grid;
  gap: 16px;
  color: var(--muted);
  line-height: 1.65;
}

.contact-link {
  width: fit-content;
  color: var(--ink);
  font-size: 21px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.contact-link:hover,
.contact-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  text-decoration: none;
  transition: transform var(--motion), background var(--motion), border-color var(--motion);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button--dark {
  background: var(--ink);
  color: #fff;
}

.button--light {
  border: 1px solid rgba(21,21,19,0.15);
  background: rgba(255,255,255,0.36);
  color: var(--ink);
}

.lightbox {
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
  background: rgba(9, 9, 8, 0.82);
  backdrop-filter: blur(16px);
}

.lightbox__close {
  color: #fff;
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12);
}

.lightbox__nav {
  top: 50%;
  width: clamp(44px, 6vw, 60px);
  height: clamp(44px, 6vw, 60px);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12);
  font-size: clamp(34px, 5vw, 48px);
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: clamp(10px, 3vw, 34px);
}

.lightbox__nav--next {
  right: clamp(10px, 3vw, 34px);
}

.lightbox__image {
  max-width: min(1100px, 92vw);
  max-height: 84dvh;
  width: auto;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(0,0,0,0.46);
}

@media (max-width: 760px) {
  .topbar {
    top: 10px;
    width: calc(100vw - 16px);
    min-height: 54px;
    padding: 8px 8px 8px 12px;
    gap: 8px;
  }

  .brand__text {
    display: none;
  }

  .nav {
    gap: 1px;
  }

  .nav__item {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero__copy {
    display: none;
  }

  .hero__copy h1 {
    font-size: clamp(28px, 8.8vw, 42px);
    line-height: 1;
  }

  .hero__copy p:not(.eyebrow) {
    max-width: min(440px, calc(100vw - 36px));
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.48;
  }

  .hero__copy .hero__note {
    max-width: min(380px, calc(100vw - 36px));
    margin-top: 8px;
  }

  .primary-action {
    margin-top: 18px;
  }

  .label {
    bottom: 18px;
    font-size: 11px;
  }

  .divider__handle {
    width: 58px;
    height: 58px;
  }

  .panel {
    top: 78px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    border-radius: 24px;
  }

  .panel__section {
    padding: 30px 22px;
  }

  .panel__section[data-content="gallery"]:not([hidden]) {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .panel h2 {
    margin-right: 48px;
  }

  .gallery {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 10px;
    overflow-y: auto;
    padding-right: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .gallery__item {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }

  .lightbox {
    padding: 72px 10px 28px;
  }

  .lightbox__image {
    max-width: calc(100vw - 20px);
    max-height: 76dvh;
    border-radius: 18px;
  }

  .lightbox__nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox__nav:hover,
  .lightbox__nav:focus-visible {
    transform: scale(1.06);
  }
}

@media (max-width: 390px) {
  .nav__item {
    padding: 0 8px;
    font-size: 12px;
  }

  .panel__section {
    padding-inline: 18px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
