/* ==========================================================================
   Northforge Consumer Group
   Design system — forged gold on deep black
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --ink:      #050505;
  --ink-2:    #09090a;
  --ink-3:    #0e0e10;
  --ink-4:    #141416;

  /* Forged gold */
  --gold-hi:   #f8e9be;
  --gold:      #d8b45a;
  --gold-core: #c9a227;
  --gold-deep: #7c5e1c;

  /* Metallic sheen for display type */
  --gold-sheen: linear-gradient(158deg,
      #f8e9be 0%, #d8b45a 26%, #a8842e 48%,
      #f2e0aa 66%, #c9a227 84%, #8f6d21 100%);

  /* Text */
  --text:   #e9e4da;
  --text-2: #b5aea1;
  --muted:  #857e72;

  /* Lines */
  --hairline: rgba(216, 180, 90, 0.16);
  --hairline-strong: rgba(216, 180, 90, 0.34);

  /* Type */
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --shell: 1180px;
  --gut: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(5.5rem, 13vw, 11rem);

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.72;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; color: var(--gold); }

a { color: inherit; text-decoration: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

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

/* ---------- Gold display type ---------- */
.gold-text {
  background: var(--gold-sheen);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Safari/Firefox fallback when background-clip:text is unsupported */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .gold-text { color: var(--gold); background: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease),
              backdrop-filter 0.5s var(--ease), padding 0.5s var(--ease);
  border-bottom: 1px solid transparent;
  padding-block: clamp(0.9rem, 2vw, 1.5rem);
}
.site-header.scrolled {
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--hairline);
  padding-block: 0.7rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark {
  width: clamp(30px, 4vw, 38px);
  height: auto;
  filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.28));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.brand-sub {
  font-size: clamp(0.52rem, 0.9vw, 0.62rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; gap: clamp(1.1rem, 3vw, 2.4rem); }
.nav a {
  position: relative;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
  padding-block: 0.35rem;
  transition: color 0.35s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav a:hover { color: var(--gold-hi); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 560px) {
  .nav { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(7rem, 16vh, 10rem) clamp(5rem, 12vh, 8rem);
  isolation: isolate;
  overflow: hidden;
}

/* Warm forge glow */
.hero-glow {
  position: absolute;
  z-index: -2;
  top: 44%; left: 50%;
  translate: -50% -50%;
  width: min(160vw, 1500px);
  aspect-ratio: 1;
  background: radial-gradient(circle,
      rgba(201, 162, 39, 0.16) 0%,
      rgba(140, 105, 25, 0.07) 32%,
      transparent 66%);
}

/* Angular diamond echoing the mark's geometry */
.hero-frame {
  position: absolute;
  z-index: -1;
  top: 46%; left: 50%;
  width: min(72vmin, 620px);
  aspect-ratio: 1;
  translate: -50% -50%;
  rotate: 45deg;
  border: 1px solid var(--hairline);
  opacity: 0.55;
}
.hero-frame::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(216, 180, 90, 0.07);
}

.hero-inner { position: relative; z-index: 2; }

.hero-mark {
  width: clamp(112px, 20vw, 208px);
  margin: 0 auto clamp(1.75rem, 4vw, 2.75rem);
  filter: drop-shadow(0 8px 40px rgba(201, 162, 39, 0.26));
}

.hero-title { display: flex; flex-direction: column; gap: clamp(0.5rem, 1.4vw, 0.9rem); }
.hero-title-main {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 9.2vw, 6.75rem);
  line-height: 0.98;
  letter-spacing: clamp(0.04em, 0.9vw, 0.1em);
  text-transform: uppercase;
  /* optical: trailing letterspace pushes text off-centre */
  text-indent: clamp(0.04em, 0.9vw, 0.1em);
}
.hero-title-sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(0.72rem, 2.1vw, 1.32rem);
  letter-spacing: clamp(0.28em, 0.9vw, 0.46em);
  text-transform: uppercase;
  color: var(--text-2);
  text-indent: clamp(0.28em, 0.9vw, 0.46em);
}

/* Hairline with centre node */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: clamp(1.6rem, 4vw, 2.5rem) auto;
  width: min(340px, 62%);
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-strong));
}
.rule::after { background: linear-gradient(90deg, var(--hairline-strong), transparent); }
.rule span {
  width: 5px; height: 5px;
  rotate: 45deg;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(216, 180, 90, 0.85);
}

.hero-tagline {
  font-size: clamp(0.92rem, 2.1vw, 1.22rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-2);
  max-width: 34ch;
  margin-inline: auto;
}

.scroll-cue {
  position: absolute;
  bottom: clamp(1.75rem, 4vh, 3rem);
  left: 50%;
  translate: -50% 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px; height: 62px;
}
.scroll-cue-line {
  width: 1px; height: 52px;
  background: linear-gradient(180deg, transparent, var(--gold-core));
  transform-origin: top;
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0%        { transform: scaleY(0); opacity: 0; }
  35%       { transform: scaleY(1); opacity: 1; }
  70%, 100% { transform: scaleY(1); opacity: 0; transform-origin: bottom; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding-block: var(--section-y); }

/* Keep anchor targets clear of the fixed header. */
section[id] { scroll-margin-top: clamp(72px, 10vh, 100px); }

.section--company {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  border-top: 1px solid var(--hairline);
}
.section--capabilities { background: var(--ink-2); }
.section--model {
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  border-top: 1px solid var(--hairline);
}

.eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-core);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 1px;
  background: var(--gold-deep);
  vertical-align: middle;
  margin-right: 0.85rem;
  translate: 0 -1px;
}

/* Cinzel has no true lowercase — it renders as small caps — so a long measure
   of it reads as shouting. Kept wide and a touch smaller so the statement lands
   in three or four lines instead of laddering down six. */
.lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.9vw, 2.15rem);
  line-height: 1.38;
  letter-spacing: 0.005em;
  color: var(--text);
  max-width: 30ch;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
/* Company section runs as two editorial columns on desktop: the Cinzel
   statement on the left, the supporting detail on the right. Single column
   below 900px, where the statement gets the full measure. */
@media (min-width: 900px) {
  .section--company .shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    column-gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: start;
  }
  .section--company .eyebrow { grid-column: 1 / -1; }
  .section--company .lede { max-width: none; margin-bottom: 0; }
  .section--company .body-lg { padding-top: 0.5rem; }
}

.body-lg {
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  color: var(--text-2);
  max-width: 58ch;
}

.section-head { margin-bottom: clamp(3rem, 7vw, 5rem); }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4.6vw, 3.35rem);
  line-height: 1.14;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.section-intro {
  margin-top: clamp(1.15rem, 2.5vw, 1.6rem);
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  color: var(--text-2);
  max-width: 56ch;
}

/* ---------- Capabilities ---------- */
/* Grid lines are drawn as cell borders rather than a gap-showing-through-a
   background, so a cell fading in from opacity 0 can never expose a solid
   gold block underneath. */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 288px), 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.cap {
  position: relative;
  background: var(--ink-2);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(1.85rem, 3.6vw, 2.9rem);
  transition: background-color 0.55s var(--ease);
}
.cap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 0%, rgba(201, 162, 39, 0.09), transparent 62%);
  opacity: 0;
  transition: opacity 0.55s var(--ease);
  pointer-events: none;
}
.cap:hover { background: var(--ink-3); }
.cap:hover::before { opacity: 1; }

.cap-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gold-deep);
  margin-bottom: clamp(1.1rem, 2.4vw, 1.6rem);
  transition: color 0.55s var(--ease);
}
.cap:hover .cap-num { color: var(--gold); }

.cap-title {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.9vw, 1.24rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.85rem;
}
.cap-body { font-size: 0.945rem; color: var(--muted); }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr));
  gap: clamp(2.25rem, 5vw, 3.75rem);
  counter-reset: pillar;
}
.pillar { position: relative; padding-top: 2.25rem; counter-increment: pillar; }
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 2px;
  background: var(--gold-sheen);
}
.pillar-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-hi);
  margin-bottom: 1rem;
}
.pillar-body { font-size: 0.985rem; color: var(--text-2); }

/* Once these sit side by side, reserve two title lines so the body copy of
   every card in a row starts on the same baseline. Titles wrap unevenly
   ("Rapid Testing" vs "Long-Term Brand Equity") and the ragged offset reads
   as a mistake. Single-column layouts keep their natural height. */
@media (min-width: 600px) {
  .cap-title { min-height: 2.6em; }
  .pillar-title { min-height: 2.56em; }
}

/* ---------- Manifesto ---------- */
.section--manifesto {
  position: relative;
  padding-block: clamp(6.5rem, 16vw, 13rem);
  background: var(--ink);
  border-top: 1px solid var(--hairline);
  overflow: hidden;
  isolation: isolate;
}
.manifesto-glow {
  position: absolute;
  z-index: -1;
  bottom: -55%; left: 50%;
  translate: -50% 0;
  width: min(150vw, 1250px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.13) 0%, transparent 62%);
}
.manifesto-inner { text-align: center; }
.manifesto {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.4vw, 3.1rem);
  line-height: 1.32;
  letter-spacing: 0.02em;
  color: var(--text-2);
  max-width: 20ch;
  margin-inline: auto;
}
.manifesto-em { display: block; margin-top: 0.55em; font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--hairline);
  padding-block: clamp(2.75rem, 6vw, 4rem);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.75rem, 4vw, 3rem);
}
.footer-brand { display: flex; align-items: center; gap: 1.1rem; }
.footer-brand img { width: 42px; opacity: 0.92; }
.footer-name {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-tag { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; }

.footer-meta {
  text-align: right;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.footer-meta p + p { margin-top: 0.3rem; }

@media (max-width: 620px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
/* Hidden only once JS has confirmed it can reveal them again. Without the
   .js class (script blocked, failed, or disabled) content renders normally. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.11s; }
.js .reveal[data-delay="2"] { transition-delay: 0.22s; }
.js .reveal[data-delay="3"] { transition-delay: 0.33s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .scroll-cue { display: none; }
}
