* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4f1eb;
  color: #171717;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(244, 241, 235, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 24px;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
}

.nav a:hover {
  color: #000;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.language-switch button {
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.6);
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.language-switch button.active {
  background: #171717;
  color: white;
}

.header-contact,
.btn-primary,
.email-button {
  border-radius: 999px;
  background: #171717;
  color: white;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-contact {
  padding: 10px 20px;
}

.header-contact:hover,
.btn-primary:hover,
.email-button:hover {
  background: rgba(23, 23, 23, 0.86);
  transform: translateY(-1px);
}

.section {
  padding: 80px 0;
}

.hero {
  padding: 90px 0 110px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.04);
}

.hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(0, 0, 0, 0.65);
  font-size: 18px;
  line-height: 1.8;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.btn-secondary {
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.72);
}

.profile-card-wrap {
  position: relative;
}

.glow {
  position: absolute;
  left: -32px;
  top: 44px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  filter: blur(50px);
}

.profile-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 32px;
  background: #1d2528;
  color: white;
  padding: 40px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.profile-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}

.profile-card-top span:first-child {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  font-size: 14px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #34d399;
}

.focus-box {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 32px;
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08), rgba(255,255,255,0));
}

.initials {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 700;
}

.focus-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.focus-box h2 {
  margin: 4px 0 0;
  max-width: 400px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}

.stats div {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  padding: 16px;
}

.stats strong {
  display: block;
  font-size: 26px;
}

.stats span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.border-section {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.45);
}

.two-column {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}

.section-label {
  margin: 0 0 12px;
  color: rgba(0, 0, 0, 0.45);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-label.dark {
  color: rgba(255, 255, 255, 0.42);
}

.two-column h2,
.section-heading h2,
.experience-heading h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.text-stack {
  display: grid;
  gap: 20px;
  color: rgba(0, 0, 0, 0.68);
  font-size: 18px;
  line-height: 1.8;
}

.text-stack p {
  margin: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.section-heading > p {
  max-width: 560px;
  margin: 0;
  color: rgba(0, 0, 0, 0.6);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.65);
  padding: 28px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.035);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.08);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.number {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #171717;
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.badges span {
  width: fit-content;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.055);
  color: rgba(0, 0, 0, 0.56);
  padding: 5px 10px;
  font-size: 12px;
}

.badges .status {
  background: #ecfdf5;
  color: #047857;
}

.project-card h3 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.project-card p {
  margin: 12px 0 0;
  color: rgba(0, 0, 0, 0.62);
  line-height: 1.7;
}

.learn-more {
  display: inline-flex;
  margin-top: 22px;
  font-weight: 700;
  font-size: 14px;
}

.dark-section {
  background: #171717;
  color: white;
}

.experience-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.experience-grid article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  padding: 26px;
}

.experience-grid h3 {
  margin: 0;
  font-size: 20px;
}

.experience-grid p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
}

.notice {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  padding: 24px;
  color: rgba(0, 0, 0, 0.56);
  font-size: 14px;
  line-height: 1.75;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.7);
  padding: 42px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.07);
}

.contact-card p:last-child {
  max-width: 700px;
  margin: 16px 0 0;
  color: rgba(0, 0, 0, 0.62);
  line-height: 1.7;
}

.email-button {
  padding: 16px 28px;
  white-space: nowrap;
}

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 30px 24px;
  text-align: center;
  color: rgba(0, 0, 0, 0.45);
  font-size: 14px;
}

@media (max-width: 1000px) {
  .nav {
    display: none;
  }

  .hero-grid,
  .two-column,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading {
    display: grid;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 32px, 1240px);
  }

  .header-inner {
    align-items: flex-start;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .header-contact {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .section {
    padding: 58px 0;
  }

  .project-grid,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .profile-card,
  .contact-card {
    padding: 26px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .badges {
    align-items: flex-start;
    text-align: left;
  }

  .card-top {
    flex-direction: column;
  }

  .email-button {
    width: 100%;
    text-align: center;
    white-space: normal;
  }
}


/* Project subpages */
.project-hero {
  padding: 76px 0 90px;
}

.project-hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: rgba(0, 0, 0, 0.58);
  font-weight: 700;
  font-size: 14px;
}

.back-link:hover {
  color: #000;
}

.project-hero h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.large-text {
  margin: 28px 0 0;
  max-width: 720px;
  color: rgba(0, 0, 0, 0.66);
  font-size: 20px;
  line-height: 1.75;
}

.project-hero-image {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 34px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-grid article {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.65);
  padding: 28px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.035);
}

.service-grid span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 15px;
  background: #171717;
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.service-grid h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.service-grid p {
  margin: 12px 0 0;
  color: rgba(0, 0, 0, 0.62);
  line-height: 1.7;
}

.tdsat-feature-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.dark-text {
  color: rgba(255, 255, 255, 0.65);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.04);
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 16px 18px 18px;
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1000px) {
  .project-hero-grid,
  .tdsat-feature-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-hero-image,
  .project-hero-image img {
    min-height: 420px;
  }
}

@media (max-width: 680px) {
  .service-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .project-hero-image,
  .project-hero-image img {
    min-height: 320px;
  }

  .gallery-grid img {
    height: 250px;
  }
}


/* Text-only project visual card */
.text-visual-card {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: stretch;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(135deg, #1d2528 0%, #171717 100%);
  color: white;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

.text-visual-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
}

.text-visual-inner > span {
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.text-visual-inner h2 {
  max-width: 520px;
  margin: 80px 0 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.text-visual-list {
  display: grid;
  gap: 12px;
  margin-top: 48px;
}

.text-visual-list p {
  margin: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

@media (max-width: 1000px) {
  .text-visual-card {
    min-height: 420px;
  }
}

@media (max-width: 680px) {
  .text-visual-card {
    min-height: 360px;
  }

  .text-visual-inner {
    padding: 28px;
  }
}


/* FINAL MOBILE FIX
   Strong overrides for real phone/tablet display.
   This block is intentionally at the end of the CSS file. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

@media (max-width: 900px) {
  body {
    font-size: 16px;
  }

  .container {
    width: 100%;
    max-width: none;
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header {
    position: relative;
    top: auto;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px 0;
    align-items: center;
  }

  .brand {
    font-size: 16px;
    padding: 0;
  }

  .nav {
    display: none !important;
  }

  .header-actions {
    margin-left: 0;
    justify-content: flex-end;
  }

  .header-contact {
    display: none !important;
  }

  .language-switch {
    padding: 3px;
  }

  .language-switch button {
    padding: 7px 9px;
    font-size: 12px;
  }

  .section,
  .hero,
  .project-hero {
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .hero-grid,
  .project-hero-grid,
  .two-column,
  .tdsat-feature-grid,
  .contact-card {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .hero h1,
  .project-hero h1 {
    font-size: clamp(36px, 10vw, 48px);
    line-height: 1.04;
    letter-spacing: -0.045em;
  }

  .hero-copy p,
  .large-text,
  .text-stack,
  .section-heading > p,
  .contact-card p:last-child {
    font-size: 16px;
    line-height: 1.65;
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .project-hero-image,
  .project-hero-image img {
    min-height: 260px !important;
    max-height: 320px;
  }

  .project-hero-image {
    border-radius: 22px;
  }

  .project-hero-image img {
    height: 280px !important;
    object-fit: cover;
  }

  .profile-card,
  .contact-card,
  .text-visual-card {
    border-radius: 22px;
  }

  .profile-card,
  .contact-card,
  .text-visual-inner {
    padding: 24px;
  }

  .focus-box {
    min-height: 190px;
  }

  .focus-box h2 {
    font-size: 22px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
  }

  .two-column h2,
  .section-heading h2,
  .experience-heading h2,
  .contact-card h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .project-grid,
  .experience-grid,
  .service-grid,
  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .project-card,
  .service-grid article,
  .experience-grid article {
    border-radius: 22px;
    padding: 22px;
  }

  .card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .badges {
    align-items: flex-start;
    text-align: left;
  }

  .gallery-grid figure {
    border-radius: 20px;
  }

  .gallery-grid img {
    width: 100%;
    height: 220px !important;
    object-fit: cover;
    display: block;
  }

  .gallery-grid figcaption {
    font-size: 13px;
    padding: 12px 14px 14px;
  }

  .email-button {
    width: 100%;
    display: block;
    text-align: center;
    white-space: normal;
    padding: 14px 18px;
  }

  .text-visual-card {
    min-height: auto;
  }

  .text-visual-inner h2 {
    margin-top: 56px;
    font-size: clamp(30px, 8vw, 42px);
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .eyebrow {
    font-size: 12px;
    line-height: 1.5;
  }

  .section,
  .hero,
  .project-hero {
    padding-top: 36px;
    padding-bottom: 42px;
  }

  .project-hero-image,
  .project-hero-image img {
    min-height: 220px !important;
    height: 240px !important;
  }

  .gallery-grid img {
    height: 200px !important;
  }

  .site-footer {
    padding: 24px 14px;
    font-size: 12px;
  }
}


.toptherm-visual {
  background:
    radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.28), transparent 34%),
    radial-gradient(circle at 85% 78%, rgba(16, 185, 129, 0.22), transparent 34%),
    linear-gradient(135deg, #0f2638 0%, #101827 100%);
}

.compact-product-grid .project-card {
  min-height: 100%;
}


/* TopTherm blog insight cards */
.toptherm-photo-hero img {
  object-position: center;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.blog-card {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.04);
}

.blog-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.blog-card div {
  padding: 24px;
}

.blog-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
}

.blog-card h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.blog-card p {
  margin: 12px 0 0;
  color: rgba(0, 0, 0, 0.62);
  line-height: 1.7;
}

.blog-card a {
  display: inline-flex;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .blog-card-grid {
    grid-template-columns: 1fr !important;
  }

  .blog-card img {
    height: 220px;
  }
}


.brickdesk-visual {
  background:
    radial-gradient(circle at 18% 10%, rgba(59, 130, 246, 0.3), transparent 34%),
    radial-gradient(circle at 85% 80%, rgba(79, 70, 229, 0.28), transparent 35%),
    linear-gradient(135deg, #0f172a 0%, #172554 100%);
}


/* BrickDesk app screenshots */
.app-hero-image img {
  object-position: left top;
}

.app-screen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.app-screen-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.08);
}

.app-screen-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.app-screen-grid figcaption {
  padding: 16px 20px 18px;
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .app-screen-grid figure {
    border-radius: 20px;
  }

  .app-screen-grid img {
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
  }

  .app-hero-image img {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: contain !important;
  }

  .app-hero-image {
    min-height: 0 !important;
    max-height: none !important;
  }
}


/* HelpBadge page */
.helpbadge-device-card {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background:
    radial-gradient(circle at 20% 12%, rgba(34, 197, 94, 0.22), transparent 32%),
    radial-gradient(circle at 80% 78%, rgba(59, 130, 246, 0.22), transparent 32%),
    linear-gradient(135deg, #0f172a, #111827);
  color: white;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

.helpbadge-lanyard {
  width: 120px;
  height: 150px;
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-bottom: 0;
  border-radius: 80px 80px 0 0;
  margin-bottom: -18px;
}

.helpbadge-device {
  width: min(78%, 360px);
  border-radius: 34px;
  background: #111827;
  border: 10px solid #020617;
  padding: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.helpbadge-screen {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 24px;
  padding: 26px;
  text-align: center;
}

.helpbadge-screen.green {
  background: linear-gradient(135deg, #16a34a, #064e3b);
}

.helpbadge-screen span {
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.75);
}

.helpbadge-screen strong {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.helpbadge-button {
  width: 58px;
  height: 58px;
  margin: 18px auto 0;
  border-radius: 50%;
  background: #e5e7eb;
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.25);
}

.helpbadge-device-card p {
  margin: 24px 0 0;
  color: rgba(255,255,255,0.72);
  font-weight: 800;
}

.helpbadge-state-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.state-card {
  min-height: 260px;
  border-radius: 28px;
  padding: 28px;
  color: white;
  box-shadow: 0 16px 46px rgba(0,0,0,0.1);
}

.state-card span {
  display: inline-flex;
  margin-bottom: 36px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.18);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.state-card h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.state-card p {
  margin: 16px 0 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}

.state-green {
  background: linear-gradient(135deg, #16a34a, #064e3b);
}

.state-yellow {
  background: linear-gradient(135deg, #f59e0b, #92400e);
}

.state-blue {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

.state-red {
  background: linear-gradient(135deg, #dc2626, #7f1d1d);
}

@media (max-width: 1000px) {
  .helpbadge-state-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .helpbadge-device-card {
    min-height: 420px;
  }
}

@media (max-width: 680px) {
  .helpbadge-state-grid {
    grid-template-columns: 1fr;
  }

  .helpbadge-device-card {
    min-height: 380px;
    border-radius: 24px;
  }

  .helpbadge-device {
    width: min(88%, 330px);
  }
}


/* HelpBadge v2 real images */
.helpbadge-hero-photo img {
  object-position: center;
}

.inline-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  border-radius: 999px;
  background: #171717;
  color: white;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 800;
}

.inline-link:hover {
  background: rgba(23, 23, 23, 0.86);
}

.helpbadge-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.helpbadge-photo-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 16px 46px rgba(0,0,0,0.12);
}

.helpbadge-photo-grid img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.helpbadge-photo-grid figcaption {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: white;
}

.helpbadge-photo-grid figcaption strong {
  font-size: 18px;
}

.helpbadge-photo-grid figcaption span {
  color: rgba(255,255,255,0.68);
  font-size: 13px;
  line-height: 1.55;
}

.helpbadge-logo-strip {
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 28px;
  background: #000;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 16px 46px rgba(0,0,0,0.08);
}

.helpbadge-logo-strip img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;
  padding: 30px;
}

@media (max-width: 1000px) {
  .helpbadge-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .helpbadge-photo-grid img {
    height: 300px;
  }
}

@media (max-width: 680px) {
  .helpbadge-photo-grid {
    grid-template-columns: 1fr;
  }

  .helpbadge-photo-grid img {
    height: auto;
  }

  .helpbadge-logo-strip img {
    height: auto;
    padding: 20px;
  }
}


/* HelpBadge hero size adjustment */
.helpbadge-hero-photo {
  max-width: 440px;
  margin-left: auto;
}

.helpbadge-hero-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 1000px) {
  .helpbadge-hero-photo {
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .helpbadge-hero-photo {
    max-width: 100%;
  }
}


/* HelpBadge image scale adjustment for laptop / desktop */
.helpbadge-hero-photo {
  max-width: 400px;
  margin-left: auto;
}

.helpbadge-photo-grid {
  max-width: 980px;
  margin: 0 auto;
  gap: 16px;
}

.helpbadge-photo-grid img {
  height: 260px;
}

.helpbadge-photo-grid figcaption {
  padding: 15px 16px 17px;
}

.helpbadge-logo-strip {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.helpbadge-logo-strip img {
  height: 210px;
  padding: 26px;
}

@media (max-width: 1200px) {
  .helpbadge-photo-grid {
    max-width: 900px;
  }

  .helpbadge-photo-grid img {
    height: 240px;
  }
}

@media (max-width: 1000px) {
  .helpbadge-hero-photo {
    max-width: 360px;
    margin: 0 auto;
  }

  .helpbadge-photo-grid {
    max-width: 720px;
  }

  .helpbadge-photo-grid img {
    height: 260px;
  }
}

@media (max-width: 680px) {
  .helpbadge-hero-photo {
    max-width: 100%;
  }

  .helpbadge-photo-grid {
    max-width: 100%;
  }

  .helpbadge-photo-grid img {
    height: auto;
  }

  .helpbadge-logo-strip img {
    height: auto;
    padding: 20px;
  }
}


/* FINAL HelpBadge compact image override */
@media (min-width: 901px) {
  .project-hero-image.helpbadge-hero-photo {
    width: 320px !important;
    max-width: 320px !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    border-radius: 24px !important;
  }

  .project-hero-image.helpbadge-hero-photo img {
    width: 320px !important;
    height: 320px !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover !important;
  }

  .helpbadge-photo-grid {
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px !important;
  }

  .helpbadge-photo-grid figure {
    border-radius: 18px !important;
  }

  .helpbadge-photo-grid img {
    height: 185px !important;
    min-height: 0 !important;
    object-fit: cover !important;
  }

  .helpbadge-photo-grid figcaption {
    padding: 12px 12px 14px !important;
  }

  .helpbadge-photo-grid figcaption strong {
    font-size: 14px !important;
  }

  .helpbadge-photo-grid figcaption span {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  .helpbadge-logo-strip {
    max-width: 760px !important;
    border-radius: 20px !important;
  }

  .helpbadge-logo-strip img {
    height: 150px !important;
    padding: 22px !important;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .project-hero-image.helpbadge-hero-photo {
    width: 300px !important;
    max-width: 300px !important;
  }

  .project-hero-image.helpbadge-hero-photo img {
    width: 300px !important;
    height: 300px !important;
  }

  .helpbadge-photo-grid {
    max-width: 720px !important;
  }

  .helpbadge-photo-grid img {
    height: 170px !important;
  }
}

@media (max-width: 900px) {
  .project-hero-image.helpbadge-hero-photo {
    max-width: 360px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .project-hero-image.helpbadge-hero-photo img {
    width: 100% !important;
    height: auto !important;
  }

  .helpbadge-photo-grid {
    max-width: 720px !important;
  }
}


/* HelpBadge layout polish v6 */
@media (min-width: 901px) {
  .project-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px) !important;
    gap: 72px !important;
    align-items: center !important;
  }

  .project-hero-copy {
    max-width: 580px !important;
  }

  .project-hero-image.helpbadge-hero-photo {
    width: 320px !important;
    max-width: 320px !important;
    justify-self: center !important;
    margin: 0 auto !important;
  }

  .project-hero-image.helpbadge-hero-photo img {
    width: 320px !important;
    height: 320px !important;
  }

  .helpbadge-photo-grid {
    max-width: 840px !important;
    margin: 18px auto 0 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    justify-content: center !important;
    gap: 16px !important;
  }

  .helpbadge-photo-grid figure {
    border-radius: 20px !important;
  }

  .helpbadge-photo-grid img {
    height: 190px !important;
  }

  .helpbadge-logo-strip {
    max-width: 860px !important;
    margin: 12px auto 30px !important;
    border-radius: 24px !important;
  }

  .helpbadge-logo-strip img {
    height: 220px !important;
    padding: 34px !important;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .project-hero-grid {
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 58px !important;
  }

  .helpbadge-photo-grid {
    max-width: 780px !important;
  }

  .helpbadge-photo-grid img {
    height: 180px !important;
  }

  .helpbadge-logo-strip {
    max-width: 800px !important;
  }

  .helpbadge-logo-strip img {
    height: 205px !important;
    padding: 30px !important;
  }
}

@media (max-width: 900px) {
  .project-hero-image.helpbadge-hero-photo {
    margin: 10px auto 0 !important;
  }

  .helpbadge-photo-grid {
    margin-top: 14px !important;
  }

  .helpbadge-logo-strip img {
    height: auto !important;
    padding: 24px !important;
  }
}


/* FINAL HelpBadge visible layout redesign v7 */
@media (min-width: 901px) {
  body.helpbadge-page .project-hero {
    padding-top: 64px !important;
    padding-bottom: 74px !important;
  }

  body.helpbadge-page .project-hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 430px) !important;
    gap: 42px !important;
    align-items: center !important;
  }

  body.helpbadge-page .project-hero-copy {
    max-width: 600px !important;
  }

  body.helpbadge-page .project-hero-image.helpbadge-hero-photo {
    width: 380px !important;
    max-width: 380px !important;
    min-height: 0 !important;
    justify-self: center !important;
    margin: 0 !important;
    border-radius: 30px !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.2) !important;
  }

  body.helpbadge-page .project-hero-image.helpbadge-hero-photo img {
    width: 380px !important;
    height: 380px !important;
    min-height: 0 !important;
    object-fit: cover !important;
  }

  body.helpbadge-page #screen-states .section-heading {
    grid-template-columns: 0.75fr 1fr !important;
    align-items: end !important;
    margin-bottom: 34px !important;
  }

  body.helpbadge-page .helpbadge-photo-grid-featured {
    max-width: 860px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }

  body.helpbadge-page .helpbadge-photo-grid-featured figure {
    border-radius: 26px !important;
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.13) !important;
  }

  body.helpbadge-page .helpbadge-photo-grid-featured img {
    height: 360px !important;
    min-height: 0 !important;
    object-fit: cover !important;
  }

  body.helpbadge-page .helpbadge-photo-grid-featured figcaption {
    padding: 18px 20px 20px !important;
  }

  body.helpbadge-page .helpbadge-photo-grid-featured figcaption strong {
    font-size: 18px !important;
  }

  body.helpbadge-page .helpbadge-photo-grid-featured figcaption span {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  body.helpbadge-page .helpbadge-logo-strip {
    max-width: 960px !important;
    margin: 18px auto 34px !important;
    border-radius: 30px !important;
  }

  body.helpbadge-page .helpbadge-logo-strip img {
    height: 300px !important;
    padding: 38px !important;
    object-fit: contain !important;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  body.helpbadge-page .project-hero-grid {
    grid-template-columns: minmax(0, 1fr) 360px !important;
    gap: 34px !important;
  }

  body.helpbadge-page .project-hero-image.helpbadge-hero-photo {
    width: 340px !important;
    max-width: 340px !important;
  }

  body.helpbadge-page .project-hero-image.helpbadge-hero-photo img {
    width: 340px !important;
    height: 340px !important;
  }

  body.helpbadge-page .helpbadge-photo-grid-featured {
    max-width: 780px !important;
    gap: 20px !important;
  }

  body.helpbadge-page .helpbadge-photo-grid-featured img {
    height: 320px !important;
  }

  body.helpbadge-page .helpbadge-logo-strip {
    max-width: 820px !important;
  }

  body.helpbadge-page .helpbadge-logo-strip img {
    height: 260px !important;
  }
}

@media (max-width: 900px) {
  body.helpbadge-page .project-hero-image.helpbadge-hero-photo {
    max-width: 420px !important;
    margin: 0 auto !important;
  }

  body.helpbadge-page .project-hero-image.helpbadge-hero-photo img {
    width: 100% !important;
    height: auto !important;
  }

  body.helpbadge-page .helpbadge-photo-grid-featured {
    grid-template-columns: 1fr !important;
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.helpbadge-page .helpbadge-photo-grid-featured img {
    height: auto !important;
  }

  body.helpbadge-page .helpbadge-logo-strip img {
    height: auto !important;
    padding: 24px !important;
  }
}


/* FINAL HelpBadge corrected layout v8 */
@media (min-width: 901px) {
  body.helpbadge-page .project-hero {
    padding-top: 62px !important;
    padding-bottom: 70px !important;
  }

  body.helpbadge-page .project-hero-grid {
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 88px !important;
    align-items: center !important;
  }

  body.helpbadge-page .project-hero-copy {
    max-width: 620px !important;
  }

  body.helpbadge-page .project-hero-image.helpbadge-hero-photo {
    width: 300px !important;
    max-width: 300px !important;
    min-height: 0 !important;
    justify-self: start !important;
    margin: 0 !important;
    border-radius: 24px !important;
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.16) !important;
  }

  body.helpbadge-page .project-hero-image.helpbadge-hero-photo img {
    width: 300px !important;
    height: 300px !important;
    min-height: 0 !important;
    object-fit: cover !important;
  }

  body.helpbadge-page #screen-states .section-heading {
    grid-template-columns: 0.78fr 1fr !important;
    align-items: end !important;
    margin-bottom: 28px !important;
  }

  body.helpbadge-page .helpbadge-photo-grid,
  body.helpbadge-page .helpbadge-photo-grid-featured {
    max-width: 760px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body.helpbadge-page .helpbadge-photo-grid figure,
  body.helpbadge-page .helpbadge-photo-grid-featured figure {
    border-radius: 18px !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.10) !important;
  }

  body.helpbadge-page .helpbadge-photo-grid img,
  body.helpbadge-page .helpbadge-photo-grid-featured img {
    height: 190px !important;
    min-height: 0 !important;
    object-fit: cover !important;
  }

  body.helpbadge-page .helpbadge-photo-grid figcaption,
  body.helpbadge-page .helpbadge-photo-grid-featured figcaption {
    padding: 12px 12px 14px !important;
  }

  body.helpbadge-page .helpbadge-photo-grid figcaption strong,
  body.helpbadge-page .helpbadge-photo-grid-featured figcaption strong {
    font-size: 14px !important;
  }

  body.helpbadge-page .helpbadge-photo-grid figcaption span,
  body.helpbadge-page .helpbadge-photo-grid-featured figcaption span {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  body.helpbadge-page .helpbadge-logo-strip {
    max-width: 820px !important;
    margin: 18px auto 30px !important;
    border-radius: 24px !important;
  }

  body.helpbadge-page .helpbadge-logo-strip img {
    height: 210px !important;
    padding: 34px !important;
    object-fit: contain !important;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  body.helpbadge-page .project-hero-grid {
    grid-template-columns: minmax(0, 1fr) 280px !important;
    gap: 62px !important;
  }

  body.helpbadge-page .project-hero-image.helpbadge-hero-photo {
    width: 280px !important;
    max-width: 280px !important;
  }

  body.helpbadge-page .project-hero-image.helpbadge-hero-photo img {
    width: 280px !important;
    height: 280px !important;
  }

  body.helpbadge-page .helpbadge-photo-grid,
  body.helpbadge-page .helpbadge-photo-grid-featured {
    max-width: 700px !important;
    gap: 12px !important;
  }

  body.helpbadge-page .helpbadge-photo-grid img,
  body.helpbadge-page .helpbadge-photo-grid-featured img {
    height: 170px !important;
  }

  body.helpbadge-page .helpbadge-logo-strip {
    max-width: 760px !important;
  }

  body.helpbadge-page .helpbadge-logo-strip img {
    height: 190px !important;
  }
}

@media (max-width: 900px) {
  body.helpbadge-page .project-hero-image.helpbadge-hero-photo {
    max-width: 360px !important;
    margin: 0 auto !important;
  }

  body.helpbadge-page .project-hero-image.helpbadge-hero-photo img {
    width: 100% !important;
    height: auto !important;
  }

  body.helpbadge-page .helpbadge-photo-grid,
  body.helpbadge-page .helpbadge-photo-grid-featured {
    grid-template-columns: 1fr !important;
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.helpbadge-page .helpbadge-photo-grid img,
  body.helpbadge-page .helpbadge-photo-grid-featured img {
    height: auto !important;
  }

  body.helpbadge-page .helpbadge-logo-strip img {
    height: auto !important;
    padding: 24px !important;
  }
}

/* HDSM Installer List Generator page */
body.hdsm-page .hdsm-hero-image img { object-position: left top; }
.hdsm-screen-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.hdsm-screen-grid figure { margin: 0; overflow: hidden; border-radius: 26px; border: 1px solid rgba(0,0,0,0.1); background: rgba(255,255,255,0.74); box-shadow: 0 16px 46px rgba(0,0,0,0.08); }
.hdsm-screen-grid img { display: block; width: 100%; height: auto; }
.hdsm-screen-grid figcaption { padding: 16px 20px 18px; color: rgba(0,0,0,0.65); font-size: 14px; font-weight: 800; }
@media (min-width: 901px) {
  body.hdsm-page .project-hero-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
  body.hdsm-page .project-hero-image { min-height: 430px; }
  body.hdsm-page .project-hero-image img { min-height: 430px; object-fit: cover; }
}
@media (max-width: 900px) {
  body.hdsm-page .project-hero-image, body.hdsm-page .project-hero-image img { min-height: 0 !important; height: auto !important; }
  .hdsm-screen-grid figure { border-radius: 20px; }
}
/* Poster Player page */
body.poster-player-page{background:#07111d;color:#f8fafc}body.poster-player-page .site-header{background:rgba(7,17,29,.92);border-bottom-color:rgba(255,255,255,.08)}body.poster-player-page .brand,body.poster-player-page .nav a,body.poster-player-page .site-footer{color:rgba(255,255,255,.86)}body.poster-player-page .project-summary,body.poster-player-page .services,body.poster-player-page .gallery,body.poster-player-page .contact,body.poster-player-page .poster-room-strip{background:#f4f0ea;color:#171717}.poster-hero{background:radial-gradient(circle at 75% 15%,rgba(34,211,238,.22),transparent 32%),radial-gradient(circle at 15% 82%,rgba(59,130,246,.18),transparent 36%),linear-gradient(135deg,#050b14 0%,#0f2035 100%);color:#f8fafc;overflow:hidden}.poster-hero-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(420px,1.15fr);gap:54px;align-items:center}.poster-hero-copy h1{color:#fff}.poster-label{color:#67e8f9}.poster-btn{background:#06b6d4!important;color:#03131f!important}.poster-secondary{background:rgba(255,255,255,.08)!important;color:#fff!important;border-color:rgba(255,255,255,.18)!important}.poster-hero-image{overflow:hidden;border-radius:34px;border:1px solid rgba(103,232,249,.18);box-shadow:0 28px 90px rgba(0,0,0,.44)}.poster-hero-image img{display:block;width:100%;height:500px;object-fit:cover}.poster-dark-section{background:#111827;color:#f8fafc}.poster-gallery-section{background:#f4f0ea}.poster-showcase-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.poster-showcase-grid figure{margin:0;overflow:hidden;border-radius:28px;background:#07111d;color:#f8fafc;box-shadow:0 18px 54px rgba(0,0,0,.14)}.poster-showcase-grid img{display:block;width:100%;height:460px;object-fit:cover}.poster-showcase-grid .poster-wide{grid-column:span 3}.poster-showcase-grid .poster-wide img{height:540px}.poster-showcase-grid figcaption{padding:16px 18px 18px;font-size:14px;font-weight:800;color:rgba(255,255,255,.78)}.poster-room-strip{padding-top:0}.poster-room-strip img{display:block;width:100%;max-height:680px;object-fit:cover;border-radius:34px;box-shadow:0 24px 80px rgba(0,0,0,.22)}@media(max-width:1000px){.poster-hero-grid{grid-template-columns:1fr}.poster-hero-image img{height:auto}.poster-showcase-grid{grid-template-columns:1fr}.poster-showcase-grid .poster-wide{grid-column:auto}.poster-showcase-grid img,.poster-showcase-grid .poster-wide img{height:auto}}

/* Poster Player gallery hotfix */
.poster-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.poster-showcase-grid img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.poster-showcase-grid figcaption {
  padding: 14px 16px 16px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
  color: rgba(255,255,255,0.78);
}
@media (max-width: 1000px) {
  .poster-showcase-grid {
    grid-template-columns: 1fr;
  }
  .poster-showcase-grid img {
    height: auto;
  }
}

/* Poster Player hero mobile/background fix */
body.poster-player-page .poster-hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 18%, rgba(34, 211, 238, 0.22), transparent 26%),
    radial-gradient(circle at 16% 80%, rgba(59, 130, 246, 0.18), transparent 34%),
    linear-gradient(135deg, #06111d 0%, #0c2240 55%, #091522 100%) !important;
}

body.poster-player-page .poster-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 20, 0.06), rgba(5, 11, 20, 0.18));
  pointer-events: none;
  z-index: -1;
}

body.poster-player-page .poster-hero-copy,
body.poster-player-page .poster-hero-copy h1,
body.poster-player-page .poster-hero-copy .section-label,
body.poster-player-page .poster-hero-copy .large-text,
body.poster-player-page .poster-hero-copy .back-link {
  color: #f8fafc;
}

body.poster-player-page .poster-hero-copy .large-text {
  max-width: 640px;
  color: rgba(248, 250, 252, 0.82) !important;
}

body.poster-player-page .poster-hero .back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: rgba(248, 250, 252, 0.68) !important;
}

body.poster-player-page .poster-hero .back-link:hover {
  color: #ffffff !important;
}

@media (max-width: 1000px) {
  body.poster-player-page .poster-hero {
    padding-top: 44px;
    padding-bottom: 48px;
    background:
      radial-gradient(circle at 86% 10%, rgba(34, 211, 238, 0.24), transparent 24%),
      radial-gradient(circle at 14% 88%, rgba(59, 130, 246, 0.2), transparent 32%),
      linear-gradient(180deg, #081522 0%, #0d2742 52%, #091522 100%) !important;
  }

  body.poster-player-page .poster-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
    align-items: start;
  }

  body.poster-player-page .poster-hero-copy {
    order: 1;
  }

  body.poster-player-page .poster-hero-image {
    order: 2;
    border-radius: 24px;
  }

  body.poster-player-page .poster-hero-image img {
    display: block;
    width: 100%;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  body.poster-player-page .poster-hero .button-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body.poster-player-page .poster-hero {
    padding-top: 38px;
    padding-bottom: 42px;
  }

  body.poster-player-page .poster-hero-copy h1 {
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1.04;
    letter-spacing: -0.045em;
  }

  body.poster-player-page .poster-hero-copy .large-text {
    font-size: 16px;
    line-height: 1.65;
  }
}
