/* Digital Strategy Group — site styles (Concept C) */

:root {
  --ink: #161616;
  --ink-2: #262626;
  --text-2: #393939;
  --muted: #525252;
  --rule: #E0E0E0;
  --rule-strong: #8D8D8D;
  --ground: #FFFFFF;
  --ground-2: #F4F4F4;
  --ground-3: #E8E8E8;
  --dark: #161616;
  --dark-2: #262626;
  --on-dark: #F4F4F4;
  --on-dark-2: #C6C6C6;
  --accent: #005F66;
  --accent-hover: #00454A;
  --accent-tint: #E5F2F2;
  --accent-tint-rule: #C6DEDE;
  --focus: #0F62FE;
  --max: 1312px;
  --gutter: 32px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 12px 16px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 8px; color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 80px; padding-bottom: 80px; }
.section--tight { padding-top: 56px; padding-bottom: 56px; }
.bg-2 { background: var(--ground-2); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Masthead ---------- */
.masthead { background: var(--dark); color: var(--on-dark); position: relative; z-index: 20; }
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px;
}
.masthead__logo { display: flex; align-items: center; padding: 8px 0; }
.masthead__logo img { height: 36px; width: auto; }

.nav { display: flex; align-items: stretch; font-size: 14px; }
.nav a, .nav summary {
  color: #E0E0E0; text-decoration: none; padding: 18px 16px; display: flex; align-items: center; cursor: pointer;
}
.nav a:hover, .nav summary:hover, .nav a[aria-current="page"] { color: #fff; background: var(--dark-2); }
.nav__cta, .nav a.nav__cta { background: var(--accent); color: #fff; padding: 18px 20px; }
.nav a.nav__cta:hover { background: var(--accent-hover); color: #fff; }

/* Platforms dropdown */
.nav__group { position: relative; }
.nav__group > summary { list-style: none; gap: 6px; }
.nav__group > summary::-webkit-details-marker { display: none; }
.nav__group > summary::after {
  content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); margin-left: 4px;
}
.nav__menu {
  position: absolute; left: 0; top: 100%; min-width: 260px; background: var(--dark-2);
  padding: 8px 0; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.nav__menu a { padding: 12px 20px; }
.nav__menu a:hover { background: #393939; }

/* Mobile menu */
.menu-toggle { display: none; }
.menu-toggle > summary {
  list-style: none; cursor: pointer; color: #fff; display: flex; align-items: center; gap: 8px;
  padding: 12px 0 12px 12px; min-height: 48px; font-size: 14px;
}
.menu-toggle > summary::-webkit-details-marker { display: none; }
.menu-toggle__icon { width: 20px; height: 14px; position: relative; display: inline-block; }
.menu-toggle__icon::before, .menu-toggle__icon::after, .menu-toggle__icon span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
}
.menu-toggle__icon::before { top: 0; } .menu-toggle__icon span { top: 6px; } .menu-toggle__icon::after { bottom: 0; }
.mobile-nav { padding: 8px 0 16px; border-top: 1px solid #393939; }
.mobile-nav a { display: block; color: #E0E0E0; text-decoration: none; padding: 12px var(--gutter); font-size: 16px; }
.mobile-nav a:hover { background: var(--dark-2); color: #fff; }
.mobile-nav__label { color: #A8A8A8; font-size: 12px; letter-spacing: .04em; padding: 16px var(--gutter) 4px; }
.mobile-nav a.indent { padding-left: calc(var(--gutter) + 16px); }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle[open] { position: static; }
  .menu-toggle[open] .mobile-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--dark); }
}

/* ---------- Announcement ---------- */
.announce { display: block; background: var(--accent-tint); color: var(--ink); text-decoration: none; font-size: 14px; border-bottom: 1px solid var(--accent-tint-rule); }
.announce:hover { color: var(--ink); background: #D9ECEC; }
.announce .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.announce strong { font-weight: 600; margin-right: 8px; }
.announce__more { color: var(--accent); font-weight: 500; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 14px; color: var(--muted); padding-top: 24px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--rule-strong); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 48px;
  min-width: 260px; min-height: 48px; padding: 14px 16px; font: inherit; font-size: 16px;
  text-decoration: none; border: 0; cursor: pointer; background: var(--accent); color: #fff;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn--secondary { background: #393939; }
.btn--secondary:hover { background: #4C4C4C; }
.btn__arrow { font-size: 18px; line-height: 1; }
.btn-row { display: flex; flex-wrap: wrap; gap: 2px; }
.link-arrow { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--rule); }
.hero__grid { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 56px; align-items: stretch; }
.hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding-bottom: 64px; }
.hero__title { font-size: clamp(38px, 5vw, 60px); line-height: 1.12; font-weight: 300; letter-spacing: -.01em; }
.hero__sub { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; font-weight: 300; color: var(--text-2); max-width: 620px; }
.hero__media { flex: 1 1 520px; min-width: 0; }
.hero__media img { width: 100%; height: 100%; min-height: 300px; max-height: 460px; object-fit: cover; }

.page-head { border-bottom: 1px solid var(--rule); }
.page-head__inner { padding-top: 40px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-end; }
.page-head__copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.page-head__eyebrow { font-size: 14px; color: var(--muted); }
.page-head h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.15; font-weight: 300; letter-spacing: -.01em; }
.page-head__sub { font-size: 20px; line-height: 1.45; font-weight: 300; color: var(--text-2); max-width: 720px; }
.page-head__media { flex: 1 1 380px; min-width: 0; }
.page-head__media img { width: 100%; max-height: 320px; object-fit: cover; }

/* ---------- Split rows (IBM-style label column) ---------- */
.split { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.split__label { flex: 1 1 260px; min-width: 0; }
.split__label h2 { font-size: 28px; line-height: 1.3; }
.split__body { flex: 3 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.intro-text { font-size: 20px; line-height: 1.55; font-weight: 300; color: var(--ink-2); }

.section-title { font-size: 28px; line-height: 1.3; }
.section-title--ruled { border-top: 1px solid var(--rule); padding-top: 32px; }
.stack { display: flex; flex-direction: column; gap: 40px; }

/* ---------- Ruled columns ---------- */
.cols { display: flex; flex-wrap: wrap; gap: 32px; }
.col { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--rule-strong); padding-top: 16px; }
.col h3 { font-size: 20px; }
.col p { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ---------- Tiles ---------- */
.tiles { display: flex; flex-wrap: wrap; gap: 2px; }
.tile {
  flex: 1 1 380px; min-width: 0; background: var(--ground); color: var(--ink); text-decoration: none;
  padding: 24px; min-height: 220px; display: flex; flex-direction: column; gap: 10px;
}
.tile:hover { background: var(--ground-3); color: var(--ink); }
.bg-2 .tile:hover { background: #EDEDED; }
.tile__kicker { font-size: 14px; color: var(--muted); }
.tile__title { font-size: 20px; }
.tile__text { font-size: 15px; line-height: 1.55; color: var(--muted); }
.tile__arrow { margin-top: auto; color: var(--accent); font-size: 20px; }

/* ---------- Steps ---------- */
.steps { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.steps li { flex: 1 1 240px; min-width: 0; padding: 0 24px 24px 0; display: flex; flex-direction: column; gap: 10px; }
.steps__num { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.steps h3 { font-size: 20px; }
.steps p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Feature split ---------- */
.feature { display: flex; flex-wrap: wrap; background: var(--ground-2); }
.feature__copy { flex: 1 1 480px; min-width: 0; padding: 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.feature__kicker { font-size: 14px; color: var(--muted); }
.feature__copy h3 { font-size: 28px; line-height: 1.3; }
.feature__copy p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.feature__media { flex: 1 1 400px; min-width: 0; }
.feature__media img { width: 100%; height: 100%; min-height: 280px; max-height: 360px; object-fit: cover; }

/* ---------- Cards ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 32px; }
.card { flex: 1 1 280px; min-width: 0; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 12px; }
.card:hover { color: var(--ink); }
.card:hover .card__title { text-decoration: underline; }
.card__media { height: 180px; background: var(--ground-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--logo { background: #fff; border: 1px solid var(--rule); }
.card__media--logo img { width: auto; height: 72px; object-fit: contain; }
.card__kicker { font-size: 14px; color: var(--muted); }
.card__title { font-size: 20px; line-height: 1.35; }
.card__text { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- Client logos ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; border-top: 1px solid var(--rule); padding-top: 32px; }
.logos__label { flex: 1 1 240px; color: var(--muted); }
.logos__row { flex: 3 1 640px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 32px; }
.logos__row img { width: auto; filter: grayscale(1); opacity: .85; }

/* ---------- Next-step band ---------- */
.next { background: var(--ground-2); }
.next .split__label { font-size: 28px; }
.next__text { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.4; font-weight: 300; }

/* ---------- Prose (article pages) ---------- */
.article { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.prose { flex: 3 1 600px; min-width: 0; max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 28px; line-height: 1.3; margin-top: 48px; color: var(--ink); }
.prose h3 { font-size: 20px; line-height: 1.4; margin-top: 32px; color: var(--ink); font-weight: 500; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose strong { font-weight: 600; }
.prose blockquote {
  margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent);
  font-size: 22px; line-height: 1.45; font-weight: 300; color: var(--ink);
}
.prose blockquote footer { font-size: 15px; color: var(--muted); margin-top: 12px; font-weight: 400; }
.prose .lede { font-size: 20px; line-height: 1.6; font-weight: 300; color: var(--ink); }
.aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 24px; }
.aside__box { background: var(--ground-2); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.aside__box h2 { font-size: 20px; }
.aside__box p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.aside__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.aside__links a { display: block; padding: 10px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.aside__links a:hover { text-decoration: underline; }
@media (max-width: 960px) { .aside { position: static; } }

.stat-row { display: flex; flex-wrap: wrap; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat { flex: 1 1 200px; padding: 24px 24px 24px 0; display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--rule); padding-left: 24px; }
.stat__num { font-size: 40px; font-weight: 300; color: var(--accent); line-height: 1.1; }
.stat__label { font-size: 14px; color: var(--muted); }

/* ---------- Tables ---------- */
.table-box { overflow-x: auto; border: 1px solid var(--rule); }
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.data-table th { text-align: left; font-weight: 600; background: var(--ground-3); padding: 14px 20px; }
.data-table td { padding: 16px 20px; border-top: 1px solid var(--rule); vertical-align: top; line-height: 1.5; }
.data-table td:first-child { font-weight: 500; white-space: nowrap; }
.data-table td:last-child { color: var(--text-2); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0 !important; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* ---------- Forms ---------- */
.form { background: var(--ground-2); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.form__row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 0; border-bottom: 1px solid var(--rule-strong); padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: -2px; }
.form__hp { position: absolute; left: -9999px; }
.form__note { font-size: 13px; color: var(--muted); }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.contact-list li { border-top: 1px solid var(--rule); padding: 16px 0; display: flex; flex-direction: column; gap: 4px; }
.contact-list span { font-size: 14px; color: var(--muted); }
.contact-list a, .contact-list strong { font-size: 20px; font-weight: 400; text-decoration: none; color: var(--ink); }
.contact-list a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--on-dark-2); font-size: 14px; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-top: 56px; padding-bottom: 40px; }
.footer__brand { flex: 1 1 240px; display: flex; flex-direction: column; gap: 16px; }
.footer__brand img { height: 40px; width: auto; align-self: flex-start; }
.footer__col { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; }
.footer__col h2 { font-size: 14px; color: #fff; font-weight: 600; margin-bottom: 8px; }
.footer a { color: var(--on-dark-2); text-decoration: none; padding: 4px 0; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__base { border-top: 1px solid #393939; padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .btn { min-width: 0; width: 100%; }
  .feature__copy { padding: 28px 20px; }
  .form { padding: 24px 16px; }
  .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .hero__copy { padding-bottom: 40px; }
  .hero__grid { gap: 0; }
  .hero__media { margin: 0 calc(-1 * var(--gutter)); }
  .logos__row { justify-content: flex-start; }
}
