/* Homepage-only styles; shared pages retain their existing layouts. */
.compact-home {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Use the same container width and navigation spacing as every other page. */
.compact-home .container {
  width: min(1200px, calc(100% - 40px));
  margin: auto;
}

.compact-home .main-nav {
  min-height: 74px;
  padding: 16px 0;
}

.compact-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(310px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-block: 24px;
}

.career-column {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding-right: 28px;
}

.compact-portrait {
  display: block;
  width: 264px;
  height: 264px;
  margin: 0 auto 24px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 4px solid var(--bg);
  outline: 2px solid var(--gold);
  animation: portrait-float 6s ease-in-out infinite;
}

@keyframes portrait-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .compact-portrait {
    animation: none;
  }
}

.compact-experience {
  scroll-margin-top: 20px;
}

.compact-experience > h2 {
  margin: 0 0 14px;
  font: 700 0.75rem/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.career-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.career-stop {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
}

.career-stop:last-child {
  padding-bottom: 0;
}

.career-stop:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.career-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--surface);
  color: var(--blue);
}

.career-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.career-stop h3 {
  margin: 0 0 2px;
  font: 700 0.9rem/1.3 Arial, Helvetica, sans-serif;
}

.career-stop p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}

.career-stop .career-dates {
  font-size: 0.75rem;
  color: var(--blue);
}

.career-stop abbr {
  text-underline-offset: 3px;
  cursor: help;
}

.career-stop abbr:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.intro-column {
  min-width: 0;
  scroll-margin-top: 20px;
}

.intro-column h1 {
  margin: 0 0 8px;
  font: 800 clamp(2.7rem, 5vw, 4.5rem)/1.05 Arial, Helvetica, sans-serif;
  letter-spacing: -0.05em;
}

.intro-column .professional-title {
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.intro-column .intro-headline {
  margin: 0 0 20px;
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  line-height: 1.35;
}

.intro-column > p:not(.professional-title) {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.65;
}

.creator-note a {
  text-underline-offset: 3px;
}

.intro-column .buttons {
  margin-top: 22px;
}

.compact-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.85rem;
}

.compact-footer {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.75rem;
}

/* Stack naturally on mobile; never crop content to force one screen. */
@media (max-width: 760px) {
  .compact-home .container {
    width: calc(100% - 32px);
  }

  .compact-home .main-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .compact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-block: 28px;
  }

  .career-column {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 26px;
  }

  .compact-portrait {
    width: 224px;
    height: 224px;
    margin-bottom: 22px;
  }

  .intro-column .professional-title {
    margin-bottom: 18px;
  }
}

@media (min-width: 761px) and (max-height: 740px) {
  .compact-layout {
    padding-block: 16px;
  }

  .compact-portrait {
    width: 224px;
    height: 224px;
    margin-bottom: 16px;
  }

  .career-stop {
    padding-bottom: 8px;
  }
}
