/* ==========================================================================
   Kohinoor Wire & Steel Industries — Design Tokens
   Palette & type drawn from the company's investment decks: deep navy/black
   with gold accents (logo, formal proposals) and warm cream (pitch deck).
   Motion language adapted from a companion site's hand-built animation system.
   ========================================================================== */

:root {
  --navy-950: #060c15;
  --navy-900: #0b1420;
  --navy-800: #12202f;
  --navy-700: #1c3049;
  --navy-line: rgba(92, 126, 163, 0.35);

  --gold-300: #e6d19a;
  --gold-400: #d9bc72;
  --gold-500: #c9a24b;
  --gold-600: #a97f2f;

  --cream-50: #faf7f0;
  --cream-100: #f4eee0;
  --cream-200: #ece1c8;

  --brown-900: #241b12;
  --brown-700: #4a3a26;
  --brown-500: #6b5a41;

  --white: #ffffff;
  --steel: #5c7ea3;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-w: 1180px;
  --radius: 14px;

  /* Motion tokens */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-sweep: cubic-bezier(0.7, 0, 0.2, 1);
  --ease: var(--ease-out);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html { scroll-behavior: smooth; }
html.no-splash #pageLoader { display: none; }
html.reduced-motion * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  color: var(--brown-900);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

p { text-align: justify; text-align-last: left; hyphens: auto; }
.eyebrow, .btn, .nav-cta, label, .leader-role, .product-flag, .stat-label, .why-unit, .flip-hint,
.contact-list span, .about-facts span, .vm-tag, .pillars-nav li { text-align: left; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }

.gold-text { color: var(--gold-500); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow-gold { color: var(--gold-400); }

.section { padding: 108px 0; position: relative; }
.section:not(.pillars-section) { overflow: hidden; }
.section-cream { background: var(--cream-50); }
.section-navy {
  background: linear-gradient(180deg, var(--navy-950), var(--navy-900) 55%, var(--navy-950));
  color: var(--cream-100);
}
.on-dark { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 56px; position: relative; z-index: 2; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }

/* Section-title underline sweep, chained off the parent .reveal.in-view */
.sec-sweep { position: relative; display: inline-block; padding-bottom: 8px; }
.sec-sweep::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease-sweep) 0.25s;
}
.reveal.in-view .sec-sweep::after { transform: scaleX(1); }
.sec-sweep-gold::after { background: linear-gradient(90deg, var(--gold-400), var(--gold-300)); }

/* Section watermark: giant faint numeral behind section content */
.section-watermark {
  position: absolute;
  top: -0.3em; right: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(90px, 16vw, 220px);
  font-weight: 700;
  color: rgba(74, 58, 38, 0.05);
  z-index: 0;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}
.section-watermark.on-dark { color: rgba(244, 238, 224, 0.045); }

/* Section divider */
.section-divider { max-width: var(--container-w); margin: 0 auto; padding: 0 28px; opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.section-divider.in-view { opacity: 1; transform: none; }
.section-divider svg { width: 100%; height: 30px; }
.section-divider path { fill: none; stroke: var(--gold-500); stroke-opacity: 0.35; stroke-width: 1.5; }

/* ==========================================================================
   Reveal-on-scroll animation
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.08s);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-direction="left"] { transform: translateX(-28px); }
.reveal[data-direction="right"] { transform: translateX(28px); }

/* ==========================================================================
   Buttons + Magnetic
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color .25s;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  box-shadow: 0 10px 30px -12px rgba(201, 162, 75, 0.6);
}
.btn-gold:hover { box-shadow: 0 16px 34px -12px rgba(201, 162, 75, 0.75); }
.btn-ghost {
  background: transparent;
  color: var(--cream-100);
  border-color: rgba(244, 238, 224, 0.35);
}
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-300); }
.btn-block { width: 100%; }

.magnetic-inner { display: inline-block; transition: transform 0.3s var(--ease-out); will-change: transform; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 12, 21, 0.5);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(201, 162, 75, 0.15);
  transition: background 0.3s var(--ease-out), padding 0.3s var(--ease-out);
}
.site-header.scrolled { background: rgba(6, 12, 21, 0.86); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  transition: padding 0.3s var(--ease-out);
}
.site-header.scrolled .header-inner { padding: 9px 28px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { height: 46px; width: auto; aspect-ratio: 703 / 355; object-fit: contain; border-radius: 8px; transition: height .3s var(--ease-out); }
.site-header.scrolled .brand-mark { height: 38px; }
.brand-mark-sm { height: 38px; width: auto; aspect-ratio: 703 / 355; object-fit: contain; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); color: var(--gold-400); font-size: 1.05rem; letter-spacing: 0.04em; }
.brand-text em { font-style: normal; font-size: 0.68rem; color: rgba(244, 238, 224, 0.65); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-size: 0.9rem; font-weight: 600; color: rgba(244, 238, 224, 0.85); position: relative; padding: 4px 0; transition: color 0.2s; }
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--gold-400); transition: width 0.25s var(--ease-out);
}
.main-nav a:not(.nav-cta):hover { color: var(--gold-300); }
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.main-nav a.active-link { color: var(--gold-300); }
.main-nav a.active-link::after { width: 100%; }
.footer-nav a.active-link { color: var(--gold-400); }

.main-nav a.nav-cta { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-950) !important; padding: 11px 24px; border-radius: 999px; white-space: nowrap; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--gold-400); border-radius: 2px; }

/* ==========================================================================
   Page loader
   ========================================================================== */

.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(circle at 50% 40%, var(--navy-800), var(--navy-950) 75%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s var(--ease-out);
}
.page-loader.loader-done { opacity: 0; pointer-events: none; visibility: hidden; }

.loader-stage { position: relative; width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; }
.loader-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(201,162,75,0.35); }
.loader-ring-a { animation: pl-spin 7s linear infinite; }
.loader-ring-b { inset: 20px; border-style: dotted; border-color: rgba(244,238,224,0.28); animation: pl-spin-rev 5s linear infinite; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
@keyframes pl-spin-rev { to { transform: rotate(-360deg); } }

.loader-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 14px 3px rgba(201,162,75,0.7); top: 0; left: 50%; transform-origin: 4px 110px; animation: pl-orbit 4.5s cubic-bezier(.42,0,.58,1) infinite; }
@keyframes pl-orbit { to { transform: rotate(360deg); } }

.loader-scan {
  position: absolute; top: 10%; left: 0; width: 2px; height: 80%;
  background: linear-gradient(180deg, transparent, var(--gold-400) 50%, transparent);
  box-shadow: 0 0 14px rgba(201, 162, 75, 0.65); opacity: 0; pointer-events: none;
  animation: pl-scan 1.25s var(--ease-sweep) 0.05s forwards;
}
@keyframes pl-scan { 0% { left: 0%; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* Logo sits in a permanent circular medallion within the ring system.
   object-fit:contain keeps the full wide icon+wordmark visible (fit to
   width, letterboxed top/bottom) rather than object-fit:cover, which
   would crop the wordmark off a wide lockup inside a square/circle box.
   The container background matches the logo's own black so the letterbox
   bands blend seamlessly into one solid medallion disc. */
.loader-logo {
  position: relative; z-index: 2; width: 160px; height: 160px;
  border-radius: 50%; overflow: hidden; background: var(--navy-950);
  box-shadow: 0 0 0 1px rgba(201, 162, 75, 0.25), 0 14px 34px -14px rgba(0, 0, 0, 0.6);
  clip-path: circle(0% at 50% 50%); transform: scale(0.6) rotate(-8deg); opacity: 0;
  animation: pl-reveal 1.05s var(--ease-out) 0.2s forwards, pl-breath 3.4s ease-in-out 1.4s infinite;
}
.loader-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
@keyframes pl-reveal { to { clip-path: circle(70.8% at 50% 50%); transform: scale(1) rotate(0deg); opacity: 1; } }
@keyframes pl-breath { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(201,162,75,0)); } 50% { transform: scale(1.035); filter: drop-shadow(0 6px 18px rgba(201,162,75,0.4)); } }

.loader-bar { width: 180px; height: 2px; background: rgba(244,238,224,0.12); overflow: hidden; border-radius: 2px; }
.loader-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); transform: translateX(-100%); animation: pl-fill 1.6s var(--ease-out) forwards; }
@keyframes pl-fill { to { transform: translateX(0); } }

/* ==========================================================================
   Scroll progress + cursor glow + click pop
   ========================================================================== */

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9990; background: rgba(11,20,32,0.08); }
.scroll-progress span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold-600), var(--gold-300)); transition: width 0.12s linear; }

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 380px; height: 380px; margin: -190px 0 0 -190px;
  border-radius: 50%; pointer-events: none; z-index: 5;
  background: radial-gradient(circle, rgba(201,162,75,0.16), rgba(92,126,163,0.08) 45%, transparent 70%);
  filter: blur(30px);
  opacity: 0; transition: opacity 0.4s;
}
@media (hover: none) { .cursor-glow { display: none; } }

.grain-overlay {
  position: fixed; inset: -10%; z-index: 6; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
html.reduced-motion .grain-overlay { display: none; }

/* Hero scroll cue */
.scroll-cue {
  position: absolute; bottom: 116px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(244, 238, 224, 0.5); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.scroll-cue-chevron { width: 14px; height: 14px; border-right: 1.5px solid var(--gold-400); border-bottom: 1.5px solid var(--gold-400); transform: rotate(45deg); animation: scroll-cue-bounce 1.8s ease-in-out infinite; }
@keyframes scroll-cue-bounce { 0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; } 50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; } }
html.reduced-motion .scroll-cue-chevron { animation: none; }
@media (max-width: 720px) { .scroll-cue { display: none; } }

.click-pop {
  position: fixed; width: 120px; height: 120px; margin: -60px 0 0 -60px;
  border-radius: 50%; pointer-events: none; z-index: 9995;
  background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(201,162,75,0.5) 45%, transparent 70%);
  filter: blur(6px); mix-blend-mode: screen;
  animation: click-pop 0.7s var(--ease-out) forwards;
}
@keyframes click-pop { 0% { transform: scale(0.25); opacity: 0; } 18% { opacity: 1; } 100% { transform: scale(2.5); opacity: 0; } }

/* ==========================================================================
   Page hero (subpages) + breadcrumb
   ========================================================================== */

.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--navy-950), var(--navy-900) 65%, var(--navy-950));
  color: var(--cream-100);
  padding: 168px 0 76px;
}
.page-hero-inner { position: relative; z-index: 2; max-width: 760px; }
.page-hero .breadcrumb { font-size: 0.82rem; color: rgba(244, 238, 224, 0.5); margin-bottom: 16px; text-align: left; }
.page-hero .breadcrumb a { color: var(--gold-400); }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); color: var(--white); margin-bottom: 16px; }
.page-hero-lead { font-size: 1.08rem; color: rgba(244, 238, 224, 0.75); max-width: 640px; }

/* ==========================================================================
   Home page teasers
   ========================================================================== */

.teaser-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.teaser-grid.reverse { grid-template-columns: 0.9fr 1.1fr; }
.teaser-grid.reverse > *:first-child { order: 2; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold-600); margin-top: 8px; transition: gap 0.25s var(--ease-out), color 0.25s; }
.link-arrow:hover { gap: 14px; color: var(--gold-500); }
.on-dark.link-arrow, .section-navy .link-arrow { color: var(--gold-400); }
.section-navy .link-arrow:hover { color: var(--gold-300); }

.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.mini-card { background: rgba(18, 32, 47, 0.6); border: 1px solid rgba(92, 126, 163, 0.25); border-radius: var(--radius); padding: 24px 22px; transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out); }
.mini-card:hover { transform: translateY(-6px); border-color: var(--gold-500); }
.mini-card .product-icon { width: 48px; height: 48px; margin-bottom: 14px; }
.mini-card h4 { color: var(--white); font-size: 1.02rem; margin-bottom: 8px; }
.mini-card p { font-size: 0.85rem; color: rgba(244, 238, 224, 0.62); }

.cta-band { text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta-inner p:not(.eyebrow) { text-align: center; margin: 16px 0 30px; color: rgba(244, 238, 224, 0.72); }
.cta-inner .sec-sweep { margin: 0 auto; }
.cta-inner .sec-sweep::after { left: 50%; transform: translateX(-50%) scaleX(0); }
.cta-inner.reveal.in-view .sec-sweep::after { transform: translateX(-50%) scaleX(1); }

.section-cream .why-stat, .section-cream .why-ring { border-left-color: var(--gold-600); }
.section-cream .why-num, .section-cream .why-unit-inline { color: var(--gold-600); }
.section-cream .why-unit { color: var(--brown-500); }
.section-cream .why-stat p, .section-cream .why-ring p { color: var(--brown-500); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; background: var(--navy-950); color: var(--cream-100); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }

.wire-mesh { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }

.blueprint-grid {
  position: absolute; inset: -5%;
  background-image: linear-gradient(rgba(92, 126, 163, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(92, 126, 163, 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 30%, black 10%, transparent 72%);
}

.blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.blob-a { width: 460px; height: 460px; top: -120px; left: -80px; background: radial-gradient(circle, rgba(201,162,75,0.22), transparent 70%); animation: blob-drift-a 24s ease-in-out infinite alternate; }
.blob-b { width: 400px; height: 400px; bottom: -140px; right: -60px; background: radial-gradient(circle, rgba(92,126,163,0.22), transparent 70%); animation: blob-drift-b 20s ease-in-out infinite alternate; }
.blob-c { width: 300px; height: 300px; top: 30%; right: 20%; background: radial-gradient(circle, rgba(201,162,75,0.12), transparent 70%); animation: blob-drift-a 28s ease-in-out infinite alternate-reverse; }
.blob-d { width: 420px; height: 420px; top: -160px; right: -100px; background: radial-gradient(circle, rgba(201,162,75,0.14), transparent 70%); position: absolute; filter: blur(90px); animation: blob-drift-b 26s ease-in-out infinite alternate; z-index: 0; }
@keyframes blob-drift-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(40px,-30px,0) scale(1.08); } }
@keyframes blob-drift-b { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-30px,40px,0) scale(1.05); } }

.parallax-scope { --mx: 0; --my: 0; }
.parallax-layer { transform: translate3d(calc(var(--mx, 0) * 1px * var(--depth, 8)), calc(var(--my, 0) * 1px * var(--depth, 8)), 0); transition: transform 0.4s var(--ease-out); }

.hero-inner { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 40px; max-width: 780px; }

.hero h1, #heroTitle { font-size: clamp(1.15rem, 6.2vw, 4.4rem); color: var(--white); margin-bottom: 24px; white-space: nowrap; }
.split-char { display: inline-block; opacity: 0; transform: translateY(0.6em) rotate(6deg); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); transition-delay: calc(var(--ci, 0) * 0.025s + 0.15s); }
.split-char.gold { color: var(--gold-400); }
#heroTitle.in .split-char { opacity: 1; transform: none; }

.hero-lead { font-size: 1.15rem; color: rgba(244, 238, 224, 0.78); max-width: 620px; margin-bottom: 14px; }

.hero-ticker { font-size: 0.95rem; color: rgba(244, 238, 224, 0.55); margin-bottom: 30px; font-weight: 600; letter-spacing: 0.02em; }
.ticker-word { position: relative; display: inline-block; color: var(--gold-400); font-weight: 700; min-width: 150px; }
.ticker-word span { display: block; }
.ticker-word .tw-out { animation: tw-out 0.38s var(--ease-out) forwards; }
.ticker-word .tw-in { animation: tw-in 0.42s var(--ease-out) forwards; }
@keyframes tw-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes tw-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; }

.fact-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(244,238,224,0.06); border: 1px solid rgba(201,162,75,0.25); font-size: 0.82rem; color: rgba(244,238,224,0.75); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 0 rgba(201,162,75,0.5); animation: pulse-dot 2.2s ease-out infinite; flex: 0 0 auto; }
@keyframes pulse-dot { to { box-shadow: 0 0 0 10px rgba(201,162,75,0); } }

.stat-strip { position: relative; z-index: 2; border-top: 1px solid rgba(201, 162, 75, 0.2); background: rgba(11, 20, 32, 0.55); backdrop-filter: blur(6px); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 28px; gap: 20px; }
.stat { text-align: center; }
.stat-num, .stat-suffix { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold-400); }
.stat-label { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(244, 238, 224, 0.6); margin-top: 4px; }

/* ==========================================================================
   About
   ========================================================================== */

.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; margin-bottom: 72px; position: relative; z-index: 2; }
.about-copy p { margin-bottom: 18px; color: var(--brown-700); max-width: 60ch; }
.about-facts { margin-top: 30px; display: grid; gap: 16px; border-top: 1px solid rgba(74, 58, 38, 0.15); padding-top: 24px; }
.about-facts div { font-size: 0.95rem; color: var(--brown-900); }
.about-facts span { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 3px; font-weight: 700; }

.vm-cards { display: flex; flex-direction: column; gap: 22px; }
.vm-card { background: var(--navy-900); color: var(--cream-100); border-radius: var(--radius); padding: 32px; position: relative; overflow: hidden; perspective: 900px; transform: perspective(900px) rotateX(var(--tx,0deg)) rotateY(var(--ty,0deg)); transition: transform 0.4s var(--ease-out); }
.vm-card::before { content: ""; position: absolute; top: -30%; right: -30%; width: 60%; height: 60%; background: radial-gradient(circle, rgba(201,162,75,0.18), transparent 70%); }
.vm-card-alt { background: var(--navy-800); }
.vm-tag { display: inline-block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--gold-400); margin-bottom: 14px; position: relative; z-index: 1; }
.vm-card p { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; line-height: 1.55; position: relative; z-index: 1; }

.card-shine { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.card-shine::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -100%; width: 60%; transform: skewX(-20deg); background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.28) 50%, transparent 60%); transition: left 0.8s var(--ease-out); }
.vm-card:hover .card-shine::before, .leader-card:hover .card-shine::before { left: 140%; }

/* Cursor-following spotlight glow inside cards — hosted on the .card-shine
   span's ::after (not the card's own pseudo-elements, which show-card/vm-card
   already use for other effects). */
.spotlight { position: relative; }
.spotlight .card-shine::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity 0.4s var(--ease-out);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 162, 75, 0.14), rgba(92, 126, 163, 0.06) 40%, transparent 65%);
}
.spotlight:hover .card-shine::after { opacity: 1; }
.section-navy .spotlight .card-shine::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 162, 75, 0.16), transparent 65%); }

.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; z-index: 2; }

.flip-card { perspective: 1200px; height: 168px; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.8s var(--ease-sweep); }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius); padding: 24px 20px; display: flex; flex-direction: column; justify-content: center; }
.flip-card-front { background: var(--white); border: 1px solid rgba(74, 58, 38, 0.12); }
.flip-card-front h4 { font-size: 1.05rem; color: var(--brown-900); margin-bottom: 8px; }
.flip-hint { font-size: 0.75rem; color: var(--gold-600); font-weight: 600; }
.flip-card-back { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--cream-100); transform: rotateY(180deg); }
.flip-card-back p { font-size: 0.9rem; line-height: 1.5; }

/* ==========================================================================
   Pinned pillars storyboard (Products)
   ========================================================================== */

.pillars-section { padding-top: 24px; padding-bottom: 60px; }

.pillars-wrap { position: relative; height: calc(var(--n, 4) * 100vh); }
.pillars-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.pillars-inner { display: grid; grid-template-columns: 260px 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }

.pillars-nav { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pillars-nav li { display: flex; align-items: baseline; gap: 12px; opacity: 0.4; border-left: 2px solid transparent; padding: 12px 0 12px 18px; font-weight: 700; font-size: 1.02rem; color: var(--cream-100); transition: opacity 0.4s var(--ease-out), border-color 0.4s var(--ease-out); cursor: default; }
.pillars-nav li.active { opacity: 1; border-color: var(--gold-500); }
.pillars-nav-num { font-family: var(--font-display); color: var(--gold-500); font-size: 0.85rem; }

.pillars-stage { position: relative; min-height: 380px; }
.pillar-panel { position: absolute; inset: 0; opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); pointer-events: none; }
.pillar-panel.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.pillar-panel .product-icon { width: 72px; height: 72px; margin-bottom: 20px; }
.product-icon svg { width: 100%; height: 100%; display: block; }
.pillar-panel h3 { color: var(--white); font-size: 2rem; margin-bottom: 16px; }
.pillar-panel p { font-size: 1.05rem; color: rgba(244, 238, 224, 0.7); max-width: 46ch; }

.product-flag { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-400); border: 1px solid rgba(201, 162, 75, 0.4); border-radius: 999px; padding: 4px 10px; margin-bottom: 14px; }

.pillars-progress { display: flex; gap: 8px; margin-top: 36px; position: relative; z-index: 2; }
.segment { flex: 1; height: 3px; background: rgba(244,238,224,0.14); position: relative; overflow: hidden; border-radius: 2px; }
.segment::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); transform-origin: left; transform: scaleX(0); transition: transform 0.25s linear; }
.segment.filled::after { transform: scaleX(1); transition: transform 0.4s var(--ease-out); }
.segment.current::after { transform: scaleX(var(--p, 0)); }

.product-footnote { font-size: 0.85rem; color: rgba(244, 238, 224, 0.55); font-style: italic; position: relative; z-index: 2; margin-top: 20px; }
.section-cream .product-footnote { color: var(--brown-500); }

/* Mobile fallback: static stacked panels, no pin/scrub */
@media (max-width: 899px) {
  .pillars-wrap { height: auto; }
  .pillars-sticky { position: static; height: auto; display: block; padding: 0; }
  .pillars-inner { display: block; }
  .pillars-nav { display: none; }
  .pillars-stage { min-height: 0; display: grid; gap: 20px; }
  .pillar-panel { position: static; opacity: 1; transform: none; pointer-events: auto; background: rgba(18,32,47,0.6); border: 1px solid rgba(92,126,163,0.25); border-radius: var(--radius); padding: 28px 24px; }
  .pillars-progress { display: none; }
}

/* ==========================================================================
   Feature image (extracted diagrams)
   ========================================================================== */

.feature-image { margin: 0; position: relative; z-index: 2; overflow: hidden; border-radius: 18px; }
.feature-image img {
  width: 100%; display: block; border-radius: 18px; border: 1px solid rgba(74, 58, 38, 0.15);
  box-shadow: 0 40px 70px -40px rgba(36, 27, 18, 0.4);
  animation: kenburns 22s ease-in-out infinite alternate;
}
.feature-image:hover img { animation-play-state: paused; }
@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.06) translate(-1%, 1%); }
  100% { transform: scale(1.03) translate(1%, -1%); }
}
html.reduced-motion .feature-image img { animation: none; }
.feature-image figcaption { margin-top: 16px; text-align: center; font-size: 0.9rem; font-style: italic; color: var(--brown-500); max-width: 70ch; margin-left: auto; margin-right: auto; }
.feature-image-dark figcaption { color: rgba(244, 238, 224, 0.6); }
.feature-image-dark img { border-color: rgba(201, 162, 75, 0.25); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }

/* ==========================================================================
   Process
   ========================================================================== */

.process-flow { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
.process-step { flex: 0 0 auto; min-width: 130px; text-align: center; padding: 0 18px; position: relative; }
.process-step:not(:last-child)::after { content: ""; position: absolute; top: 24px; right: -2px; width: 30px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--gold-500) 0 6px, transparent 6px 10px); }
.process-num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-900); color: var(--gold-400); font-family: var(--font-display); font-weight: 700; margin-bottom: 14px; transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out); }
.process-step:hover .process-num { transform: scale(1.12); background: var(--gold-500); color: var(--navy-950); }
.process-final .process-num { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-950); }
.process-step p { font-size: 0.86rem; color: var(--brown-700); font-weight: 600; }
.process-step em { font-style: normal; font-weight: 400; color: var(--brown-500); font-size: 0.78rem; }

/* ==========================================================================
   Why Kohinoor
   ========================================================================== */

#why { position: relative; }
.topo-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.5; }
.topo-bg svg { width: 100%; height: 100%; }
.topo-bg path { fill: none; stroke: url(#topoGrad); stroke-width: 1.2; opacity: 0.35; }
.topo-bg path.topo-accent { stroke: var(--gold-500); stroke-width: 0.8; opacity: 0.18; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 64px; position: relative; z-index: 2; }
.why-stat { border-left: 2px solid var(--gold-500); padding-left: 22px; }
.why-num, .why-unit-inline { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold-400); }
.why-unit { display: block; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(244, 238, 224, 0.55); margin: 4px 0 10px; }
.why-stat p { font-size: 0.92rem; color: rgba(244, 238, 224, 0.68); margin-top: 8px; }

.why-ring { border-left: 2px solid var(--gold-500); padding-left: 22px; }
.radial-progress { position: relative; width: 96px; height: 96px; margin-bottom: 12px; }
.radial-progress svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(244,238,224,0.12); stroke-width: 8; }
.ring-fill { fill: none; stroke: var(--gold-400); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 2.4s var(--ease-out); }
.ring-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.5rem; color: var(--white); }
.why-ring p { font-size: 0.92rem; color: rgba(244, 238, 224, 0.68); margin-top: 8px; }

.reasons-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; position: relative; z-index: 2; }
.reason { display: flex; gap: 16px; align-items: flex-start; }
.check-anim { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(201, 162, 75, 0.15); display: flex; align-items: center; justify-content: center; }
.check-anim svg { width: 16px; height: 16px; }
.check-anim path { fill: none; stroke: var(--gold-400); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; }
.reveal.in-view .check-anim path { animation: check-draw 0.7s var(--ease-out) forwards 0.15s; }
@keyframes check-draw { to { stroke-dashoffset: 0; } }
.reason h4 { color: var(--white); font-size: 1rem; margin-bottom: 4px; }
.reason p { font-size: 0.88rem; color: rgba(244, 238, 224, 0.62); }

/* ==========================================================================
   Leadership — show-card entrance
   ========================================================================== */

.leader-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1400px; }

.show-card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid rgba(74, 58, 38, 0.12); border-radius: var(--radius); padding: 30px 28px 28px;
  transform-origin: 50% 100%;
  opacity: 0;
  transform: perspective(900px) rotateX(-65deg) translateY(50px) scale(0.95);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.09s);
}
.show-card.open { opacity: 1; transform: perspective(900px) rotateX(var(--tx,0deg)) rotateY(var(--ty,0deg)) translateY(var(--lift,0px)) scale(1); }
.show-card:hover { border-color: var(--gold-400); box-shadow: 0 26px 46px -26px rgba(74,58,38,0.35); }
.show-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-out) 0.35s; z-index: 3; }
.show-card.open::before { transform: scaleX(1); }
.show-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy-900), var(--navy-700)); transform-origin: top; transform: scaleY(1); transition: transform 1s var(--ease-out) 0.12s; z-index: 2; pointer-events: none; }
.show-card.open::after { transform: scaleY(0); }
.show-card-tag { position: absolute; top: 18px; right: 20px; font-family: var(--font-display); color: var(--gold-500); font-size: 0.85rem; opacity: 0; transform: translateX(10px); transition: opacity 0.6s var(--ease-out) 0.85s, transform 0.6s var(--ease-out) 0.85s; z-index: 3; }
.show-card.open .show-card-tag { opacity: 1; transform: none; }

.leader-card h4 { position: relative; z-index: 1; font-size: 1.08rem; margin-bottom: 4px; }
.leader-role { position: relative; z-index: 1; display: block; font-size: 0.78rem; font-weight: 700; color: var(--gold-600); margin-bottom: 12px; }
.leader-card p { position: relative; z-index: 1; font-size: 0.88rem; color: var(--brown-500); }

/* ==========================================================================
   Photo gallery + lightbox
   ========================================================================== */

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; z-index: 2; }
.gallery-item {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 14px; border: 1px solid rgba(74, 58, 38, 0.15); background: var(--navy-900);
  padding: 0; cursor: pointer; font: inherit; appearance: none; -webkit-appearance: none;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: "\2295"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--white); background: rgba(11, 20, 32, 0.35); opacity: 0; transition: opacity 0.3s var(--ease-out);
}
.gallery-item:hover::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 9998; background: rgba(6, 10, 17, 0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease-out), visibility 0.35s var(--ease-out);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-stage { max-width: 88vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox-stage { overflow: hidden; border-radius: 10px; }
.lightbox-stage img { max-width: 88vw; max-height: 74vh; border-radius: 10px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7); opacity: 0; transform: scale(0.97); transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out); }
.lightbox.open .lightbox-stage img { opacity: 1; transform: scale(1); animation: kenburns-slow 30s ease-in-out infinite alternate; }
@keyframes kenburns-slow { 0% { transform: scale(1); } 100% { transform: scale(1.045); } }
html.reduced-motion .lightbox.open .lightbox-stage img { animation: none; }
.lightbox-caption { color: rgba(244, 238, 224, 0.85); font-size: 0.95rem; text-align: center; max-width: 60ch; }
.lightbox-counter { color: rgba(244, 238, 224, 0.45); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

.lightbox-close, .lightbox-nav {
  position: fixed; background: rgba(244, 238, 224, 0.08); border: 1px solid rgba(201, 162, 75, 0.3);
  color: var(--cream-100); border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; cursor: pointer; transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(201, 162, 75, 0.2); border-color: var(--gold-400); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-close { top: 14px; right: 14px; width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
}

/* ==========================================================================
   Clients marquee
   ========================================================================== */

.clients-section { padding-bottom: 90px; }
.marquee { margin-top: 40px; overflow: hidden; border-top: 1px solid rgba(201,162,75,0.15); border-bottom: 1px solid rgba(201,162,75,0.15); padding: 24px 0; -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: scroll-left 34s linear infinite; font-family: var(--font-display); font-size: 1.15rem; color: rgba(244, 238, 224, 0.75); white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span:nth-child(2n) { color: var(--gold-500); padding: 0 6px; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; position: relative; z-index: 2; }
.contact-lead { color: var(--brown-500); margin: 18px 0 30px; max-width: 46ch; }
.contact-list { display: grid; gap: 18px; }
.contact-list div { font-size: 0.98rem; }
.contact-list span { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; margin-bottom: 3px; }
.contact-list a:hover { color: var(--gold-600); }

.contact-form { background: var(--white); border: 1px solid rgba(74,58,38,0.12); border-radius: var(--radius); padding: 34px; display: grid; gap: 26px; box-shadow: 0 30px 60px -34px rgba(74,58,38,0.25); position: relative; z-index: 1; }

.field-fancy { position: relative; }
.field-fancy input, .field-fancy textarea { width: 100%; font-family: var(--font-body); font-size: 0.98rem; padding: 10px 2px 10px; border: none; border-bottom: 1.5px solid rgba(74,58,38,0.25); background: transparent; color: var(--brown-900); resize: vertical; }
.field-fancy input:focus, .field-fancy textarea:focus { outline: none; }
.field-fancy label { position: absolute; left: 2px; top: 10px; font-size: 0.98rem; color: var(--brown-500); pointer-events: none; transform-origin: left top; transition: transform 0.3s var(--ease-out), color 0.3s var(--ease-out); }
.field-fancy input:focus + label, .field-fancy input:not(:placeholder-shown) + label,
.field-fancy textarea:focus + label, .field-fancy textarea:not(:placeholder-shown) + label { transform: translateY(-1.3rem) scale(0.78); color: var(--gold-600); letter-spacing: 0.04em; text-transform: uppercase; }
.field-fancy::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); transition: width 0.4s var(--ease-out); }
.field-fancy:focus-within::after { width: 100%; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--navy-950); color: rgba(244, 238, 224, 0.55); padding: 46px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.85rem; color: rgba(244, 238, 224, 0.6); transition: color 0.2s; }
.footer-nav a:hover { color: var(--gold-400); }
.footer-copy { width: 100%; text-align: center; font-size: 0.78rem; margin-top: 20px; border-top: 1px solid rgba(201,162,75,0.12); padding-top: 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .reasons-grid { grid-template-columns: 1fr; }
  .leader-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .teaser-grid, .teaser-grid.reverse { grid-template-columns: 1fr; }
  .teaser-grid.reverse > *:first-child { order: 0; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 74px; left: 0; right: 0; background: rgba(6,12,21,0.97); flex-direction: column; align-items: flex-start; padding: 24px 28px; gap: 20px; transform: translateY(-140%); transition: transform 0.35s var(--ease-out); border-bottom: 1px solid rgba(201,162,75,0.2); }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .leader-grid { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .hero-inner { padding-top: 120px; }
  .page-hero { padding: 128px 0 56px; }
  .mini-grid { grid-template-columns: 1fr; }
  .cursor-glow { display: none; }
}
