/* ==========================================================================
   Harmony theme for Grav — HarmonyIdeas
   ========================================================================== */

:root {
  --ink: #12161c;          /* masthead, hero, footer */
  --ink-2: #1c222b;        /* raised surfaces on dark */
  --ink-line: #2e3640;     /* hairlines on dark */
  --paper: #ffffff;
  --mist: #f2f4f6;         /* alternate section background */
  --line: #d5dae0;         /* hairlines on light */
  --text: #1f2429;
  --muted: #59626d;
  --on-dark: #e9edf1;
  --on-dark-muted: #a7b0ba;

  --accent: #007a87;
  --accent-strong: color-mix(in srgb, var(--accent) 78%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, #fff);
  --accent-on-dark: color-mix(in srgb, var(--accent) 55%, #fff);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);
  --radius: 4px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 87%;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: inherit;
}

p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

main:focus { outline: none; }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--lg { padding: 14px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--on-dark); background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-stretch: 100%;
  color: var(--accent-strong); text-decoration: none;
}
.link-arrow::after {
  content: ""; width: 16px; height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .15s ease;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow--light { color: var(--accent-on-dark); }

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */
.masthead { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--on-dark); }

.utility { background: #000; font-size: 0.875rem; }
.utility__inner { display: flex; justify-content: flex-end; align-items: center; gap: 24px; min-height: 36px; }
.utility a { color: var(--on-dark-muted); text-decoration: none; }
.utility a:hover { color: #fff; text-decoration: underline; }
.utility__phone { font-weight: 600; }
.utility__links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }

.mainbar { border-bottom: 1px solid var(--ink-line); }
.mainbar__inner { display: flex; align-items: center; gap: 32px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand img { height: 34px; width: auto; display: block; }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; }
.brand:hover { color: #fff; }

.nav { display: flex; align-items: center; flex: 1; gap: 24px; }
.nav__list { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav__item { display: flex; }
.nav__link, .nav__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 16px; min-height: 72px;
  background: none; border: 0;
  color: var(--on-dark);
  font: 500 1rem/1 var(--font-display); font-stretch: 100%;
  text-decoration: none; cursor: pointer;
  border-bottom: 3px solid transparent; border-top: 3px solid transparent;
}
.nav__link:hover, .nav__trigger:hover { color: #fff; border-bottom-color: var(--on-dark-muted); }
.nav__item.is-current > .nav__link,
.nav__item.is-current > .nav__trigger { border-bottom-color: var(--accent); color: #fff; }
.nav__trigger[aria-expanded="true"] { background: var(--ink-2); border-bottom-color: var(--accent); color: #fff; }
.nav__trigger[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__chev { transition: transform .15s ease; }
.nav__cta { margin-left: auto; }

/* Mega panel */
.panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); color: var(--text);
  border-top: 3px solid var(--accent);
  box-shadow: 0 24px 48px rgba(10, 14, 20, .28);
  display: none;
}
.panel.is-open { display: block; }
.panel__inner { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding-block: 36px 40px; }
.panel__intro { border-right: 1px solid var(--line); padding-right: 32px; }
.panel__title { font: 700 1.5rem/1.15 var(--font-display); font-stretch: 87%; margin: 0 0 10px; }
.panel__text { color: var(--muted); font-size: 0.98rem; }
.panel__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 32px; }
.panel__link { display: block; padding: 12px 14px; border-radius: var(--radius); text-decoration: none; color: var(--text); border-left: 3px solid transparent; }
.panel__link:hover { background: var(--mist); color: var(--text); border-left-color: var(--accent); }
.panel__link.is-current { border-left-color: var(--accent); }
.panel__link-title { display: block; font: 600 1.02rem/1.3 var(--font-display); font-stretch: 100%; }
.panel__link-text { display: block; color: var(--muted); font-size: 0.92rem; line-height: 1.45; margin-top: 3px; }

.nav-toggle { display: none; }

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */
.hero { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center; gap: 48px;
  padding-block: clamp(64px, 9vw, 128px);
}
.hero__title {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 14ch;
  margin-bottom: 24px;
}
.hero__lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--on-dark-muted); max-width: 46ch; }
.hero__lede p:last-child { margin-bottom: 0; }
.hero__art { position: relative; }
.hero__img { width: 100%; height: auto; display: block; }

.orbits { width: 100%; display: block; overflow: visible; }
.orbits__ring { stroke: var(--on-dark-muted); opacity: .55; }
.orbits__ring--a { stroke: var(--accent-on-dark); opacity: 1; }
.orbits__grid line { stroke: var(--ink-line); }
.orbits__core { fill: var(--accent); opacity: .9; }
.orbits__nodes circle { fill: var(--ink); stroke: var(--accent-on-dark); stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .orbits__ring--a { transform-origin: 245px 205px; animation: orbit 60s linear infinite; }
  @keyframes orbit { to { transform: rotate(360deg); } }
}

/* --------------------------------------------------------------------------
   Partners strip
   -------------------------------------------------------------------------- */
.partners { border-bottom: 1px solid var(--line); background: var(--paper); }
.partners__inner { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; padding-block: 36px; }
.partners__title { font-size: 1rem; font-stretch: 100%; font-weight: 600; color: var(--muted); margin: 0; line-height: 1.35; }
.partners__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; }
.partners__item img { height: 32px; width: auto; filter: grayscale(1); opacity: .75; display: block; }
.partners__word { font: 700 1.1rem/1 var(--font-display); font-stretch: 87%; color: #7b848e; letter-spacing: -0.01em; }

/* --------------------------------------------------------------------------
   Sections & headings
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }

.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.section-head__title { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 700; margin: 0; max-width: 18ch; }
.section-head__text { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.section-head__text p:last-child { margin-bottom: 0; }

/* Service tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tile { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.tile__link { display: flex; flex-direction: column; height: 100%; padding: 32px 32px 28px; color: var(--text); text-decoration: none; position: relative; }
.tile__link::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.tile__link:hover { color: var(--text); background: #fbfcfc; }
.tile__link:hover::before, .tile__link:focus-visible::before { transform: scaleX(1); }
.tile__icon { color: var(--accent); margin-bottom: 20px; }
.tile__icon .icon { width: 44px; height: 44px; }
.tile__title { font-size: 1.35rem; margin-bottom: 10px; }
.tile__text { color: var(--muted); font-size: 1rem; flex: 1; }
.tile__more { font: 600 0.98rem/1 var(--font-display); font-stretch: 100%; color: var(--accent-strong); margin-top: 8px; }
.tile__link:hover .tile__more { text-decoration: underline; }

/* Lifecycle */
.lifecycle { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
.lifecycle__intro .section-head__text { margin-top: 20px; }
.lifecycle__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.lifecycle__col { border-top: 3px solid var(--ink); padding-top: 20px; }
.lifecycle__col h3 { font-size: 1.3rem; }
.lifecycle__col p { color: var(--muted); margin: 0; }

/* Industries explorer */
.explorer { display: grid; grid-template-columns: 300px minmax(0, 1fr); border: 1px solid var(--line); background: var(--paper); }
.explorer__tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--mist); }
.explorer__tab {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; text-align: left;
  background: transparent; border: 0; border-left: 4px solid transparent; border-bottom: 1px solid var(--line);
  font: 600 1.05rem/1.2 var(--font-display); font-stretch: 100%; color: var(--text); cursor: pointer;
}
.explorer__tab:last-child { border-bottom: 0; }
.explorer__tab:hover { background: #e8ebee; }
.explorer__tab[aria-selected="true"] { background: var(--paper); border-left-color: var(--accent); color: var(--ink); margin-right: -1px; }
.explorer__tab-icon { color: var(--muted); display: inline-flex; }
.explorer__tab-icon .icon { width: 26px; height: 26px; }
.explorer__tab[aria-selected="true"] .explorer__tab-icon { color: var(--accent); }
.explorer__panel { padding: clamp(28px, 4vw, 52px); }
.explorer__title { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.explorer__lede { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

/* Checklists */
.checklist { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li p { margin: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.6 2.6L14 7.5' fill='none' stroke='%23005f69' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / 20px;
}
.checklist--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; font-size: 0.99rem; }

/* Approach steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: var(--line); }
.steps__item { position: relative; }
.steps__num {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff; position: relative;
  font: 700 1.15rem/1 var(--font-display); margin-bottom: 20px;
  box-shadow: 0 0 0 6px var(--mist);
}
.steps__title { font-size: 1.3rem; }
.steps__item p { color: var(--muted); margin: 0; }

/* Dark band (about) */
.band { background: var(--ink); color: var(--on-dark); padding-block: var(--section); }
.band__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.band__title { color: #fff; font-size: clamp(2rem, 3.4vw, 2.9rem); max-width: 18ch; }
.band__text { color: var(--on-dark-muted); font-size: 1.08rem; max-width: 64ch; }
.band__text strong { color: var(--on-dark); }
.band__text ul { padding-left: 1.2em; }
.band__text li { margin-bottom: .6em; }
.band__image { margin-top: 32px; background: #fff; padding: 20px; border-radius: var(--radius); }
.band__image img { display: block; margin: 0 auto; }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--ink-line); }
.facts__item { padding: 22px 0; border-bottom: 1px solid var(--ink-line); }
.facts dt { color: var(--on-dark-muted); font-size: 0.95rem; }
.facts dd { margin: 4px 0 0; font: 800 clamp(1.8rem, 3vw, 2.4rem)/1.05 var(--font-display); font-stretch: 87%; color: #fff; }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px 64px; flex-wrap: wrap; padding-block: 56px; }
.cta-band__title { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: 8px; color: #fff; }
.cta-band__text { margin: 0; opacity: .9; max-width: 60ch; font-size: 1.08rem; }
.cta-band .actions { margin-top: 0; }
.cta-band .btn--primary { background: #fff; color: var(--accent-strong); }
.cta-band .btn--primary:hover { background: var(--mist); }
.cta-band .btn--ghost { color: #fff; }

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */
.page-hero { background: var(--ink); color: var(--on-dark); padding-block: clamp(48px, 6vw, 88px); }
.page-hero__title { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.8rem); font-weight: 800; letter-spacing: -0.02em; max-width: 20ch; }
.page-hero__lede { color: var(--on-dark-muted); font-size: clamp(1.1rem, 1.5vw, 1.25rem); max-width: 60ch; margin: 0; }
.crumbs ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.92rem; color: var(--on-dark-muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: var(--on-dark-muted); }
.crumbs a:hover { color: #fff; }

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose--intro { font-size: 1.15rem; color: var(--muted); margin-bottom: 48px; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start; }
.detail__main .prose { font-size: 1.12rem; }
.detail__subhead { font-size: 1.7rem; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.detail__aside { position: sticky; top: 132px; display: grid; gap: 28px; }
.aside-card { border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 28px; background: var(--paper); }
.aside-card__title { font-size: 1.35rem; }
.aside-card p { color: var(--muted); font-size: 0.98rem; }
.aside-card__phone { margin: 16px 0 0; text-align: center; }
.related__title { font-size: 1rem; font-stretch: 100%; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.related ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.related li { border-bottom: 1px solid var(--line); }
.related a { display: block; padding: 11px 0 11px 12px; color: var(--text); text-decoration: none; border-left: 3px solid transparent; }
.related a:hover { color: var(--accent-strong); border-left-color: var(--line); }
.related a[aria-current="page"] { border-left-color: var(--accent); font-weight: 600; }

/* --------------------------------------------------------------------------
   Contact & forms
   -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.contact__info .section-head__title { margin-bottom: 20px; }
.contact__info .prose { color: var(--muted); font-size: 1.1rem; }
.contact-methods { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.contact-methods li { display: flex; gap: 16px; align-items: center; }
.contact-methods__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); flex-shrink: 0; }
.contact-methods__icon .icon { width: 24px; height: 24px; }
.contact-methods__label { display: block; color: var(--muted); font-size: 0.9rem; }
.contact-methods a { font: 600 1.15rem/1.3 var(--font-display); font-stretch: 100%; color: var(--text); text-decoration: none; }
.contact-methods a:hover { color: var(--accent-strong); text-decoration: underline; }

.form-card { border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 44px); background: var(--paper); }
.form-card form { display: grid; gap: 4px; }
.form-field { margin-bottom: 18px; }
.form-label label, .form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.98rem; }
.form-label .required, .form-label .required-field { color: var(--accent-strong); }
.form-input-wrapper, .form-textarea-wrapper, .form-select-wrapper { position: relative; }
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card select,
.form-card textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid #b8c0c8; border-radius: var(--radius);
  font: inherit; color: var(--text); background: #fff;
}
.form-card textarea { min-height: 150px; resize: vertical; }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-card .buttons { margin-top: 6px; }
.form-card .button, .form-card button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: #fff; cursor: pointer;
  font: 600 1.02rem/1.2 var(--font-display); font-stretch: 100%;
}
.form-card .button:hover, .form-card button[type="submit"]:hover { background: var(--accent-strong); }
.form-card .notices, .notices { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; background: var(--accent-soft); border-left: 4px solid var(--accent); }
.notices.red, .notices.error { background: #fdecec; border-left-color: #c62828; }
.form-errors { color: #b3261e; font-size: 0.92rem; margin-top: 6px; }
.form-honeybear, .form-input-wrapper .form-honeybear { display: none !important; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--on-dark-muted); font-size: 0.97rem; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 40px; padding-block: 72px 56px; }
.footer__brand p { margin-top: 20px; max-width: 34ch; }
.footer__heading { font: 600 1rem/1.3 var(--font-display); font-stretch: 100%; color: #fff; margin-bottom: 16px; }
.footer__heading a { color: #fff; text-decoration: none; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--on-dark-muted); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__contact a { color: var(--on-dark); }
.footer__bottom { border-top: 1px solid var(--ink-line); background: #000; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 60px; font-size: 0.88rem; }
.footer__bottom p { margin: 0; }
.footer__bottom ul { display: flex; gap: 24px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lifecycle { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .steps::before { display: none; }
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .detail { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
}

@media (max-width: 960px) {
  .utility__inner { justify-content: space-between; }

  .mainbar__inner { min-height: 64px; justify-content: space-between; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; border: 1px solid var(--ink-line); border-radius: var(--radius);
    color: #fff; padding: 9px 14px; font: 600 0.95rem/1 var(--font-display); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-top: 1px solid var(--ink-line);
    max-height: calc(100vh - 100px); overflow-y: auto; padding-bottom: 20px;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; }
  .nav__item { flex-direction: column; border-bottom: 1px solid var(--ink-line); }
  .nav__link, .nav__trigger { min-height: 56px; padding: 0 var(--gutter); justify-content: space-between; width: 100%; border-top: 0; border-bottom: 0; border-left: 3px solid transparent; }
  .nav__item.is-current > .nav__link, .nav__item.is-current > .nav__trigger { border-left-color: var(--accent); }
  .nav__trigger[aria-expanded="true"] { border-left-color: var(--accent); }
  .nav__cta { margin: 20px var(--gutter) 0; }

  .panel { position: static; box-shadow: none; border-top: 0; background: var(--ink-2); color: var(--on-dark); }
  .panel__inner { grid-template-columns: 1fr; gap: 0; padding: 8px 0 16px; }
  .panel__intro { display: none; }
  .panel__grid { grid-template-columns: 1fr; }
  .panel__link { color: var(--on-dark); padding: 10px var(--gutter) 10px calc(var(--gutter) + 12px); border-radius: 0; }
  .panel__link:hover { background: rgba(255,255,255,.05); color: #fff; }
  .panel__link-text { display: none; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { max-width: 380px; }
  .partners__inner { grid-template-columns: 1fr; gap: 20px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .explorer { grid-template-columns: 1fr; }
  .explorer__tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
  .explorer__tab { flex-shrink: 0; border-left: 0; border-bottom: 4px solid transparent; border-right: 1px solid var(--line); padding: 14px 18px; }
  .explorer__tab:last-child { border-bottom: 4px solid transparent; }
  .explorer__tab[aria-selected="true"] { border-bottom-color: var(--accent); margin-right: 0; }
  .band__inner, .contact, .detail { grid-template-columns: 1fr; gap: 48px; }
  .detail__aside { position: static; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .utility__phone { display: none; }
  .utility__inner { justify-content: flex-end; }
  .tiles { grid-template-columns: 1fr; }
  .tile__link { padding: 26px 22px; }
  .lifecycle__cols { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .checklist--compact { grid-template-columns: 1fr; }
  .explorer__tab-icon { display: none; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band .actions { width: 100%; }
  .cta-band .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Keep the email address on one line; the contact column sizes to fit it */
.footer__top { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) auto; }
.footer__contact a, .contact-methods a { white-space: nowrap; }
@media (max-width: 1100px) { .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__contact { grid-column: 1 / -1; }
}
@media (max-width: 360px) { .footer__contact a, .contact-methods a { white-space: normal; overflow-wrap: anywhere; } }
@media (max-width: 640px) { .hero__art { display: none; } }

/* --------------------------------------------------------------------------
   Custom AI section and featured service tile
   -------------------------------------------------------------------------- */
.ai__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.ai__mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--accent-on-dark); margin-bottom: 24px; }
.ai__mark .icon { width: 30px; height: 30px; }
.ai__intro .section-head__text { margin: 20px 0 28px; }
.ai__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 3px solid var(--ink); }
.ai__item { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); }
.ai__item:nth-child(even) { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--line); }
.ai__title { font-size: 1.2rem; margin-bottom: 6px; }
.ai__item p { margin: 0; color: var(--muted); }

.tile--featured { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); }
.tile--featured .tile__link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 32px; color: var(--on-dark); padding-block: 36px; }
.tile--featured .tile__link:hover { background: var(--ink-2); color: var(--on-dark); }
.tile--featured .tile__icon { color: var(--accent-on-dark); margin: 0; grid-row: span 2; }
.tile--featured .tile__icon .icon { width: 56px; height: 56px; }
.tile--featured .tile__title { color: #fff; font-size: 1.6rem; margin: 0; }
.tile--featured .tile__text { color: var(--on-dark-muted); grid-column: 2; margin: 0; max-width: 70ch; }
.tile--featured .tile__more { color: var(--accent-on-dark); grid-column: 3; grid-row: 1 / span 2; margin: 0; }

@media (max-width: 960px) {
  .ai__inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .ai__grid { grid-template-columns: 1fr; }
  .ai__item, .ai__item:nth-child(even) { padding: 18px 0; border-left: 0; }
  .tile--featured .tile__link { grid-template-columns: 1fr; }
  .tile--featured .tile__icon { grid-row: auto; }
  .tile--featured .tile__text, .tile--featured .tile__more { grid-column: 1; grid-row: auto; }
}
.footer .footer__heading a, .footer .brand { color: #fff; }
.footer .footer__heading a:hover { color: #fff; text-decoration: underline; }

/* Wide image logo: shrink on small screens so the menu button always fits */
.brand { min-width: 0; }
.brand img { max-width: 100%; }
@media (max-width: 960px) { .mainbar__inner { gap: 16px; } }
@media (max-width: 640px) { .brand img { height: 26px; } }
@media (max-width: 360px) { .brand img { height: 22px; } .nav-toggle__label { display: none; } }
