/* ==========================================================================
   LogicGigs — inner pages (About, Services, Projects, Technologies, Clients, Blog, Contact)
   ========================================================================== */
.page-hero { position: relative; padding: var(--hero-top) 0 clamp(48px, 5vw, 72px); overflow: hidden; }
.ph-title { font-size: var(--fs-h1); margin: 14px 0 18px; }
.ph-lede { font-size: var(--fs-lede); color: var(--muted); max-width: 580px; line-height: 1.6; }
.hero-dark .page-hero .ph-lede, .on-dark .ph-lede { color: #BAC2D6; }
.crumb { display: inline-block; font-weight: 600; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumb:hover { color: var(--ink); }
.crumb.light { color: rgba(255, 255, 255, .7); }
.crumb.light:hover { color: #fff; }
.ph-simple { text-align: center; min-height: 70vh; display: grid; place-items: center; }
.ph-simple .ph-lede { margin-inline: auto; }
.empty-state { text-align: center; max-width: 640px; margin: 0 auto; }
.empty-state h2 { font-size: var(--fs-h2); margin-bottom: 14px; }
.empty-state p { color: var(--muted); font-size: 17px; }
.empty-art { border-radius: 20px; overflow: hidden; margin-bottom: 34px; box-shadow: var(--shadow); opacity: .85; }
.pgrid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.light-cards .pcard { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.light-cards .pcard p { color: var(--muted); }
.light-cards .pcard .chip { background: var(--bg-2); color: var(--ink-3); }
@media (max-width: 980px) { .pgrid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pgrid-3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- About ---------- */
.about-hero { background: linear-gradient(180deg, #F3F6FF, #fff); }
.about-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.about-p { color: var(--muted); font-size: 15.5px; max-width: 600px; }
.about-art { position: relative; padding: 0 8% 10% 0; }
.arch { position: relative; aspect-ratio: 3/4; border-radius: 999px 999px 28px 28px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-3); }
.arch > .vx, .arch > img { position: absolute; inset: 0; height: 100%; }
.arch .vx { aspect-ratio: auto !important; background: linear-gradient(170deg, #DCE7FF, #F4F6FB 60%); }
.arch .vx-stage { padding: 30% 8% 8%; }
.arch-2 { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 8px #fff; }
.arch-2 .vx-stage { padding: 5em; }
.spin-badge { position: absolute; left: -6%; top: 8%; width: 112px; height: 112px; animation: spin 24s linear infinite; filter: drop-shadow(0 16px 30px rgba(10, 15, 31, .35)); }
.spin-badge text { font: 800 15.5px var(--f-body); letter-spacing: 3.2px; fill: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mv-card { position: relative; border-radius: 22px; padding: clamp(26px, 3vw, 40px); overflow: hidden; color: #fff; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; }
.mv-card p { font: 800 clamp(19px, 1.7vw, 24px)/1.35 var(--f-display); margin: 12px 0 0; letter-spacing: -.01em; }
.mv-dark { background: var(--ink); }
.mv-dark .eyebrow { color: var(--lime); }
.mv-blue { background: var(--blue); }
.mv-blue .eyebrow { color: #fff; }
.mv-ic { position: absolute; top: 24px; right: 24px; width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.mv-ic .ic { width: 24px; height: 24px; }
.mv-card::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .1); right: -120px; top: -150px; }
.values { background: var(--bg-2); }
.values-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.value { background: #fff; border-radius: 18px; padding: 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.value-n { font: 900 42px/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px var(--blue); display: block; margin-bottom: 14px; }
.value h3 { font: 800 18px/1.3 var(--f-body); margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 15px; margin: 0; }
.sides-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.side-card { display: block; border-radius: 22px; overflow: hidden; background: color-mix(in srgb, var(--a) 8%, #fff); box-shadow: 0 0 0 1px color-mix(in srgb, var(--a) 18%, transparent); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.side-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--a) 40%, transparent), 0 30px 60px -30px var(--a); }
.side-art { padding: 24px 24px 0; }
.side-art .vx { border-radius: 16px 16px 0 0; }
.side-art .vx-stage { padding: 2.5em 2.5em 0; align-items: end; }
.side-body { padding: 22px 24px 26px; background: #fff; display: grid; gap: 10px; justify-items: start; }
.side-body h3 { font-size: clamp(22px, 2vw, 28px); }
.side-body p { color: var(--muted); margin: 0; }
.approach-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 5vw, 72px); }
.approach h2 { font-size: var(--fs-h2); margin-top: 10px; }
.cap-rows { list-style: none; padding: 0; margin: 0; }
.cap-rows a { display: grid; grid-template-columns: 42px 1fr auto; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 15px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); transition: padding .3s var(--ease), background .3s; }
.cap-rows a:hover { padding-left: 14px; background: rgba(255, 255, 255, .03); }
.cap-row-ic { grid-row: span 2; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--a); }
.cap-rows b { font: 800 16px var(--f-display); text-transform: uppercase; font-stretch: 108%; }
.cap-rows small { grid-column: 2; color: #9AA3B8; }
.cap-rows a > .ic { grid-row: 1 / span 2; grid-column: 3; color: #9AA3B8; }
.approach-side { background: rgba(255, 255, 255, .04); border-radius: 20px; padding: 28px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); align-self: start; }
.approach-side h3 { font-size: 21px; margin-bottom: 16px; }
.approach-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 16px; }
.approach-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: #BAC2D6; }
.approach-list .ic { color: var(--lime); stroke-width: 3; }
.approach-list b { color: #fff; }
.approach-logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tech-tile.dark { background: rgba(255, 255, 255, .95); padding: 12px; }
.tech-tile.dark .tech-logo { width: 28px; height: 28px; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.member-photo { position: relative; aspect-ratio: 4/5; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, var(--bg-3), #fff); margin-bottom: 16px; }
.member-photo img { filter: grayscale(.9); transition: filter .5s, transform .6s var(--ease); }
.member:hover .member-photo img { filter: none; transform: scale(1.04); }
.member-initials { position: absolute; inset: 0; display: grid; place-items: center; font: 900 64px var(--f-display); color: var(--blue); }
.member-links { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; opacity: 0; transform: translateY(8px); transition: all .35s var(--ease); }
.member:hover .member-links, .member:focus-within .member-links { opacity: 1; transform: none; }
.member-links a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #fff; }
.member h3 { font: 800 17px var(--f-body); }
.member-role { color: var(--blue); font-weight: 600; font-size: 14px; }
.member p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }
@media (max-width: 980px) {
  .about-hero-grid, .approach-grid, .sides-grid, .mv-grid { grid-template-columns: minmax(0, 1fr); }
  .about-art { max-width: 460px; }
  .values-grid, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .values-grid, .team-grid { grid-template-columns: minmax(0, 1fr); } .approach-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Services ---------- */
.svc-hero { background: var(--ink); color: #fff; }
.svc-hero-bg { position: absolute; inset: 0; background: radial-gradient(45% 60% at 80% 45%, rgba(31, 107, 255, .35), transparent 70%), radial-gradient(30% 40% at 10% 90%, rgba(198, 244, 50, .1), transparent 70%); }
.svc-hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.svc-hero .ph-title { font-size: var(--fs-h1); }
.svc-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.svc-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-weight: 600; font-size: 14px; transition: background .25s, box-shadow .25s; }
.svc-jump a .ic { color: var(--a); width: 18px; height: 18px; }
.svc-jump a:hover { background: color-mix(in srgb, var(--a) 25%, transparent); box-shadow: inset 0 0 0 1px var(--a); }
.orbit { --r: 150px; position: relative; aspect-ratio: 1; max-width: 400px; width: 100%; margin-inline: auto; }
.orbit-core { position: absolute; inset: 34%; border-radius: 50%; background: radial-gradient(circle, #1A2140, #0A0F1F); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 0 80px rgba(31, 107, 255, .5); display: grid; place-items: center; }
.orbit-core .brand-word { display: none; }
.orbit-core .brand-mark { width: 54px; height: 54px; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .18); }
.orbit-ring.r1 { inset: 12%; } .orbit-ring.r2 { inset: 0; border-style: solid; border-color: rgba(255, 255, 255, .07); }
.orbit-spin { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.orbit-item { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--ang)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--ang))); }
.orbit-item i { position: absolute; left: -27px; top: -27px; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--a); color: #fff; box-shadow: 0 16px 30px -10px var(--a); animation: spin 40s linear infinite reverse; }
.orbit-item .ic { width: 24px; height: 24px; }
.svc-scroll-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 72px); }
.svc-stage-wrap { position: relative; }
.svc-stage { position: sticky; top: 100px; aspect-ratio: 4/3.4; border-radius: 22px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-lg); }
.svc-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.svc-slide.on { opacity: 1; transform: none; }
.svc-slide > .vx, .svc-slide > img { width: 100%; height: 100%; object-fit: cover; }
.svc-stage-counter { position: absolute; left: 20px; bottom: 18px; z-index: 3; background: rgba(10, 15, 31, .8); color: #fff; font: 700 13px var(--f-mono); padding: 7px 12px; border-radius: 8px; backdrop-filter: blur(6px); }
.svc-panel { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 40px 0; opacity: .3; transition: opacity .5s; }
.svc-panel.on { opacity: 1; }
.svc-panel-mobile-art { display: none; }
.svc-num { font: 700 14px var(--f-mono); color: var(--a); }
.svc-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--a); color: #fff; box-shadow: 0 14px 30px -12px var(--a); }
.svc-ic .ic { width: 24px; height: 24px; }
.svc-panel h2 { font-size: var(--fs-h2); line-height: 1.12; }
.svc-sum { font-size: 16.5px; color: var(--muted); margin: 0; }
.svc-feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; width: 100%; }
.svc-feats li { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14.5px; }
.svc-feats .ic { color: var(--a); stroke-width: 3; width: 18px; height: 18px; }
@media (max-width: 980px) {
  .svc-hero-grid, .svc-scroll-grid { grid-template-columns: minmax(0, 1fr); }
  .orbit { --r: 130px; max-width: 340px; }
  .svc-stage-wrap { display: none; }
  .svc-panel { min-height: 0; opacity: 1; padding: 30px 0; border-bottom: 1px solid var(--line); }
  .svc-panel-mobile-art { display: block; width: 100%; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
}
@media (max-width: 560px) { .svc-feats { grid-template-columns: minmax(0, 1fr); } .orbit { --r: 110px; } .orbit-item i { width: 50px; height: 50px; left: -25px; top: -25px; } }
.engage { background: var(--bg-2); }
.engage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.engage-card { background: #fff; border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
.engage-card.hi { background: var(--ink); color: #fff; transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.engage-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-2); color: var(--blue); }
.engage-card.hi .engage-ic { background: rgba(198, 244, 50, .15); color: var(--lime); }
.engage-card h3 { font: 900 20px var(--f-display); text-transform: uppercase; font-stretch: 108%; }
.engage-card p { color: var(--muted); margin: 0; }
.engage-card.hi p { color: #AEB6CC; }
.engage-card ul { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 10px; flex: 1; align-content: start; }
.engage-card li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.engage-card li .ic { color: var(--green); stroke-width: 3; width: 18px; }
.engage-card.hi li .ic { color: var(--lime); }
@media (max-width: 980px) { .engage-grid { grid-template-columns: minmax(0, 1fr); } .engage-card.hi { transform: none; } }

/* ---------- Service detail ---------- */
.sd-hero { background: color-mix(in srgb, var(--a) 10%, #fff); }
.sd-hero-bg { position: absolute; inset: 0; background: radial-gradient(50% 70% at 85% 30%, color-mix(in srgb, var(--a) 35%, transparent), transparent 70%); }
.sd-hero-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--a) 35%, transparent) 1.2px, transparent 1.3px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); mask-image: linear-gradient(90deg, transparent 40%, #000); opacity: .6; }
.sd-hero-grid { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.sd-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: var(--a); color: #fff; box-shadow: 0 16px 30px -10px var(--a); }
.sd-ic .ic { width: 26px; height: 26px; }
.sd-hero .ph-title { font-size: var(--fs-h1); }
.sd-art { position: relative; }
.sd-visual { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); transform: perspective(1800px) rotateY(-8deg) rotateX(4deg); }
.sd-visual > img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.sd-chip { position: absolute; display: inline-flex; gap: 8px; align-items: center; background: #fff; border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); white-space: nowrap; }
.sd-chip .ic { color: #fff; background: var(--a); border-radius: 50%; padding: 3px; width: 22px; height: 22px; stroke-width: 3; }
.sd-chip-0 { left: -6%; top: 12%; } .sd-chip-1 { right: -4%; top: 46%; } .sd-chip-2 { left: 8%; bottom: -5%; }
.sd-layout { display: grid; grid-template-columns: 1fr 320px; gap: clamp(36px, 5vw, 72px); align-items: start; }
.sd-side { position: sticky; top: 110px; display: grid; gap: 20px; }
.side-card-box { border-radius: 22px; padding: 24px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 14px; }
.side-card-box h3 { font: 800 13px var(--f-body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.sd-techs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sd-techs .tech-tile { padding: 14px 6px 10px; }
.sd-techs .tech-logo { width: 30px; height: 30px; }
.sd-techs small { font-size: 11.5px; }
.side-cta { border-radius: 22px; padding: 28px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.side-cta::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -80px; top: -90px; background: var(--a); opacity: .5; filter: blur(30px); }
.side-cta h3 { font-size: 22px; position: relative; }
.side-cta p { color: #AEB6CC; position: relative; }
.sd-feats { background: var(--bg-2); }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.feat span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--a) 14%, #fff); color: var(--a); flex: none; }
.feat .ic { stroke-width: 3; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 24px; height: 2px; background: repeating-linear-gradient(90deg, var(--a) 0 8px, transparent 8px 16px); opacity: .5; }
.timeline li { position: relative; }
.tl-n { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--a); color: #fff; font: 900 19px var(--f-display); box-shadow: 0 0 0 8px #fff, 0 14px 30px -10px var(--a); margin-bottom: 20px; }
.timeline h3 { font: 800 17px var(--f-body); margin-bottom: 6px; }
.timeline p { color: var(--muted); margin: 0; font-size: 15px; }
.other-title { font-size: 22px; margin-bottom: 16px; }
.other-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.other-item { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); font-weight: 700; transition: box-shadow .25s, transform .25s; }
.other-item > span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--a); color: #fff; flex: none; }
.other-item > .ic { margin-left: auto; color: var(--muted); }
.other-item:hover { box-shadow: 0 0 0 1.5px var(--a); transform: translateY(-2px); }
@media (max-width: 980px) {
  .sd-hero-grid, .sd-layout { grid-template-columns: minmax(0, 1fr); }
  .sd-side { position: static; }
  .feat-grid, .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline::before { display: none; }
}
@media (max-width: 560px) { .feat-grid, .timeline { grid-template-columns: minmax(0, 1fr); } .sd-chip-1 { right: 0; } .sd-chip-0 { left: 0; } }

/* ---------- Projects ---------- */
.proj-hero { padding-bottom: 0; background: linear-gradient(180deg, #fff, var(--bg-2)); }
.proj-title { font-size: clamp(52px, 8vw, 112px); line-height: .88; }
.proj-strip { margin-top: 36px; transform: rotate(-3deg); margin-inline: -40px; padding: 30px 0 60px; overflow: hidden; }
.proj-strip-track { display: flex; gap: 22px; width: max-content; animation: marquee 60s linear infinite; }
.proj-strip-item { width: clamp(240px, 26vw, 360px); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); flex: none; }
.proj-strip-item > img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.proj-list { background: var(--bg-2); padding-top: 60px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; justify-content: center; }
.filter-bar button { border: 0; background: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: 0 0 0 1px var(--line); transition: all .25s; display: inline-flex; gap: 8px; align-items: center; }
.filter-bar button span { font-size: 12px; background: var(--bg-2); padding: 1px 8px; border-radius: 999px; color: var(--muted); }
.filter-bar button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.filter-bar button[aria-pressed="true"] span { background: rgba(255, 255, 255, .15); color: #fff; }
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.proj-grid .pcard-lg { grid-column: span 2; grid-row: span 2; }
.proj-grid .pcard { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.proj-grid .pcard p { color: var(--muted); }
.proj-grid .pcard .chip { background: var(--bg-2); color: var(--ink-3); }
.proj-grid .pcard-cat { color: var(--a); }
.pcard.is-hidden { display: none; }
@media (max-width: 980px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .proj-grid { grid-template-columns: minmax(0, 1fr); } .proj-grid .pcard-lg { grid-column: auto; grid-row: auto; } }

/* ---------- Project detail ---------- */
.pd-hero { color: #fff; background: var(--ink); padding-bottom: 160px; }
.pd-hero-bg { position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 0%, color-mix(in srgb, var(--a) 60%, transparent), transparent 70%), radial-gradient(40% 60% at 0% 100%, color-mix(in srgb, var(--a) 30%, transparent), transparent 70%), var(--ink); }
.pd-hero-in { position: relative; }
.pd-hero-in > .chip { margin-left: 12px; }
.pd-hero .ph-title { font-size: clamp(34px, 4.6vw, 66px); max-width: 900px; }
.pd-hero .ph-lede { color: #C6CEE0; max-width: 760px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 34px 0 0; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .14); }
.pd-meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .55); font-weight: 700; }
.pd-meta dd { margin: 4px 0 0; font-weight: 700; font-size: 16px; }
.pd-meta a { display: inline-flex; gap: 6px; align-items: center; color: var(--lime); }
.pd-cover-wrap { margin-top: -130px; position: relative; z-index: 3; }
.pd-cover { border-radius: 22px; overflow: hidden; box-shadow: 0 60px 120px -50px color-mix(in srgb, var(--a) 70%, #000), 0 0 0 1px rgba(10, 15, 31, .06); background: var(--bg-2); }
.pd-cover > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.pd-metrics { padding: 60px 0 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.metric { border-radius: 20px; padding: 26px; background: color-mix(in srgb, var(--a) 8%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a) 20%, transparent); }
.metric b { display: block; font: 900 clamp(28px, 3vw, 40px)/1 var(--f-display); color: var(--a); }
.metric span { font-weight: 600; color: var(--ink-3); }
.pd-story-grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.pd-aside { position: sticky; top: 110px; }
.pd-aside-in { border-radius: 22px; padding: 24px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 16px; }
.pd-aside h3 { font: 800 13px var(--f-body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.pd-techs { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-tech { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 10px; background: var(--bg-2); font-weight: 600; font-size: 14px; }
.tech-logo.sm { width: 20px; height: 20px; }
.pd-tech .tech-mono { width: 22px; height: 22px; font-size: 9px; border-radius: 6px; }
.pd-sections { display: grid; gap: 48px; }
.pd-sec-label { display: inline-flex; align-items: center; gap: 10px; font: 900 15px var(--f-display); text-transform: uppercase; letter-spacing: .08em; color: var(--a); margin-bottom: 18px; }
.pd-sec-label::before { content: ""; width: 34px; height: 3px; background: var(--a); border-radius: 3px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.g-item { margin: 0; position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-2); box-shadow: var(--shadow); border-radius: 18px; }
.g-item.wide { grid-column: span 2; aspect-ratio: 16/8; }
.g-item figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(10, 15, 31, .75); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; backdrop-filter: blur(6px); }
.pd-quote { background: color-mix(in srgb, var(--a) 8%, #fff); }
.pd-quote-ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--a); color: #fff; margin-bottom: 20px; }
.display-quote { margin: 0 0 22px; font: 800 clamp(19px, 1.9vw, 26px)/1.4 var(--f-display); letter-spacing: -.01em; }
.pd-quote-by { display: inline-flex; gap: 12px; align-items: center; text-align: left; }
.pd-quote-by small { display: block; color: var(--muted); }
.next-proj { display: block; background: var(--ink); color: #fff; padding: 56px 0; overflow: hidden; position: relative; }
.next-proj::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 90% 50%, color-mix(in srgb, var(--a) 45%, transparent), transparent 70%); transition: opacity .5s; opacity: .6; }
.next-proj:hover::before { opacity: 1; }
.next-proj-in { position: relative; display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: center; }
.next-proj h2 { font-size: clamp(28px, 3.4vw, 46px); margin: 10px 0 14px; }
.next-proj .link-arrow { color: var(--lime); }
.next-art { border-radius: 18px; overflow: hidden; transform: rotate(3deg); transition: transform .6s var(--ease); box-shadow: var(--shadow-lg); }
.next-proj:hover .next-art { transform: rotate(0) scale(1.03); }
@media (max-width: 980px) { .pd-story-grid, .next-proj-in { grid-template-columns: minmax(0, 1fr); } .pd-aside { position: static; } .gallery { grid-template-columns: minmax(0, 1fr); } .g-item.wide { grid-column: auto; aspect-ratio: 4/3; } }

/* ---------- Technologies ---------- */
.tech-hero { background: var(--ink); color: #fff; }
.tech-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 80% 40%, rgba(31, 107, 255, .3), transparent 70%); }
.tech-hero-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; }
.tech-hero .ph-title { font-size: var(--fs-h1); }
.logo-wall { perspective: 1400px; height: 400px; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 40%, transparent 80%); mask-image: radial-gradient(70% 70% at 50% 50%, #000 40%, transparent 80%); }
.logo-wall-in { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; transform: rotateX(28deg) rotateZ(-14deg) translateY(-40px); transform-style: preserve-3d; }
.lw-tile { aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .96); box-shadow: 0 20px 30px -18px rgba(0, 0, 0, .8); animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); }
.lw-tile .tech-logo { width: 46%; height: 46%; object-fit: contain; }
@keyframes float { 50% { transform: translateZ(26px); box-shadow: 0 30px 40px -18px color-mix(in srgb, var(--c) 80%, transparent); } }
.tech-tabs { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.tech-tabs-in { display: flex; gap: 6px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.tech-tabs button { flex: none; border: 0; background: transparent; padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 14.5px; display: inline-flex; gap: 8px; align-items: center; color: var(--ink-3); }
.tech-tabs button span { font-size: 12px; color: var(--muted); }
.tech-tabs button[aria-selected="true"], .tech-tabs button:hover { background: var(--bg-2); color: var(--blue); }
.tgroup { padding-top: 24px; margin-bottom: 48px; scroll-margin-top: 90px; }
.tgroup-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.tgroup-head h2 { font-size: clamp(22px, 2vw, 28px); }
.tgroup-head span { color: var(--muted); font-weight: 600; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.tcell { position: relative; background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 0 0 1px var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); overflow: hidden; }
.tcell::before { content: ""; position: absolute; right: -40px; bottom: -60px; width: 140px; height: 140px; border-radius: 50%; background: var(--c); opacity: 0; filter: blur(40px); transition: opacity .4s; }
.tcell:hover { transform: translateY(-4px); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent), var(--shadow); }
.tcell:hover::before { opacity: .35; }
.tcell-logo { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: color-mix(in srgb, var(--c) 10%, #fff); margin-bottom: 12px; }
.tcell-logo .tech-logo { width: 28px; height: 28px; object-fit: contain; }
.tcell h3 { font: 800 16px var(--f-body); }
.tcell p { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.tcell-core { position: absolute; top: 14px; right: 14px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: var(--lime); padding: 3px 7px; border-radius: 6px; }
.choose-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.choose-item { padding: 24px; border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.choose-item > span { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--lime); color: var(--ink); margin-bottom: 18px; }
.choose-item h3 { font: 800 17px var(--f-body); margin-bottom: 8px; }
.choose-item p { color: #AEB6CC; margin: 0; font-size: 15px; }
@media (max-width: 980px) { .tech-hero-grid { grid-template-columns: minmax(0, 1fr); } .logo-wall { height: 300px; } .choose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .choose-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Clients ---------- */
.clients-hero { background: linear-gradient(180deg, #F3F6FF, #fff); }
.clients-hero .ph-title { max-width: 980px; margin-inline: auto; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.logo-tile { position: relative; display: grid; place-items: center; gap: 8px; aspect-ratio: 16/9; padding: 20px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s, transform .3s; text-align: center; }
.logo-tile.big { aspect-ratio: 3/2; }
.logo-tile img { max-height: 56px; max-width: 80%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logo-tile:hover { box-shadow: 0 0 0 1px var(--line), var(--shadow); transform: translateY(-3px); }
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-tile small { font-size: 12.5px; color: var(--muted); }
.nda-note { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 28px; border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.nda-ic { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--ink); color: var(--lime); }
.nda-note h2 { font: 800 20px var(--f-body); margin-bottom: 6px; }
.nda-note p { margin: 0; color: var(--muted); }
.tgrid-masonry { columns: 3 300px; column-gap: 18px; }
.tgrid-masonry .tcard { break-inside: avoid; margin-bottom: 18px; }
@media (max-width: 760px) { .nda-note { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Blog ---------- */
.blog-hero { padding-bottom: 30px; }
.blog-hero-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.blog-search { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border-radius: 14px; padding: 0 16px; min-width: min(300px, 100%); height: 48px; box-shadow: inset 0 0 0 1px var(--line); }
.blog-search input { border: 0; background: transparent; outline: none; flex: 1; height: 100%; font-size: 15px; min-width: 0; }
.blog-search .ic { color: var(--muted); }
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cat-pills a { --a: var(--ink); padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: 13.5px; transition: all .25s; }
.cat-pills a span { color: var(--muted); font-weight: 600; margin-left: 4px; }
.cat-pills a:hover { box-shadow: inset 0 0 0 1.5px var(--a); color: var(--a); }
.cat-pills a.on { background: var(--a); color: #fff; box-shadow: none; }
.cat-pills a.on span { color: rgba(255, 255, 255, .8); }
.blog-featured { padding: 20px 0 0; }
.feat-post { display: grid; grid-template-columns: 1.3fr 1fr; border-radius: 22px; overflow: hidden; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); transition: transform .5s var(--ease); }
.feat-post:hover { transform: translateY(-4px); }
.feat-media { overflow: hidden; }
.feat-media > .vx, .feat-media > img { height: 100%; width: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feat-post:hover .feat-media > * { transform: scale(1.04); }
.feat-body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 16px; align-items: flex-start; position: relative; overflow: hidden; }
.feat-body::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--a); opacity: .35; filter: blur(50px); }
.feat-body h2 { font: 800 clamp(22px, 2vw, 30px)/1.25 var(--f-body); letter-spacing: -.02em; position: relative; }
.feat-body p { color: #AEB6CC; margin: 0; position: relative; }
.author-line { display: flex; gap: 12px; align-items: center; position: relative; }
.author-line b { display: block; }
.author-line small { color: var(--muted); }
.feat-body .author-line small { color: #8A93A8; }
.center-line { justify-content: center; text-align: left; }
.blog-list { padding-top: 60px; }
@media (max-width: 900px) { .feat-post { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Post ---------- */
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 120; }
.read-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--pink)); transform-origin: left; transform: scaleX(0); }
.post-hero { padding-bottom: 40px; background: linear-gradient(180deg, color-mix(in srgb, var(--a) 10%, #fff), #fff); }
.post-meta-top { display: flex; justify-content: center; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; font-weight: 600; }
.post-title { font: 900 clamp(30px, 3.6vw, 48px)/1.1 var(--f-display); letter-spacing: -.025em; margin: 20px 0; }
.post-lede { margin-inline: auto; }
.post-hero .author-line { margin-top: 26px; }
.post-cover { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.post-cover > img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(30px, 6vw, 80px); justify-content: center; padding-top: 48px; padding-bottom: 48px; }
.post-toc { position: sticky; top: 110px; align-self: start; display: grid; gap: 30px; }
.post-toc nav { display: grid; gap: 4px; border-left: 2px solid var(--line); padding-left: 16px; }
.post-toc b { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px; display: block; }
.post-toc a { font-size: 14px; color: var(--ink-3); padding: 4px 0; line-height: 1.4; }
.post-toc a:hover { color: var(--blue); }
.post-toc a.lvl-3 { padding-left: 12px; font-size: 13.5px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share b { width: 100%; }
.share a, .share button { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); border: 0; transition: background .2s, color .2s; }
.share a:hover, .share button:hover { background: var(--ink); color: #fff; }
.share button.done { background: var(--green); color: #fff; }
.post-tags { margin-top: 40px; }
.author-box { display: flex; gap: 20px; align-items: center; margin-top: 50px; padding: 26px; border-radius: 22px; background: var(--bg-2); }
.author-box small { color: var(--muted); font-weight: 600; }
.author-box h3 { font: 800 18px var(--f-body); margin: 2px 0 6px; }
.author-box p { margin: 0; color: var(--muted); font-size: 15px; }
.avatar.lg { width: 72px; height: 72px; }
.avatar.lg b { font-size: 22px; }
.related-posts { background: var(--bg-2); }
@media (max-width: 980px) { .post-layout { grid-template-columns: minmax(0, 1fr); } .post-toc { position: static; } .post-toc nav { display: none; } }

/* ---------- Contact ---------- */
.contact-hero { background: var(--ink); color: #fff; padding-bottom: 80px; }
.contact-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 15% 30%, rgba(31, 107, 255, .35), transparent 70%), radial-gradient(30% 40% at 90% 90%, rgba(255, 46, 136, .2), transparent 70%); }
.contact-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-info .ph-title { font-size: clamp(34px, 4vw, 56px); }
.next-steps { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.next-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.next-steps li > span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(198, 244, 50, .14); color: var(--lime); font: 900 18px var(--f-display); }
.next-steps b { display: block; }
.next-steps small { color: #9AA3B8; font-size: 14px; }
.contact-lines { list-style: none; padding: 26px 0 0; margin: 0; display: grid; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
.contact-lines li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.contact-lines .ic { color: var(--cyan); }
.contact-form { background: #fff; color: var(--ink); border-radius: 22px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7); }
.contact-form h2 { font: 800 20px var(--f-body); margin-bottom: 18px; }
.form-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.pills-field { border: 0; padding: 0; margin: 0 0 18px; }
.pills-field legend { margin-bottom: 10px; }
.pill-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt { --a: var(--ink); cursor: pointer; position: relative; }
.pill-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pill-opt span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 14px; transition: all .2s; }
.pill-opt span .ic { width: 17px; height: 17px; color: var(--a); }
.pill-opt:hover span { box-shadow: inset 0 0 0 1.5px var(--a); }
.pill-opt input:checked + span { background: var(--a); color: #fff; box-shadow: none; }
.pill-opt input:checked + span .ic { color: #fff; }
.pill-opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--blue) 50%, transparent); }
.hp { position: absolute; left: -9999px; }
.form-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.form-note .ic { width: 15px; height: 15px; }
.sent-state { text-align: center; padding: 40px 10px; display: grid; justify-items: center; gap: 14px; }
.sent-ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; }
.sent-ic .ic { width: 38px; height: 38px; stroke-width: 3; }
.sent-state h2 { font-size: 30px; }
.sent-state p { color: var(--muted); }
@media (max-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form-2 { grid-template-columns: minmax(0, 1fr); } }
.arch .vx-stage { padding: 18% 0 0; }
.arch .vx-phone { width: 44%; }
.arch .vx-toast { bottom: 8%; right: 10%; }
.arch-2 .vx-stage { padding: 2.4em; }
@media (max-width: 980px) { .post-layout { grid-template-columns: minmax(0, 1fr); } }
.post-body, .prose { min-width: 0; }
.prose pre.code { max-width: 100%; }

/* ==========================================================================
   Company menu, Team, Gallery, Lightbox
   ========================================================================== */
[data-filter-grid] .is-hidden { display: none !important; }
.filter-bar.left { justify-content: flex-start; margin: 26px 0 0; }

/* ---------- Company dropdown ---------- */
.has-menu { position: relative; }
.has-menu > button { display: inline-flex; align-items: center; gap: 4px; padding: 8px 13px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; font-size: 14.5px; color: var(--ink-2); position: relative; }
.has-menu > button .ic { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.has-menu > button:hover, .has-menu:focus-within > button { background: var(--bg-2); }
.has-menu > button.active { color: var(--blue); }
.has-menu > button.active::after { content: ""; position: absolute; left: 13px; right: 30px; bottom: 4px; height: 2px; border-radius: 2px; background: currentColor; }
.nav-menu { position: absolute; top: calc(100% + 14px); left: 50%; width: 320px; transform: translate(-50%, 8px); background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 30px 60px -20px rgba(10, 15, 31, .35), 0 0 0 1px rgba(10, 15, 31, .06); display: grid; gap: 2px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; z-index: 5; }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-menu:hover .nav-menu, .has-menu:focus-within .nav-menu, .has-menu.open .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-menu:hover > button .ic, .has-menu.open > button .ic { transform: rotate(180deg); }
.nav-menu a { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 11px; }
.nav-menu a:hover, .nav-menu a.on { background: var(--bg-2); }
.nav-menu a > span { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--blue) 10%, #fff); color: var(--blue); }
.nav-menu a > span .ic { width: 19px; height: 19px; }
.nav-menu b { font-size: 14.5px; line-height: 1.3; }
.nav-menu small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }

/* ---------- Gallery tiles ---------- */
.gtile { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: var(--bg-3); isolation: isolate; }
.gtile-btn { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; display: block; text-align: left; color: #fff; }
.gtile-media { position: absolute; inset: 0; }
.gtile-media > img, .gtile-media > .vx { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gtile:hover .gtile-media > * { transform: scale(1.05); }
.gtile-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 15, 31, .72)); opacity: .9; transition: opacity .3s; }
.gtile-cap { position: absolute; z-index: 2; left: 16px; right: 56px; bottom: 14px; display: grid; gap: 2px; transform: translateY(4px); transition: transform .35s var(--ease); }
.gtile:hover .gtile-cap { transform: none; }
.gtile-cap small { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--lime); }
.gtile-cap b { font-size: 15.5px; line-height: 1.3; }
.gtile-zoom { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; transform: scale(.7); opacity: 0; transition: all .3s var(--ease); }
.gtile:hover .gtile-zoom, .gtile-btn:focus-visible .gtile-zoom { transform: none; opacity: 1; }
.gtile-btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }
.gtile .sample-badge { z-index: 3; }

/* Bento gallery: size variants set per photo in the admin */
.gbento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 230px); grid-auto-flow: dense; gap: 14px; }
.gtile-wide { grid-column: span 2; }
.gtile-tall { grid-row: span 2; }
.gtile-large { grid-column: span 2; grid-row: span 2; }
.gbento.home { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 13vw, 200px); }
.gstrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gstrip .gtile { aspect-ratio: 4/3.2; }
.gallery-hero { background: var(--ink); color: #fff; padding-bottom: clamp(40px, 4vw, 56px); }
.gallery-hero-bg { position: absolute; inset: 0; background: radial-gradient(40% 70% at 85% 20%, rgba(255, 46, 136, .28), transparent 70%), radial-gradient(40% 70% at 10% 100%, rgba(31, 107, 255, .35), transparent 70%); }
.gallery-hero-in { position: relative; }
.gallery-hero .filter-bar button { background: rgba(255, 255, 255, .07); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.gallery-hero .filter-bar button span { background: rgba(255, 255, 255, .1); color: #C9D0E0; }
.gallery-hero .filter-bar button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.gallery-hero .filter-bar button[aria-pressed="true"] span { background: var(--bg-2); color: var(--muted); }
.gallery-sec { padding-top: clamp(28px, 3vw, 44px); }
.home-life { background: var(--bg-2); }
@media (max-width: 900px) {
  .gbento, .gbento.home { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
  .gstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .gbento, .gbento.home { grid-auto-rows: 130px; gap: 10px; }
  .gtile-large { grid-column: span 2; grid-row: span 2; }
  .gtile-cap b { font-size: 13.5px; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(5, 8, 15, .92); backdrop-filter: blur(6px); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lb-fig { margin: 0; display: grid; gap: 14px; justify-items: center; max-height: 100%; min-width: 0; }
.lb-stage { position: relative; width: min(1100px, 100%); aspect-ratio: 16/10; max-height: 76vh; border-radius: 14px; overflow: hidden; background: #0A0F1F; }
.lb-stage img { width: 100%; height: 100%; object-fit: contain; }
.lb-stage .vx { position: absolute; inset: 0; height: 100%; }
.lb-fig figcaption { color: #fff; text-align: center; display: grid; gap: 2px; max-width: 720px; }
.lb-fig small { color: var(--lime); font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; }
.lb-fig b { font-size: 17px; }
.lb-fig span { color: #AEB6CC; font-size: 14.5px; }
.lb-fig em { font-style: normal; color: #6E7898; font: 500 12.5px var(--f-mono); margin-top: 4px; }
.lb-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; }
.lb-nav { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; justify-self: center; transition: background .2s; }
.lb-nav:hover, .lb-close:hover { background: rgba(255, 255, 255, .22); }
@media (max-width: 640px) { .lightbox { grid-template-columns: minmax(0, 1fr); padding: 60px 12px 20px; } .lb-nav { position: absolute; bottom: 20px; } .lb-nav.prev { left: 20px; } .lb-nav.next { right: 20px; } }

/* ---------- Team hero collage ---------- */
.team-hero { background: linear-gradient(180deg, #FFF6EE, #fff); }
.team-hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 72px); align-items: center; }
.team-facts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.team-facts span { background: #fff; border-radius: 12px; padding: 10px 16px; box-shadow: 0 0 0 1px var(--line); font-size: 14.5px; color: var(--muted); }
.team-facts b { font: 900 20px var(--f-display); color: var(--ink); margin-right: 4px; }
.collage { position: relative; aspect-ratio: 1 / .82; }
.collage-t { position: absolute; overflow: hidden; border-radius: 20px; background: var(--bg-3); box-shadow: var(--shadow-lg), 0 0 0 5px #fff; display: grid; place-items: center; }
.collage-t .avatar-art, .collage-t .portrait-art, .collage-t img { width: 100%; height: 100%; object-fit: cover; }
.collage-t.t0 { left: 30%; top: 4%; width: 36%; aspect-ratio: 4/5; z-index: 3; }
.collage-t.t1 { left: 2%; top: 22%; width: 28%; aspect-ratio: 4/5; transform: rotate(-5deg); }
.collage-t.t2 { right: 4%; top: 0; width: 28%; aspect-ratio: 4/5; transform: rotate(4deg); }
.collage-t.t3 { left: 14%; bottom: 0; width: 26%; aspect-ratio: 1; border-radius: 50%; z-index: 4; }
.collage-t.t4 { right: 10%; bottom: 4%; width: 30%; aspect-ratio: 4/5; transform: rotate(-3deg); z-index: 2; }
.collage-t.is-icon { background: linear-gradient(145deg, var(--blue), var(--cyan)); color: #fff; }
.collage-t.is-icon:nth-child(2n) { background: linear-gradient(145deg, var(--pink), #FF8BBE); }
.collage-t.is-icon:nth-child(3n) { background: linear-gradient(145deg, var(--violet), #A58BFF); }
.collage-t.is-icon .ic { width: 34%; height: 34%; }
.collage-chip { position: absolute; z-index: 6; left: 46%; bottom: 36%; display: inline-flex; gap: 8px; align-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 13.5px; padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow-lg); white-space: nowrap; }
.collage-chip .ic { color: var(--lime); width: 18px; height: 18px; }
.tm-mono { font: 900 clamp(34px, 5vw, 64px) var(--f-display); color: var(--blue); }
@media (max-width: 900px) { .team-hero-grid { grid-template-columns: minmax(0, 1fr); } .collage { max-width: 520px; } }

/* ---------- Team cards ---------- */
.portrait-art { display: block; width: 100%; height: 100%; }
.tm { position: relative; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.tm:hover { transform: translateY(-6px); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--a) 55%, transparent), 0 30px 50px -30px color-mix(in srgb, var(--a) 70%, transparent); }
.tm-photo { position: relative; aspect-ratio: 1 / 1.02; overflow: hidden; background: color-mix(in srgb, var(--a) 12%, #F4F6FB); display: grid; place-items: center; }
.tm-photo > img, .tm-photo > .portrait-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.tm-photo > img { filter: grayscale(.2) contrast(1.02); }
.tm:hover .tm-photo > img, .tm:hover .tm-photo > .portrait-art { transform: scale(1.05); filter: none; }
.tm-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--a); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.tm:hover .tm-photo::after { transform: scaleX(1); }
.tm-mono { font: 900 clamp(34px, 5vw, 60px) var(--f-display); color: var(--a, var(--blue)); }
.tm-social { position: absolute; z-index: 2; right: 12px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateX(10px); transition: all .35s var(--ease); }
.tm:hover .tm-social, .tm:focus-within .tm-social { opacity: 1; transform: none; }
.tm-social a { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 6px 14px -6px rgba(10, 15, 31, .35); transition: background .2s, color .2s; }
.tm-social a:hover { background: var(--ink); color: #fff; }
.tm-social .ic { width: 16px; height: 16px; }
.tm-body { padding: 14px 16px 16px; display: grid; gap: 6px; flex: 1; align-content: start; }
.tm-role { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--at, var(--blue)); line-height: 1.35; }
.tm-name { font: 800 17px/1.25 var(--f-body); letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tm.is-ph .tm-name { color: var(--muted); font-weight: 700; }
.tm-ph-tag { font: 700 10px/1 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1px dashed #C4CCDC; padding: 3px 6px; border-radius: 5px; }
.tm-body p { margin: 2px 0 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.tm-skills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tm-skills span { font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 7px; background: color-mix(in srgb, var(--a) 11%, #fff); color: var(--at, var(--ink-3)); }
.tm-mono { position: relative; z-index: 1; }
/* Leadership */
.lead-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tm-lead { flex-direction: row; }
.tm-lead .tm-photo { width: 44%; aspect-ratio: auto; min-height: 300px; flex: none; }
.tm-lead .tm-body { padding: 26px; gap: 8px; align-content: center; }
.tm-lead .tm-name { font-size: 22px; }
.tm-lead .tm-role { font-size: 12.5px; }
.tm-lead .tm-body p { font-size: 15px; }
.tm-dept { justify-self: start; display: inline-flex; gap: 6px; align-items: center; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); background: var(--lime); padding: 4px 9px; border-radius: 7px; margin-bottom: 4px; }
.tm-dept .ic { width: 14px; height: 14px; }
.tm-lead .tm-social { flex-direction: row; left: 14px; right: auto; }
/* Discipline groups */
.team-sec { padding-top: clamp(40px, 4vw, 56px); }
.tm-group { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 3vw, 44px); padding: clamp(36px, 4vw, 52px) 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.tm-group-lead { display: block; border-top: 0; padding-top: 0; }
.tm-group-head { position: sticky; top: 110px; align-self: start; display: grid; gap: 10px; justify-items: start; }
.tm-group-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--a) 16%, #fff); color: var(--at); }
.tm-group-head h2 { font-size: clamp(22px, 2vw, 28px); line-height: 1.1; }
.tm-group-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tm-group-count { font-size: 12.5px; font-weight: 700; color: var(--at); background: color-mix(in srgb, var(--a) 12%, #fff); padding: 4px 10px; border-radius: 999px; }
.tm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-content: start; }
.tm-join { border-radius: 18px; border: 2px dashed color-mix(in srgb, var(--a) 55%, #CBD3E3); padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 10px; transition: border-color .25s, background .25s, transform .3s var(--ease); }
.tm-join:hover { border-color: var(--at); background: color-mix(in srgb, var(--a) 7%, #fff); transform: translateY(-4px); }
.tm-join-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--ink); color: var(--lime); }
.tm-join b { font: 800 17px/1.3 var(--f-body); }
.tm-join small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.tm-join .link-arrow { color: var(--at); }
.team-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: clamp(20px, 3vw, 36px); padding: 24px 28px; border-radius: 20px; background: var(--ink); color: #fff; }
.team-cta b { display: block; font: 800 20px var(--f-body); }
.team-cta span { color: #AEB6CC; font-size: 15px; }
.team-life .gtile { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
/* Discipline strip */
.disc-band { position: relative; z-index: 2; margin-top: -8px; }
.disc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.disc { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -24px rgba(10, 15, 31, .4); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.disc:hover { transform: translateY(-4px); box-shadow: 0 0 0 1.5px var(--a), 0 20px 36px -24px var(--a); }
.disc-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--a) 16%, #fff); color: var(--at); margin-bottom: 6px; }
.disc-ic .ic { width: 19px; height: 19px; }
.disc b { font-size: 15px; }
.disc small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.disc-faces { display: flex; margin-top: 8px; }
.disc-faces i { position: relative; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px #fff; margin-right: -8px; background: var(--bg-3); display: grid; place-items: center; }
.disc-faces i > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.disc-faces .tm-mono { position: static; font-size: 11px; }
@media (max-width: 1080px) { .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .lead-grid { grid-template-columns: minmax(0, 1fr); } .tm-group { grid-template-columns: minmax(0, 1fr); } .tm-group-head { position: static; } }
@media (max-width: 560px) {
  .tm-lead { flex-direction: column; } .tm-lead .tm-photo { width: 100%; min-height: 0; aspect-ratio: 1 / .9; }
  .tm-grid { gap: 12px; } .tm-body { padding: 12px 12px 14px; } .tm-body p { font-size: 13px; } .tm-name { font-size: 15.5px; }
  .tm-social { opacity: 1; transform: none; flex-direction: row; left: 10px; right: auto; bottom: 10px; }
  .disc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (hover: none) { .tm-social { opacity: 1; transform: none; } }
@media (max-width: 560px) { .collage-chip { left: auto; right: 0; bottom: 30%; font-size: 12px; padding: 8px 11px; } }
.orbit-core .lg-symbol { filter: drop-shadow(0 12px 30px rgba(31, 107, 255, .55)); }
.author-line .lg-avatar, .author-box .lg-avatar { flex: none; }

/* ---------- Home: team teaser ---------- */
.ht-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.ht-copy .sec-head h2 { font-size: var(--fs-h2); margin-top: 10px; }
.ht-disc { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.ht-disc li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.ht-disc li span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--a) 15%, #fff); color: var(--at); }
.ht-disc li span .ic { width: 17px; height: 17px; }
.ht-disc b { font-size: 14.5px; }
.ht-disc em { font-style: normal; font-weight: 800; font-size: 13px; color: var(--at); background: color-mix(in srgb, var(--a) 12%, #fff); padding: 2px 9px; border-radius: 999px; }
.ht-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ht-face { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--bg-3); display: grid; place-items: center; box-shadow: 0 10px 24px -18px rgba(10, 15, 31, .45); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.ht-face:nth-child(4n+2), .ht-face:nth-child(4n+4) { transform: translateY(18px); }
.ht-face > img, .ht-face > .portrait-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ht-face .tm-mono { font-size: 26px; }
.ht-face:hover { box-shadow: 0 0 0 2px var(--a), 0 18px 30px -16px var(--a); }
.ht-face:hover > img, .ht-face:hover > .portrait-art { transform: scale(1.07); }
.ht-role { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 5px 7px; border-radius: 8px; background: rgba(10, 15, 31, .82); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.25; text-align: center; opacity: 0; transform: translateY(6px); transition: all .3s var(--ease); backdrop-filter: blur(4px); }
.ht-face:hover .ht-role, .ht-face:focus-visible .ht-role { opacity: 1; transform: none; }
@media (max-width: 980px) { .ht-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ht-wall { gap: 8px; } .ht-face:nth-child(4n+2), .ht-face:nth-child(4n+4) { transform: translateY(10px); } .ht-role { display: none; } }
.tm-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .tm-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Team: discipline filter strip + 5-column grid ---------- */
.disc-band .disc-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
button.disc { border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; align-content: start; }
.disc small { line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.disc[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--a), 0 20px 36px -24px var(--a); background: color-mix(in srgb, var(--a) 6%, #fff); }
.disc-all[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 0 20px 36px -22px rgba(10, 15, 31, .6); }
.disc-all[aria-pressed="true"] small { color: #AEB6CC; }
.disc-all[aria-pressed="true"] .disc-ic { background: rgba(255, 255, 255, .12); color: var(--lime); }
.disc-all[aria-pressed="true"] .disc-faces i { box-shadow: 0 0 0 2px var(--ink); }
.disc-faces { align-items: center; margin-top: auto; padding-top: 10px; }
.disc-faces em { font-style: normal; margin-left: 14px; font-size: 12px; font-weight: 800; color: var(--at); background: color-mix(in srgb, var(--a) 13%, #fff); padding: 2px 8px; border-radius: 999px; }
.disc:focus-visible { outline: 3px solid color-mix(in srgb, var(--a) 50%, transparent); outline-offset: 2px; }
.team-sec .lead-grid { margin-bottom: 18px; }
.tm-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tm-grid.five .tm-name { font-size: 15.5px; }
.tm-grid.five .tm-body { padding: 13px 14px 15px; }
.tm-grid.five .tm-body p { font-size: 13.5px; }
.tm-grid.five .tm-ph-tag { font-size: 9px; padding: 2px 5px; }
.team-cta { margin-top: 28px; background: linear-gradient(120deg, var(--ink), #1B1646); }
.team-cta span { display: block; max-width: 620px; margin-top: 4px; }
.team-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 1200px) { .disc-band .disc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tm-grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tm-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .disc-band .disc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .disc small { -webkit-line-clamp: 2; } }
.tm-grid.five .tm-name { flex-direction: column; align-items: flex-start; gap: 5px; }
@media (max-width: 560px) {
  .tm-grid.five .tm-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .tm-grid.five .tm-skills span:nth-child(n+3) { display: none; }
  .tm-grid.five .tm-skills span { font-size: 11px; padding: 3px 7px; }
  .tm-grid.five .tm-role { font-size: 10.5px; }
}
/* Discipline cards: content shrinks with the card on small phones */
.disc { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.disc > * { min-width: 0; }
.disc b { overflow-wrap: anywhere; }
