:root {
  --page-bg: #020304;
  --text: #f6f1e8;
  --muted: rgba(246, 241, 232, 0.72);
  --accent: #47becf;
  --accent-rgb: 71, 190, 207;
  --accent-alt: #b2c922;
  --accent-contrast: #041317;
  --main-logo-size: clamp(140px, 18vw, 230px);
  --main-logo-mobile-size: 76px;
  --main-logo-top: 16px;
  --main-logo-side: 14px;
  --shadow: rgba(0, 0, 0, 0.58);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button {
  appearance: none;
  font: inherit;
  color: inherit;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
}

.hero,
.section-card,
.detail-page {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero { min-height: 52vh; }

.hero__image,
.section-card__image {
  position: absolute;
  inset: -1px;
  z-index: -3;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  animation: kenburns 18s var(--ease) infinite alternate;
  transition: transform .9s var(--ease), filter .55s var(--ease), opacity .55s var(--ease);
  will-change: transform;
}

.hero__shade,
.section-card__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.32) 48%, rgba(0,0,0,.08)),
    linear-gradient(0deg, rgba(0,0,0,.40), rgba(0,0,0,.06) 42%, rgba(0,0,0,.32));
  transition: opacity .45s var(--ease), background .45s var(--ease);
}

.hero__content,
.section-card__content {
  width: min(860px, calc(100% - 40px));
  margin-inline: auto;
}

.hero__content {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: clamp(.72rem, 1.2vw, .86rem);
  font-weight: 760;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  max-width: 13ch;
  font-weight: 850;
  letter-spacing: -.06em;
  text-wrap: balance;
  text-shadow: 0 14px 44px var(--shadow);
}

h1 { font-size: clamp(3rem, 9vw, 8.8rem); line-height: .86; }
h2 { font-size: clamp(2.2rem, 6vw, 6rem); line-height: .88; }

.hero__tagline {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.9vw, 1.25rem);
  line-height: 1.55;
}

.section-strip {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
  background: var(--page-bg);
}

.section-card {
  min-height: 34vh;
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--page-bg);
  cursor: pointer;
  text-align: left;
}

.section-card__content {
  min-height: 34vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 34px 0 84px;
  transform: translateY(-7%);
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}

.section-card:hover .section-card__image,
.section-card:focus-visible .section-card__image {
  transform: scale(1.095);
  filter: brightness(1.06) saturate(1.1) contrast(1.04);
}

.section-card:hover .section-card__shade,
.section-card:focus-visible .section-card__shade { opacity: .82; }

.section-card:hover .section-card__content,
.section-card:focus-visible .section-card__content {
  transform: translateY(calc(-7% - 4px));
}

.section-card:focus-visible { outline: none; }
.section-card:focus-visible h2 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* v1.6 project page */
.detail-page {
  --detail-overlay-rgb: 0, 0, 0;
  --detail-overlay-opacity: .72;
  --detail-overlay-deep-opacity: .80;
  --detail-bg-brightness: .44;
  --detail-bg-saturation: .9;
  --detail-bg-blur: 10px;
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow-x: hidden;
  overflow-y: auto;
  background: #020304;
  transform: translateX(100%);
  transition: transform .56s var(--ease), visibility .56s var(--ease);
  visibility: hidden;
}

.detail-page[aria-hidden="false"] {
  transform: translateX(0);
  visibility: visible;
}

.detail-page__image {
  position: fixed;
  inset: -28px;
  z-index: -3;
  background-position: center;
  background-size: cover;
  filter:
    brightness(var(--detail-bg-brightness))
    saturate(var(--detail-bg-saturation))
    blur(var(--detail-bg-blur));
  transform: scale(1.06);
  opacity: .3;
  transition: opacity .48s var(--ease), filter .48s var(--ease), transform 14s ease-out;
  will-change: filter, opacity, transform;
}

.detail-page--ready .detail-page__image {
  opacity: 1;
  transform: scale(1.12);
}

.detail-page__shade {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 13%, rgba(255,255,255,.035), transparent 38%),
    linear-gradient(
      rgba(var(--detail-overlay-rgb), var(--detail-overlay-opacity)),
      rgba(var(--detail-overlay-rgb), var(--detail-overlay-deep-opacity))
    );
}

.detail-page__close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 5;
  width: 48px;
  height: 48px;
  padding: 0 0 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  box-shadow: 0 12px 36px rgba(0,0,0,.34);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: background .2s ease, transform .2s ease;
}

.detail-page__close:hover,
.detail-page__close:focus-visible {
  background: rgba(0, 0, 0, .68);
  transform: scale(1.06);
  outline: none;
}

.detail-page__content {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 40px));
  margin-inline: auto;
  padding: 52px 0 120px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .42s .15s var(--ease), transform .42s .15s var(--ease);
}

.detail-page--ready .detail-page__content {
  opacity: 1;
  transform: translateY(0);
}

.detail-page__header { width: 100%; }

.detail-page__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.detail-page__brand img {
  display: block;
  width: 54px;
  aspect-ratio: 1;
  object-fit: contain;
}

.detail-page__kicker {
  color: var(--accent);
  font-size: clamp(.72rem, 1.1vw, .86rem);
  font-weight: 830;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.detail-page__brand:hover .detail-page__kicker,
.detail-page__brand:focus-visible .detail-page__kicker { text-decoration: underline; }
.detail-page__brand:focus-visible { outline: none; }

.detail-page__header h2 {
  max-width: none;
  margin: 52px auto 0;
  text-align: center;
  font-size: clamp(3.15rem, 8.4vw, 7.8rem);
  line-height: .88;
}

.detail-page__title-accent { color: var(--accent); }

.detail-page__intro {
  max-width: 790px;
  margin: 34px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: clamp(1.05rem, 2vw, 1.36rem);
  line-height: 1.6;
}

.detail-page__blocks {
  width: 100%;
  display: grid;
  gap: 34px;
  margin-top: 52px;
}

.detail-block {
  width: 100%;
  opacity: 0;
  transform: translateY(14px);
  animation: block-in .5s var(--ease) forwards;
  animation-delay: calc(.22s + (var(--block-index, 0) * .08s));
}

.detail-block--text {
  padding: clamp(28px, 4vw, 48px);
  border: 0;
  border-radius: 18px;
  background: rgba(4, 5, 7, .56);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .30);
  backdrop-filter: blur(18px);
}

.detail-block--text h3 {
  margin: 0 0 16px;
  color: var(--accent);
  text-align: center;
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
  letter-spacing: -.035em;
}

.detail-block--text p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--muted);
  text-align: center;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.68;
}

/* Multi-paragraph story copy and accessible feature list. */
.detail-block--text--story p {
  white-space: pre-line;
  text-align: left;
}
.detail-block__bullets {
  max-width: 800px;
  margin: 0 auto;
  padding-left: 1.35rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.65;
}
.detail-block__bullets li { margin-bottom: 1rem; padding-left: 0.15rem; }
.detail-block__bullets li:last-child { margin-bottom: 0; }
.detail-block__bullets li::marker { color: var(--accent); }

.detail-block--image a { display: block; }
.detail-block--image img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: cover;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .43);
}

.detail-block--links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.detail-block--links a {
  padding: 13px 20px;
  border-radius: 999px;
  background: rgba(0,0,0,.52);
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.detail-block--tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.project-tile {
  min-height: 128px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(var(--accent-rgb), .34);
  border-radius: 16px;
  background: rgba(2, 3, 5, .58);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
  color: inherit;
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: transform .24s var(--ease), background .24s ease, border-color .24s ease;
}

.project-tile:hover,
.project-tile:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), .76);
  background: rgba(9, 8, 3, .76);
  outline: none;
}

.project-tile--disabled {
  opacity: .58;
  cursor: default;
}
.project-tile--disabled:hover { transform: none; }

.project-tile__icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.7rem;
  font-weight: 900;
}

.project-tile__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-tile__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.project-tile__copy strong {
  color: var(--accent);
  font-size: .92rem;
  letter-spacing: .11em;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.project-tile__copy small {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.detail-is-open body { overflow: hidden; }

@media (orientation: landscape) and (min-width: 820px) {
  #app { min-height: 100vh; }
  .hero { min-height: 54vh; }
  .hero__content { min-height: 54vh; }
  .section-strip {
    min-height: 46vh;
    flex-direction: row;
  }
  .section-card {
    min-height: 46vh;
    flex: 1 1 0;
  }
  .section-card__content {
    width: calc(100% - 48px);
    min-height: 46vh;
    padding: 28px 0 76px;
  }
  .section-card h2 {
    max-width: 8ch;
    font-size: clamp(1.35rem, 3vw, 4.15rem);
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

@media (max-width: 620px) {
  .detail-page__close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .detail-page__content {
    width: min(100% - 24px, 980px);
    padding-top: 24px;
  }

  .detail-page__brand img { width: 46px; }
  .detail-page__header h2 { margin-top: 42px; }
  .detail-page__blocks { gap: 22px; margin-top: 38px; }
  .detail-block--text,
  .detail-block--image img { border-radius: 12px; }
  .detail-block--tiles { grid-template-columns: 1fr; }
  .project-tile { min-height: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@keyframes kenburns {
  from { transform: scale(1.04) translate3d(-.6%, -.4%, 0); }
  to { transform: scale(1.11) translate3d(.8%, .6%, 0); }
}

@keyframes block-in {
  to { opacity: 1; transform: translateY(0); }
}

/* v1.7.1 main-page logo */
.site-logo {
  position: fixed;
  top: var(--main-logo-top);
  z-index: 12;
  width: var(--main-logo-size);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: .9;
  transition: opacity .24s ease, transform .24s var(--ease), filter .24s ease;
}

.site-logo--right { right: var(--main-logo-side); }
.site-logo--left { left: var(--main-logo-side); }
.site-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .48));
}

.site-logo:hover,
.site-logo:focus-visible {
  opacity: 1;
  transform: translateY(-2px) scale(1.04);
  outline: none;
}

.detail-is-open .site-logo {
  opacity: 0;
  pointer-events: none;
}

/* v1.7 embeds and feeds */
.detail-block--embed,
.detail-block--contact,
.detail-block--collection {
  padding: clamp(28px, 4vw, 48px);
  border: 0;
  border-radius: 18px;
  background: rgba(4, 5, 7, .56);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .30);
  backdrop-filter: blur(18px);
}

.embed-block__header {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.embed-block__header h3,
.detail-block--contact h3,
.detail-block--collection h3 {
  margin: 0 0 12px;
  color: var(--accent);
  text-align: center;
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
  letter-spacing: -.035em;
}

.embed-block__header p,
.detail-block--contact > p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.68;
}

.embed-block__frame {
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0, 0, 0, .38);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .16), 0 18px 64px rgba(0, 0, 0, .26);
}

.embed-block__frame iframe {
  display: block;
  width: 100%;
  border: 0;
}

.embed-block__frame--video {
  aspect-ratio: 16 / 9;
}

.embed-block__frame--video iframe {
  width: 100%;
  height: 100%;
}

.embed-block__frame--feed iframe {
  height: 520px;
}

.embed-block__frame--google-form iframe {
  min-height: 720px;
}

.embed-block__frame--x {
  min-height: 240px;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
}

.x-timeline-link {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.embed-block__frame--x p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.embed-placeholder {
  min-height: 210px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 32px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .34);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .16);
  text-align: center;
}

.embed-placeholder strong {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.embed-placeholder span {
  max-width: 580px;
  color: var(--muted);
  line-height: 1.6;
}


/* v1.7.6 screenshot gallery */
.detail-block--screenshots {
  padding: clamp(28px, 4vw, 48px);
  border-radius: 18px;
  background: rgba(4, 5, 7, .46);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .26);
  backdrop-filter: blur(18px);
}

.screenshot-gallery__header {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.screenshot-gallery__header h3 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
  letter-spacing: -.035em;
}

.screenshot-gallery__header p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.68;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.screenshot-gallery__item {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0, 0, 0, .38);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .18), 0 18px 64px rgba(0, 0, 0, .20);
  transition: transform .25s var(--ease), filter .25s ease;
}

.screenshot-gallery__item:hover,
.screenshot-gallery__item:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.08);
  outline: none;
}

.screenshot-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 720px) {
  .screenshot-gallery {
    grid-template-columns: 1fr;
  }
}

/* v1.7 contact block */
.contact-email {
  display: block;
  width: fit-content;
  margin: 22px auto 28px;
  color: var(--accent);
  font-weight: 850;
  letter-spacing: .08em;
  text-decoration: none;
}

.contact-email:hover,
.contact-email:focus-visible {
  text-decoration: underline;
  text-underline-offset: 6px;
  outline: none;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form__field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(var(--accent-rgb), .20);
  border-radius: 12px;
  background: rgba(0, 0, 0, .42);
  color: var(--text);
  font: inherit;
  line-height: 1.45;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: rgba(var(--accent-rgb), .70);
  outline: none;
}

.contact-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button {
  justify-self: center;
  min-width: min(100%, 240px);
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .22s var(--ease), filter .22s ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  outline: none;
}

.contact-form__status {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  text-align: center;
}

/* v1.7 team collection */
.detail-block--collection {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding-inline: 0;
}

.collection-grid {
  display: grid;
  gap: 22px;
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: clamp(22px, 4vw, 42px);
  align-items: stretch;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 18px;
  background: rgba(4, 5, 7, .56);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .30);
  backdrop-filter: blur(18px);
}

.profile-card__image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .34);
}

.profile-card__content {
  display: grid;
  align-content: center;
  gap: 16px;
}

.profile-card h4 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.6rem, 3.6vw, 3.2rem);
  line-height: .95;
  letter-spacing: -.045em;
}

.profile-card__role {
  margin: 0;
  color: var(--text);
  font-size: .95rem;
  font-weight: 820;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.profile-card__bio {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.66;
}

.profile-card__projects {
  display: grid;
  gap: 8px;
}

.profile-card__projects strong {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.profile-card__credits {
  display: grid;
  gap: 8px;
}

.profile-card__credits strong {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.profile-card__credits p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

.profile-card__project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-card__project-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s var(--ease);
}

.profile-card__project-list a:hover,
.profile-card__project-list a:focus-visible {
  background: rgba(var(--accent-rgb), .22);
  transform: translateY(-2px);
  outline: none;
}

.profile-card__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.profile-card__links .project-tile {
  min-height: 96px;
}

@media (max-width: 760px) {
  .language-toggle {
    top: 12px;
    left: 12px;
  }

  .language-toggle button {
    min-width: 38px;
    min-height: 30px;
    padding: 6px 9px;
    font-size: .72rem;
  }

  .site-logo {
    top: 12px;
    width: var(--main-logo-mobile-size);
  }

  .site-logo--right { right: 12px; }
  .site-logo--left { left: 12px; }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-card__image {
    min-height: 220px;
    max-height: 380px;
  }

  .embed-block__frame--feed iframe {
    height: 420px;
  }
}

/* v1.7.4 language toggle */
.language-toggle {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 16;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(var(--accent-rgb), .24);
  border-radius: 999px;
  background: rgba(2, 3, 4, .42);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .28);
  backdrop-filter: blur(14px);
}

.language-toggle button {
  min-width: 42px;
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  transition: background .2s ease, color .2s ease, transform .2s var(--ease);
}

.language-toggle button:hover,
.language-toggle button:focus-visible {
  color: var(--text);
  outline: none;
  transform: translateY(-1px);
}

.language-toggle button.is-active {
  background: var(--accent);
  color: var(--accent-contrast);
}

.detail-is-open .language-toggle {
  z-index: 26;
}

@media (max-width: 760px) {
  .language-toggle {
    top: 12px;
    left: 12px;
  }

  .language-toggle button {
    min-width: 38px;
    min-height: 30px;
    padding: 6px 9px;
    font-size: .72rem;
  }
}


/* v1.7.5 fallback content for search/accessibility if JavaScript is disabled */
.noscript-summary {
  width: min(980px, calc(100% - 40px));
  margin: 40px auto;
  padding: 28px;
  border-radius: 18px;
  background: rgba(4, 5, 7, .72);
}

.noscript-summary a { color: var(--accent); }

/* v1.7.7 screenshot lightbox */
.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.screenshot-lightbox:not([hidden]) {
  display: grid;
}

.screenshot-lightbox--ready {
  opacity: 1;
  pointer-events: auto;
}

.screenshot-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(14px);
  cursor: zoom-out;
}

.screenshot-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(1280px, 96vw);
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(4, 5, 7, .92);
  box-shadow: 0 38px 140px rgba(0, 0, 0, .62), inset 0 0 0 1px rgba(var(--accent-rgb), .18);
  transform: translateY(10px) scale(.985);
  transition: transform .22s var(--ease);
}

.screenshot-lightbox--ready .screenshot-lightbox__panel {
  transform: translateY(0) scale(1);
}

.screenshot-lightbox__image {
  display: block;
  width: 100%;
  max-height: min(720px, 78vh);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

.screenshot-lightbox__caption {
  padding: 14px 18px 16px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
  text-align: center;
}

.screenshot-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(0, 0, 0, .62);
  color: var(--text);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  backdrop-filter: blur(12px);
  transition: transform .2s var(--ease), background .2s ease, border-color .2s ease;
}

.screenshot-lightbox__close:hover,
.screenshot-lightbox__close:focus-visible {
  transform: scale(1.06);
  border-color: rgba(var(--accent-rgb), .55);
  background: rgba(0, 0, 0, .82);
  outline: none;
}

.screenshot-lightbox-is-open body {
  overflow: hidden;
}

@media (max-width: 760px) {
  .screenshot-lightbox {
    padding: 12px;
  }

  .screenshot-lightbox__panel {
    border-radius: 14px;
  }

  .screenshot-lightbox__close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
  }
}

/* Website 1.0 — compact Friends directory (separate from the Team profile layout) */
.detail-block--friend-directory {
  width: 100%;
  max-width: 1060px;
  margin-inline: auto;
}
.friend-directory {
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}
.friend-directory__row {
  display: grid;
  grid-template-columns: minmax(150px, 1.05fr) minmax(170px, 1fr) minmax(240px, 1.9fr);
  align-items: center;
  gap: clamp(12px, 2.1vw, 28px);
  padding: clamp(15px, 2vw, 24px);
  border-radius: 12px;
  background: rgba(5, 12, 18, .68);
  border: 1px solid rgba(var(--accent-rgb), .17);
  line-height: 1.45;
  transition: background .2s ease, border-color .2s ease;
}
.friend-directory__row:hover {
  background: rgba(10, 24, 32, .88);
  border-color: rgba(var(--accent-rgb), .38);
}
.friend-directory__name {
  color: var(--accent);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 830;
  text-decoration: none;
}
.friend-directory__name:hover, .friend-directory__site:hover,
.friend-directory__name:focus-visible, .friend-directory__site:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.friend-directory__site { color: var(--text); overflow-wrap: anywhere; text-decoration: none; }
.friend-directory__work { color: var(--muted); overflow-wrap: break-word; }
@media (max-width: 860px) {
  .friend-directory__row { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .friend-directory__name { line-height: 1.3; }
  .friend-directory__site { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .friend-directory__row { transition: none; }
}
