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

:root {
  --u: calc(100vh / 1024)
}

html,
body {
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  background: #000000;
  font-family: 'Funnel Display', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide scrollbar */
::-webkit-scrollbar {
  display: none;
}

html {
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: none
}

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

/* Main Container */
.zb-page-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* White Card Area */
.zb-card-wrapper {
  position: relative;
  width: calc(100vw - 16px);
  height: calc(100vh - calc(120 * var(--u)));
  /* Leaving space for bottom bar */
  margin: 8px 8px 0 8px;
  background: #F5F5F7;
  border-radius: 32px 32px 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Header inside card */
.zb-header {
  position: absolute;
  top: calc(48 * var(--u));
  left: calc(48 * var(--u));
  right: calc(48 * var(--u));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 10;
}

.zb-logo {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
}

/* Custom Zoho WorkDrive logo SVG */
.zb-logo svg {
  width: calc(100 * var(--u));
  height: auto;
}

.zb-role {
  font-size: calc(18 * var(--u));
  line-height: calc(30 * var(--u));
  color: #1D1D1F;
  font-weight: 500;
}

/* Center Quote */
.zb-quotes-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(880 * var(--u));
  height: calc(300 * var(--u));
  display: flex;
  justify-content: center;
  align-items: center;
}

.zb-hero-quote {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  text-align: left;
  font-size: calc(48 * var(--u));
  line-height: 1.4em;
  color: #1D1D1F;
  font-weight: 400;
  opacity: 0;
  visibility: hidden;
}

.zb-sub-quote {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  text-align: left;
  font-size: calc(32 * var(--u));
  line-height: 1.4em;
  color: #1D1D1F;
  font-weight: 400;
  opacity: 0;
  visibility: hidden;
}

/* Progress indicator inside card */

.zb-screen-controls {
  position: absolute;
  bottom: calc(24 * var(--u));
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 calc(48 * var(--u));
  box-sizing: border-box;
  z-index: 100;
}

.zb-progress-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: calc(14 * var(--u));
  color: #1D1D1F;
  font-weight: 500;
}

.zb-control-btn {
  font-family: inherit;
  font-size: calc(14 * var(--u));
  color: #1D1D1F;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: opacity 0.2s;
}

.zb-control-btn:hover {
  opacity: 0.7;
}


/* Bottom Black Bar Area */
.zb-bottom-bar {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 calc(48 * var(--u));
}

.zb-back-link,
.zb-next-project {
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 6;
  text-decoration: none;
}

.zb-back-link {
  font-size: calc(18 * var(--u));
  color: #86868B;
  font-weight: 500;
  transition: color 0.2s;
}

.zb-back-link:hover {
  color: #FFFFFF;
}

/* Timeline */
.zb-timeline {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.zb-timeline-window {
  width: calc(360 * var(--u));
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 25%, black 75%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 25%, black 75%, transparent);
  padding: calc(4 * var(--u)) 0 calc(36 * var(--u)) 0; /* Padding for labels underneath */
}

.zb-timeline-track {
  display: flex;
  align-items: flex-start;
  gap: calc(16 * var(--u));
  will-change: transform;
  padding: 0 calc(180 * var(--u));
}

.zb-tick {
  position: relative;
  background: #68686C;
  border-radius: calc(1 * var(--u));
  transition: opacity 0.2s, height 0.2s, background-color 0.2s;
  flex-shrink: 0;
  cursor: pointer;
}

.zb-main-tick {
  width: calc(3 * var(--u));
  height: calc(20 * var(--u));
  opacity: 0.8;
  cursor: pointer;
}

.zb-main-tick.active {
  height: calc(24 * var(--u));
  background: #FFFFFF;
  opacity: 1;
}

.zb-sub-tick {
  width: calc(3 * var(--u));
  height: calc(10 * var(--u));
  opacity: 0.6;
  margin-top: calc(5 * var(--u)); /* Vertically center roughly with 20px tick */
}

.zb-sub-tick.active {
  background: #FFFFFF;
  opacity: 1;
}

.zb-timeline-label {
  position: absolute;
  top: calc(100% + 12 * var(--u));
  left: 50%;
  transform: translateX(-50%);
  color: #68686C;
  font-size: calc(14 * var(--u));
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: calc(72 * var(--u));
  transition: color 0.2s;
  pointer-events: none; /* Prevent label from intercepting clicks if it overflows */
}

.zb-timeline-label.active {
  color: #FFFFFF;
}

/* Next Project */
.zb-next-project {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: calc(4 * var(--u));
  text-decoration: none;
}

.zb-next-label {
  font-size: calc(14 * var(--u));
  color: #86868B;
  font-weight: 500;
}

.zb-next-title {
  font-size: calc(20 * var(--u));
  color: #FFFFFF;
  font-weight: 600;
}

/* Workflows Section */
.zb-workflows-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.zb-workflows-title {
  font-family: 'League Gothic', sans-serif;
  font-size: 40vw;
  line-height: 0.8;
  font-weight: 400;
  color: #1D1D1F;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 1;
}

/* Floating Elements Base */
.zb-floating-el {
  position: absolute;
  z-index: 2;
}

.zb-floating-el svg {
  width: 100%;
  height: auto;
  display: block;
}

/* 1. Trigger Condition */
.zb-float-trigger {
  position: absolute;
  top: auto;
  bottom: 25%;
  left: auto;
  right: 22%;
  width: calc(82 * var(--u));
  z-index: 10;
  opacity: 0;
}

/* 2. Changes Suggested */
.zb-float-suggested {
  top: 25%;
  right: 30%;
  width: calc(271 * var(--u));
}

/* 3. Approved */
.zb-float-approved {
  position: absolute;
  top: 15%;
  left: 20%;
  width: calc(65 * var(--u));
  z-index: 10;
  opacity: 0;
}

/* 4. Approval Pending Card */
.zb-float-approval {
  bottom: 20%;
  left: 4%;
  width: calc(344 * var(--u));
}

.zb-btn-primary {
  background: #0071E3;
  color: white;
  border: none;
  padding: calc(10 * var(--u)) calc(20 * var(--u));
  border-radius: calc(8 * var(--u));
  font-size: calc(14 * var(--u));
  font-weight: 500;
  cursor: pointer;
}

/* 5. Email Input */
.zb-float-email {
  top: 48%;
  right: 10%;
  width: calc(396 * var(--u));
}

/* 6. Toolbar */
.zb-float-toolbar {
  bottom: 20%;
  right: 15%;
  width: calc(34 * var(--u));
}

/* DLP Section */
.zb-dlp-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.zb-dlp-title {
  font-family: 'League Gothic', sans-serif;
  font-size: 20vw;
  line-height: 0.8;
  font-weight: 400;
  color: #1D1D1F;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 1;
}

/* DLP Floating Elements */
.zb-dlp-floating-el {
  position: absolute;
  z-index: 2;
}

.zb-dlp-floating-el img {
  width: 100%;
  height: auto;
  display: block;
}

.zb-dlp-financial-label {
  position: absolute;
  top: auto;
  bottom: 22%;
  left: 13%;
  width: calc(100 * var(--u));
  z-index: 10;
  opacity: 0;
}

.zb-dlp-sensitive-content {
  bottom: 12%;
  left: 8%;
  width: calc(440 * var(--u));
}

.zb-dlp-add-rule {
  top: 8%;
  left: 45%;
  width: calc(100 * var(--u));
}

.zb-dlp-new-policy {
  position: absolute;
  top: 20%;
  right: 13%;
  left: auto;
  width: calc(100 * var(--u));
  z-index: 10;
  opacity: 0;
}

.zb-dlp-tooltip {
  bottom: 16%;
  right: 8%;
  width: calc(420 * var(--u));
}

/* Horizontal Video Track Scene */
.zb-video-track-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  transform: translateX(100vw);
  opacity: 0;
  visibility: hidden;
}

.zb-video-track {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: calc(100 * var(--u));
}

.zb-track-text-item {
  width: max-content;
  font-size: calc(32 * var(--u));
  color: #1D1D1F;
  flex-shrink: 0;
  margin-right: calc(240 * var(--u));
}

.zb-track-text-item strong {
  font-weight: 600;
}

.zb-track-card-wrapper {
  position: relative;
  flex-shrink: 0;
  margin-right: calc(80 * var(--u));
}

.zb-track-card-wrapper + .zb-track-text-item {
  margin-left: calc(160 * var(--u));
}

.zb-track-card-wrapper:last-child {
  margin-right: calc(300 * var(--u));
}

.zb-track-card-item {
  width: auto;
  height: calc(552 * var(--u));
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.zb-track-card-item-vertical {
  width: calc(310 * var(--u));
}

.zb-video-wrapper {
  position: relative;
  width: auto;
  height: calc(514 * var(--u));
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: calc(16 * var(--u));
  box-shadow: 
    0 calc(40 * var(--u)) calc(100 * var(--u)) rgba(0, 0, 0, 0.12),
    0 calc(20 * var(--u)) calc(40 * var(--u)) rgba(0, 0, 0, 0.08);
}

.zb-track-card-item-vertical .zb-video-wrapper {
  width: calc(242 * var(--u));
}

.zb-video-main {
  position: relative;
  width: auto;
  height: 100%;
  object-fit: contain;
  border-radius: calc(16 * var(--u));
  background: transparent;
  z-index: 1;
}

.zb-video-placeholder {
  font-family: 'League Gothic', sans-serif;
  font-size: calc(120 * var(--u));
  color: #1D1D1F;
  text-transform: uppercase;
  letter-spacing: calc(4 * var(--u));
  z-index: 2;
  text-align: center;
}

.zb-video-caption {
  position: absolute;
  top: 100%;
  margin-top: calc(20 * var(--u));
  left: 50%;
  transform: translateX(-50%);
  font-size: calc(16 * var(--u));
  color: #1D1D1F;
  white-space: normal;
  text-align: center;
  line-height: 1.5;
  width: 100%;
}
/* ADMIN CONSOLE SECTION */
.zb-admin-quotes {
  pointer-events: none;
}
.zb-admin-section {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}
.zb-admin-title {
  font-family: 'League Gothic', sans-serif;
  font-size: 24vw;
  font-weight: 400;
  color: var(--zb-text);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.zb-admin-floating-el {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}
.zb-admin-floating-el .zb-svg-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating Elements Positioning */
.zb-admin-retain-version {
  top: 15%;
  left: 10%;
  width: 35vw;
}
.zb-admin-checkbox-group {
  top: 12%;
  right: 8%;
  width: 25vw;
}
.zb-admin-top-files {
  bottom: 12%;
  left: 10%;
  width: 28vw;
}
.zb-admin-allow-specific {
  bottom: 15%;
  right: 5%;
  width: 38vw;
}

/* Admin Track Specific */
.zb-admin-track-container {
  /* Inherits from .zb-video-track-container */
}
.zb-admin-track {
  /* Inherits from .zb-video-track */
}

/* SNAP SECTION */
.zb-snap-quotes {
  pointer-events: none;
}
.zb-snap-section {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}
.zb-snap-title {
  font-family: 'League Gothic', sans-serif;
  font-size: 38vw;
  font-weight: 400;
  color: var(--zb-text);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.zb-snap-floating-el {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}
.zb-snap-floating-el .zb-svg-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating Elements Positioning */
.zb-snap-start {
  top: 22%;
  left: 18%;
  width: 25vw;
}
.zb-snap-record {
  top: 22%;
  right: 18%;
  width: 10vw;
}
.zb-snap-recording-menu {
  bottom: 28%;
  left: 10%;
  width: 15vw;
}
.zb-snap-stop {
  bottom: 22%;
  right: 18%;
  width: 28vw;
}

/* Snap Track Specific */
.zb-snap-track-container {
  /* Inherits from .zb-video-track-container */
}
.zb-snap-track {
  /* Inherits from .zb-video-track */
}

/* --- WATERMARK SECTION --- */
.zb-watermark-quotes {
  /* Inherits from .zb-quotes-container */
}

.zb-watermark-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  border-radius: inherit;
}

.zb-watermark-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-15deg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
}

.zb-watermark-pattern {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: rgba(220, 222, 225, 0.6);
  line-height: 1.5;
  width: 100%;
  text-align: center;
  word-wrap: break-word;
}

.zb-watermark-title {
  font-family: 'League Gothic', sans-serif;
  font-size: 24vw;
  font-weight: 400;
  color: var(--zb-text);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
}

/* Watermark Track Specific */
.zb-watermark-track-container {
  /* Inherits from .zb-video-track-container */
}
.zb-watermark-track {
  /* Inherits from .zb-video-track */
}

/* --- INFO PANEL SECTION --- */
.zb-infopanel-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}

.zb-infopanel-title {
  font-family: 'League Gothic', sans-serif;
  font-size: 20vw;
  line-height: 0.8;
  color: #000;
  margin: 0;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 2vw;
}

.zb-infopanel-image {
  height: 35vw;
  object-fit: contain;
}

/* ==========================================================================
   Showreel Video Cards & Playbar (Apple TV Style)
   ========================================================================== */

.zb-feature-showreel-card {
  position: relative;
  width: calc(990 * var(--u));
  height: calc(552 * var(--u));
  margin-right: calc(500 * var(--u));
  flex-shrink: 0;
  border-radius: 32px;
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.zb-feature-showreel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

/* Apple TV style hover playbar */
.zb-playbar {  box-sizing: border-box;

  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 20px);
  width: calc(100% - 64px);
  height: 64px;
  background: rgba(15, 15, 15, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 20px;
  border-radius: 32px;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.zb-feature-showreel-card:hover .zb-playbar,
.zb-playbar:hover {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Play/Pause & Mute Buttons */
.zb-playbar-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  padding: 0;
  outline: none;
  color: #ffffff;
}

.zb-playbar-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

.zb-playbar-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Progress Track */
.zb-progress-track {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.zb-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #ffffff;
  width: 0%;
  border-radius: 3px;
  transition: width 0.1s linear;
}


/* CUSTOM FOLDER SECTION */
.zb-customfolder-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
}

.zb-customfolder-title {
  font-family: 'League Gothic', sans-serif;
  font-size: 24vw;
  line-height: 0.8;
  font-weight: 400;
  color: #1D1D1F;
  text-transform: uppercase;
  line-height: 0.9;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  white-space: nowrap;
}


.zb-customfolder-floating-el img {
  width: 100%;
  height: auto;
  display: block;
}

.zb-customfolder-floating-el {
  position: absolute;
  z-index: 2;
  will-change: transform;
  transform: translateZ(0); /* Hardware acceleration */
}

.zb-cf-customized {
  width: calc(720 * var(--u));
  top: 25%;
  left: 6%;
}

.zb-cf-restrict-access {
  position: absolute;
  top: auto;
  bottom: 28%;
  left: auto;
  right: 12%;
  width: calc(100 * var(--u));
  z-index: 10;
  opacity: 0;
}

.zb-cf-new-button {
  width: calc(100 * var(--u));
  bottom: 25%;
  top: auto;
  left: 12%;
}

.zb-cf-customized-folder {
  width: calc(360 * var(--u));
  bottom: 25%;
  top: auto;
  right: 15%;
  left: auto;
}



/* Hide native video controls */
video::-webkit-media-controls {
  display: none !important;
}


.zb-float-img {
  position: absolute;
  z-index: 2;
  will-change: transform;
}
.zb-float-img img {
  width: 100%;
  height: auto;
  display: block;
}

.zb-hero-showreel-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}
.zb-hero-showreel-container .zb-feature-showreel-card {
  margin-right: 0;
  width: calc(1200 * var(--u));
  height: auto;
  transform: scale(1);
  overflow: hidden;
  background-color: transparent;
  box-shadow: none;
}
.zb-hero-showreel-container .zb-feature-showreel-video {
  transform: scale(1);
  object-fit: contain;
  width: 100%;
  height: auto;
}
.zb-hero-showreel-container .zb-feature-showreel-card {
  margin-right: 0;
  width: calc(1200 * var(--u));
  height: auto;
  transform: scale(1);
  overflow: hidden;
  background-color: transparent;
  box-shadow: none;
}
