/* Asake's Socials: group socials page (/teams).
   Built from "Asakes Socials For Teams" (desktop) and its Mobile file (below 761px).
   Tokens, fonts, .mono, .hl and .display come from styles.css. */

.teams-body { --line: #e6e4de; --ink-2: #4a4842; --dark-line: #3a3934; }

.t-page {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 10px;
  overflow-x: clip;
}
.t-page main { display: flex; flex-direction: column; }
.t-page h1, .t-page h2, .t-page h3, .t-page p { margin: 0; font-weight: 400; }

/* ---------- pills ---------- */
.t-pill {
  display: inline-block;
  padding: 15px 22px;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.t-pill--ink { background: var(--ink); color: var(--bg); }
.t-pill--line { border: 1px solid var(--ink); padding: 14px 22px; }
.t-pill:hover { opacity: 1; transform: scale(1.04); }

/* ---------- nav ---------- */
.t-nav {
  position: fixed;
  top: 12px; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.t-nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: var(--white);
  padding: 6px 6px 6px 20px;
  border-radius: 8px;
  animation: rise .9s .4s both;
}
.t-nav__brand { font-family: var(--font-display); font-size: 20px; letter-spacing: 0; line-height: 1; white-space: nowrap; }
.t-nav__cta { background: var(--yellow); padding: 13px 20px; border-radius: 999px; white-space: nowrap; transition: transform .3s var(--ease-out); }
.t-nav__cta:hover { opacity: 1; transform: scale(1.04); }

/* ---------- hero ---------- */
.t-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 36px;
  padding: 18vh 12px 6vh;
}
.t-hero__photos { position: absolute; inset: 0; pointer-events: none; }
/* wrapper carries position, rotation and the scroll parallax; the img carries the pop-in */
.t-photo {
  position: absolute;
  left: var(--x); top: var(--y); width: var(--w);
  transform: translateY(var(--ty, 0px)) rotate(var(--rot));
  will-change: transform;
}
.t-photo img {
  width: 100%;
  aspect-ratio: var(--ratio);
  object-fit: cover;
  border-radius: 3px;
  animation: pop 1.1s var(--ease-out) var(--delay) both;
}
.t-photo--a { --x: 58%; --y: 9%;  --w: 17vw; --ratio: 4/5; --rot: 3deg;  --delay: .25s; }
.t-photo--b { --x: 79%; --y: 30%; --w: 14vw; --ratio: 1/1; --rot: -4deg; --delay: .37s; }
.t-photo--c { --x: 38%; --y: 5%;  --w: 11vw; --ratio: 3/4; --rot: -2deg; --delay: .49s; }
.t-photo--d { --x: 66%; --y: 56%; --w: 12vw; --ratio: 3/4; --rot: 2deg;  --delay: .61s; }
.t-photo--e { --x: 86%; --y: 4%;  --w: 10vw; --ratio: 4/5; --rot: 5deg;  --delay: .73s; }

.t-hero__kicker, .t-hero__title, .t-hero__ctas { position: relative; }
.t-hero__title {
  font-size: clamp(44px, 6.4vw, 104px);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 13ch;
  text-wrap: balance;
  animation: rise 1.1s .15s var(--ease-out) both;
}
.t-hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; animation: rise 1s .5s both; }

/* ---------- word-by-word reveal (statement + quotes) ---------- */
[data-words] { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; }
[data-words] mark { background: none; color: inherit; display: contents; }
.w {
  display: inline-block;
  opacity: .12;
  transform: translateY(8px);
  padding: 0 .08em;
  margin: 0 -.08em;
  border-radius: 2px;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), background .6s;
}
.w.is-on { opacity: 1; transform: none; }
.w.is-hl.is-on { background: var(--yellow); }

.t-statement {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14vh 12px;
}
.t-statement__text {
  font-size: clamp(28px, 3.6vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 24ch;
  gap: 0 .26em;
}

/* ---------- shared card + section head ---------- */
.t-card {
  background: var(--white);
  border-radius: 4px;
  padding: 48px 32px 56px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.t-card--dark { background: var(--ink); color: var(--bg); padding: 56px 32px 64px; gap: 80px; }
.t-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px 60px;
  align-items: end;
}
.t-head__left { display: flex; flex-direction: column; gap: 18px; }
.t-head h2 {
  font-size: clamp(32px, 3.8vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 16ch;
}
.t-head__lede { font-size: 17px; line-height: 1.55; max-width: 40ch; color: var(--ink-2); }
.t-card--dark .t-head__lede { color: var(--ink-soft); }

/* ---------- offer ---------- */
.t-offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}
.t-offer-card {
  background: var(--bg);
  border-radius: 4px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 300px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease-out) var(--delay, 0s), transform .9s var(--ease-out) var(--delay, 0s), background .4s;
}
.t-offer-card:nth-child(2) { --delay: .08s; }
.t-offer-card:nth-child(3) { --delay: .16s; }
.t-offer-card:nth-child(4) { --delay: .24s; }
.t-offer-card:nth-child(5) { --delay: .32s; }
.t-offer-card:nth-child(6) { --delay: .40s; }
.is-seen .t-offer-card { opacity: 1; transform: none; }
.t-offer-card:hover { background: var(--yellow); }
.t-offer-card h3 { font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.t-offer-card p { font-size: 15px; line-height: 1.55; color: var(--ink-2); flex: 1; max-width: 34ch; }

.t-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 24px 12px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.t-facts > div { display: flex; flex-direction: column; gap: 8px; }
.t-facts dd { margin: 0; font-size: 19px; line-height: 1.3; }

/* ---------- formats marquee ---------- */
/* Pinned: the strip holds mid-screen while the scroll slides every format past. */
.t-formats { height: 320vh; position: relative; }
.t-formats__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.t-formats__label { padding: 0 12px; }
.t-formats__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-size: clamp(64px, 9vw, 150px);
  line-height: 1;
  letter-spacing: -0.01em;
  will-change: transform;
}
.t-formats__run { display: flex; }
.t-formats__item { display: flex; align-items: center; gap: .5em; padding-right: .5em; }
.t-formats__dot { display: inline-block; width: .32em; height: .32em; border-radius: 50%; background: var(--yellow); }
.t-formats__item:nth-child(even) .t-formats__dot { background: var(--ink); }

/* ---------- process ---------- */
.t-steps-wrap { display: flex; flex-direction: column; gap: 28px; }
.t-progress { position: relative; height: 2px; background: var(--dark-line); border-radius: 2px; overflow: hidden; }
.t-progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--yellow); transition: width .3s linear; }
.t-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 40px 20px;
}
.t-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: .25;
  transform: translateY(16px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.t-step.is-on { opacity: 1; transform: none; }
.t-step__n { font-size: 80px; line-height: .85; letter-spacing: 0; color: var(--ink-2); transition: color .6s; }
.t-step.is-on .t-step__n { color: var(--yellow); }
.t-step h3 { font-size: 22px; line-height: 1.2; }
.t-step p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); max-width: 28ch; }

/* ---------- testimonials ---------- */
.t-quotes { height: 300vh; position: relative; }
.t-quotes__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 0 12px;
  text-align: center;
}
.t-quote {
  margin: 0;
  font-size: clamp(26px, 3vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 30ch;
  gap: 0 .25em;
}
.t-quote[hidden] { display: none; }
.t-quote .w { opacity: .14; transform: none; transition: opacity .5s var(--ease-out), background .5s; }
.t-quote .w.is-on { opacity: 1; }
.t-quotes__dots { display: flex; gap: 6px; }
.t-quotes__dots span { width: 6px; height: 6px; border-radius: 999px; background: var(--ink-soft); transition: width .5s var(--ease-out), background .5s; }
.t-quotes__dots span.is-on { width: 28px; background: var(--ink); }

/* ---------- enquire ---------- */
.t-enquire {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 10px;
  padding-bottom: 10px;
  scroll-margin-top: 70px;
}
.t-enquire__side { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 48px 20px 28px; }
.t-enquire__intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.t-enquire.is-seen .t-enquire__intro { opacity: 1; transform: none; }
.t-enquire__intro h2 { font-size: clamp(32px, 3.8vw, 56px); line-height: 1.05; letter-spacing: -0.025em; max-width: 13ch; }
.t-enquire__intro p { font-size: 17px; line-height: 1.55; max-width: 36ch; color: var(--ink-2); }
.t-enquire__contact { display: flex; flex-direction: column; gap: 22px; }
.t-enquire__contact > div { display: flex; flex-direction: column; gap: 6px; }
.t-enquire__contact a { font-size: 22px; align-self: flex-start; }

.t-form-card { background: var(--white); border-radius: 4px; padding: 36px 32px; }
.t-form { display: flex; flex-direction: column; gap: 30px; }
.t-group { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.t-group legend { padding: 0; margin-bottom: 10px; }
.t-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.t-chip {
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 15px;
  letter-spacing: -0.02em;
  cursor: pointer;
  color: var(--ink);
  transition: background .25s;
}
.t-chip:hover { background: var(--bg); }
.t-chip[aria-pressed="true"] { background: var(--yellow); }
.t-chip:focus-visible, .t-submit:focus-visible, .t-pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.t-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 26px 16px; }
.t-field { display: flex; flex-direction: column; gap: 8px; }
.t-field input, .t-field textarea {
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  padding: 8px 0;
  font: inherit;
  font-size: 17px;
  letter-spacing: -0.02em;
  outline: none;
  color: var(--ink);
  min-width: 0;
}
.t-field textarea { resize: vertical; }
.t-field input::placeholder, .t-field textarea::placeholder { color: #a5a29b; }
.t-field input:focus, .t-field textarea:focus { border-bottom-width: 2px; padding-bottom: 7px; }
.t-field.is-bad input { border-bottom-color: #c0442b; }
.t-size-exact { max-width: 220px; margin-top: 12px; animation: rise .5s var(--ease-out) both; }
.t-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.t-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.t-form__foot .is-bad { color: #c0442b; }
.t-submit {
  border: 0;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  padding: 15px 24px;
  cursor: pointer;
  transition: transform .3s var(--ease-out);
}
.t-submit:hover { transform: scale(1.04); }
.t-submit:disabled { opacity: .6; cursor: default; transform: none; }

.t-sent { min-height: 480px; display: flex; flex-direction: column; justify-content: center; gap: 20px; animation: rise .8s var(--ease-out) both; }
.t-sent[hidden], .t-form[hidden], .t-size-exact[hidden] { display: none; }
.t-sent__word { font-size: 80px; line-height: .9; letter-spacing: 0; }
.t-sent p { font-size: 18px; line-height: 1.5; max-width: 34ch; }
.t-sent .t-pill { align-self: flex-start; padding: 12px 18px; }

/* ---------- footer ---------- */
.t-footer { background: var(--white); border-radius: 4px; padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 8vh; }
.t-footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; }
.t-footer__links { display: flex; gap: 22px; }
.t-footer__logo { font-size: clamp(56px, 12vw, 180px); line-height: .9; text-align: center; letter-spacing: -0.02em; }

/* ---------- MOBILE (from "Asakes Socials For Teams Mobile", designed at 390px) ---------- */
@media (max-width: 760px) {
  .t-page { padding: 10px 10px 90px; max-width: 430px; margin: 0 auto; }

  .t-nav {
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 50%; right: auto;
    width: min(100%, 430px);
    padding: 0 12px;
    transform: translateX(-50%);
  }
  .t-nav__pill { width: 100%; gap: 12px; padding: 6px 6px 6px 16px; }
  .t-nav__brand { font-size: 18px; }
  .t-nav__label { display: none; }

  .t-hero { min-height: 100svh; gap: 26px; padding: 0 8px 6vh; }
  .t-photo--a { --x: 52%; --y: 7%;  --w: 42%; --delay: .25s; }
  .t-photo--b { --x: 6%;  --y: 12%; --w: 34%; --delay: .37s; }
  .t-photo--d { --x: 30%; --y: 30%; --w: 30%; --rot: -2deg; --delay: .49s; }
  .t-photo--c, .t-photo--e { display: none; }
  .t-pill { padding: 15px 20px; }
  .t-pill--line { padding: 14px 20px; }

  .t-statement { min-height: 80vh; padding: 10vh 8px; }

  .t-card { padding: 32px 20px 36px; gap: 44px; }
  .t-card--dark { padding: 32px 20px 40px; gap: 48px; }
  .t-offer-card { padding: 26px 22px; gap: 14px; min-height: 0; --delay: 0s !important; }
  .t-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }

  .t-formats { height: 300vh; }
  .t-formats__sticky { height: 100svh; }
  .t-step__n { font-size: 60px; }

  .t-enquire__side { padding: 40px 12px 20px; }
  .t-form-card { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .t-photo { transform: rotate(var(--rot)); }
  .w, .t-step, .t-offer-card, .t-enquire__intro { opacity: 1 !important; transform: none !important; }
  .t-step .t-step__n { color: var(--yellow); }
}
