/* Digital Forge v1. Tokens from the owner's brand board (2026-10-29): Primary Navy #0A1F44, Accent Blue #2563FF,
   Metallic Silver #C9CED4, White, Dark #0B0B0F; typeface Montserrat. Contrast checked (tests/site.test.mjs). */

@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --dark: #0B0B0F;
  --navy: #0A1F44;
  --blue: #2563FF;
  --blue-text: #6E97FF;   /* the accent for small text on dark and navy (7.05:1 and 5.83:1) */
  --silver: #C9CED4;
  --white: #FFFFFF;
  --ink: #F2F4F7;         /* running text on dark */
  --ink-dark: #0B0B0F;    /* running text on silver */
  --surface: #12172A;     /* one tone step above dark */

  --font: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
  --step-hero: clamp(2.75rem, 1.2rem + 4.6vw, 5.75rem);
  --step-h2: clamp(2rem, 1.3rem + 3vw, 4rem);
  --step-h3: 1.25rem;
  --step-body: 1.125rem;
  --step-small: 0.9375rem;

  --gutter: clamp(1rem, 0.4rem + 3vw, 3rem);
  --section: clamp(5rem, 3rem + 8vw, 10rem);
  --max: 82rem;
  --radius: 0.375rem;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue-text); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blue); color: var(--white); }

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

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  background: var(--white); color: var(--dark); padding: 0.75rem 1rem; font-weight: 600;
}
.skip:focus { top: 0.75rem; }

h2 {
  font-size: var(--step-h2);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 16ch;
  color: var(--white);
}
h3 { font-size: var(--step-h3); font-weight: 650; line-height: 1.25; color: var(--white); }

/* Buttons: one fill, square-ish corners, decided once. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0 1.5rem;
  border-radius: var(--radius);
  font: 600 1rem/1 var(--font);
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: #1F55E0; }
.btn--quiet { background: var(--surface); color: var(--ink); }
.btn--quiet:hover { background: #1A2138; }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--silver); }
.btn--small { min-height: 2.75rem; padding: 0 1.1rem; font-size: 0.9375rem; }
.btn__arrow { width: 1.1rem; height: 1.1rem; transition: transform 160ms var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Bar: wordmark, four links, one action. */
.bar { position: sticky; top: 0; z-index: 5; background: var(--dark); }
.bar__inner { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; margin-right: auto; }
.brand__mark { display: block; padding: 0.25rem; border-radius: 50%;
  /* a soft navy glow behind the metallic emblem so its navy D separates from the dark bar (the logo itself is untouched) */
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 255, 0.32) 0%, rgba(15, 38, 80, 0.5) 48%, rgba(11, 11, 15, 0) 72%); }
.brand__mark img { display: block; height: 3.25rem; width: auto; }
.brand__word { font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 1.05rem; color: var(--white); }
.nav { display: flex; gap: 1.75rem; }
.nav a { text-decoration: none; font-weight: 500; font-size: var(--step-small); color: var(--silver); }
.nav a:hover { color: var(--white); }

/* Hero: the tagline set huge, the search-to-call example beside it. */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 7rem) var(--section); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero__title {
  font-size: var(--step-hero);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--white);
  max-width: 14ch;
}
.hero__lede { margin-top: 2rem; max-width: 34ch; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); line-height: 1.45; color: var(--ink); font-weight: 400; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }

/* The example ad: a real interface fragment, so it keeps its own panels. */
.demo { background: var(--surface); border-radius: 0.75rem; padding: clamp(1.25rem, 0.8rem + 1.5vw, 2rem); display: grid; gap: 1.25rem; }
.demo__result { display: grid; gap: 1.25rem; }
.demo__trades { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.demo__trades legend { font-size: var(--step-small); color: var(--silver); margin-bottom: 0.75rem; padding: 0; }
.demo__trades label {
  position: relative; cursor: pointer;
  padding: 0.55rem 0.9rem; border-radius: 999px;
  background: #1B2238; color: var(--ink); font-size: 0.9375rem; font-weight: 500;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.demo__trades label:active { transform: scale(0.97); }
.demo__trades input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.demo__trades label:has(input:checked) { background: var(--blue); color: var(--white); }
.demo__trades label:has(input:focus-visible) { outline: 3px solid var(--blue-text); outline-offset: 2px; }
.demo__search {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--white); color: #1F2430; border-radius: 999px;
  padding: 0.9rem 1.1rem; font-size: 1.0625rem; font-weight: 500;
}
.demo__search svg { width: 1.25rem; height: 1.25rem; flex: none; color: #5B6170; }
.demo__ad { background: var(--white); color: #1F2430; border-radius: 0.6rem; padding: 1.1rem 1.2rem 1.25rem; display: grid; gap: 0.35rem; }
.demo__sponsored { font-size: 0.8125rem; color: #4A5060; }
.demo__headline { font-size: 1.25rem; font-weight: 650; line-height: 1.25; color: #1A3FB8; }
.demo__text { font-size: 0.9375rem; color: #3A4050; }
.demo__call {
  justify-self: start; margin-top: 0.6rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--blue); color: var(--white); border-radius: 999px;
  padding: 0.55rem 1rem; font-size: 0.9375rem; font-weight: 600;
}
.demo__call svg { width: 1rem; height: 1rem; }
.demo__call.is-ringing { animation: ring 700ms var(--ease-out) 1; }
.demo figcaption { font-size: var(--step-small); color: var(--silver); }
@keyframes ring { 0% { transform: scale(1); } 35% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* Services: a whole navy field, heading left, the five services as a list right. */
.services { background: var(--navy); padding-block: var(--section); }
.services__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: start; }
.services__intro p { margin-top: 1.5rem; max-width: 36ch; color: var(--silver); }
.services__list { display: grid; gap: clamp(1.75rem, 1.2rem + 1.5vw, 2.75rem); }
.services__list li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1.25rem; }
.services__list svg { width: 2.25rem; height: 2.25rem; color: var(--blue-text); margin-top: 0.1rem; }
.services__list h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); }
.services__list p { margin-top: 0.4rem; color: var(--silver); max-width: 52ch; }

/* How we work: a real sequence, read left to right. */
.how { padding-block: var(--section); }
.how__path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 0.5rem + 2vw, 2.5rem); margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); counter-reset: none; }
.how__path li { padding-top: 1.5rem; border-top: 4px solid var(--blue); }
.how__path li:nth-child(n+2) { border-top-color: #1F3B7A; }
.how__path p { margin-top: 0.75rem; color: var(--silver); }

/* Fit: the one light field on the page. */
.fit { background: var(--silver); color: var(--ink-dark); padding-block: var(--section); }
.fit h2 { color: var(--navy); max-width: 22ch; }
.fit__grid { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.fit__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: start; }
.fit__body p { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5; max-width: 40ch; }
.fit__trades { display: flex; flex-wrap: wrap; gap: 0.5rem; align-content: start; }
.fit__trades li { background: var(--navy); color: var(--white); padding: 0.6rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; }

/* Reporting. */
.reporting { padding-block: var(--section); }
.reporting__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 1rem + 5vw, 6rem); }
.reporting__lede { margin-top: 1.5rem; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); max-width: 38ch; }
.reporting__facts { display: grid; gap: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem); align-content: start; }
.reporting__facts dt { font-weight: 650; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); color: var(--blue-text); }
.reporting__facts dd { margin-top: 0.4rem; color: var(--silver); }

/* About. */
.about { background: var(--navy); padding-block: var(--section); }
.about__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.about__picture { display: block; }
.about__mark { display: block; width: 100%; max-width: 15rem; height: auto; }
.about p { margin-top: 1.5rem; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); max-width: 40ch; }

/* Contact: the blue field closes the page. */
.contact { background: var(--blue); color: var(--white); padding-block: var(--section); }
.contact h2 { color: var(--white); }
.contact :focus-visible { outline-color: var(--white); } /* the default ring is 1.75:1 on blue */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: end; }
.contact__body p { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); max-width: 38ch; }
.contact__body .btn { margin-top: 2rem; }
.contact__email { margin-top: 1rem; font-size: var(--step-body) !important; font-weight: 600; }
.contact__phones { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: 0.35rem; font-size: var(--step-body); }
.contact__phones span { display: inline-block; min-width: 7.5rem; opacity: 0.9; }
.contact__phones a { color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

/* Footer: the name returns at full width. */
.foot { padding-block: clamp(3rem, 2rem + 4vw, 6rem) 2rem; }
.foot__word { font-size: clamp(3rem, 0.5rem + 11.2vw, 11rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.9; text-transform: uppercase; color: var(--white); white-space: nowrap; }
.foot__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; color: var(--silver); font-size: var(--step-small); }

/* One page-load moment: the hero settles in. Content is visible without script and with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title, .js .hero__lede, .js .hero__actions, .js .demo { animation: rise 700ms var(--ease-out) both; }
  .js .hero__lede { animation-delay: 80ms; }
  .js .hero__actions { animation-delay: 160ms; }
  .js .demo { animation-delay: 240ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Tablet. */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero__grid, .services__grid, .reporting__grid, .fit__body, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .how__path { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__mark { max-width: 9rem; }
}

/* iPhone width. */
@media (max-width: 620px) {
  .bar__inner { gap: 1rem; min-height: 4rem; }
  .brand__word { font-size: 0.95rem; }
  .brand__mark img { height: 2.75rem; }
  .hero__lede { margin-top: 1.5rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .how__path { grid-template-columns: minmax(0, 1fr); }
  .services__list li { gap: 1rem; grid-template-columns: 2.25rem minmax(0, 1fr); }
  .services__list svg { width: 1.75rem; height: 1.75rem; }
  .foot__word { white-space: normal; }
}
@media (max-width: 380px) {
  .btn--small { display: none; }
}
