/* ===================================================================
   home.css — styles specific to the company homepage (home.html).
   Loaded AFTER styles.css so it reuses all existing tokens/components
   (--ink, --ember, .nav, .hero-c, .studio, .contact, .footer …) and only
   adds what's new: the interactive Services selector + a couple of tweaks.
   Nothing here overrides the current site; index.html never loads this file.
   =================================================================== */

/* Homepage About: the design replaces the numeric stats with a single line */
.studio__note {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}

/* Section dividers — hairlines before Services and Contact. (No divider under
   the wordmark / above About, to match the Commercials page.) */
#services,
#contact {
  border-top: 1px solid var(--line);
}

/* Footer wordmark: the shared 12.5vw/180px outgrows the footer's padded
   container past ~1024px and clips the final letters. Trim it slightly so it
   always sits inside (the mobile override below still applies ≤767px). */
.footer__mark {
  font-size: clamp(80px, 12.2vw, 174px);
}

/* =================== SERVICES — interactive practice selector =================== */
.services {
  padding: 100px 40px;
}
.services__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}
.services__index {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.services__head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.services__title {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.15;
  color: var(--ink);
  max-width: 640px;
}
.services__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 392px;
}

.services__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

/* --- Left: large preview (swapped on hover) --- */
.services__preview {
  position: relative;
  display: block;
  height: 620px;
  border-radius: 20px;
  overflow: hidden;
  background: #1a1613;
  border: 1px solid var(--line);
}
.services__preview-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.services__preview-img.is-empty {
  background: radial-gradient(130% 130% at 28% 18%, #2a2320 0%, #131110 70%);
}
.services__preview:hover .services__preview-img { transform: scale(1.03); }
.services__preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.12) 30%,
    rgba(0, 0, 0, 0.8) 75%,
    rgba(0, 0, 0, 0.93) 100%
  );
}
.services__preview-badge {
  position: absolute;
  top: 28px;
  left: 28px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.8);
}
.services__preview-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
}
.services__preview-title {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1;
  color: #ffffff;
}
.services__preview-explabel {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.services__preview-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 400px;
}
.services__preview-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}
.services__preview-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ember);
}
.services__preview-list li strong { color: #ffffff; font-weight: 600; }
.services__preview-link {
  display: inline-flex;
  align-self: flex-start;   /* pill hugs its content instead of stretching */
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.services__preview-link-arrow {
  display: inline-flex;
  transition: transform 0.25s ease;
}
.services__preview-link-arrow svg { width: 16px; height: 16px; display: block; }
.services__preview:hover .services__preview-link-arrow { transform: translateX(4px); }

/* --- Right: the three practice cards --- */
.services__list {
  display: flex;
  flex-direction: column;
  height: 620px;
}
.service-card {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  transition: background-color 0.3s ease, border-radius 0.3s ease;
}
.service-card:first-child { border-top: none; }
/* Only the active card is rounded (it has a full background). Inactive cards
   stay square so their top-border dividers read as straight full-width lines. */
.service-card.is-active {
  background: var(--paper-2);
  border-radius: 20px;
  border-top-color: transparent;
}
.service-card.is-active + .service-card { border-top-color: transparent; }
.service-card__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card__num { font-size: 13px; color: var(--muted); }
.service-card__title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1;
  color: var(--ink);
}
.service-card__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 420px;
}
.service-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--faint);
  color: var(--muted);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.service-card__btn svg { width: 20px; height: 20px; display: block; }
.service-card.is-active .service-card__btn {
  background: var(--ember);
  border-color: var(--ember);
  color: #ffffff;
}

/* On desktop the experience bullets live in the left preview, not the cards */
.service-card__exp { display: none; }

/* =================== homepage — mobile =================== */
@media (max-width: 767px) {
  /* Wordmark bands: fill the width edge-to-edge with tight tracking so they
     read as statement pieces on phones (like desktop). Overrides styles.css.
     The footer mark breaks out of the footer's 24px padding to span full width. */
  .wordmark__text {
    font-size: clamp(40px, 12.5vw, 96px);
    letter-spacing: -0.045em;
  }
  .footer__wordmark {
    width: calc(100% + 48px);
    margin: 0 -24px;
  }
  .footer__mark {
    font-size: clamp(40px, 12.5vw, 96px);
    letter-spacing: -0.045em;
  }

  /* Meta strip: keep the two short items on mobile, drop the long middle one.
     (Shared styles.css hides the 3rd item on mobile — re-show it, hide the 2nd.) */
  .meta-strip span:nth-child(2) { display: none; }
  .meta-strip span:nth-child(3) { display: inline; }

  .services { padding: 64px 24px; }
  .services__head { margin-bottom: 28px; }
  .services__head-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .services__title {
    font-size: 34px;
    letter-spacing: -1.2px;
    line-height: 1.1;
    max-width: none;
  }
  .services__desc { max-width: none; }

  .services__body { grid-template-columns: 1fr; gap: 16px; }

  /* Mobile: keep the preview visible — it auto-cycles through the practices
     (driven by the 6s timer in services.js, since there's no hover on touch).
     The card below it highlights in sync. */
  .services__preview { height: 440px; }
  .services__preview-content { padding: 28px; gap: 12px; }
  .services__preview-title { font-size: 34px; }
  .services__preview-list { gap: 8px; }
  .services__preview-list li { font-size: 14px; }

  .services__list { height: auto; gap: 12px; }
  .service-card {
    flex: none;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px 24px;
  }
  /* Each mobile card is a self-contained box — undo the desktop divider tricks
     (transparent/removed top borders) so no card looks open at the top. */
  .service-card:first-child { border-top: 1px solid var(--line); }
  .service-card.is-active {
    background: var(--paper-2);
    border-top-color: var(--line);
  }
  .service-card.is-active + .service-card { border-top-color: var(--line); }
  .service-card__title { font-size: 24px; }
  .service-card__desc { max-width: none; }
  /* Plus icon is the tap target that navigates on mobile */
  .service-card__btn { width: 44px; height: 44px; cursor: pointer; }
}
