/* =============================================================
   Innova Capital — site shell
   Layered on top of styles/tokens.css
   ============================================================= */

:root {
  --header-h: 76px;
  --max-w: 1320px;
  --gutter: 56px;
  --accent: var(--innova-taupe-deep);
}

html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-page);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* --- THEME: DARK ------------------------------------------------------- */
body.theme-dark {
  --bg-page:   #0B0B0B;
  --bg-surface:#141312;
  --bg-section:#161513;
  --bg-inverse:#FAF8F4;
  --fg-1:      #F2EFE8;
  --fg-2:      #C9C3B6;
  --fg-3:      #8A8276;
  --fg-muted:  #5A5247;
  --fg-invert: #0F0F0F;
  --fg-accent: #D7CCBB;
  --border-1:  rgba(215,204,187,0.16);
  --border-2:  rgba(215,204,187,0.28);
  --border-strong: var(--innova-taupe);
  --link:      var(--innova-taupe);
  --link-hover:#F2EFE8;
  --shadow-card: 6px 6px 0 rgba(215,204,187,0.06);
}
body.theme-dark .invert-on-dark { filter: brightness(0) invert(1); }
body.theme-dark .grayscale-cell { background: #181715; }
body.theme-dark .header-bar { background: rgba(11,11,11,0.85); }

/* --- ACCENT EMPHASIS --------------------------------------------------- */
body[data-accent="crimson"] {
  --accent: var(--innova-crimson);
}
body[data-accent="taupe"] {
  --accent: var(--innova-taupe-deep);
}

/* --- LAYOUT UTILS ------------------------------------------------------ */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--accent);
}
.rule-accent { width: 56px; height: 2px; background: var(--accent); border: 0; margin: 0 0 24px; }

/* --- HEADER ------------------------------------------------------------ */
header.site {
  position: sticky; top: 0; z-index: 80;
  border-bottom: 1px solid var(--border-1);
  transition: background 200ms var(--ease-out);
}
.header-bar {
  background: rgba(250,248,244,0.86);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
}
header.site .bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 48px; height: var(--header-h);
}
header.site .logo { display: inline-flex; align-items: center; border: 0; }
header.site .logo img { height: 24px; display: block; }
header.site nav { display: flex; gap: 28px; }
header.site nav a {
  font-family: var(--font-sans); font-size: 13px; font-weight: 400;
  color: var(--fg-1); letter-spacing: 0.01em;
  border: 0; padding: 6px 0; position: relative;
}
header.site nav a:hover { color: var(--accent); }
header.site nav a.active::after, header.site nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--accent);
}
header.site .right { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center;
  border: 1px solid var(--border-1); background: transparent; color: var(--fg-1);
  cursor: pointer; border-radius: 2px; transition: all 160ms var(--ease-out);
}
.icon-btn:hover { border-color: var(--fg-1); background: var(--fg-1); color: var(--fg-invert); }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; }

/* --- BUTTONS ----------------------------------------------------------- */
.btn {
  font-family: var(--font-sans); font-weight: 700; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 24px; border-radius: 2px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 180ms var(--ease-out); border: 1px solid transparent;
}
.btn-primary { background: var(--fg-1); color: var(--fg-invert); }
.btn-primary:hover { background: var(--accent); }
.btn-secondary { background: transparent; color: var(--fg-1); border-color: var(--fg-1); }
.btn-secondary:hover { background: var(--fg-1); color: var(--fg-invert); }
.btn-ghost { background: transparent; color: var(--fg-1); border-color: var(--border-1); padding: 13px 22px; }
.btn-ghost:hover { border-color: var(--fg-1); }
.btn .arrow { display: inline-block; transition: transform 200ms var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* --- FOOTER ------------------------------------------------------------ */
footer.site {
  background: #0B0B0B; color: #F2EFE8; padding: 96px 0 28px;
  margin-top: 0;
}
body.theme-dark footer.site { background: #050505; }
footer.site .grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 1.2fr; gap: 56px;
}
footer.site .brand img { height: 28px; width: auto; filter: brightness(0) invert(1); margin-bottom: 18px; }
footer.site .brand p { font-size: 13px; color: rgba(242,239,232,0.62); font-weight: 300; line-height: 1.6; max-width: 30ch; margin: 0 0 22px; }
footer.site .brand .socials { display: flex; gap: 10px; }
footer.site .brand .socials a {
  width: 34px; height: 34px; display: inline-grid; place-items: center;
  border: 1px solid rgba(242,239,232,0.18); border-radius: 2px;
  color: rgba(242,239,232,0.7); transition: all 180ms var(--ease-out);
}
footer.site .brand .socials a:hover { background: #F2EFE8; color: #0B0B0B; border-color: #F2EFE8; }
footer.site .brand .socials svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.75; }
footer.site h5 {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--innova-taupe); margin: 0 0 18px; font-weight: 700;
}
footer.site a {
  display: block; font-size: 13px; color: rgba(242,239,232,0.72);
  margin-bottom: 8px; font-weight: 300; border: 0;
  transition: color 160ms var(--ease-out);
}
footer.site a:hover { color: #F2EFE8; }
footer.site .contact-list span {
  display: block; font-size: 13px; color: rgba(242,239,232,0.62);
  margin-bottom: 8px; font-weight: 300;
}
footer.site .fine {
  grid-column: 1 / -1; margin-top: 72px; padding-top: 22px;
  border-top: 1px solid rgba(242,239,232,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 11px; color: rgba(242,239,232,0.5);
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* --- SECTION CHROME ---------------------------------------------------- */
section { position: relative; }
.section-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  gap: 32px; margin-bottom: 48px;
  padding-bottom: 24px; border-bottom: 1px solid var(--border-1);
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08;
  letter-spacing: -0.015em; margin: 0; color: var(--fg-1);
}
.section-head .eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}

/* --- REVEAL ANIMATION (scroll) ----------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* --- TICKER ------------------------------------------------------------ */
.ticker {
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  overflow: hidden;
  background: var(--bg-page);
}
.ticker .track {
  display: flex; gap: 56px; padding: 14px 0;
  animation: ticker 60s linear infinite;
  white-space: nowrap;
}
.ticker .track > span {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 400; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-3);
}
.ticker .track > span b {
  color: var(--fg-1); font-family: var(--font-display); font-weight: 500;
  letter-spacing: -0.005em; text-transform: none; font-size: 14px;
}
.ticker .track > span::after {
  content: ""; width: 6px; height: 6px; background: var(--accent);
  display: inline-block; margin-left: 14px; transform: rotate(45deg);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- PAGE HEADER (inner pages) ----------------------------------------- */
.page-header {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--border-1);
  background: var(--bg-page);
  position: relative; overflow: hidden;
}
.page-header .crumbs {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 28px;
}
.page-header .crumbs a { color: var(--fg-3); border: 0; }
.page-header .crumbs a:hover { color: var(--fg-1); }
.page-header h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 5vw, 76px); line-height: 1.04;
  letter-spacing: -0.02em; margin: 0 0 24px; max-width: 18ch;
}
.page-header .lede {
  font-size: 19px; font-weight: 300; line-height: 1.55;
  color: var(--fg-2); max-width: 56ch; margin: 0;
}
.page-header .deco {
  position: absolute; right: -100px; top: 0; bottom: 0; width: 40%;
  background: url('../assets/brand/diamonds-watermark.jpg') right center/contain no-repeat;
  opacity: 0.08; pointer-events: none;
}

/* --- FORM ELEMENTS ----------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 700;
}
.field input, .field textarea, .field select {
  font-family: var(--font-sans); font-weight: 300; font-size: 15px;
  color: var(--fg-1); background: var(--bg-surface);
  border: 1px solid var(--border-1); padding: 14px 16px;
  border-radius: 2px; transition: border-color 160ms var(--ease-out);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 140px; }

/* --- CONFIDENTIALITY BAR ----------------------------------------------- */
.confidential {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(11,11,11,0.92); color: rgba(242,239,232,0.6);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  text-align: center; padding: 6px 0;
  pointer-events: none;
  display: none; /* opt-in per page */
}

/* --- SHARED CARD STYLES ------------------------------------------------ */
.card-flat {
  background: var(--bg-surface); border: 1px solid var(--border-1);
  padding: 28px; transition: box-shadow 240ms var(--ease-out), border-color 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.card-flat:hover {
  box-shadow: 8px 8px 0 rgba(120,102,80,0.10);
  border-color: var(--border-2);
}

/* --- BACK TO TOP / FLOATING -------------------------------------------- */
.floating-cta {
  position: fixed; bottom: 32px; right: 32px; z-index: 70;
  background: var(--fg-1); color: var(--fg-invert);
  padding: 14px 22px; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 700;
  display: none; cursor: pointer; border-radius: 2px;
  transition: background 160ms var(--ease-out);
  border: 0;
}
.floating-cta:hover { background: var(--accent); }
.floating-cta.show { display: inline-flex; align-items: center; gap: 10px; }

/* --- TYPE OVERRIDES PER SECTION --------------------------------------- */
.h-display {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(48px, 6vw, 96px); line-height: 1.02;
  letter-spacing: -0.025em; color: var(--fg-1);
  text-wrap: balance;
}

/* --- DECORATIVE GRID --------------------------------------------------- */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(to right, var(--border-1) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-1) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* --- TINY DIAMOND GLYPH ------------------------------------------------ */
.diamond {
  display: inline-block; width: 8px; height: 8px;
  background: var(--innova-crimson); transform: rotate(45deg);
  vertical-align: middle; margin: 0 6px;
}

/* --- RESPONSIVE -------------------------------------------------------- */
@media (max-width: 960px) {
  :root { --gutter: 28px; }
  header.site nav { display: none; }
  footer.site .grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; }
}
