:root {
  --ink: #1c1b1b;
  --ink-soft: #5a5553;
  --paper: #fffcfa;
  --mist: #f4f0ec;
  --mist-2: #ebe6e1;
  --line: rgba(28, 27, 27, 0.08);
  --blue: #6ea4f0;
  --blue-deep: #2b6cb0;
  --blue-soft: #c5dbf8;
  --gold: #c4a574;
  --radius: 32px;
  --radius-sm: 18px;
  --shadow: 0 30px 80px rgba(28, 27, 27, 0.12);
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--mist);
  letter-spacing: -0.018em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, .serif {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.accent {
  color: var(--blue);
  font-style: italic;
  font-weight: 500;
}

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.kicker.light { color: var(--blue-soft); }

/* NAV */
.nav {
  position: fixed;
  z-index: 40;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  color: #fff;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease);
}

.nav.scrolled {
  background: rgba(255, 252, 250, 0.88);
  border-color: rgba(28, 27, 27, 0.06);
  box-shadow: 0 12px 40px rgba(28, 27, 27, 0.1);
  color: var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.82;
}

.nav-links a:hover { opacity: 1; }

.nav-cta {
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 11px 16px;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.nav.scrolled .nav-cta {
  background: var(--ink);
  color: #fff;
}

.nav-cta:hover { transform: translateY(-1px); }

/* HERO */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: grid;
  place-items: end center;
  color: #f7f4f1;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -4%;
  background: url("../img/hero.png") center 40% / cover no-repeat;
  z-index: -2;
  animation: kenburns 22s var(--ease) infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 16, 15, 0.18) 0%, rgba(18, 16, 15, 0.28) 42%, rgba(18, 16, 15, 0.78) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(10, 9, 8, 0.35) 100%);
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-inner {
  width: min(980px, calc(100% - 48px));
  text-align: center;
  padding: 0 0 88px;
}

.hero .kicker { color: var(--gold); justify-content: center; }

.hero h1 {
  font-size: clamp(44px, 7.4vw, 92px);
  font-weight: 500;
  color: #fffaf6;
  text-wrap: balance;
}

.hero p {
  margin: 22px auto 0;
  max-width: 560px;
  font-size: clamp(16px, 1.7vw, 19px);
  color: rgba(247, 244, 241, 0.82);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}

.scroll-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  border-radius: 99px;
  background: #fff;
  transform: translateX(-50%);
  animation: drip 1.6s ease-in-out infinite;
}

@keyframes drip {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  padding: 15px 24px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(28, 27, 27, 0.18);
}

.btn-light { background: #fff; color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-soft { background: var(--blue-soft); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s var(--ease) forwards;
  animation-play-state: paused;
}

.reveal.in { animation-play-state: running; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* SECTIONS */
.section { padding: 108px 0; }

.section h2 {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 500;
  max-width: 16ch;
  text-wrap: balance;
}

.lead {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 17px;
}

.section-head { margin-bottom: 48px; }

/* PRODUCT */
.product { background: var(--mist); }

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 520px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.product-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.product-card:hover img { transform: scale(1.06); }

.product-card .body {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 28px 30px;
  background: linear-gradient(180deg, transparent, rgba(16, 15, 14, 0.78));
  color: #fff;
}

.product-card h3 {
  font-size: 34px;
  font-weight: 500;
  margin-bottom: 8px;
}

.product-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  max-width: 36ch;
}

.swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.swatch i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: block;
}

.swatch.white i { background: #f4f1ea; }
.swatch.anthra i { background: #3a3d41; }

/* FEATURES */
.features { background: var(--paper); }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feat {
  background: linear-gradient(180deg, #fff, #f7f3ef);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 22px 28px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.feat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #edf4fd;
  color: var(--blue-deep);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.icon svg { width: 22px; height: 22px; }

.feat h3 {
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.feat p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }

/* GALLERY */
.gallery {
  background: #141312;
  color: #fff;
}

.gallery .lead { color: rgba(255, 255, 255, 0.68); }
.gallery h2 { max-width: none; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 10px;
  margin: 8px 0 36px;
}

.gallery-grid a {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.gallery-grid a:first-child {
  grid-row: 1 / span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.28));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.gallery-grid a:hover img { transform: scale(1.07); }
.gallery-grid a:hover::after { opacity: 1; }

.gallery-more {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 36px;
}

.gallery-more a {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
}

.gallery-more img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery-more a:hover img { transform: scale(1.06); }

/* AUDIENCE */
.audience {
  position: relative;
  isolation: isolate;
  padding: 88px 24px;
}

.audience::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(244, 240, 236, 0.72), rgba(244, 240, 236, 0.88)),
    url("../img/audience-bg.png") center / cover no-repeat;
  z-index: -1;
}

.audience-card {
  background: rgba(255, 252, 250, 0.86);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 36px;
  padding: 56px 48px;
  box-shadow: var(--shadow);
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.aud {
  background: #fff;
  border-radius: 22px;
  padding: 26px 24px;
  border: 1px solid var(--line);
}

.aud h3 {
  font-size: 28px;
  font-weight: 500;
  margin: 14px 0 10px;
}

.aud p { color: var(--ink-soft); font-size: 15px; }

/* INSTALL */
.install {
  background: #141312;
  color: #fff;
  padding: 0;
}

.install-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.install-copy {
  display: grid;
  align-content: center;
  padding: 80px 64px;
}

.install h2 { max-width: 12ch; }
.install .sub {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  margin: 18px 0 14px;
}

.install p { color: rgba(255, 255, 255, 0.72); max-width: 46ch; }
.install .btn { margin-top: 28px; justify-self: start; }

.install-photo {
  background: url("../img/cta-bg.jpg") center / cover no-repeat;
  position: relative;
}

.install-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #141312, transparent 40%);
}

/* CONTACT */
.contact { background: var(--mist); }

.contact-ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
}

.contact-way {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--paper);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.contact-way:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 14, 13, 0.12);
}

.contact-way .icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--blue-deep);
  margin-bottom: 22px;
}

.contact-way .icon svg { width: 24px; height: 24px; }

.way-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-way strong {
  display: block;
  margin-top: 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--blue-deep);
  letter-spacing: -0.02em;
}

.way-hint {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* CTA BAND */
.cta-band {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 14, 13, 0.42), rgba(16, 14, 13, 0.62)),
    url("../img/g2.jpg") center / cover no-repeat;
  z-index: -1;
  transform: scale(1.04);
}

.cta-band h2 {
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 500;
  max-width: 12ch;
  margin: 0 auto;
}

.cta-band p {
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.82);
}

.cta-band .btn { margin-top: 30px; }

/* FOOTER */
.footer {
  background: #0f0e0d;
  color: rgba(255, 255, 255, 0.62);
  padding: 48px 0 120px;
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer .brand { color: #fff; margin-bottom: 10px; }
.footer a { color: var(--blue-soft); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer h4 {
  font-family: Inter, sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}

.copy { color: rgba(255, 255, 255, 0.38); font-size: 12.5px; }

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.9);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.lightbox.open { display: grid; }
.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  color: #fff;
  font-size: 32px;
  background: none;
  border: 0;
  cursor: pointer;
}

/* COOKIE */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  background: rgba(255, 252, 250, 0.92);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  padding: 18px 20px;
  display: none;
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.cookie.show { display: block; }
.cookie strong { color: var(--ink); }
.cookie p { font-size: 14px; color: var(--ink-soft); }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cookie-actions button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.cookie-actions .accept { background: var(--ink); color: #fff; }
.cookie-actions .reject { background: var(--mist-2); }
.cookie-actions .custom { background: #edf4fd; color: var(--blue-deep); }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 11, 11, 0.55);
  display: none;
  place-items: center;
  z-index: 90;
  padding: 20px;
}

.modal.open { display: grid; }

.modal-card {
  background: #fff;
  width: min(560px, 100%);
  border-radius: 20px;
  padding: 24px;
}

.modal-card h3 { margin-bottom: 12px; }

.switch {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.legal-page {
  max-width: 760px;
  margin: 110px auto 60px;
  background: #fff;
  border-radius: 24px;
  padding: 40px;
}

.legal-page p { margin-top: 14px; }
.legal-page a { color: var(--blue-deep); }

.product-card:nth-child(2) { animation-delay: 0.12s; }
.feat:nth-child(2) { animation-delay: 0.06s; }
.feat:nth-child(3) { animation-delay: 0.12s; }
.feat:nth-child(4) { animation-delay: 0.18s; }
.feat:nth-child(5) { animation-delay: 0.08s; }
.feat:nth-child(6) { animation-delay: 0.14s; }
.feat:nth-child(7) { animation-delay: 0.2s; }
.feat:nth-child(8) { animation-delay: 0.26s; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .scroll-hint::after { animation: none; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .product-grid,
  .feat-grid,
  .audience-grid,
  .contact-ways,
  .install-split,
  .footer-grid,
  .gallery-more { grid-template-columns: 1fr 1fr; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 180px 180px;
  }
  .gallery-grid a:first-child { grid-column: 1 / span 2; grid-row: auto; }
  .install-copy { padding: 56px 32px; }
  .audience-card { padding: 36px 24px; }
  .product-card { min-height: 420px; }
}

@media (max-width: 720px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .section { padding: 72px 0; }
  .product-grid,
  .feat-grid,
  .audience-grid,
  .contact-ways,
  .install-split,
  .footer-grid,
  .gallery-grid,
  .gallery-more { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-rows: none; }
  .gallery-grid a,
  .gallery-grid a:first-child { aspect-ratio: 16 / 11; grid-column: auto; }
  .hero-inner { padding-bottom: 96px; }
  .product-card { min-height: 380px; }
  .contact-way strong { font-size: 28px; }
  .footer { padding-bottom: 130px; }
}
