/* =========================================================
   SECTIONS — hero, about, clients, testimonials, contact, footer.
   ========================================================= */

/* ---------- Mobile menu ---------- */
.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -0.5rem;
  color: var(--gold);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav-toggle span + span {
  margin-top: 5px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: var(--nav-h) var(--gutter) var(--space-2xl);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur) var(--ease-out),
    visibility var(--dur) var(--ease-out);
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  opacity: 0;
  transform: translateY(14px);
  transition:
    color var(--dur-fast) var(--ease-out),
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--i, 0ms);
}
.mobile-menu.is-open a {
  opacity: 1;
  transform: none;
}
.mobile-menu a:hover {
  color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--nav-h) + var(--space-3xl)) var(--gutter) var(--space-3xl);
  overflow: hidden;
}

/* Ambient light that follows the pointer (--px/--py from pointer-fx.js). */
.hero-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 60% 55% at var(--px, 72%) var(--py, 45%),
      color-mix(in srgb, var(--gold) 12%, transparent),
      transparent 62%
    ),
    radial-gradient(ellipse 45% 60% at 8% 85%, color-mix(in srgb, var(--gold) 6%, transparent), transparent 60%);
  transition: background-position var(--dur-slow) var(--ease-out);
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--gold) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--gold) 6%, transparent) 1px, transparent 1px);
  background-size: 84px 84px;
  /* Fade the grid out toward the edges so it reads as texture, not a table. */
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 78%);
}

/* Decorative icon field. Layer 1 — above the aura/grid (0) but below
   .hero-inner (2), and pointer-events:none, so it can never sit on top of
   text or swallow a click. */
.floaties {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  /* Fade out toward the middle so icons never fight the headline. */
  mask-image: radial-gradient(ellipse 62% 58% at 46% 50%, transparent 30%, #000 78%);
}
.floatie {
  position: absolute;
  color: var(--gold);
  opacity: 0.14;
  will-change: transform;
  animation: floatie-drift var(--float-duration, 15s) var(--ease-in-out) var(--float-delay, 0s) infinite;
}
@keyframes floatie-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -22px, 0) rotate(6deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .floatie {
    animation: none;
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.hero-content {
  max-width: 40rem;
}

/* Social row, inline under the CTAs (replaces the old absolute right rail,
   whose space the dashboard now occupies). */
.hero-social {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--space-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem 0.45rem 0.85rem;
  margin-bottom: var(--space-lg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--accent-wash);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-badge .dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
/* Radar ping on the availability dot. */
.hero-badge .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold);
  animation: ping 2s var(--ease-out) infinite;
}
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

.hero-name {
  font-size: var(--step-5);
  line-height: 0.94;
  margin-bottom: var(--space-md);
}
.hero-name em {
  display: block;
  font-style: italic;
  font-weight: 400;
  background: var(--gold-sheen);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Each line rises out from behind a mask. */
.line-mask {
  display: block;
  overflow: hidden;
}
.line-mask > * {
  display: block;
  transform: translateY(105%);
  animation: line-rise 1s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes line-rise {
  to {
    transform: none;
  }
}

.hero-role {
  max-width: 34rem;
  margin-bottom: var(--space-xl);
  font-size: var(--step-1);
  color: var(--text-muted);
}
.hero-role strong {
  color: var(--text);
  font-weight: 600;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  margin-bottom: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--hairline);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Large screens: the hero was leaving a lot of dead space on the left, so let
   it use a wider frame and scale the type up to match. */
@media (min-width: 1400px) {
  .hero-inner {
    max-width: var(--container-wide);
  }
  .hero-content {
    max-width: 46rem;
  }
  .hero-name {
    font-size: clamp(5rem, 5.2vw, 7.5rem);
  }
  .hero-role {
    max-width: 40rem;
    font-size: 1.4rem;
  }
}

/* The logo tracks in the Trusted strip run on this. */
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  max-width: var(--container);
  margin-inline: auto;
}

/* isolate: keeps the offset outline (z-index 0) inside this stacking context,
   so it sits behind the photo but never slips behind the section background. */
.about-portrait {
  position: relative;
  isolation: isolate;
  /* Capped so the portrait's height stays close to the copy column's —
     otherwise centred columns read as "photo up, text drifted down". */
  max-width: 400px;
  margin-inline: auto;
  width: 100%;
}
.about-portrait::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  z-index: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}

.about-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
.about-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1.2s var(--ease-out);
}
.about-portrait:hover .about-frame img {
  transform: scale(1.03);
}

.about-badge {
  position: absolute;
  z-index: 2;
  right: -0.75rem;
  bottom: -1rem;
  padding: 0.9rem 1.15rem;
  border-radius: var(--r-sm);
  background: var(--gold-sheen);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-glow);
}
.about-badge .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
}
.about-badge .label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.about-copy p {
  margin-bottom: var(--space-md);
  color: var(--text-muted);
  line-height: 1.85;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 0.6rem;
  margin-top: var(--space-lg);
}
.skills-grid .chip {
  border-radius: var(--r-sm);
  justify-content: flex-start;
}

/* ---------- Trusted-by strip (logos moved up, slim) ---------- */
.trusted {
  position: relative;
  padding-block: clamp(2.75rem, 5vw, 4rem);
  padding-inline: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.trusted-head {
  max-width: var(--container);
  margin: 0 auto clamp(1.75rem, 3vw, 2.5rem);
  padding-inline: var(--gutter);
  text-align: center;
}
.trusted-head .eyebrow {
  justify-content: center;
}
.trusted-head .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.trusted-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 1.2vw, 1.7rem);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.logo-marquee {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  /* Fade the rows into the page at both edges. */
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logo-row {
  overflow: hidden;
  padding-block: 0.35rem;
}
.logo-track {
  display: flex;
  width: max-content;
  /* Slow and continuous — deliberately never paused on hover. */
  animation: marquee 45s linear infinite;
  will-change: transform;
}
.logo-track--reverse {
  animation-direction: reverse;
}
.logo-set {
  display: flex;
  flex: 0 0 auto;
}
/* No card frame — the logos sit directly on the page and read larger. */
.logo-item {
  display: grid;
  place-items: center;
  min-width: 210px;
  height: 104px;
  padding: 0.5rem 1.75rem;
  transition: transform var(--dur-fast) var(--ease-out);
}
.logo-item:hover {
  transform: translateY(-3px);
}
.logo-item img {
  width: 170px;
  height: 74px;
  object-fit: contain;
  /* Logos arrive in mixed treatments; desaturate for a uniform wall, restore
     colour on hover. */
  filter: grayscale(1);
  opacity: 0.62;
  transition:
    filter var(--dur) var(--ease-out),
    opacity var(--dur) var(--ease-out);
}
.logo-item:hover img {
  filter: none;
  opacity: 1;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 62rem;
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
  padding-inline: var(--gutter);
}

/* ---------- Testimonials ---------- */
.testimonial-media {
  aspect-ratio: 1 / 1;
}
.testimonial-stars {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}
.testimonial-text {
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-muted);
}
.testimonial-author {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.testimonial-role {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.testimonial-role:empty {
  display: none;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  max-width: var(--container);
  margin-inline: auto;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: var(--space-lg);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem;
  margin-left: -0.75rem;
  border-radius: var(--r-sm);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.contact-item:hover {
  background: var(--accent-wash);
}
.contact-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--accent-wash);
  color: var(--gold);
}
.contact-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.contact-value {
  font-size: 0.92rem;
  color: var(--text);
  transition: color var(--dur-fast) var(--ease-out);
}
a.contact-value:hover {
  color: var(--gold);
}

.social-row {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--space-lg);
}
.social-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.social-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--accent-wash);
  transform: translateY(-2px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.15rem, 2.4vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.field--hidden {
  display: none;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) var(--space-lg);
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
/* Hairline of brand colour along the very top. */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  max-width: var(--container);
  margin-inline: auto;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--hairline);
}

.footer-brand {
  max-width: 34ch;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text);
}
.footer-logo em {
  font-style: normal;
  color: var(--gold);
}
.footer-blurb {
  margin: 0.75rem 0 1.25rem;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.footer-brand .social-row {
  margin-top: 0;
}

/* Grid children need min-width:0 so long link text can't blow out a column. */
.footer-col {
  min-width: 0;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
}
.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition:
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.footer-list a:hover {
  color: var(--gold);
  transform: translateX(3px);
}
.footer-list--contact i {
  width: 1rem;
  color: var(--gold);
  font-size: 0.8rem;
  opacity: 0.75;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: var(--container);
  margin: var(--space-lg) auto 0;
  font-size: 0.78rem;
  color: var(--text-subtle);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .nav-list {
    display: none;
  }
  .nav-toggle {
    display: grid;
  }
  /* Stack: copy first, dashboard underneath — so it reads just before the
     Trusted-by strip on phones and tablets. */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .hero-content {
    max-width: none;
  }
  .dash {
    max-width: 30rem;
    margin-inline: auto;
    width: 100%;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .about-portrait {
    max-width: 360px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .logo-item {
    min-width: 168px;
    height: 88px;
    padding-inline: 1.25rem;
  }
  .logo-item img {
    width: 132px;
    height: 58px;
  }
}

@media (max-width: 680px) {
  /* The offset outline hangs 1.25rem past the portrait — drop it on narrow
     screens so nothing pushes against the gutter. */
  .about-portrait::before {
    display: none;
  }
  .about-badge {
    right: 0.5rem;
    bottom: -0.75rem;
    padding: 0.75rem 1rem;
  }
  .about-badge .num {
    font-size: 1.6rem;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + var(--space-2xl));
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}
