/* ==========================================================================
   Russo Data Solutions — site styles
   Mobile-first. Breakpoints: 640px (large phone / small tablet),
   768px (tablet), 1024px (small desktop), 1200px (desktop).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --c-ink: #16202C;
  --c-ink-2: #2E3844;
  --c-body: #3F4955;
  --c-muted: #4E5864;
  --c-paper: #F5F3EE;
  --c-surface: #FFFFFF;
  --c-sunken: #E7E3DA;
  --c-rule: #D5D1C7;
  --c-rule-soft: #E4E0D6;
  --c-accent: #1F3A5F;
  --c-accent-hover: #132640;
  --c-accent-active: #0C1A2D;

  /* Dark sections */
  --c-dark: #16202C;
  --c-dark-field: #1F2B39;
  --c-dark-rule: #5D6B7C;
  --c-dark-rule-soft: #2E3B4B;
  --c-dark-body: #C8CED6;
  --c-dark-muted: #AEB8C4;
  --c-error-on-dark: #FFB4A6;
  --c-success-on-dark: #A8E0B8;

  /* Type */
  --f-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --f-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --fs-h1: clamp(2.25rem, 1.5rem + 3.2vw, 3.875rem);   /* 36 → 62 */
  --fs-h2: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);       /* 32 → 44 */
  --fs-quote: clamp(1.4375rem, 1.15rem + 1.2vw, 2rem);  /* 23 → 32 */
  --fs-lede: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);/* 17 → 20 */
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);  /* 16 → 17 */

  /* Space & layout */
  --gutter: clamp(1rem, 0.25rem + 3.5vw, 7.5rem);       /* 16 → 120 */
  --container: 75rem;                                   /* 1200 */
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);         /* 56 → 112 */
  --header-h: 4.5rem;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 150ms;
  --t-med: 250ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  min-height: 100vh;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
dd { margin: 0; }
button { cursor: pointer; }

a { color: var(--c-accent); text-underline-offset: .2em; }
a:hover { color: var(--c-accent-hover); }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.section--dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--c-paper); }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -100%;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--c-ink);
  color: var(--c-paper);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--c-paper); }

/* ---------- Shared text styles ---------- */
.eyebrow {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--c-accent);
}
.label {
  font-family: var(--f-sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.section { padding-block: var(--section-y); }
.section--dark { background: var(--c-dark); color: var(--c-paper); }
.section-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.15;
}
.section-intro { color: var(--c-body); line-height: 1.65; }
.section--dark .section-intro { color: var(--c-dark-body); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--c-ink);
  --btn-bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid var(--btn-bd);
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 2.75rem; padding: 0 1.375rem; font-size: .9375rem; }
.btn--lg { min-height: 3.25rem; padding: 0 1.75rem; font-size: 1rem; }

.btn--primary { --btn-bg: var(--c-accent); --btn-fg: #fff; --btn-bd: var(--c-accent); }
.btn--primary:hover { --btn-bg: var(--c-accent-hover); --btn-bd: var(--c-accent-hover); }
.btn--primary:active { --btn-bg: var(--c-accent-active); --btn-bd: var(--c-accent-active); }

.btn--secondary { --btn-bd: var(--c-ink); }
.btn--secondary:hover { --btn-bg: var(--c-ink); --btn-fg: var(--c-paper); }
.btn--secondary:active { --btn-bg: #000; --btn-fg: var(--c-paper); }

.btn--light { --btn-bg: var(--c-paper); --btn-fg: var(--c-ink); --btn-bd: var(--c-paper); }
.btn--light:hover { --btn-bg: #fff; --btn-bd: #fff; }
.btn--light:active { --btn-bg: var(--c-sunken); --btn-bd: var(--c-sunken); }

.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: not-allowed; transform: none; }

.btn__spinner {
  display: none;
  width: 1em; height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-row { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 480px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
}

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-rule);
  transition: box-shadow var(--t-med) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 4px 20px -12px rgb(22 32 44 / .35); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: block; flex-shrink: 0; transition: opacity var(--t-fast) var(--ease); }
.brand:hover { opacity: .8; }
.brand:active { opacity: .65; }
.brand img { display: block; width: auto; height: 3rem; } /* 48px; DATA SOLUTIONS stays legible */

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  margin-right: -.625rem;
  border: 0;
  background: transparent;
  color: var(--c-ink);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { color: var(--c-accent); }
.nav-toggle:active { background: var(--c-paper); }
.nav-toggle__icon { stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.nav-toggle__bar { transform-origin: 12px 12px; transition: transform var(--t-med) var(--ease), opacity var(--t-fast); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar--top { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar--mid { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar--bot { transform: translateY(-5px) rotate(-45deg); }

/* Mobile/tablet: slide-down panel */
.site-nav {
  position: absolute;
  inset: 100% 0 auto;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-rule);
  box-shadow: 0 16px 24px -16px rgb(22 32 44 / .3);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-.5rem);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}
.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s;
}
.site-nav__list {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: .5rem 1.25rem;
}
.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3rem;
  border-bottom: 1px solid var(--c-rule-soft);
  color: var(--c-ink);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav__link:hover { color: var(--c-accent); }
.site-nav__link:active { color: var(--c-accent-active); }
.site-nav__link[aria-current="true"] { color: var(--c-accent); font-weight: 600; }
.site-nav__link[aria-current="true"]::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--gutter));
  top: 25%; bottom: 25%;
  width: 3px;
  background: var(--c-accent);
}
.site-nav__cta { padding-top: 1.25rem; }
.site-nav__cta .btn { width: 100%; min-height: 3.25rem; }

/* Desktop: inline nav */
@media (min-width: 960px) {
  :root { --header-h: 5.5rem; }
  .brand img { height: 3.5rem; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    max-height: none;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
    transition: none;
  }
  .site-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
    width: auto;
    padding: 0;
  }
  .site-nav__link {
    min-height: 2.75rem;
    border: 0;
    font-size: .9375rem;
  }
  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: .5rem;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-med) var(--ease);
  }
  .site-nav__link:hover::after,
  .site-nav__link[aria-current="true"]::after { transform: scaleX(1); }
  .site-nav__link[aria-current="true"] { font-weight: 500; }
  .site-nav__link[aria-current="true"]::before { content: none; }
  .site-nav__cta { padding: 0; }
  .site-nav__cta .btn { width: auto; min-height: 2.75rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 1rem + 8vw, 7rem) clamp(3rem, 1rem + 7vw, 6.5rem); }
.hero__grid { display: grid; gap: 2.5rem; }
.hero__copy { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.hero__title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 1.14;
  letter-spacing: -.01em;
}
.hero__sub {
  margin-top: -.5rem;
  font-family: var(--f-serif);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.3;
  color: var(--c-ink-2);
}
.hero__lede { max-width: 40rem; font-size: var(--fs-lede); line-height: 1.65; color: var(--c-body); }
.hero .btn-row { margin-top: .25rem; }
.hero__note { margin-top: -.5rem; font-size: .9375rem; color: var(--c-muted); }

.includes {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2rem);
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
}
.includes .label { padding-bottom: 1rem; }
.includes__item { padding-block: 1rem; border-top: 1px solid var(--c-rule-soft); }
.includes__item:last-child { padding-bottom: 0; }
.includes dt { font-weight: 600; }
.includes dd { margin-top: .25rem; font-size: .9375rem; color: var(--c-muted); }

@media (min-width: 768px) and (max-width: 1023.98px) {
  .includes__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .includes__item:nth-last-child(2) { padding-bottom: 0; }
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem; align-items: end; }
  .hero__copy { grid-column: span 7; }
  .includes { grid-column: 9 / span 4; }
}

/* ---------- Industries ---------- */
.industries {
  padding-block: 1.75rem;
  background: var(--c-surface);
  border-block: 1px solid var(--c-rule);
}
.industries__inner { display: grid; gap: .75rem; }
.industries__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .375rem 1.5rem;
  font-family: var(--f-serif);
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  line-height: 1.5;
}
@media (min-width: 640px) {
  .industries__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .industries { padding-block: 2rem; }
  .industries__inner { gap: 1rem; }
  .industries__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem 2.5rem; }
}
@media (min-width: 1200px) {
  /* One row, spread edge to edge under the label */
  .industries__list { display: flex; justify-content: space-between; gap: 1.5rem; }
  .industries__list li { white-space: nowrap; }
}

/* ---------- Services ---------- */
.services__grid { display: grid; gap: 2rem; }
.section-head { display: grid; gap: 1.25rem; align-content: start; }
.pricing {
  display: grid;
  gap: .375rem;
  margin-top: .25rem;
  padding: 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-ink);
}
.pricing__label {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.service-list { border-bottom: 1px solid var(--c-rule); }
.service {
  display: grid;
  gap: .625rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--c-rule);
}
.service:first-child { border-top-color: var(--c-ink); }
.service__head { display: grid; gap: .375rem; align-content: start; }
.service__name {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.service__title { font-size: clamp(1.125rem, 1rem + .4vw, 1.25rem); font-weight: 600; line-height: 1.35; }
.service__body { display: grid; gap: .625rem; color: var(--c-body); }
.service__deliverable { font-size: .875rem; color: var(--c-muted); }

@media (min-width: 768px) {
  .service {
    grid-template-columns: 3fr 5fr;
    gap: 1.5rem;
    padding-block: 1.75rem;
  }
}
.retainer {
  display: grid;
  gap: .75rem 1.5rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-top: 3px solid var(--c-accent);
}
.tiers { display: grid; gap: 1.25rem; margin-top: .5rem; }
.tier { display: grid; gap: .25rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--c-rule); }
.tier__name { font-size: 1.0625rem; font-weight: 600; }
.tier__price { font-size: .9375rem; font-weight: 600; color: var(--c-accent); }
.tier__desc { margin-top: .25rem; font-size: .9375rem; line-height: 1.55; color: var(--c-body); }
.retainer__note { font-size: .875rem; font-style: italic; color: var(--c-muted); }
@media (min-width: 768px) {
  .retainer { grid-template-columns: 3fr 5fr; }
  .tiers, .retainer__note { grid-column: 1 / -1; }
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem; }
  .services .section-head { grid-column: span 4; }
  .service-list, .retainer { grid-column: 5 / span 8; }
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--c-surface);
  border-block: 1px solid var(--c-rule);
}
.faq__grid { display: grid; gap: clamp(2rem, 1.25rem + 2.5vw, 3.5rem); }
.faq__head { display: grid; gap: 1rem; max-width: 40rem; }
.faq__head a { font-weight: 600; }
.faq__list { display: grid; gap: 2.25rem; }
.faq__item {
  display: grid;
  gap: .75rem;
  align-content: start;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-ink);
}
.faq__q { font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); font-weight: 600; line-height: 1.35; }
.faq__item p { max-width: 34rem; color: var(--c-body); line-height: 1.65; }
@media (min-width: 768px) {
  .faq__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2.5rem; }
}
@media (min-width: 1200px) {
  .faq__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* the About section's own top rule would double up against the FAQ band */
.faq + .about { border-top: 0; }

/* ---------- Approach ---------- */
.approach__head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.approach__head .section-intro { max-width: 32.5rem; }
.phases { display: grid; gap: 1.5rem; counter-reset: none; }
.phase {
  display: grid;
  align-content: start;
  gap: .625rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-dark-rule);
  color: var(--c-dark-body);
}
.phase__num { font-size: .875rem; color: var(--c-dark-muted); font-variant-numeric: tabular-nums; }
.phase__title { font-size: clamp(1.1875rem, 1.1rem + .3vw, 1.3125rem); font-weight: 600; color: var(--c-paper); }

@media (min-width: 640px) {
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}
@media (min-width: 1024px) {
  .approach__head { grid-template-columns: 1fr auto; align-items: end; gap: 3rem; }
  .phases { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Case study ---------- */
.case__grid { display: grid; gap: 2rem; }
.case__head { display: grid; gap: .75rem; }
.case__head .section-title { max-width: 56.25rem; }
.case__intro { max-width: 46rem; margin-top: .5rem; font-size: var(--fs-lede); line-height: 1.65; color: var(--c-body); }

.case__panel {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
}
.case__stats { display: grid; gap: 1.5rem; }
.stat {
  display: flex;
  flex-direction: column-reverse; /* value above its label, label read first */
  justify-content: flex-end;
  gap: .375rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-ink);
}
.stat__value {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.625rem);
  line-height: 1.1;
  color: var(--c-accent);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat__label { font-size: .9375rem; line-height: 1.5; color: var(--c-muted); }
.case__tools { padding-top: 1.25rem; border-top: 1px solid var(--c-rule-soft); font-size: .9375rem; color: var(--c-ink-2); }
.case__tools-label {
  display: block;
  margin-bottom: .25rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.case__note { font-size: .8125rem; font-style: italic; color: var(--c-muted); }

.case__steps { display: grid; gap: .625rem; padding-left: 1.125rem; }
.case__steps li::marker { color: var(--c-accent); }


.case__details > div { padding-block: 1.375rem; border-top: 1px solid var(--c-rule); }
.case__details > div:first-child { padding-top: 0; border-top: 0; }
.case__details > div:last-child { padding-bottom: 0; }
.case__details dt {
  margin-bottom: .5rem;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.case__details dd { color: var(--c-body); line-height: 1.65; }

@media (min-width: 1024px) {
  .case__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem; align-items: start; }
  .case__head { grid-column: span 12; }
  .case__panel { grid-column: span 6; }
  .case__details { grid-column: 8 / span 5; }
}
@media (min-width: 560px) {
  .case__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
}

/* Client logos sit on white cards (both files have white backgrounds) */
.client-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: .75rem;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  transition: border-color var(--t-fast) var(--ease);
}
a.client-logo:hover { border-color: var(--c-ink); }
.client-logo img { width: 150px; height: auto; }
.client-logo--wide { padding: 1.25rem 1.5rem; }
.client-logo--wide img { width: 200px; }
.case__head .client-logo { margin-bottom: .5rem; }

.project {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(1rem, .5rem + 2vw, 2rem);
  padding-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-top: 1px solid var(--c-rule);
}
.project__body { display: grid; gap: .75rem; max-width: 48rem; }
.project__title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); font-weight: 600; line-height: 1.3; }
.project__body > p:not([class]) { color: var(--c-body); line-height: 1.65; }
.project .case__tools { padding-top: .75rem; }
@media (min-width: 768px) {
  .project { grid-template-columns: auto minmax(0, 1fr); gap: 2.5rem; align-items: start; }
}
@media (min-width: 1024px) {
  .project { grid-column: 1 / -1; }
}

/* ---------- Testimonial ---------- */
.testimonial {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  background: var(--c-surface);
  border-block: 1px solid var(--c-rule);
}
.testimonial__figure { display: grid; gap: 1.25rem; max-width: 61.25rem; }
.testimonial__quote {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: var(--fs-quote);
  line-height: 1.42;
}
.testimonial__cite { color: var(--c-muted); }

/* ---------- About ---------- */
.about { border-top: 1px solid var(--c-rule); } /* separates it from the case study above */
.about__grid {
  display: grid;
  grid-template-areas: "title" "photo" "body";
  gap: 1.5rem 2.5rem;
  align-items: start;
}
.about__title { grid-area: title; }
.about__photo {
  grid-area: photo;
  display: block;
  width: min(40vw, 12.5rem);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c-sunken);
}
.about__photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
/* Links that look exactly like the surrounding text (e.g. name → LinkedIn) */
.plain-link, .plain-link:hover { color: inherit; text-decoration: none; }
.about__body { grid-area: body; display: grid; gap: 1.375rem; font-size: clamp(1rem, .95rem + .3vw, 1.125rem); line-height: 1.75; color: var(--c-ink-2); }

.facts { display: grid; gap: 1.25rem; padding-top: .75rem; }
.facts__item { padding-top: .875rem; border-top: 1px solid var(--c-ink); line-height: 1.5; }
.facts dt { font-size: .875rem; color: var(--c-muted); }
.facts dd { margin-top: .25rem; font-size: 1rem; font-weight: 600; color: var(--c-ink); }

@media (min-width: 480px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .facts__item:last-child { grid-column: 1 / -1; } /* long tools list gets the full row */
}
@media (min-width: 640px) {
  .about__grid {
    grid-template-columns: 12.5rem minmax(0, 1fr);
    grid-template-areas: "title title" "photo body";
  }
  .about__photo { width: 100%; }
}
@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas: none;
    grid-template-rows: auto 1fr;
    gap: 1.5rem 2.5rem;
  }
  .about__title { grid-column: 1 / span 4; grid-row: 1; }
  .about__photo { grid-column: 1 / span 4; grid-row: 2; width: 15rem; }
  .about__body { grid-column: 5 / span 7; grid-row: 1 / span 2; }
}

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: 2.5rem; }
.contact__intro { display: grid; gap: 1.5rem; align-content: start; }
.contact__title { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.12; }
.contact .section-intro { font-size: clamp(1rem, .95rem + .3vw, 1.125rem); }
.contact__email { display: grid; gap: .375rem; padding-top: .5rem; }
.contact__email-label { font-size: .875rem; color: var(--c-dark-muted); }
.contact__email a {
  justify-self: start;
  font-size: clamp(1.125rem, 1rem + .4vw, 1.25rem);
  color: var(--c-paper);
  overflow-wrap: anywhere;
}
.contact__email a:hover { color: #fff; text-decoration-thickness: 2px; }

.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .5rem; align-content: start; }
.field label { font-size: .875rem; font-weight: 600; }
.field__optional { font-weight: 400; color: var(--c-dark-muted); }
.field input,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: .75rem .875rem;
  border: 1px solid var(--c-dark-rule);
  border-radius: 0;
  background: var(--c-dark-field);
  color: var(--c-paper);
  font-size: 1rem; /* ≥16px prevents iOS zoom on focus */
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: var(--c-dark-muted); }
.field input:focus,
.field textarea:focus { border-color: var(--c-paper); background: #243244; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--c-paper); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--c-error-on-dark); }
.field__error { min-height: 0; font-size: .875rem; color: var(--c-error-on-dark); }
.field__error:empty { display: none; }

.form__actions { display: grid; gap: 1rem; justify-items: stretch; padding-top: .25rem; }
.form__status { font-size: .9375rem; color: var(--c-dark-body); }
.form__status:empty { display: none; }
.form__status.is-success { color: var(--c-success-on-dark); }
.form__status.is-error { color: var(--c-error-on-dark); }

@media (min-width: 640px) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__actions { justify-items: start; }
}
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem; align-items: start; }
  .contact__intro { grid-column: span 5; }
  .form { grid-column: 7 / span 6; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 1.5rem;
  background: var(--c-dark);
  border-top: 1px solid var(--c-dark-rule-soft);
  color: var(--c-dark-muted);
  font-size: .875rem;
}
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.site-footer__brand { display: flex; align-items: center; gap: .875rem; }
.site-footer__icon { flex-shrink: 0; width: 2.75rem; height: 2.75rem; outline: 1px solid var(--c-dark-rule-soft); }
.site-footer a { color: var(--c-dark-body); }
.site-footer a:hover { color: #fff; }

/* ---------- Legal pages (privacy policy) ---------- */
.legal { max-width: 46rem; }
.legal__title { margin-top: .75rem; font-family: var(--f-serif); font-weight: 400; font-size: var(--fs-h2); line-height: 1.15; }
.legal__date { margin-top: 1rem; color: var(--c-muted); font-size: .9375rem; }
.legal h2 { margin-top: 2.5rem; font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
.legal p { margin-top: .75rem; color: var(--c-body); line-height: 1.7; }
.legal__intro { margin-top: 1.5rem; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  @page { margin: 1.5cm; }
  body { background: #fff; font-size: 11pt; }
  .skip-link, .nav-toggle, .site-nav, .form, .hero .btn-row { display: none !important; }

  .site-header { position: static; box-shadow: none; border-bottom: 1px solid #000; }
  .site-header__inner { min-height: 0; padding-block: .5rem; }

  .hero { padding-block: 1.5rem; }
  .section { padding-block: 1.5rem; }
  .industries, .includes, .case__panel { background: none; }
  .case__panel { position: static; }

  /* Dark bands print as plain black-on-white */
  .section--dark, .site-footer { background: none !important; border-top: 1px solid #000; }
  .section--dark, .section--dark *, .site-footer, .site-footer * { color: #000 !important; }
  .phase { border-top-color: #000; }

  /* Keep headings with their content, and cards whole */
  h1, h2, h3, .label, dt { break-after: avoid; }
  .includes__item, .service, .pricing, .retainer, .faq__item, .phase, .stat, .facts__item, .case__details > div, .about__photo { break-inside: avoid; }
}
