/* ==========================================================================
   MrMikeMayo - site styles
   Implemented from the Claude Design handoff bundle (project/*.dc.html).
   Desktop values are 1:1 with the prototypes; responsive rules are additive
   and only take effect below the widths the prototypes were designed at.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --paper:      #FAF9F6;  /* page background */
  --card:       #FFFFFF;
  --sand:       #F1EEE7;  /* tinted band / image placeholder */
  --ink:        #17150F;  /* body text, dark bands */
  --ink-muted:  #4A463C;  /* body copy */
  --ink-subtle: #8A857A;  /* meta, captions */
  --ink-faint:  #B8B2A4;  /* dark-band body, timestamps */
  --line:       #E8E5DE;
  --line-soft:  #F1EEE7;
  --line-field: #D9D4C8;
  --line-dark:  #33302A;  /* borders on the dark bands */
  --quote-dark: #DAD5C9;  /* quote text on dark bands */
  --accent:     #1FA8A0;

  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1200px;   /* standard centred column */
  --gutter: 48px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--paper); }

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

/* Temporary: portfolio and timeline artwork was hosted on the old site and is
   unavailable since the cutover. Tiles carrying this class keep the layout and
   label themselves instead of showing a broken image. Replace an .img-pending
   div with an <img> of the same class to restore a piece. */
.img-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-subtle);
}

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

.page { min-height: 100vh; }
.page--column { display: flex; flex-direction: column; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  width: 100%;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  max-width: var(--shell);
  margin: 0 auto;
}

.nav__logo { display: flex; align-items: center; gap: 10px; }

.logomark {
  font-weight: 100;
  font-size: 32px;
  font-family: var(--sans);
  letter-spacing: -0.02em;
  line-height: 1;
}
.logomark span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Active page link keeps the accent on hover, matching the prototype's
   inline colour taking precedence over the global a:hover rule. The CTA pill
   is excluded: it marks the active page with its accent fill, and tinting the
   label too would leave aqua text on an aqua background. */
.nav__links a[aria-current='page']:not(.nav__cta) { color: var(--accent); }

.nav__cta {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px;
  border-radius: 100px;
}
.nav__cta:hover { background: var(--accent); color: var(--paper); }

/* Contact page: the CTA is already the active page, so it sits accent-filled. */
.nav__cta--active,
.nav__cta--active:hover { background: var(--accent); color: var(--paper); }

/* --------------------------------------------------------------------------
   Page headers (Projects / Moments / Testimonials)
   -------------------------------------------------------------------------- */
.page-header {
  padding-top: 72px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-header--tight { padding-bottom: 40px; }  /* Projects: filters follow */
.page-header--roomy { padding-bottom: 56px; }  /* Moments */

.eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.page-title {
  margin: 0;
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.lede {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 56ch;
  text-wrap: pretty;
}

.section-title {
  margin: 0;
  font-size: 36px;
  font-weight: 350;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
}
.btn--primary { background: var(--accent); color: var(--paper); }
.btn--primary:hover { background: var(--ink); color: var(--paper); }

.btn--outline { border: 1.5px solid var(--ink); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------------------
   Footers
   -------------------------------------------------------------------------- */
.footer-rule {
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter);
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-subtle);
}
/* The prototype sets these link colours inline, which beats the global
   a:hover rule, so they intentionally hold their muted tone on hover. */
.footer-rule a,
.footer-rule a:hover { color: var(--ink-subtle); }

.footer-cta {
  padding: 104px var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-cta h2 {
  margin: 0;
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.02em;
  max-width: 20ch;
  line-height: 1.08;
}
.footer-cta__btn {
  background: var(--accent);
  color: var(--paper);
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 16px;
}
.footer-cta__btn:hover { background: var(--ink); color: var(--paper); }

.footer-cta__meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-subtle);
  margin-top: 32px;
}
.footer-cta__meta a,
.footer-cta__meta a:hover { color: var(--ink-subtle); }

/* ==========================================================================
   Home
   ========================================================================== */
.hero-band {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 88px;
}

.hero__copy { display: flex; flex-direction: column; gap: 20px; }

.hero__greeting {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-subtle);
}

.hero__title {
  margin: 0;
  font-size: 64px;
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.hero__word {
  color: var(--accent);
  display: inline-block;
  animation: wordIn 0.45s ease;
}

@keyframes wordIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__word { animation: none; }
}

.hero__lede {
  margin: 8px 0 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 46ch;
  text-wrap: pretty;
}

.hero__actions { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; }

.hero__video {
  width: 100%;
  max-width: 380px;
  height: auto;        /* the HTML height attribute would otherwise pin the box */
  aspect-ratio: 1 / 1; /* source is 640x640; reserves space before metadata loads */
  justify-self: center;
}

/* About */
.about {
  background: var(--ink);
  color: var(--paper);
  padding: 88px 0;
}
.about__inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}
.about__portrait {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.about__body { display: flex; flex-direction: column; gap: 20px; }
.about__title {
  margin: 0;
  font-size: 36px;
  font-weight: 350;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 28ch;
}
.about__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-faint);
  max-width: 64ch;
  text-wrap: pretty;
}
.stats { display: flex; gap: 36px; margin-top: 12px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-size: 34px; font-weight: 300; color: var(--accent); }
.stat__label {
  font-size: 13px;
  color: var(--ink-subtle);
  font-family: var(--mono);
}

/* Services - editorial list */
.services { padding-top: 88px; padding-bottom: 88px; }
.services__head { display: flex; flex-direction: column; gap: 8px; }
.services__head .section-title { margin-bottom: 24px; }
.services__list { display: flex; flex-direction: column; }

.service {
  display: grid;
  grid-template-columns: 120px 1fr 1.2fr;
  gap: 40px;
  align-items: baseline;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  cursor: default;
  transition: background 0.25s ease;
}
.service:hover {
  background: linear-gradient(90deg, rgba(31, 168, 160, 0.05), transparent);
}
.service__n {
  font-size: 56px;
  font-weight: 100;
  color: var(--accent);
  line-height: 1;
}
.service__title {
  margin: 0;
  font-size: 28px;
  font-weight: 350;
  letter-spacing: -0.01em;
}
.service__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* Apps */
.apps { background: var(--sand); padding: 88px 0; }
.apps__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.apps__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}
.apps__head-copy { display: flex; flex-direction: column; gap: 12px; }
.apps__note {
  margin: 0;
  font-size: 15px;
  color: var(--ink-subtle);
  max-width: 36ch;
  font-family: var(--mono);
  line-height: 1.5;
}
.apps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.app-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 230px;
}
.app-card:hover { color: var(--paper); }
.app-card__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sand);
  object-fit: cover;
  flex-shrink: 0;
}
.app-card__name {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--paper);
}
.app-card__tag {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.4;
}
.app-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-faint);
  flex: 1;
}
.app-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* Featured work */
.featured {
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.featured__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.featured__head-copy { display: flex; flex-direction: column; gap: 12px; }
.featured__all {
  font-weight: 700;
  font-size: 15px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  white-space: nowrap;
}
.featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-card { display: flex; flex-direction: column; gap: 12px; }
.work-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: var(--sand);
  object-fit: cover;
}
.work-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.work-card__title { font-weight: 500; font-size: 16px; }
.work-card__cat {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-subtle);
}

/* Home testimonials band */
.quotes {
  background: var(--ink);
  color: var(--paper);
  padding: 88px 0;
}
.quotes__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.quotes__head { display: flex; flex-direction: column; gap: 12px; }
.quotes__more { margin: 0; font-size: 14px; color: var(--ink-subtle); }
.quotes__more a,
.quotes__more a:hover { color: var(--accent); font-weight: 600; }
.quotes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote-card {
  margin: 0;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
}
.quote-card blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--quote-dark);
  text-wrap: pretty;
}
.quote-card figcaption { display: flex; align-items: center; gap: 12px; }
.quote-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--line-dark);
  object-fit: cover;
}
.quote-card__who { display: flex; flex-direction: column; gap: 2px; }
.quote-card__name { font-weight: 700; font-size: 14px; }
.quote-card__role {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-subtle);
}

/* ==========================================================================
   Projects
   ========================================================================== */
.filters {
  padding-bottom: 32px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter {
  font-family: var(--mono);
  cursor: pointer;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--ink-muted);
  border: 1.5px solid var(--line-field);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed='true'],
.filter[aria-pressed='true']:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.project-grid {
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Temporary: only the four apps remain while the portfolio artwork is
   unavailable, so they run as a single row of four. Drop this class when the
   rest of the grid comes back and it returns to three columns. */
.project-grid--apps { grid-template-columns: repeat(4, 1fr); }
.project { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.project[hidden] { display: none; }
.project__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--sand);
  object-fit: cover;
}
.project__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.project__title { font-weight: 500; font-size: 15px; }
.project__cat {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-subtle);
}
/* ==========================================================================
   Moments
   ========================================================================== */
.timeline {
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
}

.moment {
  display: grid;
  grid-template-columns: 150px 24px 1fr;
  gap: 24px;
  align-items: stretch;
}
.moment__years {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-subtle);
  padding-top: 34px;
  text-align: right;
}
.moment__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.moment__rail::before,
.moment__rail::after {
  content: '';
  width: 1.5px;
  background: var(--line);
}
.moment__rail::before { flex: 0 0 34px; }
.moment__rail::after { flex: 1; }
.moment__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-field);
  flex-shrink: 0;
}
.moment__dot--current { background: var(--accent); }

.moment__body {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.moment__img {
  width: 180px;
  height: auto;          /* let aspect-ratio drive height, not the HTML attribute */
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  flex-shrink: 0;
  background: var(--sand);
  object-fit: cover;
}
.moment__copy { display: flex; flex-direction: column; gap: 4px; }
.moment__company {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.moment__role {
  font-size: 15px;
  color: var(--ink-muted);
  font-weight: 500;
}

/* Only the current roles carry a site link, styled like the app-card links. */
.moment__link {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.moment__link:hover { color: var(--ink); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
  padding-bottom: 96px;
  columns: 2;
  column-gap: 24px;
}

.testimonial {
  margin: 0 0 24px;
  break-inside: avoid;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.testimonial__who { display: flex; align-items: center; gap: 14px; }

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--sand);
  object-fit: cover;
}

/* Initials fallback for anyone without a headshot. */
.testimonial__initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;
  color: var(--ink);
  background: var(--sand);
}

.testimonial__ident { display: flex; flex-direction: column; gap: 1px; }
.testimonial__name { font-weight: 600; font-size: 15px; }
.testimonial__role { font-size: 13px; color: var(--ink-subtle); }

.testimonial__pull {
  margin: 0;
  font-size: 23px;
  font-weight: 350;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}

.testimonial__quote {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-subtle);
  text-wrap: pretty;
  white-space: pre-line;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

.testimonial__context { font-size: 13px; color: var(--ink-faint); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  max-width: var(--shell);
  margin: 0 auto;
  width: 100%;
  padding: 88px var(--gutter) 104px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  flex: 1;
}
.contact__copy { display: flex; flex-direction: column; gap: 20px; }
.contact__lede {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 44ch;
  text-wrap: pretty;
}
.contact__portrait {
  width: 180px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  margin-top: 12px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}
.field input,
.field textarea {
  border: 1.5px solid var(--line-field);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 16px;   /* under 16px makes iOS Safari zoom the page on focus */
  font-family: var(--sans);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.submit {
  background: var(--accent);
  color: var(--paper);
  border: none;
  padding: 15px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: var(--sans);
}
.submit:hover { background: var(--ink); }

/* ==========================================================================
   Responsive - additive only; every rule above holds at the design widths
   ========================================================================== */

/* Nav collapses to two centred rows before the links crowd the lettermark. */
@media (max-width: 860px) {
  .nav__links { gap: 22px; }
}

@media (max-width: 680px) {
  /* 44px targets make the stacked nav ~145px tall. Sticky, that is 17% of a
     phone screen on every page, so below this width it scrolls away instead. */
  .nav { position: static; }

  .nav__inner {
    flex-direction: column;
    gap: 2px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .nav__logo { min-height: 44px; }
  .nav__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 10px;
    font-size: 13px;
  }
  /* 44px hit areas on touch, per WCAG 2.5.5 and Apple's HIG. The padding is
     vertical only, so the nav stays compact enough to remain sticky. */
  .nav__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-left: 4px;
    padding-right: 4px;
  }
  .nav__cta { min-height: 40px; padding: 0 16px; }
}

/* Same treatment for the other small touch targets on phones. */
@media (max-width: 720px) {
  .footer-rule a,
  .footer-cta__meta a,
  .quotes__more a,
  .moment__link {
    display: inline-block;
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .footer-rule,
  .footer-cta__meta { line-height: 1.2; }
}

/* Home hero */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .hero__title { font-size: 48px; }
  .hero__video { max-width: 300px; }
  .about__inner { grid-template-columns: 1fr; gap: 36px; }
  .about__portrait { max-width: 280px; }
  .quotes__grid { grid-template-columns: 1fr; }
}

/* Services list stacks; the numeral sits above the title. */
@media (max-width: 900px) {
  .service {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }
  .service__n { font-size: 44px; }
}

/* Card grids */
@media (max-width: 1000px) {
  .apps__grid,
  .project-grid--apps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .featured__grid,
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .apps__grid,
  .featured__grid,
  .project-grid { grid-template-columns: 1fr; }
  .featured__head { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Testimonials drop to a single column well before the cards get narrow. */
@media (max-width: 900px) {
  .testimonials { columns: 1; }
}

/* Moments: years move above the entry, artwork goes full width. */
@media (max-width: 820px) {
  .moment { grid-template-columns: 110px 24px 1fr; gap: 16px; }
  .moment__img { width: 130px; }
}
@media (max-width: 600px) {
  .moment {
    grid-template-columns: 22px 1fr;
    grid-template-rows: auto auto;
    gap: 0 16px;
  }
  .moment__years {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding-top: 26px;
  }
  .moment__rail { grid-column: 1; grid-row: 1 / span 2; }
  .moment__body {
    grid-column: 2;
    grid-row: 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 10px;
  }
  .moment__img { width: 100%; }
}

/* Contact */
@media (max-width: 860px) {
  .contact {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 56px;
    padding-bottom: 72px;
  }
}

/* Global type + gutter step-down */
@media (max-width: 720px) {
  :root { --gutter: 24px; }

  .page-header { padding-top: 48px; padding-bottom: 32px; }
  .page-title { font-size: 40px; }
  .lede { font-size: 17px; }
  .section-title { font-size: 28px; }

  .hero__title { font-size: 40px; }
  .hero__lede { font-size: 17px; }

  .about,
  .apps,
  .quotes { padding: 64px 0; }
  .about__title { font-size: 28px; }
  .services,
  .featured { padding-top: 64px; padding-bottom: 64px; }
  .service__title { font-size: 24px; }

  .testimonial { padding: 24px; }
  .testimonial__pull { font-size: 20px; }

  .contact__form { padding: 26px; }

  .footer-cta { padding: 72px var(--gutter); }
  .footer-cta h2 { font-size: 34px; }

  .stats { gap: 24px; }
}
