/* ---------- about ---------- */

.about__body {
  font-family: var(--font-body);
  font-size: var(--h4);
  font-weight: var(--w-regular);
  line-height: var(--lh-m);
  max-width: 40ch;
}

.logo-strip { margin-top: var(--sp-small); --marquee-gap: 72px; --marquee-dur: 38s; }
/* These SVGs load through <img>, so currentColor resolves inside their own
   document (black) instead of inheriting page color. Invert flips that
   black fill to white so the logos read against the dark background. */
.logo-strip img { height: 28px; width: auto; filter: invert(1); opacity: .55; transition: opacity .3s; }
.logo-strip img:hover { opacity: 1; }

/* ---------- section opening rule ---------- */

/* A hairline that draws itself left-to-right as the section arrives
   (js/interactions.js toggles .is-drawn; [data-line] in interactions.css owns
   the transition). It carries .container so it lines up with the copy below,
   and background-clip keeps the paint inside the gutter.

   Matched on class AND attribute deliberately: [data-line] sets `background`
   as a shorthand, which resets background-clip, and interactions.css loads
   after this file — so this needs to win on specificity, not order. */
.section__rule[data-line] {
  background-clip: content-box;
  margin-bottom: clamp(24px, 3vw, 56px);
}

/* ---------- work process ---------- */

.work__grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

.work__head { position: sticky; top: 120px; }

.work__grid > div { display: grid; gap: 20px; }

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  padding: 32px clamp(20px, 3vw, 40px);
  border: 1px solid var(--white-100);
  border-radius: var(--radius-lg);
  background: var(--black-300);
  transition: border-color .3s, transform .4s var(--ease), background-color .3s;
}
.step:hover {
  border-color: var(--border-1);
  background: rgba(38, 38, 38, .5);
  transform: translateY(-4px);
}

.step__num {
  font-family: var(--font-body);
  font-size: var(--h5);
  color: var(--primary-text);
  font-variant-numeric: tabular-nums;
}

.step__title {
  font-family: var(--font-body);
  font-size: var(--h4);
  font-weight: var(--w-medium);
  margin-bottom: 12px;
}

@media (max-width: 991px) {
  .work__grid { grid-template-columns: 1fr; }
  .work__head { position: static; }
}

/* ---------- services ---------- */

.services__intro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.services__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); }

.services__lead {
  max-width: 46ch;
  font-family: var(--font-body);
  font-size: var(--h4);
  line-height: var(--lh-m);
  margin-bottom: var(--sp-small);
}

.service {
  border-top: 1px solid var(--white-100);
}
.service:last-child { border-bottom: 1px solid var(--white-100); }

.service__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding-block: clamp(20px, 2.5vw, 34px);
  text-align: left;
}

.service__title {
  font-family: var(--font-body);
  font-size: var(--h3);
  font-weight: var(--w-medium);
  text-transform: uppercase;
  letter-spacing: -.01em;
  transition: color .3s;
}

.service[open] .service__title,
.service__head:hover .service__title { color: var(--primary); }

.service__icon {
  position: relative;
  flex: 0 0 auto;
  width: 22px; height: 22px;
}
.service__icon::before,
.service__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  background: currentColor;
  transition: transform .35s var(--ease);
}
.service__icon::after { transform: rotate(90deg); }
.service[open] .service__icon::after { transform: rotate(0); }

/* Animating grid-template-rows keeps the transition on the compositor and
   avoids the max-height guesswork. */
.service__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.service[open] .service__panel { grid-template-rows: 1fr; }

.service__panel > div { overflow: hidden; }

.service__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: 34px;
}

/* Rows, not pill badges: a small plus-mark + name per line, closer to the
   site's reference design than a wrapped chip cloud. */
.service__tags {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-content: start;
}

.tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--p1);
  color: var(--white-800);
  transition: color .25s, gap .25s var(--ease);
}
.tag:hover { color: var(--white); gap: 16px; }

.tag::before {
  content: "";
  width: 10px; height: 10px;
  flex: 0 0 auto;
  background: var(--primary);
  clip-path: polygon(45% 0, 55% 0, 55% 45%, 100% 45%, 100% 55%, 55% 55%, 55% 100%, 45% 100%, 45% 55%, 0 55%, 0 45%, 45% 45%);
  transition: transform .25s var(--ease);
}
.tag:hover::before { transform: rotate(90deg); }

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

/* ---------- testimonials ---------- */

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.quote {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--white-100);
  border-radius: var(--radius-lg);
  background: var(--black-300);
  transition: border-color .3s, transform .4s var(--ease);
}
.quote:hover { border-color: var(--border-1); }

/* Alternating entrance offsets so the grid cascades in instead of every
   card rising in an identical line. These out-specificity the generic
   [data-reveal] rule in reveal.css, so the two overrides below (equal
   specificity to each other, "not resting" checked first) settle the
   final resting/hover transform once revealed. */
.testimonials__grid .quote:nth-child(3n+1) { transform: translate3d(0, 36px, 0); }
.testimonials__grid .quote:nth-child(3n+2) { transform: translate3d(0, 20px, 0); }
.testimonials__grid .quote:nth-child(3n+3) { transform: translate3d(0, 44px, 0); }
.testimonials__grid .quote.is-in:not(:hover) { transform: none; }
.testimonials__grid .quote.is-in:hover { transform: translateY(-4px); }

.quote__stars { display: flex; gap: 4px; color: var(--primary); }
.quote__stars svg { width: 16px; height: 16px; }

.quote__title {
  font-family: var(--font-body);
  font-size: var(--h5);
  font-weight: var(--w-medium);
  line-height: var(--lh-m);
}

.quote__text { font-size: var(--p2); color: var(--white-800); line-height: var(--lh-xl); }

.quote__person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--stroke); }
.quote__name { font-family: var(--font-body); font-weight: var(--w-medium); }
.quote__role { font-size: var(--p2); color: var(--text-muted); }

/* ---------- big image + awards ---------- */

.showcase { position: relative; }

/* vh first, svh second: where svh is unsupported the second declaration is
   dropped at parse time and vh carries the band. Without the fallback the
   whole rule is lost and the media collapses to 0 — the img inside is sized
   in percent, so it has no intrinsic height to fall back on. */
.showcase__media {
  position: relative;
  height: 70vh;
  height: 70svh;
  overflow: hidden;
}

/* <picture> is inline by default, which would introduce a line box between
   .showcase__media and the img it sizes. display:contents removes the wrapper
   from layout so the img stays an effective direct child. */
.showcase__media picture { display: contents; }

.showcase__media img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  transform: translate3d(0, var(--parallax, 0), 0);
  will-change: transform;
}

/* Fades the hard photo edges into the sections above/below so the
   transition feels continuous instead of a flat crop. */
.showcase__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, var(--black) 0%, transparent 12%, transparent 88%, var(--black) 100%);
  pointer-events: none;
}

.award {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding-block: 32px;
  border-top: 1px solid var(--white-100);
  transition: padding-left .4s var(--ease), border-color .3s;
}
.award:last-child { border-bottom: 1px solid var(--white-100); }
.award:hover { padding-left: 16px; border-color: var(--primary); }

.award__title {
  font-family: var(--font-body);
  font-size: var(--h4);
  font-weight: var(--w-medium);
  margin-bottom: 8px;
  transition: color .3s;
}
.award:hover .award__title { color: var(--primary-text); }

.award__year {
  font-family: var(--font-body);
  color: var(--primary-text);
  transition: color .3s;
}
.award:hover .award__year { color: var(--white); }

/* ---------- contact ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.person { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.person__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--stroke); }
.person__name { font-family: var(--font-body); font-weight: var(--w-medium); text-transform: capitalize; }
.person__role { font-size: var(--p2); color: var(--text-muted); }

.form { display: grid; gap: 14px; }

.field {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--white-100);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--white);
  font: inherit;
  transition: border-color .25s;
}
.field::placeholder { color: var(--text-muted); }
.field:focus { border-color: var(--primary); }
/* Drop the ring for pointer focus only. Blanket outline:none on :focus
   would strip it for keyboard users too. */
.field:focus:not(:focus-visible) { outline: none; }
textarea.field { min-height: 140px; resize: vertical; }

.form__submit { justify-self: start; border: 0; }
.form__submit[disabled] { opacity: .6; cursor: progress; }

.form__note { font-size: var(--p2); border-radius: var(--radius-md); padding: 16px 20px; display: none; }
.form__note--ok { background: rgba(255,255,255,.06); border: 1px solid var(--border-1); }
.form__note--bad { background: rgba(229,25,42,.12); border: 1px solid var(--primary); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* ---------- cta + footer ---------- */

/* Two rows crossing in opposite directions, like the site's reference
   design — one .marquee scrolling left, one .marquee--reverse scrolling
   right, stacked with a gap between. */
.cta-marquee {
  --marquee-gap: 40px;
  --marquee-dur: 26s;
  display: grid;
  gap: 16px;
  padding-block: 24px;
  background: var(--primary);
  color: var(--white);
}
.cta-marquee__word {
  font-family: var(--font-body);
  font-weight: var(--w-semibold);
  font-size: var(--h2);
  line-height: var(--lh-s);
  text-transform: capitalize;
  white-space: nowrap;
}
.cta-marquee .star { width: 22px; height: 22px; color: var(--white); flex: 0 0 auto; }
