:root {
  --bg-100: #f5f3f0;
  --bg-200: #efede9;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(17, 17, 17, 0.12);
  --text: #111111;
  --text-soft: rgba(17, 17, 17, 0.72);
  --muted: rgba(17, 17, 17, 0.56);
  --accent: #000000;
  --aviation-navy: #071b33;
  --epaulette-gold: #c6a84b;
  --accent-soft: rgba(0, 0, 0, 0.04);
  --shadow: rgba(17, 17, 17, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at 50% 8%, rgba(255,255,255,0.98) 0 15%, transparent 42%),
    linear-gradient(180deg, #edf3f8 0%, #f8f8f6 38%, #eef2f5 100%);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

body.page-loading {
  overflow: hidden;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #f7f5f2;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  text-align: center;
  width: min(90vw, 440px);
}

.loader-logo {
  width: min(42vw, 260px);
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(17,17,17,0.08));
}

.loader-meter {
  width: 100%;
}

.loader-label {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.72rem;
  color: rgba(17,17,17,0.7);
  margin-bottom: 0.5rem;
}

.loader-counter {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #111111;
  margin-bottom: 0.8rem;
}

.loader-bar {
  width: 100%;
  height: 4px;
  background: rgba(17,17,17,0.08);
  overflow: hidden;
  position: relative;
}

.loader-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: #111111;
  transition: width 0.08s linear;
}

.page-shell {
  opacity: 0;
  visibility: hidden;
}

.page-shell.visible {
  opacity: 1;
  visibility: visible;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 15%, rgba(255,255,255,0.85) 0 12%, transparent 36%),
    radial-gradient(ellipse at 82% 28%, rgba(255,255,255,0.72) 0 10%, transparent 32%),
    repeating-linear-gradient(
      90deg,
      transparent 0 19.8%,
      rgba(7,27,51,0.035) 19.8% 20%,
      transparent 20% 40%
    );
  opacity: 0.85;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, var(--epaulette-gold) 0 4px, transparent 4px 12px) left 20px top 118px / 42px 44px no-repeat,
    repeating-linear-gradient(to bottom, var(--epaulette-gold) 0 4px, transparent 4px 12px) right 20px top 118px / 42px 44px no-repeat,
    linear-gradient(var(--aviation-navy), var(--aviation-navy)) left 12px top 96px / 58px 92px no-repeat,
    linear-gradient(var(--aviation-navy), var(--aviation-navy)) right 12px top 96px / 58px 92px no-repeat;
  opacity: 0.14;
}

a {
  color: inherit;
}

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

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

.page-shell::before,
.page-shell::after {
  content: "RUNWAY";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(4rem, 10vw, 12rem);
  letter-spacing: 0.12em;
  color: rgba(17, 17, 17, 0.04);
  font-weight: 800;
  pointer-events: none;
  white-space: nowrap;
}

.page-shell::before {
  top: 15%;
}

.page-shell::after {
  content: "COMMERCIAL AIRLINES";
  top: 54%;
  font-size: clamp(1.8rem, 3vw, 4rem);
  letter-spacing: 0.28em;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  margin: 0 -1.5rem 1.15rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 251, 0.9);
  border-bottom: 1px solid rgba(7,27,51,0.12);
  box-shadow: 0 12px 30px rgba(7,27,51,0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-size: 0.75rem;
  color: var(--text);
}

.brand-logo {
  display: block;
  width: clamp(120px, 12vw, 165px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(17, 17, 17, 0.08));
}

.brand-name {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.8);
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: #111111;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}

.brand small,
.brand strong {
  display: block;
}

.main-nav {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a,
.contact-links a {
  color: var(--text-soft);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.main-nav a:hover,
.contact-links a:hover {
  opacity: 1;
}

.nav-button,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 0;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.02em;
}

.nav-button,
.primary-btn {
  background: #111111;
  color: #ffffff;
  border: 1px solid rgba(17,17,17,0.2);
  box-shadow: 0 10px 22px rgba(17,17,17,0.08);
}

.secondary-btn {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(17,17,17,0.18);
  color: var(--text);
}

.nav-button:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 2.2rem 0 1rem;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 1rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
}

.hero-copy h1,
.section-heading h2,
.contact-strip h3,
.info-card h3 {
  margin: 0 0 1rem;
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  color: var(--text);
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
}

.lead,
.timeline-content p,
.stats p,
.profile-list span,
.profile-list strong,
.detail-list span,
.check-list li,
.contact-links a {
  color: var(--text-soft);
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.hero-meta li {
  position: relative;
  padding-left: 1rem;
}

.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 0;
  background: #111111;
}

.profile-card,
.info-card,
.content-panel,
.skills-section,
.contact-strip {
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 20px 40px var(--shadow);
}

.profile-card {
  padding: 1.5rem;
}

.profile-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.status-pill {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 0;
  background: #111111;
  border: 1px solid rgba(17,17,17,0.2);
  color: #ffffff;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-weight: 700;
}

.profile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.profile-list li {
  display: grid;
  gap: 0.3rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(17,17,17,0.08);
}

.profile-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-list span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  color: var(--muted);
}

.profile-list strong {
  font-size: 0.96rem;
  color: var(--text);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

.stats article {
  padding: 1.5rem;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: 0;
}

.stats span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-size: 0.72rem;
}

.stats strong {
  display: block;
  margin: 0.8rem 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--text);
}

.resume-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.5rem;
  padding: 1rem 0 2rem;
  position: relative;
  z-index: 1;
}

.content-panel {
  padding: 1.6rem;
}

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

.section-heading.compact {
  margin-bottom: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(17,17,17,0.08);
}

.timeline-item:first-child {
  border-top: none;
  padding-top: 0;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 0;
  background: #111111;
  box-shadow: 0 0 0 4px rgba(17,17,17,0.06);
  margin-top: 0.45rem;
}

.timeline-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.timeline-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text);
}

.timeline-header span {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.timeline-content p {
  margin: 0;
}

.sidebar {
  display: grid;
  gap: 1.5rem;
}

.info-card {
  padding: 1.5rem;
}

.check-list,
.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  position: relative;
  margin-left: 1.1rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: -1.1rem;
  color: #111111;
  font-weight: 800;
}

.detail-list li {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(17,17,17,0.08);
}

.detail-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

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

.skills-section {
  padding: 1.5rem;
  margin: 0.5rem 0 2rem;
  position: relative;
  z-index: 1;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skills-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 0;
  background: #ffffff;
  border: 1px solid rgba(17,17,17,0.14);
  color: var(--text);
  font-weight: 600;
}

.contact-strip {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(17,17,17,0.12);
  position: relative;
  z-index: 1;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-links a {
  display: grid;
  align-content: center;
  gap: 0.35rem;
  min-height: 96px;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(7,27,51,0.12);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-links a:hover {
  transform: translateY(-3px);
  border-color: rgba(198,168,75,0.65);
  box-shadow: 0 12px 24px rgba(7,27,51,0.08);
}

.contact-links small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.contact-links span {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

section[id] {
  scroll-margin-top: 110px;
}

@media (max-width: 860px) {
  .topbar,
  .hero,
  .resume-grid,
  .contact-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topbar {
    justify-items: center;
  }

  .main-nav {
    gap: 0.75rem 1.25rem;
  }

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

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

@media (max-width: 560px) {
  .page-shell {
    width: 100%;
    max-width: 100vw;
    padding: 1rem 1rem 2rem;
    overflow: clip;
  }

  .page-shell > *,
  .topbar > *,
  .hero > *,
  .resume-grid > *,
  .stats > * {
    min-width: 0;
    max-width: 100%;
  }

  .topbar {
    gap: 0.7rem;
    margin: 0 -1rem 1rem;
    padding: 0.7rem 1rem 0.85rem;
  }

  .brand {
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
  }

  .brand-logo {
    width: 120px;
  }

  .brand-name {
    display: none;
  }

  .main-nav {
    width: 100%;
    max-width: calc(100vw - 2rem);
    gap: 0.55rem 0.8rem;
    justify-content: center;
    font-size: 0.74rem;
  }

  .main-nav a[href="#contact"] {
    display: none;
  }

  .topbar .nav-button {
    padding-block: 0.7rem;
  }

  section[id] {
    scroll-margin-top: 190px;
  }

  .hero {
    gap: 1.5rem;
    padding: 1.25rem 0 0.5rem;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 9.5vw, 2.65rem);
  }

  .hero-copy,
  .profile-card,
  .content-panel,
  .sidebar,
  .skills-section,
  .contact-strip {
    width: 100%;
    max-width: calc(100vw - 2rem);
  }

  .lead {
    font-size: 0.96rem;
  }

  .cta-row {
    gap: 0.75rem;
    margin: 1.5rem 0;
  }

  .hero-meta {
    display: grid;
    justify-items: center;
    gap: 0.65rem;
  }

  .profile-header {
    justify-content: center;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 1.25rem 0;
  }

  .stats article {
    width: 100%;
    min-width: 0;
    padding: 1.1rem 0.75rem;
    text-align: center;
  }

  .stats strong {
    font-size: 1.85rem;
  }

  .profile-card,
  .content-panel,
  .info-card,
  .skills-section,
  .contact-strip {
    padding: 1.25rem;
  }

  .nav-button,
  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .cta-row {
    display: grid;
  }

  .timeline-header {
    display: grid;
    gap: 0.35rem;
  }

  .resume-grid,
  .sidebar {
    gap: 1rem;
  }

  .skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .skills-grid span {
    min-width: 0;
    padding: 0.7rem 0.45rem;
    text-align: center;
    font-size: 0.82rem;
  }

  .contact-strip {
    gap: 1.25rem;
    text-align: center;
  }

  .contact-links {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    justify-content: stretch;
  }

  .contact-links a {
    width: 100%;
    padding: 0.8rem 0.25rem;
    overflow-wrap: anywhere;
    border: 1px solid rgba(17,17,17,0.1);
  }

  .hero-copy h1,
  .lead,
  .profile-list strong,
  .timeline-content,
  .detail-list,
  .stats p {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .reveal-item.is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 360px) {
  .stats,
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
