/* =========================================================
   NoFomo Digital — design system
   ========================================================= */

:root {
  /* Palette */
  --cream-bg: #efe6d8;
  --cream-alt: #f5eee3;
  --cream-footer: #f8ece3;
  --maroon-dark: #3a1710;
  --coral: #c1503e;
  --text-body: #6b5d52;
  --cream-text: #f3e9da;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --section-y: clamp(5rem, 10vw, 9rem);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1240px;
  --rule: 1px solid rgba(58, 23, 16, 0.16);
  --rule-light: 1px solid rgba(243, 233, 218, 0.22);

  /* Compact header, also used for anchor scroll offsets */
  --header-h: 84px;
  --logo-h: 34px;

  /* Expanded header, before the page is scrolled */
  --header-h-top: 124px;
  --logo-h-top: 64px;
}

/* =========================================================
   Reset / base
   ========================================================= */

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

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

body {
  margin: 0;
  background: var(--cream-bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--maroon-dark);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* =========================================================
   Shared primitives
   ========================================================= */

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

.section {
  padding-block: var(--section-y);
  scroll-margin-top: var(--header-h);
}

.section--alt {
  background: var(--cream-alt);
}

.section--cream {
  background: var(--cream-bg);
}

/* Small uppercase label */
.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
}

.label--coral {
  color: var(--coral);
}

.rule {
  border: 0;
  border-top: var(--rule);
  margin: 0;
}

.rule--light {
  border-top: var(--rule-light);
}

/* Section heading block */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  max-width: 22ch;
  margin-top: 1rem;
}

.section-title--wide {
  max-width: 34ch;
}

/* Small serif heading (e.g. "The Heart of Our Work") */
.heading-sm {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-top: 1.25rem;
}

.rule--short {
  width: 48px;
  margin-top: 1.75rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--maroon-dark);
  color: var(--cream-text);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* =========================================================
   Brand lockup (mark + stacked wordmark)
   ========================================================= */

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand:hover,
.brand:focus-visible {
  opacity: 0.72;
}

/* Official lockup: coral quarter-circle mark + stacked "nofomo digital" */
.brand__logo {
  height: var(--logo-h-top);
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

.site-header.is-compact .brand__logo {
  height: var(--logo-h);
}

.site-footer .brand__logo {
  height: 44px;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  /* -webkit- prefix is still required by older iOS Safari, where an
     unprefixed sticky is ignored and the header scrolls away. */
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream-bg);
  border-bottom: var(--rule);
}

.site-header__inner {
  min-height: var(--header-h-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: min-height 0.3s ease;
}

/* Applied by js/site.js once scrolled (or while the mobile menu is open) */
.site-header.is-compact .site-header__inner {
  min-height: var(--header-h);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.4rem);
}

.nav__link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--maroon-dark);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--maroon-dark);
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--maroon-dark);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

.btn-pill:hover,
.btn-pill:focus-visible {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--cream-text);
}

/* Darkens the page behind the mobile menu. Desktop nav is inline, not an
   overlay, so this stays fully inert there. */
.nav-backdrop {
  display: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--maroon-dark);
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  background: var(--cream-bg);
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: var(--section-y);
  scroll-margin-top: var(--header-h);
}

.hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.hero__headline {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: clamp(1.25rem, 3.5vw, 2.25rem);
  max-width: 17ch;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  line-height: 1.45;
  color: var(--text-body);
  margin-top: 1.25rem;
  max-width: 36ch;
}


/* Right column: photo + badge + overlapping card */
.hero__media {
  position: relative;
  padding-top: clamp(2rem, 6vw, 3.5rem);
}

.arch {
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: rgba(58, 23, 16, 0.06);
  aspect-ratio: 4 / 5;
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dotted circular badge */
.badge {
  position: absolute;
  top: 0;
  left: -1.5rem;
  width: clamp(96px, 12vw, 132px);
  height: clamp(96px, 12vw, 132px);
  z-index: 2;
  animation: badge-spin 34s linear infinite;
}

.badge svg {
  width: 100%;
  height: 100%;
  display: block;
}

.badge__text {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  fill: var(--maroon-dark);
}

.badge__ring {
  fill: none;
  stroke: var(--coral);
  stroke-width: 1;
  stroke-dasharray: 0.5 4;
  stroke-linecap: round;
}

.badge__star {
  fill: var(--coral);
}

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

/* Overlapping "about us" card */
.hero__card {
  position: relative;
  z-index: 3;
  margin-top: -3.5rem;
  margin-left: auto;
  margin-right: -0.5rem;
  width: min(300px, 88%);
  background: var(--cream-bg);
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: 0 18px 40px rgba(58, 23, 16, 0.08);
}

.hero__card p {
  font-size: 0.86rem;
  line-height: 1.7;
  margin-top: 0.75rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--maroon-dark);
  border-bottom: 1px solid rgba(58, 23, 16, 0.3);
  padding-bottom: 2px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    gap 0.2s ease;
}

.link-arrow:hover,
.link-arrow:focus-visible {
  color: var(--coral);
  border-bottom-color: var(--coral);
  gap: 0.7rem;
}

/* Hero lower band */
.hero__rule {
  margin-block: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 1.75rem);
}

.hero__tagline {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 46ch;
}

.hero__services {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.hero__services-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1rem;
  margin-top: 1.25rem;
}

.hero__services-list li {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--maroon-dark);
  line-height: 1.75;
}

/* =========================================================
   About — part one
   ========================================================= */

.about-one__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: 2.5rem;
}

.statement {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  line-height: 1.4;
  color: var(--maroon-dark);
  letter-spacing: -0.01em;
}

.about-one__body {
  margin-top: 2.25rem;
  display: grid;
  gap: 1.25rem;
  max-width: 62ch;
}

.dateline {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  border-bottom: 1px solid var(--coral);
  padding-bottom: 3px;
}

/* =========================================================
   About — part two
   ========================================================= */

.about-two__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-two__copy {
  display: grid;
  gap: 1.5rem;
  max-width: 44ch;
  font-size: 0.92rem;
}

.about-two__figure {
  margin: 0;
}

.about-two__figure img {
  width: 100%;
  border-radius: 14px;
  filter: grayscale(1) contrast(1.05);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* =========================================================
   Services
   ========================================================= */

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.25rem);
  margin-top: 1rem;
}

.service {
  padding-top: 1.5rem;
  border-top: var(--rule);
}

.service__title {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.3;
}

.service p {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  max-width: 46ch;
}

/* =========================================================
   Process
   ========================================================= */

.process__counter {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--coral);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: var(--rule);
}

.step__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--coral);
  letter-spacing: -0.02em;
}

.step__title {
  font-size: 1.2rem;
  margin-top: 0.9rem;
}

.step p {
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

/* =========================================================
   Clients
   ========================================================= */

.clients__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 3rem;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 128px;
  padding: 1.5rem;
  border: var(--rule);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.35);
  transition:
    border-color 0.22s ease,
    transform 0.22s ease;
}

.client-logo:hover {
  border-color: rgba(193, 80, 62, 0.55);
  transform: translateY(-3px);
}

.client-logo svg {
  width: 100%;
  max-width: 132px;
  height: auto;
  color: var(--maroon-dark);
  opacity: 0.55;
}

/* =========================================================
   Dark pull-quote
   ========================================================= */

.quote-section {
  background: var(--maroon-dark);
  color: var(--cream-text);
  text-align: center;
}

.quote-section__inner {
  max-width: 54rem;
  margin-inline: auto;
}

.quote-glyph {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--coral);
  display: block;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.quote-section blockquote {
  margin: 0;
}

.quote-section blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  line-height: 1.35;
  color: var(--cream-text);
  letter-spacing: -0.01em;
}

.quote-section .rule {
  width: 84px;
  margin-inline: auto;
  margin-block: clamp(2rem, 4vw, 3rem);
}

.quote-section__caption {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.9;
  color: rgba(243, 233, 218, 0.72);
  max-width: 52ch;
  margin-inline: auto;
}

/* =========================================================
   Contact
   ========================================================= */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  margin-top: 2.5rem;
}

.contact__lede {
  margin-top: 1.5rem;
  max-width: 34ch;
}

.contact__direct {
  margin-top: 2rem;
  display: grid;
  gap: 0.5rem;
}

.contact__email {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--maroon-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(58, 23, 16, 0.3);
  padding-bottom: 3px;
  justify-self: start;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.contact__email:hover,
.contact__email:focus-visible {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

/* Form */
.contact-form {
  display: grid;
  gap: 1.75rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-body);
}

.field .optional {
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.7;
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--maroon-dark);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(58, 23, 16, 0.28);
  border-radius: 0;
  padding: 0.6rem 0;
  width: 100%;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(107, 93, 82, 0.5);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--coral);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
}

/* Native validation styling, only after the user has interacted */
.field input:user-invalid,
.field textarea:user-invalid {
  border-bottom-color: var(--coral);
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.25rem;
}

.btn-pill--solid {
  background: var(--maroon-dark);
  color: var(--cream-text);
  border-color: var(--maroon-dark);
  padding-inline: 2rem;
}

.btn-pill--solid:hover,
.btn-pill--solid:focus-visible {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--cream-text);
}

.form-status {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
}

.form-status[data-state="error"] {
  color: var(--coral);
}

/* Hidden from sighted users and screen readers, still fillable by bots */
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* `display: grid` below would otherwise beat the UA's [hidden] rule and
   leave both panels permanently visible. */
.contact-form[hidden],
.form-success[hidden] {
  display: none;
}

/* Success state, shown in place of the form */
.form-success {
  border-top: var(--rule);
  padding-top: 2rem;
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.form-success:focus {
  outline: none;
}

.form-success__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  color: var(--maroon-dark);
}

.form-success p:not(.form-success__title) {
  max-width: 40ch;
}

.form-success .link-arrow {
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(58, 23, 16, 0.3);
  cursor: pointer;
  font-family: var(--font-body);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--cream-footer);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem;
  scroll-margin-top: var(--header-h);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  gap: clamp(2rem, 5vw, 4rem);
}

.site-footer__note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--maroon-dark);
  margin-top: 1.5rem;
  max-width: 30ch;
}

.site-footer__copy {
  margin-top: 1.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-body);
}

.footer-col__title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  display: grid;
  gap: 0.7rem;
}

.footer-col a {
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--text-body);
  transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--coral);
}

/* =========================================================
   Responsive — tablet
   ========================================================= */

@media (max-width: 960px) {
  :root {
    --header-h: 72px;
    --header-h-top: 92px;
    --logo-h-top: 44px;
  }

  .hero__top {
    grid-template-columns: minmax(0, 1fr);
    /* children below carry their own margins once stacked */
    gap: 0;
  }

  .hero__media {
    max-width: 460px;
    width: 100%;
  }

  .badge {
    left: auto;
    right: 0;
    top: -0.5rem;
  }

  .hero__card {
    margin-right: 0;
    margin-left: auto;
  }

  /* Stacked hero: portrait first, then "What we do" as a 2x2.
     display:contents lifts the intro's children into the hero grid so the
     services block can be ordered past the photo. */
  .hero__intro {
    display: contents;
  }

  .hero__media {
    order: 1;
  }

  .hero__services {
    order: 2;
    margin-top: clamp(2rem, 6vw, 2.75rem);
  }

  .hero__services-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
  }

  .about-one__grid,
  .about-two__grid,
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .process__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   Responsive — mobile
   ========================================================= */

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(58, 23, 16, 0.45);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      visibility 0.22s;
  }

  .nav-backdrop[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header__inner {
    /* tight gap so the CTA and hamburger read as one cluster */
    gap: 0.6rem;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 45; /* above .nav-backdrop (40), below the header (50) */
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream-bg);
    border-bottom: var(--rule);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s;
  }

  .nav[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__link {
    width: 100%;
    padding-block: 0.9rem;
    border-bottom: var(--rule);
  }

  .nav__link:last-of-type {
    border-bottom: 0;
  }

  /* Headline sits on the clamp() floor at every phone width, so bump it
     20% (32px -> 38.4px) rather than nudging the fluid middle value. */
  .hero__headline {
    font-size: 2.4rem;
    max-width: 20ch;
  }

  /* Keep the single CTA visible on mobile, just tighter.
     The nav is position:fixed here, so only brand / CTA / toggle remain in
     flow; auto margin soaks up the free space so the CTA sits beside the
     hamburger instead of being stranded mid-bar by space-between. */
  .header-cta {
    margin-left: auto;
    padding: 0.6rem 1.1rem;
    font-size: 0.66rem;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .services__grid,
  .process__grid,
  .clients__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .clients__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__meta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero__card {
    width: 100%;
    margin-top: -2rem;
  }
}

/* =========================================================
   Very small phones: logo + CTA + hamburger is a tight row
   ========================================================= */

@media (max-width: 380px) {
  :root {
    --logo-h-top: 38px;
    --logo-h: 30px;
  }

  .header-cta {
    padding: 0.55rem 0.85rem;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }
}

/* =========================================================
   Motion preferences
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
