@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-var.woff2") format("woff2-variations"), url("assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
/* Forge Stack Partners — site styles
   Palette pulled from the logo: navy wordmark, copper block, charcoal block. */
:root {
  --navy: #1C2A3E;
  --navy-deep: #111B2A;
  --copper: #C8763A;
  --copper-deep: #9A5228;
  --ember: #F0913A;
  --charcoal: #3E4246;
  --steel: #6C9BC9;
  --paper: #F1F3F6;
  --white: #FFFFFF;
  --ink: #1C2A3E;
  --ink-soft: #4A5568;
  --line: #D6DCE4;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 118;   /* expanded width for display type */

  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--font);
  font-variation-settings: "wdth" var(--wide);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); font-weight: 750; max-width: 22ch; }
h3 { font-size: 1.25rem; font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; margin-bottom: 2.5rem; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 8px 14px; border-radius: 6px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  font: 700 1rem/1 var(--font);
  font-variation-settings: "wdth" 105;
  text-decoration: none;
  color: var(--white);
  background: var(--copper);
  border: 2px solid var(--copper);
  padding: 16px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--copper-deep); border-color: var(--copper-deep); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); }
.btn--small { padding: 10px 18px; font-size: .95rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 27, 42, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--white);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; }
.brand__name {
  display: flex; flex-direction: column;
  font-weight: 800; font-size: 1.2rem; line-height: 1;
  font-variation-settings: "wdth" 120;
}
.brand__name small {
  font-weight: 600; font-size: .68rem; letter-spacing: .4em;
  color: var(--copper); margin-top: 5px;
  font-variation-settings: "wdth" 110;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) {
  text-decoration: none; font-size: .95rem; color: rgba(255,255,255,.78);
}
.nav__links a:not(.btn):hover { color: var(--white); }
.nav__toggle {
  display: none; background: none; color: var(--white);
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  padding: 8px 16px; font: 600 .9rem var(--font); cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 78% 55%, rgba(200,118,58,.20), transparent 60%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 15ch; }
.lede { font-size: 1.2rem; color: rgba(255,255,255,.8); max-width: 52ch; margin: 1.2em 0 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 2rem; font-size: .95rem; color: rgba(255,255,255,.55); }

/* Hero diagram: the one orchestrated moment on the page */
.forge { margin: 0; }
.forge svg { width: 100%; height: auto; overflow: visible; }
.chip rect { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.22); }
.chip text {
  fill: rgba(255,255,255,.88); font: 600 14px var(--font);
  text-anchor: middle;
}
.flows path { opacity: .55; stroke-dasharray: 4 6; }
.sparks circle { fill: var(--ember); filter: drop-shadow(0 0 6px var(--ember)); }
.layer text {
  fill: var(--white); font: 700 15px var(--font);
  font-variation-settings: "wdth" 115; text-anchor: middle;
}
.layer--1 .top { fill: var(--copper); }
.layer--1 .side-l { fill: var(--copper-deep); }
.layer--1 .side-r { fill: #B9692F; }
.layer--2 .top { fill: #4E6B8F; }
.layer--2 .side-l { fill: #2E3F57; }
.layer--2 .side-r { fill: #3B5272; }
.layer--3 .top { fill: var(--charcoal); }
.layer--3 .side-l { fill: #2A2D30; }
.layer--3 .side-r { fill: #55595D; }
.outputs text { fill: var(--white); font: 700 17px var(--font); text-anchor: middle; font-variation-settings: "wdth" 110; }
.outputs .outputs__sub { fill: rgba(255,255,255,.6); font-weight: 500; font-size: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .chip { opacity: 0; animation: in-left .6s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.15s + var(--i) * .09s); }
  .flows path { stroke-dashoffset: 0; animation: dash 1.2s linear infinite; }
  .layer { opacity: 0; animation: drop .7s cubic-bezier(.2,.8,.2,1.15) forwards; animation-delay: calc(.7s + (2 - var(--d)) * .18s); }
  .outputs { opacity: 0; animation: fade .6s ease forwards 1.5s; }
  .forge__glow { animation: breathe 4s ease-in-out infinite; transform-origin: 395px 260px; }
  .sparks { opacity: 0; animation: fade .4s ease forwards 1.2s; }
}
@media (prefers-reduced-motion: reduce) {
  .sparks { display: none; }
}
@keyframes in-left { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes dash { to { stroke-dashoffset: -20; } }
@keyframes breathe { 50% { opacity: .7; transform: scale(1.05); } }

/* Problem */
.problem { padding: var(--section) 0; background: var(--white); }
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.problem p { color: var(--ink-soft); font-size: 1.15rem; max-width: 52ch; }
.leaks { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.leaks li {
  padding: 22px 0 22px 36px; border-bottom: 1px solid var(--line);
  position: relative; color: var(--ink-soft);
}
.leaks li::before {
  content: ""; position: absolute; left: 4px; top: 30px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--copper); background: var(--white);
}
.leaks strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 2px; }

/* What a stack is */
.stackflow { padding: var(--section) 0; background: var(--paper); }
.flow {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  counter-reset: flow;
}
.flow li {
  position: relative; padding: 28px 22px 8px 0;
  border-top: 4px solid var(--navy);
}
.flow li:nth-child(1) { border-color: var(--copper); }
.flow li:nth-child(2) { border-color: #B56A35; }
.flow li:nth-child(3) { border-color: #7E6A5C; }
.flow li:nth-child(4) { border-color: #4E5E73; }
.flow li:nth-child(5) { border-color: var(--navy); }
.flow li::after {
  content: ""; position: absolute; top: -10px; right: 10px;
  width: 0; height: 0;
  border-left: 10px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
  color: inherit;
}
.flow li:last-child::after { display: none; }
.flow li:nth-child(1)::after { color: var(--copper); }
.flow li:nth-child(2)::after { color: #B56A35; }
.flow li:nth-child(3)::after { color: #7E6A5C; }
.flow li:nth-child(4)::after { color: #4E5E73; }
.flow__k {
  display: block; font-weight: 800; font-size: 1.2rem;
  font-variation-settings: "wdth" 115; margin-bottom: 8px;
}
.flow p { color: var(--ink-soft); font-size: 1rem; }

/* Build */
.build { padding: var(--section) 0; }
.services {
  display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto auto;
  gap: 2px; background: var(--line); border: 2px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-top: 2.5rem;
}
.service { background: var(--white); padding: clamp(24px, 3vw, 40px); }
.service p { color: var(--ink-soft); margin: 0; }
.service--feature {
  grid-row: 1 / span 3;
  background: var(--navy); color: var(--white);
  display: flex; flex-direction: column; justify-content: center;
}
.service--feature h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.service--feature p { color: rgba(255,255,255,.78); font-size: 1.12rem; max-width: 46ch; }
.service--feature ul { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 10px; }
.service--feature li { padding-left: 26px; position: relative; font-weight: 600; }
.service--feature li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 12px; height: 12px; background: var(--copper);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* Examples */
.examples { padding: var(--section) 0; background: var(--navy-deep); color: var(--white); }
.examples .section-lede { color: rgba(255,255,255,.7); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs button {
  font: 600 .98rem var(--font); color: rgba(255,255,255,.8);
  background: transparent; border: 1.5px solid rgba(255,255,255,.22);
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.tabs button:hover { border-color: rgba(255,255,255,.6); color: var(--white); }
.tabs button[aria-selected="true"] { background: var(--copper); border-color: var(--copper); color: var(--white); }
.example { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: var(--radius); overflow: hidden; }
.example__col { padding: clamp(24px, 3vw, 40px); }
.example__col--before { background: rgba(255,255,255,.05); }
.example__col--after { background: linear-gradient(160deg, rgba(200,118,58,.28), rgba(200,118,58,.10)); }
.example h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.example__col--before h3 { color: rgba(255,255,255,.6); }
.example__col--after h3 { color: #FFC08A; }
.example ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.example li { padding-left: 26px; position: relative; line-height: 1.5; }
.example__col--before li { color: rgba(255,255,255,.72); }
.example__col--before li::before { content: "\2715"; position: absolute; left: 0; color: rgba(255,255,255,.4); font-size: .85em; }
.example__col--after li::before { content: "\2713"; position: absolute; left: 0; color: var(--ember); font-weight: 800; }
.example.is-swapping ul { opacity: 0; transform: translateY(6px); }
.example ul { transition: opacity .25s, transform .25s; }

/* Process */
.process { padding: var(--section) 0; }
.steps {
  list-style: none; padding: 0; margin: 3rem 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px);
  position: relative;
}
.steps::before {
  content: ""; position: absolute; left: 28px; right: calc(25% - 28px); top: 28px; height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--copper), var(--steel), var(--copper-deep));
}
.step { position: relative; }
.step__n {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--navy); color: var(--navy);
  font-weight: 800; font-size: 1.3rem; margin-bottom: 22px; position: relative;
}
.step:nth-child(2) .step__n { border-color: var(--copper); color: var(--copper-deep); }
.step:nth-child(3) .step__n { border-color: var(--steel); color: #3B6B9A; }
.step:nth-child(4) .step__n { border-color: var(--copper-deep); color: var(--copper-deep); }
.step p { color: var(--ink-soft); }

/* About */
.about { padding: var(--section) 0; background: var(--paper); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); }
.about p { font-size: 1.15rem; color: var(--ink-soft); max-width: 54ch; }

/* FAQ */
.faq { padding: var(--section) 0; }
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq__list { border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 700; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px;
  margin-top: -9px;
  border-right: 2.5px solid var(--copper); border-bottom: 2.5px solid var(--copper);
  transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--ink-soft); padding-bottom: 22px; max-width: 60ch; }

/* Contact */
.contact {
  padding: var(--section) 0;
  background:
    radial-gradient(700px 500px at 10% 100%, rgba(200,118,58,.22), transparent 60%),
    var(--navy);
  color: var(--white);
}
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact p { color: rgba(255,255,255,.78); font-size: 1.15rem; max-width: 46ch; }
.contact__direct a { color: #FFC08A; font-weight: 700; }
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: var(--white); color: var(--ink);
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  font: 400 1rem var(--font); color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(200,118,58,.2);
}
.field input[aria-invalid="true"] { border-color: #C0392B; }
.form .btn { margin-top: 4px; }
.form__status { margin: 0; font-size: .95rem; min-height: 1.4em; color: var(--ink-soft) !important; }
.form__status.is-error { color: #B03A2E !important; }
.form__status.is-ok { color: #2E7D4F !important; font-weight: 600; }

/* Footer */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.6); padding: 40px 0; font-size: .95rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer p { margin: 0; }
.brand--footer { color: var(--white); }

/* Responsive */
@media (max-width: 980px) {
  .hero__grid, .problem__grid, .about__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .forge { max-width: 560px; }
  .flow { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .flow li::after { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .services { grid-template-columns: 1fr; }
  .service--feature { grid-row: auto; }
}
@media (max-width: 760px) {
  .nav__toggle { display: inline-block; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep); padding: 8px var(--pad) 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__links .btn { margin-top: 14px; }
  .example { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .flow, .steps { grid-template-columns: 1fr; }
  .brand__name { font-size: 1.05rem; }
}
