/* ============ tokens ============ */
:root{
  --bg: #151415;
  --bg-raise: #1d1c1e;
  --ink: #f5f3f1;
  --ink-dim: rgba(245,243,241,0.62);
  --accent: #f2a8d3;
  --border: rgba(245,243,241,0.22);
  --border-soft: rgba(245,243,241,0.12);
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pad: clamp(24px, 5vw, 72px);
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
p{ margin:0 0 1em 0; }
h1,h2,h3,h4{ margin:0; }

::selection{ background: var(--accent); color:#1a1a1a; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============ generic hover treatment ============ */
.nav-link, .pill-btn, .inline-link, .clickable-image, .arrow{
  transition: opacity .18s ease, background-color .18s ease, transform .18s ease;
}
.nav-link:hover, .pill-btn:hover, .inline-link:hover, .arrow:hover{
  opacity: .62;
}
.clickable-image:hover .hover-overlay{ opacity: 1; }
.clickable-image:hover .media-img{ opacity: .55; }
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============ nav ============ */
.navbar{
  position: fixed;
  top: clamp(12px, 3vw, 28px);
  left: 0; right: 0;
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 12px;
  z-index: 100;
  padding: 0 16px;
  pointer-events: none;
}
.nav-pill{
  pointer-events:auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 28px;
  display:flex;
  gap: clamp(14px, 2.4vw, 28px);
  background: rgba(21,20,21,0.55);
  backdrop-filter: blur(10px);
  font-size: clamp(12px, 1.4vw, 15px);
  max-width: 92vw;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-pill::-webkit-scrollbar{ display:none; }
.nav-link{ white-space:nowrap; color: var(--ink); font-weight:500; }
.nav-home{ display:none; }
body.not-home .nav-home{ display:inline; }

.nav-date-pill{
  pointer-events:auto;
  position:absolute;
  right: clamp(12px, 3vw, 28px);
  top: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 12px;
  color: var(--ink-dim);
  background: rgba(21,20,21,0.55);
  display:none;
}
body.on-projects .nav-date-pill{ display:block; }
@media (max-width: 860px){
  .nav-date-pill{ display:none !important; }
}

/* ============ slides ============ */
main{ position:relative; }
.slide{
  min-height: 100dvh;
  width:100%;
  display:none;
  padding: calc(var(--pad) + 70px) var(--pad) calc(var(--pad) + 60px);
  align-items:center;
}
.slide.active{ display:flex; }
#home.slide{ justify-content:center; }
#projects.slide{ display:none; flex-direction:column; justify-content:center; }
#projects.slide.active{ display:flex; }

/* ============ home ============ */
.mega-title{
  font-family: var(--display);
  font-weight:400;
  text-transform:uppercase;
  font-size: clamp(64px, 15vw, 180px);
  line-height: 0.86;
  text-align:center;
  letter-spacing: -0.01em;
}

/* ============ shared titles/text ============ */
.section-title{
  font-family: var(--display);
  font-weight:400;
  text-transform:uppercase;
  font-size: clamp(40px, 6.2vw, 74px);
  line-height: 0.88;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.section-title-wide{
  font-family: var(--display);
  font-weight:400;
  text-transform:uppercase;
  font-size: clamp(32px, 5vw, 56px);
  line-height:1;
  margin-top: 8px;
}
.body-text{
  font-size: clamp(14px, 1.6vw, 17px);
  line-height:1.6;
  color: var(--ink);
  max-width: 58ch;
}
.accent{ color: var(--accent); }
.inline-link{ text-decoration: underline; text-underline-offset:3px; }

/* ============ about ============ */
.about-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 90px);
  align-items:center;
  width:100%;
  max-width: 1280px;
  margin:0 auto;
}
.pill-links{
  display:flex;
  flex-direction:column;
  gap: 14px;
  max-width: 420px;
  margin-bottom: clamp(20px, 3vw, 34px);
}
.pill-btn{
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 22px;
  text-align:center;
  background: var(--ink);
  color: #1a1a1a;
  font-weight:600;
  font-size: 14px;
}
.photo-frame{
  width:100%;
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow:hidden;
  background: var(--bg-raise);
  border: 1px dashed var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
}
.photo-img{ width:100%; height:100%; object-fit:cover; }
.photo-placeholder{
  color: var(--ink-dim);
  font-size: 13px;
  text-align:center;
  line-height:1.6;
  padding: 20px;
}

/* ============ projects ============ */
.project-carousel{
  position:relative;
  width:100%;
  max-width: 1320px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  gap: clamp(6px, 2vw, 20px);
}
.project-viewport{
  overflow:hidden;
  width:100%;
}
.project-track{
  display:flex;
  width:400%;
  transition: transform .5s cubic-bezier(.65,0,.35,1);
}
.project-card{
  width:25%;
  flex-shrink:0;
  display:grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 5vw, 64px);
  align-items:center;
  padding: 0 4px;
}
.project-desc{ margin-top: 4px; }
.media-frame{
  position:relative;
  width:100%;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow:hidden;
  background: var(--bg-raise);
  border: 1px dashed var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
}
.image-frame{ cursor:pointer; }
.media-img{ width:100%; height:100%; object-fit:cover; transition: opacity .2s ease; }
.media-placeholder{
  color: var(--ink-dim);
  font-size: 13px;
  text-align:center;
  line-height:1.6;
  padding:20px;
}
.hover-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.55);
  color: var(--ink);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 15px;
  font-weight:600;
  opacity:0;
  transition: opacity .2s ease;
}
.media-frame iframe{ width:100%; height:100%; border:0; }

.arrow{
  flex-shrink:0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.domain-pill{
  position:fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(70px, 8vw, 90px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 12px;
  color: var(--ink-dim);
  background: rgba(21,20,21,0.55);
  display:none;
  z-index: 90;
}
body.on-projects .domain-pill{ display:block; }
@media (max-width: 860px){
  .domain-pill{ display:none !important; }
}

/* ============ leadership ============ */
.leadership-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 90px);
  align-items:center;
  width:100%;
  max-width: 1280px;
  margin:0 auto;
}
.leadership-block{ margin-bottom: clamp(18px, 3vw, 30px); }
.leadership-heading{
  font-family: var(--body);
  font-weight:700;
  font-size: clamp(17px, 2vw, 20px);
  margin-bottom: 6px;
}
.leadership-right .photo-frame{ aspect-ratio: 3/4; }

/* ============ skills ============ */
.skills-wrap{ width:100%; max-width: 1100px; margin:0 auto; }
.skills-intro{ max-width: 70ch; margin-top: 18px; margin-bottom: clamp(28px,4vw,48px); }
.skills-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 40px);
}
.skills-label{
  font-family: var(--body);
  font-weight:700;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform:uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ============ footer ============ */
.copyright-bar{
  position:fixed;
  bottom: clamp(12px, 3vw, 24px);
  left:0; right:0;
  margin: 0 auto;
  width: fit-content;
  z-index: 90;
  font-size: 11px;
  color: var(--ink-dim);
  padding: 10px 22px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(21,20,21,0.5);
}

/* ============ responsive ============ */
@media (max-width: 900px){
  .about-grid, .leadership-grid{ grid-template-columns: 1fr; }
  .about-right{ order:-1; max-width: 280px; margin: 0 auto; }
  .leadership-right{ order:-1; max-width: 260px; margin: 0 auto; }
  .project-card{ grid-template-columns: 1fr; }
  .project-right{ order:-1; }
  .skills-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .slide{ padding-top: 120px; }
  .mega-title{ font-size: clamp(52px, 18vw, 90px); }
  .arrow{ width:36px; height:36px; font-size:18px; }
  .nav-pill{ padding: 10px 18px; gap: 12px; }
}
