/* Homepage sections (dark-first). Panels are illustrative HTML/CSS, not real client data. */
.home { background: #121212; }

/* Pill CTA: light pill with a small dark arrow square */
.cta-pill { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding: 5px 5px 5px 16px; border-radius: 10px; background: #ececec; color: #121212; text-decoration: none; font-size: 15px; font-weight: 400; white-space: nowrap; transition: background .15s; }
.cta-pill:hover { background: #fff; }
.cta-pill__arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: #121212; color: #fff; }
.cta-pill__arrow svg { width: 14px; height: 14px; }
.cta-pill:focus-visible, .nav-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Centered section titles: soft grey-white gradient */
.intro, .work, .closing { text-align: center; padding: 120px 24px 40px; }
.intro__title { font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.03em;
  background: linear-gradient(180deg, #f4f4f4 0%, #8f8f94 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.intro__lede { max-width: 46ch; margin: 22px auto 0; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.5; color: var(--muted); text-wrap: balance; }

/* Alternating feature rows: copy left, tilted product panel right */
.features { overflow-x: clip; max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.feature { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-items: center; gap: 24px; min-height: 700px; }
.feature__copy { max-width: 380px; }
.feature__title { font-size: clamp(26px, 2.6vw, 34px); font-weight: 400; letter-spacing: -0.01em; }
.feature__title a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .92); }
.feature__title svg { width: 22px; height: 22px; color: var(--accent); transition: transform .2s; }
.feature__title a:hover svg { transform: translateX(4px); }
.feature__copy p { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.feature__visual { position: relative; }
.feature__note { margin-top: -6px; text-align: right; font: 400 11px/1 var(--font-mono); letter-spacing: .06em; color: #5f5f64; text-transform: uppercase; }

.stage { position: relative; height: 640px; perspective: 2000px; perspective-origin: 55% 30%; }
.iso { position: absolute; left: 50%; top: 50%; width: 760px; height: 560px; margin: -280px 0 0 -380px; transform-style: preserve-3d;
  transform: rotateX(52deg) rotateZ(-31deg) translate(-30px, 0) scale(1); }
.panel { position: absolute; width: var(--w); height: var(--h); transform-style: preserve-3d; transform: translateZ(var(--z, 0)); }
.panel::before { content: ''; position: absolute; inset: 0; border-radius: 14px; background: #55555a; transform: translateZ(-7px); }
.panel::after { content: ''; position: absolute; inset: -6px; border-radius: 22px; background: rgba(0, 0, 0, .8); filter: blur(26px); transform: translateZ(-60px) translate(26px, 26px); }
.panel__face { position: relative; width: 100%; height: 100%; padding: 22px 24px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #262628 0%, #19191a 55%, #151516 100%); border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .88); font-size: 14px; line-height: 1.35; }
.panel__face::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .07), transparent 38%); pointer-events: none; }
.panel--up .panel__face { background: linear-gradient(160deg, #2b2b2d, #1b1b1c); }

.ui-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.ui-head strong { font-weight: 500; font-size: 16px; }
.ui-models { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ui-group { display: flex; gap: 8px; margin: 12px 0 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8b8b90; }
.ui-group span { color: #bdbdc2; }
.ui-rows { list-style: none; margin: 0; padding: 0; }
.ui-rows li { display: grid; grid-template-columns: 112px 1fr auto 62px; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.ui-rows b { font-weight: 500; }
.ui-rows span { color: #b4b4b9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-rows em { font-style: normal; color: #8b8b90; text-align: right; font-size: 12px; }
.ui-rows--tight li { grid-template-columns: 62px 1fr auto; }
.ui-rows--tickets li { grid-template-columns: 52px 1fr auto 72px; padding: 11px 0; }
.ui-rows--tickets b { color: #8b8b90; font-weight: 400; }
.ui-rows--tickets span { white-space: normal; color: rgba(255, 255, 255, .88); }
.ui-rows small { display: block; color: #85858a; font-size: 11px; }
.chip { display: inline-block; font-style: normal; font-size: 11px; line-height: 1; padding: 5px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #c8c8cc; white-space: nowrap; }
.chip--go { background: rgba(110, 215, 150, .14); color: #8fe3ae; }
.chip--warm { background: rgba(240, 180, 90, .14); color: #f2c27c; }
.chip--pink { background: rgba(236, 111, 196, .16); color: #f49ad7; }
.chip--quiet { background: rgba(255, 255, 255, .06); color: #9a9a9f; }

.ui-bars { display: flex; align-items: flex-end; gap: 14px; height: 108px; }
.ui-bars span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; font-size: 11px; color: #8b8b90; }
.ui-bars i { display: block; width: 100%; height: var(--v); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #6e6e74, #3c3c40); }
.ui-bars .hot i { background: linear-gradient(180deg, #f49ad7, #a14f8a); }
.ui-kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8b8b90; }
.ui-big { margin-top: 8px; font-size: 20px; font-weight: 400; }
.ui-sub { margin-top: 12px; }
.ui-sub.muted { margin-top: 14px; font-size: 12px; }

.bubbles { display: grid; gap: 10px; }
.b { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.4; }
.b--them { justify-self: start; background: #2f2f32; border-bottom-left-radius: 4px; }
.b--bot { justify-self: end; background: linear-gradient(135deg, #8d5c88, #5d4a73); color: #fff; border-bottom-right-radius: 4px; }
.b--sys { justify-self: center; max-width: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(110, 215, 150, .12); color: #8fe3ae; font-size: 12px; }
.b--sys .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Iridescent band: grey grain, pink / violet / amber light streak, bright hairline edges */
.band { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; margin-top: 80px; min-height: clamp(360px, 46vw, 520px); padding: 80px 24px; background: #26262a; text-align: center; }
.band::before, .band::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; z-index: 2; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55) 30%, rgba(255, 220, 245, .9) 50%, rgba(255, 255, 255, .55) 70%, transparent); }
.band::before { top: 0; } .band::after { bottom: 0; }
.band__light { position: absolute; inset: -30% -10%; z-index: -2; transform: rotate(-8deg);
  background:
    radial-gradient(40% 22% at 22% 52%, rgba(255, 150, 90, .55), transparent 70%),
    radial-gradient(42% 24% at 50% 48%, rgba(236, 111, 196, .6), transparent 70%),
    radial-gradient(40% 22% at 78% 50%, rgba(140, 110, 255, .5), transparent 70%),
    linear-gradient(90deg, transparent 5%, rgba(255, 200, 235, .22) 50%, transparent 95%);
  filter: blur(34px); }
.band__grain { position: absolute; inset: 0; z-index: -1; background-image: var(--grain); background-size: 240px; mix-blend-mode: overlay; opacity: .75; }
.band::after { box-shadow: 0 -40px 80px -20px rgba(255, 255, 255, .06); }
.band__text { font-weight: 300; font-size: clamp(40px, 6.4vw, 88px); line-height: 1.04; letter-spacing: -0.03em; color: rgba(255, 255, 255, .95); text-shadow: 0 2px 40px rgba(20, 10, 40, .35); }

/* Work: research-style cards */
.work { padding-top: 140px; }
.work__cards { max-width: 1160px; margin: 64px auto 0; text-align: left; }
.work__cards .cards { border: 0; border-radius: 0; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.work__cards .cards > * { box-shadow: none; }
.work__cards .card { background: #181818; border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; padding: 0; }
.work__cards a.card:hover { background: #1d1d1d; border-color: rgba(255, 255, 255, .2); }
.work__cards .work-card__img, .work__cards .work-card__ph { border-bottom: 1px solid rgba(255, 255, 255, .08); margin: 0; border-radius: 5px 5px 0 0; }
.work__cards .work-card__body { padding: 28px; gap: 12px; }
.work__cards .h3 { font-size: 24px; font-weight: 400; }
.work__cards .work-card__body > p:not(.eyebrow) { font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.work__cards .tags { margin-top: auto; padding-top: 6px; }
.work__more { margin-top: 56px; display: flex; justify-content: center; }

.closing { padding: 140px 24px 150px; }
.closing__title { font-weight: 400; font-size: clamp(40px, 6vw, 80px); line-height: 1.06; letter-spacing: -0.03em; max-width: 14ch; margin: 0 auto; text-wrap: balance;
  background: linear-gradient(180deg, #f4f4f4 0%, #9a9a9f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

.home .site-footer { background: #121212; }

@media (max-width: 899px) {
  .feature { grid-template-columns: 1fr; min-height: 0; gap: 0; padding: 40px 0 20px; }
  .feature__copy { max-width: 52ch; }
  .stage { height: 380px; margin-top: 36px; }
  .iso { transform: rotateX(58deg) rotateZ(-34deg) translate(30px, -10px) scale(.7); }
}
@media (max-width: 559px) {
  .intro { padding-top: 96px; }
  .stage { height: 300px; }
  .iso { transform: rotateX(58deg) rotateZ(-34deg) translate(10px, -10px) scale(.5); }
  .work { padding-top: 96px; }
  .closing { padding: 100px 20px 110px; }
}

.band__text { text-wrap: balance; }
@media (max-width: 520px) { .band__text { font-size: 34px; } }
