/* ═══════════════════════════════════════════════════════════
   Victorious Industries — navy & gold, thread-led scroll site
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy-950: #0e1633;
  --navy-900: #16204a;
  --navy-800: #1e2a5e;   /* logo background navy */
  --navy-700: #27356f;
  --gold: #f0b23e;
  --gold-deep: #d9992a;
  --ivory: #f7f3ea;
  --ivory-dim: #efe9db;
  --ink: #14203f;
  --ink-soft: #46507a;
  --rail-w: 3px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .footer-band, .scene-index {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h3 { font-size: clamp(2.2rem, 5vw, 3.8rem); }

img { max-width: 100%; display: block; }
a { color: inherit; }

.gold { color: var(--gold); }
.gold-italic { font-style: italic; color: var(--gold); }

/* film-grain over everything, very faint */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .marquee-inner { animation: none !important; }
  .cue-line::after { animation: none !important; }
  .hero-photo { animation: none !important; }
}

/* ─── Thread rail ─── */
.thread-rail {
  position: fixed;
  top: 0; left: clamp(14px, 3vw, 38px);
  height: 100vh;
  width: var(--rail-w);
  z-index: 60;
  pointer-events: none;
}
.thread-track {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(240, 178, 62, 0.25) 0 8px,
    transparent 8px 16px
  );
}
.thread-fill {
  position: absolute; top: 0; left: 0; right: 0;
  height: 0%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(240, 178, 62, 0.55);
}
.thread-needle {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -10%);
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(240, 178, 62, 0.6));
}
@media (max-width: 720px) {
  .thread-rail { left: 8px; }
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 clamp(1.2rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 5.5rem);
  z-index: 50;
  transition: background 0.4s, box-shadow 0.4s;
}
.site-header.scrolled {
  background: rgba(14, 22, 51, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(240, 178, 62, 0.2);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { width: 40px; height: 40px; border-radius: 8px; }
.brand-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  line-height: 1.35;
}
.brand-name em { font-style: normal; color: var(--gold); font-weight: 500; }
.site-nav { display: flex; gap: 1.8rem; }
.site-nav a {
  color: rgba(247, 243, 234, 0.75);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.site-nav a:hover { color: var(--gold); }
.btn-enquire {
  background: var(--gold);
  color: var(--navy-950);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease-out), background 0.25s;
}
.btn-enquire:hover { background: var(--ivory); transform: translateY(-2px); }
@media (max-width: 960px) {
  .site-nav { display: none; }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) clamp(3rem, 8vw, 7rem) 6rem;
  background: var(--navy-950);
  color: var(--ivory);
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: -4%;
  background: url("images/floor-aisle.jpg") center 30% / cover no-repeat;
  opacity: 0.35;
  z-index: 0;
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1); }
  to   { transform: scale(1.08) translateY(-1.5%); }
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(14, 22, 51, 0.94) 30%, rgba(14, 22, 51, 0.55) 70%, rgba(14, 22, 51, 0.8)),
    radial-gradient(ellipse 60% 50% at 20% 95%, rgba(240, 178, 62, 0.12), transparent 60%);
  z-index: 1;
}
.hero-inner { position: relative; z-index: 3; max-width: 900px; }
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
}
.hero-title {
  font-size: clamp(3rem, 9vw, 7.2rem);
  font-weight: 450;
  text-shadow: 0 2px 30px rgba(14, 22, 51, 0.6);
}
.hero-title .line { display: block; }
.hero-sub {
  margin-top: 2.2rem;
  max-width: 460px;
  color: rgba(247, 243, 234, 0.8);
  font-size: 1.02rem;
}
.hero-logo {
  position: absolute;
  right: clamp(2rem, 8vw, 8rem);
  bottom: clamp(2rem, 10vh, 6rem);
  width: clamp(110px, 15vw, 200px);
  z-index: 2;
}
.hero-logo img {
  border-radius: 24px;
  border: 1px solid rgba(240, 178, 62, 0.45);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.55);
  transform: rotate(3deg);
}
.scroll-cue {
  position: absolute;
  left: clamp(3rem, 8vw, 7rem);
  bottom: 2.4rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(247, 243, 234, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.cue-line {
  position: relative;
  width: 70px; height: 1px;
  background: rgba(240, 178, 62, 0.3);
  overflow: hidden;
}
.cue-line::after {
  content: "";
  position: absolute; top: 0; left: -30%;
  width: 30%; height: 100%;
  background: var(--gold);
  animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue {
  to { left: 100%; }
}
@media (max-width: 720px) {
  .hero-logo { display: none; }
}

/* ─── Marquee ─── */
.marquee {
  background: var(--gold);
  color: var(--navy-950);
  overflow: hidden;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(14,22,51,0.15);
}
.marquee-inner {
  display: flex;
  white-space: nowrap;
  animation: marquee 46s linear infinite;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
@keyframes marquee {
  to { transform: translateX(-33.333%); }
}

/* ─── Stitched photo frames (shared) ─── */
.scene-media, .location-photo, .about-panel, .product-preview {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(14, 22, 51, 0.5);
}
.scene-media::after, .location-photo::after, .about-panel::after, .product-preview::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(240, 178, 62, 0.55);
  border-radius: 12px;
  pointer-events: none;
  z-index: 3;
}

/* ─── Journey ─── */
.journey {
  background: var(--ivory);
}
.journey-intro {
  padding: clamp(5rem, 12vh, 9rem) clamp(3rem, 8vw, 7rem) clamp(3rem, 6vh, 5rem);
  max-width: 1000px;
}
.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.section-eyebrow.light { color: var(--gold); }
.section-sub {
  margin-top: 1.4rem;
  max-width: 560px;
  color: var(--ink-soft);
}

.scene {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 8vh, 6rem) clamp(3rem, 8vw, 7rem);
  min-height: 92vh;
}
.scene.alt { direction: rtl; }
.scene.alt > * { direction: ltr; }

.scene-media { aspect-ratio: 4 / 3.2; }
.scene-media img.scene-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.scene-media:hover img.scene-photo { transform: scale(1.05); }
.photo-slot {
  position: absolute; inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.4rem;
  background:
    repeating-linear-gradient(115deg, rgba(240,178,62,0.10) 0 3px, transparent 3px 26px),
    linear-gradient(135deg, var(--navy-800), var(--navy-950) 75%);
}
.slot-tag {
  background: rgba(14, 22, 51, 0.65);
  color: var(--ivory);
  border: 1px dashed rgba(240, 178, 62, 0.7);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}
.media-cutting .photo-slot {
  background:
    repeating-linear-gradient(0deg, rgba(240,178,62,0.09) 0 2px, transparent 2px 44px),
    repeating-linear-gradient(90deg, rgba(247,243,234,0.05) 0 2px, transparent 2px 44px),
    linear-gradient(160deg, var(--navy-700), var(--navy-950) 80%);
}
.scene-index {
  position: absolute;
  top: 0.2rem;
  right: 1.6rem;
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-style: italic;
  color: var(--gold);
  opacity: 0.85;
  text-shadow: 0 2px 24px rgba(14, 22, 51, 0.8);
  pointer-events: none;
  z-index: 4;
}

.scene-step {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 1rem;
}
.scene-copy p { color: var(--ink-soft); max-width: 460px; margin-top: 1.2rem; }
.scene-facts {
  list-style: none;
  margin-top: 1.6rem;
  display: grid;
  gap: 0.55rem;
}
.scene-facts li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.scene-facts li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 0.85rem; height: 2px;
  background: var(--gold);
}
.text-link {
  display: inline-block;
  margin-top: 1.6rem;
  color: var(--navy-800);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.25s;
}
.text-link:hover { color: var(--gold-deep); }

@media (max-width: 860px) {
  .scene, .scene.alt {
    grid-template-columns: 1fr;
    direction: ltr;
    min-height: 0;
    padding: 3rem clamp(1.6rem, 6vw, 3rem);
  }
}

/* ─── Numbers ─── */
.numbers {
  background: var(--navy-950);
  color: var(--ivory);
  padding: clamp(5rem, 12vh, 8rem) clamp(3rem, 8vw, 7rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.numbers::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 120%, rgba(240, 178, 62, 0.12), transparent 65%);
}
.numbers-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
.num-value {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.num-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.6);
}

/* ─── Products ─── */
.products {
  padding: clamp(5rem, 12vh, 9rem) clamp(3rem, 8vw, 7rem);
  background: var(--ivory);
}
.products-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.62fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: 3rem;
}
.product-list {
  list-style: none;
  border-top: 1px solid rgba(20, 32, 63, 0.15);
}
.product-preview {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  aspect-ratio: 3 / 4;
  background: var(--navy-950);
  margin: 0;
}
.product-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.55s ease, transform 1.3s var(--ease-out);
}
.product-preview img.active {
  opacity: 1;
  transform: scale(1);
}
.p-thumb { display: none; }
@media (max-width: 860px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-preview { display: none; }
  .p-thumb {
    display: block;
    grid-row: 1 / 3;
    grid-column: 3;
    width: 62px;
    height: 78px;
    object-fit: cover;
    border-radius: 10px;
    align-self: center;
    box-shadow: 0 8px 20px -8px rgba(14, 22, 51, 0.4);
  }
}
.product-row {
  position: relative;
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.6rem 0.5rem 1.9rem;
  border-bottom: 1px solid rgba(20, 32, 63, 0.15);
  transition: background 0.3s, padding-left 0.3s;
}
.product-row:hover {
  background: rgba(240, 178, 62, 0.08);
  padding-left: 1.2rem;
}
.p-index {
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--gold-deep);
  font-size: 1.1rem;
}
.p-name {
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 500;
}
.p-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.p-bar {
  position: absolute;
  left: 0.5rem; bottom: 0.85rem;
  height: 3px;
  width: 0;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 16px);
  transition: width 1.4s var(--ease-out) 0.3s;
}
.product-row.in .p-bar { width: calc(var(--w, 30%) * 0.55); }
@media (max-width: 860px) {
  .product-row { grid-template-columns: 2.6rem 1fr 62px; row-gap: 0.2rem; }
  .p-name { grid-column: 2; }
  .p-note { grid-column: 2; text-align: left; }
}

/* ─── Location ─── */
.location {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(5rem, 12vh, 9rem) clamp(3rem, 8vw, 7rem);
  background: var(--navy-900);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.location::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 85% 15%, rgba(240, 178, 62, 0.1), transparent 60%);
}
.location-copy { position: relative; }
.location-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 450;
}
.location-sub {
  margin-top: 1.4rem;
  max-width: 460px;
  color: rgba(247, 243, 234, 0.72);
}
.location-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.loc-block h4 {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.loc-block p { color: rgba(247, 243, 234, 0.85); font-size: 0.95rem; }
.sourcing-line {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px dashed rgba(240, 178, 62, 0.35);
  color: rgba(247, 243, 234, 0.7);
  font-size: 0.92rem;
}
.sourcing-line strong { color: var(--gold); font-weight: 600; }
.location-photo { margin: 0; }
.location-photo img { width: 100%; }
.location-photo figcaption {
  position: absolute;
  left: 1.4rem; bottom: 1.2rem;
  z-index: 4;
  background: rgba(14, 22, 51, 0.7);
  color: var(--ivory);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
@media (max-width: 860px) {
  .location { grid-template-columns: 1fr; }
}

/* ─── About ─── */
.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(5rem, 12vh, 9rem) clamp(3rem, 8vw, 7rem);
  background: var(--ivory-dim);
}
.about-copy p { color: var(--ink-soft); max-width: 540px; margin-top: 1.3rem; }
.about-copy strong { color: var(--ink); }
.about-panel { margin: 0; }
.about-panel img { width: 100%; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
}

/* ─── Contact / footer ─── */
.contact {
  background: var(--navy-950);
  color: var(--ivory);
  padding: clamp(5rem, 12vh, 9rem) clamp(3rem, 8vw, 7rem) 0;
  overflow: hidden;
  position: relative;
}
.contact::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(39, 53, 111, 0.6), transparent 70%);
}
.contact > * { position: relative; }
.contact-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 450;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(240, 178, 62, 0.25);
}
.c-block h4 {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.c-block p { margin-bottom: 0.3rem; }
.c-block a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgba(240,178,62,0.4); }
.c-block a:hover { color: var(--gold); }
.footer-band {
  font-size: clamp(2.5rem, 11.5vw, 14rem);
  text-align: center;
  white-space: nowrap;
  color: rgba(240, 178, 62, 0.12);
  letter-spacing: 0.02em;
  line-height: 0.8;
  margin: 4rem calc(-1 * clamp(3rem, 8vw, 7rem)) 0;
  transform: translateY(0.18em);
  user-select: none;
}
.footer-legal {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(247, 243, 234, 0.4);
  padding: 1.2rem 0 1.6rem;
  border-top: 1px solid rgba(240, 178, 62, 0.15);
}
