:root {
  color-scheme: dark;
  --bg: #0c1222;
  --bg-cover: #0c1222;
  --bg-cover-surface: #10192c;
  --bg-elevated: #141d33;
  --bg-card: #1a2640;
  --text: #eef2f8;
  --text-muted: #9aa8c4;
  --accent: #c9a227;
  --accent-dim: #8f7420;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tab-h: 62px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --pad-page-x: clamp(1rem, 4.5vw, 2rem);
  --pad-card: clamp(1rem, 3.5vw, 1.55rem);
  --pad-text-inset: clamp(0.75rem, 2vw, 1rem);
  --content-narrow: 640px;
  --content-max: 920px;
  --content-wide: 1080px;
  --touch-min: 44px;
}

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

/* Unregistered <motion> defaults to inline and leaves stray vertical edge bars */
motion {
  display: block;
  width: 100%;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
}

.skip-link:focus {
  left: 0;
}

.install-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
  padding: 0.65rem max(1rem, env(safe-area-inset-right)) 0.65rem max(1rem, env(safe-area-inset-left));
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-size: clamp(0.82rem, 2.5vw, 0.9rem);
}

.install-bar[hidden] {
  display: none !important;
}

.install-bar p {
  margin: 0;
  flex: 1;
}

.install-bar button {
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  cursor: pointer;
}

#install-app-btn {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.install-dismiss {
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
}

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--tab-h) + var(--safe-bottom));
}

.desktop-header {
  display: none;
}

.main {
  flex: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.5rem) var(--pad-page-x) clamp(1.5rem, 4vw, 2.5rem);
}

.panel-body {
  padding-inline: 0.2rem;
}

.panel-body > .hint,
.panel-body > .feed-link,
.panel-body > .swipe-hint {
  padding-inline: 0.15rem;
}

.panel[hidden] {
  display: none !important;
}

.panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  margin: 0 0 1.25rem;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: var(--pad-text-inset);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--pad-card);
  box-shadow: var(--shadow);
}

/* Home / cover — keep backgrounds close to site navy */
#home {
  background: var(--bg-cover);
}

#home .card,
#home .quick-card {
  background: var(--bg-cover-surface);
}

#home .quick-card:hover,
#home .quick-card:focus-visible {
  background: #121f35;
}

.hero {
  display: grid;
  gap: 1.25rem;
}

.hero-copy {
  padding-inline: 0.15rem;
}

.hero-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.hero-tagline {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 10.5rem);
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.pull-quote {
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem var(--pad-text-inset);
  font-family: var(--font-display);
  font-size: 1.15rem;
  border-left: 4px solid var(--accent);
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.quick-card {
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--pad-card);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.quick-card:hover,
.quick-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}

.quick-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.quick-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.refs-compact {
  margin-top: 1rem;
}

.ref-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.ref-list a {
  font-size: 0.9rem;
}

.pull-inline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: var(--pad-text-inset);
  margin: 0 0 1rem;
}

.prose {
  padding-inline: 0.15rem;
}

.pillar strong {
  display: block;
  margin-bottom: 0.25rem;
}

.pillar p {
  margin: 0;
  color: var(--text-muted);
}

.section-photo {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}

.section-photo-secondary {
  margin-top: 0.5rem;
}

.refs-full {
  margin-top: 1.25rem;
}

.ref-card {
  padding: 0.85rem 0.15rem;
  border-bottom: 1px solid var(--border);
}

.ref-card:last-child {
  border-bottom: none;
}

.ref-card h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.ref-label {
  margin: 0;
  font-size: 0.88rem;
  color: var(--accent);
}

.ref-desc {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.stories-banner {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
  margin-bottom: 1rem;
}

.stories-banner-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.stories-banner-copy {
  padding: var(--pad-card);
}

.stories-banner-copy h3 {
  margin: 0 0 0.35rem;
  color: var(--accent);
}

.stories-banner-copy p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
}

.hint,
.swipe-hint,
.loading-note,
.feed-link {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  grid-template-rows: 1fr;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.blog-card:hover,
.blog-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
  outline: none;
}

.blog-thumb {
  display: block;
  width: 100px;
  height: 110px;
  min-height: 110px;
  object-fit: cover;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.blog-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent);
  min-height: 110px;
}

.blog-card-body {
  padding: 1rem 1.15rem;
}

.blog-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-title {
  margin: 0.2rem 0;
  font-size: 0.98rem;
  line-height: 1.3;
}

.blog-summary {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--accent);
}

.teammates-section {
  margin-bottom: 1.5rem;
}

.teammates-faces {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
  padding: 0 0 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  list-style: none;
}

.teammate-face {
  margin: 0;
  text-align: center;
  min-width: 0;
  flex: 0 0 4.75rem;
  scroll-snap-align: start;
}

.teammate-face-img {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--bg-elevated);
}

.teammate-face-name {
  font-size: 0.62rem;
  line-height: 1.25;
  color: var(--text-muted);
  margin: 0;
  word-wrap: break-word;
}

.teammates-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.teammate-quote {
  padding: var(--pad-card);
}

.teammate-quote-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.teammate-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--bg-elevated);
}

#impact .teammate-quote:nth-child(4) .teammate-avatar,
#impact .teammate-face:nth-child(4) .teammate-face-img {
  object-position: center 15%;
}

.teammate-identity {
  min-width: 0;
  flex: 1;
}

.teammate-name {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.teammate-role {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.teammate-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--accent-dim);
}

.teammate-text {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: normal;
  quotes: "\201C" "\201D";
}

.teammate-text::before {
  content: open-quote;
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 0;
  margin-right: 0.15rem;
  vertical-align: -0.15em;
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
}

.panel-title-inline {
  margin-top: 0.5rem;
}

.travel-feature {
  margin-bottom: 1rem;
  padding: 0;
  overflow: hidden;
}

.travel-track {
  position: relative;
  background: var(--bg);
}

.travel-track:has(.travel-hero-img--fit-contain) {
  min-height: 220px;
}

.travel-hero-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.travel-hero-img--fit-contain {
  object-fit: contain;
  object-position: center center;
  max-height: min(72vh, 480px);
  background: var(--bg);
}

.travel-card-img--fit-contain {
  object-fit: contain;
  object-position: center center;
  aspect-ratio: auto;
  height: auto;
  max-height: 200px;
  background: var(--bg);
}

.travel-caption {
  padding: var(--pad-card);
}

.travel-caption h4 {
  margin: 0 0 0.25rem;
}

.travel-caption p {
  margin: 0;
  color: var(--text-muted);
}

.travel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.travel-card-img {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: calc(-1 * var(--pad-card)) calc(-1 * var(--pad-card)) 0.5rem;
  width: calc(100% + 2 * var(--pad-card));
  max-width: none;
}

.split {
  display: grid;
  gap: 1.25rem;
}

.portrait {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.pillar {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.pillar strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

.closing {
  font-style: italic;
  color: var(--text) !important;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.expandable {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.expandable:not([open]) {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.expandable:not([open]):hover {
  border-color: rgba(201, 162, 39, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.expandable[open] {
  border-color: rgba(201, 162, 39, 0.22);
}

.expandable summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem var(--pad-card);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.expandable summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.expandable summary:focus {
  outline: none;
}

.expandable summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: rgba(201, 162, 39, 0.06);
}

.expandable summary::-webkit-details-marker {
  display: none;
}

.expandable summary::marker {
  content: "";
  font-size: 0;
}

.expandable-summary-inner {
  flex: 1;
  min-width: 0;
}

.expandable-title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.expandable-summary {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.expandable-action {
  display: inline-flex;
  align-items: center;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.expandable-action-closed,
.expandable-action-open {
  display: none;
}

.expandable:not([open]) .expandable-action-closed {
  display: inline;
}

.expandable[open] .expandable-action-open {
  display: inline;
}

.expandable-chevron {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.28);
  color: var(--accent);
  transition: transform 0.25s ease, background 0.15s;
}

.expandable-chevron::before {
  content: "";
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.2rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.expandable[open] .expandable-chevron {
  transform: rotate(180deg);
  background: rgba(201, 162, 39, 0.22);
}

.expandable:not([open]) summary:hover .expandable-chevron {
  background: rgba(201, 162, 39, 0.22);
}

.expandable-content {
  padding: 0 var(--pad-card) 1.2rem;
  border-top: 1px solid var(--border);
}

.expandable-content p {
  color: var(--text-muted);
  margin: 0.75rem 0 0;
}

/* Education — uniform gutters and WMU branding */
#journey .panel-title {
  padding-left: var(--pad-text-inset);
  margin-bottom: 0.85rem;
}

#journey .journey-expand-hint {
  margin: 0 0 1.1rem;
  padding-inline: 0.2rem;
  font-size: 0.88rem;
  color: var(--accent);
}

#journey .journey-stack {
  gap: 1rem;
}

#journey .expandable summary {
  padding: 1.15rem var(--pad-card);
}

#journey .expandable:not([open]) .expandable-action-closed::after {
  content: " ›";
  font-size: 1.05em;
}

#journey .expandable-content {
  padding: 0.35rem var(--pad-card) 1.25rem;
}

#journey .expandable-content > p {
  margin: 0.85rem 0 0;
  padding-inline: 0.15rem;
  line-height: 1.6;
}

#journey .expandable-title,
#journey .expandable-summary {
  padding-inline: 0.1rem;
}

#journey .expandable-summary {
  line-height: 1.5;
}

#journey .section-photo {
  margin: 0.65rem 0 0.85rem;
}

#journey .discipline-photo-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem var(--pad-card);
  margin: 0.25rem 0 1rem;
  text-align: center;
}

#journey .discipline-photo {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border: none;
  border-radius: var(--radius);
  object-fit: contain;
}

#journey .education-logo-wrap {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 0.25rem 0.15rem 1.1rem;
  margin: 0 0 0.35rem;
  border-bottom: 1px solid var(--border);
}

#journey .education-logo {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
  background: #f4efe8;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#journey .education-logo-caption {
  margin: 0;
  padding-inline: 0.1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

#journey .cert-list {
  margin: 0.85rem 0 0;
  padding-left: 1.4rem;
  padding-right: 0.2rem;
}

#journey .cert-list li {
  margin-bottom: 0.5rem;
  padding-right: 0.15rem;
  line-height: 1.55;
}

#journey .journey-refs {
  margin-top: 1.25rem;
  padding: var(--pad-card);
}

#journey .journey-refs .subhead {
  margin-top: 0;
  padding-inline: 0.15rem;
}

#journey .ref-card {
  padding: 0.9rem 0.2rem;
}

#journey .ref-card h4,
#journey .ref-label,
#journey .ref-desc {
  padding-inline: 0.1rem;
}

.cert-list {
  margin: 0.75rem 0 0;
  padding-left: 1.35rem;
  padding-right: 0.25rem;
  color: var(--text-muted);
}

.cert-list strong {
  color: var(--text);
}

.subhead {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
  padding-inline: 0.15rem;
  color: var(--accent);
}

.dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--text-muted);
  opacity: 0.4;
  cursor: pointer;
}

.dot.active {
  opacity: 1;
  background: var(--accent);
  transform: scale(1.2);
}

.travel-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--pad-card);
  overflow: hidden;
}

.travel-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.travel-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.quote-block {
  margin-top: 1.5rem;
  text-align: center;
}

.quote-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.quote-block cite {
  color: var(--text-muted);
  font-style: normal;
}

.contact-form label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.contact-form button[type="submit"] {
  width: 100%;
  margin-top: 0.25rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
}

.contact-layout {
  display: grid;
  gap: 1rem;
}

.contact-direct {
  margin-top: 0;
}

.contact-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

.tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: calc(var(--tab-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  padding-inline: max(0.25rem, env(safe-area-inset-left)) max(0.25rem, env(safe-area-inset-right));
  background: rgba(12, 18, 34, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: clamp(0.58rem, 1.8vw, 0.68rem);
  cursor: pointer;
  padding: 0.35rem 0.2rem;
  min-width: 0;
  min-height: var(--touch-min);
}

.tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--accent);
}

.tab-icon {
  font-size: 1rem;
  line-height: 1;
}

/* —— Responsive layout —— */

/* Small phones */
@media (max-width: 379px) {
  :root {
    --tab-h: 56px;
  }

  .tab-label {
    font-size: 0.55rem;
  }

  .expandable-chevron {
    width: 2rem;
    height: 2rem;
  }

  .hero-actions .btn {
    min-width: 100%;
  }
}

/* Large phones / small tablets */
@media (min-width: 480px) {
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .travel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .install-bar {
    flex-wrap: nowrap;
  }

  .blog-card {
    grid-template-columns: 110px 1fr;
  }

  .blog-thumb {
    width: 110px;
    height: 120px;
    min-height: 120px;
  }
}

/* Tablet and desktop */
@media (min-width: 768px) {
  .app-shell {
    padding-bottom: 0;
  }

  .desktop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
    padding-top: max(1rem, env(safe-area-inset-top));
    border-bottom: 1px solid var(--border);
    background: rgba(12, 18, 34, 0.96);
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(10px);
  }

  .brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    white-space: nowrap;
  }

  .desktop-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
  }

  .desk-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    padding: 0.5rem 0.85rem;
    min-height: var(--touch-min);
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
  }

  .desk-btn.active {
    background: var(--bg-card);
    color: var(--accent);
  }

  .tab-bar {
    display: none;
  }

  .main {
    padding: clamp(1.5rem, 3vw, 2.25rem) var(--pad-page-x) clamp(2rem, 4vw, 3rem);
  }

  .hero {
    grid-template-columns: minmax(260px, 1fr) 1.15fr;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
  }

  .hero-photo {
    max-height: min(52vh, 480px);
  }

  .split {
    grid-template-columns: minmax(220px, 300px) 1fr;
    align-items: start;
    gap: clamp(1.25rem, 3vw, 2rem);
  }

  .portrait {
    margin: 0;
    max-width: none;
  }

  .quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .teammates-faces {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }

  .teammate-face {
    flex: none;
  }

  .teammate-face-img {
    width: clamp(3.5rem, 8vw, 4.75rem);
    height: clamp(3.5rem, 8vw, 4.75rem);
  }

  .travel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .travel-hero-img {
    max-height: min(50vh, 420px);
  }

  .travel-hero-img--fit-contain {
    max-height: min(58vh, 520px);
  }

  .blog-card {
    grid-template-columns: 140px 1fr;
  }

  .blog-thumb {
    width: 140px;
    height: 130px;
    min-height: 130px;
  }

  .stories-banner {
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
  }

  .stories-banner-img {
    max-height: none;
    min-height: 100%;
  }

  .contact-layout {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
    gap: 1.25rem;
  }

  .expandable summary {
    padding: 1.2rem clamp(1.15rem, 3vw, 1.65rem);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .main {
    max-width: var(--content-wide);
  }

  .hero {
    grid-template-columns: minmax(300px, 380px) 1fr;
  }

  .split {
    grid-template-columns: minmax(280px, 340px) 1fr;
  }

  .travel-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .quote-text {
    font-size: clamp(1.2rem, 2vw, 1.45rem);
  }
}

/* Wide screens */
@media (min-width: 1280px) {
  .main {
    max-width: var(--content-wide);
    padding-inline: clamp(2rem, 5vw, 3rem);
  }

  .desktop-header {
    padding-inline: clamp(2rem, 5vw, 3rem);
  }
}

/* Landscape phones (short viewport) */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    grid-template-columns: minmax(180px, 32vw) 1fr;
    gap: 1rem;
  }

  .hero-photo {
    max-height: 70vh;
  }

  .travel-hero-img {
    max-height: 55vh;
  }

  .tab-bar {
    --tab-h: 52px;
  }
}

/* Pointer/hover devices only */
@media (hover: hover) and (pointer: fine) {
  .quick-card:hover,
  .quick-card:focus-visible {
    transform: translateY(-2px);
  }

  .desk-btn:hover:not(.active) {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
