/*
Theme Name: Noir Capital Group
Theme URI: https://noircgrp.com/
Author: Noir Capital Group
Description: Custom institutional capital structuring website for Noir Capital Group LLC.
Version: 2026.05.28.3
Requires at least: 6.0
Tested up to: 7.0
Text Domain: noir-capital-group
*/

:root {
  --bg: #0a0a0c;
  --bg-2: #0f1015;
  --panel: #14161d;
  --panel-2: #1a1d25;
  --ink: #f7f4ea;
  --white: #ffffff;
  --muted: #94a3b8;
  --muted-2: #c5cedc;
  --gold: #c5a059;
  --gold-bright: #e2c577;
  --line: rgba(197, 160, 89, 0.24);
  --line-cool: rgba(148, 163, 184, 0.2);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(197, 160, 89, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 160, 89, 0.04) 1px, transparent 1px),
    linear-gradient(115deg, rgba(197, 160, 89, 0.1), transparent 26%, rgba(89, 136, 156, 0.08) 62%, transparent 84%),
    var(--bg);
  background-size: 72px 72px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(115deg, transparent 0 34px, rgba(255, 255, 255, 0.025) 34px 35px),
    linear-gradient(180deg, rgba(10, 10, 12, 0.2), var(--bg) 72%);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}

a:hover {
  color: var(--gold-bright);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 76px);
  background: rgba(10, 10, 12, 0.9);
  border-bottom: 1px solid var(--line-cool);
  backdrop-filter: blur(18px);
  animation: header-settle 420ms var(--ease-out) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.brand span {
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted-2);
  font-size: 0.86rem;
  font-weight: 700;
}

nav a:not(.nav-cta) {
  position: relative;
}

nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: center;
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

nav a:not(.nav-cta):hover::after {
  opacity: 0.7;
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transition:
    color 180ms var(--ease-out),
    background 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    filter 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.nav-cta {
  color: #11110f;
  background: var(--gold);
  border-color: transparent;
}

.nav-cta:hover,
.button-primary:hover {
  color: #0b0b09;
  filter: brightness(1.06);
}

.button-secondary:hover {
  color: var(--white);
  border-color: rgba(197, 160, 89, 0.44);
  background: rgba(255, 255, 255, 0.07);
}

.button:active,
.nav-cta:active {
  transform: scale(0.98);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(760px, calc(88vh - 80px));
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.35fr);
  align-items: end;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(48px, 7vw, 90px) clamp(18px, 5vw, 76px) clamp(30px, 5vw, 56px);
  border-bottom: 1px solid var(--line-cool);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, 0.98) 0%, rgba(10, 10, 12, 0.74) 45%, rgba(10, 10, 12, 0.26) 100%),
    url("assets/noir-hero-capital-field.webp") center right / cover no-repeat;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(197, 160, 89, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 160, 89, 0.028) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
  opacity: 0.75;
}

.hero::after {
  position: absolute;
  right: clamp(-120px, -6vw, -40px);
  bottom: clamp(-170px, -12vw, -70px);
  z-index: 0;
  pointer-events: none;
  width: min(560px, 60vw);
  aspect-ratio: 1;
  content: "";
  background: url("assets/noir-logo-hd.png") center / cover no-repeat;
  filter: grayscale(1) contrast(1.08);
  opacity: 0.1;
  transform: rotate(-8deg);
}

.hero-copy {
  max-width: 980px;
}

.brand-kicker,
.section-label,
.terminal-topline,
.success-panel span,
.matrix-column .column-index,
.pillar-grid article span {
  margin: 0;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--white);
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.6rem, 7vw, 5.4rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
}

.hero-subhead,
.section-heading p,
.advisory-copy > p {
  max-width: 760px;
  color: var(--muted-2);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  cursor: pointer;
}

.button-primary {
  color: #10100d;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(197, 160, 89, 0.2);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-cool);
}

.hero-terminal,
.deal-terminal,
.matrix-column,
.pillar-grid article,
.schedule-grid article {
  border: 1px solid var(--line-cool);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(26, 29, 37, 0.94), rgba(12, 13, 17, 0.94));
  box-shadow: var(--shadow);
}

.hero-terminal {
  padding: 24px;
}

.hero-copy,
.hero-terminal,
.section-heading,
.matrix-column,
.advisory-lead,
.advisory-copy,
.deal-terminal,
.legal > * {
  animation: materialize 520ms var(--ease-out) both;
}

.hero-terminal {
  animation-delay: 120ms;
}

.section-heading,
.advisory-copy,
.deal-terminal {
  animation-delay: 80ms;
}

.matrix-column:nth-child(2) {
  animation-delay: 80ms;
}

.matrix-column:nth-child(3) {
  animation-delay: 160ms;
}

.terminal-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-cool);
}

dl {
  display: grid;
  gap: 18px;
  margin: 22px 0 0;
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  color: var(--white);
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1.05;
}

.section {
  padding: clamp(72px, 10vw, 130px) clamp(18px, 5vw, 76px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.58fr);
  align-items: end;
  gap: clamp(24px, 5vw, 70px);
  margin-bottom: 38px;
}

.section-heading .section-label {
  grid-column: 1 / -1;
  margin-bottom: -18px;
}

.section-heading p:not(.section-label) {
  margin-bottom: 10px;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.matrix-column {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  transition:
    transform 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    background 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

.matrix-column:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, 0.46);
  background: linear-gradient(180deg, rgba(30, 33, 41, 0.98), rgba(12, 13, 17, 0.96));
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.42);
}

.column-intro,
.matrix-column li span,
.pillar-grid p,
.legal p,
.legal li {
  color: var(--muted-2);
}

.matrix-column h3 {
  margin-top: 34px;
}

.matrix-column ul {
  display: grid;
  gap: 18px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.matrix-column li {
  padding-top: 18px;
  border-top: 1px solid var(--line-cool);
}

.matrix-column strong,
.matrix-column span {
  display: block;
}

.matrix-column strong {
  margin-bottom: 5px;
  color: var(--white);
  font-weight: 800;
}

.advisory-edge {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 84px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  border-top: 1px solid var(--line-cool);
  border-bottom: 1px solid var(--line-cool);
}

.advisory-lead {
  position: sticky;
  top: 120px;
  align-self: start;
}

.pillar-grid {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.pillar-grid article {
  padding: 28px;
  box-shadow: none;
}

.scheduling-section {
  border-top: 1px solid var(--line-cool);
  background: linear-gradient(180deg, rgba(197, 160, 89, 0.035), rgba(255, 255, 255, 0));
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1100px;
}

.schedule-grid article {
  padding: 28px;
  box-shadow: none;
}

.schedule-grid article span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.schedule-grid p {
  margin-bottom: 0;
  color: var(--muted-2);
}

.intake-section {
  padding-bottom: clamp(88px, 12vw, 150px);
}

.deal-terminal {
  max-width: 1100px;
  padding: clamp(20px, 4vw, 38px);
}

.progress-shell {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-cool);
}

.progress-shell::before,
.progress-bar {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  content: "";
}

.progress-shell::before {
  width: 100%;
  background: var(--line-cool);
}

.progress-bar {
  width: 100%;
  transform: scaleX(0.33333);
  transform-origin: left center;
  background: var(--gold-bright);
  transition: transform 220ms var(--ease-standard);
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.progress-steps li.is-active {
  color: var(--gold-bright);
}

.form-step {
  animation: terminal-enter 260ms var(--ease-out) both;
}

.form-step[hidden] {
  display: none;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-grid.two-up {
  grid-template-columns: minmax(0, 0.88fr) minmax(260px, 0.62fr);
}

label,
fieldset {
  min-width: 0;
}

label span,
legend {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-cool);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  outline: none;
  transition:
    border-color 160ms var(--ease-out),
    background 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

input:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.16);
}

fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.radio-panel {
  display: grid;
  gap: 10px;
  margin: 0;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid var(--line-cool);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  transition:
    border-color 160ms var(--ease-out),
    background 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.choice:hover {
  transform: translateY(-1px);
  border-color: rgba(197, 160, 89, 0.4);
  background: rgba(255, 255, 255, 0.065);
}

.choice input {
  width: auto;
  min-height: auto;
  accent-color: var(--gold);
}

.form-actions {
  justify-content: flex-end;
  padding-top: 26px;
}

.success-panel {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid rgba(197, 160, 89, 0.46);
  border-radius: 8px;
  background: rgba(197, 160, 89, 0.09);
  animation: terminal-enter 300ms var(--ease-out) both;
}

.success-panel h3 {
  margin-top: 12px;
}

.success-panel p {
  margin-bottom: 0;
  color: var(--muted-2);
}

.legal {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(70px, 10vw, 120px) clamp(18px, 5vw, 76px);
}

.legal h1 {
  font-size: clamp(3.2rem, 8vw, 6.4rem);
}

.legal h2 {
  margin-top: 38px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.legal a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr) auto;
  gap: 28px;
  padding: 32px clamp(18px, 5vw, 76px);
  color: var(--muted-2);
  background: #070708;
  border-top: 1px solid var(--line-cool);
}

.site-footer strong {
  display: block;
  color: var(--white);
  margin-bottom: 8px;
}

.site-footer p {
  margin: 0;
}

.site-footer .compliance {
  max-width: 900px;
  font-size: 0.82rem;
}

.site-footer nav {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.button,
.nav-cta,
.matrix-column,
.pillar-grid article,
.form-step,
.success-panel {
  will-change: transform, opacity;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

@keyframes materialize {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes terminal-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes header-settle {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .section-heading,
  .advisory-edge,
  .field-grid,
  .field-grid.two-up,
  .schedule-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .matrix-grid {
    grid-template-columns: 1fr;
  }

  .matrix-column {
    min-height: auto;
  }

  .advisory-lead {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 14px;
    padding: 14px 16px 16px;
    background: rgba(6, 7, 9, 0.96);
  }

  .brand {
    width: 100%;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand span {
    white-space: normal;
    font-size: 1rem;
  }

  .site-header nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    font-size: 0.8rem;
  }

  .site-header nav a:not(.nav-cta) {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    border: 1px solid var(--line-cool);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted-2);
    font-size: 0.72rem;
    line-height: 1.14;
    text-align: center;
  }

  .site-header nav a:not(.nav-cta)::after {
    display: none;
  }

  h1 {
    font-size: clamp(2.82rem, 13.6vw, 4.05rem);
    line-height: 0.94;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 34px;
    background:
      linear-gradient(180deg, rgba(6, 7, 9, 0.84) 0%, rgba(6, 7, 9, 0.68) 42%, rgba(6, 7, 9, 0.96) 100%),
      linear-gradient(90deg, rgba(6, 7, 9, 0.96) 0%, rgba(6, 7, 9, 0.58) 62%, rgba(6, 7, 9, 0.82) 100%),
      url("assets/noir-hero-capital-field.webp") center right 34% / cover no-repeat;
  }

  .hero::before {
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, #000, transparent 78%);
    opacity: 0.56;
  }

  .hero::after {
    right: -96px;
    bottom: -80px;
    width: 280px;
    opacity: 0.08;
  }

  .hero-subhead {
    max-width: 34rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-terminal {
    display: none;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .nav-cta {
    grid-column: 1 / -1;
    min-height: 48px;
    margin-top: 2px;
  }

  .progress-steps {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
