/* ==========================================================================
   Inbound Automation — site styles
   Palette taken from the logo. Type: Archivo (self-hosted, OFL).
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2-variations"),
       url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0BA8FC;          /* signal blue: hero + closing band (black text only) */
  --ink: #030303;           /* logo black */
  --paper: #FFFFFF;
  --steel: #EEF3F7;         /* quiet panels */
  --rule: #CFD9E2;
  --link: #006DB8;          /* text links on light backgrounds */
  --link-strong: #005A99;
  --orange: #FFA327;        /* logo triangle: free benchmark marker only */
  --muted: #4A5561;
  --field: #7A8794;
  --error: #B42318;

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --header-h: 76px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-stretch: 100%;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--link-strong); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 1.5em;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 650;
  font-stretch: 112%;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--link-strong); color: #fff; }
.btn:disabled { opacity: 0.65; cursor: progress; }

.btn--small {
  min-height: 42px;
  padding: 0 1.1em;
  font-size: 0.9375rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--rule);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(1.4) blur(10px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: auto; height: 46px; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
}
.nav__link:hover { color: var(--ink); text-decoration: underline; }
.nav__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.45em;
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--blue);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(48px, 6vw, 88px) clamp(56px, 6.5vw, 96px);
}

.hero__copy { max-width: 50rem; }

.hero__title {
  font-size: clamp(2.375rem, 1.2rem + 3.9vw, 4.25rem);
  font-weight: 820;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.025em;
}

.hero__title-next {
  display: block;
  max-width: 22em;
  margin-top: 0.45em;
  font-size: 0.47em;
  font-weight: 480;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.hero__lede {
  max-width: 33rem;
  margin-top: 24px;
  font-size: 1.1875rem;
  line-height: 1.5;
}

.hero__drawing {
  position: absolute;
  z-index: 0;
  top: 6%;
  right: -9%;
  width: min(74vw, 1240px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%);
          mask-image: linear-gradient(to right, transparent 0%, #000 34%);
}

/* Free benchmark offer */
.offer {
  max-width: 35rem;
  margin-top: 34px;
  padding: clamp(22px, 3vw, 30px);
  background: var(--paper);
}

.offer__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.3125rem;
  font-weight: 760;
  font-stretch: 118%;
  line-height: 1.2;
}

.offer__mark {
  flex: none;
  width: 18px;
  height: 15px;
  transform: translateY(1px);
}

.offer p {
  margin-top: 10px;
  color: var(--muted);
}

.offer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 22px;
}

.phone-link {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  font-stretch: 112%;
  text-decoration: none;
  white-space: nowrap;
}
.phone-link:hover { color: var(--ink); text-decoration: underline; }

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

.section { padding-block: var(--section); }
.section--steel { background: var(--steel); }

.section-head {
  margin-bottom: clamp(44px, 5.5vw, 72px);
}

.section-head__title {
  font-size: clamp(2rem, 1.25rem + 2.4vw, 3.125rem);
  font-weight: 790;
  font-stretch: 125%;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.section-head__intro {
  max-width: 44rem;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.1875rem;
  line-height: 1.55;
}

/* ---------- Consultancy: process track ---------- */

.process {
  --gap: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.process__item {
  position: relative;
  padding-top: 68px;
}

/* The track: a line running between stations */
.process__item::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 0;
  right: calc(-1 * var(--gap));
  height: 2px;
  background: var(--ink);
}
.process__item:last-child::before { right: 0; }

.process__num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 800;
  font-stretch: 125%;
}

.process__title {
  font-size: 1.4375rem;
  font-weight: 740;
  font-stretch: 118%;
  line-height: 1.2;
}

.process__item p {
  margin-top: 12px;
  color: var(--muted);
}

.bid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 14px clamp(28px, 5vw, 64px);
  align-items: start;
  margin-top: clamp(56px, 7vw, 88px);
  padding: clamp(26px, 4vw, 44px);
  background: var(--steel);
}

.bid__title {
  font-size: 1.5625rem;
  font-weight: 760;
  font-stretch: 122%;
  line-height: 1.15;
}

.bid p { color: var(--muted); }

/* ---------- Solutions ---------- */

.designer {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--paper);
}

.designer__copy {
  padding: clamp(28px, 4vw, 52px);
}

.designer__title {
  font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.125rem);
  font-weight: 790;
  font-stretch: 125%;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.designer__copy > p {
  margin-top: 14px;
  color: var(--muted);
}

.designer__figure {
  display: flex;
  align-items: center;
  padding: clamp(16px, 2.5vw, 32px);
  border-left: 1px solid var(--rule);
}

.ticks {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.designer .ticks { margin-top: 24px; }

.ticks li {
  position: relative;
  padding-left: 20px;
  line-height: 1.45;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  background: var(--blue);
}

.disciplines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 52px);
  margin-top: clamp(48px, 6vw, 80px);
}

.discipline {
  padding-top: 22px;
  border-top: 3px solid var(--ink);
}

.discipline__title {
  font-size: 1.3125rem;
  font-weight: 740;
  font-stretch: 118%;
  line-height: 1.2;
}

.discipline > p {
  margin-top: 8px;
  color: var(--muted);
}

.discipline .ticks { margin-top: 18px; }

/* ---------- Experience ---------- */

.experience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 88px);
}

.experience__title {
  padding-bottom: 16px;
  border-bottom: 3px solid var(--ink);
  font-size: 1.5rem;
  font-weight: 770;
  font-stretch: 122%;
  line-height: 1.15;
}

.record {
  margin: 0;
  padding: 0;
  list-style: none;
}

.record__item {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 6px 24px;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
}

.record__name {
  font-size: 1.0625rem;
  font-weight: 720;
  font-stretch: 110%;
  line-height: 1.35;
}

.record__item p {
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Closing call to action ---------- */

.cta { background: var(--blue); }

.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 36px clamp(40px, 6vw, 88px);
  align-items: end;
  padding-block: clamp(64px, 8vw, 104px);
}

.cta__title {
  font-size: clamp(2rem, 1.2rem + 2.8vw, 3.375rem);
  font-weight: 820;
  font-stretch: 125%;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.cta__inner p {
  max-width: 31rem;
  margin-top: 18px;
  font-size: 1.1875rem;
  line-height: 1.5;
}

.cta__contact {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.cta__line {
  color: var(--ink);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.cta__line:hover { color: var(--ink); text-decoration: underline; }

.cta__contact .btn { margin-top: 10px; }

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

.site-footer {
  padding-block: clamp(44px, 5vw, 64px) 32px;
  font-size: 0.9375rem;
}

.site-footer__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px clamp(32px, 5vw, 72px);
  align-items: start;
}

.site-footer__logo img { width: auto; height: 84px; }

.footer-contact {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-style: normal;
}

.footer-contact a,
.footer-nav a {
  color: var(--ink);
  text-decoration: none;
}
.footer-contact a:hover,
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }

.footer-nav {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin: 40px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
  list-style: none;
}

/* ---------- Contact page ---------- */

.page-hero { background: var(--blue); }

.page-hero__inner { padding-block: clamp(48px, 6.5vw, 88px); }

.page-hero__title {
  font-size: clamp(2.375rem, 1.3rem + 3.6vw, 4rem);
  font-weight: 820;
  font-stretch: 125%;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.page-hero__inner p {
  max-width: 36rem;
  margin-top: 18px;
  font-size: 1.1875rem;
  line-height: 1.5;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: start;
}

.form {
  display: grid;
  gap: 22px;
  max-width: 40rem;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 650;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--field);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.field textarea {
  min-height: 176px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--link);
  outline-offset: 1px;
  border-color: var(--link);
}

.field__error {
  margin-top: 8px;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 550;
}
.field__error:empty { display: none; }

.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--error); }

/* Honeypot: off-screen, never shown */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.form__note {
  color: var(--muted);
  font-size: 0.9375rem;
}

.form-status {
  padding: 14px 16px;
  border-left: 4px solid var(--error);
  background: #FDF1F0;
  color: var(--ink);
}
.form-status:empty { display: none; }

.form-success {
  padding: clamp(26px, 4vw, 40px);
  border-top: 4px solid var(--blue);
  background: var(--steel);
}

.form-success__title {
  font-size: 1.75rem;
  font-weight: 790;
  font-stretch: 125%;
  line-height: 1.1;
}
.form-success p { margin-top: 12px; color: var(--muted); }
.form-success .btn { margin-top: 24px; }

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

.contact-aside { display: grid; gap: 40px; }

.contact-aside__title {
  font-size: 1.375rem;
  font-weight: 760;
  font-stretch: 120%;
  line-height: 1.2;
}

.contact-lines {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.contact-lines a {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  font-stretch: 110%;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-lines a:hover { color: var(--ink); text-decoration: underline; }

.aside-offer {
  padding: clamp(22px, 3vw, 30px);
  background: var(--steel);
}
.aside-offer .offer__title { font-size: 1.1875rem; }
.aside-offer p { margin-top: 12px; color: var(--muted); }

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

@media (max-width: 1020px) {
  .designer { grid-template-columns: minmax(0, 1fr); }
  .designer__figure { border-left: 0; border-top: 1px solid var(--rule); }
  .experience { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .form { max-width: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .brand img { height: 38px; }
  .nav__item--secondary { display: none; }

  .hero__inner { padding-bottom: 0; }

  .hero__drawing {
    position: relative;
    top: auto;
    right: auto;
    width: 150%;
    max-width: none;
    margin: -12px 0 -6% -8%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
  }

  .process { grid-template-columns: minmax(0, 1fr); }
  .process__item { padding-top: 0; padding-left: 68px; padding-bottom: 4px; }
  .process__item::before {
    top: 0;
    bottom: calc(-1 * var(--gap));
    left: 21px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .process__item:last-child::before { bottom: 0; }

  .bid { grid-template-columns: minmax(0, 1fr); }
  .disciplines { grid-template-columns: minmax(0, 1fr); }
  .cta__inner { grid-template-columns: minmax(0, 1fr); }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .hero__title-next { font-size: 0.56em; }
  .footer-contact, .footer-nav { gap: 12px; }
  .record__item { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .hero__title { font-stretch: 115%; }
  .offer__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
