/* ============================================================
   sitm-pages.css - components for the ported page mockups.
   Pairs with sitm-pagekit.css (tokens). Everything is scoped to
   .sitm-scope, which the sections declare via schema "class".

   Per-instance knobs come in as custom properties set by each
   section's own {% style %} block, so this file loads once and is
   never duplicated per section:
     --sitm-pad-top / --sitm-pad-bottom   band padding
     --sitm-fade-h  / --sitm-fade-color   footer wash
     --sitm-card-min                      auto-fit card floor
     --sitm-wave-color / --sitm-wave-accent

   Breakpoints, desktop-first to match the source mockups:
     1100  gaps tighten
      900  about rows stack, media first
      767  card rows become a snap carousel
      600  rails and anchors tighten
      480  smallest phones
   ============================================================ */

/* ---------- shared: a band that closes into the footer -------- */
.sitm-scope .sitm-band-fade { position: relative; }
.sitm-scope .sitm-band-fade > .sitm-band-fade__body { position: relative; z-index: 1; }
.sitm-scope .sitm-band-fade::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: var(--sitm-fade-h, 190px);
  background: linear-gradient(180deg,
    rgba(var(--sitm-fade-rgb, 36 34 83) / 0) 0%,
    rgba(var(--sitm-fade-rgb, 36 34 83) / .30) 40%,
    rgba(var(--sitm-fade-rgb, 36 34 83) / .72) 72%,
    var(--sitm-fade-color, #242253) 100%);
  pointer-events: none;
  z-index: 0;
}

/* =====================  ABOUT: HERO  ========================== */
.sitm-scope .about-hero { padding: var(--sitm-pad-top, clamp(56px, 8vw, 110px)) 0 var(--sitm-pad-bottom, clamp(72px, 9vw, 120px)); }
.sitm-scope .about-hero__inner { display: grid; gap: 22px; max-width: 880px; }
.sitm-scope .about-hero h1 {
  font-family: var(--sitm-font-display);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  font-size: clamp(40px, 7vw, 88px);
}
.sitm-scope .about-hero__lead,
.sitm-scope .about-hero__lead p {
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.6;
  color: rgba(255,255,255,.92);
  max-width: 62ch;
  margin: 0;
}
.sitm-scope .about-hero__lead p + p { margin-top: .7em; }
.sitm-scope .about-hero__byline {
  display: inline-flex; align-items: center; gap: 14px;
  color: rgba(255,255,255,.9);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  margin-top: 6px;
}
.sitm-scope .about-hero__byline::before {
  content: ""; width: 36px; height: 2px; background: var(--sitm-gold); border-radius: 999px; flex: 0 0 auto;
}

/* =====================  ABOUT: STORY ROWS  ==================== */
.sitm-scope .about-band { padding: clamp(48px, 7vw, 96px) 0; }
.sitm-scope .about-band--tight { padding: clamp(32px, 5vw, 64px) 0; }
.sitm-scope .about-band--mint { background: var(--sitm-mint); }

.sitm-scope .about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.sitm-scope .about-row--reverse .about-row__media { order: -1; }
.sitm-scope .about-row__copy h2 { margin: 0 0 18px; }
.sitm-scope .about-row__copy p { margin: 0 0 16px; font-size: 17px; line-height: 1.78; color: var(--sitm-body-ink); }
.sitm-scope .about-row__copy p:last-child { margin-bottom: 0; }
/* Opt-in first-line indent on the second paragraph of a story row, so the narrative
   reads as set apart from the opening line. Toggled per row by "Indent the second
   paragraph". Client request 2026-07-28. */
.sitm-scope .about-row--indent-2 .about-row__copy > p:nth-of-type(2) { text-indent: 2.25em; }
.sitm-scope .about-row__copy ul { margin: 0 0 16px; padding-left: 20px; font-size: 17px; line-height: 1.78; color: var(--sitm-body-ink); }

.sitm-scope .about-anchor {
  font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sitm-teal-deep);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.sitm-scope .about-anchor .num {
  font-family: var(--sitm-font-display);
  font-size: 18px; letter-spacing: .04em;
  color: var(--sitm-gold);
}

.sitm-scope .about-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--sitm-radius);
  overflow: hidden;
  box-shadow: var(--sitm-shadow);
  isolation: isolate;
  margin: 0;
}
.sitm-scope .about-figure--soft {
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.55), transparent 36%),
    radial-gradient(circle at 78% 70%, rgba(243,183,64,.32), transparent 42%),
    linear-gradient(150deg, #d7f3f0 0%, #9fdcd2 40%, #53b1a9 100%);
}
.sitm-scope .about-figure--deep {
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.32), transparent 40%),
    radial-gradient(circle at 84% 80%, rgba(240,130,180,.28), transparent 44%),
    linear-gradient(155deg, #1f7772 0%, #2c9b92 45%, #4bbdb5 100%);
}
.sitm-scope .about-figure--warm {
  background:
    radial-gradient(circle at 26% 24%, rgba(255,255,255,.42), transparent 38%),
    radial-gradient(circle at 82% 76%, rgba(159,220,210,.45), transparent 44%),
    linear-gradient(145deg, #f3b740 0%, #f082b4 55%, #53b1a9 100%);
}
.sitm-scope .about-figure--photo { background: var(--sitm-teal-light); }
.sitm-scope .about-figure__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sitm-scope .about-figure--placeholder::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 22px, rgba(255,255,255,.06) 22px 23px);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.sitm-scope .about-figure__monogram {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--sitm-font-display);
  font-size: clamp(72px, 11vw, 148px);
  color: rgba(255,255,255,.42);
  letter-spacing: .04em;
  pointer-events: none;
}
.sitm-scope .about-figure__caption {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  display: flex; gap: 12px; align-items: center;
  padding: 12px 14px;
  background: rgba(255,255,255,.92);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(16,49,72,.18);
}
.sitm-scope .about-figure__caption .dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--sitm-gold);
  box-shadow: 0 0 0 4px rgba(243,183,64,.22);
  flex: 0 0 auto;
}
.sitm-scope .about-figure__caption .cap-text { font-size: 13px; line-height: 1.45; color: var(--sitm-ink); min-width: 0; }
.sitm-scope .about-figure__caption .cap-text strong { display: block; font-weight: 800; letter-spacing: .02em; }
.sitm-scope .about-figure__caption .cap-text span {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sitm-teal-deep); margin-top: 2px;
}

/* =====================  ABOUT: PULL-STAT  ===================== */
.sitm-scope .about-pullstat {
  margin: 0 auto;
  max-width: 900px;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 56px);
  border-radius: var(--sitm-radius);
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.18), transparent 30%),
    radial-gradient(circle at 88% 84%, rgba(255,255,255,.16), transparent 32%),
    var(--sitm-gradient);
  color: #fff;
  text-align: center;
  box-shadow: var(--sitm-shadow);
  position: relative; overflow: hidden;
}
.sitm-scope .about-pullstat__eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sitm-gold);
  margin-bottom: 14px;
}
.sitm-scope .about-pullstat__line {
  font-family: var(--sitm-font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(28px, 5.5vw, 60px);
  line-height: 1.04;
  letter-spacing: .01em;
  margin: 0;
  color: #fff;
}
.sitm-scope .about-pullstat__sig {
  margin-top: 22px;
  font-size: 14px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.92);
  display: inline-flex; align-items: center; gap: 12px;
}
.sitm-scope .about-pullstat__sig::before,
.sitm-scope .about-pullstat__sig::after {
  content: ""; width: 36px; height: 2px; background: var(--sitm-gold); border-radius: 999px; flex: 0 0 auto;
}

/* =====================  BLOG: INTRO  ========================== */
.sitm-scope .f-intro { padding: var(--sitm-pad-top, clamp(40px,6vw,72px)) 0 var(--sitm-pad-bottom, clamp(24px,3vw,36px)); text-align: center; }
.sitm-scope .f-intro .sitm-eyebrow { justify-content: center; }
.sitm-scope .f-intro h1 { max-width: none; margin: 0 auto 8px; }
.sitm-scope .f-intro--oneline h1 { white-space: nowrap; }
.sitm-scope .f-intro .f-sub { font-weight: 700; color: var(--sitm-teal-deep); margin: 0 auto 10px; font-size: clamp(15px,1.5vw,18px); max-width: 46ch; }
.sitm-scope .f-intro__copy,
.sitm-scope .f-intro__copy p { max-width: 48ch; margin: 0 auto; color: var(--sitm-body-ink); font-size: clamp(14px,1.15vw,16px); line-height: 1.6; }
.sitm-scope .f-intro__copy p + p { margin-top: .7em; }

/* =====================  BLOG: TRACK BANDS  ==================== */
.sitm-scope .f-band { position: relative; }
.sitm-scope .f-band__inner { padding: var(--sitm-pad-top, clamp(30px,4vw,52px)) 0 var(--sitm-pad-bottom, clamp(34px,5vw,60px)); }
.sitm-scope .f-band--career { background: linear-gradient(180deg, #f4fdfb 0%, #e6f6f2 100%); }
.sitm-scope .f-band--story {
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.10), transparent 24rem),
    radial-gradient(circle at 88% 30%, rgba(243,183,64,.14), transparent 22rem),
    linear-gradient(160deg, #1f7772 0%, #242253 60%, #15142f 100%);
}

.sitm-scope .f-wave { display: block; width: 100%; height: clamp(56px,7vw,96px); margin-bottom: -1px; }
.sitm-scope .f-wave svg { display: block; width: 100%; height: 100%; }

.sitm-scope .f-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sitm-scope .f-head__lede { max-width: 60ch; }
.sitm-scope .f-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 10px; }
.sitm-scope .f-kicker::before { content: ""; width: 26px; height: 2px; border-radius: 999px; flex: 0 0 auto; }
.sitm-scope .f-head h2 { font-family: var(--sitm-font-body); font-weight: 800; font-size: clamp(22px,2.6vw,32px); line-height: 1.1; margin: 0 0 6px; letter-spacing: -.005em; text-transform: none; }
.sitm-scope .f-head__lede p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.sitm-scope .f-head__lede p + p { margin-top: .6em; }

.sitm-scope .f-band--career .f-kicker { color: var(--sitm-teal-deep); }
.sitm-scope .f-band--career .f-kicker::before { background: var(--sitm-teal-deep); }
.sitm-scope .f-band--career .f-head h2 { color: var(--sitm-ink); }
.sitm-scope .f-band--career .f-head__lede p { color: var(--sitm-body-ink); }
.sitm-scope .f-band--story .f-kicker { color: var(--sitm-gold); }
.sitm-scope .f-band--story .f-kicker::before { background: var(--sitm-gold); }
.sitm-scope .f-band--story .f-head h2 { color: #fff; }
.sitm-scope .f-band--story .f-head__lede p { color: rgba(255,255,255,.82); }

.sitm-scope .f-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--sitm-card-min, 240px), 1fr)); gap: 16px; }

.sitm-scope .f-card { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--sitm-radius-sm); padding: 18px 18px 16px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.sitm-scope .f-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sitm-scope .f-chip { font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.sitm-scope .f-status { font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sitm-scope .f-card__title { font-family: var(--sitm-font-body); font-weight: 800; font-size: 16px; line-height: 1.28; margin: 0 0 6px; text-transform: none; }
.sitm-scope .f-card__sub { font-size: 13px; line-height: 1.55; margin: 0 0 14px; }
.sitm-scope .f-card__meta { margin-top: auto; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.sitm-scope .f-card--career { background: #fff; border: 1px solid var(--sitm-border); box-shadow: 0 8px 24px rgba(16,49,72,.07); }
.sitm-scope a.f-card--career:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16,49,72,.13); }
.sitm-scope .f-card--career .f-chip { background: var(--sitm-mint); color: var(--sitm-teal-deep); }
.sitm-scope .f-card--career .f-card__title { color: var(--sitm-ink); }
.sitm-scope .f-card--career .f-card__sub { color: var(--sitm-body-ink); }
.sitm-scope .f-card--career .f-card__meta { color: #7a8499; }
.sitm-scope .f-card--career .f-status.is-live { background: var(--sitm-ink); color: #fff; }
.sitm-scope .f-card--career .f-status.is-live::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--sitm-gold); }
.sitm-scope .f-card--career .f-status.is-soon { background: #fff; color: var(--sitm-teal-deep); box-shadow: inset 0 0 0 1px #cfe3de; }

.sitm-scope .f-card--story { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sitm-scope a.f-card--story:hover { transform: translateY(-4px); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.sitm-scope .f-card--story .f-chip { background: rgba(243,183,64,.18); color: var(--sitm-gold); }
.sitm-scope .f-card--story .f-card__title { color: #fff; }
.sitm-scope .f-card--story .f-card__sub { color: rgba(255,255,255,.78); }
.sitm-scope .f-card--story .f-card__meta { color: rgba(255,255,255,.55); }
.sitm-scope .f-card--story .f-status.is-live { background: var(--sitm-gold); color: var(--sitm-ink); }
.sitm-scope .f-card--story .f-status.is-soon { background: rgba(255,255,255,.10); color: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }

/* nothing published behind a card yet: dashed, and not a link */
.sitm-scope .f-card--soon { border-style: dashed; }
.sitm-scope .f-card--career.f-card--soon { background: rgba(255,255,255,.62); border-color: #cfe3de; }
.sitm-scope .f-card--story.f-card--soon { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.24); }
.sitm-scope .f-card--soon .f-card__sub:last-child { margin-bottom: 0; }

/* the intentional "next one drops here" card */
.sitm-scope .f-card--next { align-items: flex-start; justify-content: center; text-align: left; border-style: dashed; }
.sitm-scope .f-card--career.f-card--next { background: rgba(255,255,255,.5); border-color: #cfe3de; color: var(--sitm-teal-deep); }
.sitm-scope .f-card--story.f-card--next { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.24); color: rgba(255,255,255,.8); }
.sitm-scope .f-card--next .f-next-k { font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; opacity: .9; margin-bottom: 8px; display: block; }
.sitm-scope .f-card--next b { font-family: var(--sitm-font-body); font-weight: 800; font-size: 15px; line-height: 1.3; display: block; margin-bottom: 6px; }
.sitm-scope .f-card--next .f-next-sub { font-size: 12.5px; line-height: 1.5; opacity: .85; display: block; }

.sitm-scope .f-head__aside { padding-bottom: 4px; }
.sitm-scope .f-head__note { font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.sitm-scope .f-band--story .f-head__note { color: rgba(255,255,255,.6); }
.sitm-scope .f-band--career .f-head__note { color: #7a8499; }

.sitm-scope .f-cta a { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .03em; text-decoration: none; transition: transform .2s ease; }
.sitm-scope .f-band--career .f-cta a { background: var(--sitm-teal-btn); color: #fff; box-shadow: 0 12px 26px rgba(97,189,183,.32); }
.sitm-scope .f-band--story .f-cta a { background: #fff; color: var(--sitm-navy); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 12px 28px rgba(9,12,40,.34); }
.sitm-scope .f-cta a:hover { transform: translateY(-2px); }

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

/* laptops: pull the row gap in before the columns get mean */
@media (max-width: 1100px) {
  .sitm-scope .about-row { gap: clamp(24px, 4vw, 44px); }
  .sitm-scope .f-row { gap: 14px; }
}

/* tablet through small laptop: two even columns. Left to auto-fit, a
   four-card row lands 3 + 1 here and the orphan reads as a mistake. */
@media (min-width: 768px) and (max-width: 1199px) {
  .sitm-scope .f-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* tablet portrait and below: about rows stack, media first */
@media (max-width: 900px) {
  .sitm-scope .about-row { grid-template-columns: 1fr; gap: 28px; }
  .sitm-scope .about-row--reverse .about-row__media { order: 0; }
  .sitm-scope .about-row__media { order: -1; }
  .sitm-scope .about-figure { aspect-ratio: 5 / 4; max-height: 420px; }
  .sitm-scope .about-figure__caption { left: 12px; right: 12px; bottom: 12px; }
  .sitm-scope .f-head { align-items: flex-start; }
  .sitm-scope .f-head__aside { padding-bottom: 0; }
}

/* small tablet / large phone: card rows become a snap carousel */
@media (max-width: 767px) {
  .sitm-scope .f-row {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 82%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .sitm-scope .f-card { scroll-snap-align: start; }
  .sitm-scope .f-intro--oneline h1 { white-space: normal; }
  .sitm-scope .about-row__copy p,
  .sitm-scope .about-row__copy ul { font-size: 16px; line-height: 1.7; }
}

/* phones: tighten the rails, anchors and chrome */
@media (max-width: 600px) {
  .sitm-scope .sitm-rail { padding-left: 16px; }
  .sitm-scope .about-anchor { font-size: 11px; letter-spacing: .16em; gap: 9px; }
  .sitm-scope .about-hero__byline { font-size: 12px; letter-spacing: .1em; gap: 10px; }
  .sitm-scope .about-pullstat__sig { font-size: 12px; letter-spacing: .12em; gap: 10px; }
  .sitm-scope .about-pullstat__sig::before,
  .sitm-scope .about-pullstat__sig::after { width: 24px; }
  .sitm-scope .f-row { grid-auto-columns: 86%; }
  .sitm-scope .f-head { margin-bottom: 18px; }
}

@media (max-width: 480px) {
  .sitm-scope .about-figure { aspect-ratio: 4 / 3; }
  .sitm-scope .about-figure__caption { left: 10px; right: 10px; bottom: 10px; padding: 10px 12px; }
  .sitm-scope .f-row { grid-auto-columns: 90%; }
  .sitm-scope .about-pullstat { border-radius: 20px; }
  .sitm-scope .about-figure { border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .sitm-scope .f-card,
  .sitm-scope .f-cta a { transition: none; }
}

/* the theme editor outlines the selected block; keep it legible on
   the dark band and never let the outline be clipped by the row */
.sitm-scope .f-row > * { min-width: 0; }
