@font-face{font-family:'Space Grotesk';src:url('../fonts/space-grotesk-latin-500-normal.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Space Grotesk';src:url('../fonts/space-grotesk-latin-700-normal.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Instrument Sans';src:url('../fonts/instrument-sans-latin-400-normal.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Instrument Sans';src:url('../fonts/instrument-sans-latin-500-normal.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Instrument Sans';src:url('../fonts/instrument-sans-latin-600-normal.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}

/* ==========================================================================
   CHEM Marketing — core stylesheet
   Palette derived from the logo gradient: cyan #49C8E3 -> blue #5E90DC
   ========================================================================== */

:root {
  /* Brand */
  --cyan:        #49C8E3;
  --blue:        #5E90DC;
  --grad:        linear-gradient(160deg, var(--cyan) 0%, var(--blue) 100%);

  /* Ink */
  --ink:         #0A1424;
  --ink-2:       #132033;
  --ink-3:       #1E2F47;

  /* Paper */
  --paper:       #FFFFFF;
  --paper-2:     #F5F8FC;
  --line:        #E2E9F2;
  --line-dark:   rgba(255,255,255,.10);

  /* Text */
  --tx:          #101C2E;
  --tx-mute:     #5C6E86;
  --tx-inv:      #FFFFFF;
  --tx-inv-mute: #93A6BF;

  /* Type */
  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono:    'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* Metrics */
  --wrap: 1160px;
  --r:    14px;
  --r-sm: 8px;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html { background: var(--ink-2); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tx);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1.1em; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--cyan); color: var(--ink);
  padding: 12px 20px; font-weight: 600;
}
.skip:focus { left: 0; }

main { flex: 1 0 auto; background: var(--paper); }

/* ------------------------------------------------------------- eyebrow -- */
.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
  display: block;
}
.on-dark .eyebrow, .sec--ink .eyebrow { color: var(--cyan); }

.lede { font-size: 1.18rem; color: var(--tx-mute); max-width: 62ch; }
.sec--ink .lede { color: var(--tx-inv-mute); }

/* --------------------------------------------------------------- header -- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,20,36,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.hdr__in { display: flex; align-items: center; gap: 32px; height: 74px; }
.hdr__logo { flex: 0 0 auto; }
.hdr__logo img { height: 26px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: .95rem; font-weight: 500; text-decoration: none;
  color: var(--tx-inv-mute); transition: color .18s;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
/* buttons inside the nav must keep their own colour, not inherit the link colour */
.nav a.btn--primary, .nav a.btn--primary:hover { color: #06101F; }
.nav a.btn--ghost, .nav a.btn--ghost:hover { color: #fff; }

.burger {
  display: none; margin-left: auto;
  background: none; border: 0; cursor: pointer; padding: 10px;
}
.burger span {
  display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px;
}
.burger span + span { margin-top: 6px; }

/* --------------------------------------------------------------- button -- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-size: .96rem; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; border: 0;
  text-decoration: none; cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.btn--primary {
  background: var(--grad); color: #06101F;
  box-shadow: 0 6px 22px rgba(73,200,227,.28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(73,200,227,.4); }
.btn--ghost {
  background: transparent; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--dark {
  background: var(--ink); color: #fff;
}
.btn--dark:hover { transform: translateY(-2px); background: var(--ink-2); }

/* -------------------------------------------------------------- section -- */
.sec { padding: clamp(72px, 9vw, 128px) 0; }
.sec--paper { background: var(--paper-2); }
.sec--ink { background: var(--ink); color: var(--tx-inv); }
.sec--ink h2, .sec--ink h3 { color: #fff; }
.sec--tight { padding-block: clamp(56px, 6vw, 84px); }

.sec__head { max-width: 720px; margin-bottom: 56px; }

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: var(--tx-inv);
  padding: clamp(80px, 11vw, 148px) 0 clamp(72px, 9vw, 120px);
}
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 90%;
  background: radial-gradient(60% 60% at 30% 40%, rgba(73,200,227,.20), transparent 70%),
              radial-gradient(50% 50% at 78% 20%, rgba(94,144,220,.22), transparent 72%);
  pointer-events: none;
}
.hero__in { position: relative; }
.hero h1 { max-width: 16ch; margin-bottom: 24px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede { font-size: 1.22rem; color: var(--tx-inv-mute); max-width: 50ch; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* home hero: copy left, reaction graphic right */
.hero--home .hero__in { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 56px; align-items: center; }
.hero--home .compound { grid-column: 1 / -1; }
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; overflow: visible; }
.mol { animation: molIn 1s cubic-bezier(.2,.7,.3,1) both; transform-origin: 220px 200px; }
.mol__label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mol__sym {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
}
@keyframes molIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.node { animation: bob 7s ease-in-out infinite; transform-origin: 220px 200px; }
.node:nth-child(2) { animation-delay: -1.1s; }
.node:nth-child(3) { animation-delay: -2.3s; }
.node:nth-child(4) { animation-delay: -3.4s; }
.node:nth-child(5) { animation-delay: -4.6s; }
.node:nth-child(6) { animation-delay: -5.7s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (max-width: 980px) {
  .hero--home .hero__in { grid-template-columns: 1fr; gap: 8px; }
  .hero__art { display: none; }
}

/* ------------------------------------------ signature: the compound bar -- */
.compound {
  margin-top: clamp(40px, 4vw, 56px);
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
}
.compound__label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--tx-inv-mute); margin-bottom: 20px;
}
.compound__row {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px;
}
.el {
  --el-b: rgba(255,255,255,.14);
  position: relative;
  flex: 1 1 150px;
  min-width: 118px;
  padding: 16px 16px 14px;
  border: 1px solid var(--el-b);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.03);
  text-decoration: none;
  color: #fff;
  transition: border-color .2s, background .2s, transform .2s;
  opacity: 0; transform: translateY(14px);
  animation: elIn .55s cubic-bezier(.2,.7,.3,1) forwards;
}
.el:hover { border-color: rgba(73,200,227,.55); background: rgba(73,200,227,.07); transform: translateY(-3px); }
.el__sym {
  font-family: var(--display); font-weight: 700; font-size: 1.6rem;
  letter-spacing: -.02em; line-height: 1; margin-bottom: 10px;
}
.el__name {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--tx-inv-mute); line-height: 1.4;
}
.el--lead {
  --el-b: rgba(73,200,227,.5);
  background: rgba(73,200,227,.09);
}
.el--lead .el__sym { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.el--lead .el__name { color: var(--cyan); }
.el:nth-child(1) { animation-delay: .05s; }
.el:nth-child(2) { animation-delay: .12s; }
.el:nth-child(3) { animation-delay: .19s; }
.el:nth-child(4) { animation-delay: .26s; }
.el:nth-child(5) { animation-delay: .33s; }
.el:nth-child(6) { animation-delay: .40s; }
@keyframes elIn { to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------------- grid -- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 28px;
}
.sec--paper .card { background: #fff; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--tx-mute); margin: 0; font-size: .97rem; }
.card__sym {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 16px;
}

/* ---------------------------------------------------------------- stats -- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line-dark); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--ink); padding: 34px 28px; }
.stat__n {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: -.02em; line-height: 1.05; margin-bottom: 8px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__l { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-inv-mute); }

/* -------------------------------------------------------------- service -- */
.svc {
  scroll-margin-top: 140px;
  display: grid; grid-template-columns: 180px 1fr; gap: 44px;
  padding: 46px 0; border-top: 1px solid var(--line);
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__sym {
  font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1;
  letter-spacing: -.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.svc__tag { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-mute); margin-top: 10px; }
.svc__body h3 { font-size: 1.55rem; margin-bottom: 12px; }
.svc__body p { color: var(--tx-mute); max-width: 60ch; }
.svc ul { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.svc li {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .04em;
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--tx-mute);
  background: #fff;
}
.svc--lead { background: linear-gradient(180deg, rgba(73,200,227,.07), transparent); }
.svc--lead .svc__body h3::after {
  content: "Flagship";
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  vertical-align: middle; margin-left: 12px; padding: 5px 10px; border-radius: 999px;
  background: var(--grad); color: #06101F;
}

/* ---------------------------------------------------------------- steps -- */
.steps { counter-reset: s; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 26px; padding: 30px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  counter-increment: s;
  font-family: var(--mono); font-size: .8rem; color: var(--blue); padding-top: 6px;
}
.step__n::before { content: counter(s, decimal-leading-zero); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--tx-mute); margin: 0; max-width: 58ch; }

/* ----------------------------------------------------------------- form -- */
.form { display: grid; gap: 20px; }
.form > .btn { justify-self: start; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tx-mute);
}
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--tx);
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(94,144,220,.16); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form__note { font-size: .86rem; color: var(--tx-mute); }
.form__status { font-size: .95rem; padding: 14px 16px; border-radius: var(--r-sm); display: none; }
.form__status.is-ok { display: block; background: #E9F7EF; color: #1B6B43; border: 1px solid #BFE6D0; }
.form__status.is-err { display: block; background: #FDECEC; color: #92312F; border: 1px solid #F5C6C4; }

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

/* ------------------------------------------------------------------ cta -- */
.cta-band { background: var(--ink); color: #fff; text-align: center; padding: clamp(64px, 8vw, 104px) 0; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { color: var(--tx-inv-mute); max-width: 52ch; margin: 0 auto 32px; }

/* --------------------------------------------------------------- footer -- */
.ftr { background: var(--ink-2); color: var(--tx-inv-mute); padding: 60px 0 34px; }
.ftr__top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.ftr img { height: 22px; width: auto; margin-bottom: 16px; }
.ftr__tag { max-width: 34ch; font-size: .95rem; margin: 0; }
.ftr__nav { display: flex; flex-wrap: wrap; gap: 26px; }
.ftr__nav a { text-decoration: none; font-size: .95rem; }
.ftr__nav a:hover { color: #fff; }
.ftr__btm {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .06em;
}

/* --------------------------------------------------------------- reveal -- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.rv.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; gap: 18px; }
  .svc__sym { font-size: 2rem; }
  .stats { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    padding: 8px 24px 20px; margin: 0;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; width: 100%; font-size: 1.05rem; }
  .nav .btn { margin-top: 12px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 40px 1fr; gap: 14px; }
  .compound__row { gap: 8px; }
  .el { flex: 1 1 calc(50% - 4px); min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
  .el { opacity: 1; transform: none; }
}
