/* ==========================================================================
   KS KONNECT LANDING PAGE
   Built to the 869px-wide design comp. Every layout value is written in
   design pixels and multiplied by --u, so the page scales as one piece.
   ========================================================================== */

:root {
  --bg: #000000;

  /* Champagne gold */
  --gold-highlight: #F4E7D2;
  --gold-primary: #CDB08A;
  --gold-deep: #9C7A4F;
  --gold-border: rgba(196, 162, 116, 0.62);

  /* Text */
  --text-ivory: #F2ECE3;
  --text-light: #E4E0DA;
  --text-sand: #D4C9BA;
  --text-muted: #9E968B;

  /* Fonts */
  --font-serif: 'Libre Caslon Display', 'Didot', Georgia, serif;
  --font-didone: 'Bodoni Moda', 'Didot', 'Bodoni MT', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Champagne text gradients */
  --grad-cream: linear-gradient(180deg, #F6F0E6 0%, #E9DCC7 55%, #D6C1A0 100%);
  --grad-gold: linear-gradient(170deg, #F3E6CF 0%, #D9BC92 40%, #B8935F 75%, #E2CBA6 100%);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Keep the hidden attribute working on elements given a display value */
[hidden] {
  display: none !important;
}

html {
  background-color: var(--bg);
  color: var(--text-ivory);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(205, 176, 138, 0.45) #000;
}

/* Scrollbar: slim champagne thumb on a black track */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(232, 214, 186, 0.55), rgba(184, 147, 95, 0.55));
  border: 2px solid #000;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #E8D6BA, #B8935F);
}

::-webkit-scrollbar-corner {
  background: #000;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  overflow-x: hidden;
}

/* The frame is the size container; 1 design pixel = 100cqw / 869 */
.page-frame {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  container-type: inline-size;
}

.page-container {
  --u: calc(100cqw / 869);
  position: relative;
  width: 100%;
  padding-top: calc(var(--u) * 34);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gradient-text,
.brand-monogram span,
.headline-line,
.pillar-title,
.majlis-title {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ==========================================================================
   1. Brand Header / Monogram
   ========================================================================== */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-monogram {
  display: flex;
  align-items: flex-end;
  font-family: var(--font-didone);
  font-weight: 400;
  font-size: calc(var(--u) * 62);
  line-height: 0.82;
  margin-left: calc(var(--u) * 6);
}

.mono-k {
  background-image: linear-gradient(165deg, #F1E3CC 0%, #D8BD97 45%, #FFFFFF 70%, #CBB089 100%);
}

.mono-s {
  margin-left: -0.31em;
  background-image: linear-gradient(200deg, #F4E2C2 0%, #C99A5C 45%, #A87A43 70%, #E8CFA5 100%);
}

.brand-wordmark {
  margin-top: calc(var(--u) * 9);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: calc(var(--u) * 17);
  line-height: 1;
  letter-spacing: 0.62em;
  margin-right: -0.62em; /* cancel trailing letter-spacing so it stays centred */
  color: var(--text-light);
}

/* ==========================================================================
   2. Hero Headline
   ========================================================================== */
.hero-headline-section {
  margin-top: calc(var(--u) * 26);
  text-align: center;
}

.hero-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(var(--u) * 50);
  line-height: 0.97;
  letter-spacing: 0.025em;
  padding-left: calc(var(--u) * 8);
}

.headline-line {
  display: block;
  /* extra room so background-clip keeps the descenders */
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  background-image: var(--grad-cream);
}

.headline-line + .headline-line {
  background-image: linear-gradient(90deg, #DCC8AA 0%, #EDE2D2 45%, #F4EEE6 100%);
}

/* ==========================================================================
   3. Film Showcase
   ========================================================================== */
.video-showcase-section {
  margin-top: calc(var(--u) * 24);
  margin-left: calc(var(--u) * 3);
  width: calc(var(--u) * 764);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-card-container {
  width: 100%;
  cursor: pointer;
  outline: none;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 764 / 264;
  overflow: hidden;
  background: #000;
}

.video-preview-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.video-card-container:hover .video-preview-element,
.video-card-container:focus-visible .video-preview-element {
  transform: scale(1.02);
  filter: brightness(1.08);
}

.play-button-circle {
  position: absolute;
  left: calc(var(--u) * 380);
  top: calc(var(--u) * 136);
  width: calc(var(--u) * 80);
  height: calc(var(--u) * 80);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: calc(var(--u) * 2) solid rgba(255, 255, 255, 0.92);
  background: rgba(10, 10, 10, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.play-icon {
  width: 46%;
  height: 46%;
  margin-left: 8%;
}

.video-card-container:hover .play-button-circle,
.video-card-container:focus-visible .play-button-circle {
  background: rgba(10, 10, 10, 0.25);
  border-color: var(--gold-highlight);
  box-shadow: 0 0 calc(var(--u) * 24) rgba(216, 178, 115, 0.35);
  transform: translate(-50%, -50%) scale(1.06);
}

.video-caption-label {
  margin-top: calc(var(--u) * 15);
  padding-left: calc(var(--u) * 14);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: calc(var(--u) * 10);
  line-height: 1;
  letter-spacing: 0.32em;
  margin-right: -0.32em;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s ease;
}

.video-caption-label:hover {
  color: var(--gold-highlight);
}

/* ==========================================================================
   4. Three Pillars
   ========================================================================== */
.pillars-section {
  margin-top: calc(var(--u) * 56.5);
  width: 100%;
}

.pillars-grid {
  display: grid;
  grid-template-columns: calc(var(--u) * 253) 1px calc(var(--u) * 289) 1px 1fr;
  padding-left: calc(var(--u) * 40);
  align-items: stretch;
}

.pillar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: calc(var(--u) * 5);
  padding-bottom: calc(var(--u) * 8);
}

.pillar-column:last-child {
  padding-right: calc(var(--u) * 12);
}

.pillar-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(var(--u) * 43.5);
  line-height: 1;
  letter-spacing: -0.005em;
  background-image: var(--grad-cream);
}

.pillar-divider {
  width: calc(var(--u) * 40);
  height: 1px;
  margin: calc(var(--u) * 13) 0 calc(var(--u) * 16);
  background: linear-gradient(90deg, rgba(205, 176, 138, 0.4), #CDB08A, rgba(205, 176, 138, 0.4));
}

.pillar-description {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: calc(var(--u) * 11);
  line-height: 1.88;
  letter-spacing: 0.25em;
  margin-right: -0.25em;
  color: #D9D6D1;
}

.pillar-vertical-separator {
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   5. Majlis
   ========================================================================== */
.section-rule {
  margin-top: calc(var(--u) * 48.5);
  align-self: flex-start;
  margin-left: calc(var(--u) * 40);
  width: calc(var(--u) * 790);
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.11) 0%, rgba(255,255,255,0.11) 80%, rgba(255,255,255,0) 100%);
}

.majlis-section {
  position: relative;
  width: 100%;
  margin-top: calc(var(--u) * 24);
  padding-top: calc(var(--u) * 30);
  padding-left: calc(var(--u) * 60);
  min-height: calc(var(--u) * 385);
}

.majlis-visual {
  position: absolute;
  top: calc(var(--u) * -10);
  right: 0;
  width: calc(var(--u) * 497);
  height: calc(var(--u) * 385);
  pointer-events: none;
}

.majlis-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Feather the photo into the black page on the left and bottom */
.majlis-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #000 0%, rgba(0,0,0,0.6) 5%, rgba(0,0,0,0) 16%),
    linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 14%),
    linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 6%);
}

.majlis-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.majlis-eyebrow {
  margin-left: calc(var(--u) * 4);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: calc(var(--u) * 14.5);
  line-height: 1;
  letter-spacing: 0.335em;
  color: #B9B3AA;
}

.majlis-title {
  margin-top: calc(var(--u) * 1);
  margin-left: calc(var(--u) * 2);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(var(--u) * 90);
  line-height: 1;
  letter-spacing: 0;
  background-image: linear-gradient(175deg, #F4E8D6 0%, #E3CCA8 40%, #C3A074 75%, #D9BE95 100%);
}

.majlis-rule {
  margin-top: calc(var(--u) * 14);
  width: calc(var(--u) * 120);
  height: 1px;
  background: rgba(196, 170, 132, 0.55);
}

.majlis-paragraph {
  margin-top: calc(var(--u) * 24);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: calc(var(--u) * 12);
  line-height: 1.62;
  letter-spacing: 0.25em;
  color: #D6D3CE;
}

.inquire-button {
  margin-top: calc(var(--u) * 24);
  margin-left: calc(var(--u) * -5);
  width: calc(var(--u) * 340);
  height: calc(var(--u) * 51);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(var(--u) * 25) 0 calc(var(--u) * 27);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--gold-border);
  color: #F4F1EC;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: calc(var(--u) * 12);
  letter-spacing: 0.21em;
  cursor: pointer;
  transition: border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}

.button-arrow {
  font-size: 1.15em;
  letter-spacing: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.inquire-button:hover,
.inquire-button:focus-visible {
  border-color: var(--gold-primary);
  background: rgba(205, 176, 138, 0.1);
  box-shadow: 0 0 calc(var(--u) * 22) rgba(205, 176, 138, 0.18);
  outline: none;
}

.inquire-button:hover .button-arrow {
  transform: translateX(calc(var(--u) * 4));
}

/* ==========================================================================
   6. Footer
   ========================================================================== */
.coming-soon-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: calc(var(--u) * -8);
  padding-bottom: calc(var(--u) * 34);
}

.footer-tick-line {
  width: 1px;
  height: calc(var(--u) * 38);
  background: rgba(255, 255, 255, 0.28);
}

.footer-status-text {
  margin-top: calc(var(--u) * 17);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: calc(var(--u) * 9.5);
  line-height: 1;
  letter-spacing: 0.36em;
  margin-right: -0.36em;
  color: var(--text-light);
}

/* ==========================================================================
   7. Modals (Cinema Player & Membership Inquiry)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 3, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  /* Children centre with margin: auto, so a pop-up taller than the
     screen starts at the top and scrolls instead of being cut off */
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--gold-highlight);
  transform: rotate(90deg);
}

/* Video Cinema Modal */
.modal-cinema-container {
  position: relative;
  margin: auto;
  width: 100%;
  max-width: 980px;
  background: #000;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-active .modal-cinema-container {
  transform: scale(1);
}

.cinema-player-wrapper {
  width: 100%;
  position: relative;
  background: #000;
}

.modal-video-tag {
  width: 100%;
  height: auto;
  max-height: 70vh;
  display: block;
  outline: none;
}

.cinema-caption-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.6rem;
  background: #000;
}

.cinema-brand {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.cinema-title {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

/* Membership Inquiry Modal */
.inquire-modal-card {
  position: relative;
  margin: auto;
  width: 100%;
  max-width: 580px;
  background: #0b0b0b;
  border: 1px solid rgba(216, 178, 115, 0.35);
  box-shadow: 
    0 30px 90px rgba(0, 0, 0, 0.95),
    0 0 50px rgba(216, 178, 115, 0.12);
  padding: 3rem 2.5rem;
  border-radius: 2px;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-active .inquire-modal-card {
  transform: translateY(0);
}

.inquire-modal-header {
  margin-bottom: 2rem;
  text-align: left;
}

.inquire-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.inquire-heading {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text-ivory);
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.inquire-subtext {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.inquire-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-group label {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: var(--text-sand);
  text-transform: uppercase;
}

.form-group input,
.form-group select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-ivory);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  border-radius: 1px;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--gold-primary);
  background-color: rgba(216, 178, 115, 0.04);
}

/* Custom chevron so it can sit inset from the right border */
.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 2.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23CDB08A' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 11px 7px;
}

.form-group select option {
  background: #111;
  color: #fff;
}

.form-actions {
  margin-top: 0.8rem;
}

.submit-inquiry-btn {
  width: 100%;
  background: linear-gradient(135deg, #d8b273 0%, #ba8e4a 100%);
  color: #080808;
  border: none;
  padding: 1.05rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: var(--transition-smooth);
}

.submit-inquiry-btn:hover {
  background: linear-gradient(135deg, #ebd09c 0%, #cb9e57 100%);
  box-shadow: 0 0 25px rgba(216, 178, 115, 0.35);
  transform: translateY(-1px);
}

/* Success View */
.inquiry-success-view {
  text-align: center;
  padding: 2.5rem 1rem;
}

.success-icon-gold {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(216, 178, 115, 0.2);
}

.success-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text-ivory);
  margin-bottom: 0.8rem;
}

.success-text {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 2rem;
}

.success-close-btn {
  background: transparent;
  border: 1px solid rgba(216, 178, 115, 0.4);
  color: var(--gold-primary);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  padding: 0.8rem 2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.success-close-btn:hover {
  background: rgba(216, 178, 115, 0.1);
  color: #fff;
  border-color: var(--gold-primary);
}

/* ==========================================================================
   8. Responsive
   Below 640px the comp would shrink too far to read, so the layout stacks
   and switches to fixed sizes.
   ========================================================================== */
@media (max-width: 640px) {
  .page-container {
    --u: 1px;
    padding: 36px 16px 0;
  }

  .brand-monogram { font-size: 56px; }
  .brand-wordmark { font-size: 12px; }

  .hero-headline { font-size: clamp(28px, 8.4vw, 40px); line-height: 1.05; }

  .video-showcase-section { width: 100%; margin-top: 24px; }
  .video-frame { aspect-ratio: 16 / 10; }
  .play-button-circle { left: 50%; top: 50%; width: 64px; height: 64px; }

  .pillars-section { margin-top: 48px; }
  .pillars-grid {
    grid-template-columns: 1fr;
    padding-left: 0;
    row-gap: 36px;
  }
  .pillar-vertical-separator { display: none; }
  .pillar-column:last-child { padding-left: 0; }
  .pillar-title { font-size: 38px; }

  .section-rule { width: 100%; margin-left: 0; margin-top: 44px; }

  .majlis-section {
    padding: 0;
    margin-top: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .majlis-visual {
    position: relative;
    width: calc(100% + 32px);
    height: auto;
    aspect-ratio: 497 / 385;
    margin: 0 -16px;
    order: -1;
  }
  .majlis-visual::after {
    background:
      linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 30%),
      linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 12%);
  }
  .majlis-content { margin-top: -40px; }
  .majlis-title { font-size: 76px; }
  .inquire-button { width: 100%; margin-left: 0; max-width: 360px; }

  .coming-soon-footer { margin-top: 48px; }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .inquire-modal-card {
    padding: 2.2rem 1.5rem;
  }
}
