/* ============================================================
   Syntax Studio — section & component layouts
   ============================================================ */

/* ---- Page hero (inner pages) ------------------------------- */
.phero { position: relative; padding-block: clamp(72px, 12vw, 150px) clamp(40px, 6vw, 72px); overflow: hidden; }
@media (max-width: 560px) { .phero { padding-block: 40px clamp(28px, 5vw, 40px); } }
.phero__inner { position: relative; z-index: 1; max-width: 880px; }
.phero h1 {
  font-size: clamp(40px, 7vw, 84px);
  margin-top: 22px;
  font-variation-settings: 'opsz' 40;
  text-wrap: balance;
}
.phero h1 .accent { color: var(--accent); }
.phero__lede { margin-top: 26px; font-size: clamp(17px, 1.8vw, 21px); color: var(--tx-1); max-width: 640px; text-wrap: pretty; }
.phero__meta { margin-top: 34px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Home hero --------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 96px); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { max-width: 600px; min-width: 0; }
.hero h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  margin-top: 24px; line-height: 1.06;
  font-variation-settings: 'opsz' 40;
  text-wrap: balance;
}
.hero h1 .ln { display: block; white-space: nowrap; }
@media (max-width: 560px) { .hero h1 .ln { white-space: normal; } }
.hero h1 .accent { color: var(--accent); }
.hero__l2 { white-space: nowrap; }
.hero__type-wrap { display: inline; }
.hero__type { display: inline; color: var(--accent); border-bottom: 3px solid var(--accent-line); white-space: nowrap; }
.hero__sub { margin-top: 32px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; color: var(--tx-1); font-variation-settings: 'opsz' 24; }
.hero__lede { margin-top: 28px; font-size: clamp(15px, 1.45vw, 17px); color: var(--tx-1); max-width: 520px; text-wrap: pretty; }
.hero__cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .hero__cta { flex-wrap: nowrap; }
  .hero__cta .btn { flex: 1 1 0; min-width: 0; padding-inline: 14px; white-space: nowrap; justify-content: center; }
}
.hero__stats { margin-top: 48px; display: flex; gap: 36px; flex-wrap: wrap; }
.hero__stat .n { font-size: 28px; font-weight: 600; font-variation-settings: 'opsz' 28; letter-spacing: -0.02em; }
.hero__stat .l { font-family: var(--font-mono,monospace); font-size: 12px; color: var(--tx-2); margin-top: 4px; }
.statline { display: flex; gap: clamp(36px, 7vw, 90px); flex-wrap: wrap; }
.statline .hero__stat .n { font-size: clamp(30px, 4vw, 40px); font-variation-settings: 'opsz' 36; }
.statline .hero__stat .l { font-size: 13px; margin-top: 6px; }
@media (max-width: 600px) {
  /* keep the three hero stats on a single row on phones */
  .statline { gap: 14px; flex-wrap: nowrap; }
  .statline .hero__stat { flex: 1 1 0; min-width: 0; }
  .statline .hero__stat .n { font-size: clamp(24px, 7vw, 32px); }
  .statline .hero__stat .l { font-size: 11.5px; }
}
.hero__art { position: relative; min-width: 0; }
.hero__art .codewin { transform: translateZ(0); }
.hero__float {
  position: absolute; right: -8px; bottom: -22px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 15px; border-radius: var(--r-md);
  background: var(--ink-3); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-pop); font-family: var(--font-mono,monospace); font-size: 12.5px;
}
.hero__float i { width: 9px; height: 9px; border-radius: 50%; background: var(--syn-str); box-shadow: 0 0 0 4px color-mix(in srgb,var(--syn-str) 20%, transparent); }
@media (max-width: 920px) {
  /* On phones/tablets the orbit animation leads, copy follows */
  .hero { padding-block: clamp(28px, 7vw, 56px) clamp(48px, 8vw, 80px); }
  .hero__inner { grid-template-columns: 1fr; gap: clamp(24px, 5vw, 40px); }
  .hero__copy { order: 1; max-width: none; }
  .hero__art { order: 0; max-width: 100%; margin-inline: auto; width: 100%; display: flex; justify-content: center; }
}

/* ---- Hero orbit -------------------------------------------- */
.orbit {
  --r-in: 144px;   /* inner ring radius */
  --r-out: 210px;  /* outer ring radius */
  position: relative;
  width: 520px; height: 520px;
  display: grid; place-items: center;
  margin-inline: auto;
}
.orbit__glow {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 66%);
  filter: blur(26px); opacity: .5;
  animation: orbGlow 6s ease-in-out infinite;
}
@keyframes orbGlow { 50% { opacity: .78; transform: scale(1.06); } }

.orbit__ring {
  position: absolute; border-radius: 50%; border: 1px dashed var(--accent-line);
  opacity: .55; pointer-events: none;
}
.orbit__ring--a { width: calc(var(--r-in) * 2); height: calc(var(--r-in) * 2); }
.orbit__ring--b { width: calc(var(--r-out) * 2); height: calc(var(--r-out) * 2); border-color: color-mix(in srgb, var(--syn-fn) 30%, transparent); }

.orbit__tilt {
  position: absolute; inset: 0; display: grid; place-items: center;
  transform-style: preserve-3d;
  transition: transform .3s var(--ease-standard, ease);
}
.orbit__spin { position: absolute; inset: 0; will-change: transform; transform: translateZ(0); backface-visibility: hidden; }
.orbit__spin--a { animation: orbCW 17s linear infinite; }
.orbit__spin--b { animation: orbCCW 27s linear infinite; }
@keyframes orbCW  { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbCCW { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* glowing satellites riding each ring */
.orbit__sat { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; }
.orbit__sat--a { background: var(--accent); box-shadow: 0 0 14px 2px var(--accent); transform: rotate(60deg) translateY(calc(var(--r-in) * -1)); }
.orbit__sat--b { background: var(--syn-fn); box-shadow: 0 0 14px 2px var(--syn-fn); transform: rotate(90deg) translateY(calc(var(--r-out) * -1)); }
.orbit__sat--c { width: 6px; height: 6px; margin: -3px; background: var(--syn-str); box-shadow: 0 0 12px 2px var(--syn-str); transform: rotate(210deg) translateY(calc(var(--r-out) * -1)); }

.orbit__node { position: absolute; left: 50%; top: 50%; transform: rotate(var(--a, 0deg)) translateY(calc(var(--nr, 120px) * -1)); }
.orbit__node--in  { --nr: var(--r-in); }
.orbit__node--out { --nr: var(--r-out); }
.orbit__upr { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) rotate(calc(var(--a, 0deg) * -1)); }

.orbit__chip {
  width: 70px; height: 70px; border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(155deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line-2); color: var(--accent);
  box-shadow: var(--shadow-pop), inset 0 1px 0 rgba(255,255,255,0.05);
}
.orbit__chip svg { width: 26px; height: 26px; }
.orbit__chip--a { animation: orbCCW 17s linear infinite; }
.orbit__chip--b { animation: orbCW 27s linear infinite; }
.orbit__lbl { font-family: var(--font-mono, monospace); font-size: 10px; color: var(--tx-2); letter-spacing: 0.03em; }
.orbit__phone {
  width: 21px; height: 30px; border-radius: 6px; border: 2px solid var(--accent); position: relative;
}
.orbit__phone::before { content: ""; position: absolute; left: 50%; top: 3.5px; width: 8px; height: 2.2px; border-radius: 2px; background: var(--accent); transform: translateX(-50%); }
.orbit__swatches { display: flex; gap: 4px; }
.orbit__swatches i { width: 11px; height: 11px; border-radius: 4px; }
.orbit__swatches i:nth-child(1){ background: var(--accent); }
.orbit__swatches i:nth-child(2){ background: var(--syn-fn); }
.orbit__swatches i:nth-child(3){ background: var(--syn-str); }

.orbit__core {
  position: absolute; width: 104px; height: 104px; border-radius: 26px;
  display: grid; place-items: center; color: var(--tx-0);
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 34%, var(--ink-3)), var(--ink-2) 76%);
  border: 1px solid color-mix(in srgb, var(--accent) 52%, transparent);
  box-shadow: 0 0 56px color-mix(in srgb, var(--accent) 42%, transparent), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: orbCore 5s ease-in-out infinite;
}
.orbit__core svg { width: 56px; height: 56px; }
@keyframes orbCore { 50% { box-shadow: 0 0 78px color-mix(in srgb, var(--accent) 58%, transparent), inset 0 1px 0 rgba(255,255,255,0.1); } }

@media (prefers-reduced-motion: reduce) {
  .orbit__spin, .orbit__chip, .orbit__glow, .orbit__core { animation: none; }
}
@media (max-width: 920px) {
  .orbit { width: 420px; height: 420px; --r-in: 116px; --r-out: 170px; }
  .orbit__core { width: 88px; height: 88px; border-radius: 22px; }
  .orbit__core svg { width: 46px; height: 46px; }
  .orbit__chip { width: 60px; height: 60px; border-radius: 15px; }
}
@media (max-width: 480px) {
  .orbit { width: 300px; height: 300px; --r-in: 86px; --r-out: 124px; }
  .orbit__glow { width: 230px; height: 230px; }
}

/* ---- Capability marquee ------------------------------------ */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--ink-0); }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
.marquee__item { display: flex; align-items: center; gap: 14px; padding: 20px 34px; font-family: var(--font-mono,monospace); font-size: 14px; color: var(--tx-1); white-space: nowrap; }
.marquee__item svg { width: 16px; height: 16px; color: var(--accent); }
.marquee__item .sep { color: var(--line-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Service rows (home preview) --------------------------- */
.svc-list { border-top: 1px solid var(--line); margin-top: 48px; }
.svc-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 28px; align-items: center;
  padding: 30px 8px; border-bottom: 1px solid var(--line);
  position: relative;
}
.svc-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform var(--dur-base,220ms) var(--ease-standard,ease); }
.svc-row__num, .svc-row__main { transition: transform var(--dur-base,200ms) var(--ease-standard,ease); }
.svc-row:hover .svc-row__num, .svc-row:hover .svc-row__main { transform: translateX(16px); }
.svc-row:hover::before { transform: scaleY(1); }
.svc-row__num { font-family: var(--font-mono,monospace); font-size: 13px; color: var(--syn-com); }
.svc-row__main { display: flex; flex-direction: column; gap: 8px; }
.svc-row__main h3 { font-size: clamp(22px, 3vw, 30px); font-variation-settings: 'opsz' 28; }
.svc-row__main p { color: var(--tx-1); font-size: 15px; max-width: 560px; }
.svc-row__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
/* ---- Isometric 3D service visuals (extruded blocks) ------- */
:root { --s3-top: #1c2433; --s3-side: #0d121b; --s3-shadow: rgba(0,0,0,0.55); }
[data-theme="light"] { --s3-top: #ffffff; --s3-side: #dfe4ec; --s3-shadow: rgba(16,24,40,0.22); }

.svc-row__ico {
  width: 196px; height: 182px; border: 0; background: none; border-radius: 0;
  display: grid; place-items: center; overflow: visible; perspective: none;
  transition: transform var(--dur-base, 200ms) var(--ease-standard, ease);
}
.svc3d__stage {
  position: relative; width: 92px; height: 92px;
  transform-style: preserve-3d;
  transform: translateY(10px) rotateX(56deg) rotateZ(-42deg) scale(1.42);
  transition: transform 0.5s var(--ease-emphasized, cubic-bezier(.2,0,0,1));
}
.svc-row:hover .svc3d__stage { transform: translateY(10px) rotateX(56deg) rotateZ(-30deg) scale(1.42); }

/* extruded box: stack of layers; top layer is the lit face */
.b3 { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.b3 > span { position: absolute; inset: 0; }
.b3__top { overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), inset 0 0 0 1px rgba(255,255,255,0.04); }
[data-theme="light"] .b3__top { box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 0 0 1px rgba(16,24,40,0.05); }

/* contact shadow on the ground plane */
.s3-shadow { position: absolute; left: 50%; top: 50%; border-radius: 50%; background: var(--s3-shadow); filter: blur(7px); }

/* top-face decorations (printed on the lit face of a slab) */
.s3top { position: absolute; inset: 0; padding: 9px; display: flex; flex-direction: column; gap: 5px; }
.s3top .bar { height: 8px; border-radius: 4px; background: color-mix(in srgb, #4F89FC 38%, transparent); }
.s3top .ln { height: 5px; border-radius: 3px; background: var(--line-2); }
.s3top .ln.sm { width: 56%; }
.s3top .dots { display: flex; gap: 3px; }
.s3top .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.s3top .hero { flex: none; height: 19px; border-radius: 5px; background: color-mix(in srgb, #4ED197 42%, var(--ink-2)); }
.s3top .cl { height: 6px; border-radius: 3px; }
.s3top .notch { width: 14px; height: 3px; border-radius: 2px; background: var(--line-2); margin: 1px auto 2px; }
.s3top .app { flex: none; height: 26px; border-radius: 6px; background: color-mix(in srgb, #C792EA 48%, var(--ink-2)); }
.s3glyph { display: grid; place-items: center; font-family: var(--font-mono, monospace); font-weight: 600; font-size: 11px; }

@media (prefers-reduced-motion: reduce) { .svc3d__stage { transition: none; } }
@media (max-width: 720px) {
  .svc-row__ico { width: 168px; height: 156px; }
}
.svc-row__arrow { color: var(--tx-2); transition: transform var(--dur-base,200ms) var(--ease-standard,ease), color 200ms; }
.svc-row__arrow svg { width: 22px; height: 22px; }
.svc-row:hover .svc-row__arrow { color: var(--accent); transform: translateX(6px); }
@media (max-width: 720px) {
  .svc-row { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .svc-row__arrow { display: none; }
}

/* Home services preview as a compact 2x2 grid of cards */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.svc-grid .svc-row {
  grid-template-columns: 132px 1fr; gap: 18px; align-items: center;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-md);
}
.svc-grid .svc-row::before { display: none; }
.svc-grid .svc-row:hover { border-color: var(--line-2); }
.svc-grid .svc-row:hover .svc-row__num,
.svc-grid .svc-row:hover .svc-row__main { transform: none; }
.svc-grid .svc-row__num { display: none; }
.svc-grid .svc-row__tags { display: none; }
.svc-grid .svc-row__ico { width: 132px; height: 124px; }
.svc-grid .svc-row__main { gap: 6px; }
.svc-grid .svc-row__main h3 { font-size: 19px; }
.svc-grid .svc-row__main p { font-size: 13.5px; max-width: none; }
.svc-grid .svc-row__arrow { display: none; }
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) {
  .svc-grid .svc-row { grid-template-columns: 1fr; justify-items: start; }
  .svc-grid .svc-row__ico { width: 120px; height: 110px; }
}

/* ---- Service detail cards (services page) ------------------ */
.svc-detail { display: grid; grid-template-columns: 1fr; gap: 0; }
.svc-block {
  display: grid; grid-template-columns: 0.9fr 1.1fr; column-gap: clamp(32px, 5vw, 80px); row-gap: 0;
  grid-template-areas: "head feats" "cta feats";
  padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line);
  align-content: center; align-items: start;
}
.svc-block__head { grid-area: head; }
.svc-block .svc-feats { grid-area: feats; align-self: center; }
.svc-block:first-child { border-top: none; }
.svc-block__head .ic { width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; }
.svc-block__head .ic svg { width: 27px; height: 27px; }
.svc-block__head h3 { font-size: clamp(26px, 3.4vw, 38px); font-variation-settings: 'opsz' 32; }
.svc-block__head .num { font-family: var(--font-mono,monospace); font-size: 13px; color: var(--syn-com); display: block; margin-bottom: 14px; }
.svc-block__head p { margin-top: 18px; color: var(--tx-1); font-size: 16px; line-height: 1.65; max-width: 460px; }
.svc-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.svc-feat { background: var(--ink-2); padding: 22px; }
.svc-feat h4 { font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.svc-feat h4 svg { width: 16px; height: 16px; color: var(--accent); }
.svc-feat p { font-size: 13.5px; color: var(--tx-2); line-height: 1.55; }
.svc-block__cta { grid-area: cta; margin-top: 26px; align-self: start; justify-self: start; }
@media (max-width: 800px) {
  /* single column: heading + intro, then the feature list, then the CTA */
  .svc-block { grid-template-columns: 1fr; grid-template-areas: none; row-gap: 28px; }
  .svc-block__head, .svc-block .svc-feats, .svc-block__cta { grid-area: auto; }
  .svc-feats { grid-template-columns: 1fr; }
  .svc-block__cta { margin-top: 0; justify-self: start; }
}

/* ---- Work grid --------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
@media (max-width: 620px) {
  .work-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    /* let the row bleed to the screen edges + fade the right side */
    margin-left: calc(var(--gutter, 20px) * -1);
    margin-right: calc(var(--gutter, 20px) * -1);
    padding-inline: var(--gutter, 20px);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter, 20px), #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter, 20px), #000 calc(100% - 28px), transparent 100%);
  }
  .work-filter::-webkit-scrollbar { display: none; }
  .work-filter__chip { flex: 0 0 auto; scroll-snap-align: start; }
}
@media (max-width: 380px) {
  .work-filter {
    margin-left: -16px; margin-right: -16px; padding-inline: 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
  }
}
.work-filter__chip {
  font-family: var(--font-mono,monospace); font-size: 13px; line-height: 1;
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--ink-2); color: var(--tx-1);
  transition: color .15s, border-color .15s, background .15s;
}
.work-filter__chip:hover { color: var(--tx-0); border-color: var(--tx-2); }
.work-filter__chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="light"] .work-filter__chip.is-active { color: #fff; }
.work-empty { text-align: center; max-width: 460px; margin: 24px auto 8px; padding: 48px 24px; }
.work-empty__ic { width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin: 0 auto 22px; }
.work-empty__ic svg { width: 27px; height: 27px; }
.work-empty h3 { font-size: clamp(20px, 3vw, 26px); font-variation-settings: 'opsz' 24; text-wrap: balance; }
.work-empty p { color: var(--tx-1); font-size: 15px; line-height: 1.6; margin-top: 14px; text-wrap: pretty; }
.work-empty .btn { margin-top: 26px; }
.work-grid--home { margin-top: 52px; grid-template-columns: repeat(3, 1fr); }
.work-all { margin-top: 40px; display: flex; justify-content: center; }
@media (max-width: 980px) { .work-grid--home { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .work-grid, .work-grid--home { grid-template-columns: 1fr; } }
.work-card {
  display: block; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); background: var(--ink-2);
  transition: border-color var(--dur-base,200ms) ease, transform var(--dur-base,200ms) var(--ease-standard,ease), box-shadow var(--dur-base,200ms) ease;
  will-change: transform;
}
.work-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-pop); }
.work-card__media { aspect-ratio: 4 / 3; position: relative; overflow: hidden; display: grid; place-items: center; }
.work-card__media .preview { position: absolute; inset: 0; transition: transform var(--dur-slow,400ms) var(--ease-standard,ease); }
.work-card:hover .work-card__media .preview { transform: scale(1.03); }
.work-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.work-card__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.work-card__body h3 { font-size: 22px; font-variation-settings: 'opsz' 24; }
.work-card__body p { color: var(--tx-1); font-size: 14.5px; }
.work-card__tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 4px; }
.work-card__meta { font-family: var(--font-mono,monospace); font-size: 12px; color: var(--tx-2); display: flex; gap: 14px; margin-top: 6px; }
.work-card__go { color: var(--tx-2); transition: transform .2s, color .2s; flex: none; }
.work-card__go svg { width: 22px; height: 22px; }
.work-card:hover .work-card__go { color: var(--accent); transform: translate(4px,-4px); }

/* generated preview backgrounds */
.gp { position: absolute; inset: 0; }
@media (max-width: 620px) { .work-card__media { aspect-ratio: 4 / 3; } }
.gp__grid { position:absolute; inset:0; background-image: linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px); background-size: 28px 28px; opacity: .8; }
.gp__win { position: absolute; border-radius: 10px; border: 1px solid var(--line-2); background: var(--ink-3); box-shadow: var(--shadow-pop); overflow: hidden; }
.gp__bar { height: 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.gp__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.gp__chip { height: 9px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 60%, transparent); }
.gp__line { height: 7px; border-radius: 4px; background: var(--line-2); }

/* ---- Live webpage embeds (real hosted pages) -------------- */
.live-embed { overflow: hidden; background: #2B434B; }
.gp-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.live-embed iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: top left; pointer-events: none; }
.work-card .live-embed iframe { pointer-events: none; }
.live-shot { position: relative; display: block; }
.live-shot__tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(12,15,22,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-family: var(--font-mono, monospace); font-size: 12px; padding: 6px 11px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18); transition: background .15s, border-color .15s; }
.live-shot__tag svg { width: 13px; height: 13px; }
.live-shot:hover .live-shot__tag { background: var(--accent); border-color: transparent; }

/* ---- Monumental Building — brand-identity art -------------- */
.mb-art, .mb-swatches, .mb-tag, .mb-posters, .mb-plate { container-type: inline-size; font-family: 'Montserrat', 'Helvetica Neue', Arial, system-ui, sans-serif; }
.mb-art { background: #0E3066; }
.mb-art__stripes { position: absolute; top: -10%; bottom: -10%; right: -8%; width: 44%; transform: skewX(-9deg);
  background: linear-gradient(90deg, #FCFCFC 0 24%, #0E3066 24% 29%, #BFA23A 29% 33%, #FCFCFC 33% 60%, #0E3066 60% 65%, #F7C802 65% 100%); }
.mb-art__lock { position: absolute; left: 7%; top: 15%; display: flex; align-items: center; gap: 3cqw; }
.mb-art__wm { color: #fff; font-weight: 800; line-height: 1.02; letter-spacing: 0.04em; font-size: 5cqw; }
.mb-art__eyebrow { position: absolute; left: 7%; bottom: 13%; color: #F7C802; font-family: var(--font-mono, monospace); font-size: 2.4cqw; letter-spacing: 0.2em; }
.mb-mark { display: block; }

.mb-plate { background: #0E3066; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4cqw; }
.mb-plate__wm { color: #fff; font-weight: 800; text-align: center; line-height: 1.06; letter-spacing: 0.06em; font-size: 6.5cqw; }

.mb-swatches { display: flex; }
.mb-sw { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 5cqw 4cqw; gap: 0.6cqw; }
.mb-sw b { font-weight: 700; font-size: 3.2cqw; }
.mb-sw span { font-family: var(--font-mono, monospace); font-size: 2.5cqw; opacity: 0.82; }
.mb-sw--paper { box-shadow: inset 1px 0 0 rgba(14,48,102,0.12); }

.mb-tag { background: #0E3066; display: flex; align-items: center; padding: 0 9cqw; }
.mb-tag__txt { color: #fff; font-weight: 800; font-size: 5.2cqw; line-height: 1.12; letter-spacing: 0.01em; }
.mb-tag__rule { display: block; width: 14cqw; height: 0.9cqw; background: #F7C802; margin-bottom: 3.4cqw; }
.mb-tag__txt small { display: block; margin-top: 2.6cqw; font-weight: 500; font-size: 2.4cqw; letter-spacing: 0.16em; text-transform: uppercase; color: #F7C802; font-family: var(--font-mono, monospace); }

.mb-posters { background: #E4E4E4; display: flex; align-items: center; justify-content: center; gap: 5cqw; }
.mb-post { position: relative; width: 30cqw; height: 30cqw; background: #33517E; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3cqw; text-align: center; overflow: hidden; }
.mb-post--tag { background: #0E3066; justify-content: flex-start; padding-top: 6cqw; }
.mb-post__kick { color: #fff; font-size: 2.1cqw; letter-spacing: 0.22em; font-family: var(--font-mono, monospace); position: relative; margin-bottom: 3cqw; }
.mb-post--mission .mb-post__kick::before, .mb-post--mission .mb-post__kick::after { content: ""; position: absolute; top: 50%; width: 4cqw; height: 1px; background: rgba(255,255,255,0.5); }
.mb-post--mission .mb-post__kick::before { right: 108%; }
.mb-post--mission .mb-post__kick::after { left: 108%; }
.mb-post__gold { color: #F7C802; font-weight: 800; font-size: 3.3cqw; letter-spacing: 0.01em; }
.mb-post__white { color: #fff; font-weight: 600; font-size: 2.4cqw; margin-top: 1cqw; }
.mb-post__logo { position: absolute; bottom: 3.5cqw; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 1.2cqw; color: #fff; font-weight: 800; font-size: 1.6cqw; line-height: 1.05; }
.mb-post__lockrow { display: flex; align-items: center; gap: 1.6cqw; color: #fff; font-weight: 800; font-size: 1.6cqw; line-height: 1.05; }
.mb-post__lockrow i { width: 1px; height: 6cqw; background: rgba(255,255,255,0.4); }
.mb-post__lockrow b { font-weight: 700; font-size: 2.2cqw; }
.mb-post__bar { position: absolute; left: 8%; right: 8%; bottom: 36%; height: 1.8cqw; background: #F7C802; }

/* ---- Stats band -------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stats--six { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } .stats--six { grid-template-columns: 1fr 1fr; } }
.stat-cell { background: var(--ink-2); padding: 34px 26px; }
.stat-cell .v { font-size: clamp(34px, 5vw, 52px); font-weight: 600; font-variation-settings: 'opsz' 40; letter-spacing: -0.03em; color: var(--tx-0); }
.stat-cell .k { margin-top: 10px; font-family: var(--font-mono,monospace); font-size: 13px; color: var(--tx-2); }

/* ---- Process / timeline ------------------------------------ */
.steps { display: grid; gap: 0; margin-top: 52px; }
.step {
  display: grid; grid-template-columns: 160px 1fr; gap: clamp(20px, 4vw, 56px);
  padding-block: 40px; border-top: 1px solid var(--line); position: relative;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__index { font-family: var(--font-mono,monospace); }
.step__index .big { font-size: 56px; font-weight: 600; font-variation-settings:'opsz' 40; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.step__index .ph { display: block; font-size: 12px; color: var(--tx-2); margin-top: 10px; }
.step__body h3 { font-size: clamp(24px, 3.2vw, 32px); font-variation-settings: 'opsz' 28; }
.step__body > p { margin-top: 14px; color: var(--tx-1); font-size: 16px; max-width: 620px; line-height: 1.6; }
.step__deliver { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.step__detail { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 620px; }
.step__detail .d { padding-left: 16px; border-left: 2px solid var(--accent-line); }
.step__detail .d b { display: block; font-size: 14px; margin-bottom: 4px; }
.step__detail .d span { font-size: 13px; color: var(--tx-2); line-height: 1.5; }
@media (max-width: 700px) { .step { grid-template-columns: 1fr; gap: 14px; } .step__index .big { font-size: 40px; } .step__detail { grid-template-columns: 1fr; } }

/* ---- Feature / value grid ---------------------------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (max-width: 820px) { .feat-grid { grid-template-columns: 1fr; } }
/* engagement model on services uses an inline 2-up override — collapse it on phones */
@media (max-width: 560px) { .feat-grid[style*="1fr 1fr"] { grid-template-columns: 1fr !important; } }
.feat {
  background: var(--ink-2); padding: 32px 28px; position: relative;
  transition: background var(--dur-base,200ms) ease;
}
.feat:hover { background: var(--ink-3); }
.feat__ic { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--accent); border: 1px solid var(--line); margin-bottom: 20px; }
.feat__ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: 19px; margin-bottom: 10px; }
.feat p { color: var(--tx-1); font-size: 14.5px; line-height: 1.6; }
.feat__n { position: absolute; top: 22px; right: 24px; font-family: var(--font-mono,monospace); font-size: 12px; color: var(--syn-com); }
/* compact variant */
.feat-grid--compact .feat { padding: 24px 22px; }
.feat-grid--compact .feat__ic { width: 38px; height: 38px; margin-bottom: 16px; }
.feat-grid--compact .feat__ic svg { width: 19px; height: 19px; }
.feat-grid--compact .feat h3 { font-size: 16px; margin-bottom: 6px; }
.feat-grid--compact .feat p { font-size: 13px; line-height: 1.55; }
.feat-grid--compact .feat__n { top: 18px; right: 20px; font-size: 11px; }

/* ---- Quote / testimonial ----------------------------------- */
.quote { max-width: 900px; margin-inline: auto; text-align: center; }
.quote blockquote { font-size: clamp(24px, 3.6vw, 40px); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; font-variation-settings: 'opsz' 32; text-wrap: balance; }
.quote blockquote .hl { color: var(--accent); }
.quote__by { margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.quote__av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--syn-fn)); display:grid; place-items:center; color:#fff; font-weight:600; }
.quote__by .who { text-align: left; }
.quote__by .who b { display: block; font-size: 15px; }
.quote__by .who span { font-size: 13px; color: var(--tx-2); font-family: var(--font-mono,monospace); }

/* ---- Testimonials carousel --------------------------------- */
.tcar__nav { display: flex; gap: 10px; padding-bottom: 6px; }
.tcar__btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--ink-2); color: var(--tx-0);
  transition: color .15s, border-color .15s, background .15s, opacity .15s;
}
.tcar__btn svg { width: 20px; height: 20px; }
.tcar__btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.tcar__btn:disabled { opacity: .34; cursor: not-allowed; color: var(--tx-2); }
.tcar__btn:disabled:hover { border-color: var(--line-2); background: var(--ink-2); }

.tcar { position: relative; margin-top: 44px; }
.tcar__track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 18px; margin: -4px -4px 0;
  scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth;
}
.tcar__track::-webkit-scrollbar { display: none; }
.tcar__fade { position: absolute; top: 0; bottom: 18px; width: 56px; pointer-events: none; z-index: 2; }
.tcar__fade--r { right: 0; background: linear-gradient(90deg, transparent, var(--ink-1)); }
@media (max-width: 760px) { .tcar__fade { display: none; } }

.tcard {
  flex: 0 0 calc((100% - 48px) / 3); min-width: 290px; scroll-snap-align: start;
  margin: 0;
  display: flex; flex-direction: column; gap: 18px;
  padding: 28px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--ink-2); box-shadow: var(--shadow-card);
  transition: border-color .2s var(--ease-standard,ease), transform .2s var(--ease-standard,ease);
}
.tcard:hover { border-color: var(--line-2); transform: translateY(-4px); }
.tcard__mark { width: 30px; height: 30px; color: var(--accent-line); flex: none; }
.tcard__q { margin: 0; font-size: 16px; line-height: 1.6; color: var(--tx-0); flex: 1; text-wrap: pretty; }
.tcard__by { display: flex; align-items: flex-start; gap: 13px; margin-top: 2px; }
.tcard__who { padding-top: 3px; }
.tcard__av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 600; flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.18); }
.tcard__who b { display: block; font-size: 15px; line-height: 1.3; }
.tcard__who span { display: block; font-size: 12.5px; line-height: 1.35; margin-top: 1px; color: var(--tx-2); font-family: var(--font-mono,monospace); }
@media (max-width: 920px) { .tcard { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 620px) { .tcard { flex-basis: 84%; min-width: 0; } }

/* team carousel (reuses .tcar mechanics) */
.tcar__track .member { flex: 0 0 calc((100% - 72px) / 4); min-width: 210px; scroll-snap-align: start; margin: 0; }
@media (max-width: 920px) { .tcar__track .member { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 560px) { .tcar__track .member { flex-basis: 78%; min-width: 0; } }

/* Mobile: team becomes a 2-col grid (2×3 for six people) — no carousel, no chevrons */
@media (max-width: 640px) {
  .tcar__nav:has(button[data-team-prev]) { display: none; }
  .tcar:has([data-team-track]) { margin-top: 22px; }
  .tcar__track[data-team-track] {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    overflow: visible; scroll-snap-type: none; padding: 0; margin: 0;
  }
  .tcar__track[data-team-track] .member { flex: none; width: auto; min-width: 0; scroll-snap-align: none; }
}
@media (max-width: 400px) {
  .tcar__track[data-team-track] { gap: 10px; }
  .tcar__track[data-team-track] .member__body { padding: 13px 13px 16px; }
  .tcar__track[data-team-track] .member__body p { margin-top: 9px; }
}

/* ---- Mobile: tighter sliders + faster marquee -------------- */
@media (max-width: 620px) {
  /* carousels sit closer together + slightly more compact cards */
  .tcar { margin-top: 30px; }
  .tcar__track { gap: 12px; padding-bottom: 12px; }
  .tcard { padding: 22px 20px 28px; gap: 14px; min-height: 300px; }
  .marquee__item { padding: 15px 22px; gap: 10px; }
  /* the ticker slides noticeably faster on phones */
  .marquee__track { animation-duration: 16s; }
}

/* ---- CTA band ---------------------------------------------- */
.cta { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.cta__inner { position: relative; z-index: 1; text-align: center; max-width: 760px; margin-inline: auto; padding-block: clamp(72px, 10vw, 132px); }
.cta__inner h2 { font-size: clamp(34px, 6vw, 68px); font-variation-settings: 'opsz' 40; text-wrap: balance; }
.cta__inner h2 .accent { color: var(--accent); }
.cta__inner p { margin-top: 22px; font-size: clamp(16px,1.6vw,19px); color: var(--tx-1); }
.cta__row { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 560px) {
  .cta__row { flex-wrap: nowrap; }
  .cta__row .btn { flex: 1 1 0; min-width: 0; padding-inline: 14px; white-space: nowrap; justify-content: center; }
}

/* ---- About: split + principles ----------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.prose p { color: var(--tx-1); font-size: 16.5px; line-height: 1.7; margin-top: 18px; max-width: 540px; }
.prose p:first-child { margin-top: 0; }
.prose p .em { color: var(--tx-0); font-weight: 500; }

.principles { display: grid; gap: 14px; }
.principle { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ink-2); transition: border-color .2s, transform .2s; }
.principle:hover { border-color: var(--accent-line); transform: translateX(4px); }
.principle__n { font-family: var(--font-mono,monospace); font-size: 13px; color: var(--accent); padding-top: 2px; }
.principle h4 { font-size: 17px; margin-bottom: 6px; }
.principle p { font-size: 14px; color: var(--tx-1); line-height: 1.55; }

/* team */
.about-flow { display: flex; flex-direction: column; }
/* order: team, then the story, then "how we operate" */
.about-flow [data-screen-label="About / Team"] { order: 1; }
.about-flow [data-screen-label="About / Story"] { order: 2; }
.about-flow [data-screen-label="About / Values"] { order: 3; }
.team { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .team { grid-template-columns: 1fr; } }
.member { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--ink-2); display: block; }
.member__ph { aspect-ratio: 1/1; display: grid; place-items: center; position: relative; overflow: hidden; }
.member__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member__handle { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--font-mono,monospace); font-size: 12.5px; color: var(--tx-2); }
.member__handle svg { width: 14px; height: 14px; color: var(--accent); }
.member__mono { font-family: var(--font-mono,monospace); font-size: clamp(40px,7vw,64px); font-weight: 600; color: var(--ink-1); letter-spacing: -0.04em; }
.member__body { padding: 18px 20px 22px; }
.member__body b { font-size: 16px; }
.member__body .role { font-family: var(--font-mono,monospace); font-size: 12px; color: var(--accent); margin-top: 4px; }
.member__body p { font-size: 13.5px; color: var(--tx-2); margin-top: 12px; line-height: 1.55; }

/* ---- Contact ----------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(40px,6vw,80px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-family: var(--font-mono,monospace); font-size: 12.5px; color: var(--tx-1); }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px; color: var(--tx-0);
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 13px 15px; outline: none; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--tx-2); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono,monospace); font-size: 13px; padding: 9px 14px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--ink-2); color: var(--tx-1);
  transition: all .15s; user-select: none; white-space: nowrap;
}
.chip:hover { border-color: var(--accent-line); color: var(--tx-0); }
.chip.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.contact-aside { display: flex; flex-direction: column; gap: 14px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; background: var(--ink-2); }
.contact-card h4 { font-size: 13px; font-family: var(--font-mono,monospace); color: var(--tx-2); font-weight: 500; margin-bottom: 16px; }
.contact-card .big-link { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 10px; }
.contact-card .big-link:hover { color: var(--accent); }
/* direct lines list */
.dlines { display: flex; flex-direction: column; }
.dline { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.dline:first-child { border-top: none; padding-top: 0; }
.dline:last-child { padding-bottom: 0; }
.dline__ic { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; transition: background .15s, color .15s; }
.dline__ic svg { width: 19px; height: 19px; }
.dline__t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dline__t b { font-family: var(--font-mono,monospace); font-size: 11.5px; font-weight: 500; color: var(--tx-2); letter-spacing: 0.04em; }
.dline__t span { font-size: 16px; color: var(--tx-0); font-weight: 500; letter-spacing: -0.01em; transition: color .15s; }
.dline:hover .dline__ic { background: var(--accent); color: #fff; }
.dline:hover .dline__t span { color: var(--accent); }
.contact-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-card li { display: flex; gap: 13px; align-items: flex-start; font-size: 14.5px; color: var(--tx-1); }
.contact-card li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.form-note { font-size: 13px; color: var(--tx-2); margin-top: 8px; }
.form-success { display: none; padding: 22px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--r-md); color: var(--tx-0); font-size: 15px; align-items: center; gap: 12px; }
.form-success.is-on { display: flex; }
.form-success svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* ---- FAQ --------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; text-align: left; background: none; border: none; padding: 24px 4px; color: var(--tx-0); font-size: clamp(17px,2vw,20px); font-weight: 500; }
.faq__q .pm { color: var(--accent); flex: none; transition: transform .25s; }
.faq__q .pm svg { width: 22px; height: 22px; }
.faq__item.is-open .faq__q .pm { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-standard, ease); }
.faq__a p { padding: 0 4px 26px; color: var(--tx-1); font-size: 15.5px; line-height: 1.65; max-width: 720px; }

/* ---- misc page intro for sections -------------------------- */
.lead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.lead-row .tlink-wrap { padding-bottom: 6px; }
@media (max-width: 720px) {
  /* keep the carousel chevrons on the top-right of the heading row on phones */
  .lead-row:has(.tcar__nav) { flex-wrap: nowrap; align-items: flex-start; gap: 16px; }
  .lead-row:has(.tcar__nav) .section-head { flex: 1; min-width: 0; }
  .lead-row:has(.tcar__nav) .tcar__nav { flex: none; }
}

/* Section intro grid: the "see all" link sits top-right beside the title on
   desktop, and drops below the section's content on phones. */
.lead-grid { display: flex; flex-direction: column; }
.lead-grid .tlink-wrap { order: 3; margin-top: 30px; align-self: flex-start; }
@media (min-width: 721px) {
  .lead-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 32px; }
  .lead-grid .section-head { grid-column: 1; grid-row: 1; }
  .lead-grid .tlink-wrap { grid-column: 2; grid-row: 1; justify-self: end; align-self: end; margin-top: 0; }
  .lead-grid__content { grid-column: 1 / -1; grid-row: 2; }
}
