/*
  DPMO-KRG Systems Showroom
  Main stylesheet

  Easy edit:
  - Brand colors are inside :root
  - Main layout sections are grouped with comments
*/

:root {
  --charcoal: #292C35;
  --paper: #F2F1F1;
  --gold: #D2A639;
  --steel: #979DA9;
  --brown: #866C50;
  --teal: #4DAEB5;
  --ink: #171920;
  --card: rgba(242, 241, 241, 0.075);
  --card-strong: rgba(242, 241, 241, 0.12);
  --line: rgba(242, 241, 241, 0.13);
  --muted: rgba(242, 241, 241, 0.66);
  --shadow: 0 30px 90px rgba(0, 0, 0, .34);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(77, 174, 181, .22), transparent 34%),
    radial-gradient(circle at 84% 10%, rgba(210, 166, 57, .17), transparent 32%),
    radial-gradient(circle at 48% 94%, rgba(134, 108, 80, .23), transparent 34%),
    linear-gradient(135deg, #20232b 0%, var(--charcoal) 50%, #1b1e26 100%);
  color: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 260 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.20'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  position: relative;
  z-index: 1;
}

/* NAV */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.5rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}

.topbar.scrolled {
  background: rgba(41, 44, 53, .80);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
}

.brand-badge {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(242, 241, 241, .96);
  border: 1px solid rgba(210, 166, 57, .65);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .28);
  overflow: hidden;
}

.brand-badge img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .01em;
}

.brand-title span {
  color: var(--steel);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: .18rem;
}

.nav-links {
  display: flex;
  gap: 1.65rem;
  list-style: none;
}

.nav-links a {
  color: rgba(242, 241, 241, .72);
  text-decoration: none;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: color .2s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-action {
  text-decoration: none;
  border: 1px solid rgba(210, 166, 57, .54);
  background: linear-gradient(135deg, var(--gold), #e8c864);
  color: #17140d;
  border-radius: 999px;
  padding: .82rem 1.12rem;
  font-weight: 900;
  font-size: .8rem;
  box-shadow: 0 18px 40px rgba(210, 166, 57, .18);
}

/* HAMBURGER BUTTON — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 1px solid rgba(242, 241, 241, .16);
  border-radius: 12px;
  background: rgba(242, 241, 241, .08);
  cursor: pointer;
  z-index: 1010;
  transition: background .2s ease;
}

.hamburger:hover {
  background: rgba(242, 241, 241, .14);
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--paper);
  transition: transform .3s ease, opacity .3s ease;
}

/* Animate to X when open */
.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* NAV DRAWER — on desktop it's a simple flex row (transparent wrapper) */
.nav-drawer {
  display: contents;
}

/* COMMON */
.section {
  width: min(1440px, calc(100% - 7rem));
  margin: 0 auto;
  padding: 100px 0;
}

.section.tight {
  padding: 72px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
  margin-bottom: 2.2rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .52rem;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}

.section-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 999px;
}

.section-title {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: .98;
  letter-spacing: -.055em;
  max-width: 780px;
}

.section-note {
  color: var(--muted);
  max-width: 540px;
  line-height: 1.75;
  font-size: .98rem;
}

.band {
  background: rgba(242, 241, 241, .045);
  border-block: 1px solid rgba(242, 241, 241, .08);
}

/* HERO */
.hero {
  min-height: 100vh;
  position: relative;
  padding: 120px 3.5rem 64px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, .85fr);
  align-items: center;
  gap: 3rem;
  overflow: hidden;
}

.hero-bg,
.hero-bg-slide {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -3;
}

.hero-bg-slide {
  opacity: 0;
  transform: scale(1.07);
  transition: opacity .9s ease, transform 7s ease;
  background-size: cover;
  background-position: center;
}

.hero-bg-slide.active {
  opacity: .30;
  transform: scale(1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(41, 44, 53, .98) 0%, rgba(41, 44, 53, .88) 43%, rgba(41, 44, 53, .62) 100%),
    radial-gradient(circle at 62% 42%, rgba(77, 174, 181, .22), transparent 38%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  z-index: -1;
  background: linear-gradient(to top, var(--charcoal), transparent);
}

.hero-copy {
  max-width: 770px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--paper);
  background: rgba(77, 174, 181, .13);
  border: 1px solid rgba(77, 174, 181, .40);
  border-radius: 999px;
  padding: .5rem .9rem;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.eyebrow::before {
  content: "";
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(77, 174, 181, .14);
}

h1, .hero-copy h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.5rem, 5.2vw, 4.6rem);
  line-height: .92;
  letter-spacing: -.08em;
  font-weight: 800;
}

.gold-text {
  color: var(--gold);
}

.teal-text {
  color: var(--teal);
}

.hero-subtitle {
  max-width: 650px;
  color: rgba(242, 241, 241, .76);
  font-size: 1.08rem;
  line-height: 1.8;
  margin-top: 1.45rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  border-radius: 999px;
  padding: .96rem 1.25rem;
  font-weight: 900;
  font-size: .86rem;
}

.primary-btn {
  background: var(--gold);
  color: #15130e;
  box-shadow: 0 20px 55px rgba(210, 166, 57, .22);
}

.ghost-btn {
  background: rgba(242, 241, 241, .07);
  color: var(--paper);
  border: 1px solid rgba(242, 241, 241, .16);
}

.hero-stats {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 1rem;
  max-width: 645px;
}

.stat {
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(242, 241, 241, .12);
  background: rgba(242, 241, 241, .055);
  backdrop-filter: blur(14px);
}

.stat strong {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.75rem;
  color: var(--paper);
}

.stat span {
  color: var(--steel);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-slider {
  position: relative;
  min-height: 590px;
}

.slider-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 34px;
  border: 1px solid rgba(242, 241, 241, .16);
  background: rgba(242, 241, 241, .08);
  overflow: hidden;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(24px) scale(.97);
  transition: opacity .5s ease, transform .5s ease;
  backdrop-filter: blur(20px);
}

.slider-card.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.slide-preview {
  position: relative;
  flex: 1;
  min-height: 345px;
  padding: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.slide-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(41, 44, 53, .10), rgba(41, 44, 53, .84));
}

.slide-chip {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(41, 44, 53, .72);
  border: 1px solid rgba(242, 241, 241, .18);
  backdrop-filter: blur(14px);
  padding: .55rem .85rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.slide-body {
  padding: 1.55rem 1.55rem 3.8rem 1.55rem;
  background: rgba(41, 44, 53, .94);
}

.slide-body h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.65rem;
  letter-spacing: -.035em;
  margin-bottom: .55rem;
}

.slide-body p {
  color: rgba(242, 241, 241, .68);
  line-height: 1.68;
  font-size: .94rem;
}

.slider-controls {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  display: flex;
  gap: .65rem;
  z-index: 6;
}

.hero-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(242, 241, 241, .16);
  background: rgba(242, 241, 241, .08);
  color: var(--paper);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.hero-nav-btn:hover {
  background: rgba(77, 174, 181, .18);
  transform: translateY(-1px);
}

.hero-dots {
  position: absolute;
  left: 1.6rem;
  bottom: 1.6rem;
  display: flex;
  gap: .5rem;
  z-index: 6;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(242, 241, 241, .34);
  transition: width .25s ease, background .25s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--gold);
}

/* DEVICE MOCKUPS */
.device-stage {
  position: relative;
  z-index: 2;
  width: min(92%, 760px);
  transform: perspective(1100px) rotateX(2deg) rotateY(-4deg);
}

.device-stage.mobile {
  width: min(56%, 320px);
  transform: perspective(1000px) rotateX(1deg) rotateY(-5deg);
}

.device-stage.desktop {
  width: min(92%, 760px);
}

.device-frame {
  border: 1px solid rgba(242, 241, 241, .20);
  background: rgba(24, 26, 32, .82);
  box-shadow: 0 30px 85px rgba(0, 0, 0, .38);
  overflow: hidden;
}

.device-frame.web,
.device-frame.desktop {
  border-radius: 20px;
}

.device-frame.mobile {
  border-radius: 34px;
  padding: .62rem;
}

.device-topbar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: .42rem;
  padding: 0 .8rem;
  background: rgba(242, 241, 241, .09);
  border-bottom: 1px solid rgba(242, 241, 241, .10);
}

.device-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--steel);
  opacity: .8;
}

.device-url {
  flex: 1;
  height: 12px;
  margin-left: .5rem;
  border-radius: 999px;
  background: rgba(242, 241, 241, .10);
}

.device-screen {
  position: relative;
  min-height: 270px;
  padding: 1rem;
  background-size: cover;
  background-position: center;
}

.device-frame.mobile .device-screen {
  min-height: 430px;
  border-radius: 26px;
  overflow: hidden;
}

.device-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(41, 44, 53, .88), rgba(41, 44, 53, .50));
}

.mock-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: .85rem;
  height: 100%;
}

.mock-sidebar {
  border-radius: 18px;
  background: rgba(242, 241, 241, .09);
  border: 1px solid rgba(242, 241, 241, .10);
  padding: .9rem;
}

.mock-main {
  display: grid;
  gap: .75rem;
}

.mock-line {
  height: 11px;
  border-radius: 999px;
  background: rgba(242, 241, 241, .16);
  margin-bottom: .55rem;
}

.mock-line.short {
  width: 48%;
  background: var(--accent, var(--gold));
  opacity: .78;
}

.mock-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .55rem;
}

.mock-box {
  height: 60px;
  border-radius: 16px;
  background: rgba(242, 241, 241, .11);
  border: 1px solid rgba(242, 241, 241, .10);
}

.mock-table {
  border-radius: 18px;
  background: rgba(242, 241, 241, .09);
  border: 1px solid rgba(242, 241, 241, .10);
  padding: .85rem;
}

.mock-table .mock-line {
  margin-bottom: .65rem;
}

.mobile-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .8rem;
}

.mobile-card {
  min-height: 78px;
  border-radius: 20px;
  background: rgba(242, 241, 241, .10);
  border: 1px solid rgba(242, 241, 241, .12);
  padding: .8rem;
}

.mobile-pill {
  height: 10px;
  border-radius: 999px;
  background: var(--accent, var(--gold));
  width: 45%;
  margin-bottom: .65rem;
}

.desktop-window {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  background: rgba(242, 241, 241, .10);
  border: 1px solid rgba(242, 241, 241, .11);
  padding: 1rem;
}

.desktop-window .mock-boxes {
  grid-template-columns: 1.2fr .8fr;
}

.desktop-window .mock-box {
  height: 115px;
}

/* GALLERY */
.gallery-shell {
  position: relative;
  border-radius: 34px;
  border: 1px solid rgba(242, 241, 241, .13);
  background: linear-gradient(135deg, rgba(242, 241, 241, .09), rgba(242, 241, 241, .045));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid rgba(242, 241, 241, .10);
}

.gallery-toolbar strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.05rem;
}

.gallery-toolbar span {
  color: var(--steel);
  font-size: .82rem;
  font-weight: 700;
}

.gallery-buttons {
  display: flex;
  gap: .55rem;
}

.circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(242, 241, 241, .16);
  color: var(--paper);
  background: rgba(242, 241, 241, .08);
  cursor: pointer;
  font-size: 1.2rem;
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 420px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.2rem;
  scrollbar-width: thin;
}

.gallery-item {
  scroll-snap-align: start;
  min-height: 420px;
  border-radius: 28px;
  border: 1px solid rgba(242, 241, 241, .13);
  background: rgba(41, 44, 53, .62);
  overflow: hidden;
  cursor: pointer;
}

.gallery-preview {
  height: 270px;
  padding: .9rem;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(41, 44, 53, .75), transparent);
}

.gallery-item-body {
  padding: 1.1rem;
}

.gallery-item-body h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.14rem;
  margin-bottom: .4rem;
}

.gallery-item-body p {
  color: rgba(242, 241, 241, .64);
  font-size: .85rem;
  line-height: 1.6;
}

/* FILTER + CARDS */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-bottom: 2rem;
}

.filter-btn {
  border: 1px solid rgba(242, 241, 241, .16);
  background: rgba(242, 241, 241, .055);
  color: rgba(242, 241, 241, .74);
  border-radius: 999px;
  padding: .72rem 1rem;
  font-size: .8rem;
  font-weight: 900;
  cursor: pointer;
  transition: all .2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #061719;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.system-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(242, 241, 241, .075);
  border: 1px solid rgba(242, 241, 241, .13);
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.system-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .26);
}

.card-image {
  position: relative;
  height: 238px;
  padding: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(41, 44, 53, .84), rgba(41, 44, 53, .12));
  z-index: 2;
}

.card-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(41, 44, 53, .76);
  border: 1px solid rgba(242, 241, 241, .18);
  font-size: 1.35rem;
}

.status-pill,
.device-pill {
  position: absolute;
  z-index: 5;
  padding: .45rem .72rem;
  border-radius: 999px;
  background: rgba(41, 44, 53, .72);
  border: 1px solid rgba(242, 241, 241, .14);
  color: var(--paper);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.status-pill {
  right: 1rem;
  top: 1rem;
}

.device-pill {
  right: 1rem;
  bottom: 1rem;
}

.card-body {
  padding: 1.3rem;
}

.category {
  display: inline-flex;
  align-items: center;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  border-radius: 999px;
  padding: .3rem .7rem;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}

.card-title {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.22rem;
  line-height: 1.18;
  margin-bottom: .55rem;
}

.card-desc {
  color: rgba(242, 241, 241, .64);
  font-size: .87rem;
  line-height: 1.66;
  min-height: 72px;
}

.ecosystem-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(242, 241, 241, 0.55);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.28rem 0.6rem;
  margin-bottom: 0.55rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ecosystem-badge .ecosystem-icon {
  font-style: normal;
  opacity: 0.8;
}

.ecosystem-badge strong {
  color: rgba(242, 241, 241, 0.8);
  font-weight: 700;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  border-top: 1px solid rgba(242, 241, 241, .1);
  padding-top: 1rem;
  margin-top: 1rem;
}

.tags {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(242, 241, 241, .08);
  color: rgba(242, 241, 241, .64);
  border-radius: 10px;
  padding: .3rem .5rem;
  font-size: .65rem;
  font-weight: 800;
}

.details-btn {
  flex-shrink: 0;
  border: 0;
  background: var(--accent);
  color: #111;
  border-radius: 999px;
  padding: .6rem .8rem;
  font-size: .75rem;
  font-weight: 900;
  cursor: pointer;
}

/* PROFESSIONAL SECTIONS */
.professional-grid,
.method-grid,
.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.2rem;
}

.pro-card,
.method-card,
.training-card {
  border: 1px solid rgba(242, 241, 241, .13);
  background: rgba(242, 241, 241, .06);
  border-radius: 28px;
  padding: 1.45rem;
}

.pro-icon,
.method-icon,
.training-icon,
.timeline-year {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(210, 166, 57, .14);
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.pro-card h3,
.method-card h3,
.training-card h3,
.timeline-card h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.1rem;
  margin-bottom: .6rem;
}

.pro-card p,
.method-card p,
.training-card p,
.timeline-card p {
  color: rgba(242, 241, 241, .64);
  line-height: 1.7;
  font-size: .88rem;
}

.method-list,
.training-list {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: .55rem;
}

.method-list li,
.training-list li {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  color: rgba(242, 241, 241, .68);
  font-size: .82rem;
}

.method-list li::before,
.training-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: .42rem;
  flex-shrink: 0;
  background: var(--teal);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.timeline-card {
  border: 1px solid rgba(242, 241, 241, .13);
  background: rgba(242, 241, 241, .06);
  border-radius: 28px;
  padding: 1.45rem;
}

/* MODAL DETAIL */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  padding: 2rem;
  background: rgba(9, 10, 14, .84);
  backdrop-filter: blur(18px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  width: min(1120px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 34px;
  border: 1px solid rgba(242, 241, 241, .15);
  background: #252832;
  box-shadow: var(--shadow);
  transform: translateY(20px) scale(.98);
  transition: transform .25s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-hero {
  position: relative;
  min-height: 390px;
  background-size: cover;
  background-position: center;
  padding: 1.4rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.modal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(37, 40, 50, .97), rgba(37, 40, 50, .18));
}

.modal-close {
  position: absolute;
  z-index: 8;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(242, 241, 241, .18);
  background: rgba(41, 44, 53, .65);
  color: var(--paper);
  cursor: pointer;
  font-size: 1.1rem;
}

.modal-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(280px, .55fr);
  gap: 1.5rem;
  align-items: end;
  width: 100%;
}

.modal-title h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1;
  max-width: 780px;
  letter-spacing: -.055em;
}

.modal-title p {
  color: rgba(242, 241, 241, .72);
  line-height: 1.7;
  margin-top: .8rem;
  max-width: 680px;
}

.modal-body {
  padding: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .8rem;
  margin-bottom: 1.6rem;
}

.info {
  border: 1px solid rgba(242, 241, 241, .1);
  background: rgba(242, 241, 241, .055);
  border-radius: 18px;
  padding: 1rem;
}

.info span {
  display: block;
  color: var(--steel);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}

.info strong {
  font-family: "Space Grotesk", Inter, sans-serif;
}

.detail-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 1.2rem;
  align-items: start;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .7rem;
}

.feature {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  border: 1px solid rgba(242, 241, 241, .09);
  background: rgba(242, 241, 241, .04);
  border-radius: 16px;
  padding: .8rem;
  color: rgba(242, 241, 241, .72);
  font-size: .86rem;
}

.feature::before {
  content: "→";
  color: var(--gold);
  font-weight: 900;
}

.modal-section-title {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.18rem;
  margin: 0 0 1rem;
}

.modal-ecosystem-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(242, 241, 241, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.9rem;
  letter-spacing: 0.015em;
}

.modal-ecosystem-badge strong {
  color: #fff;
  font-weight: 700;
}

.detail-timeline {
  display: grid;
  gap: .7rem;
}

.phase-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: .75rem;
  align-items: start;
}

.phase-dot {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(77, 174, 181, .15);
  color: var(--teal);
  font-weight: 900;
  border: 1px solid rgba(77, 174, 181, .25);
}

.phase-card {
  border: 1px solid rgba(242, 241, 241, .10);
  background: rgba(242, 241, 241, .045);
  border-radius: 18px;
  padding: .85rem;
}

.phase-card strong {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  margin-bottom: .25rem;
}

.phase-card span {
  display: block;
  color: rgba(242, 241, 241, .62);
  font-size: .82rem;
  line-height: 1.55;
}

footer {
  width: min(1440px, calc(100% - 7rem));
  margin: 0 auto;
  border-top: 1px solid rgba(242, 241, 241, .12);
  padding: 2.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(242, 241, 241, .62);
  font-size: .86rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--paper);
  font-weight: 900;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}



/* ENHANCED GALLERY / TRAINING / DETAIL SLIDER */
.showroom-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  gap: 1.2rem;
  align-items: stretch;
}

.gallery-feature-panel,
.gallery-small-panel,
.screen-gallery-shell,
.training-gallery-shell,
.professional-page-card {
  border: 1px solid rgba(242, 241, 241, .13);
  background: linear-gradient(135deg, rgba(242, 241, 241, .085), rgba(242, 241, 241, .04));
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-feature-panel {
  min-height: 560px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.gallery-feature-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(41, 44, 53, .94), rgba(41, 44, 53, .22));
}

.gallery-feature-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 720px;
}

.gallery-feature-content h3,
.training-photo-body h3,
.screen-explain-card h4,
.professional-page-card h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: -.035em;
}

.gallery-feature-content h3 {
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1;
  margin-bottom: .8rem;
}

.gallery-feature-content p {
  color: rgba(242, 241, 241, .72);
  line-height: 1.75;
  max-width: 620px;
}

.gallery-side-stack {
  display: grid;
  gap: 1.2rem;
}

.gallery-small-panel {
  min-height: 172px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease;
}

.gallery-small-panel:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
}

.gallery-small-icon {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(77, 174, 181, .16);
  color: var(--gold);
  font-size: 2rem;
}

.gallery-small-panel strong {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  margin-bottom: .35rem;
  font-size: 1.05rem;
}

.gallery-small-panel span {
  display: block;
  color: rgba(242, 241, 241, .64);
  line-height: 1.55;
  font-size: .86rem;
}

.screen-gallery-shell {
  padding: 1.2rem;
}

.screen-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, 520px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .6rem;
}

.screen-gallery-card {
  scroll-snap-align: start;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(242, 241, 241, .12);
  background: rgba(41, 44, 53, .58);
}

.screen-gallery-preview {
  height: 300px;
  padding: 1rem;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.screen-gallery-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(41, 44, 53, .75), rgba(41, 44, 53, .06));
}

.screen-gallery-body {
  padding: 1.1rem;
}

.screen-gallery-body h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.12rem;
  margin-bottom: .4rem;
}

.screen-gallery-body p {
  color: rgba(242, 241, 241, .66);
  font-size: .86rem;
  line-height: 1.65;
}

.device-pair {
  display: grid;
  grid-template-columns: 1fr .42fr;
  gap: 1rem;
  align-items: end;
  width: min(96%, 760px);
  position: relative;
  z-index: 2;
}

.device-pair .device-stage {
  width: 100%;
}

.device-pair .device-stage.mobile {
  width: 100%;
}

.training-gallery-shell {
  padding: 1.2rem;
}

.training-gallery-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 1rem;
}

.training-photo-card {
  min-height: 500px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(242, 241, 241, .13);
  background: rgba(41, 44, 53, .55);
  display: flex;
  flex-direction: column;
}

.training-photo {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.training-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(41, 44, 53, .74), rgba(41, 44, 53, .08));
}

.training-photo-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-radius: 999px;
  padding: .48rem .72rem;
  background: rgba(41, 44, 53, .72);
  border: 1px solid rgba(242, 241, 241, .16);
  backdrop-filter: blur(12px);
  font-weight: 900;
  font-size: .76rem;
}

.training-photo-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.training-photo-body h3 {
  font-size: 1.18rem;
  margin-bottom: .55rem;
}

.training-photo-body p {
  color: rgba(242, 241, 241, .67);
  line-height: 1.65;
  font-size: .87rem;
}

.training-photo-body .training-list {
  margin-top: auto;
  padding-top: 1rem;
}

.professional-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.professional-page-card {
  padding: 1.35rem;
  min-height: 245px;
}

.professional-page-card .page-number {
  color: var(--gold);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.professional-page-card h3 {
  margin-bottom: .55rem;
}

.professional-page-card p {
  color: rgba(242, 241, 241, .67);
  line-height: 1.7;
  font-size: .9rem;
}

.detail-media-slider {
  border: 1px solid rgba(242, 241, 241, .13);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(242, 241, 241, .055);
  margin-bottom: 1.4rem;
}

.detail-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(242, 241, 241, .10);
}

.detail-slider-head strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.05rem;
}

.detail-slider-head span {
  color: var(--steel);
  font-size: .82rem;
  display: block;
  margin-top: .15rem;
}

.detail-slider-controls {
  display: flex;
  gap: .55rem;
}

.detail-slide-window {
  position: relative;
  min-height: 430px;
  overflow: hidden;
}

.detail-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(18px) scale(.985);
  transition: opacity .35s ease, transform .35s ease;
  background-size: cover;
  background-position: center;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(270px, .82fr);
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
}

.detail-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.detail-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(41, 44, 53, .88), rgba(41, 44, 53, .58));
}

.detail-slide>* {
  position: relative;
  z-index: 1;
}

.detail-screen-copy {
  align-self: stretch;
  border-radius: 24px;
  background: rgba(41, 44, 53, .72);
  border: 1px solid rgba(242, 241, 241, .13);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-screen-copy .screen-step {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .72rem;
  margin-bottom: .7rem;
}

.detail-screen-copy h4 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.6rem;
  line-height: 1.02;
  margin-bottom: .7rem;
}

.detail-screen-copy p {
  color: rgba(242, 241, 241, .72);
  line-height: 1.7;
}

.detail-dot-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .9rem 1.1rem;
  border-top: 1px solid rgba(242, 241, 241, .10);
}

.detail-dot {
  border: 1px solid rgba(242, 241, 241, .14);
  background: rgba(242, 241, 241, .06);
  color: rgba(242, 241, 241, .72);
  border-radius: 999px;
  padding: .5rem .75rem;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 900;
}

.detail-dot.active {
  background: var(--gold);
  color: #17140d;
  border-color: var(--gold);
}

.screen-explain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin: .9rem 0 1.5rem;
}

.screen-explain-card {
  border-radius: 22px;
  border: 1px solid rgba(242, 241, 241, .13);
  background: rgba(242, 241, 241, .055);
  padding: 1rem;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}

.screen-explain-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.screen-explain-card .screen-no {
  color: var(--gold);
  font-weight: 900;
  font-size: .75rem;
  margin-bottom: .5rem;
}

.screen-explain-card h4 {
  margin-bottom: .4rem;
  font-size: 1rem;
}

.screen-explain-card p {
  color: rgba(242, 241, 241, .65);
  line-height: 1.55;
  font-size: .82rem;
}

.modal-section-intro {
  color: rgba(242, 241, 241, .68);
  line-height: 1.7;
  margin: -.3rem 0 1rem;
  max-width: 900px;
}

/* ==========================================================================
   RESPONSIVE — Gallery / Detail components
   ========================================================================== */

@media (max-width: 1120px) {

  .showroom-gallery-grid,
  .detail-slide {
    grid-template-columns: 1fr;
  }

  .training-gallery-track,
  .professional-pages-grid,
  .screen-explain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-slide-window {
    min-height: 720px;
  }
}

@media (max-width: 760px) {
  .screen-gallery-track {
    grid-auto-columns: minmax(280px, 86vw);
  }

  .training-gallery-track,
  .professional-pages-grid,
  .screen-explain-grid {
    grid-template-columns: 1fr;
  }

  .gallery-small-panel {
    grid-template-columns: 1fr;
  }

  .device-pair {
    grid-template-columns: 1fr;
  }

  .detail-slide-window {
    min-height: 760px;
  }
}


/* ==========================================================================
   RESPONSIVE — Hero Section (Featured Systems)
   Breakpoints: 1080px → tablet, 760px → mobile, 480px → small mobile
   ========================================================================== */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 120px 2.5rem 64px;
    min-height: auto;
    gap: 2.5rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-slider {
    min-height: 520px;
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-stats {
    max-width: 100%;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-layout,
  .modal-hero-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 64px;
    padding: 0 1rem;
  }

  .brand-title span {
    display: none;
  }

  /* Show hamburger on mobile */
  .hamburger {
    display: flex;
  }

  /* Nav drawer becomes a slide-down overlay */
  .nav-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 64px 0 0 0;
    z-index: 999;
    background: var(--charcoal);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-top: 1px solid var(--line);
    padding: 1.5rem 1.25rem 2rem;
    gap: 0;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
    pointer-events: none;
    height: fit-content !important;
  }

  .nav-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(242, 241, 241, .08);
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: .88rem;
    letter-spacing: .08em;
    color: rgba(242, 241, 241, .85);
  }

  .nav-links a:hover {
    color: var(--gold);
  }

  .nav-action {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 1.25rem;
    padding: .85rem 1.4rem;
    font-size: .82rem;
  }

  .hero {
    padding: 80px 1rem 48px;
    gap: 2rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  h1, .hero-copy h2 {
    font-size: clamp(2rem, 7.5vw, 3rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
  }

  .eyebrow {
    font-size: 0.68rem;
    padding: 0.42rem 0.75rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1.1rem;
  }

  .hero-actions {
    margin-top: 1.5rem;
  }

  .primary-btn,
  .ghost-btn {
    padding: 0.85rem 1.1rem;
    font-size: 0.82rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-top: 1.8rem;
  }

  .stat {
    padding: 0.75rem 0.65rem;
    border-radius: 18px;
    text-align: center;
  }

  .stat strong {
    font-size: 1.35rem;
  }

  .stat span {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
  }

  .hero-slider {
    min-height: clamp(420px, 70vw, 520px);
    max-width: 100%;
  }

  .slider-card {
    border-radius: 24px;
  }

  .slide-preview {
    min-height: 240px;
    padding: 1rem;
  }

  .slide-body {
    padding: 1.15rem 1.15rem 3.2rem;
  }

  .slide-body h2 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
  }

  .slide-body p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  /* Larger touch targets for mobile */
  .hero-nav-btn {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .slider-controls {
    right: 0.8rem;
    bottom: 0.8rem;
    gap: 0.5rem;
  }

  .hero-dots {
    left: 1rem;
    bottom: 1.2rem;
  }

  .hero-dot {
    width: 10px;
    height: 10px;
  }

  .hero-dot.active {
    width: 30px;
  }

  .section {
    width: calc(100% - 2rem);
    padding: 70px 0;
  }

  .gallery-track {
    grid-auto-columns: minmax(280px, 86vw);
  }

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

  footer {
    width: calc(100% - 2rem);
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-overlay {
    padding: 0.8rem;
  }

  .modal-body {
    padding: 1.2rem;
  }
}

/* Small mobile — tightest squeeze */
@media (max-width: 480px) {
  .hero {
    padding: 90px 0.75rem 36px;
    gap: 1.6rem;
  }

  h1, .hero-copy h2 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
    line-height: 1;
  }

  .eyebrow {
    font-size: 0.62rem;
    padding: 0.38rem 0.65rem;
    gap: 0.4rem;
  }

  .eyebrow::before {
    width: 0.4rem;
    height: 0.4rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .stat {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    text-align: left;
  }

  .stat strong {
    font-size: 1.4rem;
    min-width: 52px;
  }

  .stat span {
    font-size: 0.7rem;
  }

  .hero-slider {
    min-height: clamp(380px, 82vw, 440px);
  }

  .slide-preview {
    min-height: 200px;
  }

  .slide-body {
    padding: 1rem 1rem 3rem;
  }

  .slide-body h2 {
    font-size: 1.15rem;
  }

  .slide-body p {
    font-size: 0.8rem;
  }

  .slide-chip {
    top: 0.8rem;
    left: 0.8rem;
    font-size: 0.65rem;
    padding: 0.45rem 0.7rem;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1rem;
  }

  .section {
    width: calc(100% - 1.25rem);
  }

  .section-title {
    font-size: clamp(1.6rem, 6.5vw, 2.4rem);
  }

  footer {
    width: calc(100% - 1.25rem);
    padding: 1.8rem 0;
    font-size: 0.78rem;
  }
}


/* ==========================================================================
   DPM PORTRAIT HERO
   ========================================================================== */

.dpm-portal-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  /* Make sure animations run properly */
  opacity: 1 !important;
}

.dpm-portal-hero-bg {
  position: absolute;
  inset: -5%;
  z-index: 1;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  background-color: var(--ink);
  animation: dpmHeroZoom 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes dpmHeroZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.06);
  }
}

.dpm-portal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(41, 44, 53, 0.96) 0%,
      rgba(41, 44, 53, 0.75) 30%,
      rgba(23, 25, 32, 0.20) 60%,
      rgba(23, 25, 32, 0.05) 100%);
  z-index: 2;
}

.dpm-portal-hero-content {
  position: relative;
  z-index: 10;
  padding: 4rem 3.5rem 5.5rem;
  max-width: 820px;
  box-sizing: border-box;
}

.dpm-portal-hero-headline {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--paper);
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  animation: dpmHeroTextReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.dpm-portal-hero-accent {
  color: var(--teal);
  font-style: italic;
  font-weight: 800;
}

.dpm-portal-hero-description {
  font-family: Inter, sans-serif;
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 2.2rem;
  animation: dpmHeroTextReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.dpm-portal-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 2rem;
  background: var(--gold);
  color: #15130e;
  border: none;
  border-radius: 999px;
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 20px 55px rgba(210, 166, 57, 0.22);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  animation: dpmHeroTextReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both;
}

.dpm-portal-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 60px rgba(210, 166, 57, 0.35);
  background: var(--paper);
  color: var(--ink);
}

@keyframes dpmHeroTextReveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- DPM Portrait Hero — Responsive ---- */

/* Tablet */
@media (max-width: 1080px) {
  .dpm-portal-hero-content {
    padding: 3.5rem 2.5rem 4.5rem;
    max-width: 680px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .dpm-portal-hero {
    height: auto;
    min-height: 100svh;
    padding-top: 64px;
    align-items: center;
  }

  .dpm-portal-hero-bg {
    /* Position so the face is roughly centered on narrow screens */
    background-position: 72% 20%;
  }

  .dpm-portal-hero-overlay {
    /* Switch from left-to-right to a bottom-heavy gradient so text
       is readable over a centered background image on narrow screens */
    background: linear-gradient(to top,
        rgba(41, 44, 53, 0.97) 0%,
        rgba(41, 44, 53, 0.88) 35%,
        rgba(41, 44, 53, 0.55) 65%,
        rgba(23, 25, 32, 0.30) 100%);
  }

  .dpm-portal-hero-content {
    padding: 3rem 1.25rem 3.5rem;
    max-width: 100%;
  }

  .dpm-portal-hero-headline {
    font-size: clamp(1.85rem, 7vw, 2.6rem);
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 1.15rem;
  }

  .dpm-portal-hero-description {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 100%;
    margin-bottom: 1.8rem;
  }

  .dpm-portal-hero-cta {
    padding: 0.85rem 1.65rem;
    font-size: 0.85rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .dpm-portal-hero {
    min-height: 100svh;
    padding-top: 64px;
  }

  .dpm-portal-hero-content {
    padding: 2rem 0.85rem 2.8rem;
  }

  .dpm-portal-hero-headline {
    font-size: clamp(1.6rem, 8vw, 2.1rem);
    margin-bottom: 1rem;
    line-height: 1.14;
  }

  .dpm-portal-hero-headline br {
    /* Allow the headline to reflow naturally on very narrow screens */
    display: none;
  }

  .dpm-portal-hero-description {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
  }

  .dpm-portal-hero-cta {
    /* Full-width CTA for easy thumb reach */
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem;
  }
}

/* Landscape phones / short viewports — prevent hero from being too tall */
@media (max-height: 500px) and (orientation: landscape) {
  .dpm-portal-hero {
    height: auto;
    min-height: auto;
    padding: 80px 0 2rem;
  }

  .dpm-portal-hero-content {
    padding: 1.5rem 2rem 2rem;
  }

  .dpm-portal-hero-headline {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .dpm-portal-hero-description {
    margin-bottom: 1.2rem;
  }

  .hero {
    min-height: auto;
    padding-top: 80px;
  }
}