/* ---------- Colors and basics ---------- */
:root {
  --bg: #0b1830;          /* dark blue page */
  --bg-deep: #081326;
  --card: rgba(255, 255, 255, 0.035);
  --card-solid: #12233f;
  --card-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(123, 175, 212, 0.35);
  --blue: #8dbbe0;
  --blue-soft: rgba(123, 175, 212, 0.12);
  --gold: #FFC72C;
  --gold-soft: rgba(255, 199, 44, 0.12);
  --text: #edf2f9;
  --muted: #9fb2c9;
  --red: #f07178;
  --green: #7ee2a8;
  --radius: 20px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
  --display: "Schibsted Grotesk", "Segoe UI", sans-serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(123, 175, 212, 0.10), transparent 65%),
    radial-gradient(900px 600px at -10% 40%, rgba(255, 199, 44, 0.035), transparent 60%),
    var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--gold); color: var(--bg); padding: 8px 12px; z-index: 100; border-radius: 8px; }

/* Soft light that follows the mouse */
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 0;
  width: 560px; height: 560px; margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 175, 212, 0.10) 0%, rgba(123, 175, 212, 0.04) 35%, transparent 70%);
  pointer-events: none;
  opacity: 0; transition: opacity .4s ease;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }
main, .footer, .nav { position: relative; z-index: 1; }

/* Thin progress bar pinned to the very top of the page */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: left center; transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue), var(--gold));
  box-shadow: 0 0 10px rgba(255, 199, 44, 0.45);
  border-radius: 0 3px 3px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--sans); font-weight: 600;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .2s ease; display: inline-block; }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn-gold { background: var(--gold); color: #10203a; box-shadow: 0 8px 24px -10px rgba(255, 199, 44, 0.6); }
.btn-gold:hover { background: #ffd457; color: #10203a; }
.btn-outline { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-outline:hover { background: var(--blue-soft); color: var(--text); }
.btn-small { padding: 9px 18px; font-size: 15.5px; }
.btn-big { padding: 17px 34px; font-size: 19px; white-space: normal; max-width: 100%; overflow-wrap: anywhere; justify-content: center; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 24, 48, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 22px; height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.logo-mark {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 25px; line-height: 1;
  background: linear-gradient(145deg, rgba(255, 199, 44, 0.22), rgba(123, 175, 212, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  transition: transform .3s ease;
}
.logo:hover .logo-mark { transform: rotate(-8deg); }
.logo-name { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--text); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 17px; font-weight: 500;
  padding: 8px 13px; border-radius: 999px; white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px 64px;
  align-items: start;
  padding: 40px 0 32px;
}
.hero-text { padding-top: 64px; }
.eyebrow { font-family: var(--mono); color: var(--blue); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); font-weight: 800; line-height: 1.02; margin: 10px 0 12px; }
.hero-role { font-family: var(--display); color: var(--gold); font-size: 22px; font-weight: 600; margin: 0 0 18px; }
.hero-intro { color: var(--muted); max-width: 560px; margin: 0 0 30px; font-size: 18.5px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); text-decoration: none; font-size: 15px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  transition: color .2s ease, border-color .2s ease;
}
.social a:hover { color: var(--text); border-color: var(--line-strong); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

.hero-side { display: grid; gap: 18px; justify-items: center; }
.photo-frame {
  position: relative;
  width: min(340px, 80vw);
  padding: 8px;
  /* soft arch shape: round on top, gently rounded at the bottom */
  border-radius: 170px 170px 30px 30px;
  background: linear-gradient(170deg, rgba(123, 175, 212, 0.55), rgba(123, 175, 212, 0.12) 45%, rgba(255, 199, 44, 0.45));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 60px -24px rgba(0, 0, 0, 0.7), 0 0 60px -10px rgba(123, 175, 212, 0.25);
}
.photo-frame img { border-radius: 162px 162px 23px 23px; width: 100%; height: auto; aspect-ratio: 358 / 430; object-fit: cover; object-position: center top; background: var(--card-solid); }

.terminal {
  width: min(340px, 80vw);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 9px 13px; border-bottom: 1px solid var(--line); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f07178; opacity: .85; }
.terminal-bar i:nth-child(2) { background: var(--gold); }
.terminal-bar i:nth-child(3) { background: var(--green); }
.terminal-bar span { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.terminal-body { padding: 13px 16px 15px; font-family: var(--mono); font-size: 14.5px; line-height: 1.8; }
.terminal-body .prompt { color: var(--green); }
.terminal-body .path { color: var(--blue); }
.terminal-body .out { color: var(--gold); min-height: 1.8em; }
.terminal-body .out::before { content: "> "; color: var(--muted); }
.cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--gold); vertical-align: text-bottom; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.stats {
  grid-column: 1 / -1;
  list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px;
}
.stats li {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 20px;
}
.stats b { display: block; font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--text); line-height: 1.15; }
.stats span { font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 88px 0 24px; }
.section-title {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(30px, 4.2vw, 44px); font-weight: 700; margin: 0 0 34px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); align-self: center; }
.num { font-family: var(--mono); font-size: 0.42em; font-weight: 500; color: var(--gold); letter-spacing: 0; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.panel h3 { margin: 0 0 12px; font-size: 18px; }

/* Resume card */
.resume-sec { padding: 72px 0 0; }
.resume-card {
  display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 28px;
}
.resume-thumb { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transform: rotate(-2deg); transition: transform .3s ease; }
.resume-thumb:hover { transform: rotate(0) translateY(-4px); }
.resume-thumb img { width: 100%; height: auto; }
.resume-open {
  position: absolute; right: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px;
  background: rgba(11, 24, 48, 0.85); color: var(--text); font-size: 13px; font-weight: 600;
}
.resume-info h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 6px 0 10px; }
.resume-info p { color: var(--muted); margin: 0 0 24px; max-width: 520px; }
.resume-info .hero-buttons { margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.about-text p { margin: 0 0 16px; color: var(--muted); }
.about-text p:first-child { color: var(--text); font-size: 20px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 26px; position: relative; margin: 7px 0; color: var(--muted); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); opacity: .85; }

.highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 28px; }
.highlight {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.highlight.no-photo { grid-template-columns: 1fr; }
.highlight img.hl-photo { border-radius: 14px; width: 150px; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.hl-tag { font-family: var(--mono); font-size: 12px; color: var(--gold); background: var(--gold-soft); padding: 3px 10px; border-radius: 999px; }
.highlight h3 { margin: 10px 0 6px; font-size: 21px; }
.highlight p { margin: 0 0 14px; color: var(--muted); font-size: 15.5px; }
.video-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.video-thumb {
  position: relative; border: 0; padding: 0; cursor: pointer; background: none; color: var(--text);
  display: grid; gap: 6px; text-align: left; font: inherit; font-size: 14px;
}
.video-thumb .thumb { position: relative; width: 170px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--bg-deep); border: 1px solid var(--line); }
.video-thumb .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s ease, transform .3s ease; }
.video-thumb:hover .thumb img { opacity: 1; transform: scale(1.04); }
.video-thumb .play {
  position: absolute; inset: 0; margin: auto; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 199, 44, 0.92); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.video-thumb .play::after { content: ""; margin-left: 3px; border: 8px solid transparent; border-left: 13px solid #10203a; border-right: 0; }

.skills { margin-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.skill-group h3 { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0; }
.tags li {
  font-size: 13.5px; font-weight: 500;
  padding: 5px 12px; border-radius: 999px;
  background: var(--blue-soft); color: #d6e6f5;
}

/* Projects */
.projects { display: grid; gap: 28px; }
.project {
  display: grid; grid-template-columns: 340px 1fr; gap: 30px;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 24px; transition: border-color .3s ease, background .3s ease, transform .3s ease;
}
.project:hover { border-color: rgba(255, 199, 44, 0.28); background: var(--card-hover); transform: translateY(-3px); }
.project-img { border-radius: 16px; overflow: hidden; background: var(--bg-deep); align-self: start; }
.project-img img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.project.wide { grid-template-columns: 1fr; }
.project.wide .project-img img { aspect-ratio: auto; }
.project-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.badge { padding: 4px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-weight: 600; font-size: 13px; }
.project h3 { font-size: 28px; margin: 12px 0 6px; }
.project .summary { color: var(--text); margin: 0 0 12px; }
.project ul.points { margin: 0 0 14px; padding-left: 20px; color: var(--muted); }
.project ul.points li { margin: 6px 0; }
.project .limits { font-size: 15px; color: var(--muted); padding: 10px 14px; margin: 0 0 16px; background: rgba(240, 113, 120, 0.08); border-radius: 12px; }
.project .actions { margin-top: 18px; }

/* Certs */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.cert.earned { background: linear-gradient(170deg, rgba(255, 199, 44, 0.08), var(--card) 55%); }
.cert.progress { border-style: dashed; border-color: rgba(123, 175, 212, 0.3); }
.cert h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.cert p { margin: 0; color: var(--muted); font-size: 15px; }
.cert .status { font-size: 12.5px; font-weight: 600; align-self: flex-start; padding: 4px 11px; border-radius: 999px; }
.cert.earned .status { background: var(--gold-soft); color: var(--gold); }
.cert.progress .status { background: var(--blue-soft); color: var(--blue); }
.cert.progress .status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-right: 6px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.training { color: var(--muted); margin-top: 20px; font-size: 15.5px; }
.training b { color: var(--text); }

/* Timeline (experience and leadership) */
.timeline { display: grid; gap: 16px; }
.job {
  display: grid; grid-template-columns: 200px 1fr; gap: 22px;
  padding: 22px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.job .when { font-family: var(--mono); font-size: 13.5px; color: var(--gold); padding-top: 5px; }
.job .when small { display: block; color: var(--muted); margin-top: 4px; font-family: var(--sans); font-size: 14px; }
.job h3 { margin: 0; font-size: 21px; }
.job h3 span { color: var(--blue); font-weight: 500; }
.job ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.job li { margin: 4px 0; }
.job .job-link { display: inline-block; margin-top: 10px; font-size: 15px; text-decoration: none; }
.job.has-photo { grid-template-columns: 200px 1fr 180px; }
.job .job-photo { width: 180px; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 14px; }
.job .video-buttons { margin-top: 14px; }

/* Contact */
.contact-box {
  text-align: center; padding: 64px 24px;
  background: radial-gradient(600px 320px at 50% 0%, rgba(123, 175, 212, 0.12), transparent 70%), var(--card);
  border: 1px solid var(--line); border-radius: 28px;
}
.contact-box h3 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 10px; }
.contact-box p { color: var(--muted); margin: 0 auto 28px; max-width: 520px; }
.contact-box .social { justify-content: center; margin-top: 26px; }

.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 44px 0 60px; color: var(--muted); font-size: 14px; }
.footer p { margin: 0; }
.footer a { text-decoration: none; }

/* Video popup */
.video-modal {
  border: 1px solid var(--line); border-radius: 20px; padding: 14px;
  background: var(--card-solid); color: var(--text);
  max-width: min(900px, 94vw); width: max-content;
}
.video-modal::backdrop { background: rgba(4, 10, 22, 0.78); backdrop-filter: blur(4px); }
.video-modal video { display: block; max-width: 100%; max-height: 78vh; border-radius: 12px; background: #000; }
.video-modal p { margin: 10px 4px 2px; color: var(--muted); font-size: 15px; }
.video-close {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 22px; line-height: 1;
}

/* ---------- Round 4 layout ---------- */
/* Section heads: big italic number beside the label and headline */
.section-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 40px; }
.sec-num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(70px, 8.5vw, 116px); line-height: .78;
  color: var(--gold); opacity: .9; letter-spacing: -0.02em;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .8s ease;
}
.section-head.reveal:not(.shown) .sec-num { transform: translateX(-20px); opacity: 0; }
.section-head .eyebrow { margin: 0 0 6px; }
.headline { font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; line-height: 1.08; margin: 0; max-width: 820px; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; font-weight: 500; padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: #d6e6f5; }
.chips-accent { margin-top: 22px; }
.chips-accent li { background: var(--gold-soft); border-color: rgba(255,199,44,.3); color: var(--gold); }

/* About */
.about-grid { grid-template-columns: 1.25fr 1fr; gap: 48px; }
.about-text p { font-size: 17.5px; }
.skills { margin-top: 0; display: grid; grid-template-columns: 1fr; gap: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.skill-group .eyebrow { font-size: 12.5px; margin: 0 0 10px; }

/* Projects: two-column cards with a window-style image */
.projects { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; border-radius: 24px; }
.project:hover { transform: translateY(-4px); }
.project-shot { margin: 14px 14px 0; border-radius: 16px; overflow: hidden; background: var(--bg-deep); border: 1px solid var(--line); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.shot-bar span { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-shot img { width: 100%; height: 260px; object-fit: cover; object-position: top; }
.project-body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.project-meta { justify-content: space-between; font-family: var(--mono); font-size: 13px; }
.project h3 { font-size: 26px; margin: 8px 0 6px; }
.project-foot { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.project-foot .chips li { font-size: 13px; padding: 4px 11px; }
.text-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; color: var(--text); white-space: nowrap; }
.text-link .arrow { color: var(--gold); transition: transform .2s ease; }
.text-link:hover { color: var(--gold); }
.text-link:hover .arrow { transform: translate(2px, -2px); }

/* Leadership */
.lead-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.lead-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.lead { padding: 22px 4px; border-bottom: 1px solid var(--line); }
.lead-row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.lead h3 { margin: 0; font-size: 21px; }
.lead-date { font-family: var(--mono); font-size: 13px; color: var(--gold); white-space: nowrap; }
.org-line { margin: 2px 0 6px; color: var(--blue); font-weight: 500; }
.lead ul { margin: 6px 0 0; padding-left: 20px; color: var(--muted); }
.lead li { margin: 3px 0; }
.lead .text-link { margin-top: 10px; font-size: 15px; }
.honors { position: sticky; top: 110px; }
.honors .eyebrow { margin-bottom: 10px; }

/* Leadership in two columns */
.lead-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lead-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; border-bottom: 1px solid var(--line); }
.honors-strip { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 22px; border-radius: var(--radius); border: 1px dashed rgba(255,199,44,.3); background: rgba(255,199,44,.04); }
.honors-strip .eyebrow { margin: 0; color: var(--gold); }

/* Smaller project cards, three across */
.projects { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
/* keep closed cards the same height so the dropdowns line up */
.project .summary { min-height: calc(1.65em * 3); }
.project-shot { margin: 10px 10px 0; }
.project-shot img { height: 170px; }
.shot-bar { padding: 7px 10px; }
.project-body { padding: 14px 18px 18px; }
.project h3 { font-size: 20px; margin: 6px 0 4px; }
.project .summary { font-size: 15px; color: var(--muted); margin: 0 0 10px; }
.project-meta { font-size: 12px; }
.project-foot { padding-top: 12px; gap: 10px; }
.project-foot .chips li { font-size: 12px; padding: 3px 9px; }
.more { margin: auto 0 0; padding-bottom: 12px; }
.project .project-foot { margin-top: 0; }
.more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--blue); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-family: var(--mono); color: var(--gold); }
.more[open] summary::after { content: "\2212"; }
.more .points { font-size: 14.5px; margin-top: 8px; }
.more .limits { font-size: 13.5px; }

/* Honors under certifications */
.certs + .training + .honors-strip, .honors-strip { margin-top: 18px; }

/* ODU Boxing Club events: photo + event list */
.club {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px;
}
.club-photo { position: relative; padding: 0; border: 0; cursor: zoom-in; border-radius: 18px; overflow: hidden; background: var(--bg-deep); min-height: 280px; }
.club-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.club-photo:hover img { transform: scale(1.03); }
.club-photo-cap { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(8,19,38,.8); color: var(--text); font-size: 13px; font-weight: 600; }
.club-info { padding: 8px 8px 8px 0; display: flex; flex-direction: column; }
.club-info h3 { font-size: 26px; margin: 4px 0 4px; }
.club-note { color: var(--muted); margin: 0 0 16px; }
.club-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.club-event { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.flyer-thumb { position: relative; padding: 0; border: 0; cursor: zoom-in; border-radius: 10px; overflow: hidden; width: 84px; height: 108px; background: var(--bg-deep); }
.flyer-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.flyer-thumb span { position: absolute; inset: auto 0 0 0; font-size: 10.5px; font-weight: 700; padding: 3px 0; background: rgba(255,199,44,.92); color: #10203a; text-align: center; }
.club-event h4 { margin: 2px 0 2px; font-family: var(--display); font-size: 17px; }
.club-event p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.club-event .chips li { font-size: 12px; padding: 3px 9px; }

/* Galleries */
.galleries-sec { padding-top: 56px; }
.eyebrow.also { margin-bottom: 18px; }
.gallery-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.gallery { min-width: 0; }
.gallery { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px 0 22px 22px; }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-right: 22px; margin-bottom: 16px; }
.gallery-head h3 { margin: 0; font-size: 22px; }
.gallery-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; max-width: 620px; }
.gallery-nav { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.swipe-hint { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-right: 4px; }
.g-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); color: var(--text); cursor: pointer; font-size: 16px; }
.g-arrow:hover { background: var(--blue-soft); }
.gallery.fits .gallery-nav { display: none; }
.g-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 22px 8px 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.g-item { flex: 0 0 auto; align-self: flex-start; align-content: start; width: 240px; scroll-snap-align: start; display: grid; gap: 8px; text-align: left; border: 0; padding: 0; background: none; color: var(--text); font: inherit; cursor: pointer; }
.g-frame { position: relative; display: block; width: 240px; height: 300px; border-radius: 16px; overflow: hidden; background: var(--bg-deep); border: 1px solid var(--line); }
.g-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.g-item:hover .g-frame img { transform: scale(1.04); }
.g-video .g-frame, .g-video { width: 400px; }
.g-video .g-frame { height: 300px; }
.g-video .g-frame img { object-position: center; }
.g-cap { font-size: 14px; color: var(--muted); }
.g-item .play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,199,44,.92); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.g-item .play::after { content: ""; margin-left: 4px; border: 10px solid transparent; border-left: 16px solid #10203a; border-right: 0; }
.g-empty { cursor: default; width: 240px; height: 300px; border-radius: 16px; border: 1px dashed var(--line-strong); display: grid; place-content: center; text-align: center; gap: 6px; color: var(--muted); background: rgba(255,255,255,.02); }
.g-empty span { font-weight: 600; color: var(--text); }
#image-viewer { display: none; max-width: 100%; max-height: 80vh; border-radius: 12px; }

/* Contact closer */
.closer {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  padding: 44px; border-radius: 30px; border: 1px solid var(--line);
  background: radial-gradient(700px 360px at 0% 0%, rgba(123,175,212,.13), transparent 70%), var(--card);
}
.contact-title { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; line-height: 1.1; margin: 8px 0 14px; }
.accent-line { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold); letter-spacing: 0; }
.contact-title .accent-line { display: block; font-size: 1.15em; }
.closer-text { color: var(--muted); margin: 0 0 26px; max-width: 460px; }
.closer-links { display: grid; border-top: 1px solid var(--line); }
.clink { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 12px; padding: 16px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); transition: background .2s ease, padding .2s ease; border-radius: 10px; }
.clink .eyebrow { font-size: 12px; margin: 0; }
.clink-val { font-weight: 600; overflow-wrap: anywhere; }
.clink .arrow { color: var(--gold); transition: transform .2s ease; }
.clink:hover { background: rgba(255,255,255,.04); padding-left: 12px; color: var(--text); }
.clink:hover .arrow { transform: translate(2px, -2px); }

.footer { align-items: flex-end; }
.footer-sign { display: grid; gap: 2px; }
.footer-name { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--text); }
.footer-sign .accent-line { font-size: 20px; }
.footer-meta { display: grid; gap: 4px; justify-items: end; }

@media (max-width: 980px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .club { grid-template-columns: 1fr; }
  .lead-cards { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
  .honors { position: static; }
  .closer { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 760px) {
  .about-grid { gap: 24px; }
  .section-head { gap: 12px; margin-bottom: 28px; }
  .projects { grid-template-columns: 1fr; }
  .club-photo { min-height: 200px; }
  .sec-num { font-size: 60px; }
  .project-shot img { height: 220px; }
  .project-body { padding: 18px; }
  .gallery { padding: 18px 0 18px 18px; }
  .gallery-head { flex-direction: column; align-items: flex-start; }
  .swipe-hint { display: inline; }
  .g-arrow { display: none; }
  .g-item, .g-frame, .g-empty { width: 200px; }
  .g-frame, .g-empty { height: 250px; }
  .g-video, .g-video .g-frame { width: 300px; }
  .g-video .g-frame { height: 250px; }
  .closer { padding: 24px; }
  .clink { grid-template-columns: 1fr auto; }
  .clink .eyebrow { grid-column: 1 / -1; }
  .footer-meta { justify-items: start; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.shown { opacity: 1; transform: none; }

/* ---------- Mini Monarch ---------- */
.monarch {
  position: fixed; right: 22px; top: 100px; z-index: 40;
  width: 76px;
  transition: top .5s cubic-bezier(.3,1.4,.6,1);
  pointer-events: none;
}
.monarch.hidden { display: none; }
.monarch-body { pointer-events: auto; cursor: pointer; width: 76px; height: 95px; }
.monarch-body svg { width: 100%; height: 100%; overflow: visible; shape-rendering: crispEdges; }
.monarch .bob { animation: bob 0.9s steps(2) infinite; }
.monarch.moving .bob { animation-duration: .3s; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.monarch .lead, .monarch .rear { transition: transform .09s steps(2); }
.monarch.jab .lead { transform: translateX(-9px); }
.monarch.cross .rear { transform: translateX(-12px); }
.monarch.point .lead { transform: translate(-9px, 3px); }
.monarch .shadow { animation: shadow 0.9s steps(2) infinite; transform-origin: center; transform-box: fill-box; }
@keyframes shadow { 50% { transform: scaleX(.8); } }

.monarch-bubble {
  position: absolute; right: 82px; top: 6px;
  width: max-content; max-width: 210px;
  background: var(--text); color: #10203a;
  font-family: var(--sans); font-size: 13.5px; line-height: 1.4; font-weight: 600;
  padding: 9px 13px; border-radius: 14px;
  box-shadow: 0 8px 22px -8px rgba(0,0,0,.5);
  opacity: 0; transform: translateX(6px) scale(.95);
  transition: opacity .25s ease, transform .25s ease;
}
.monarch-bubble::after {
  content: ""; position: absolute; right: -6px; top: 14px;
  border: 7px solid transparent; border-right: 0; border-left-color: var(--text);
}
.monarch-bubble.show { opacity: 1; transform: none; }

.monarch-toggle {
  position: fixed; right: 14px; bottom: 14px; z-index: 41;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  background: var(--card-solid); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer;
}
.monarch-toggle:hover { color: var(--text); border-color: var(--line-strong); }

/* ---------- Smaller screens ---------- */
@media (max-width: 1080px) {
  .logo-name { display: none; }
  .nav-links a { font-size: 15.5px; padding: 8px 10px; }
}
@media (max-width: 980px) {
  .certs { grid-template-columns: repeat(2, 1fr); }
  .job.has-photo { grid-template-columns: 200px 1fr 150px; }
  .job .job-photo { width: 150px; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-inner { height: 72px; }
  .nav .btn { margin-left: auto; }
  .logo-name { display: inline; }
}
@media (max-width: 480px) {
  .logo-name { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; gap: 28px; }
  .hero-text { padding-top: 0; }
  .hero-side { order: -1; grid-template-columns: 150px 1fr; align-items: center; justify-items: stretch; }
  .photo-frame { width: 150px; padding: 6px; border-radius: 75px 75px 22px 22px; }
  .photo-frame img { border-radius: 69px 69px 17px 17px; }
  .terminal { width: 100%; }
  .terminal-body { font-size: 13px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats b { font-size: 25px; }
  .about-grid { grid-template-columns: 1fr; }
  .resume-card { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .resume-thumb { max-width: 220px; }
  .job.has-photo { grid-template-columns: 1fr; }
  .job .job-photo { width: 100%; max-width: 240px; grid-row: 1; }
  .highlight { grid-template-columns: 1fr; }
  .highlight img.hl-photo { width: 100%; max-width: 260px; }
  .certs { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: 6px; padding: 20px; }
  .cursor-glow { display: none; }
  /* boxer stays in the corner on phones */
  .monarch { top: auto !important; bottom: 52px; right: 10px; width: 48px; }
  .monarch-body { width: 48px; height: 60px; }
  .monarch-bubble { right: 54px; top: -4px; max-width: 170px; }
}
@media (max-width: 420px) {
  .hero-side { grid-template-columns: 1fr; justify-items: start; }
  .photo-frame { width: 170px; border-radius: 85px 85px 22px 22px; }
  .photo-frame img { border-radius: 79px 79px 17px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .cursor-glow { display: none; }
}

/* "Why it matters" note on experience projects */
.project .limits.why { background: rgba(255, 199, 44, 0.08); }

/* phones: show the whole drawn cover instead of cropping its sides */
@media (max-width: 760px) {
  .project-shot img[src$=".svg"] { height: auto; aspect-ratio: 2 / 1; object-fit: contain; }
}
