:root{
  --bg:#0f1115;
  --panel:#151821;
  --panel2:#1b1f2a;
  --text:#e6e8eb;
  --muted:#a0a6b2;
  --border:#2a2f3a;
  --accent:#8ab4f8;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: var(--bg);
  line-height:1.65;
}

a{
  color:inherit;
  text-decoration:none;
}

.container{
  max-width:1040px;
  margin:0 auto;
  padding:36px 18px 72px;
}

/* Header / Nav */
header{
  position:sticky;
  top:0;
  z-index:20;
  background: var(--bg);
  border-bottom:1px solid var(--border);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:1040px;
  margin:0 auto;
  padding:14px 18px;
}

.brand{
  font-weight:700;
  letter-spacing:0.2px;
}

.navlinks{
  display:flex;
  gap:12px;
}

.nav a{
  padding:8px 12px;
  border-radius:8px;
  color:var(--muted);
}
.nav a:hover{
  background: var(--panel);
  color:var(--text);
}

/* Typography */
h1{
  font-size:40px;
  margin:22px 0 10px;
  letter-spacing:-0.5px;
}
h2{
  font-size:22px;
  margin:22px 0 10px;
}
p.lead{
  font-size:18px;
  color:var(--muted);
  max-width:70ch;
}

/* Hero */
.hero{
  background: var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  padding:24px;
}

/* Badges */
.badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: var(--panel2);
  color:var(--muted);
  border:1px solid var(--border);
}

/* Buttons */
.actions{
  display:flex;
  gap:12px;
  margin-top:18px;
}
.btn{
  padding:10px 14px;
  border-radius:8px;
  font-weight:600;
  background: var(--accent);
  color:#0b0d12;
}
.btn.secondary{
  background: var(--panel2);
  color:var(--text);
  border:1px solid var(--border);
}

/* Cards / Grid */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  margin-top:18px;
}
@media(max-width:900px){
  .grid{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:620px){
  .grid{ grid-template-columns:1fr; }
  h1{ font-size:34px; }
}

.card{
  background: var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  padding:18px;
}
.card h3{
  margin:0 0 6px;
  font-size:18px;
}
.card p{
  margin:0;
  color:var(--muted);
}

/* Resume PDF */
iframe.pdf{
  width:100%;
  height:900px;
  border:none;
  border-radius:12px;
  background:#0b0d12;
}
/* Home hero split layout */
.hero-split{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:24px;
  align-items:center;
}

.hero-photo{
  width:100%;
  aspect-ratio: 4 / 5;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--border);
  background: var(--panel2);
}

.hero-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.cta-stack{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  margin-top:18px;
}

/* LinkedIn link under buttons */
.linkedin-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color: var(--muted);
  font-weight:600;
}

.linkedin-link:hover{
  color: var(--text);
  text-decoration: underline;
}

/* Mobile: stack photo under text */
@media(max-width:900px){
  .hero-split{ grid-template-columns: 1fr; }
  .hero-photo{ aspect-ratio: 16 / 9; }
}
/* Centered home hero */
.hero-center{
  text-align:center;
  padding:34px 22px;
}

.hero-center h1{
  margin-top:0;
}

.hero-center .lead{
  margin-left:auto;
  margin-right:auto;
}

/* Headshot in hero */
.hero-headshot{
  width:min(320px, 85vw);
  aspect-ratio: 4 / 5;
  margin:18px auto 0;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--border);
  background: var(--panel2);
}

.hero-headshot img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position: 50% 20%;
  display:block;
}

/* Buttons row centered */
.actions.center{
  justify-content:center;
  flex-wrap:wrap;
}

/* LinkedIn button */
.btn.linkedin{
  background:#0072b1;
  color:#ffffff;
}
/* Hamburger + mobile nav */
.nav-toggle{
  display:none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 760px){
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }

  /* hide links by default on mobile */
  .navlinks{
    display:none;
    position:absolute;
    left:18px;
    right:18px;
    top:58px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    flex-direction: column;
    gap: 6px;
  }

  /* show when open */
  .navlinks.open{ display:flex; }

  /* make header hold the dropdown positioning */
  header{ position: sticky; }
  .nav{ position: relative; }
}
@media (max-width: 620px){
  .hero-center h1{
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.3px;
  }
}
@media (max-width: 620px){
  .hero-headshot{
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 620px){
  .badges{ margin-top: 10px; }
  .actions.center{ margin-top: 12px !important; }
}
.hero{ overflow: hidden; }
/* Media carousel (horizontal scroll) */
.carousel{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding: 10px 4px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel::-webkit-scrollbar{
  height:10px;
}
.carousel::-webkit-scrollbar-thumb{
  background: var(--border);
  border-radius: 999px;
}

.slide{
  flex: 0 0 auto;
  width: min(350px, 92%);
  scroll-snap-align: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}

.slide img,
.slide video{
  width:100%;
  height:auto;
  display:block;
}

/* Optional caption under each slide */
.caption{
  padding:10px 12px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  background: var(--panel);
}
.project-hero{
  margin: 18px 0 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}

.project-hero img{
  width: 100%;
  height: auto;
  display: block;
}
/* Project tiles */
.project-card{
  display:block;
  position:relative;
  height: 200px;              /* set your tile height */
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid var(--border);
  background: var(--panel);
}

.project-card img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.project-card .overlay{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding: 12px 12px;
  background: rgba(0,0,0,0.55);
}

.project-card h3{
  margin:0;
  font-size: 16px;
  color: var(--text);
}

/* Nice hover */
.project-card:hover{
  transform: translateY(-1px);
}
.project-card{
  transition: transform 120ms ease;
}
pre.codeblock{
  padding:14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#0b0d12;
  overflow:auto;
}
pre.codeblock code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:13px;
  line-height:1.55;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Base (default) video: 16:9 */
.video-wrapper{
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 16px; /* optional, matches your cards */
}

.video-wrapper iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Vertical (Shorts/Reels): 9:16 */
.video-wrapper.video-vertical{
  padding-bottom: 142%; /* 16/9 * 100 = 177.78% */
  max-width: 360px;        /* keeps it from being hilariously tall */
  margin: 0 auto;          /* centers it */
}
/* Collapsible experience tiles */
.exp-tile {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  margin: 18px 0;
  overflow: hidden;
}

.exp-tile__summary {
  list-style: none;           /* removes default marker in some browsers */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  user-select: none;
}

.exp-tile__summary::-webkit-details-marker {
  display: none;              /* removes default triangle in Chrome/Safari */
}

.exp-tile__title {
  font-size: 1.25rem;
  font-weight: 700;
}

.exp-tile__meta {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Custom chevron */
.exp-tile__summary::after {
  content: "▸";
  font-size: 1.1rem;
  opacity: 0.85;
  transform: translateY(-1px);
}

.exp-tile[open] .exp-tile__summary::after {
  content: "▾";
}

.exp-tile__body {
  padding: 0 20px 18px 20px;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.exp-box {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
  background: rgba(0,0,0,0.15);
}

@media (max-width: 900px) {
  .exp-grid {
    grid-template-columns: 1fr;
  }
}
/* Header row inside the experience tile (title + right-side logo) */
/* Make the experience tile the anchor for absolute positioning */
main.container > section.card {
  position: relative;
}

.exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.exp-title {
  margin: 0;
}

.exp-logo {
  width: 256px;
  height: 76px;
  object-fit: contain;
  flex: 0 0 auto;
  opacity: 0.95;
  position: absolute;
  top: 18px;
  right: 18px;
  pointer-events: none;
}

/* Timeline */
.role-timeline {
  margin-top: 10px;
}

/* Each entry is a 2-col grid: gutter (line+dot) + content */
.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr; /* gutter width + content */
  column-gap: 14px;
  align-items: stretch;
}

/* Gutter draws the dot and the vertical line segment */
.timeline-gutter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
  align-self: stretch;
}

/* Make line and dot SAME color */
:root {
  --timeline-color: rgba(255, 255, 255, 0.55); /* change if you want brighter */
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--timeline-color);
  display: block;
  margin-top: 0;
}

/* The vertical line segment that continues downward */
.timeline-stem {
  width: 2px;
  background: var(--timeline-color);
  flex: 1;
  margin-top: 6px;
  min-height: 16px;
}


/* Content text */
.timeline-content {
  padding-bottom: 0px; /* spacing between items */
}

.timeline-role {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
}

.timeline-meta {
  margin-top: 2px;
  font-size: 0.82rem;
  opacity: 0.7;
}
/* Simple click-through carousel (one media at a time) */
.media-carousel{
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
}

.media-carousel .window{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;           /* change if you want taller */
  background: #0b0d12;
}

.media-carousel .window img,
.media-carousel .window video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;            /* contain = no crop; cover = fills/crops */
  display: none;
}

.media-carousel .window img.active,
.media-carousel .window video.active{
  display: block;
}

.media-carousel .controls{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--panel);
}

.media-carousel .controls .btn{
  padding: 8px 12px;
}

.media-carousel .counter{
  color: var(--muted);
  font-size: 14px;
}

/* Mobile: make it less wide/tall feeling */
@media (max-width: 620px){
  .media-carousel .window{
    aspect-ratio: 4 / 3;
  }
}
.media-carousel .yt-slide {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.media-carousel .yt-slide iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
/* Hide all slides by default (images, video wrappers, iframe wrappers) */
.media-carousel .window > * {
  display: none;
  width: 100%;
  height: 100%;
}

/* The active slide becomes visible */
.media-carousel .window > *.active {
  display: block;
}

/* YouTube slide sizing */
.media-carousel .yt-slide {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.media-carousel .yt-slide iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Ensure controls stay on top */
.media-carousel .controls {
  position: relative;
  z-index: 2;
}
/* === FORCE carousel slides to stack + only active is clickable === */

.media-carousel .window{
  position: relative !important;
  overflow: hidden !important;
}

/* every direct child of .window is a "slide" */
.media-carousel .window > *{
  position: absolute !important;
  inset: 0 !important;              /* top:0; right:0; bottom:0; left:0 */
  width: 100% !important;
  height: 100% !important;

  opacity: 0 !important;
  pointer-events: none !important;  /* KEY: prevents invisible iframe stealing clicks */
}

/* only the active slide shows + is clickable */
.media-carousel .window > *.active{
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Make media fill the slide */
.media-carousel .window img,
.media-carousel .window video,
.media-carousel .window iframe{
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* optional: choose contain vs cover */
.media-carousel .window img{
  object-fit: contain !important;
}

/* ensure controls are above slides */
.media-carousel .controls{
  position: relative !important;
  z-index: 5 !important;
}

/* give the window a consistent shape (pick one) */
.media-carousel .window{
  aspect-ratio: 16 / 9 !important; /* or replace with height: 500px !important; */
}
