/* KSC Infotech website — page layout on top of ksc.css (the design system bundle). */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-sans); }
img { max-width: 100%; }
.skip { position: absolute; left: -9999px; top: 16px; z-index: 2000; padding: 12px 18px; background: var(--ink); color: var(--surface); border-radius: var(--radius-sm); }
.skip:focus { left: 16px; }
/* content box = the floating nav's box (1280 wide inside the gutter), so every edge lines up with the navbar */
.wrap { max-width: calc(1280px + 2 * var(--space-gutter)); margin: 0 auto; padding: 0 var(--space-gutter); }
.ksc-hero__inner { max-width: calc(1280px + 2 * var(--space-gutter)); }
@media (max-width: 480px) { :root { --space-gutter: 16px; --space-section: 56px; } }

/* header: fixed floating nav that hides on scroll down and springs back on scroll up */
.site-header { position: fixed; left: 0; right: 0; top: 0; z-index: 100; padding: 24px var(--space-gutter) 0; pointer-events: none; will-change: transform; }
.site-header .ksc-nav { max-width: 1280px; margin: 0 auto; pointer-events: auto; }
.site-header.is-raised .ksc-nav__card { box-shadow: var(--shadow-float); }
@media (max-width: 480px) { .site-header { padding-top: 16px; } }

/* sections */
.section { padding: var(--space-section) 0; }
.section--surface { background: var(--surface); }
.section--canvas { background: var(--canvas); }
.section-body { margin-top: var(--space-lg); }
.ksc-hero__inner { padding-top: 112px; }

/* inner page hero */
.page-hero { position: relative; overflow: hidden; padding: 196px 0 var(--space-xl); }
.page-hero .ksc-h-display { max-width: 1000px; }
.page-hero__eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; }
.page-hero__eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--blue); }
.page-hero__lead { max-width: 640px; margin-top: 34px; }
.page-hero__ctas { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 50px; }
.dither-corner { position: absolute; right: 0; top: 0; display: grid; pointer-events: none; }
.dither-corner i { background: var(--blue); scale: 0; transition: scale var(--dur-bouncy) var(--spring-bouncy); transition-delay: calc(var(--d, 0) * 1ms); }
.dither-corner.is-in i { scale: 1; }
@media (max-width: 760px) { .page-hero { padding-top: 150px; } .dither-corner { opacity: .5; } }

/* two-column split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: start; }
.split--wide { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width: 860px) { .split, .split--wide { grid-template-columns: 1fr; gap: 34px; } }
.stack { display: grid; gap: 18px; align-content: start; }
.prose p { margin: 0 0 18px; font-size: 18px; line-height: 28px; color: var(--ink-secondary); }
.prose p strong { color: var(--ink); font-weight: 500; }

/* feature grid (why KSC, stakeholders, benefits) */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature { display: grid; gap: 18px; align-content: start; padding: var(--space-md); min-height: 240px; }
.feature .ksc-icon { width: 32px; height: 32px; color: var(--blue); }
.feature h3 { margin: 0; }
@media (max-width: 960px) { .features, .features--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features, .features--3 { grid-template-columns: 1fr; } .feature { min-height: 0; } }

/* DA teaser */
.da-teaser__panel { display: grid; gap: 34px; align-content: start; }
.da-teaser__copy { min-height: 96px; transition: opacity .2s ease; }

/* services detail */
.service-detail { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: 34px; padding: 50px 0; border-top: 1px solid var(--ink); scroll-margin-top: 120px; }
.service-detail:last-child { border-bottom: 1px solid var(--ink); }
.service-detail__num { display: grid; gap: 18px; align-content: start; }
.service-detail__num .ksc-icon { width: 40px; height: 40px; color: var(--blue); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 16px; line-height: 24px; color: var(--ink); }
.checklist .ksc-icon { color: var(--blue); }
@media (max-width: 860px) { .service-detail { grid-template-columns: 1fr; gap: 18px; } }

/* process */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.process li { list-style: none; counter-increment: step; display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--ink); }
.process li::before { content: counter(step, decimal-leading-zero); font: 500 12px/16px var(--font-mono); letter-spacing: .08em; color: var(--blue); }
.process { padding: 0; margin: 0; }
@media (max-width: 860px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 18px; } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 34px; padding: 34px 0; border-top: 1px solid var(--border); }
.timeline li b { font-size: clamp(36px, 4vw, 43px); line-height: 1.1; font-weight: 500; letter-spacing: -0.0344em; }
.timeline li b.ksc-em { color: var(--blue); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 10px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.contact-card { background: var(--surface); border-radius: var(--radius-xl); padding: var(--space-md); }
.contact-form { display: grid; gap: 18px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 16px; border-radius: var(--radius-sm); font-size: 16px; line-height: 24px; }
.form-status.is-error { display: block; background: var(--surface); border: 1px solid var(--error); color: var(--error); }
.form-success { display: none; gap: 18px; align-content: start; padding: 34px 0; }
.form-success .ksc-icon { width: 48px; height: 48px; color: var(--blue); }
.contact-card.is-sent .contact-form { display: none; }
.contact-card.is-sent .form-success { display: grid; animation: ksc-pop var(--dur-bouncy) var(--spring-bouncy); }
@keyframes ksc-pop { from { opacity: 0; scale: .96; translate: 0 12px; } to { opacity: 1; scale: 1; translate: 0 0; } }
.contact-side { display: grid; gap: 18px; }
.contact-globe { position: relative; aspect-ratio: 1; background: var(--surface); border-radius: var(--radius-xl); overflow: hidden; }
.contact-globe [data-ksc-globe] { position: absolute; inset: -6%; cursor: grab; }
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; }
.contact-lines li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--overlay-line); }
.contact-lines li:first-child { border-top: 0; padding-top: 0; }
.contact-lines a { color: var(--on-overlay); text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines .ksc-icon { color: var(--on-overlay-secondary); }
.clock { font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } .contact-globe { max-width: 520px; } }
@media (max-width: 560px) { .contact-form .row { grid-template-columns: 1fr; } }

/* 404 */
.notfound { min-height: 100vh; display: grid; align-content: center; padding: 160px 0 88px; }
.notfound b { font: 500 12px/16px var(--font-mono); letter-spacing: .08em; color: var(--blue); }

/* service card icon at 44px */
.ksc-service__icon .ksc-icon { width: 44px; height: 44px; stroke-width: 1.25; }
.da-teaser__panel .ksc-seg { justify-self: start; }
.ksc-modules--one { grid-template-columns: 1fr; }
.section--surface .ksc-btn--arrow, .contact-card .ksc-btn--arrow { background: var(--canvas); }
/* nav Login: same 64px height, centring and card look as the nav card and "Get in touch" */
.site-header .ksc-nav__actions { align-items: center; }
.site-header .nav-login { --h: 64px; min-width: 0; padding: 0 26px; border-color: transparent; border-radius: var(--radius-md); background: var(--surface); }
.site-header .nav-login:hover { background: var(--ink); color: var(--surface); }
.site-header.is-raised .nav-login { box-shadow: var(--shadow-float); }
/* Once the nav links collapse into Menu, Login moves there too ("Employee login"),
   leaving room for the brand and the Menu button in the card. */
@media (max-width: 860px) { .site-header .nav-login { display: none; } }
@media (max-width: 700px) { .site-header .ksc-nav__brand span { display: none; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }


/* eight service cards: 4 × 2 on wide screens */
.services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* hero: "Building with Claude + Claude Code" badge (text only; no third-party logos) */
.ai-badge { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-full);
  background: var(--surface); color: var(--ink); font: 400 14px/20px var(--font-sans); text-decoration: none;
  translate: 0 0; transition: translate var(--dur-snappy) var(--spring-snappy), border-color .25s ease; }
.ai-badge:hover { translate: 0 -2px; border-color: var(--ink); }
.ai-badge b { font-weight: 600; }
.ai-badge__label { color: var(--ink-secondary); }
.ai-badge__plus { color: var(--blue); font-weight: 600; }
.ai-badge__spark { width: 14px; height: 14px; background: var(--blue);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); transition: rotate var(--dur-bouncy) var(--spring-bouncy); }
.ai-badge:hover .ai-badge__spark { rotate: 90deg; }

/* dark band: words on an arc over an animated dot-matrix glow */
.arc-band { position: relative; overflow: hidden; isolation: isolate; background: var(--overlay); color: var(--on-overlay); }
.arc-band__dither { position: absolute; z-index: -1; pointer-events: none; }
.arc-band__dither { inset: 0; }
.arc-band__dither canvas { display: block; width: 100%; height: 100%; }
.arc-band__svg { display: block; width: 100%; height: clamp(220px, 27.8vw, 400px); }
.arc-band__text { fill: var(--on-overlay); font: 500 104px/1 var(--font-sans); letter-spacing: -0.045em; }
.arc-band__sep { fill: var(--blue-on-overlay); }

.ksc-footer { position: relative; overflow: hidden; isolation: isolate; }

/* track record + development authority wall (home, below the hero) */
.track__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-lg); align-items: stretch; }
.track-card { display: grid; align-content: space-between; gap: 18px; padding: 28px; background: var(--overlay); color: var(--on-overlay); border-radius: var(--radius-lg); }
.track-card > .ksc-eyebrow { color: var(--on-overlay-secondary); }
.track-card__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 34px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--overlay-line); }
.track-card__row:last-child { border-bottom: 0; }
.track-card__row b { font-size: clamp(34px, 4vw, 46px); line-height: 1; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.track-card__row p { margin: 0; color: var(--on-overlay-secondary); font-size: 16px; line-height: 24px; text-align: right; }
.track-card .ksc-btn-pair { display: flex; }
.track-card .ksc-btn--primary { flex: 1; justify-content: center; }
.track-card .ksc-btn--arrow { background: var(--on-overlay); color: var(--overlay); }
.track-wall { display: grid; align-content: center; gap: var(--space-md); }
.track-wall__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.track-tile { position: relative; overflow: hidden; display: grid; gap: 8px; align-content: end; min-height: 188px; padding: 24px; background: var(--surface); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.track-tile__abbr { font-size: clamp(40px, 5vw, 60px); line-height: .9; font-weight: 600; letter-spacing: -0.045em; color: var(--ink); translate: 0 0; transition: color .25s ease, translate var(--dur-snappy) var(--spring-snappy); }
.track-tile:hover .track-tile__abbr { color: var(--blue); translate: 0 -4px; }
.track-tile__name { font-size: 15px; line-height: 20px; }
.track-tile .ksc-caption { color: var(--ink-secondary); }
.track-tile:hover .ksc-pixels i { scale: 1; }
@media (max-width: 900px) { .track__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .track-card { padding: 22px 18px; }
  .track-card__row { grid-template-columns: 1fr; }
  .track-card__row p { text-align: left; }
  .track-tile { min-height: 150px; padding: 16px; }
  .track-tile__name { font-size: 13px; line-height: 18px; }
}

/* footer CTA: button + Seriously.Work partner badge (their wordmark: Plus Jakarta Sans 800, orange dot) */
.ksc-footer__cta-side { display: grid; justify-items: end; gap: 18px; }
/* `.ksc-footer a` (link underline) otherwise wipes the arrow button's white square */
.ksc-footer .ksc-btn--arrow { background: var(--on-overlay); color: var(--overlay); }
.ksc-footer .partner-badge { display: inline-flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border-radius: var(--radius-md); background: var(--on-overlay); color: var(--overlay);
  translate: 0 0; transition: translate var(--dur-snappy) var(--spring-snappy), box-shadow var(--dur-smooth) var(--spring-smooth); }
.ksc-footer .partner-badge:hover { translate: 0 -3px; box-shadow: 0 12px 32px rgb(0 0 0 / .45); }
.partner-badge__mark { font: 800 22px/1 "Plus Jakarta Sans", var(--font-sans); letter-spacing: -0.025em; white-space: nowrap; }
.partner-badge__mark span { display: inline-block; color: #fe6e00; scale: 1; transition: scale var(--dur-bouncy) var(--spring-bouncy); }
.partner-badge:hover .partner-badge__mark span { scale: 1.7; }
.partner-badge__chip { padding: 7px 9px; border-radius: var(--radius-sm); background: var(--overlay); color: var(--on-overlay); font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 760px) { .ksc-footer__cta-side { justify-items: start; } }
@media (max-width: 420px) { .ksc-footer .partner-badge { gap: 10px; padding-left: 12px; } .partner-badge__mark { font-size: 19px; } .partner-badge__chip { font-size: 10px; } }
.hero-badge { padding-left: 16px; }

/* footer logo: the same lockup as the nav (blue mark + "Infotech") on its white card */
.ksc-footer .footer-brand { justify-self: start; padding: 14px 18px; background: var(--on-overlay); color: var(--overlay); border-radius: var(--radius-lg);
  translate: 0 0; transition: translate var(--dur-snappy) var(--spring-snappy); }
.ksc-footer .footer-brand:hover { translate: 0 -2px; }
.ksc-footer .footer-brand span { display: inline; }

/* footer: two office addresses */
.footer-offices { display: grid; gap: 14px; }
.footer-offices b { display: block; margin-bottom: 2px; color: var(--on-overlay); font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }

/* "Infotech" beside the KSC mark: the mark's letters sit at 58% of the image
   height (pixel details stick out above the K), so the word is nudged down
   to line up with the letters' optical centre. Applies to nav and footer. */
.ksc-nav__brand span { translate: 0 .16em; }

/* (02) Flagship product: dark section with a pointer-following dot-matrix glow */
.flagship { position: relative; overflow: hidden; isolation: isolate; background: var(--overlay); color: var(--on-overlay); }
.flagship__dither { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55; }
.flagship__dither canvas { display: block; width: 100%; height: 100%; }
.flagship .ksc-em { color: var(--blue-on-overlay); }
.flagship .ksc-sechead .ksc-body-lg, .flagship .ksc-eyebrow { color: var(--on-overlay-secondary); }
.flagship .da-teaser__copy { color: var(--on-overlay); }
.flagship .ksc-seg { background: rgb(255 255 255 / .06); border-color: var(--overlay-line); backdrop-filter: blur(6px); }
.flagship .ksc-seg__pill { background: var(--on-overlay); }
.flagship .ksc-seg button { color: var(--on-overlay-secondary); }
.flagship .ksc-seg button:hover { color: var(--on-overlay); }
.flagship .ksc-seg button[aria-selected="true"] { color: var(--overlay); }
.flagship .ksc-modules li > * { color: var(--on-overlay); border-bottom-color: var(--overlay-line); }
.flagship .ksc-modules li > *::before { color: var(--on-overlay-secondary); }
.flagship .ksc-modules li > * svg { color: var(--blue-on-overlay); }
.flagship .ksc-modules li > *:hover { background: rgb(0 4 246 / .35); }
.flagship .ksc-modules li > *:hover::before { color: var(--on-overlay); }
@media (max-width: 760px) { .flagship__dither { opacity: .35; } }

/* (04) About: dot-matrix founder portrait (site.js §10); the lens reveals the photo */
.founder { margin: var(--space-lg) 0 0; max-width: 380px; display: grid; gap: 14px; }
.founder__frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-lg); background: var(--canvas); touch-action: pan-y; cursor: crosshair; }
.founder__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.founder__frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.founder__frame.is-dithered img { opacity: 0; }
.founder figcaption { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; }
.founder figcaption b { display: block; font-weight: 500; font-size: 16px; line-height: 22px; }
.founder figcaption .ksc-caption { color: var(--ink-secondary); }
.founder__hint { color: var(--blue) !important; }
.founder__hint-touch { display: none; }
@media (hover: none) { .founder__hint-hover { display: none; } .founder__hint-touch { display: inline; } }
@media (max-width: 760px) { .founder { max-width: none; } }

/* Feature cards: the blue pixel burst on hover, as on the home page's service cards */
.ksc-card.feature { position: relative; overflow: hidden; }
.ksc-card.feature:hover .ksc-pixels i { scale: 1; }
.service-detail { position: relative; }
.service-detail:hover .ksc-pixels i { scale: 1; }

/* the ball: 7×7 pixel art on a 3px grid (brand blue, one white glint) */
.yard__ball { position: absolute; left: 0; top: 0; width: 21px; height: 21px; display: none; pointer-events: none; will-change: transform; image-rendering: pixelated;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath fill='%230004f6' d='M2 0h3v1h1v1h1v3h-1v1h-1v1h-3v-1h-1v-1h-1v-3h1v-1h1z'/%3E%3Cpath fill='%23fff' d='M2 2h1v1h-1z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* ---------- Home hero = Coco's whole playground (site.js §12) ----------
   The canvas (dot field, cursor glow, dithered ground) fills the hero behind
   the copy; Coco and the ball run above it. Desktop: copy on the left, the
   stats float on the right as platforms he hops onto. Narrower: copy, a row
   of stats, then open yard. A click on empty space throws the ball. */
.ksc-hero--yard { --ground: 56px; --coco-h: 100px; display: flex; flex-direction: column; min-height: 100svh; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath fill='%230004f6' d='M2 0h3v1h1v1h1v3h-1v1h-1v1h-3v-1h-1v-1h-1v-3h1v-1h1z'/%3E%3Cpath fill='%23fff' d='M2 2h1v1h-1z'/%3E%3C/svg%3E") 10 10, pointer; }
.ksc-hero--yard .ksc-hero__inner { width: 100%; padding-bottom: 0; display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); column-gap: var(--space-lg); }
.ksc-hero--yard .ksc-hero__inner { padding-top: 122px; } /* ~56px under the floating nav, like the inner pages */
.ksc-hero--yard .ksc-hero__copy { padding-top: 22px; gap: 26px; cursor: auto; }
.ksc-hero--yard .ksc-hero__ctas { gap: 14px 10px; }
.ksc-hero--yard .ai-badge { min-height: 50px; padding: 0 18px 0 14px; } /* same height as the pill above */
.yard__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none; }
.yard__field { position: static; flex: 1 0 auto; min-height: calc(var(--coco-h) + var(--ground) + 10px); }
.yard__coco { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; will-change: transform; }
.yard__ball { z-index: 4; }
.yard__bar { position: absolute; z-index: 2; top: 153px; right: max(var(--space-gutter), calc((100% - 1280px) / 2));
  display: flex; align-items: center; gap: 14px; cursor: auto; }
.yard__hud { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-secondary); }
.yard__hud b { color: var(--ink); font-weight: 500; }
.yard__hint { color: var(--blue); transition: opacity .3s ease; }
.yard__hint-touch { display: none; }
@media (hover: none) { .yard__hint-hover { display: none; } .yard__hint-touch { display: inline; } }
[data-coco-yard].is-played .yard__hint { opacity: 0; }
.yard__throw { padding: 8px 12px; border: 1px solid var(--ink); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); cursor: pointer;
  font: 500 10px/14px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; scale: 1; transition: background-color .2s ease, color .2s ease, scale var(--dur-bouncy) var(--spring-bouncy); }
.yard__throw:hover { background: var(--ink); color: var(--surface); }
.yard__throw:active { scale: .94; }
.yard__pop { position: absolute; z-index: 5; left: 0; top: 0; translate: -50% 0; font: 500 18px/1 var(--font-mono); letter-spacing: .02em; color: var(--blue); white-space: nowrap; opacity: 0; pointer-events: none; }
.yard__pop.is-on { animation: yard-pop 1.1s steps(6) forwards; }
@keyframes yard-pop { 0% { opacity: 1; transform: translateY(8px) scale(.7); } 30% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .yard__pop.is-on { animation: none; opacity: 1; } }
/* the stats: dark cards floating at different heights (Coco's platforms) */
.yard-cards { list-style: none; margin: 0; padding: 150px 0 0; display: grid; align-content: start; justify-items: start; row-gap: 64px; cursor: auto; }
.yard-card { display: grid; gap: 4px; width: min(100%, 236px); padding: 16px 18px; border-radius: var(--radius-lg); background: var(--overlay); color: var(--on-overlay); box-shadow: inset 0 0 0 1px var(--overlay-line); }
.yard-card:nth-child(1) { margin-left: 44%; }
.yard-card:nth-child(2) { margin-left: 4%; }
.yard-card:nth-child(3) { margin-left: 36%; }
.yard-card b { font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.yard-card > span { color: var(--on-overlay-secondary); font-size: 14px; line-height: 20px; }
/* stacked: copy, then the stats in a row, then open yard with the bar on top */
@media (max-width: 1179px) {
  .ksc-hero--yard .ksc-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .yard-cards { padding-top: 34px; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; justify-items: stretch; }
  .yard-card, .yard-card:nth-child(n) { width: auto; margin-left: 0; }
  .yard__field { position: relative; min-height: 260px; }
  .yard__bar { top: 16px; left: var(--space-gutter); right: var(--space-gutter); justify-content: space-between; flex-wrap: wrap; }
  .yard__hint { order: 3; flex-basis: 100%; }
}
@media (max-width: 760px) {
  .ksc-hero--yard { --ground: 48px; --coco-h: 73px; min-height: 0; }
  .ksc-hero--yard .ksc-hero__copy { padding-top: 24px; }
  .yard__field { min-height: 230px; }
  .yard-cards { padding-top: 26px; column-gap: 8px; }
  .yard-card { padding: 10px 10px 12px; border-radius: var(--radius-md); }
  .yard-card b { font-size: 20px; line-height: 26px; }
  .yard-card > span { font-size: 11px; line-height: 14px; }
}

/* ---------- Inner page heroes: one dot-matrix animation each (site.js §13) ---------- */
.page-hero { isolation: isolate; --hero-faint: var(--muted); --hero-accent: var(--blue); --hero-ink: var(--ink); }
.page-hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / .3) 34%, #000 62%); mask-image: linear-gradient(90deg, rgb(0 0 0 / .3) 34%, #000 62%); }
.page-hero[data-hero="terrain"] .page-hero__canvas { -webkit-mask-image: none; mask-image: none; }
.page-hero[data-hero]:not([data-hero=""]) .ksc-h-display { max-width: 780px; }
.page-hero--dark { background: var(--overlay); color: var(--on-overlay); --hero-faint: var(--overlay-line); --hero-accent: var(--blue-on-overlay); --hero-ink: var(--on-overlay); }
.page-hero--dark :is(.ksc-body-lg, .page-hero__eyebrow) { color: var(--on-overlay-secondary); }
.page-hero--dark .ksc-em { color: var(--blue-on-overlay); }
.page-hero--dark .ksc-btn--arrow { background: var(--on-overlay); color: var(--overlay); }
.page-hero--dark .ksc-btn--tertiary { color: var(--on-overlay-secondary); }
.page-hero--dark .ksc-btn--tertiary:hover { color: var(--on-overlay); }
.page-hero--dark ::selection { background: var(--blue); color: var(--on-blue); }
.page-hero[data-hero="terrain"] { padding-bottom: 300px; }
.page-hero[data-hero="life"], .page-hero[data-hero="signal"] { cursor: crosshair; }
.page-hero[data-hero] .wrap { cursor: auto; }
/* DA Suite: the dithered globe, turned to Madhya Pradesh, half off the right edge */
.page-hero__globe { position: absolute; z-index: -1; top: 50%; right: -15%; width: min(58vw, 820px); aspect-ratio: 1; translate: 0 -46%; touch-action: pan-y; cursor: grab; }
.page-hero__globe:active { cursor: grabbing; }
@media (max-width: 900px) {
  .page-hero__canvas { -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / .25) 40%, #000 72%); mask-image: linear-gradient(180deg, rgb(0 0 0 / .25) 40%, #000 72%); }
  .page-hero[data-hero]:not([data-hero=""]) { padding-bottom: 300px; }
  .page-hero[data-hero="globe"] { padding-bottom: 0; display: flex; flex-direction: column; }
  .page-hero[data-hero="globe"] .wrap { width: 100%; }
  .page-hero[data-hero="globe"] .page-hero__globe { order: 2; }
  .page-hero__globe { position: relative; top: auto; right: auto; translate: none; width: calc(100% + 2 * var(--space-gutter)); max-width: 640px; margin: 18px auto -28%; }
}

/* nav: the theme toggle sits beside Menu */
.ksc-nav__end { display: flex; align-items: center; gap: 6px; }

/* Careers: five tracks; the resume picker; Coco approves */
.features--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1180px) { .features--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .features--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features--5 { grid-template-columns: 1fr; } }
.intern-form .ksc-select { padding-top: 16px; padding-bottom: 16px; }
.file-pick { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px; border: 1px dashed var(--border-control); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.file-pick:hover, .file-pick:focus-within { border-color: var(--blue); }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-pick:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.file-pick__btn { pointer-events: none; }
.file-pick__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 20px; color: var(--ink-secondary); }
.file-pick.is-set .file-pick__name { color: var(--ink); }
.file-field.is-error .file-pick { border-color: var(--error); border-style: solid; animation: ksc-shake .5s var(--spring-bouncy); }
.file-field.is-error .ksc-field__hint { color: var(--error); }
.intern-coco { display: block; --pug-size: 96px; }
.contact-lines b { color: var(--on-overlay); font-weight: 500; }

/* ---------- AMOLED dark theme: website fixes ---------- */
:root[data-theme="dark"] .site-header .nav-login { box-shadow: inset 0 0 0 1px var(--border); }
:root[data-theme="dark"] .site-header .nav-login:hover { background: var(--ink); color: var(--canvas); }
:root[data-theme="dark"] .ai-badge { background: var(--surface); }
:root[data-theme="dark"] .contact-card { box-shadow: inset 0 0 0 1px var(--border); }
:root[data-theme="dark"] :is(.flagship, .arc-band, .ksc-footer, .faq) { box-shadow: inset 0 1px 0 var(--overlay-line); }

/* footer: Google rating badge (under the partner badge) and social icons */
.ksc-footer .gbp-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: var(--radius-md); background: var(--on-overlay); color: var(--overlay);
  translate: 0 0; transition: translate var(--dur-snappy) var(--spring-snappy); }
.ksc-footer a.gbp-badge:hover { translate: 0 -3px; }
.gbp-badge__score { font: 600 20px/1 var(--font-sans); letter-spacing: -0.02em; }
.gbp-badge__stars { --fill: calc(var(--r) / 5 * 100%); font-size: 16px; line-height: 1; letter-spacing: 1px;
  background: linear-gradient(90deg, #fbbc04 var(--fill), color-mix(in srgb, var(--overlay) 25%, transparent) var(--fill)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gbp-badge__chip { padding: 7px 9px; border-radius: var(--radius-sm); background: var(--overlay); color: var(--on-overlay); font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.ksc-footer .footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.ksc-footer .footer-social__link { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--overlay-line); border-radius: var(--radius-sm); color: var(--on-overlay); background: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.ksc-footer a.footer-social__link:hover { background: var(--on-overlay); color: var(--overlay); border-color: var(--on-overlay); }
.footer-social__link .ksc-icon { width: 20px; height: 20px; }
.footer-social__link[aria-disabled] { opacity: .7; }

/* home FAQ: black dot-matrix section, numbered rows (native <details>), pixel plus → minus */
.faq { position: relative; overflow: hidden; isolation: isolate; background: var(--overlay); color: var(--on-overlay); box-shadow: inset 0 -1px 0 var(--overlay-line); }
.faq__dither { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .4; }
.faq .ksc-sechead { grid-template-columns: 1fr; }
.faq__dither canvas { display: block; width: 100%; height: 100%; }
.faq .ksc-em { color: var(--blue-on-overlay); }
.faq .ksc-eyebrow, .faq .ksc-sechead .ksc-body-lg { color: var(--on-overlay-secondary); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-lg); align-items: start; }
.faq__side { position: sticky; top: 120px; display: grid; gap: var(--space-md); }
.faq__ask { display: grid; gap: 18px; justify-items: start; padding: 22px; border: 1px solid var(--overlay-line); border-radius: var(--radius-lg); background: rgb(255 255 255 / .04); backdrop-filter: blur(8px); }
.faq__ask p { margin: 0; color: var(--on-overlay-secondary); font-size: 18px; line-height: 26px; }
.faq__ask b { color: var(--on-overlay); font-weight: 500; }
.faq .faq__ask .ksc-btn--arrow { background: var(--on-overlay); color: var(--overlay); }
.faq__count { margin: 0; }
.faq__list { display: grid; gap: 8px; }
.faq__item { position: relative; overflow: hidden; border: 1px solid var(--overlay-line); border-radius: var(--radius-lg); background: rgb(0 0 0 / .55); backdrop-filter: blur(6px);
  translate: 0 0; transition: opacity var(--dur-smooth) var(--spring-smooth), translate var(--dur-snappy) var(--spring-snappy), background-color .3s ease, border-color .3s ease; }
.faq__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); scale: 1 0; transform-origin: top; transition: scale var(--dur-smooth) var(--spring-smooth); }
.faq__item:hover { translate: 0 -2px; border-color: rgb(255 255 255 / .22); }
.faq__item[open] { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .18); }
.faq__item[open]::before { scale: 1 1; }
.faq__item summary { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px; gap: 14px; align-items: center; min-height: 44px; padding: 22px 24px; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 2px solid var(--blue-on-overlay); outline-offset: -4px; border-radius: var(--radius-lg); }
.faq__num { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--on-overlay-secondary); transition: color .25s ease; }
.faq__q { margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; transition: color .25s ease; }
.faq__item:hover .faq__q, .faq__item[open] .faq__num { color: var(--blue-on-overlay); }
.faq__item .ksc-pixels { width: 48px; height: 48px; grid-template-columns: repeat(6, 8px); z-index: -1; opacity: .9; }
.faq__item .ksc-pixels i { width: 8px; height: 8px; }
.faq__item:hover .ksc-pixels i { scale: 1; }
/* the pixel plus: five 6px dots in a cross; open folds the vertical ones into the bar */
.faq__mark { position: relative; width: 18px; height: 18px; justify-self: end; }
.faq__mark i { position: absolute; width: 6px; height: 6px; background: var(--on-overlay); transition: translate var(--dur-bouncy) var(--spring-bouncy), background-color .25s ease; transition-delay: calc(var(--d) * 30ms); }
.faq__mark i:nth-child(1) { left: 0; top: 6px; } .faq__mark i:nth-child(2) { left: 6px; top: 6px; } .faq__mark i:nth-child(3) { left: 12px; top: 6px; }
.faq__mark i:nth-child(4) { left: 6px; top: 0; } .faq__mark i:nth-child(5) { left: 6px; top: 12px; }
.faq__item[open] .faq__mark i:nth-child(4) { translate: -6px 6px; }
.faq__item[open] .faq__mark i:nth-child(5) { translate: 6px -6px; }
.faq__item:hover .faq__mark i, .faq__item[open] .faq__mark i { background: var(--blue-on-overlay); }
.faq__a { margin: 0; padding: 0 24px 26px 72px; max-width: calc(62ch + 96px); color: var(--on-overlay-secondary); font-size: 17px; line-height: 27px; }
.faq__item[open] .faq__a { animation: faq-in .45s var(--spring-smooth, ease) both; }
@keyframes faq-in { from { opacity: 0; translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .faq__item[open] .faq__a { animation: none; } }
@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__side { position: static; }
}
@media (max-width: 480px) {
  .faq__dither { opacity: .35; }
  .faq__item summary { grid-template-columns: 24px minmax(0, 1fr) 18px; gap: 10px; padding: 18px 16px; }
  .faq__a { padding: 0 16px 20px 50px; font-size: 16px; line-height: 25px; }
}

/* phones: the hero pill and the AI badge wrap cleanly (chip and product names never split) */
.hero-badge .ksc-chip, .ai-badge b { white-space: nowrap; }
@media (max-width: 480px) {
  .hero-badge { font-size: 14px; gap: 10px; }
  .ai-badge, .ksc-hero--yard .ai-badge { flex-wrap: wrap; row-gap: 4px; padding: 12px 16px 12px 12px; border-radius: var(--radius-lg); } /* the hero's own rule had no top/bottom padding: the wrapped text touched the edges */
  .ai-badge__label { flex: 1 1 calc(100% - 22px); }
}

/* home (04) About: photo left (sticky), the whole story right, so neither column leaves a blank block */
.about-home { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-lg); align-items: start; }
.about-home__photo { margin: 0; max-width: 460px; position: sticky; top: 120px; }
.about-home__story { display: grid; gap: var(--space-md); }
.about-home__prose p:last-child { margin-bottom: 0; }
.milestones { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.milestones li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--border); }
.milestones b { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/20px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.milestones b::before { content: ""; width: 8px; height: 8px; background: var(--blue); }
.milestones span { font-size: 16px; line-height: 24px; color: var(--ink-secondary); }
@media (max-width: 760px) {
  .about-home { grid-template-columns: 1fr; gap: var(--space-md); }
  .about-home__story { display: contents; }
  .about-home .ksc-sechead { order: 1; }
  .about-home__photo { order: 2; position: static; max-width: none; }
  .about-home__prose { order: 3; } .milestones { order: 4; } .about-home__cta { order: 5; }
  .milestones li { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
}
/* the longer partner chip wraps on small phones instead of overflowing */
@media (max-width: 480px) { .partner-badge__chip { white-space: normal; text-align: center; line-height: 14px; } }

/* ---------- E-Attendance showcase (home) and the pop-up video player (site.js §16) ---------- */
.showcase__stage { position: relative; transform-origin: 50% 0; will-change: transform; }
.showcase__open { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius-xl); overflow: hidden;
  background: #f2f2f2; cursor: pointer; isolation: isolate; box-shadow: 0 0 0 1px var(--border), 0 30px 80px -40px rgb(0 4 246 / .35); -webkit-tap-highlight-color: transparent; }
.showcase__open:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.showcase__poster, .showcase__teaser { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: scale var(--dur-gentle) var(--spring-smooth); }
.showcase__teaser { opacity: 0; transition: opacity .6s ease, scale var(--dur-gentle) var(--spring-smooth); }
.showcase.is-playing .showcase__teaser { opacity: 1; }
.showcase__open:hover :is(.showcase__poster, .showcase__teaser) { scale: 1.02; }
.showcase__open::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 55% at 50% 50%, rgb(0 0 0 / .12), transparent 70%); opacity: 0; transition: opacity .4s ease; }
.showcase__open:hover::after { opacity: 1; }
.showcase__play { position: absolute; left: 50%; top: 50%; z-index: 3; display: inline-flex; align-items: center; gap: 14px; padding: 8px 22px 8px 8px; border-radius: var(--radius-md);
  background: var(--blue); color: var(--on-blue); box-shadow: 0 18px 44px rgb(0 4 246 / .35); pointer-events: none;
  transform: translate(calc(-50% + var(--px, 0px)), calc(-50% + var(--py, 0px))); scale: 1; transition: scale var(--dur-bouncy) var(--spring-bouncy); }
.showcase__open:hover .showcase__play { scale: 1.06; }
.showcase__open:active .showcase__play { scale: .95; transition: scale var(--dur-interactive) var(--spring-interactive); }
.showcase__play-btn { position: relative; width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--radius-sm); background: rgb(255 255 255 / .16); }
.showcase__play-btn svg { width: 22px; height: 22px; margin-left: 2px; }
.showcase__play-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px rgb(255 255 255 / .5); animation: showcase-ring 2.2s var(--spring-smooth) infinite; }
@keyframes showcase-ring { 0% { scale: 1; opacity: .9; } 70%, 100% { scale: 1.5; opacity: 0; } }
.showcase__play-label { display: grid; gap: 2px; text-align: left; white-space: nowrap; }
.showcase__play-label b { font: 500 18px/24px var(--font-sans); letter-spacing: -0.01em; }
.showcase__play-label span { font: 500 11px/14px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.showcase__foot { margin-top: var(--space-md); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 34px; }
.showcase__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.showcase__steps li { display: flex; gap: 10px; align-items: baseline; font-size: 16px; line-height: 24px; color: var(--ink); }
.showcase__steps li span { font: 500 12px/16px var(--font-mono); letter-spacing: .08em; color: var(--blue); }
@media (max-width: 760px) {
  .showcase__open { border-radius: var(--radius-lg); }
  .showcase__play { gap: 10px; padding: 6px 16px 6px 6px; }
  .showcase__play-btn { width: 44px; height: 44px; }
  .showcase__play-label b { font-size: 15px; line-height: 20px; }
}
@media (max-width: 480px) { .showcase__play-label { display: none; } .showcase__play { padding: 6px; } }
@media (prefers-reduced-motion: reduce) { .showcase__play-btn::after { animation: none; } }

html.vplayer-open { overflow: hidden; scrollbar-gutter: stable; background: #000; } /* the gutter matches the backdrop */
.vplayer { position: fixed; inset: 0; z-index: 1200; color: #fff; }
.vplayer[hidden] { display: none; }
.vplayer__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vplayer__backdrop.is-solid { background: #000; transition: opacity .3s ease; }
.vplayer__frame { position: fixed; left: 0; top: 0; overflow: hidden; background: #000; transform-origin: 0 0; will-change: transform;
  box-shadow: 0 40px 140px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .08); }
.vplayer__frame:focus { outline: none; }
.vplayer__frame:fullscreen { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; transform: none !important; border-radius: 0 !important; }
.vplayer__video, .vplayer__poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.vplayer__poster { object-fit: cover; transition: opacity .5s ease; }
.vplayer.is-started .vplayer__poster { opacity: 0; }
.vplayer__wait { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--blue-on-overlay); opacity: 0; transition: opacity .2s ease; }
.vplayer.is-waiting .vplayer__wait { opacity: 1; animation: vplayer-wait .9s steps(2, jump-none) infinite alternate; }
@keyframes vplayer-wait { to { scale: .4; } }
.vplayer__ui { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 48px 18px 14px;
  background: linear-gradient(transparent, rgb(0 0 0 / .7)); opacity: 0; translate: 0 12px; transition: opacity .3s ease, translate var(--dur-snappy) var(--spring-snappy); }
.vplayer.is-open .vplayer__ui { opacity: 1; translate: 0 0; transition-delay: .18s; }
.vplayer.is-open.is-idle:not(.is-paused) .vplayer__ui { opacity: 0; translate: 0 12px; transition-delay: 0s; }
.vplayer.is-idle:not(.is-paused) .vplayer__frame { cursor: none; }
.vplayer__btn { flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--radius-sm); background: rgb(255 255 255 / .1); color: #fff; cursor: pointer;
  transition: background-color .2s ease, scale var(--dur-bouncy) var(--spring-bouncy); }
.vplayer__btn:hover { background: rgb(255 255 255 / .2); }
.vplayer__btn:active { scale: .9; transition: scale var(--dur-interactive) var(--spring-interactive); }
.vplayer__btn:focus-visible, .vplayer__close:focus-visible, .vplayer__track:focus-visible { outline: 2px solid var(--blue-on-overlay); outline-offset: 2px; }
.vplayer__btn svg { width: 20px; height: 20px; }
.vplayer__btn .i-pause, .vplayer.is-paused .vplayer__btn .i-play { display: block; }
.vplayer__btn .i-play, .vplayer.is-paused .vplayer__btn .i-pause { display: none; }
.vplayer__btn .i-mute, .vplayer.is-muted .vplayer__btn .i-sound { display: none; }
.vplayer.is-muted .vplayer__btn .i-mute { display: block; }
.vplayer__time { flex: none; min-width: 34px; font: 500 12px/1 var(--font-mono); letter-spacing: .04em; font-variant-numeric: tabular-nums; color: rgb(255 255 255 / .85); }
.vplayer__track { position: relative; flex: 1; height: 32px; cursor: pointer; touch-action: none; border-radius: 2px; }
.vplayer__track::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 2px; background: rgb(255 255 255 / .22); }
.vplayer__buffer, .vplayer__fill { position: absolute; left: 0; right: 0; top: 15px; height: 2px; transform-origin: 0 50%; transform: scaleX(0); }
.vplayer__buffer { background: rgb(255 255 255 / .35); }
.vplayer__fill { background: var(--blue-on-overlay); }
.vplayer__knob { position: absolute; left: 0; top: 10px; width: 12px; height: 12px; margin-left: -6px; background: #fff; border-radius: 2px; scale: 0; transition: scale .2s ease; }
.vplayer__track:hover .vplayer__knob, .vplayer__track.is-drag .vplayer__knob, .vplayer__track:focus-visible .vplayer__knob { scale: 1; }
.vplayer__close { position: fixed; top: 18px; right: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px 0 16px; border: 0; border-radius: var(--radius-md);
  background: rgb(255 255 255 / .1); color: #fff; font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(8px);
  opacity: 0; scale: .85; transition: opacity .25s ease, scale var(--dur-bouncy) var(--spring-bouncy), background-color .2s ease; }
.vplayer.is-open .vplayer__close { opacity: 1; scale: 1; transition-delay: .12s, .12s, 0s; }
.vplayer__close:hover { background: rgb(255 255 255 / .2); }
.vplayer__close .ksc-icon { width: 20px; height: 20px; }
.vplayer__hint { position: fixed; left: 50%; bottom: 18px; margin: 0; translate: -50% 0; white-space: nowrap; color: rgb(255 255 255 / .45); opacity: 0; transition: opacity .4s ease .35s; }
.vplayer.is-open .vplayer__hint { opacity: 1; }
.vplayer__end { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 24px; text-align: center;
  background: rgb(0 0 0 / .6); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.vplayer.is-ended .vplayer__end { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.vplayer__end h2 { margin: 0; font-size: clamp(26px, 3.4vw, 43px); line-height: 1.15; font-weight: 500; letter-spacing: -0.0344em; }
.vplayer__end h2 .ksc-em { color: var(--blue-on-overlay); }
.vplayer__end-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.vplayer__replay { --h: 64px; display: inline-flex; align-items: center; gap: 10px; height: var(--h); padding: 0 24px; border: 1px solid rgb(255 255 255 / .35); border-radius: var(--radius-md);
  background: transparent; color: #fff; font: 400 16px/24px var(--font-sans); cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.vplayer__replay:hover { background: rgb(255 255 255 / .1); border-color: #fff; }
.vplayer__replay .ksc-icon { width: 20px; height: 20px; }
.vplayer__end .ksc-btn--arrow { background: #fff; color: #000; }
@media (max-width: 600px) {
  .vplayer__ui { gap: 8px; padding: 36px 10px 8px; }
  .vplayer__btn { width: 36px; height: 36px; }
  .vplayer__time:first-of-type { display: none; }
  .vplayer__close span { display: none; }
  .vplayer__close { padding: 0 12px; }
  .vplayer__end h2 { font-size: 22px; }
  .vplayer__end { gap: 14px; }
  .vplayer__end .ksc-btn, .vplayer__replay { --h: 48px; }
}
@media (hover: none), (max-height: 560px) { .vplayer__hint { display: none; } }

/* ---------- scroll polish: dot-matrix dissolve + progress rail (below the hero only) ---------- */
@property --kr { syntax: "<length>"; inherits: false; initial-value: 8px; }
@keyframes ksc-dots { from { --kr: 0px; } to { --kr: 7.6px; } }
@media (prefers-reduced-motion: no-preference) {
  :is(.ksc-service, .ksc-card, .track-tile, .track-card, .ksc-stat, .faq__item, .da-teaser__panel, .founder, .milestones, .showcase__foot, .contact-card, .service-detail)[data-ksc-reveal].is-in:not(.is-done) {
    -webkit-mask-image: radial-gradient(circle, #000 var(--kr), transparent calc(var(--kr) + .7px));
    mask-image: radial-gradient(circle, #000 var(--kr), transparent calc(var(--kr) + .7px));
    -webkit-mask-size: 10px 10px; mask-size: 10px 10px;
    animation: ksc-dots 1.05s cubic-bezier(.3, .7, .2, 1) calc(var(--i, 0) * 70ms) backwards;
  }
}
.scroll-dots { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 1500; pointer-events: none;
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 8px); mask-image: repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 8px); }
.scroll-dots i { display: block; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; }
@media (prefers-reduced-motion: reduce) { .scroll-dots { display: none; } }

/* ---------- partners: dot-matrix logo wall ---------- */
.partners__wall { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.partners__group { display: grid; gap: 22px; align-content: start; padding: 22px 22px 26px; border-top: 1px solid var(--ink); }
.partners__logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.partner { margin: 0; display: grid; gap: 14px; justify-items: center; }
.partner__stage { position: relative; width: min(100%, 220px); aspect-ratio: 1; touch-action: manipulation; }
.partner__stage img, .partner__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.partner__stage img { object-fit: contain; filter: none; }
.partner.is-dots .partner__stage img { opacity: 0; pointer-events: none; }
html[data-theme="dark"] .partner__stage img { filter: invert(1); }
@media (max-width: 820px) { .partners__wall { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .partners__group { padding: 18px 0 22px; } .partner__stage { width: min(100%, 180px); } }

/* authority logos: the supplied marks, recoloured to KSC ink and turning blue with the abbreviation on hover */
.track-tile--logo { padding-top: 76px; }
.track-tile__logo { position: absolute; left: 24px; top: 22px; width: 44px; height: 44px; background: var(--ink-secondary);
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
  transition: background-color .25s ease, scale var(--dur-snappy) var(--spring-snappy); transform-origin: 0 0; }
.track-tile:hover .track-tile__logo { background: var(--blue); scale: 1.12; }
@media (max-width: 760px) { .track-tile--logo { padding-top: 62px; } .track-tile__logo { left: 16px; top: 16px; width: 34px; height: 34px; } }

/* ---------- Footer = Coco's night yard (site.js §12, data-yard-mode="lead") ----------
   The home hero's yard engine on black: a faint dot field, the cursor glow, a dithered blue
   ground along the bottom. The copy sits on the field like the hero copy; the open ground
   under it is Coco's. A click calls him over; a drag draws a dotted path he walks. */
.ksc-footer { padding: 0 0 24px; }
.ksc-footer__inner { max-width: calc(1280px + 2 * var(--space-gutter)); padding: var(--space-xl) var(--space-gutter) 0; }
.ksc-footer__yard { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: min(640px, 85svh);
  --ground: 56px; --coco-h: 100px;
  --canvas: #000; --ink: #fff; --muted: #262626; --blue: #4d50ff; --ink-secondary: #a3a3a3; --surface: #0a0a0a; --border: #1f1f1f;
  background: var(--canvas); color: var(--ink); touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
.ksc-footer__stage { position: relative; width: 100%; max-width: calc(1280px + 2 * var(--space-gutter)); margin: 0 auto; padding: var(--space-section) var(--space-gutter) 0; pointer-events: none; }
.ksc-footer__stage .ksc-footer__cta, .ksc-footer__stage .ksc-footer__cta-side { pointer-events: none; } /* the gaps belong to the yard */
.ksc-footer__stage .ksc-footer__cta h2, .ksc-footer__stage .ksc-footer__cta-side > * { pointer-events: auto; }
.ksc-footer__yard .yard__field { min-height: calc(var(--coco-h) + var(--ground) + 60px); cursor: crosshair; }
.ksc-footer__yard .yard__bar { top: auto; bottom: calc(var(--ground) + 12px); left: max(var(--space-gutter), calc((100% - 1280px) / 2)); right: auto; } /* bottom-left, under the headline; the ground to the right is his */
.ksc-footer__yard.is-drawing, .ksc-footer__yard.is-drawing * { user-select: none; -webkit-user-select: none; }
@media (max-width: 760px) { .ksc-footer__yard { --ground: 48px; --coco-h: 73px; min-height: 0; } .ksc-footer__yard .yard__field { min-height: 230px; } }
@media (max-width: 480px) { .ksc-footer__yard .yard__hud { display: none; } }
@media (prefers-reduced-motion: reduce) { .ksc-footer__yard .yard__bar { display: none; } }

/* ---------- "Coco sees you": the yard's camera mode (site/camera.js) ---------- */
.yard__cam.is-on { border-color: var(--blue); color: var(--blue); }
.yard__cam.is-on::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--blue); vertical-align: 1px; animation: yard-rec 1s steps(2, jump-none) infinite; }
@keyframes yard-rec { to { opacity: .25; } }
.yard__cam:disabled { opacity: .6; cursor: progress; }
.yard__consent { display: inline-flex; align-items: center; gap: 10px; max-width: 460px; color: var(--ink-secondary); }
.yard__consent[hidden] { display: none; }
.yard__throw--quiet { border-color: var(--border); color: var(--ink-secondary); }
[data-coco-yard] .yard__hint.is-status { opacity: 1; color: var(--ink-secondary); }
.yard__hint.is-status .yard__hint-hover, .yard__hint.is-status .yard__hint-touch { display: none; }
.yard__cam-video { position: fixed; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; } /* in the DOM (iOS decodes only in-document video), invisible */
@media (max-width: 1179px) { .yard__consent { order: 4; flex-basis: 100%; } }
@media (max-width: 760px) { .yard__consent { font-size: 10px; line-height: 14px; gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .yard__cam, .yard__consent { display: none; } }

/* camera takeover: the copy and the stat cards step aside, the whole hero is the game */
.ksc-hero--yard .ksc-hero__copy, .ksc-hero--yard .yard-cards { transition: opacity .4s ease; }
.ksc-hero--yard.is-camera :is(.ksc-hero__copy, .yard-cards) { opacity: 0; pointer-events: none; }
.ksc-hero--yard.is-camera { min-height: 100svh; }
.ksc-hero--yard.is-camera .yard__hint:not(.is-status) { opacity: 0; } /* the tutorial does the explaining */
@media (max-width: 760px) { /* phones: the faded copy would push the ground below the fold, so it collapses and the field clears the nav */
  .ksc-hero--yard.is-camera [data-yard-throw] { display: none; }
  .ksc-hero--yard.is-camera .ksc-hero__inner { display: none; }
  .ksc-hero--yard.is-camera .yard__field { margin-top: 96px; }
}
/* the tutorial: Coco's speech bubble (the roaming Coco's bubble look), pinned above his head by camera.js */
.yard__tutor { position: absolute; z-index: 5; left: 50%; top: 0; translate: -50% calc(-100% - 16px); width: max-content; max-width: min(360px, 86vw);
  display: grid; gap: 6px; padding: 14px 16px 12px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-float); text-align: left; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.yard__tutor::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; translate: -50% 0; rotate: 45deg;
  background: var(--surface); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.yard__tutor.is-on { opacity: 1; }
.yard__tutor[hidden] { display: none; }
.yard__tutor { min-width: 240px; }
.yard__tutor-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.yard__tutor-step { color: var(--blue); font-variant-numeric: tabular-nums; }
.yard__tutor-dots { display: flex; gap: 4px; }
.yard__tutor-dots i { width: 6px; height: 6px; background: var(--muted); transition: background-color .2s ease; }
.yard__tutor-dots i.is-on { background: var(--blue); }
.yard__tutor-line { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; transition: opacity .16s ease, translate .16s ease; }
.yard__tutor-line.is-swap { opacity: 0; translate: 0 4px; }
.yard__tutor button { pointer-events: auto; justify-self: start; }
.yard__help { min-width: 32px; padding: 8px 0; }
@media (max-width: 760px) { .yard__tutor { padding: 12px 14px 10px; } .yard__tutor-line { font-size: 17px; } }

/* ---------- "Hands": scroll the site with a palm swipe (site/camera.js, the shared camera service) ---------- */
.hands { position: fixed; left: var(--space-gutter); bottom: 20px; z-index: 95; display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-secondary); box-shadow: var(--shadow-float); }
.hands[hidden] { display: none; }
.hands__glyph { width: 28px; height: 28px; image-rendering: pixelated; flex: none; }
.hands__text { white-space: nowrap; }
.hands.is-on .hands__text { color: var(--ink); }
.hands__btn { padding: 8px 12px; border: 1px solid var(--ink); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); cursor: pointer;
  font: 500 10px/14px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; transition: background-color .2s ease, color .2s ease; }
.hands__btn:hover { background: var(--ink); color: var(--surface); }
.hands__btn:disabled { opacity: .6; cursor: progress; }
.hands__btn--quiet { border-color: var(--border); color: var(--ink-secondary); }
.hands__consent { position: absolute; left: 0; bottom: calc(100% + 10px); width: max-content; max-width: min(360px, 86vw); display: grid; gap: 10px; padding: 14px 16px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); font-size: 14px; line-height: 20px; letter-spacing: 0; text-transform: none; }
.hands__consent[hidden] { display: none; }
.hands__consent-row { display: flex; gap: 8px; }
.hands__overlay { position: fixed; inset: 0; z-index: 94; pointer-events: none; }
@media (max-width: 760px) { .hands { bottom: 12px; padding: 4px 4px 4px 8px; } }
@media (max-width: 480px) { .hands__text { display: none; } }
@media (prefers-reduced-motion: reduce) { .hands, .hands__overlay { display: none; } }

/* ---------- the wipe game (site/wipe.js): blue pixels over the screen, wiped away by hand through the camera ---------- */
.hands__btn--play { display: inline-flex; align-items: center; gap: 6px; border-color: var(--blue); background: var(--blue); color: var(--on-blue); }
.hands__btn--play:hover { border-color: var(--blue-pressed); background: var(--blue-pressed); color: var(--on-blue); }
.hands__play-glyph { width: 7px; height: 7px; flex: none; }
html.wipe-open { overflow: hidden; overscroll-behavior: none; }
html.wipe-open .scroll-dots, html.wipe-open .hands { visibility: hidden; }
html.wipe-won .coco-layer.is-cheer { z-index: 905; } /* Coco hops onto the result card, above the game's layer, only while he cheers */
.wipe { position: fixed; inset: 0; z-index: 900; outline: none; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.wipe__cover, .wipe__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wipe__hud { position: absolute; z-index: 2; top: 16px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 12px; white-space: nowrap;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-secondary); box-shadow: var(--shadow-float); }
.wipe__hud[hidden] { display: none; }
.wipe__rec { width: 6px; height: 6px; flex: none; background: var(--blue); animation: yard-rec 1s steps(2, jump-none) infinite; }
.wipe__hud:not(.is-live) .wipe__rec { visibility: hidden; animation: none; } /* only while the camera is on for the game */
.wipe__time { min-width: 6ch; color: var(--ink); font-variant-numeric: tabular-nums; }
.wipe__bar { display: flex; gap: 3px; }
.wipe__bar i { width: 6px; height: 6px; background: var(--muted); }
.wipe__bar i.is-on { background: var(--blue); }
.wipe__pct { display: inline-block; min-width: 4ch; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.wipe__pct.is-pop { animation: wipe-pop .6s steps(6) both; }
@keyframes wipe-pop { 0% { color: var(--blue); scale: 1.6; } 100% { color: var(--ink); scale: 1; } }
.wipe__exit { display: inline-flex; align-items: center; justify-content: center; }
.wipe__exit-x { display: none; }
.wipe__toast { position: absolute; z-index: 4; top: 70px; left: 50%; translate: -50% 0; width: max-content; max-width: calc(100vw - 24px); margin: 0; padding: 8px 12px; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); }
.wipe__toast[hidden] { display: none; }
.wipe__card { position: absolute; z-index: 3; inset: 72px 12px 12px; margin: auto; width: min(420px, calc(100vw - 24px)); height: fit-content; /* centred in the space below the HUD, so Exit is never covered */ display: grid; gap: 10px; padding: 22px 22px 20px;
  border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); text-align: left; }
.wipe__card[hidden] { display: none; }
.wipe__card.is-in { animation: ksc-pop var(--dur-bouncy) var(--spring-bouncy); }
.wipe__eyebrow { margin: 0; color: var(--blue); }
.wipe__title { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; transition: opacity .16s ease, translate .16s ease; }
.wipe__title.is-swap { opacity: 0; translate: 0 4px; }
.wipe__body { margin: 0; color: var(--ink-secondary); font-size: 15px; line-height: 22px; }
.wipe__hint { width: 120px; height: 35px; margin: 2px 0; image-rendering: pixelated; }
.wipe__note { margin: 0; }
.wipe__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.wipe__card [hidden] { display: none; }
.wipe__coco { position: absolute; right: 20px; bottom: calc(100% - 6px); --pug-size: 64px; pointer-events: none; }
@media (hover: none) { .wipe__note--esc { display: none; } }
@media (pointer: coarse) { .wipe__exit { min-width: 44px; min-height: 44px; } }
@media (max-width: 480px) {
  .wipe__card { inset: 70px 12px 12px; }
  .wipe__hud { top: 8px; left: 8px; right: 8px; translate: none; justify-content: space-between; gap: 8px; padding: 4px 4px 4px 10px; }
  .wipe__bar { gap: 2px; }
  .wipe__bar i { width: 4px; height: 4px; }
  .wipe__bar i:nth-child(even) { display: none; }
  .wipe__exit { width: 44px; height: 44px; padding: 0; }
  .wipe__exit-x { display: inline; font: 400 20px/1 var(--font-sans); }
  .wipe__exit-t { display: none; }
  .wipe__toast { top: 64px; }
  .wipe__title { font-size: 21px; }
  .wipe__coco { --pug-size: 52px; }
}

/* ---------- Internships on the home page: an intern pass on a lanyard you can grab (site/lanyard.js) ---------- */
.interns { overflow: clip; } /* the strap comes in from the section's top edge */
.interns__grid { align-items: center; }
.interns .ksc-sechead { grid-template-columns: 1fr; }
.interns__tracks { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; }
.interns__tracks li { padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--surface); color: var(--ink);
  font: 500 11px/14px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.interns__where { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; }
.interns__where svg { width: 16px; height: 16px; flex: none; color: var(--blue); }
.interns__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }
.interns__stage { position: relative; height: 600px; perspective: 1100px; user-select: none; -webkit-user-select: none; }
.lanyard__strap { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.lanyard__strap path { fill: none; stroke: var(--blue); stroke-width: 24; }
.lanyard__strap text { fill: var(--on-blue); font: 500 9px var(--font-mono); letter-spacing: .26em; dominant-baseline: central; }
.lanyard__badge { position: absolute; left: 0; top: 0; z-index: 2; width: 252px; transform-origin: 50% 0; will-change: transform; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; }
.lanyard__badge.is-held { cursor: grabbing; }
.lanyard__clip { position: relative; z-index: 2; display: block; width: 36px; height: 28px; margin: 0 auto -10px; border-radius: 7px 7px 5px 5px;
  background: linear-gradient(180deg, #eef0f3, #a7adb6 70%, #8c939d); box-shadow: inset 0 1px 0 #fff, 0 2px 3px rgba(0, 0, 0, .28); }
.lanyard__clip::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 14px; height: 6px; translate: -50% 0; border-radius: 3px; background: #6d737c; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .35); }
.lanyard__sleeve { position: relative; padding: 28px 12px 12px; border-radius: 16px; border: 1px solid rgba(0, 4, 246, .16);
  background: linear-gradient(140deg, rgba(255, 255, 255, .78), rgba(226, 230, 255, .5));
  box-shadow: 0 44px 60px -34px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .06), inset 0 1px 0 rgba(255, 255, 255, .9); }
.lanyard__sleeve::before { content: ""; position: absolute; left: 50%; top: 10px; width: 48px; height: 8px; translate: -50% 0; border-radius: 4px; background: var(--canvas); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .28); }
.lanyard__sleeve::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .6) 0 16%, transparent 34% 100%); }
.lanyard__card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px 16px 14px; border-radius: 9px; background: #fff; color: #000; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.lanyard__top { display: flex; justify-content: space-between; align-items: center; color: #666; font: 500 9px/12px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.lanyard__top img { width: auto; height: 18px; }
.lanyard__mid { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; align-items: end; }
.lanyard__photo { width: 80px; height: 96px; border-radius: 4px; background: #f2f2f2; image-rendering: pixelated; }
.lanyard__name { margin: 0; font: 600 25px/1.05 var(--font-sans); letter-spacing: -.035em; color: #000; }
.lanyard__caret { display: inline-block; width: 3px; height: .86em; margin-left: 3px; vertical-align: -.06em; background: #0004f6; animation: lanyard-caret 1.1s steps(2, jump-none) infinite; }
@keyframes lanyard-caret { to { opacity: 0; } }
.lanyard__role { margin: 8px 0 0; color: #0004f6; font: 500 10px/14px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.lanyard__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.lanyard__tags li { padding: 4px 8px; border-radius: 999px; background: #000; color: #fff; font: 500 8px/10px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.lanyard__tags li:nth-child(2), .lanyard__tags li:nth-child(5) { background: #0004f6; }
.lanyard__tags li:nth-child(3) { background: #e8e9ff; color: #0004f6; }
.lanyard__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; white-space: nowrap; padding-top: 10px; border-top: 1px dashed #d9d9d9; color: #666;
  font: 500 8px/10px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.lanyard__code { width: 96px; height: 12px; background: radial-gradient(circle, #000 .95px, transparent 1.15px) 0 0 / 3px 3px;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 9px, transparent 9px 12px, #000 12px 15px, transparent 15px 21px, #000 21px 30px, transparent 30px 33px);
  mask: repeating-linear-gradient(90deg, #000 0 9px, transparent 9px 12px, #000 12px 15px, transparent 15px 21px, #000 21px 30px, transparent 30px 33px); }
.lanyard__hint { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; transition: opacity .4s ease; }
.lanyard__hint-touch { display: none; }
@media (hover: none) { .lanyard__hint-hover { display: none; } .lanyard__hint-touch { display: inline; } }
.interns__stage.is-played .lanyard__hint { opacity: 0; }
@media (max-width: 860px) {
  .interns__stage { height: 420px; }
  .interns__stage::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: -30px; height: 72px; pointer-events: none;
    background: linear-gradient(var(--canvas) 40%, transparent); } /* the strap fades in from the background under the copy */
  .lanyard__badge { width: 216px; }
  .lanyard__role { font-size: 9px; letter-spacing: .06em; }
  .lanyard__code { width: 60px; }
  .lanyard__strap path { stroke-width: 20; }
  .lanyard__name { font-size: 21px; }
  .lanyard__mid { grid-template-columns: 66px minmax(0, 1fr); gap: 12px; }
  .lanyard__photo { width: 66px; height: 79px; }
}
@media (prefers-reduced-motion: reduce) { .lanyard__caret { animation: none; } .lanyard__badge { cursor: auto; touch-action: auto; } .lanyard__hint { display: none; } }
.interns__stage.is-still .lanyard__badge { cursor: auto; touch-action: auto; } /* a still badge never blocks touch scrolling */
:root[data-theme="dark"] .lanyard__sleeve { border-color: rgba(255, 255, 255, .35); background: linear-gradient(140deg, rgba(255, 255, 255, .94), rgba(232, 234, 255, .88)); } /* a clear plastic sleeve still reads light on black */
