/* ==========================================================================
   FTX Solutions — v7
   Palette: slate + copper.  Type: Source Serif 4 / Source Sans 3.
   Flat: no drop shadows, no gradients.
   ========================================================================== */

:root {
  --ink:       #1D2B32;
  --ink-2:     #31454E;
  --ink-line:  #3C4F58;
  --slate:     #55666F;
  --slate-lt:  #8C9BA3;
  --slate-txt: #4A5C66;

  --copper:      #B4643C;
  --copper-deep: #8C4A29;
  --copper-lt:   #D98E62;
  --copper-ink:  #713A1F;

  --linen:  #F5F1EA;
  --linen-2:#EDE7DC;
  --white:  #FDFBF7;
  --line:   #DFD8CB;
  --line-2: #C9C0AF;

  --serif: "Source Serif 4", Georgia, serif;
  --sans:  "Source Sans 3", system-ui, -apple-system, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1140px;
  --gut: clamp(22px, 5vw, 56px);
  --r: 2px;

  /* spacing scale — replaces ad-hoc inline margins */
  --s1: 8px;
  --s2: 14px;
  --s3: 22px;
  --s4: 32px;
  --s5: 46px;
  --s6: 68px;

  /* vertical section intervals — deliberately unequal */
  --sec-tall: clamp(78px, 10vw, 128px);
  --sec-mid:  clamp(58px, 7.5vw, 96px);
  --sec-tight: clamp(38px, 5vw, 60px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; }
h1 { letter-spacing: -.022em; }
h2 { letter-spacing: -.014em; }
p { margin: 0 0 1.15em; }
a { color: var(--copper-deep); }
a:hover { color: var(--copper-ink); }
b, strong { font-weight: 600; }

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

.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 99; }
.skip:focus { left: 14px; top: 14px; }

/* Type utilities ------------------------------------------------------- */

.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--copper-deep); margin: 0 0 var(--s3);
}
.hero .eyebrow { color: var(--copper-lt); }

.lede { font-size: clamp(19px, 2vw, 22px); line-height: 1.52; color: var(--slate-txt); max-width: 54ch; }

/* Buttons — flat ------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: .005em;
  padding: 15px 30px; border: 1px solid var(--copper-deep);
  border-radius: var(--r); background: var(--copper-deep); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { background: var(--copper-ink); border-color: var(--copper-ink); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

.on-dark .btn, .hero .btn { background: var(--copper-deep); border-color: var(--copper-deep); }
.on-dark .btn:hover, .hero .btn:hover { background: var(--copper-deep); border-color: var(--copper-deep); }

.textlink {
  font-size: 16px; font-weight: 600; text-decoration: none; color: var(--copper-lt);
  border-bottom: 1px solid var(--copper-deep); padding-bottom: 2px;
}
.textlink:hover { color: #fff; border-bottom-color: var(--copper-lt); }

/* Logotype ------------------------------------------------------------- */

.brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  text-decoration: none; white-space: nowrap; color: var(--ink);
}
.brand__ftx { font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: .06em; }
.brand__bar { width: 1px; height: 19px; background: var(--line-2); align-self: center; }
.brand__sol { font-family: var(--serif); font-size: 23px; font-weight: 400; font-style: italic; letter-spacing: -.01em; color: var(--copper-deep); }
.brand__est { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .16em; color: var(--slate); }

/* Header --------------------------------------------------------------- */

.site-header {
  background: var(--linen); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
  transition: background .18s ease, border-color .18s ease;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 78px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 15.5px; text-decoration: none; color: var(--slate);
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .18s ease;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); font-weight: 600; border-bottom-color: var(--copper); }
.nav .btn { color: #fff; background: var(--copper-deep); border-color: var(--copper-deep); margin-left: 12px; padding: 13px 24px; font-size: 15.5px; }
.nav .btn:hover { color: #fff; }

/* Hero ----------------------------------------------------------------- */

.hero { background: var(--ink); color: var(--linen); }
.hero .wrap { padding-block: var(--sec-tall); }
.hero h1 { font-size: clamp(42px, 5.6vw, 68px); max-width: 16ch; margin-bottom: var(--s4); }
.hero h1 em { font-style: italic; color: var(--copper-lt); }
.hero .lede { color: #C8D3D9; max-width: 46ch; }
.hero-cta { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.hero-note { font-size: 14.5px; color: var(--slate-lt); }

/* Home hero: statement + guarantee rail */
.hero--split .wrap {
  display: grid; grid-template-columns: 1fr 300px; gap: 0;
}
.hero--split .hero__main { padding-right: clamp(24px, 4vw, 56px); }
.hero__rail {
  border-left: 1px solid var(--ink-line);
  padding: 0 0 0 clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s2);
}
.hero__rail-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-lt); margin: 0; }
.hero__rail-claim { font-family: var(--serif); font-size: 27px; line-height: 1.22; color: var(--linen); margin: 0; }
.hero__rail p { font-size: 15.5px; line-height: 1.55; color: #9FAEB6; margin: 0; }
.hero__rail .textlink { align-self: flex-start; margin-top: var(--s1); }

/* Sections ------------------------------------------------------------- */

.section { padding: var(--sec-mid) 0; }
.section--tall { padding: var(--sec-tall) 0; }
.section--tight { padding: var(--sec-tight) 0; }
.section--alt { background: var(--linen-2); border-block: 1px solid var(--line); }
.section--rule { border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(31px, 3.9vw, 44px); max-width: 22ch; margin-bottom: var(--s3); }

.on-dark { background: var(--ink); color: var(--linen); }
.on-dark h2 { color: var(--linen); }
.on-dark p { color: #BDCAD1; }

figure { margin: 0; }

/* Focus areas ---------------------------------------------------------- */

.focus {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 5vw, 56px);
  border-top: 1px solid var(--line-2); margin-top: var(--s5);
}
.focus__item {
  display: flex; align-items: baseline; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.focus__n { font-family: var(--mono); font-size: 12px; color: var(--copper-deep); flex: none; }
.focus__t { font-family: var(--serif); font-size: clamp(20px, 2.1vw, 24px); line-height: 1.2; color: var(--ink); }
.focus__item a { text-decoration: none; font-family: var(--sans); font-size: 16px; font-weight: 600; }
.focus__item a:hover { text-decoration: underline; }

/* Credibility strip ---------------------------------------------------- */

.creds { background: var(--linen-2); border-block: 1px solid var(--line); padding: var(--s3) 0; }
.creds .wrap { display: flex; flex-wrap: wrap; gap: 10px 40px; align-items: center; }
.creds__label { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.creds ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; padding: 0; }
.creds li { font-size: 15px; color: var(--ink); }

/* Cards ---------------------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: var(--s4); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px; }
.card h3 { font-size: 22px; margin-bottom: var(--s1); }
.card p { margin: 0; color: var(--slate-txt); font-size: 16px; }

/* Steps ---------------------------------------------------------------- */

.steps { counter-reset: s; margin-top: var(--s5); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step:first-child { border-top: 1px solid var(--line-2); }
.step__n { counter-increment: s; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--copper-deep); padding-top: 9px; }
.step__n::before { content: counter(s, decimal-leading-zero); }
.step h3 { font-size: 23px; margin-bottom: var(--s1); }
.step p { margin: 0; color: var(--slate-txt); }

/* Versus --------------------------------------------------------------- */

.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: var(--s4); }
.versus > div { padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.versus .is-us { border-color: var(--ink); }
.versus h3 { font-size: 20px; margin-bottom: var(--s1); }
.versus p { margin: 0; color: var(--slate-txt); font-size: 16px; }

/* Services list -------------------------------------------------------- */

.svc__row { display: grid; grid-template-columns: 250px 1fr; gap: clamp(18px, 4vw, 52px); padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.svc__row:first-child { border-top: 1px solid var(--line-2); }
.svc__row h3 { font-size: 24px; }
.svc__row p { margin: 0; color: var(--slate-txt); }
.svc__row ul { margin: 12px 0 0; padding-left: 18px; color: var(--slate); font-size: 16px; }
.svc__row li { margin-bottom: 3px; }

/* Closing CTA — full-bleed slate, no card ------------------------------ */

.close { background: var(--ink); color: var(--linen); padding: var(--sec-tall) 0; }
.close h2 { font-size: clamp(32px, 4.2vw, 48px); max-width: 22ch; margin-bottom: var(--s3); color: var(--linen); }
.close p { color: #BDCAD1; max-width: 54ch; font-size: 18px; }
.close .eyebrow { color: var(--copper-lt); }
.close .btn { margin-top: var(--s4); }

/* Statement band — a section transition made of type ------------------- */

.statement { background: var(--ink); color: var(--linen); padding: var(--sec-mid) 0; }
.statement__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-lt); margin: 0 0 var(--s3); }
.statement p.statement__line {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.14; letter-spacing: -.016em;
  color: var(--linen); max-width: 30ch; margin: 0;
}
.statement__foot { font-size: 16.5px; line-height: 1.6; color: #9FAEB6; max-width: 52ch; margin: var(--s4) 0 0; }

/* Color-field device (5b) — recurs on every statement band ------------- */

.statement__grid { display: grid; grid-template-columns: 1fr 220px; gap: clamp(28px, 5vw, 64px); align-items: center; }
.fields { position: relative; height: 212px; width: 220px; justify-self: end; }
.fields div { position: absolute; }
.fields .f1 { left: 0; top: 0; width: 124px; height: 124px; background: var(--ink-2); }
.fields .f2 { left: 48px; top: 48px; width: 124px; height: 124px; background: var(--slate); }
.fields .f3 { left: 96px; top: 96px; width: 124px; height: 94px; background: var(--linen-2); }
.fields .f4 { left: 0; top: 206px; width: 220px; height: 3px; background: var(--copper); }
.fields--lg { width: 300px; height: 290px; }
.fields--lg .f1 { width: 170px; height: 170px; }
.fields--lg .f2 { left: 65px; top: 65px; width: 170px; height: 170px; }
.fields--lg .f3 { left: 130px; top: 130px; width: 170px; height: 124px; }
.fields--lg .f4 { top: 282px; width: 300px; }
.fields--onlight .f3 { background: var(--slate-lt); }
@media (max-width: 700px) {
  .statement__grid { grid-template-columns: 1fr; }
  .fields { justify-self: start; margin-top: var(--s3); }
}

/* Steps ruler (4b) — four steps, four exits ----------------------------- */

.ruler { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); margin-top: var(--s5); }
.ruler > div { padding: 14px 14px 0 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.ruler > div + div { padding-left: 14px; }
.ruler > div:last-child { border-right: 0; padding-right: 0; }
.ruler__n { font-family: var(--mono); font-size: 12px; color: var(--copper-deep); }
.ruler__t { font-family: var(--serif); font-size: 18px; line-height: 1.25; color: var(--ink); }
.ruler__x { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); margin-top: auto; padding-top: 16px; }
.ruler__x--final { color: var(--copper-deep); }
@media (max-width: 700px) {
  .ruler { grid-template-columns: 1fr 1fr; border-top: 0; margin-top: var(--s4); }
  .ruler > div { border-right: 0; border-top: 2px solid var(--ink); padding: 12px 8px 16px 0; }
  .ruler > div + div { padding-left: 0; }
}

/* Problem section: copy + optional figure ------------------------------ */

.problem { display: grid; grid-template-columns: 1fr; gap: clamp(30px, 4vw, 52px); align-items: start; }
.problem--withfig { grid-template-columns: 1fr 380px; }
.problem--withfig .fields { align-self: center; }
@media (max-width: 900px) {
  .problem--withfig { grid-template-columns: 1fr; }
  .problem--withfig .fields { display: none; }
}

/* Split (contact) ------------------------------------------------------ */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 80px); align-items: start; }

/* Form ----------------------------------------------------------------- */

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(28px, 4vw, 42px); }
.field { margin-bottom: var(--s3); }
.field label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: var(--s1); }
.field .hint { font-weight: 400; color: var(--slate); }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16.5px;
  padding: 13px 14px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: #fff; color: var(--ink); transition: border-color .18s ease;
}
.field textarea { min-height: 124px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.form-note { font-size: 14px; color: var(--slate); margin: var(--s3) 0 0; }

/* Prose ---------------------------------------------------------------- */

.prose { max-width: 66ch; }
.prose h3 { font-size: 25px; margin: var(--s5) 0 var(--s2); }
.prose p { color: var(--slate-txt); }

/* Footer --------------------------------------------------------------- */

.site-footer { background: var(--ink); color: var(--slate-lt); padding: var(--s5) 0; font-size: 15px; border-top: 1px solid var(--ink-line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--copper-lt); text-decoration: none; }
.site-footer a:hover { color: var(--copper-lt); text-decoration: underline; }

/* Thank you ------------------------------------------------------------ */

.center-page { text-align: center; padding: clamp(80px, 13vw, 160px) 0; }
.center-page h1 { font-size: clamp(36px, 5.2vw, 56px); margin-bottom: var(--s3); }
.center-page .lede { margin: 0 auto var(--s5); }
.center-page .eyebrow { text-align: center; }
.tick {
  width: 52px; height: 52px; margin: 0 auto var(--s4);
  border: 1px solid var(--copper); border-radius: 50%;
  display: grid; place-items: center;
  color: var(--copper); font-size: 21px;
}

/* Mobile menu — full sheet --------------------------------------------- */

.mnav { display: none; }
.mnav summary {
  list-style: none; cursor: pointer;
  width: 48px; height: 48px; margin-right: -12px;
  display: grid; place-items: center; user-select: none;
}
.mnav summary::-webkit-details-marker { display: none; }
.bars { width: 20px; height: 2px; background: var(--ink); position: relative; display: block; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.mnav[open] .bars { background: transparent; }
.mnav[open] .bars::before { top: 0; transform: rotate(45deg); background: var(--linen); }
.mnav[open] .bars::after { top: 0; transform: rotate(-45deg); background: var(--linen); }

.mnav__panel {
  position: fixed; left: 0; right: 0; top: 64px; bottom: 0;
  background: var(--ink); z-index: 35;
  padding: 12px var(--gut) 28px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mnav__panel a {
  font-family: var(--serif); font-size: 28px; color: var(--linen);
  text-decoration: none; padding: 20px 0; border-bottom: 1px solid var(--ink-line);
}
.mnav__panel a:last-of-type { border-bottom: 0; }
.mnav__panel .btn { margin-top: var(--s3); text-align: center; font-family: var(--sans); font-size: 17px; padding: 17px 26px; border-bottom: 1px solid var(--copper); }
.mnav__panel .mnav__note { font-size: 14px; color: var(--slate-lt); margin: var(--s2) 0 0; }

/* header inverts while the sheet is open */
.site-header:has(.mnav[open]) { background: var(--ink); border-bottom-color: var(--ink-line); }
.site-header:has(.mnav[open]) .brand__ftx { color: var(--linen); }
.site-header:has(.mnav[open]) .brand__sol { color: var(--copper-lt); }
.site-header:has(.mnav[open]) .brand__bar { background: var(--ink-line); }

/* Persistent mobile CTA ------------------------------------------------- */

.mcta { display: none; }

/* Responsive ------------------------------------------------------------ */

@media (max-width: 980px) {
  .hero--split .wrap { grid-template-columns: 1fr; }
  .hero--split .hero__main { padding-right: 0; }
  .hero__rail {
    border-left: 0; border-top: 1px solid var(--ink-line);
    padding: var(--s4) 0 0; margin-top: var(--s5);
    max-width: 46ch;
  }
}
@media (max-width: 900px) {
  .split, .versus { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .svc__row { grid-template-columns: 1fr; gap: 10px; }
  .focus { grid-template-columns: 1fr; }
  .nav { display: none; }
  .mnav { display: block; }
  .site-header .wrap { min-height: 64px; }

  .mcta {
    display: flex; align-items: center; gap: 14px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--linen); border-top: 1px solid var(--line);
    padding: 12px var(--gut);
  }
  .mcta .btn { flex: 1; text-align: center; }
  .mcta span { font-size: 13px; line-height: 1.35; color: var(--slate); width: 92px; }
  body.has-mcta { padding-bottom: 84px; }
}
@media (max-width: 560px) {
  .step { grid-template-columns: 38px 1fr; gap: 16px; }
  .creds { padding: 18px 0; }
  .creds .wrap { display: block; }
  .creds__label { font-size: 11px; }
  .creds ul { display: block; margin-top: 4px; }
  .creds li { font-size: 14px; line-height: 1.45; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .creds li:last-child { border-bottom: 0; padding-bottom: 0; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}


/* A11y: minimum tap targets on touch devices */
@media (max-width: 900px) {
  .btn, .link-cta, .mcta a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .brand { min-height: 44px; }
}


/* Contact hero — form sits beside the headline, above the fold ---------- */

.hero--form .wrap {
  display: grid;
  grid-template-columns: 1fr minmax(380px, 460px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: var(--sec-mid);
}
.hero--form h1 { font-size: clamp(34px, 4vw, 50px); max-width: 14ch; }
.hero--form .lede { font-size: clamp(17.5px, 1.7vw, 19.5px); max-width: 40ch; }
.hero__reply {
  margin: var(--s3) 0 0; font-size: 15px; color: #9FAEB6;
  border-left: 2px solid var(--copper); padding-left: 14px;
}
.hero--form .form-card { background: var(--white); }
.hero--form .form-card label { color: var(--ink); }

@media (max-width: 900px) {
  .hero--form .wrap { grid-template-columns: 1fr; gap: var(--s4); padding-block: var(--s5); }
  .hero--form h1 { font-size: clamp(30px, 8vw, 38px); max-width: 100%; }
  .hero--form .lede { max-width: 100%; }
  .hero__reply { display: none; }
}


.next { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); margin-top: var(--s2); }
.next h3 { font-size: 20px; margin-bottom: 8px; }
.next p { margin: 0; color: var(--slate-txt); font-size: 16px; }
@media (max-width: 900px) { .next { grid-template-columns: 1fr; gap: var(--s4); } }
