/* ============================================================
   SSS — Signature Sandwich by Siddharth
   Kinetic Design System
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --clr-bg:          #0a0a0a;
  --clr-surface:     #111111;
  --clr-surface-alt: #161616;
  --clr-border:      #1f1f1f;
  --clr-text:        #e8e6e3;
  --clr-text-muted:  #ffffff;
  --clr-accent:      #c8a45a;
  --clr-accent-dim:  rgba(200, 164, 90, 0.12);
  --clr-overlay:     rgba(0, 0, 0, 0.6);
  --clr-overlay-heavy: rgba(0, 0, 0, 0.75);
  --clr-marquee:     #B22222;

  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --font-serif:   'Playfair Display', serif;

  --sp-xs:  0.25rem;
  --sp-sm:  0.5rem;
  --sp-md:  1rem;
  --sp-lg:  2rem;
  --sp-xl:  4rem;
  --sp-2xl: 8rem;

  --max-width: 72rem;
  --radius:    0.375rem;
  --radius-lg: 0.75rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

body::-webkit-scrollbar {
  display: none;
}

img, video { display: block; max-width: 100%; }
a { color: var(--clr-accent); text-decoration: none; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-sm);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--clr-text);
  margin-bottom: var(--sp-md);
}

/* ============================================================
   HERO — with Clockwork Sandwich
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 36rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--clr-overlay);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--sp-lg);
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-accent);
  border: 1px solid var(--clr-accent);
  padding: var(--sp-xs) var(--sp-md);
  border-radius: var(--radius);
  margin-bottom: var(--sp-lg);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-md);
}

.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(2.5rem);
  color: #ffffff;
}

.hero__word--accent { color: var(--clr-accent); }

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--clr-text-muted);
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: var(--sp-lg);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent);
  cursor: pointer;
  transition: gap 0.3s ease;
}

.hero__cta:hover { gap: var(--sp-md); }

.hero__cta-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.hero__cta:hover .hero__cta-arrow { transform: translateY(4px); }



/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--sp-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hero__scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--clr-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50%      { opacity: 1;   transform: scaleY(1);   }
}

/* ============================================================
   KINETIC ELEMENTS
   ============================================================ */
.kinetic {
  padding: var(--sp-2xl) 0;
  background: var(--clr-bg);
  overflow: hidden;
  position: relative;
}

.kinetic__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: center;
  gap: var(--sp-xl);
}

.kinetic__text {
  position: relative;
  z-index: 2;
}

.kinetic__clockwork {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  will-change: transform;
}

.kinetic__clockwork-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2rem 4rem rgba(200, 164, 90, 0.2));
}

/* ============================================================
   SHOWCASE — Plated Sandwich + Info
   ============================================================ */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
  padding: var(--sp-2xl) 0;
}

.showcase__plate-wrap {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  will-change: transform;
}

.showcase__plate {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2rem 4rem rgba(0, 0, 0, 0.4));
  transition: transform 0.5s ease;
}

.showcase__plate-wrap:hover .showcase__plate {
  transform: scale(1.03) rotate(-2deg);
}

.showcase__info {
  max-width: 28rem;
}

.showcase__desc {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--clr-text-muted);
  margin-top: var(--sp-md);
}

/* ============================================================
   THE ARSENAL (Ingredients Grid)
   ============================================================ */
.arsenal {
  padding: 0 0 var(--sp-2xl);
  background: var(--clr-surface);
}

.arsenal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.arsenal__image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arsenal__image {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2rem 4rem rgba(0, 0, 0, 0.4));
  transition: transform 0.6s ease;
}

.arsenal__image-wrap:hover .arsenal__image { transform: scale(1.04); }

.arsenal__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm) var(--sp-lg);
  margin-top: var(--sp-lg);
}

.arsenal__item {
  display: flex;
  align-items: baseline;
  gap: var(--sp-sm);
  font-size: 1.125rem;
  color: var(--clr-text);
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--clr-border);
}

.arsenal__item-qty {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-accent);
  white-space: nowrap;
  min-width: 2rem;
}

/* ============================================================
   PRESENTATION SLIDES
   ============================================================ */
.presentation-slide {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  background: var(--clr-bg);
}

.presentation-slide.bg-surface {
  background: var(--clr-surface);
}

.split-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}

@media (min-width: 64rem) {
  .split-layout {
    flex-direction: row;
    height: 100vh;
  }
}

.split-layout--reverse {
  flex-direction: column-reverse;
}

@media (min-width: 64rem) {
  .split-layout--reverse {
    flex-direction: row-reverse;
  }
}

.split-layout__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-2xl) var(--sp-xl);
  max-width: 48rem;
  z-index: 2;
}

@media (min-width: 64rem) {
  .split-layout__text {
    padding: var(--sp-2xl) 10%;
  }
}

.split-layout__media {
  flex: 1;
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 64rem) {
  .split-layout__media {
    height: 100%;
  }
}

.center-media { background: transparent; }

.split-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--clr-bg) 0%, transparent 50%);
}

@media (min-width: 64rem) {
  .split-overlay {
    background: linear-gradient(to right, var(--clr-bg) 0%, transparent 30%);
  }
  .split-layout--reverse .split-overlay {
    background: linear-gradient(to left, var(--clr-surface) 0%, transparent 30%);
  }
}

.step-card {
  margin-top: var(--sp-lg);
}

.step__number {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-sm);
}

.step__name {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--sp-sm);
  transition: color 0.4s ease;
}

.step__desc {
  font-size: 1.125rem;
  color: var(--clr-text-muted);
  max-width: 28rem;
  line-height: 1.7;
}

/* ============================================================
   MACROS (System Specs)
   ============================================================ */
.macros {
  padding: var(--sp-xl) 0 0;
  background: var(--clr-surface-alt);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.macros__header {
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.macros__grid {
  align-items: flex-start;
  margin-top: var(--sp-xl);
}

.macros__subtitle {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: var(--sp-lg);
}

.macros__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.macros__item {
  display: flex;
  align-items: baseline;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-sm);
  border-bottom: 1px solid var(--clr-border);
}

.macros__stat {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--clr-accent);
  min-width: 5.5rem;
}

.macros__label {
  font-size: 1rem;
  color: var(--clr-text);
  font-weight: 500;
}

.macros__note {
  font-size: 1rem;
  color: var(--clr-text-muted);
  font-weight: 400;
  margin-left: 0.5rem;
}

.macros__breakdown-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.macros__item-small {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--clr-border);
}

.macros__item-text {
  font-size: 1.125rem;
  color: var(--clr-text);
}

.macros__tertiary {
  color: var(--clr-text-muted);
  font-size: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: var(--sp-xl) 0;
  border-top: 1px solid var(--clr-border);
  text-align: center;
}

.footer__text {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.footer__text span { color: var(--clr-accent); }

.footer__credit {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  opacity: 0.5;
  margin-top: var(--sp-sm);
}

/* ============================================================
   PRE-LOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--clr-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}

.loader__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  color: var(--clr-text);
}

.loader__progress-bar {
  width: 14rem;
  height: 1px;
  background: var(--clr-surface-alt);
  position: relative;
  overflow: hidden;
}

.loader__progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--clr-accent);
  transition: width 0.3s ease;
}

.loader__status {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 64rem) {
  .arsenal__grid,
  .showcase,
  .kinetic__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .arsenal__image-wrap { aspect-ratio: 16 / 9; }
  .showcase__plate-wrap { max-width: 20rem; }

  /* Mobile tweaks for Split Presentation Layout */
  .split-layout__text {
    padding: var(--sp-lg);
  }
  
  .macros {
    height: auto;
    min-height: 100vh;
    overflow-y: auto; /* permit scrolling if table is tall on tablets/phones */
  }
  .macros__grid {
    gap: var(--sp-md);
  }
}

@media (max-width: 40rem) {
  .hero__badge { font-size: 0.5625rem; }
  .arsenal__list { grid-template-columns: 1fr; }
  .step { min-height: 16rem; }
  .step__content { padding: var(--sp-lg) var(--sp-md); }

  /* Tighter padding on very small phones */
  .split-layout__text {
    padding: var(--sp-md);
    flex: 1.2; /* slightly more room for text */
  }
  .split-layout__media {
    height: 40vh; /* slightly less room for media */
  }
  .macros__item { flex-direction: column; gap: var(--sp-xs); align-items: flex-start; }
  .macros__item-small { flex-direction: column; }
}
