/* ========================================
   HumanOS — International Institute for Human Potential
   Ultra-minimal institutional stylesheet
   ======================================== */

/* --- Reset & Base --- */

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

:root {
  --black: #000000;
  --white: #ffffff;
  --grey-light: #f5f5f5;
  --grey-mid: #e0e0e0;
  --grey-text: #666666;
  --font-serif: 'Optima', 'Optima Nova', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --font-sans: 'Optima', 'Optima Nova', 'Segoe UI', Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --section-pad: clamp(80px, 12vw, 160px);
  --side-pad: clamp(24px, 5vw, 80px);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--black);
  background-color: var(--white);
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

::selection {
  background: var(--black);
  color: var(--white);
}

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

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


/* --- Reveal Animation --- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ========================================
   NAVIGATION
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--side-pad);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
  border-bottom-color: var(--grey-mid);
  padding-top: 18px;
  padding-bottom: 18px;
}

.nav__logo {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav__links a:hover::after {
  width: 100%;
}


/* ========================================
   HERO
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--side-pad) 80px;
}

.hero__headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 900px;
  margin-bottom: 40px;
}

.hero__sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.92rem, 1.4vw, 1.08rem);
  line-height: 1.75;
  color: var(--grey-text);
  max-width: 680px;
  letter-spacing: 0.005em;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
  transition: opacity 0.3s;
}

.hero__scroll-indicator:hover {
  opacity: 0.7;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: var(--black);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.3;
  }

  50% {
    transform: scaleY(0.5);
    opacity: 0.8;
  }
}


/* ========================================
   SECTIONS — SHARED
   ======================================== */

.section {
  padding: var(--section-pad) var(--side-pad);
}

.section--grey {
  background: var(--grey-light);
}

.section__label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-text);
  text-align: center;
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 64px;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}


/* ========================================
   INTERACTIVE FLOWCHART
   ======================================== */

.flowchart {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --- Tiers --- */

.fc-tier {
  display: flex;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.fc-tier--0 {
  justify-content: center;
}

.fc-tier--1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
  max-width: 900px;
}

.fc-tier--2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 20px;
  width: 100%;
  max-width: 960px;
}

.fc-tier--3 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 1100px;
}

/* --- Nodes --- */

.fc-node {
  border: 1px solid var(--grey-mid);
  border-radius: 10px;
  padding: 20px 20px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  background: var(--white);
}

.fc-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  border-color: var(--black);
}

.fc-node.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.fc-node.is-active .fc-node__sub,
.fc-node.is-active .fc-node__detail {
  color: rgba(255, 255, 255, 0.6);
}

.fc-node.is-dimmed {
  opacity: 0.2;
  transform: scale(0.97);
}

/* Root node */
.fc-node--root {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  padding: 28px 48px;
  border-radius: 12px;
  min-width: 320px;
}

.fc-node--root:hover {
  background: #111;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.fc-node--root .fc-node__sub {
  color: rgba(255, 255, 255, 0.55);
}

.fc-node--root .fc-node__detail {
  color: rgba(255, 255, 255, 0.4);
}

/* Leg nodes */
.fc-node--leg {
  padding: 20px 24px;
  border-width: 1.5px;
  border-color: #ccc;
  background: var(--grey-light);
}

/* Mid nodes */
.fc-node--mid {
  padding: 18px 16px;
  border-color: #ccc;
  background: var(--grey-light);
}

/* Bottom nodes */
.fc-node--bottom {
  padding: 14px 10px;
  background: var(--white);
  border-color: var(--grey-mid);
}

/* Node typography */

.fc-node__label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.fc-node--root .fc-node__label {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.fc-node--bottom .fc-node__label {
  font-size: 0.78rem;
}

.fc-node__sub {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--grey-text);
  margin-top: 5px;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.fc-node--bottom .fc-node__sub {
  font-size: 0.68rem;
}

.fc-node__detail {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.66rem;
  color: #999;
  margin-top: 3px;
  line-height: 1.5;
}


/* --- Connectors --- */

.fc-conn {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.fc-conn__v {
  width: 1px;
  height: 28px;
  background: var(--grey-mid);
}

.fc-conn__h {
  height: 1px;
  background: var(--grey-mid);
}

.fc-conn__drop {
  position: absolute;
  width: 1px;
  height: 14px;
  background: var(--grey-mid);
  bottom: 0;
}

/* Single vertical connector */
.fc-conn--single {
  height: 28px;
  align-items: flex-start;
}

/* Fork into 2 */
.fc-conn--fork-2 {
  height: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.fc-conn--fork-2 .fc-conn__h {
  width: 50%;
  position: absolute;
  top: 0;
  left: 25%;
}

.fc-conn--fork-2 .fc-conn__drop--l {
  left: 25%;
}

.fc-conn--fork-2 .fc-conn__drop--r {
  right: 25%;
}

/* Double branch connector (Tier 1 → Tier 2) */
.fc-conn--double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  height: 42px;
}

.fc-conn__branch {
  position: relative;
  display: flex;
  justify-content: center;
}

.fc-conn__branch .fc-conn__v {
  height: 14px;
}

.fc-conn__branch .fc-conn__h {
  position: absolute;
  top: 14px;
  width: 60%;
  left: 20%;
}

.fc-conn__branch .fc-conn__drop {
  top: 14px;
  height: 28px;
}

.fc-conn__branch--left .fc-conn__drop--l {
  left: 20%;
}

.fc-conn__branch--left .fc-conn__drop--r {
  right: 20%;
}

/* Wide fork (Tier 2 → Tier 3) */
.fc-conn--wide-fork {
  height: 42px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fc-conn--wide-fork .fc-conn__v {
  height: 14px;
}

.fc-conn--wide-fork .fc-conn__h {
  width: 90%;
  margin: 0 auto;
}


/* --- Connection Notes --- */

.fc-connections {
  text-align: center;
  margin-top: 32px;
  padding: 0 20px;
}

.fc-connections__note {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--grey-text);
  line-height: 1.8;
  letter-spacing: 0.01em;
}


/* --- Legal Note --- */

.fc-legal {
  margin-top: 32px;
  padding: 16px 28px;
  border: 1px dashed var(--grey-mid);
  border-radius: 6px;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.fc-legal p {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  color: #aaa;
  letter-spacing: 0.01em;
  line-height: 1.6;
}


/* --- Tooltip --- */

.fc-tooltip {
  position: fixed;
  z-index: 200;
  background: var(--black);
  color: var(--white);
  padding: 14px 20px;
  max-width: 320px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.005em;
}

.fc-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* --- Flowchart note --- */

.flowchart-note {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--grey-text);
  margin-top: 48px;
  letter-spacing: 0.01em;
}


/* ========================================
   MODEL — TWO COLUMN
   ======================================== */

.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.model-col__label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--grey-mid);
}

.model-col__heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.model-col__text {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--grey-text);
}

.model-col__text p+p {
  margin-top: 16px;
}

.model-col__sub-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--black);
}

.model-col__list {
  list-style: none;
  padding: 0;
}

.model-col__list li {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--grey-text);
  padding: 6px 0;
  border-bottom: 1px solid var(--grey-light);
}

.model-col__list li:last-child {
  border-bottom: none;
}


/* ========================================
   VISION
   ======================================== */

.vision {
  padding: var(--section-pad) var(--side-pad);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vision__quote {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin-bottom: 36px;
}

.vision__sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.88rem, 1.2vw, 1.02rem);
  line-height: 1.8;
  color: var(--grey-text);
  max-width: 640px;
}


/* ========================================
   DPR
   ======================================== */

.dpr {
  padding: var(--section-pad) var(--side-pad);
  border-top: 1px solid var(--grey-mid);
}

.dpr__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.dpr__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}

.dpr__text {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--grey-text);
  margin-bottom: 48px;
}

.dpr__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  cursor: pointer;
  transition: background 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    color 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}


/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: 80px var(--side-pad) 60px;
  border-top: 1px solid var(--grey-mid);
  text-align: center;
}

.footer__name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer__institute {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.82rem;
  color: var(--grey-text);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--grey-text);
  margin-top: 20px;
  letter-spacing: 0.01em;
}

/* ========================================
   FC NESTED BRANCH LAYOUT (Robust Tree)
   ======================================== */

.fc-tier--nested {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 0;
  width: 100%;
}

.fc-leg {
  display: flex;
  justify-content: center;
  gap: 40px;
  /* Space between Puzzle branch and Teacheristic */
  position: relative;
}

.fc-leg--left {
  align-items: flex-start;
}

.fc-leg--right {
  justify-content: center;
}

/* Branch Container */
.fc-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.fc-branch--leaf {
  margin-top: 0;
}

/* Connector from Parent Node Down to Rail */
.fc-conn--branch {
  position: relative;
  height: 20px;
  /* Distance from parent bottom to rail */
  width: 1px;
  background: var(--grey-lines);
  margin-bottom: 0;
}

/* Children Container */
.fc-branch__children {
  display: flex;
  justify-content: center;
  position: relative;
  padding-top: 20px;
  /* Space for vertical connectors up to rail */
  gap: 20px;
}

/* New Strategy: Pseudo-elements on children for perfect lines */
.fc-branch__children>.fc-node {
  position: relative;
}

/* Vertical line UP from each child to the rail */
.fc-branch__children>.fc-node::before {
  content: '';
  position: absolute;
  top: -20px;
  /* Connects to rail */
  left: 50%;
  width: 1px;
  height: 20px;
  background: var(--grey-lines);
}

/* Horizontal line segments (The Rail) */
.fc-branch__children>.fc-node::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  /* Spans full width of node */
  height: 1px;
  background: var(--grey-lines);
  z-index: -1;
}

/* First child: Rail starts at 50% (center) and goes right */
.fc-branch__children>.fc-node:first-child::after {
  left: 50%;
  width: 50%;
}

/* Last child: Rail starts at 0 and goes to 50% (center) */
.fc-branch__children>.fc-node:last-child::after {
  width: 50%;
  left: 0;
}

/* Special case: Single child (if any) - no rail needed, just vertical */
.fc-branch__children>.fc-node:only-child::after {
  display: none;
}

.fc-branch__children>.fc-node:only-child::before {
  height: 20px;
  top: -20px;
}

/* Teacheristic Shim */
.fc-conn--shim {
  height: 0;
}

/* Uniform Node Design */
.fc-node--bottom {
  min-width: 140px;
  /* Ensure uniform width */
  max-width: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  /* If inside flex stretch */
}

/* Responsive tweaks */
@media (max-width: 1200px) {
  .fc-tier--nested {
    gap: 40px;
  }

  .fc-leg {
    gap: 20px;
  }
}


.footer__line {
  width: 40px;
  height: 1px;
  background: var(--grey-mid);
  margin: 24px auto 0;
}


/* ========================================
   DPR PASSWORD MODAL
   ======================================== */

.dpr-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.dpr-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.dpr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dpr-modal__card {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  padding: 48px 40px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
}

.dpr-modal.is-open .dpr-modal__card {
  transform: translateY(0) scale(1);
}

.dpr-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
  line-height: 1;
}

.dpr-modal__close:hover {
  color: var(--black);
}

.dpr-modal__icon {
  margin-bottom: 20px;
  color: var(--black);
}

.dpr-modal__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.dpr-modal__sub {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--grey-text);
  line-height: 1.7;
  margin-bottom: 32px;
}

.dpr-modal__form {
  text-align: left;
}

.dpr-modal__field {
  margin-bottom: 18px;
}

.dpr-modal__field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: 8px;
}

.dpr-modal__field input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 400;
  border: 1px solid var(--grey-mid);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  background: var(--grey-light);
  color: var(--black);
}

.dpr-modal__field input:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
  background: var(--white);
}

.dpr-modal__error {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  color: #c00;
  min-height: 20px;
  margin-bottom: 8px;
  text-align: center;
  transition: opacity 0.2s;
}

.dpr-modal__submit {
  display: block;
  width: 100%;
  padding: 14px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.dpr-modal__submit:hover {
  background: #222;
  transform: translateY(-1px);
}

.dpr-modal__submit:active {
  transform: translateY(0);
}


/* ========================================
   DPR PDF VIEWER
   ======================================== */

.dpr-viewer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  background: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.dpr-viewer.is-open {
  opacity: 1;
  visibility: visible;
}

.dpr-viewer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--grey-mid);
  background: var(--white);
  flex-shrink: 0;
}

.dpr-viewer__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.dpr-viewer__close {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--grey-mid);
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--black);
}

.dpr-viewer__close:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.dpr-viewer__body {
  flex: 1;
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

.dpr-viewer__iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* ========================================
   GALLERY SLIDER
   ======================================== */

.gallery {
  padding: 80px var(--side-pad);
  border-bottom: 1px solid var(--grey-mid);
  background: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.gallery__container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.gallery__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 20px;
  /* Space for scrollbar if any, or shadow */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__card {
  flex: 0 0 auto;
  width: 340px;
  scroll-snap-align: center;
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gallery__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--black);
}

.gallery__icon {
  height: 120px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__icon img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  /* Make logos monochrome or consistent if needed, but keeping color for now */
}

.gallery__placeholder {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--grey-text);
  border: 1px dashed var(--grey-mid);
  padding: 8px 16px;
  border-radius: 4px;
}

.gallery__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--black);
}

.gallery__desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--grey-text);
  font-weight: 300;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--grey-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: var(--black);
}

.gallery__nav:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.gallery__nav--prev {
  left: -24px;
}

.gallery__nav--next {
  right: -24px;
}

@media (max-width: 768px) {
  .gallery__nav {
    display: none;
    /* Hide arrows on mobile, rely on swipe */
  }

  .gallery {
    padding: 60px 20px;
  }

  .gallery__card {
    width: 280px;
  }

  .gallery__track {
    gap: 16px;
  }
}


/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 960px) {
  .fc-tier--1 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .fc-conn--fork-2,
  .fc-conn--double {
    display: none;
  }

  .model-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 640px) {
  .nav__links {
    gap: 20px;
  }

  .nav__links a {
    font-size: 0.7rem;
  }

  .nav__logo {
    font-size: 0.72rem;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero__headline {
    margin-bottom: 28px;
  }

  .section__title {
    margin-bottom: 40px;
  }

  .fc-tier--2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fc-tier--3 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .fc-conn--wide-fork {
    display: none;
  }

  .dpr__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-outline {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .dpr-modal__card {
    padding: 36px 24px 28px;
  }
}