/* ============================================
   AGO Partners — Global Styles
   Aesthetic: Refined minimal. Swiss private bank
   meets French maison. Quiet confidence.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

@font-face {
  font-family: 'Adobe Garamond Pro';
  src: url('../assets/fonts/AGaramondPro-Regular.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #001136;
  --ink-mid: #1f2b3d;
  --ink-light: #2a4166;
  --ink-soft: #4a5568;
  --warm-gray: #8b8d8e;
  --gray: #757575;
  --gray-light: #94a3b8;
  --stone: #b8b5af;
  --sand: #e8e5df;
  --cream: #f6f5f2;
  --white: #fefefe;
  --gold: #525457;
  --gold-light: #c8a96e;
  --gold-pale: #f3efe7;
  --accent-light: #F1F1F1;
  --border: #DBE5F1;
  --serif: 'Adobe Garamond Pro', 'adobe-garamond-pro', 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  /* Status colors (profile page) */
  --green: #166534;
  --green-bg: #dcfce7;
  --red: #991b1b;
  --red-bg: #fee2e2;
  --amber: #92400e;
  --amber-bg: #fef3c7;
  --blue: #1e40af;
  --blue-bg: #dbeafe;
  --purple: #6b21a8;
  --purple-bg: #f3e8ff;
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: clamp(14px, 2vw, 15px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- UTILITY CLASSES ---- */
.mb-lg { margin-bottom: 48px; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ---- LAYOUT ---- */
.site-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(24px, 5vw, 40px) clamp(20px, 4vw, 32px);
  padding-top: clamp(64px, 10vw, 80px);
  position: relative;
  width: 100%;
}

/* ---- TOP NAV (Partner Access + Language) ---- */
.top-nav {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
}

.partner-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  min-height: 44px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(0, 17, 54, 0.08);
  border: 1px solid rgba(0, 17, 54, 0.2);
  border-radius: 4px;
  transition: all var(--transition);
}
.partner-access:hover {
  background: rgba(0, 17, 54, 0.14);
  border-color: rgba(0, 17, 54, 0.3);
}
.partner-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--warm-gray);
  background: none;
  border: 1px solid rgba(0, 17, 54, 0.15);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}
.partner-logout:hover {
  color: var(--ink);
  border-color: rgba(0, 17, 54, 0.3);
}

/* ---- LANGUAGE TOGGLE ---- */
.lang-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--sand);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
}
.lang-toggle a {
  padding: 10px 14px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--warm-gray);
  transition: all var(--transition);
}
.lang-toggle a:first-child {
  border-right: 1px solid var(--sand);
}
.lang-toggle a.active {
  background: var(--ink);
  color: var(--white);
}
.lang-toggle a:hover:not(.active) {
  color: var(--ink);
  background: var(--gold-pale);
}

/* ---- LOGO ---- */
.logo-container {
  flex-shrink: 0;
}
.logo-container img {
  height: 64px;
  width: auto;
  display: block;
}
/* Logo inside hero-head: fixed size, vertically centered with tagline */
.hero-head .logo-container {
  margin-bottom: 0;
}
.hero-head .logo-container img {
  height: clamp(90px, 28vw, 150px);
  width: auto;
  display: block;
}
/* SVG text logo fallback when no image */
.logo-text {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 8px;
  color: var(--ink);
  text-transform: uppercase;
}

/* ---- HERO (landing page) ---- */
.hero {
  text-align: center;
  max-width: min(720px, 100%);
  width: 100%;
}

/* Logo + tagline side by side, vertically centered */
.hero-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 48px);
  margin-bottom: clamp(32px, 5vw, 40px);
  text-align: left;
}
.hero-head .hero-tagline {
  margin-bottom: 0;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}
.hero-tagline em {
  font-style: normal;
  color: var(--ink);
}

.hero-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 0 auto 32px;
}

.hero-description {
  font-size: clamp(14px, 1.8vw, 15px);
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 660px;
  margin: 0 auto clamp(24px, 4vw, 40px);
  font-weight: 400;
  text-align: left;
}
.hero-description .line {
  display: block;
}
.hero-description .line + .line {
  margin-top: 0.5em;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 12px;
  margin-top: 8px;
}

.hero-contact {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 1px;
  border-bottom: 1px solid var(--ink-soft);
  transition: all var(--transition);
}
.hero-contact:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}


/* ---- STAGGER ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.3s; }
.fade-in:nth-child(3) { animation-delay: 0.5s; }
.fade-in:nth-child(4) { animation-delay: 0.7s; }
.fade-in:nth-child(5) { animation-delay: 0.9s; }

/* ---- FOOTER ---- */
.site-footer {
  text-align: center;
  padding: 20px 32px;
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 0.5px;
}

/* ---- PASSWORD GATE ---- */
.gate-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 32px;
  text-align: center;
}
.gate-box {
  max-width: 380px;
  width: 100%;
}
.gate-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}
.gate-subtitle {
  font-size: 13px;
  color: var(--warm-gray);
  margin-bottom: 32px;
  font-weight: 400;
}
.gate-input-group {
  display: flex;
  gap: 0;
  border: 1px solid var(--sand);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
}
.gate-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}
.gate-input::placeholder {
  color: var(--stone);
  font-weight: 400;
}
.gate-btn {
  padding: 12px 20px;
  min-width: 120px;
  text-align: center;
  border: none;
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}
.gate-btn:hover {
  background: var(--ink-mid);
}
.gate-error {
  margin-top: 12px;
  font-size: 12px;
  color: #b91c1c;
  display: none;
}
.gate-error.visible {
  display: block;
}
.gate-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
}
.gate-input-wrap .gate-input {
  padding-right: 40px;
}
.gate-toggle {
  position: absolute;
  right: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  transition: color var(--transition);
}
.gate-toggle:hover {
  color: var(--ink);
}
.gate-toggle .eye-closed {
  display: none;
}
.gate-toggle.showing .eye-open {
  display: none;
}
.gate-toggle.showing .eye-closed {
  display: block;
}

/* ---- PARTNER PORTAL INDEX ---- */
.portal-wrapper {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 32px;
}
.portal-header {
  margin-bottom: 40px;
}
.portal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.portal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--warm-gray);
  letter-spacing: 0.5px;
  transition: color var(--transition);
}
.portal-back:hover { color: var(--ink); }
.portal-back svg { width: 14px; height: 14px; }

.portal-title {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}
.portal-subtitle {
  font-size: 14px;
  color: var(--ink-mid);
  font-weight: 400;
  line-height: 1.6;
}

.doc-list {
  list-style: none;
  margin-top: 24px;
}
.doc-item {
  border-bottom: 1px solid var(--sand);
}
.doc-item:first-child {
  border-top: 1px solid var(--sand);
}
.doc-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px;
  transition: all var(--transition);
}
.doc-link:hover {
  padding-left: 12px;
  background: var(--gold-pale);
}
.doc-info h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 2px;
}
.doc-info p {
  font-size: 12px;
  color: var(--warm-gray);
  font-weight: 400;
}
.doc-arrow {
  font-size: 18px;
  color: var(--stone);
  transition: color var(--transition);
}
.doc-link:hover .doc-arrow {
  color: var(--gold);
}


/* ============================================
   PROFILE PAGE
   ============================================ */

.profile-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-light);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  text-decoration: none;
  transition: color var(--transition);
  min-height: 44px;
}
.profile-back:hover {
  color: var(--ink);
}
.profile-back svg {
  width: 14px;
  height: 14px;
}

.profile-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 32px;
}

/* ---- PROFILE HEADER ---- */
.profile-header {
  margin-bottom: 36px;
}
.profile-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.profile-header-meta::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gold);
}
.profile-container h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 42px);
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 8px;
  font-weight: 400;
}
.profile-subtitle {
  font-size: 14px;
  color: var(--gray);
  font-weight: 400;
}
.profile-subtitle strong {
  color: var(--gold);
  font-weight: 600;
}
.meta-sep {
  color: var(--stone);
}
.profile-header-rule {
  margin-top: 20px;
  border: none;
  height: 1px;
  background: linear-gradient(to right, var(--ink), var(--gold), transparent);
}

/* ---- EXEC SUMMARY ---- */
.exec-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ink);
  border-radius: 0 8px 8px 0;
  padding: 18px 20px 14px;
  margin: 0 0 8px 0;
}
.exec-summary-title {
  margin: 0 0 10px 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  font-size: 15px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold) !important;
  font-family: var(--sans) !important;
  font-weight: 600 !important;
}
.exec-summary-title .num {
  font-size: 12px !important;
}
.exec-summary-lead {
  font-size: 14px;
  color: var(--ink-mid);
  margin-bottom: 10px;
  line-height: 1.55;
  text-align: left !important;
}
.exec-summary-lead strong {
  color: var(--ink);
}
.exec-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.exec-summary-list li {
  padding: 5px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-mid);
  border-top: 1px solid var(--border);
}
.exec-summary-list li:first-child {
  border-top: none;
  padding-top: 0;
}
.exec-summary-list li:last-child {
  padding-bottom: 0;
}
.exec-summary-list li strong {
  color: var(--ink);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- PROFILE SECTIONS ---- */
.profile-container h2 {
  font-family: var(--serif);
  font-size: clamp(18px, 3vw, 22px);
  color: var(--ink);
  font-weight: 400;
  margin: 36px 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.profile-container h2 .num {
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  margin-right: 8px;
  letter-spacing: 0.5px;
}

.profile-container p {
  margin-bottom: 12px;
  color: var(--ink-mid);
  text-align: justify;
  hyphens: auto;
}
.profile-container p strong {
  color: var(--ink);
  font-weight: 600;
}

.callout {
  background: var(--accent-light);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-mid);
  border-radius: 0 6px 6px 0;
}

/* ---- TABLE (Desktop) ---- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0 24px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}
.table-scroll-hint {
  display: none;
  text-align: center;
  font-size: 11px;
  color: var(--gray-light);
  padding: 6px 0 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 900px;
}
thead {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
th {
  padding: 10px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--ink-mid);
}
td:first-child {
  font-weight: 600;
  color: var(--ink);
  min-width: 130px;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: #fafaf8; }
tbody tr:hover { background: #f0eeeb; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.held { background: var(--green-bg); color: var(--green); }
.exited { background: var(--red-bg); color: var(--red); }
.opa { background: var(--amber-bg); color: var(--amber); }
.private { background: var(--blue-bg); color: var(--blue); }
.pending { background: var(--purple-bg); color: var(--purple); }

/* ---- CARD VIEW (Mobile) ---- */
.card-list {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 24px 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  border-left: 3px solid transparent;
  transition: border-color var(--transition);
}
.card:active {
  border-left-color: var(--border);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.card-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  font-size: 12.5px;
}
.card-label {
  color: var(--gray);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}
.card-value {
  color: var(--ink-mid);
  margin-bottom: 6px;
}
.card-rationale {
  grid-column: 1 / -1;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--gold);
  font-style: italic;
}

/* Card hover: border-left matches status tag color */
.card:has(.held):hover { border-left-color: var(--green); }
.card:has(.exited):hover { border-left-color: var(--red); }
.card:has(.opa):hover { border-left-color: var(--amber); }
.card:has(.private):hover { border-left-color: var(--blue); }
.card:has(.pending):hover { border-left-color: var(--purple); }

/* ---- TWO COLUMNS (Associates) ---- */
.cols2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 16px 0;
}
.col-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
}
.col-box h3 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.col-box ul {
  list-style: none;
  padding: 0;
}
.col-box li {
  padding: 6px 0;
  border-bottom: 1px solid #f1f1ef;
  font-size: 13.5px;
  color: var(--ink-mid);
  line-height: 1.5;
}
.col-box li:last-child { border-bottom: none; }
.col-box li strong { color: var(--ink); }

/* ---- ATLAS BOX ---- */
.atlas-box {
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}
.atlas-box h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.atlas-box p {
  color: #cbd5e1;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.6;
}
.atlas-box strong {
  color: #fff;
}

/* ---- PROFILE FOOTER ---- */
.profile-footer {
  margin-top: 32px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--gray-light);
  text-align: center;
  line-height: 1.5;
}

/* ---- SCROLL TO TOP ---- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), background var(--transition);
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0, 17, 54, 0.2);
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  background: var(--ink-mid);
}


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

@media (max-width: 768px) {
  .hero-tagline { font-size: clamp(24px, 6vw, 32px); }

  /* Profile page */
  .profile-container { padding: 24px 16px; }
  .profile-container p { text-align: left; hyphens: none; font-size: 15.5px; line-height: 1.7; }
  .exec-summary { padding: 14px 16px 10px; }
  .profile-container .exec-summary-lead { font-size: 14.5px; line-height: 1.5; margin-bottom: 8px; }
  .exec-summary-list li { font-size: 14px; line-height: 1.5; padding: 5px 0; }
  .cols2 { grid-template-columns: 1fr; }
  .table-wrapper { display: none; }
  .card-list { display: flex; }
  .atlas-box { padding: 16px 18px; font-size: 15px; }
  .callout { font-size: 14.5px; }
  .profile-container h2 { margin-top: 28px; }
  .profile-subtitle { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 14px; }
  .meta-sep { display: none; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .table-scroll-hint { display: block; }
}

@media (max-width: 600px) {
  .site-wrapper { padding: 24px 20px; padding-top: 72px; }
  .hero-head {
    gap: 20px;
    margin-bottom: 32px;
  }
  .hero-head .logo-container img { height: clamp(60px, 14vw, 80px); }
  .hero-description { font-size: 14px; margin-bottom: 28px; }
  .hero-description.mb-lg { margin-bottom: 32px; }
  .top-nav { top: 16px; right: 16px; gap: 6px; }
  .partner-access { padding: 10px 12px; font-size: 10px; }
  .partner-logout { padding: 10px 12px; font-size: 10px; }
  .lang-toggle a { padding: 10px 12px; min-width: 40px; min-height: 44px; font-size: 10px; }
  .portal-wrapper { padding: 40px 20px; }
  .gate-wrapper { padding: 32px 20px; }
  .gate-input-group { flex-direction: column; }
  .gate-btn { padding: 12px; min-height: 44px; }
  .gate-input { min-height: 44px; padding: 14px 16px; font-size: 16px; }
  .site-footer { padding: 16px 20px; font-size: 10px; }
}

@media (max-width: 480px) {
  .hero-head {
    flex-direction: column;
    text-align: center;
  }
  .hero-head .hero-tagline {
    text-align: center;
  }
}

@media (max-width: 380px) {
  .site-wrapper { padding: 20px 16px; padding-top: 68px; }
  .hero-head { gap: 16px; }
  .top-nav { top: 12px; right: 12px; }

  /* Profile page — tight layout */
  .profile-container { padding: 20px 14px; }
  .profile-container h1 { font-size: clamp(24px, 7vw, 28px); }
  .profile-container h2 { font-size: 18px; }
  .card-grid { grid-template-columns: 1fr; }
  .callout { padding: 12px 14px; font-size: 14px; }
  .atlas-box { padding: 14px 16px; font-size: 14.5px; }
  .col-box { padding: 14px 16px; }
  .profile-container p { font-size: 15px; line-height: 1.7; }
  td, th { font-size: 12px; padding: 7px 8px; }

  /* Portal */
  .portal-wrapper { padding: 32px 14px; }
}

@media (max-width: 340px) {
  .top-nav { gap: 4px; }
  .partner-access { padding: 8px 10px; font-size: 9px; letter-spacing: 0.5px; }
  .partner-logout { padding: 8px 10px; font-size: 9px; letter-spacing: 0.5px; }
  .lang-toggle a { padding: 8px 10px; min-width: 36px; font-size: 9px; }
}


/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  body { background: #fff; font-size: 11px; color: #000; }
  .top-nav, .scroll-top { display: none !important; }
  .site-wrapper { padding: 20px; }
  .site-footer { color: #999; }

  /* Landing pages */
  .hero-description { color: #333; }
  .hero-tagline { color: #000; }

  /* Password gate */
  .gate-wrapper { display: none; }

  /* Portal */
  .portal-wrapper { padding: 20px; max-width: 100%; }

  /* Profile page */
  .profile-container { padding: 20px; max-width: 100%; }
  .table-wrapper { border: none; overflow: visible; display: block !important; }
  table { min-width: unset; font-size: 9.5px; }
  th, td { padding: 4px 5px; }
  .card-list { display: none !important; }
  .atlas-box { background: #f0f0f0; color: #000; }
  .atlas-box p { color: #333; }
  .atlas-box strong { color: #000; }
  .atlas-box h3 { color: var(--ink); }
  .profile-container h2 { break-after: avoid; }
  .col-box, .atlas-box { break-inside: avoid; }
  .profile-back { display: none; }
}
