/* ============================================================
   HOMEPAGE
   ------------------------------------------------------------
   Editorial layout: asymmetric split hero, numbered sections,
   hairline grids instead of floating cards, deep forest bands
   for contrast. Depends on the tokens in globals.css.
   ============================================================ */

section {
  padding-block: var(--section-y);
}

/* ============================================================
   HERO
   ------------------------------------------------------------
   Content column on limestone, photography running to the
   container edge. The entrance is pure CSS so it starts at
   first paint and never waits on JavaScript — the <h1> is the
   LCP element, so the sequence is front-loaded and short.
   ============================================================ */

.hero {
  padding: 0;
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid hsl(var(--border));
}

/* Full-bleed to the right, but the copy still starts on the same
   vertical as every .container below it. */
.hero-inner {
  padding-left: max(
    var(--gutter),
    calc((100% - var(--container)) / 2 + var(--gutter))
  );
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  min-height: 100vh;
  min-height: 100svh;
}

.hero-content {
  padding-block: clamp(8rem, 14vh, 11rem) clamp(4rem, 8vh, 6rem);
  max-width: 40rem;
}

.hero-eyebrow {
  margin-bottom: var(--space-8);
}

.hero h1 {
  font-size: var(--step-5);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-8);
  max-width: 12ch;
}

/* The italic clause is the one flourish in the type system —
   brass, Fraunces italic, and nothing else on the page does it. */
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: hsl(var(--accent));
}

.hero-lede {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  max-width: 44ch;
  margin-bottom: var(--space-12);
}

.hero .btn-group {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---- Credentials strip ---- */
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(3rem, 7vh, 5rem);
  padding-top: var(--space-8);
  border-top: 1px solid hsl(var(--border));
}

.hero-meta-item dd {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.hero-meta-item dt {
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* ---- Photography ---- */
.hero-figure {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
  min-height: 60vh;
  /* clips the parallax overscale */
  overflow: hidden;
}

.hero-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Wipes up from behind the limestone ground on load. */
  animation: heroImageIn 1100ms var(--ease-out) both;
  animation-delay: 120ms;
}

@keyframes heroImageIn {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.hero-figure figcaption {
  position: relative;
  z-index: 1;
  margin: var(--space-6);
  padding: 0.875rem 1.125rem;
  background: hsl(var(--background) / 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: var(--step--2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  align-self: flex-start;
  animation: heroRise 620ms var(--ease-out) both;
  animation-delay: 800ms;
}

.hero-figcaption-index {
  color: hsl(var(--accent));
  margin-right: 0.5rem;
}

/* ---- Entrance choreography ---- */
@keyframes heroRise {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero-content > * {
  animation-name: heroRise;
  animation-duration: 640ms;
  animation-timing-function: var(--ease-out);
  animation-fill-mode: both;
}

.hero-content > .hero-eyebrow {
  animation-delay: 0ms;
}
.hero-content > h1 {
  animation-delay: 70ms;
}
.hero-content > .hero-lede {
  animation-delay: 160ms;
}
.hero-content > .btn-group {
  animation-delay: 250ms;
}
.hero-content > .hero-meta {
  animation-delay: 340ms;
}

/* ---- Scroll cue ---- */
.hero-scroll-cue {
  position: absolute;
  left: max(
    var(--gutter),
    calc((100% - var(--container)) / 2 + var(--gutter))
  );
  bottom: 2rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  text-decoration: none;
  color: hsl(var(--muted-foreground));
  animation: heroRise 620ms var(--ease-out) both;
  animation-delay: 900ms;
  transition: color var(--dur-fast) ease;
}

.hero-scroll-cue:hover {
  color: hsl(var(--accent));
}

.hero-scroll-text {
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.hero-scroll-icon {
  display: flex;
  animation: heroNudge 2.4s ease-in-out infinite;
}

.hero-scroll-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
}

@keyframes heroNudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

/* ============================================================
   ABOUT
   ============================================================ */

.about {
  background: hsl(var(--background));
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 0;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Brass hairline frame, offset behind the photograph. */
.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid hsl(var(--accent) / 0.35);
  transform: translate(0.875rem, 0.875rem);
  pointer-events: none;
}

.about-text h3 {
  font-size: var(--step-3);
  font-weight: 300;
  line-height: 1.12;
  margin-bottom: var(--space-6);
  max-width: 18ch;
}

.about-text > p {
  color: hsl(var(--muted-foreground));
  line-height: 1.8;
  max-width: 52ch;
  margin-bottom: var(--space-8);
}

/* ---- Fact list ---- */
.about-facts {
  border-top: 1px solid hsl(var(--border));
  margin-bottom: var(--space-8);
}

.about-fact {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: var(--space-6);
  align-items: baseline;
  padding-block: 1.125rem;
  border-bottom: 1px solid hsl(var(--border));
}

.about-fact dt {
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--accent));
}

.about-fact dd {
  font-size: var(--step-0);
  color: hsl(var(--foreground));
}

/* ============================================================
   CAPABILITIES — HAIRLINE GRID
   ------------------------------------------------------------
   Cells share hairlines rather than each being its own floating
   card. Reads as one drawing rather than eight stickers.
   ============================================================ */

.services-overview {
  background: hsl(var(--muted));
  padding-block: var(--section-y);
}

.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid hsl(var(--hairline));
  border-left: 1px solid hsl(var(--hairline));
}

.service-overview-card {
  position: relative;
  display: block;
  background: transparent;
  border: none;
  border-right: 1px solid hsl(var(--hairline));
  border-bottom: 1px solid hsl(var(--hairline));
  border-radius: 0;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  text-decoration: none;
  transition: background-color var(--dur-base) ease;
}

a.service-overview-card:hover {
  background: hsl(var(--surface));
  transform: none;
  box-shadow: none;
}

.card-index {
  position: absolute;
  top: clamp(1.75rem, 3vw, 2.5rem);
  right: clamp(1.75rem, 3vw, 2.5rem);
  font-size: var(--step--2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: hsl(var(--muted-foreground) / 0.6);
  transition: color var(--dur-base) ease;
}

a.service-overview-card:hover .card-index {
  color: hsl(var(--accent));
}

.service-overview-icon {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  color: hsl(var(--accent));
  margin-bottom: var(--space-8);
  display: block;
}

.service-overview-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.25;
}

.service-overview-card h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  letter-spacing: 0;
  color: hsl(var(--foreground));
  margin-bottom: var(--space-3);
}

.service-overview-card p {
  font-size: var(--step--1);
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  max-width: 32ch;
}

.services-overview-cta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* ============================================================
   SELECTED WORK
   ============================================================ */

.projects {
  background: hsl(var(--background));
}

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

.project-card {
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  text-decoration: none;
  cursor: pointer;
}

.project-card:hover {
  box-shadow: none;
  transform: none;
}

.project-image {
  position: relative;
  overflow: hidden;
  height: auto;
  aspect-ratio: 4 / 5;
  background: hsl(var(--muted));
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 900ms var(--ease-out);
}

.project-card:hover .project-image img {
  transform: scale(1.045);
}

/* Ink veil + "View project" label rise together on hover, so the
   whole tile reads as one affordance rather than a hover tint. */
.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    hsl(var(--deep) / 0.55),
    hsl(var(--deep) / 0) 55%
  );
  opacity: 0;
  transition: opacity var(--dur-base) ease;
  pointer-events: none;
}

.project-card:hover .project-image::after {
  opacity: 1;
}

.project-image::before {
  content: "View project";
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-base) ease,
    transform var(--dur-base) var(--ease-out);
  pointer-events: none;
}

.project-card:hover .project-image::before {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .project-image::before,
  .project-image::after {
    transition: none;
  }
}

.project-content {
  display: flex;
  flex-direction: column;
  padding: var(--space-6) 0 0;
  border-top: 1px solid hsl(var(--border));
  margin-top: var(--space-6);
  position: relative;
}

.project-index {
  order: -1;
  font-size: var(--step--2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: hsl(var(--accent));
  margin-bottom: var(--space-3);
}

.project-content h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 300;
  color: hsl(var(--foreground));
  margin-bottom: var(--space-2);
  transition: color var(--dur-base) ease;
}

.project-card:hover .project-content h3 {
  color: hsl(var(--accent));
}

.project-meta {
  color: hsl(var(--muted-foreground));
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   WHY AAI — DEEP BAND
   ============================================================ */

.before-after {
  background: hsl(var(--deep));
  color: hsl(var(--deep-foreground));
}

.before-after .section-header > p,
.contact .section-header > p {
  color: hsl(var(--deep-muted));
}

.on-deep .services-overview-grid {
  border-top-color: hsl(var(--deep-foreground) / 0.16);
  border-left-color: hsl(var(--deep-foreground) / 0.16);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.on-deep .service-overview-card {
  border-right-color: hsl(var(--deep-foreground) / 0.16);
  border-bottom-color: hsl(var(--deep-foreground) / 0.16);
}

.on-deep .service-overview-card h3 {
  color: hsl(var(--deep-foreground));
}

.on-deep .service-overview-card p {
  color: hsl(var(--deep-muted));
}

.on-deep .service-overview-icon {
  color: hsl(var(--accent-soft));
}

/* ============================================================
   PROCESS
   ============================================================ */

.process {
  background: hsl(var(--background));
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid hsl(var(--hairline));
}

.process-step {
  position: relative;
  background: transparent;
  border: none;
  border-right: 1px solid hsl(var(--border));
  border-radius: 0;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 2.5vw, 2.25rem)
    clamp(2rem, 4vw, 3rem) 0;
}

.process-step:last-child {
  border-right: none;
}

.process-step:not(:first-child) {
  padding-left: clamp(1.5rem, 2.5vw, 2.25rem);
}

.process-step:hover {
  box-shadow: none;
}

/* Oversized brass numeral is the anchor; the icon is secondary. */
.step-index {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  /* On the white ground 0.28 read as a printing fault rather than a
     ghost numeral — 0.42 keeps it quiet but deliberate. */
  color: hsl(var(--accent) / 0.42);
  margin-bottom: var(--space-6);
  transition: color var(--dur-base) ease;
}

.process-step:hover .step-index {
  color: hsl(var(--accent));
}

.process-icon {
  width: auto;
  height: auto;
  background: none;
  color: hsl(var(--muted-foreground));
  border-radius: 0;
  display: block;
  margin-bottom: var(--space-4);
}

.process-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.25;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  color: hsl(var(--foreground));
  margin-bottom: var(--space-3);
}

.process-step p {
  color: hsl(var(--muted-foreground));
  font-size: var(--step--1);
  line-height: 1.7;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials {
  background: hsl(var(--muted));
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid hsl(var(--hairline));
}

.testimonial-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid hsl(var(--border));
  border-right: 1px solid hsl(var(--border));
  border-radius: 0;
  padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem)
    0;
}

.testimonial-card:nth-child(even) {
  border-right: none;
  padding-left: clamp(2rem, 4vw, 3rem);
}

.testimonial-card:hover {
  box-shadow: none;
  transform: none;
}

.stars {
  display: flex;
  gap: 0.25rem;
  color: hsl(var(--accent));
  margin-bottom: var(--space-6);
}

.stars svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.25;
}

.stars .star-full {
  fill: currentColor;
}

.stars .star-empty {
  color: hsl(var(--muted-foreground) / 0.4);
  fill: none;
}

/* The quote carries the display face — this is the one place on
   the page where body copy is set in Fraunces. */
.testimonial-text {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
  margin-bottom: var(--space-8);
  text-wrap: pretty;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: var(--space-4);
  border-top: 1px solid hsl(var(--border));
}

/* The stock silhouette avatars undercut the rest of the page, so the
   attribution carries a brass monogram instead — no external asset,
   and it holds up in both themes. */
.author-image {
  display: none;
}

.author-monogram {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--accent) / 0.45);
  color: hsl(var(--accent));
  font-family: var(--font-sans);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
}

/* Attribution is a label, not a section heading — it is a <p> so the
   document keeps a clean h1 → h2 → h3 outline for screen readers. */
.author-info h4,
.author-info .author-name {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  margin: 0;
}

.author-info p {
  font-size: var(--step--1);
  color: hsl(var(--muted-foreground));
}

/* ============================================================
   FAQ
   ============================================================ */

.faq {
  background: hsl(var(--background));
}

.faq-container {
  max-width: 860px;
  border-top: 1px solid hsl(var(--hairline));
}

.faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid hsl(var(--border));
  border-radius: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  padding: 1.5rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--step-1);
  font-weight: 400;
  color: hsl(var(--foreground));
  min-height: 64px;
  transition: color var(--dur-fast) ease;
}

.faq-question:hover {
  background: none;
  color: hsl(var(--accent));
}

.faq-question svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke-width: 1.25;
  color: hsl(var(--accent));
  transition: transform var(--dur-base) var(--ease-out);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease-out);
}

/* Generous ceiling: at 375px these answers run well past 320px, and a
   short max-height silently clips the last lines. */
.faq-item.active .faq-answer {
  max-height: 40rem;
}

.faq-answer p {
  padding: 0 3rem 1.75rem 0;
  color: hsl(var(--muted-foreground));
  font-size: var(--step-0);
  line-height: 1.8;
  max-width: 62ch;
}

/* ============================================================
   CONTACT — DEEP BAND
   ============================================================ */

.contact {
  background: hsl(var(--deep));
  color: hsl(var(--deep-foreground));
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: none;
  margin: 0;
  border-top: 1px solid hsl(var(--deep-foreground) / 0.16);
}

.contact-item {
  background: transparent;
  border: none;
  border-right: 1px solid hsl(var(--deep-foreground) / 0.16);
  border-radius: 0;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem)
    clamp(2rem, 4vw, 3rem) 0;
  text-align: left;
  text-decoration: none;
  display: block;
  transition: background-color var(--dur-base) ease;
}

.contact-item:not(:first-child) {
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}

.contact-item:last-child {
  border-right: none;
}

.contact-item:hover {
  box-shadow: none;
  transform: none;
  border-color: hsl(var(--deep-foreground) / 0.16);
  background: hsl(var(--deep-foreground) / 0.04);
}

.contact-item-icon {
  width: auto;
  height: auto;
  background: none;
  color: hsl(var(--accent-soft));
  border-radius: 0;
  display: block;
  margin-bottom: var(--space-6);
  transition: transform var(--dur-base) var(--ease-out);
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.25;
}

.contact-item:hover .contact-item-icon {
  background: none;
  color: hsl(var(--accent-soft));
  transform: translateY(-3px);
}

.contact-item h4,
.contact-item .contact-item-label {
  font-family: var(--font-sans);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: hsl(var(--accent-soft));
  margin-bottom: var(--space-3);
}

.contact-item p {
  color: hsl(var(--deep-foreground));
  font-size: var(--step-0);
  line-height: 1.6;
  margin: 0;
}

.contact-item:hover h4,
.contact-item:hover .contact-item-label {
  color: hsl(var(--accent-soft));
}

.contact-cta {
  display: flex;
  gap: var(--space-4);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.contact .btn-outline {
  color: hsl(var(--deep-foreground));
  border-color: hsl(var(--deep-foreground) / 0.35);
}

.contact .btn-outline:hover {
  background: hsl(var(--deep-foreground));
  border-color: hsl(var(--deep-foreground));
  color: hsl(var(--deep));
}

.contact .btn-primary {
  background: hsl(var(--accent-soft));
  border-color: hsl(var(--accent-soft));
  color: hsl(var(--deep)) !important;
}

.contact .btn-primary:hover {
  background: hsl(var(--deep-foreground));
  border-color: hsl(var(--deep-foreground));
  color: hsl(var(--deep)) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
  .services-overview-grid,
  .on-deep .services-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .process-step:nth-child(2n) {
    border-right: none;
  }

  .process-step:nth-child(n + 3) {
    border-top: 1px solid hsl(var(--border));
  }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-inline: var(--gutter);
    gap: 0;
    min-height: 0;
  }

  .hero-content {
    margin-inline: auto;
    width: 100%;
  }

  .hero-content {
    padding-block: clamp(7.5rem, 18vh, 10rem) var(--space-12);
    max-width: 46rem;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .hero-figure {
    min-height: 0;
    aspect-ratio: 4 / 3;
    margin-inline: calc(var(--gutter) * -1);
    margin-bottom: var(--space-16);
  }

  .hero-scroll-cue {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .about-image {
    max-width: 30rem;
  }
}

@media (max-width: 860px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid > :last-child {
    grid-column: span 2;
  }

  .projects-grid > :last-child .project-image {
    aspect-ratio: 16 / 10;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-item,
  .contact-item:not(:first-child) {
    border-right: none;
    border-bottom: 1px solid hsl(var(--deep-foreground) / 0.16);
    padding: var(--space-8) 0;
  }

  .contact-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 700px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card,
  .testimonial-card:nth-child(even) {
    border-right: none;
    padding: var(--space-8) 0;
  }

  .testimonial-card:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .hero-meta {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .hero-meta-item {
    display: flex;
    align-items: baseline;
    gap: var(--space-4);
  }

  .hero-meta-item dd {
    margin-bottom: 0;
    min-width: 4.5rem;
  }

  .hero .btn-group,
  .contact-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .services-overview-grid,
  .on-deep .services-overview-grid {
    grid-template-columns: 1fr;
    border-left: none;
  }

  .service-overview-card {
    border-right: none;
    padding-inline: 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid > :last-child {
    grid-column: auto;
  }

  .projects-grid > :last-child .project-image {
    aspect-ratio: 4 / 5;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step,
  .process-step:not(:first-child) {
    border-right: none;
    border-top: none;
    border-bottom: 1px solid hsl(var(--border));
    padding: var(--space-8) 0;
  }

  .process-step:last-child {
    border-bottom: none;
  }

  .about-fact {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }

  .faq-answer p {
    padding-right: 0;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .hero-content > *,
  .hero-figure img,
  .hero-figure figcaption,
  .hero-scroll-cue,
  .hero-scroll-icon {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
