/* ============================================================
   KOREVOR — korevor.com
   Design system. Refined editorial-luxury, dark.
   Per kore/brands/korevor/BRAND_KIT.md
   Display: Fraunces (serif) · Body: Hanken Grotesk
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:        #0C0D11;
  --bg-2:      #0F1115;
  --surface:   #15171E;
  --surface-2: #1B1E27;
  --hairline:  #262932;
  --hairline-2:#33373F;
  --text:      #F4F2EC;
  --muted:     #9A9DA8;
  --muted-2:   #6E7280;
  --gold:      #E0A23C;
  --gold-soft: #E6B964;
  --gold-deep: #B5781F;
  --clean:     #5BBF8A;

  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --radius-lg: 22px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--gold); color: #1a1305; }

/* Page grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 150px); }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 1.1rem;
  display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: 0.6; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 460; line-height: 1.04; letter-spacing: -0.015em; font-optical-sizing: auto; }
.display {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 0.98; letter-spacing: -0.025em; font-weight: 430;
}
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.01em; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 46ch; }
.gold { color: var(--gold); }
.serif-em { font-family: var(--serif); font-style: italic; font-weight: 430; }
p { max-width: 64ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  padding: 0.92em 1.5em; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #1a1305; }
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 12px 34px -12px rgba(224,162,60,0.55); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--hairline-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent; transition: border-color 0.4s, background 0.4s;
}
.nav.scrolled { border-bottom-color: var(--hairline); background: color-mix(in srgb, var(--bg) 88%, transparent); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.wordmark { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: 0.01em; }
.wordmark .dot { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a { font-size: 0.94rem; color: var(--muted); transition: color 0.25s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 9vw, 120px); }
.hero-glow {
  position: absolute; z-index: 0; top: -22%; left: 50%; transform: translateX(-50%);
  width: min(1000px, 120vw); height: 720px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(224,162,60,0.22), rgba(224,162,60,0.05) 38%, transparent 66%);
  filter: blur(18px);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 35%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.6em; font-size: 0.82rem; color: var(--muted);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 0.4em 0.95em; margin-bottom: 1.8rem;
}
.hero-tag .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--clean); box-shadow: 0 0 0 3px rgba(91,191,138,0.18); }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 1.6rem; max-width: 52ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-meta { margin-top: 3.2rem; display: flex; gap: 2.4rem; flex-wrap: wrap; color: var(--muted-2); font-size: 0.86rem; }
.hero-meta strong { color: var(--text); font-weight: 600; }

/* ---------- Cards / capabilities ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.4vw, 2.2rem); position: relative; overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.card:hover { border-color: var(--hairline-2); transform: translateY(-4px); }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(224,162,60,0.10), transparent 42%);
  opacity: 0; transition: opacity 0.4s;
}
.card:hover::after { opacity: 1; }
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(224,162,60,0.10); border: 1px solid rgba(224,162,60,0.22); color: var(--gold);
  margin-bottom: 1.2rem; font-family: var(--serif); font-size: 1.25rem;
}
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* section header */
.sec-head { max-width: 60ch; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.sec-head h2 { margin-top: 0.4rem; }
.sec-head p { color: var(--muted); margin-top: 1rem; font-size: 1.08rem; }

/* ---------- Split / proof ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.frame {
  border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); box-shadow: 0 40px 90px -50px rgba(0,0,0,0.9);
  position: relative;
}
.frame-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--hairline); background: var(--bg-2); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline-2); }
.frame-body { padding: 1.4rem; min-height: 260px; display: grid; place-items: center; color: var(--muted-2); font-size: 0.9rem; text-align: center; }

/* ---------- Module list (upholstery) ---------- */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; }
.module { background: var(--bg); padding: clamp(1.4rem, 2.2vw, 1.9rem); transition: background 0.35s; }
.module:hover { background: var(--surface); }
.module .tag { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.module.star { background: linear-gradient(180deg, rgba(224,162,60,0.07), var(--bg)); }
.module h3 { font-size: 1.2rem; margin: 0.7rem 0 0.5rem; }
.module p { color: var(--muted); font-size: 0.94rem; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--surface), var(--bg-2));
  padding: clamp(2.4rem, 5vw, 4rem); text-align: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px circle at 50% -20%, rgba(224,162,60,0.16), transparent 55%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band p { margin: 1rem auto 2rem; color: var(--muted); }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding-block: 3rem 2.4rem; color: var(--muted-2); }
.footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer .wordmark { font-size: 1.3rem; }
.footer-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; font-weight: 600; }
.footer-col a { display: block; font-size: 0.92rem; color: var(--muted-2); margin-bottom: 0.55rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--gold); }
.footer-base { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.84rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-2, .split, .modules { grid-template-columns: 1fr; }
  .modules { gap: 1px; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--hairline); padding: 0.5rem var(--gutter) 1.2rem; }
  .nav.open .nav-links a { padding: 0.9rem 0; border-bottom: 1px solid var(--hairline); }
  .split .frame { order: -1; }
}

/* ---------- Rotator (industries) ---------- */
.rotator { display: inline-block; overflow: hidden; height: 1.15em; line-height: 1.15em; vertical-align: bottom; }
.rotator__list { display: flex; flex-direction: column; animation: rotor 20s cubic-bezier(0.86, 0, 0.07, 1) infinite; }
.rotator__list span { height: 1.15em; white-space: nowrap; color: var(--gold); font-weight: 600; }
@keyframes rotor {
  0%, 9%       { transform: translateY(0); }
  11.1%, 20.1% { transform: translateY(-1.15em); }
  22.2%, 31.2% { transform: translateY(-2.30em); }
  33.3%, 42.3% { transform: translateY(-3.45em); }
  44.4%, 53.4% { transform: translateY(-4.60em); }
  55.5%, 64.5% { transform: translateY(-5.75em); }
  66.6%, 75.6% { transform: translateY(-6.90em); }
  77.7%, 86.7% { transform: translateY(-8.05em); }
  88.8%, 100%  { transform: translateY(-9.20em); }
}
@media (prefers-reduced-motion: reduce) { .rotator__list { animation: none; } }

/* ---------- Contact row ---------- */
.contact-row { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; align-items: center; margin-top: 1.6rem; }
.contact-row a { color: var(--muted); font-size: 0.98rem; transition: color 0.25s; }
.contact-row a:hover { color: var(--gold); }
.contact-row .sep { color: var(--muted-2); }
