/* Team Building — "blocks": flat colour tiles with ink outlines that snap into place. */

.svc--team {
    --bg: #F8F6FA;
    --fg: #16131C;
    --muted: #4A4454;
    --line: #16131C;
    --purple: #673A89;
    --lilac: #C9B5E0;
    --yellow: #F0EBF5;
    --ink: #16131C;
    --card: #fff;
}
.svc--team h1, .svc--team h2, .svc--team h3 { letter-spacing: -0.035em; font-weight: 700; }
.svc--team h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.05; margin-top: 0.8rem; max-width: 22ch; }
.svc--team .faq, .svc--team .faq__item { border-color: var(--ink); }
.svc--team .more ul { background: var(--ink); border-color: var(--ink); }
.tbd-split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .tbd-split { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; } }
.tbd-tag { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--yellow); padding: 0.3rem 0.65rem; border: 2px solid var(--ink); }
.svc--team .sb { border: 2px solid var(--ink); font-weight: 700; }
.svc--team .sb--solid { background: var(--purple); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.svc--team .sb--solid:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); background: var(--purple); }
.svc--team .sb--ink { background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 #fff; }
.svc--team .sb--ink:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #fff; }

/* Hero */
.tbd-hero { padding: 8rem 0 4.5rem; border-bottom: 2px solid var(--ink); }
@media (min-width: 1024px) { .tbd-hero { padding: 9.5rem 0 6rem; } }
.tbd-hero__grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 1024px) { .tbd-hero__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.tbd-hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 0.98; margin: 1.3rem 0 1.4rem; }
.tbd-hero .lead { margin-bottom: 2rem; }

.tbd-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--ink); background: var(--ink); }
.tbd-tile { aspect-ratio: 1; display: flex; align-items: flex-end; padding: 0.8rem; border: 1px solid var(--ink); font-weight: 700; font-size: clamp(0.78rem, 1.7vw, 1.05rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; position: relative; z-index: 0; animation: tbd-snap 0.9s cubic-bezier(0.2, 1.3, 0.4, 1) both; animation-delay: calc(var(--n) * 120ms + 150ms); transition: transform 0.25s ease; }
.tbd-tile:hover { transform: scale(1.04); z-index: 2; }
.tbd-tile--purple { background: var(--purple); color: #fff; }
.tbd-tile--yellow { background: var(--yellow); }
.tbd-tile--lilac { background: var(--lilac); }
.tbd-tile--ink { background: var(--ink); color: #fff; }
.tbd-tile:nth-child(1) { --sx: -90px; --sy: -60px; --sr: -12deg; }
.tbd-tile:nth-child(2) { --sx: 30px; --sy: -110px; --sr: 8deg; }
.tbd-tile:nth-child(3) { --sx: 120px; --sy: -50px; --sr: 14deg; }
.tbd-tile:nth-child(4) { --sx: -110px; --sy: 80px; --sr: 10deg; }
.tbd-tile:nth-child(5) { --sx: 20px; --sy: 130px; --sr: -9deg; }
.tbd-tile:nth-child(6) { --sx: 130px; --sy: 70px; --sr: -14deg; }
@keyframes tbd-snap { from { transform: translate(var(--sx), var(--sy)) rotate(var(--sr)); opacity: 0; } 30% { opacity: 1; } }

.tbd-obj { background: var(--card); border-bottom: 2px solid var(--ink); }

/* Wall */
.tbd-wall { display: grid; gap: 0; margin-top: 3rem; border: 2px solid var(--ink); }
@media (min-width: 700px) { .tbd-wall { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tbd-wall { grid-template-columns: repeat(3, 1fr); } }
.tbd-block { padding: 1.8rem; min-height: 15rem; border: 1px solid var(--ink); display: flex; flex-direction: column; transition: transform 0.3s ease; }
.tbd-block:hover { transform: translateY(-4px) rotate(-0.6deg); }
.tbd-block span { font-size: 3.4rem; font-weight: 700; line-height: 0.9; letter-spacing: -0.05em; margin-bottom: auto; }
.tbd-block h3 { font-size: 1.55rem; line-height: 1.05; margin: 2rem 0 0.6rem; }
.tbd-block p { line-height: 1.55; font-size: 0.97rem; }
.tbd-block--purple { background: var(--purple); color: #fff; }
.tbd-block--yellow { background: var(--yellow); }
.tbd-block--lilac { background: var(--lilac); }
.tbd-block--ink { background: var(--ink); color: #fff; }
.tbd-block--purple p, .tbd-block--ink p { color: rgba(255, 255, 255, 0.86); }
.tbd-block--yellow p, .tbd-block--lilac p { color: var(--ink); }

/* Deck */
.tbd-deck { display: grid; gap: 1.2rem; justify-items: start; }
.tbd-deck__stack { position: relative; width: min(100%, 26rem); aspect-ratio: 1.15; }
.tbd-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; text-align: left; padding: 1.6rem; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); font: inherit; cursor: pointer; box-shadow: 6px 6px 0 var(--ink); transition: transform 0.5s cubic-bezier(0.3, 1.2, 0.4, 1), opacity 0.4s ease, background-color 0.3s ease; transform: translate(calc(var(--pos, 0) * 14px), calc(var(--pos, 0) * 14px)) rotate(calc(var(--pos, 0) * 2.2deg)); z-index: calc(10 - var(--pos, 0)); }
.tbd-card:nth-child(2n) { background: var(--lilac); }
.tbd-card:nth-child(3n) { background: #fff; }
.tbd-card small { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.tbd-card span { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.tbd-card.flying { transform: translate(120%, -10%) rotate(14deg); opacity: 0; }
.tbd-apply { background: var(--lilac); border-block: 2px solid var(--ink); --muted: #16131C; }
.tbd-apply .tbd-tag { background: #fff; }

.tbd-not { margin-top: 1.5rem; padding: 1.1rem 1.3rem; border: 2px solid var(--ink); background: #fff; line-height: 1.55; box-shadow: 5px 5px 0 var(--purple); }
.tbd-not b { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }

/* Board */
.tbd-build { background: var(--card); border-top: 2px solid var(--ink); }
.tbd-board { display: grid; gap: 1.4rem; margin: 2.5rem 0; }
@media (min-width: 800px) { .tbd-board { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.tbd-note { padding: 1.8rem 1.5rem 3.2rem; font-size: clamp(1.25rem, 2.2vw, 1.65rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.tbd-note--0 { background: var(--yellow); }
.tbd-note--1 { background: var(--lilac); }
.tbd-note--2 { background: #fff; }
.js .tbd-note[data-reveal] { transform: translateY(24px) rotate(var(--r, 0deg)); }
.js .tbd-note.is-in { transform: rotate(var(--r, 0deg)); }
.tbd-note--0 { --r: -1.6deg; } .tbd-note--1 { --r: 1.2deg; } .tbd-note--2 { --r: -0.8deg; }

.tbd-quote { margin-top: 2rem; padding: 1.3rem 1.4rem; background: var(--yellow); border: 2px solid var(--ink); }
.tbd-quote p { font-weight: 700; margin-bottom: 0.6rem; }
.tbd-quote li { padding: 0.35rem 0 0.35rem 1.5rem; position: relative; }
.tbd-quote li::before { content: ""; position: absolute; left: 0; top: 0.75rem; width: 0.65rem; height: 0.65rem; background: var(--ink); }

.tbd-cta { background: #3F2254; color: #fff; padding: 5rem 0 3rem; border-top: 2px solid var(--ink); --bg: var(--purple); --fg: #fff; --muted: rgba(255,255,255,.8); --line: #16131C; --accent: #fff; }
.tbd-cta h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1; max-width: 18ch; margin-bottom: 2rem; }
.tbd-cta .more a { background: #673A89; }
.tbd-cta .more a:hover { background: #673A89; }

/* hero upgrade */
.tbd-hero { padding: 0; border-bottom: 0; }
.tbd-hero h1 { font-size: clamp(2.7rem, 6.6vw, 5.4rem); }
.tbd-hero .hero-strip { background: var(--card); border-top: 2px solid var(--ink); }
.tbd-hero .hero-strip dl > div { border-color: var(--ink); }
.tbd-hero .hero-strip dt { color: var(--purple); }
.tbd-tiles { box-shadow: 10px 10px 0 var(--ink); }
.tbd-shape { position: absolute; z-index: 0; border: 2px solid var(--ink); pointer-events: none; }
.tbd-shape--c { width: 7rem; height: 7rem; border-radius: 50%; background: var(--yellow); left: 46%; top: 14%; animation: tbd-bob 7s ease-in-out infinite; }
.tbd-shape--t { width: 0; height: 0; border: 0; border-left: 3rem solid transparent; border-right: 3rem solid transparent; border-bottom: 5.2rem solid var(--lilac); left: 4%; bottom: 22%; animation: tbd-bob 9s ease-in-out -2s infinite; filter: drop-shadow(0 0 0 var(--ink)); }
.tbd-shape--s { width: 4rem; height: 4rem; background: var(--purple); right: 5%; top: 12%; transform: rotate(14deg); animation: tbd-spin 16s linear infinite; }
@keyframes tbd-bob { 50% { transform: translateY(-18px) rotate(6deg); } }
@keyframes tbd-spin { to { transform: rotate(374deg); } }
@media (max-width: 800px) { .tbd-shape { display: none; } }
.tbd-marquee { background: var(--ink); color: var(--yellow); overflow: hidden; border-block: 2px solid var(--ink); padding: .9rem 0; }
.tbd-marquee > div { display: flex; width: max-content; gap: 1.6rem; align-items: center; animation: tbd-run 38s linear infinite; }
.tbd-marquee span { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.tbd-marquee i { width: .9rem; height: .9rem; background: var(--lilac); transform: rotate(45deg); flex: none; }
@keyframes tbd-run { to { transform: translateX(-50%); } }

.tbd-gallery { background: var(--yellow, #F6D35B); border-block: 2px solid var(--ink); }
.svc--team .svc-photo { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); background: #fff; }
.svc--team .svc-gallery { gap: 1.4rem; }
