/* ==========================================================================
   Home page styles (redesign). 
   Palette: Tropical Jade Sunrise (unchanged)
   ========================================================================== */
:root {
  --sand-cream: #FBF3E7;
  --sand-deep: #F4E6D0;
  --warm-ink: #2E2A24;
  --ocean-jade: #1F6F6A;
  --deep-ocean: #1B4B5A;
  --night: #123642;
  --sandal-orange: #D98E52;
  --sunrise-gold: #F2B872;

  --gradient-sunrise: linear-gradient(90deg, var(--sandal-orange), var(--sunrise-gold));
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(27, 75, 90, 0.12);
  --shadow-lg: 0 18px 44px rgba(27, 75, 90, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--sand-cream);
  color: var(--warm-ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  color: var(--ocean-jade);
  margin-bottom: 0.4em;
}

h3 { font-size: 1.2rem; color: var(--warm-ink); }

p { margin: 0 0 1em; }

a { color: var(--ocean-jade); text-decoration: none; transition: color .2s ease; }

ul { padding: 0; margin: 0; list-style: none; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid var(--sandal-orange); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #A25A24;
  margin-bottom: .9em;
}

.section-head { max-width: 640px; margin-bottom: 2.6em; }
.section-head p { color: rgba(46, 42, 36, .78); font-size: 1.08rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: .85em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gradient { background: var(--gradient-sunrise); color: var(--night); }
.btn-gradient:hover { color: var(--night); box-shadow: 0 10px 24px rgba(217, 142, 82, .4); }
.btn-ghost { border-color: rgba(251, 243, 231, .55); color: var(--sand-cream); }
.btn-ghost:hover { background: var(--sand-cream); color: var(--deep-ocean); border-color: var(--sand-cream); }
.btn-outline { border-color: var(--ocean-jade); color: var(--ocean-jade); }
.btn-outline:hover { background: var(--ocean-jade); color: var(--sand-cream); }

/* ===== Nav ===== */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--ocean-jade);
  transition: box-shadow .25s ease, background .25s ease;
}
.navbar.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .18); background: rgba(31, 111, 106, .97); }
.navbar-inner {
  max-width: 1120px; margin: 0 auto; padding: .85em 1.5em;
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
}
.navbar-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; line-height: 1.1; color: var(--sand-cream); }
.navbar-logo:hover { color: var(--sunrise-gold); }
.navbar-links { display: flex; gap: 1.5em; flex-wrap: wrap; align-items: center; }
.navbar-links a { color: var(--sand-cream); font-size: .95rem; font-weight: 500; position: relative; padding: .2em 0; }
.navbar-links a:hover, .navbar-links a.is-active { color: var(--sunrise-gold); }
.navbar-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--sunrise-gold); transition: width .25s ease;
}
.navbar-links a:not(.nav-cta):hover::after, .navbar-links a.is-active::after { width: 100%; }
.navbar-links .nav-cta {
  background: var(--sunrise-gold); color: var(--night); padding: .35em 1em; border-radius: 999px; font-weight: 600;
}
.navbar-links .nav-cta:hover { background: var(--sand-cream); color: var(--night); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--night) 0%, var(--deep-ocean) 45%, var(--ocean-jade) 100%);
  color: var(--sand-cream);
  padding: 8.5em 1.5em 9em;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px);
}
.hero::before {
  width: 520px; height: 520px; right: -140px; top: -120px;
  background: radial-gradient(circle, rgba(242, 184, 114, .35), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}
.hero::after {
  width: 460px; height: 460px; left: -160px; bottom: -200px;
  background: radial-gradient(circle, rgba(217, 142, 82, .28), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-40px, 30px); } }

.hero-inner {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 3.5em;
}
.hero .eyebrow { color: var(--sunrise-gold); }
.hero-name {
  font-size: clamp(3.6rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--sand-cream);
  margin-bottom: .2em;
  letter-spacing: -.01em;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--sand-cream);
  margin-bottom: .7em;
}
.hero-headline em {
  font-style: normal;
  background: var(--gradient-sunrise);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 32em; color: rgba(251, 243, 231, .86); margin-bottom: 2em; }
.hero-cta { display: flex; gap: .9em; flex-wrap: wrap; }

.hero-photo-wrap { position: relative; justify-self: center; width: min(100%, 380px); }
.hero-photo-wrap::before {
  content: ''; position: absolute; inset: 18px -18px -18px 18px;
  border: 3px solid var(--sunrise-gold); border-radius: 28px; opacity: .85;
}
.hero-photo {
  position: relative; width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; object-position: 50% 30%;
  border-radius: 28px; box-shadow: var(--shadow-lg);
}

/* ===== Stats ===== */
.stats { position: relative; z-index: 2; margin-top: -4.2em; padding: 0 1.5em; }
.stats-grid {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1em;
}
.stat {
  background: #fff; border-radius: var(--radius); padding: 1.6em 1.3em;
  text-align: center; box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--sunrise-gold);
}
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1; color: var(--ocean-jade); margin-bottom: .35em;
}
.stat-label { font-size: .92rem; color: rgba(46, 42, 36, .78); line-height: 1.4; }

/* ===== Sections ===== */
.section { padding: 6.5em 1.5em; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-alt { background: var(--sand-deep); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3.5em; align-items: start; }
.about-text p { font-size: 1.12rem; }
.pull-quote {
  margin: 0; padding: 2em 1.8em; border-radius: var(--radius);
  background: var(--ocean-jade); color: var(--sand-cream); box-shadow: var(--shadow);
  font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; position: relative;
}
.pull-quote::before {
  content: '\201C'; position: absolute; top: -.1em; left: .35em; font-size: 5rem; color: var(--sunrise-gold); line-height: 1;
}
.pull-quote span { display: block; position: relative; }

/* How I lead */
.lead-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2em; }
.lead-card {
  background: #fff; border-radius: var(--radius); padding: 1.8em 1.5em; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.lead-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.lead-icon {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 1.1em;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--gradient-sunrise); color: var(--night);
}
.lead-card h3 { color: var(--ocean-jade); margin-bottom: .4em; }
.lead-card p { margin: 0; font-size: .97rem; color: rgba(46, 42, 36, .82); }

/* Timeline */
.timeline { position: relative; display: grid; gap: 1.2em; padding-left: 2.2em; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 3px;
  background: linear-gradient(var(--sunrise-gold), var(--ocean-jade)); border-radius: 3px;
}
.role {
  position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  transition: box-shadow .25s ease, transform .25s ease;
}
.role:hover { box-shadow: var(--shadow-lg); }
.role::before {
  content: ''; position: absolute; left: -2.2em; top: 1.7em; width: 17px; height: 17px;
  border-radius: 50%; background: var(--sand-cream); border: 4px solid var(--sandal-orange);
}
.role[open]::before { background: var(--sandal-orange); }
.role summary {
  list-style: none; cursor: pointer; padding: 1.5em 3.2em 1.5em 1.7em; position: relative;
  display: grid; gap: .25em;
}
.role summary::-webkit-details-marker { display: none; }
.role summary::after {
  content: '+'; position: absolute; right: 1.4em; top: 1.2em; font-size: 1.7rem; line-height: 1;
  color: var(--ocean-jade); transition: transform .25s ease;
}
.role[open] summary::after { content: '\2212'; }
.role-year { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #A25A24; }
.role-company { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ocean-jade); }
.role-title { font-weight: 500; color: rgba(46, 42, 36, .85); }
.role-chip {
  justify-self: start; margin-top: .6em; padding: .3em .85em; border-radius: 999px;
  background: rgba(242, 184, 114, .35); color: #7A4513; font-size: .85rem; font-weight: 600;
}
.role-body { padding: 0 1.7em 1.6em; color: rgba(46, 42, 36, .88); }
.role-body p { margin: 0; }

/* Resume band */
.band-dark {
  background: linear-gradient(135deg, var(--night), var(--deep-ocean)); color: var(--sand-cream);
}
.band-dark h2 { color: var(--sand-cream); }
.band-dark .section-head p { color: rgba(251, 243, 231, .8); }
.resume-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3.5em; align-items: start; }
.highlights li {
  position: relative; padding: .95em 0 .95em 2.2em; border-bottom: 1px solid rgba(251, 243, 231, .16);
}
.highlights li::before {
  content: '\2713'; position: absolute; left: 0; top: .95em; width: 1.5em; height: 1.5em; line-height: 1.5em;
  text-align: center; border-radius: 50%; background: var(--sunrise-gold); color: var(--night); font-size: .85rem; font-weight: 700;
}
.highlights strong { color: var(--sunrise-gold); }

/* Photos */
.photo-grid { columns: 3 260px; column-gap: 1.2em; }
.photo-item {
  position: relative; display: block; width: 100%; margin: 0 0 1.2em; padding: 0; border: none; background: none;
  border-radius: var(--radius); overflow: hidden; cursor: pointer; break-inside: avoid;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.photo-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.photo-item img { width: 100%; height: auto; transition: transform .5s ease; }
.photo-item:hover img { transform: scale(1.04); }
.photo-item figcaption, .photo-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4em 1.1em .9em; text-align: left;
  background: linear-gradient(transparent, rgba(18, 54, 66, .85)); color: var(--sand-cream); font-size: .92rem; font-weight: 500;
}

/* Contact */
.contact { text-align: center; }
.contact .section-head { margin-left: auto; margin-right: auto; }
.contact-links { display: flex; gap: 1em; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--night); color: rgba(251, 243, 231, .75); text-align: center; padding: 2em 1.5em; font-size: .9rem; }
.footer p { margin: 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(18, 54, 66, .94);
  display: flex; align-items: center; justify-content: center; padding: 2em;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; }
.lightbox-close {
  position: absolute; top: 1.2em; right: 1.5em; background: none; border: none; color: var(--sand-cream);
  font-size: 2.4rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { color: var(--sunrise-gold); }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; }
.reveal.is-visible { opacity: 1; animation: rise .7s ease backwards; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { padding: 7.5em 1.5em 8em; }
  .hero-inner { grid-template-columns: 1fr; gap: 3em; text-align: center; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-photo-wrap { width: min(78%, 320px); order: -1; }
  .stats-grid, .lead-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .resume-grid { grid-template-columns: 1fr; }
  .section { padding: 5em 1.3em; }
}
@media (max-width: 640px) {
  .navbar-inner { flex-direction: column; gap: .5em; }
  .navbar-links { gap: .9em; justify-content: center; }
  .navbar-links a { font-size: .9rem; }
  html { scroll-padding-top: 7rem; }
  .hero { padding-top: 11em; }
  .lead-grid { grid-template-columns: 1fr; }
  .stats-grid { gap: .8em; }
  .stat { padding: 1.2em .8em; }
  .stat-label { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { opacity: 1; animation: none; }
  .hero::before, .hero::after { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ===== 2nd-line leader emphasis ===== */
.leader-strip {
  display: flex; align-items: center; justify-content: center; gap: 1em 1.4em; flex-wrap: wrap;
  max-width: 1120px; margin: 1.1em auto 0; padding: 1em 1.4em; border-radius: var(--radius);
  background: var(--ocean-jade); color: var(--sand-cream); box-shadow: var(--shadow);
}
.leader-strip-label { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.leader-pills { display: flex; gap: .6em; flex-wrap: wrap; }
.leader-pill {
  padding: .3em 1em; border-radius: 999px; background: var(--sunrise-gold); color: var(--night);
  font-weight: 700; font-size: .92rem;
}
.role-meta { display: flex; align-items: center; gap: .7em; flex-wrap: wrap; }
.role-badge {
  padding: .15em .7em; border-radius: 999px; border: 1.5px solid var(--ocean-jade);
  color: var(--ocean-jade); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* ===== Education card (different color from the company cards) ===== */
.role-edu { background: #E4F0EE; border: 1px solid rgba(31, 111, 106, .3); }
.role-edu::before { border-color: var(--ocean-jade); }
.role-edu[open]::before { background: var(--ocean-jade); }
.role-edu .role-company { color: var(--deep-ocean); }
.role-edu .role-year { color: var(--ocean-jade); }
.role-edu .role-chip { background: rgba(31, 111, 106, .16); color: var(--deep-ocean); }

/* ===== AI section ===== */
.ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4em; }
.ai-card {
  background: #fff; border-radius: var(--radius); padding: 2em 1.9em; box-shadow: var(--shadow);
  border-left: 6px solid var(--sunrise-gold); transition: transform .25s ease, box-shadow .25s ease;
}
.ai-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.ai-card h3 { color: var(--ocean-jade); font-size: 1.35rem; }
.ai-card p { margin: 0; color: rgba(46, 42, 36, .85); }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } }

#about { padding-top: 4.5em; }

/* ===== Selective bolding for skimmability ===== */
.about-text strong, .lead-card strong, .ai-card strong, .role-body strong { color: var(--ocean-jade); font-weight: 700; }
.role-edu .role-body strong { color: var(--deep-ocean); }

/* ===== Tightening pass: less scrolling ===== */
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section { padding: 4em 1.5em; }
#about { padding-top: 3em; }
.section-head { max-width: none; margin-bottom: 1.6em; }
.section-head p { max-width: 640px; margin-bottom: 0; }
.eyebrow { margin-bottom: .6em; }
.hero { padding: 7em 1.5em 7.5em; }
.stats { margin-top: -3.8em; }
.stat { padding: 1.3em 1.1em; }
.lead-card { padding: 1.4em 1.3em; }
.lead-icon { width: 40px; height: 40px; margin-bottom: .7em; font-size: 1.2rem; }
.ai-card { padding: 1.5em 1.6em; }
.ai-card .lead-icon { margin-bottom: .7em; }
.timeline { gap: 1em; }
.role summary { padding: 1.1em 3.2em 1.1em 1.5em; gap: .15em; }
.role-company { font-size: 1.35rem; }
.role-chip { margin-top: .4em; }
.role-body { padding: 0 1.5em 1.3em; }
.highlights li { padding: .7em 0 .7em 2.2em; }
.highlights li::before { top: .7em; }
.photo-item { margin-bottom: 1em; }
.leader-strip { padding: .8em 1.3em; }
.footer { padding: 1.5em; }
@media (max-width: 900px) {
  .hero { padding: 7em 1.5em 7em; }
  .section { padding: 3.5em 1.3em; }
}
@media (max-width: 640px) {
  .hero { padding-top: 10.5em; }
}

/* ===== Full quote with attribution ===== */
.pull-quote .quote-close { display: inline; color: var(--sunrise-gold); font-size: 1.6em; line-height: 0; vertical-align: -.25em; margin-left: .05em; }
.pull-quote .quote-by {
  display: block; margin-top: .9em; font-family: var(--font-body); font-style: normal;
  font-size: .95rem; font-weight: 600; letter-spacing: .02em; color: var(--sunrise-gold);
}

/* Matching big opening/closing quote marks */
.pull-quote .quote-close { display: none; }
.pull-quote::after {
  content: '\201D'; position: absolute; right: .35em; bottom: -.62em; font-size: 5rem; line-height: 1;
  color: var(--sunrise-gold); font-family: var(--font-display);
}
.pull-quote { padding-bottom: 2.2em; }
