/* ============================================================
   GLOBAL SETTINGS & CSS VARIABLES
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #F7F4F0;
  --bg-secondary: #FFFFFF;
  --bg-dark: #1A1A1A;
  --bg-dark-soft: #242424;
  --accent: #E8461A;
  --accent-hover: #C73A14;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-light: #F7F4F0;
  --text-muted-light: #A8A8A8;
  --border: #E2DDD8;
  --border-dark: rgba(247,244,240,0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  opacity: 0;
  animation: page-fadein 400ms ease forwards;
  overflow-x: hidden;
}

/* Global font floor: 13px minimum */
* { min-font-size: 13px; }

@keyframes page-fadein {
  to { opacity: 1; }
}

/* ============================================================
   STICKY NAVIGATION
   ============================================================ */
#sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(247,244,240,0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

#sticky-nav.visible {
  opacity: 1;
  pointer-events: all;
}

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-cta {
  background: var(--accent);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  padding: 8px 20px;
  text-decoration: none;
  transition: background var(--transition-fast);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-cta:hover { background: var(--accent-hover); }

/* ============================================================
   SECTION DOT NAVIGATION
   ============================================================ */
#dot-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 800;
}

.dot-btn {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: all var(--transition-fast);
}

.dot-btn::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.4;
  transition: all var(--transition-fast);
}

.dot-btn.active::after {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-color: var(--accent);
  opacity: 1;
}

/* ============================================================
   REUSABLE COMPONENTS
   ============================================================ */
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: block;
}

.section-headline {
  font-family: 'Instrument Serif', serif;
  font-size: 44px;
  color: var(--text-primary);
  margin-top: 16px;
  line-height: 1.15;
}

.section-headline-light {
  color: var(--text-light);
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  padding: 14px 32px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background var(--transition-fast), color 200ms ease;
}
.btn-outline:hover {
  background: var(--accent);
  color: white;
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
#section-1 {
  height: 100vh;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.hero-left {
  width: 55%;
  height: 100vh;
  position: relative;
  flex-shrink: 0;
}

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

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 50%, #F7F4F0 100%);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-style: italic;
  color: rgba(26,26,26,0.45);
}

.hero-right {
  width: 45%;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  text-align: left;
}

.hero-label {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 500ms ease 100ms forwards;
}

.hero-name {
  font-family: 'Instrument Serif', serif;
  font-size: 64px;
  color: var(--text-primary);
  line-height: 1.05;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 500ms ease 200ms forwards;
}

.hero-descriptor {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 500ms ease 300ms forwards;
}

.hero-cta {
  align-self: flex-start;
  margin-top: 40px;
  font-size: 15px;
  padding: 14px 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 500ms ease 400ms forwards;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   SECTION 2 — METRICS
   ============================================================ */
#section-2 {
  background: var(--bg-dark);
  padding: 72px 64px;
}

.metrics-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.metric-block {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid var(--border-dark);
}

.metric-block:last-child {
  border-right: none;
}

.metric-number {
  font-family: 'Syne Mono', monospace;
  font-size: 44px;
  color: var(--accent);
  line-height: 1;
  display: block;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.metric-block.animated .metric-number {
  opacity: 1;
}

.metric-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-light);
  margin-top: 10px;
  display: block;
}

.metric-context {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
  display: block;
}

/* ============================================================
   SECTION 2B — BRANDS LOGO STRIP
   ============================================================ */
#section-brands {
  background: var(--bg-secondary);
  padding: 40px 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.brands-label {
  text-align: center;
  display: block;
  margin-bottom: 28px;
  color: var(--text-secondary);
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 24px;
  background: var(--bg-secondary);
  height: 64px;
  min-width: 120px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-tile:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(232,70,26,0.08);
}

.brand-logo {
  height: 28px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter var(--transition-fast), opacity var(--transition-fast);
}

.brand-tile:hover .brand-logo {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================================================
   SECTION 3 — PROFESSIONAL WORK
   ============================================================ */
#section-3 {
  background: var(--bg-primary);
  padding: 80px 64px;
}

.carousel-wrapper {
  margin-top: 48px;
  position: relative;
}

.carousel-track {
  display: flex;
  flex-direction: row;
  gap: 24px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: var(--accent);
  border: 1px solid var(--border-dark);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition-fast), color 200ms ease;
}

.carousel-arrow:hover {
  background: var(--accent);
  color: white;
}

.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }

.work-card {
  width: 320px;
  min-height: 440px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--bg-secondary);
  border-radius: 6px;
  padding: 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.work-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(232,70,26,0.12);
}

.work-card:hover .card-cta-link {
  opacity: 1;
}

.card-logos {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(26,26,26,0.06);
  padding: 4px 10px;
  border-radius: 4px;
  height: 32px;
}

.clearbit-logo {
  height: 20px;
  width: auto;
  display: block;
}

.card-metric {
  font-family: 'Syne Mono', monospace;
  font-size: 52px;
  color: var(--accent);
  margin-top: 24px;
  line-height: 1;
  display: block;
}

.card-label {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 10px;
  display: block;
}

.card-context {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
  display: block;
}

.card-insight {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-style: italic;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
  line-height: 1.6;
}

.card-cta-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--accent);
  margin-top: 12px;
  display: block;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

/* ============================================================
   SECTION 4 — MBA PROJECTS
   ============================================================ */
#section-4 {
  background: var(--bg-dark);
  padding: 80px 64px;
}

.mba-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mba-cell {
  height: 360px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-color: #2a2a2a;
}

.mba-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.92) 0%, rgba(26,26,26,0.2) 100%);
  transition: background var(--transition-smooth);
}

.mba-cell:hover .mba-overlay {
  background: rgba(26,26,26,0.72);
}

.mba-default-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  transition: opacity var(--transition-smooth);
}

.mba-cell:hover .mba-default-text {
  opacity: 0;
}

.mba-tag {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: block;
}

.mba-title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
  margin-top: 8px;
}

.mba-hover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  max-width: 280px;
  text-align: center;
  pointer-events: none;
}

.mba-cell:hover .mba-hover-text {
  opacity: 1;
}

.mba-hover-text p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================================
   SECTION 5 — THROUGHLINE STATEMENT
   ============================================================ */
#section-5 {
  background: var(--bg-primary);
  padding: 100px 64px;
  text-align: center;
}

.throughline-quote {
  font-family: 'Instrument Serif', serif;
  font-size: 52px;
  color: var(--text-primary);
  max-width: 700px;
  margin: 24px auto 0;
  line-height: 1.2;
  font-style: italic;
}

.throughline-quote .word {
  display: inline-block;
  opacity: 0;
  transition: opacity 400ms ease;
  margin-right: 0.2em;
}

.throughline-quote .word.visible {
  opacity: 1;
}

.throughline-divider {
  width: 64px;
  height: 3px;
  background: var(--accent);
  margin: 40px auto;
  border-radius: 2px;
}

.throughline-cards {
  display: flex;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.throughline-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  flex: 1;
  text-align: left;
}

.tl-card-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
}

.tl-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 8px;
  display: block;
}

.tl-card-insight {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 12px;
}

/* ============================================================
   SECTION 6 — CONTACT
   ============================================================ */
#section-6 {
  background: var(--bg-dark);
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
  display: block;
  background: var(--bg-dark-soft);
}

.contact-name {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  color: var(--text-light);
  margin-top: 24px;
}

.contact-role {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-muted-light);
  margin-top: 8px;
}

.contact-buttons {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-buttons .btn-primary {
  padding: 12px 28px;
}

.contact-info {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-muted-light);
  margin-top: 24px;
}

.contact-strip {
  width: calc(100% + 128px);
  background: #111111;
  padding: 16px;
  margin-top: 48px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted-light);
  text-align: center;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--bg-dark-soft);
  border-radius: 8px;
  padding: 48px;
  max-width: 680px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: modal-in 280ms ease forwards;
  scrollbar-width: thin;
  scrollbar-color: rgba(232,70,26,0.3) transparent;
}

.modal-card::-webkit-scrollbar { width: 4px; }
.modal-card::-webkit-scrollbar-thumb { background: rgba(232,70,26,0.3); border-radius: 2px; }

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes modal-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.96); }
}

.modal-card.closing {
  animation: modal-out 200ms ease forwards;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  color: var(--text-muted-light);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}
.modal-close:hover { color: var(--text-light); }

.modal-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.modal-title {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.2;
}

.modal-subtext {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-muted-light);
  margin-top: 8px;
  line-height: 1.6;
}

.modal-divider {
  border: none;
  border-top: 1px solid var(--border-dark);
  margin: 24px 0;
}

.modal-section-heading {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-top: 20px;
}

.modal-body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-muted-light);
  line-height: 1.8;
  margin-top: 8px;
}

.modal-metrics-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.modal-metric-item {
  background: rgba(232,70,26,0.08);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
}

.modal-metric-num {
  font-family: 'Syne Mono', monospace;
  font-size: 32px;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.modal-metric-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted-light);
  margin-top: 4px;
  display: block;
}

.modal-learning {
  background: rgba(232,70,26,0.08);
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  border-radius: 0 6px 6px 0;
  margin-top: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================================
   RESPONSIVE — MOBILE (390px)
   ============================================================ */
@media (max-width: 768px) {

  /* NAV */
  #sticky-nav { padding: 0 20px; }
  .nav-links { display: none; }

  /* DOT NAV */
  #dot-nav { right: 14px; }

  /* HERO */
  #section-1 {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .hero-left {
    width: 100%;
    height: 55vw;
    min-height: 240px;
  }

  .hero-gradient-overlay {
    background: linear-gradient(to bottom, transparent 50%, var(--bg-primary) 100%);
  }

  .hero-right {
    width: 100%;
    padding: 40px 24px 60px;
  }

  .hero-name {
    font-size: 48px;
  }

  .hero-descriptor {
    font-size: 16px;
  }

  /* BRANDS STRIP */
  #section-brands { padding: 32px 24px; }
  .brands-grid { gap: 12px; }
  .brand-tile { min-width: 90px; padding: 12px 16px; }

  /* METRICS */
  #section-2 { padding: 48px 24px; }

  .metrics-container {
    flex-wrap: wrap;
    gap: 0;
  }

  .metric-block {
    flex: none;
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
    padding: 28px 0;
  }

  /* 3+2+2 grid */
  .metric-block:nth-child(1),
  .metric-block:nth-child(2),
  .metric-block:nth-child(3) {
    width: 33.33%;
  }

  .metric-block:nth-child(4),
  .metric-block:nth-child(5),
  .metric-block:nth-child(6),
  .metric-block:nth-child(7) {
    width: 50%;
  }

  .metric-block:nth-child(6),
  .metric-block:nth-child(7) {
    border-bottom: none;
  }

  .metric-number {
    font-size: 36px;
  }

  /* SECTION 3 */
  #section-3 { padding: 60px 24px; }

  .carousel-prev { left: -10px; }
  .carousel-next { right: -10px; }

  .section-headline { font-size: 32px; }

  /* SECTION 4 */
  #section-4 { padding: 60px 24px; }

  .mba-grid {
    grid-template-columns: 1fr;
  }

  .mba-cell { height: 280px; }

  /* SECTION 5 */
  #section-5 { padding: 72px 24px; }

  .throughline-quote {
    font-size: 36px;
  }

  .throughline-cards {
    flex-direction: column;
  }

  /* SECTION 6 */
  #section-6 { padding: 60px 24px; }

  .contact-strip {
    width: calc(100% + 48px);
  }

  /* MODALS */
  .modal-card {
    border-radius: 0;
    padding: 28px;
    max-height: 100vh;
    width: 100%;
    max-width: 100%;
    margin: 0;
    align-self: flex-end;
  }

  .modal-title { font-size: 28px; }
  .modal-body { font-size: 15px; }
  .modal-overlay { align-items: flex-end; padding: 0; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 42px; }
  .section-headline { font-size: 28px; }
  .throughline-quote { font-size: 30px; }
  .contact-name { font-size: 28px; }
}

/* Ensure absolutely no text below 13px */
small, caption, label, .modal-metric-lbl,
.metric-context, .section-label, .mba-tag,
.modal-label, .modal-section-heading, .tl-card-label,
.hero-caption, .card-cta-link, .contact-info,
.contact-strip, .nav-cta {
  font-size: max(13px, 1em);
}
