/* Sablim — Coming Soon */

:root {
  --sablim-white: #ffffff;
  --sablim-black: #000000;
  --sablim-muted: rgba(255, 255, 255, 0.65);
  --sablim-blue: #6cabdd;
  --sablim-blue-deep: #4e8fbd;
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--sablim-black);
  color: var(--sablim-white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.cs-hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

/* Image background carousel (full-screen, crossfades on a loop) */
.cs-carousel {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #1a1a1a;
}

.cs-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1500ms ease-in-out;
  will-change: opacity;
}

.cs-slide.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cs-slide {
    transition: none;
  }
}

.cs-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* light-to-dark overlay — keeps text legible while the images show through */
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.4) 45%,
      rgba(0, 0, 0, 0.75) 100%
    );
}

/* Header (logo centered) */
.cs-header {
  display: flex;
  justify-content: center;
  padding: clamp(1.1rem, 3vh, 2rem) 1.5rem 0;
}

@media (min-width: 48em) {
  .cs-header {
    padding: 2.5rem 2.5rem 0;
  }
}

.cs-logo {
  height: 48px;
  width: auto;
}

@media (min-width: 48em) {
  .cs-logo {
    height: 60px;
  }
}

/* Content */
.cs-content {
  align-self: center;
  text-align: center;
  padding: clamp(0.75rem, 2.5vh, 2rem) 1.5rem;
  max-width: 38rem;
  margin: 0 auto;
  width: 100%;
}

.cs-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 clamp(0.5rem, 1.5vh, 1rem);
}

.cs-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 6.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--sablim-white);
  margin: 0 0 clamp(0.6rem, 2vh, 1.5rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  text-wrap: balance;
}

.cs-lead {
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 2.4vw, 1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto clamp(1rem, 3vh, 2.5rem);
  max-width: 32rem;
}

/* Digital countdown */
.cs-countdown {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  margin: clamp(0.6rem, 2vh, 2.5rem) auto;
}

.cs-count-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(3.2rem, 12vw, 5rem);
}

.cs-count-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--sablim-white);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.cs-count-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.6rem;
}

.cs-count-sep {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.4);
  align-self: flex-start;
  margin-top: 0.1em;
}

/* Subscribe form */
.cs-form {
  margin: 0 auto;
  max-width: 32rem;
}

.cs-form-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.cs-form-row {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  transition: border-color 200ms ease;
}

.cs-form-row:focus-within {
  border-color: var(--sablim-white);
}

.cs-form-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0.95rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--sablim-white);
  margin: 0;
}

.cs-form-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.cs-form-submit {
  background: var(--sablim-white);
  color: var(--sablim-black);
  border: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0 1.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms ease, color 200ms ease;
}

.cs-form-submit:hover {
  background: var(--sablim-blue);
}

.cs-form-status {
  margin: 0.85rem 0 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  min-height: 1.2em;
  text-align: center;
}

.cs-form-status.is-success {
  color: #b7e0b3;
}

.cs-form-status.is-error {
  color: #f1a895;
}

/* Footer */
.cs-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 1.5vh, 0.85rem);
  padding: clamp(1rem, 2.5vh, 2rem) 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 60em) {
  .cs-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2.5rem;
    text-align: left;
  }
}

.cs-footer-tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.cs-footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
}

.cs-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.04);
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease,
    transform 200ms ease;
}

.cs-social-link:hover {
  color: var(--sablim-black);
  background: var(--sablim-white);
  border-color: var(--sablim-white);
  transform: translateY(-1px);
}

.cs-footer-copy {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* Mobile tuning */
@media (max-width: 47.99em) {
  .cs-header {
    padding: clamp(1rem, 3vh, 1.5rem) 1rem 0;
  }
  .cs-logo {
    height: clamp(36px, 6vh, 44px);
  }
  .cs-content {
    padding: clamp(0.5rem, 2vh, 1.5rem) 1.25rem;
  }
  .cs-title {
    font-size: clamp(1.9rem, 11vw, 3rem);
  }
  .cs-countdown {
    gap: clamp(0.35rem, 2.5vw, 0.75rem);
    margin: clamp(0.5rem, 1.8vh, 1.5rem) auto;
  }
  .cs-count-unit {
    min-width: clamp(2.8rem, 18vw, 4rem);
  }
  .cs-count-value {
    font-size: clamp(1.8rem, 12vw, 2.8rem);
  }
  .cs-count-label {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    margin-top: 0.45rem;
  }
  .cs-lead {
    font-size: clamp(0.85rem, 3.4vw, 0.95rem);
    line-height: 1.5;
    margin-bottom: clamp(0.9rem, 2.5vh, 2rem);
  }
  .cs-form-row {
    flex-direction: column;
  }
  .cs-form-submit {
    padding: 0.85rem 1.5rem;
  }
  .cs-footer {
    padding: clamp(0.8rem, 2vh, 1.5rem) 1rem;
    gap: clamp(0.4rem, 1.5vh, 0.85rem);
  }
  .cs-footer-tagline {
    font-size: 0.85rem;
  }
  .cs-social-link {
    width: 38px;
    height: 38px;
  }
}

/* Very short screens (e.g. landscape phones) — drop non-essential bits to fit */
@media (max-height: 600px) {
  .cs-count-value {
    font-size: clamp(1.6rem, 14vw, 2.4rem);
  }
}

@media (max-height: 460px) {
  .cs-count-label,
  .cs-lead {
    display: none;
  }
  .cs-title {
    margin-bottom: 0.6rem;
  }
  .cs-countdown {
    margin: 0.4rem auto;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
