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

:root {
  --ink:        #1a2535;
  --ink-mid:    #3d4f65;
  --ink-soft:   #7a90a8;
  --cream:      #f4f8fc;
  --cream-dark: #e8f0f8;
  --gold:       #c9a55a;
  --gold-light: #e8d4a0;
  --sky:        #4a8fb5;
  --navy:       #1e3a5c;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: -webkit-linear-gradient(top, #2c4a6e 0%, #3d6494 35%, #5a85b0 65%, #7aabcc 100%);
  background: linear-gradient(180deg, #2c4a6e 0%, #3d6494 35%, #5a85b0 65%, #7aabcc 100%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image:
    radial-gradient(ellipse 300px 80px at 15% 25%, rgba(255,255,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 250px 60px at 80% 15%, rgba(255,255,255,0.06) 0%, transparent 70%),
    radial-gradient(circle at 20% 12%, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 3%),
    radial-gradient(circle at 75% 8%,  rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 3%),
    radial-gradient(circle at 45% 25%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 2%);
  z-index: 0;
  pointer-events: none;
}

.horizon {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 240px;
  background: -webkit-linear-gradient(bottom, rgba(255,210,120,0.2) 0%, transparent 100%);
  background: linear-gradient(to top, rgba(255,210,120,0.2) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.gold-rule {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 2rem;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.wings-badge {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
  color: var(--gold);
}

.wing-line {
  width: 50px;
  height: 1px;
  background: -webkit-linear-gradient(left, transparent, var(--gold));
  background: linear-gradient(90deg, transparent, var(--gold));
}
.wing-line.right {
  background: -webkit-linear-gradient(right, transparent, var(--gold));
  background: linear-gradient(270deg, transparent, var(--gold));
}

/* Avatar — max-width/height keeps it inside viewport on all screen sizes */
.avatar-ring {
  width: 420px;
  height: 420px;
  max-width: 88vw;
  max-height: 88vw;
  border-radius: 20px;
  border: 3px solid var(--gold);
  position: relative;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  margin: 0 auto 2rem;
  /* Fix Safari border-radius + overflow clipping */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}
.avatar-ring::after {
  content: '';
  position: absolute;
  top: -8px; right: -8px; bottom: -8px; left: -8px;
  border-radius: 26px;
  border: 1px solid rgba(201,165,90,0.3);
  pointer-events: none;
  z-index: 2;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.hero-rank {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,240,180,0.85);
  margin-bottom: 0.6rem;
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 20px rgba(30,60,100,0.3);
}
.hero-name em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-tagline {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 460px;
}

.scroll-hint {
  position: relative;
  z-index: 3;
  padding: 1.25rem 1rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 1px;
  height: 28px;
  background: -webkit-linear-gradient(top, transparent, rgba(201,165,90,0.6));
  background: linear-gradient(to bottom, transparent, rgba(201,165,90,0.6));
  -webkit-animation: scrollPulse 2s ease-in-out infinite;
  animation: scrollPulse 2s ease-in-out infinite;
}

@-webkit-keyframes scrollPulse {
  0%, 100% { opacity: 0.4; -webkit-transform: translateY(-4px); transform: translateY(-4px); }
  50%       { opacity: 1;   -webkit-transform: translateY(4px);  transform: translateY(4px);  }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; -webkit-transform: translateY(-4px); transform: translateY(-4px); }
  50%       { opacity: 1;   -webkit-transform: translateY(4px);  transform: translateY(4px);  }
}

/* ── BIO ── */
.bio-section {
  background: #ffffff;
  padding: 5rem 1.5rem;
}

.bio-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.divider {
  width: 48px;
  height: 1.5px;
  background: var(--gold);
  margin: 0 auto 2.25rem;
}

.bio-text {
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.85;
  text-align: left;
}
.bio-text p + p { margin-top: 1.25rem; }

.credentials {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.cred {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mid);
}

.cred-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

/* ── CARDS ── */
.destinations {
  background: var(--cream-dark);
  padding: 5rem 1.5rem;
}

.dest-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.dest-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1.5rem 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.dest-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  -webkit-transition: -webkit-transform 0.25s ease, box-shadow 0.25s ease;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  /* Safari border-radius + overflow fix */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}
.dest-card:hover {
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(30,60,100,0.22);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  -webkit-transition: -webkit-transform 0.4s ease;
  transition: transform 0.4s ease;
}
.dest-card:hover .card-img {
  -webkit-transform: scale(1.03);
  transform: scale(1.03);
}

/* IAS logo — white bg, show full logo */
.card-aviation .card-img-logo {
  object-fit: contain;
  object-position: center center;
  background: #ffffff;
  padding: 2rem 2.5rem;
}

/* Dining photo faces */
.card-food .card-img {
  object-position: center 22%;
}

.card-img-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 130px;
  background: -webkit-linear-gradient(top, transparent, rgba(0,0,0,0.78));
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.78));
  pointer-events: none;
}
.card-aviation .card-img-fade {
  display: none;
}

/* Card backgrounds */
.card-aviation {
  background: linear-gradient(135deg, #1e3a5c 0%, #2d5a8e 100%);
}
.card-aviation::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(100,180,220,0.28) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(201,165,90,0.12) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

.card-food {
  background: linear-gradient(135deg, #6b2d20 0%, #9e4030 100%);
}
.card-food::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(230,120,90,0.28) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(201,165,90,0.14) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

.card-inner {
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 1;
  text-align: left;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.card-aviation .card-icon { background: rgba(100,180,220,0.2); border: 1px solid rgba(100,180,220,0.4); }
.card-food    .card-icon { background: rgba(230,120,90,0.2);  border: 1px solid rgba(230,120,90,0.4); }

.card-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.card-aviation .card-label { color: #90d0f0; }
.card-food    .card-label { color: #f0b090; }

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.card-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  color: rgba(255,255,255,0.7);
}

.card-logo-wrap {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 2px solid rgba(255,255,255,0.15);
  background: #fff;
}
.card-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-url {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  -webkit-transition: background 0.15s, color 0.15s;
  transition: background 0.15s, color 0.15s;
}
.card-aviation .card-url { background: rgba(100,180,220,0.18); border: 1px solid rgba(100,180,220,0.45); color: #b8e4ff; }
.card-aviation .card-url:hover { background: rgba(100,180,220,0.35); color: #fff; }
.card-food .card-url { background: rgba(230,120,90,0.18); border: 1px solid rgba(230,120,90,0.45); color: #ffc8b0; }
.card-food .card-url:hover { background: rgba(230,120,90,0.35); color: #fff; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 2.25rem 1.5rem;
  text-align: center;
}

.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.65rem;
  letter-spacing: 1px;
}

.footer-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 13px;
  color: var(--gold);
  text-decoration: none;
  opacity: 0.85;
  -webkit-transition: opacity 0.15s;
  transition: opacity 0.15s;
}
.footer-link:hover { opacity: 1; }
.footer-sep { color: rgba(255,255,255,0.2); }
footer small { font-size: 12px; color: rgba(255,255,255,0.3); }

/* ── FADE-IN ── */
.fade-in {
  opacity: 0;
  -webkit-transform: translateY(16px);
  transform: translateY(16px);
  -webkit-transition: opacity 0.55s ease, -webkit-transform 0.55s ease;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-name     { font-size: 44px; }
  .avatar-ring   { width: 360px; height: 360px; }
  .card-img-wrap { height: 400px; }
}

@media (max-width: 640px) {
  .hero-content  { padding: 3rem 1.25rem 1.5rem; }
  .hero-name     { font-size: 34px; }
  .hero-tagline  { font-size: 15px; }
  .section-title { font-size: 28px; }
  .bio-section   { padding: 4rem 1.25rem; }
  .destinations  { padding: 4rem 1.25rem; }
  .dest-grid     { -ms-grid-columns: 1fr; grid-template-columns: 1fr; }
  .card-img-wrap { height: 320px; }
  .card-inner    { padding: 2rem 1.5rem; }
  .credentials   { gap: 0.75rem 1rem; }
  .wing-line     { width: 30px; }
  .avatar-ring   { width: 280px; height: 280px; }
}

@media (max-width: 400px) {
  .hero-name     { font-size: 28px; }
  .avatar-ring   { width: 230px; height: 230px; }
  .card-img-wrap { height: 250px; }
  .card-inner    { padding: 1.5rem 1.25rem; }
  .card-aviation .card-img-logo { padding: 1.25rem; }
}
