/* =========================================================
   LTRP / Le Trap / Low Tier Robotics Prodigy
   Layout language after focusindustries.tech: one sans family, 12-column grid,
   full-bleed media hero, statements ending in a period, hairline lists.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --charcoal: #17191A;    /* page */
  --teal: #3FB6B2;        /* accent: 7.2:1 on charcoal */
  --white: #E4E5E2;       /* text on charcoal: 13.9:1 */

  --bg: var(--charcoal);
  --surface: #1E2122;
  --fg: var(--white);
  --fg-2: #C9CBC8;        /* second line tone: 10.8:1 */
  --mute: #A2A6A3;        /* secondary text: 7.2:1 on bg, 6.6:1 on surface */
  --line: rgb(228 229 226 / 0.16);
  --line-strong: rgb(228 229 226 / 0.32);

  --paper: var(--white);  /* light panel */
  --ink: var(--charcoal); /* 13.9:1 on paper */
  --ink-mute: #4A4F4E;    /* 6.6:1 on paper. Teal is never text on paper (1.9:1) */
  --ink-line: rgb(23 25 26 / 0.16);

  --font: "General Sans", ui-sans-serif, "Segoe UI", Roboto, sans-serif;

  --gx: clamp(1rem, 2.4vw, 2.25rem);     /* page margin */
  --gap: clamp(0.75rem, 1.4vw, 1.5rem);  /* grid gutter */
  --header-h: 4rem;
  --section-y: clamp(6rem, 13vw, 12rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 2. Reset + browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  font-size: clamp(15px, 0.32vw + 11.4px, 18px);
  scrollbar-color: #3A3E3F var(--bg);
  scroll-padding-top: var(--header-h);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--teal);
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; text-underline-offset: 0.2em; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--teal); color: var(--charcoal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.tnum { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; } /* components set display; hidden must still win */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: .75rem; left: .75rem; z-index: 300; padding: .6rem 1rem; background: var(--teal); color: var(--charcoal); font-weight: 600; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* placeholder content, easy to find and replace */
.stub { border: 1px dashed currentColor; border-radius: 3px; padding: 0 .35em; white-space: nowrap; }

/* ---------- 3. Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-inline: var(--gx);
}
.section { padding-block: var(--section-y); position: relative; }

/* ---------- 4. Letter-roll hover (chars split by JS) ---------- */
.flip-text { display: inline-flex; white-space: pre; }
.flip-char { display: inline-flex; flex-direction: column; height: 1.2em; line-height: 1.2; overflow: hidden; margin-block: -.1em; }
.flip-char > span { display: block; transition: transform .5s var(--ease-out); transition-delay: calc(var(--i, 0) * 14ms); }
@media (hover: hover) {
  .flip-host:hover .flip-char > span, .flip-host:focus-visible .flip-char > span { transform: translateY(-100%); }
}

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--gx);
  transition: transform .5s var(--ease-out), background-color .3s;
}
.site-header.is-solid {
  background: rgb(23 25 26 / .72); /* dense enough that text stays AA even over the light Vision section */
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgb(228 229 226 / .1);
  box-shadow: 0 1px 0 rgb(0 0 0 / .2), 0 10px 30px -12px rgb(0 0 0 / .45);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-solid { background: rgb(23 25 26 / .96); }
}
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: .6rem; justify-self: start; min-height: 44px; }
.brand-mark { height: 1.1rem; width: auto; }
.brand-word { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; gap: 1.75rem; font-size: .875rem; }
.nav a { color: var(--mute); padding-block: .75rem; transition: color .2s; }
.nav a:hover { color: var(--fg); }
.cta-link { justify-self: end; display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; min-height: 44px; }
.cta-link .plus { color: var(--teal); font-size: 1.15rem; line-height: 1; transition: transform .4s var(--ease-out); }
.cta-link:hover .plus { transform: rotate(90deg); }
@media (max-width: 767.98px) {
  .nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
}

/* ---------- 6. Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: var(--surface); }
.hero-video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.45) brightness(.62) contrast(1.08); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(23 25 26 / .7) 0%, rgb(23 25 26 / .15) 28%, rgb(23 25 26 / .35) 60%, var(--bg) 100%);
}
.hero-grid { position: relative; width: 100%; align-items: end; row-gap: 2.5rem; }
.hero-title {
  grid-column: 5 / -1; grid-row: 1;
  font-size: clamp(3.4rem, 8.6vw, 9.5rem);
  font-weight: 600; line-height: .92; letter-spacing: -0.04em;
}
.hero-title > span { display: block; }
.hero-title .l2 { color: var(--fg-2); }
.hero-title .l3 { color: var(--teal); }
.hero-side { grid-column: 1 / span 4; grid-row: 1; align-self: end; display: grid; gap: 1.25rem; max-width: 30rem; padding-bottom: .6rem; }
.hero-lede { font-size: .95rem; color: var(--mute); max-width: 34ch; }
.hero-lede strong { color: var(--fg); font-weight: 600; display: block; }
.hero-keys { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .85rem; }
.hero-keys li { padding-block: .1rem; border-bottom: 1px solid var(--line-strong); }
@media (max-width: 1023.98px) {
  .hero-title, .hero-side { grid-column: 1 / -1; }
  .hero-side { grid-row: 2; }
}

/* ---------- 7. Section heads ---------- */
.head-row { align-items: end; row-gap: 2rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.head-copy { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); font-size: .9rem; }
.head-copy p { max-width: 30ch; }
.head-copy p + p { color: var(--mute); }
#categories .head-copy { grid-column: 1 / span 5; }
.h-section { grid-column: 7 / -1; font-size: clamp(2.75rem, 6.4vw, 6.5rem); font-weight: 600; line-height: .95; letter-spacing: -0.04em; }
.h-section .count { color: var(--mute); }
.head-end { grid-column: 7 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.h-display { font-size: clamp(3.25rem, 9vw, 9rem); font-weight: 600; line-height: .9; letter-spacing: -0.045em; }
.crew .h-display, .arena .h-display, .join .h-display { grid-column: 1 / span 6; }
.crew .head-copy, .arena .head-copy { grid-column: 8 / -1; }
@media (max-width: 1023.98px) {
  #categories .head-copy, .head-end, .h-section, .crew .h-display, .arena .h-display, .crew .head-copy, .arena .head-copy { grid-column: 1 / -1; }
  #categories .head-copy { order: 2; }
}
@media (max-width: 479.98px) { .head-copy { grid-template-columns: 1fr; } }

/* ---------- 8. Divisions (auto marquee) ---------- */
#categories { padding-block: clamp(3rem, 6vw, 5.5rem); }
#categories .head-row { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
#categories .h-section { font-size: clamp(3rem, 6vw, 6rem); }

.marquee {
  overflow: hidden;
  padding-inline: var(--gx);
  touch-action: pan-y; /* horizontal drag is ours, vertical scroll stays native */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.marquee.is-ready { padding-inline: 0; cursor: grab; }
.marquee.is-dragging { cursor: grabbing; user-select: none; }
.marquee-track { display: flex; width: max-content; will-change: transform; }

.units {
  --card-w: clamp(17.5rem, 28vw, 24rem);
  --card-gap: clamp(1.75rem, 2.6vw, 2.75rem);
  /* fixed-width columns: a card's width never depends on its (hidden) text, so every copy of the
     strip is exactly 8 x (card + gap) wide and copies butt up with no space between them */
  flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: var(--card-w);
  column-gap: var(--card-gap); width: max-content; padding-right: var(--card-gap);
}
.unit { min-width: 0; position: relative; display: grid; align-content: start; gap: .4rem; contain: inline-size; }
.unit-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); border-radius: 2px; margin: 0; }
.unit-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5) brightness(.85); transition: filter .6s var(--ease-out), transform .8s var(--ease-out); -webkit-user-drag: none; user-select: none; }
.unit:hover .unit-media img, .unit.is-open .unit-media img { filter: none; transform: scale(1.03); }
.unit-name { font-size: clamp(1.15rem, 1.3vw, 1.35rem); font-weight: 600; letter-spacing: -0.02em; margin-top: .7rem; }
.unit-meta { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.unit-meta span:first-child { color: var(--teal); font-weight: 600; }
.unit-meta span + span { padding-left: .6rem; border-left: 1px solid var(--line); }
.unit-toggle {
  margin-left: auto; width: 2.75rem; height: 2.75rem; flex: none;
  display: grid; place-items: center; background: none; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--fg); cursor: pointer;
  transition: color .25s, border-color .25s, background-color .25s, transform .15s;
}
.unit-toggle:hover, .unit.is-open .unit-toggle { color: var(--charcoal); background: var(--teal); border-color: var(--teal); }
.unit-toggle:active { transform: scale(.94); }
.unit-toggle svg { width: .9rem; height: .9rem; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .3s var(--ease-out); }
.unit.is-open .unit-toggle svg { transform: rotate(45deg); }

/* details: sit in their own reserved space under the meta row. Nothing is drawn over the photo,
   and opening a card never changes the strip's height (no layout shift). */
.unit-details {
  display: grid; gap: .65rem; padding-top: .9rem; margin-top: .35rem;
  border-top: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out), visibility 0s .3s;
}
.unit.is-open .unit-details { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) {
  .marquee:not(.is-dragging) .unit:hover .unit-details { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
.unit-spec { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .9rem; margin: 0; }
.unit-spec > div { display: grid; gap: .15rem; min-width: 0; }
.unit-spec dt { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.unit-spec dd { margin: 0; font-size: .85rem; line-height: 1.3; font-weight: 500; }
.unit-text {
  font-size: .85rem; line-height: 1.45; color: var(--fg-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(3 * 1.45em); /* constant card height whatever the copy length */
}



/* ---------- 8b. Inside: scroll-driven 3D sumobot ---------- */
.lab { position: relative; height: 460vh; }
.lab-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--bg); }
.lab-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease-out); }
.lab-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5) brightness(.45); }
.lab.is-3d .lab-canvas { opacity: 1; }
.lab.is-3d .lab-fallback { display: none; }
.lab:not(.is-3d) { height: auto; }
.lab-sticky::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(23 25 26 / .86) 0%, rgb(23 25 26 / .78) 14%, rgb(23 25 26 / .6) 24%, rgb(23 25 26 / .38) 32%, rgb(23 25 26 / .18) 40%, rgb(23 25 26 / .06) 48%, rgb(23 25 26 / 0) 56%); }
.lab-copy { z-index: 1; }
.lab-copy {
  position: absolute; left: var(--gx); top: calc(var(--header-h) + clamp(1rem, 4vh, 3rem));
  width: min(25rem, 36vw); display: grid; gap: .9rem; pointer-events: none;
}
.lab-title { font-size: clamp(2rem, 3.6vw, 3.75rem); font-weight: 600; line-height: 1; letter-spacing: -0.035em; }
.lab-sub { font-size: .875rem; color: var(--mute); max-width: 34ch; }
.lab-steps { margin-top: 1.25rem; border-bottom: 1px solid var(--line); }
.lab-steps li { font-size: .9rem; line-height: 1.4; color: var(--mute); padding-block: .7rem; border-top: 1px solid var(--line); opacity: .45; transition: opacity .4s, color .4s; }
.lab-steps li b { color: var(--fg); font-weight: 600; }
.lab-steps li.is-active { opacity: 1; color: var(--fg); }
.lab-steps li.is-active b { color: var(--teal); }
.lab:not(.is-3d) .lab-steps li { opacity: 1; }
.lab-labels { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.lab-label { position: absolute; left: 0; top: 0; padding-left: .9rem; margin-top: -.55rem; display: grid; gap: .1rem; font-size: .8rem; line-height: 1.3; will-change: transform; }
.lab-label i { position: absolute; left: -4px; top: .3rem; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); border: 2px solid var(--bg); }
.lab-label b { font-weight: 600; white-space: nowrap; }
.lab-label span { color: var(--mute); max-width: 15rem; }
@media (max-width: 767.98px) {
  .lab-sticky::after { background: linear-gradient(0deg, rgb(23 25 26 / .92) 0%, rgb(23 25 26 / .6) 22%, transparent 40%); }
  .lab-copy { top: auto; bottom: 1.5rem; width: calc(100% - 2 * var(--gx)); gap: .5rem; }
  .lab-title { font-size: 1.75rem; }
  .lab-sub { display: none; }
  .lab-steps { margin-top: .25rem; border: 0; }
  .lab.is-3d .lab-steps li:not(.is-active) { display: none; }
  .lab-steps li { border: 0; padding: 0; }
  .lab-label span { display: none; }
}

/* ---------- 9. The idea ---------- */
.idea-label { text-align: center; font-size: 1rem; font-weight: 600; margin-bottom: clamp(4rem, 10vw, 9rem); }
.note { align-items: start; row-gap: 1.5rem; }
.note + .note { margin-top: clamp(5rem, 12vw, 11rem); }
.note-text { font-size: clamp(1.45rem, 2.5vw, 2.5rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 500; max-width: 24ch; }
.note-text sup { font-size: .42em; vertical-align: top; position: relative; top: .25em; margin-right: .15em; }
.note-cap { font-size: .9rem; line-height: 1.35; }
.note-img { overflow: hidden; background: var(--surface); }
.note-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) brightness(.8); }
.note-1 .note-img { grid-column: 1 / span 2; aspect-ratio: 3 / 4; }
.note-1 .note-text { grid-column: 4 / span 5; margin-top: 6rem; }
.note-1 .note-cap { grid-column: 10 / span 2; margin-top: 6.4rem; }
.note-2 .note-cap { grid-column: 3 / span 2; margin-top: .4rem; grid-row: 1; }
.note-2 .note-text { grid-column: 6 / span 5; grid-row: 1; }
.note-2 .note-img { grid-column: 11 / span 2; aspect-ratio: 3 / 4; grid-row: 1; margin-top: 8rem; }
.note-3 .note-img { grid-column: 2 / span 3; aspect-ratio: 4 / 3; }
.note-3 .note-text { grid-column: 6 / span 5; margin-top: 4rem; }
.note-3 .note-cap { grid-column: 12 / span 1; margin-top: 4.4rem; }
@media (max-width: 767.98px) {
  .note .note-img { grid-column: 1 / span 6 !important; grid-row: 1 !important; margin-top: 0 !important; }
  .note .note-cap { grid-column: 8 / -1 !important; grid-row: 1 !important; align-self: end; margin-top: 0 !important; }
  .note .note-text { grid-column: 1 / -1 !important; grid-row: 2 !important; margin-top: 0 !important; }
}

/* ---------- 11. Crew rows ---------- */
.rows { padding-inline: var(--gx); border-top: 1px solid var(--line-strong); }
.row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: center; padding-block: 1.1rem; border-bottom: 1px solid var(--line-strong);
}
.row-icon { grid-column: 1 / span 2; width: 100%; max-width: 7.5rem; height: auto; fill: none; stroke: var(--fg); stroke-width: 1.2; opacity: .75; transition: stroke .3s, opacity .3s; }
.row-icon .dash { stroke-dasharray: 3 3; }
.row-title { grid-column: 4 / span 4; font-size: clamp(1.2rem, 1.7vw, 1.7rem); font-weight: 600; letter-spacing: -0.025em; transition: color .3s; }
.row-text { grid-column: 9 / span 3; font-size: .8rem; line-height: 1.35; }
.row-who { grid-column: 12 / span 1; justify-self: end; font-size: .8rem; color: var(--mute); }
.row:hover .row-title { color: var(--teal); }
.row:hover .row-icon { stroke: var(--teal); opacity: 1; }
.rows-foot { display: flex; justify-content: space-between; width: min(16rem, 60%); margin: 1.25rem 0 0 50%; font-size: .9rem; font-weight: 600; padding-inline: 0; }
@media (max-width: 1023.98px) {
  .row-icon { grid-column: 1 / span 3; }
  .row-title { grid-column: 4 / -1; }
  .row-text { grid-column: 4 / span 7; margin-top: .4rem; }
  .row-who { grid-column: 11 / -1; margin-top: .4rem; }
}
@media (max-width: 599.98px) {
  .row { row-gap: .5rem; }
  .row-icon { grid-column: 1 / span 4; }
  .row-title { grid-column: 5 / -1; }
  .row-text { grid-column: 1 / -1; }
  .row-who { grid-column: 1 / -1; justify-self: start; }
  .rows-foot { margin-left: var(--gx); }
}

/* ---------- 12. Arena ---------- */
.events { padding-inline: var(--gx); border-top: 1px solid var(--line-strong); }
.event { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-block: 1.4rem; border-bottom: 1px solid var(--line-strong); align-items: start; }
.event-title { grid-column: 3 / span 4; font-size: clamp(1.2rem, 1.6vw, 1.6rem); font-weight: 600; letter-spacing: -0.025em; }
.event-text { grid-column: 7 / span 4; font-size: .875rem; color: var(--mute); max-width: 44ch; }
.event-date { grid-column: 11 / span 2; justify-self: end; font-size: .875rem; }
.event-date a { color: var(--teal); }
@media (max-width: 767.98px) {
  .event-title, .event-text, .event-date { grid-column: 1 / -1; justify-self: start; }
  .event-text, .event-date { margin-top: .5rem; }
}

/* ---------- 13. Join ---------- */
.join { overflow: hidden; min-height: 80svh; display: flex; align-items: flex-end; }
.join-media { position: absolute; inset: 0; }
.join-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.7) brightness(.4); }
.join-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgb(23 25 26 / .4) 40%, rgb(23 25 26 / .85) 100%); }
.join-grid { position: relative; width: 100%; align-items: end; row-gap: 2.5rem; }
.join-copy { grid-column: 8 / -1; display: grid; gap: 1.5rem; justify-items: start; }
.join-lede { font-size: 1.05rem; max-width: 36ch; }
.btn {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.4rem;
  background: var(--teal); color: var(--charcoal); font-weight: 600; font-size: .95rem; border-radius: 3px;
  transition: background-color .25s;
}
.btn:hover { background: var(--white); }
.btn:active { transform: translateY(1px); }
.facts { width: 100%; border-top: 1px solid var(--line-strong); font-size: .875rem; }
.facts > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding-block: .7rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--mute); }
.facts dd { margin: 0; }
@media (max-width: 1023.98px) { .join .h-display, .join-copy { grid-column: 1 / -1; } }

/* ---------- 14. Footer ---------- */
.site-footer { padding: clamp(5rem, 10vw, 8rem) var(--gx) 2rem; display: grid; justify-items: center; gap: 2.5rem; text-align: left; }
.footer-mark { width: 3.25rem; height: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(2rem, 6vw, 5rem); font-size: .875rem; }
.footer-cols li { padding-block: .15rem; }
.footer-cols .fh { font-weight: 600; margin-bottom: .4rem; }
.footer-cols a { color: var(--mute); transition: color .2s; }
.footer-cols a:hover { color: var(--fg); }
.footer-word { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-top: 2rem; }
.footer-note { font-size: .75rem; color: var(--mute); text-align: center; }
.footer-note a { text-decoration: underline; }

/* ---------- 15. Split-text reveal (headings) ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
.js:not(.reduce-motion) [data-split]:not(.is-in) .w > span { transform: translateY(108%); }
.js:not(.reduce-motion) [data-split] .w > span { transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }

/* ---------- 16. Intro ---------- */
.intro { display: none; }
.play-intro .intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--bg); cursor: pointer; transition: opacity .45s var(--ease-in-out);
}
html.play-intro:not(.intro-out) { overflow: hidden; }
.play-intro .brand-mark { visibility: hidden; }
.intro-stage { width: min(92vw, 1100px); aspect-ratio: 1400 / 600; }
.intro-stage svg { width: 100% !important; height: 100% !important; }
.intro-foot { position: absolute; left: var(--gx); right: var(--gx); bottom: 1.5rem; display: flex; justify-content: space-between; font-size: .8rem; color: var(--mute); }
.intro.is-leaving { opacity: 0; pointer-events: none; }
.dock-clone { position: fixed; z-index: 210; transform-origin: 0 0; pointer-events: none; will-change: transform; }
/* failsafe: if scripts never run, the overlay still lets go */
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
.play-intro .intro { animation: intro-failsafe .4s 9s forwards; }

/* ---------- 17. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =====================================================================
   Refinement pass: one name in the hero, smooth intro hand-off,
   endless + browsable divisions, crew without icons, blended 3D
   ===================================================================== */

/* header: icon + the one name, always on top */
.brand-word { letter-spacing: -0.01em; text-transform: none; font-size: .95rem; }

/* hero: the catchphrase on the right, one line of copy and a link on the left */
.hero-title { grid-column: 5 / -1; font-size: clamp(3.6rem, 10.5vw, 11rem); line-height: .88; letter-spacing: -0.045em; }
.hero-side { grid-column: 1 / span 4; grid-row: 1; align-self: end; display: grid; gap: 1.25rem; max-width: 24rem; padding-bottom: .6rem; }
.hero-lede { font-size: 1rem; color: var(--fg-2); max-width: 30ch; }
.hero-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--fg); min-height: 44px; justify-self: start; }
.hero-link svg { width: 1rem; height: 1rem; fill: none; stroke: var(--teal); stroke-width: 1.5; transition: transform .4s var(--ease-out); }
.hero-link:hover svg { transform: translateY(3px); }
.hero-video { transform-origin: 50% 55%; }
@media (max-width: 1023.98px) {
  .hero-title { grid-column: 1 / -1; }
  .hero-side { grid-column: 1 / -1; grid-row: 2; max-width: 30rem; }
}

/* intro: only the counter remains */
.intro-foot { justify-content: flex-end; }

/* divisions: browse buttons beside the heading */
.head-end { align-items: flex-end; }
.strip-nav { display: flex; gap: .5rem; padding-bottom: .6rem; }
.strip-btn {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center; padding: 0;
  background: none; color: var(--fg); cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 50%;
  transition: background-color .25s, color .25s, border-color .25s, transform .15s;
}
.strip-btn:hover { background: var(--fg); color: var(--charcoal); border-color: var(--fg); }
.strip-btn:active { transform: scale(.94); }
.strip-btn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* crew: text only, no drawn icons */
.row { padding-block: 1.5rem; align-items: baseline; }
.row-title { grid-column: 1 / span 5; }
.row-text { grid-column: 7 / span 4; font-size: .9rem; line-height: 1.45; color: var(--fg-2); }
.row-who { grid-column: 12 / span 1; }
@media (max-width: 1023.98px) {
  .row-title { grid-column: 1 / -1; }
  .row-text { grid-column: 1 / span 9; margin-top: .5rem; }
  .row-who { grid-column: 10 / -1; margin-top: .5rem; }
}
@media (max-width: 599.98px) { .row-text, .row-who { grid-column: 1 / -1; justify-self: start; } }

/* 3D: fade the canvas into the page at the top and bottom of the pinned view */
.lab-canvas, .lab-fallback {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

/* =====================================================================
   Navbar language switch, Vision & Mission, footer wordmark
   ===================================================================== */
.header-end { justify-self: end; display: flex; align-items: center; gap: 1.25rem; }
.header-end .cta-link { justify-self: auto; }
.lang {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line-strong); border-radius: 999px;
}
.lang-btn {
  min-width: 2.4rem; height: 2rem; padding: 0 .55rem; border: 0; border-radius: 999px;
  background: none; color: var(--mute); font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  cursor: pointer; transition: background-color .25s, color .25s;
}
.lang-btn:hover { color: var(--fg); }
.lang-btn[aria-pressed="true"] { background: var(--fg); color: var(--charcoal); }
@media (max-width: 767.98px) {
  .header-end { gap: .75rem; }
}

/* ---- Vision & Mission: a light manifesto, not a gallery ----
   Vision statement pinned on the left; mission commitments on the right, each lights up as it
   crosses the middle of the screen. Tags are cut at the logo's slant; a giant outline of the
   logo's L sits behind as the only ornament. */
.vision {
  position: relative; overflow: hidden;
  background: var(--paper); color: var(--ink);
  padding-block: clamp(6rem, 12vw, 11rem);
}
.vision-mark {
  position: absolute; right: -14vw; top: 50%; height: 125%; width: auto; transform: translateY(-50%);
  fill: none; stroke: var(--ink); stroke-opacity: .09; stroke-width: 1.5px; pointer-events: none;
}
.vision-grid { position: relative; align-items: start; row-gap: 4rem; }
.vision-lead { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 3rem); }
.vision-title { font-size: clamp(3.25rem, 8vw, 8rem); font-weight: 600; line-height: .9; letter-spacing: -0.045em; }
.vision-statement {
  margin-top: clamp(1.5rem, 3vw, 2.5rem); max-width: 19ch;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 500;
  text-wrap: balance;
}
.mission { grid-column: 7 / -1; }
.mission-title { font-size: 1rem; font-weight: 600; padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.mission-list { counter-reset: none; }
.mission-item {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start;
  padding-block: clamp(1.75rem, 3.5vw, 3rem); border-bottom: 1px solid var(--ink-line);
}
.mission-tag {
  display: grid; place-items: center; width: 4.2rem; height: 2.5rem;
  clip-path: polygon(26% 0, 100% 0, 74% 100%, 0 100%); /* the logo's slant */
  background: rgb(23 25 26 / .07); color: var(--ink-mute);
  font-size: .95rem; font-weight: 600;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out), transform .6s var(--ease-out);
}
.mission-name {
  font-size: clamp(1.4rem, 2.2vw, 2.1rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em;
  color: var(--ink-mute); transition: color .5s var(--ease-out);
}
.mission-text { margin-top: .6rem; font-size: .95rem; line-height: 1.5; color: var(--ink-mute); max-width: 44ch; }
.mission-item.is-active .mission-tag { background: var(--teal); color: var(--charcoal); transform: translateX(.35rem); }
.mission-item.is-active .mission-name { color: var(--ink); }
.vision :focus-visible { outline-color: var(--ink); }
@media (max-width: 1023.98px) {
  .vision-lead { grid-column: 1 / -1; position: static; }
  .mission { grid-column: 1 / -1; }
  .vision-mark { height: 80%; right: -30vw; top: 30%; }
}
@media (max-width: 479.98px) {
  .mission-item { grid-template-columns: 1fr; gap: .9rem; }
}

/* ---- footer: icon sits before the wordmark ---- */
.footer-word { display: inline-flex; align-items: center; gap: .6rem; }
.footer-word .footer-mark { width: auto; height: 1.15rem; margin: 0; }

/* glass header: lighter link colour keeps contrast whatever scrolls underneath */
.site-header.is-solid .nav a { color: var(--fg-2); }
.site-header.is-solid .nav a:hover { color: var(--fg); }
.site-header.is-solid .lang-btn:not([aria-pressed="true"]) { color: var(--fg-2); }

/* =====================================================================
   Our latest works (coming soon), Schedule hub, Registration,
   Members (activity), Attendance (mentors)
   ===================================================================== */

/* ---- coming soon ---- */
.works { position: relative; padding-block: clamp(6rem, 12vw, 10rem); overflow: hidden; }
.works-grid { align-items: end; row-gap: 2rem; position: relative; z-index: 1; }
.works-title { grid-column: 1 / span 7; }
.works-side { grid-column: 9 / -1; display: grid; gap: 1.1rem; justify-items: start; }
.works-lede { color: var(--fg-2); max-width: 36ch; }
.soon-tag {
  display: inline-grid; place-items: center; height: 2.25rem; padding: 0 1.4rem;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  background: var(--teal); color: var(--charcoal); font-size: .85rem; font-weight: 600;
}
.works-bench { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding: clamp(3rem, 6vw, 5rem) var(--gx) 0; }
.works-bench span { aspect-ratio: 4 / 3; border: 1px dashed var(--line-strong); border-radius: 2px; }
@media (max-width: 1023.98px) { .works-title, .works-side { grid-column: 1 / -1; } }
@media (max-width: 599.98px) { .works-bench { grid-template-columns: 1fr 1fr; } .works-bench span:last-child { display: none; } }

/* ---- shared bits ---- */
.hub-sample { font-size: .8rem; color: var(--teal); }
.hub-empty { color: var(--mute); font-size: .9rem; padding-block: 1rem; }
.hub-error { padding: 0 var(--gx) 1.5rem; color: #F0B2AA; font-size: .9rem; }
.text-btn { background: none; border: 0; padding: .5rem 0; min-height: 44px; color: var(--fg); font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.text-btn:hover { color: var(--teal); }
.arrow-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.arrow-link svg { width: 1rem; height: 1rem; fill: none; stroke: var(--teal); stroke-width: 1.5; transition: transform .35s var(--ease-out); }
.arrow-link:hover svg { transform: translateX(3px); }
.rows-foot { width: auto; margin-left: 50%; padding-right: var(--gx); align-items: center; }
@media (max-width: 599.98px) { .rows-foot { margin-left: var(--gx); } }

/* ---- schedule hub ---- */
.hub .head-copy { grid-column: 8 / -1; }
.hub .h-display { grid-column: 1 / span 6; }
.hub-grid { row-gap: 3.5rem; align-items: start; }
.hub-col { min-width: 0; }
.hub-sessions { grid-column: 1 / span 5; }
.hub-comps { grid-column: 7 / -1; }
.hub-mentors { grid-column: 1 / -1; }
.hub-h { font-size: 1rem; font-weight: 600; padding-bottom: .9rem; border-bottom: 1px solid var(--line-strong); }
.session { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.session-when { display: grid; gap: .15rem; }
.session-day { font-weight: 600; }
.session-time { font-size: .85rem; color: var(--mute); }
.session-what { display: grid; gap: .15rem; }
.session-title { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.session-place { font-size: .85rem; color: var(--mute); }
.session.is-today .session-day { color: var(--teal); }
.session.is-live .session-day { color: var(--teal); display: inline-flex; align-items: center; gap: .45rem; }
.session.is-live .session-day::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--teal); }
.comp { display: grid; gap: .3rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.comp-head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: .8rem; }
.comp-status { font-weight: 600; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--line-strong); }
.comp-open .comp-status { background: var(--teal); border-color: var(--teal); color: var(--charcoal); }
.comp-closed .comp-name, .comp-closed .comp-status { color: var(--mute); }
.comp-due { color: var(--fg-2); }
.comp-name { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; }
.comp-meta { font-size: .85rem; color: var(--mute); }
.comp-link { justify-self: start; font-size: .85rem; color: var(--teal); padding-block: .4rem; }
.mentors { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0 var(--gap); }
.mentor { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.mentor-photo { width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; }
.mentor-initials { display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong); color: var(--teal); font-weight: 600; font-size: .95rem; }
.mentor-text { display: grid; gap: .1rem; }
.mentor-name { font-weight: 600; }
.mentor-role { font-size: .85rem; color: var(--fg-2); }
.mentor-focus { font-size: .8rem; color: var(--mute); }
@media (max-width: 1023.98px) { .hub .h-display, .hub .head-copy, .hub-sessions, .hub-comps { grid-column: 1 / -1; } }
@media (max-width: 479.98px) { .session { grid-template-columns: 1fr; gap: .4rem; } }

/* ---- registration ---- */
.join { align-items: stretch; }
.join-grid { align-items: start; row-gap: 3rem; padding-block: 2rem; }
.join-intro { grid-column: 1 / span 5; display: grid; gap: 1.75rem; align-content: start; }
.join-intro .h-display { grid-column: auto; }
.join-panel {
  grid-column: 7 / -1; background: rgb(23 25 26 / .88); border: 1px solid var(--line-strong);
  border-radius: 4px; padding: clamp(1.25rem, 3vw, 2.25rem);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.reg { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; align-content: start; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: .85rem; font-weight: 600; padding: 0; }
.field-opt { font-weight: 400; color: var(--mute); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="date"], .field input[type="password"], .field select, .field textarea, .search input {
  width: 100%; min-height: 2.9rem; padding: .65rem .85rem; font: inherit; font-size: 1rem; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 3px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field select {
  appearance: none; padding-right: 2.25rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.3rem, calc(100% - .8rem) 1.3rem; background-size: .35rem .35rem; background-repeat: no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover, .search input:hover { border-color: rgb(228 229 226 / .5); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .search input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: #F0B2AA; }
.field-hint { font-size: .8rem; color: var(--mute); }
.field-err { font-size: .8rem; color: #F0B2AA; }
.form-err { font-size: .9rem; }
input[type="date"] { color-scheme: dark; }
.segs { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9rem; transition: background-color .2s, color .2s, border-color .2s; }
.seg input:checked + span { background: var(--fg); color: var(--charcoal); border-color: var(--fg); }
.seg input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-weight: 400 !important; font-size: .9rem !important; line-height: 1.45; cursor: pointer; position: relative; }
.check input { position: absolute; opacity: 0; width: 1.35rem; height: 1.35rem; margin: 0; cursor: pointer; }
.check-box { width: 1.35rem; height: 1.35rem; border: 1px solid var(--line-strong); border-radius: 3px; display: grid; place-items: center; margin-top: .05rem; transition: background-color .2s, border-color .2s; }
.check input:checked + .check-box { background: var(--teal); border-color: var(--teal); }
.check input:checked + .check-box::after { content: ""; width: .35rem; height: .65rem; border: solid var(--charcoal); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input:focus-visible + .check-box { outline: 2px solid var(--teal); outline-offset: 2px; }
.check input[aria-invalid="true"] + .check-box { border-color: #F0B2AA; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-wide { width: 100%; justify-content: center; min-height: 3.25rem; }
.btn.is-loading { opacity: .7; cursor: progress; }
.btn[disabled] { cursor: progress; }
.reg-done { display: grid; gap: 1rem; justify-items: start; }
.reg-done-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -0.025em; }
.reg-done-title:focus { outline: none; }
.btn-wa { background: #25D366; color: #0B1F12; }
.btn-wa:hover { background: var(--white); }
@media (max-width: 1023.98px) { .join-intro, .join-panel { grid-column: 1 / -1; } }
@media (max-width: 599.98px) { .field-row { grid-template-columns: 1fr; } }

/* ---- subpages ---- */
.page { padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)); padding-bottom: clamp(4rem, 8vw, 7rem); min-height: 80svh; }
.page-head { row-gap: 1.25rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-head .back-link { grid-column: 1 / -1; }
.page-head .h-display { grid-column: 1 / span 6; }
.page-copy { grid-column: 8 / -1; display: grid; gap: .6rem; color: var(--fg-2); max-width: 34rem; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--fg-2); min-height: 44px; justify-self: start; }
.back-link svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.back-link:hover { color: var(--fg); }
.page-body { padding-inline: var(--gx); }
@media (max-width: 1023.98px) { .page-head .h-display, .page-copy { grid-column: 1 / -1; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 2.5rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--fg-2); font: inherit; font-size: .85rem; cursor: pointer; transition: background-color .2s, color .2s; }
.chip:hover { color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--charcoal); border-color: var(--fg); }

/* ---- members ---- */
.member-tools { display: grid; grid-template-columns: minmax(0, 20rem) 1fr; gap: 1rem 1.5rem; align-items: center; margin-bottom: 1.75rem; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: var(--gap); }
.member-card {
  display: grid; gap: 1rem; text-align: left; padding: 1.25rem; cursor: pointer;
  background: var(--surface); color: var(--fg); font: inherit;
  border: 1px solid var(--line); border-radius: 4px; transition: border-color .25s, background-color .25s;
}
.member-card:hover { border-color: var(--line-strong); background: #222627; }
.member-card[aria-pressed="true"] { border-color: var(--teal); }
.member-head { display: grid; gap: .15rem; }
.member-name { font-weight: 600; font-size: 1.05rem; }
.member-meta { font-size: .82rem; color: var(--mute); }
.member-stats { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .8rem; color: var(--mute); }
.member-stats b { color: var(--fg); font-weight: 600; }
.heatmap { display: block; max-width: 100%; height: auto; }
.heatmap text { fill: var(--mute); font-size: 9px; font-family: var(--font); }
.heatmap rect.hm-n { fill: transparent; stroke: rgb(228 229 226 / .1); }
.heatmap rect.hm-a { fill: #33393B; }
.heatmap rect.hm-p { fill: var(--teal); }
.member-profile { margin-bottom: 2.5rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--teal); border-radius: 4px; background: var(--surface); scroll-margin-top: calc(var(--header-h) + 1rem); display: grid; gap: 1.5rem; }
.profile-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.profile-name { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.025em; }
.profile-close { min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--fg); font: inherit; font-size: .85rem; cursor: pointer; }
.profile-close:hover { background: var(--fg); color: var(--charcoal); }
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; }
.profile-stats div { border-top: 1px solid var(--line-strong); padding-top: .6rem; }
.profile-stats dt { font-size: .8rem; color: var(--mute); }
.profile-stats dd { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; }
.profile-stats small { font-size: .5em; color: var(--mute); font-weight: 500; }
.profile-map { overflow-x: auto; padding-bottom: .25rem; }
.profile-map .heatmap { max-width: none; }
.hm-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .8rem; color: var(--mute); }
.hm-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.hm-legend i { width: .75rem; height: .75rem; border-radius: 2px; display: inline-block; }
.hm-legend i.hm-n { border: 1px solid rgb(228 229 226 / .18); }
.hm-legend i.hm-a { background: #33393B; }
.hm-legend i.hm-p { background: var(--teal); }
@media (max-width: 599.98px) { .member-tools { grid-template-columns: 1fr; } .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- attendance ---- */
.att-gate { max-width: 26rem; display: grid; gap: .6rem; }
.att-gate label { font-weight: 600; font-size: .9rem; }
.att-gate-row { display: grid; grid-template-columns: 1fr auto; gap: .75rem; }
.att-gate input { min-height: 3rem; padding: .6rem .85rem; font: inherit; font-size: 1.2rem; letter-spacing: .2em; color: var(--fg); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 3px; }
.att-gate input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.att-gate input[aria-invalid="true"] { border-color: #F0B2AA; }
.att-app { display: grid; gap: 1.5rem; }
.att-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 1rem; align-items: end; }
.att-bar { display: grid; grid-template-columns: minmax(0, 20rem) auto 1fr; gap: 1rem 1.5rem; align-items: center; padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.att-bulk { display: flex; gap: 1.25rem; }
.att-count { justify-self: end; font-weight: 600; color: var(--teal); }
.att-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .5rem; }
.att-row { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "box name" "box meta"; gap: .1rem .85rem; align-items: center; padding: .85rem 1rem; min-height: 3.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.att-row:hover { border-color: var(--line-strong); }
.att-row input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.att-box { grid-area: box; width: 1.5rem; height: 1.5rem; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.att-name { grid-area: name; font-weight: 600; }
.att-meta { grid-area: meta; font-size: .8rem; color: var(--mute); }
.att-row:has(input:checked) { border-color: var(--teal); background: rgb(63 182 178 / .1); }
.att-row input:checked ~ .att-box { background: var(--teal); border-color: var(--teal); }
.att-row input:checked ~ .att-box::after { content: ""; width: .35rem; height: .65rem; border: solid var(--charcoal); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.att-row:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.att-save { position: sticky; bottom: 1rem; display: flex; justify-content: flex-end; align-items: center; gap: 1rem; padding: .75rem; margin-top: .5rem; background: rgb(23 25 26 / .92); border: 1px solid var(--line-strong); border-radius: 4px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.att-status { font-size: .9rem; margin-right: auto; }
.att-status[data-kind="ok"] { color: var(--teal); }
.att-status[data-kind="error"] { color: #F0B2AA; }
@media (max-width: 899.98px) { .att-controls { grid-template-columns: 1fr 1fr; } .att-bar { grid-template-columns: 1fr; } .att-count { justify-self: start; } }
@media (max-width: 479.98px) { .att-controls { grid-template-columns: 1fr; } }
