/* Soft charcoal page, warm off-white type. Inter is self-hosted. */

:root {
  /* Dominant charcoal, supporting surfaces, sparse warm action accent. */
  --bg: #202326;
  --surface: #2a2e33;
  --surface-raised: #30353b;
  --surface-hover: #383e45;
  --text: #e8e3da;
  --text-hover: #cbc6bc;
  --muted: #b1b0ac;
  --line: #858e97;
  --line-strong: var(--line);
  --accent: #b6977f;
  --accent-hover: #c5aa94;

  /* Okabe-Ito sky blue, bluish green and orange, toned for small chips. */
  --tag-analytics-engineering: #719cb4;
  --tag-data-science: #52a98c;
  --tag-business-analysis: #b89a58;
  --tag-text: var(--bg);

  /* Compatibility aliases: existing components consume the semantic set. */
  --fg: var(--text);
  --fg-hover: var(--text-hover);
  --card: var(--surface);
  --card-03: var(--surface-raised);
  --card-04: var(--surface-hover);
  --max: 1180px;
  --header-h: calc(4rem + env(safe-area-inset-top, 0px));
  --g: 0.75rem;
  --v: 1.5rem;
  --pad-x: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);
  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --duration: 160ms;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease: var(--ease-out);
  --font: "Inter", system-ui, "Helvetica Neue", helvetica, arial, sans-serif;

  color-scheme: dark;
  font-size: 1rem;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  text-size-adjust: none;
}

@media (prefers-contrast: more) {
  :root {
    --line: #a1a9b0;
    --line-strong: #b9bfc5;
    --muted: #c9c8be;
  }
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 0.3ch;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip:focus-visible {
  position: fixed;
  top: 12px;
  left: 20px;
  z-index: 80;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad-x), env(safe-area-inset-right, 0px));
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0);
  background: var(--bg);
}

.header-bar {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  height: 100%;
}

.brand,
.nav a {
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: var(--fg);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  color: var(--fg);
  border: 1px solid transparent;
}

.brand:hover,
.nav a:hover {
  color: var(--fg-hover);
}

@media (width >= 60rem) {
  .header-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
  }

  .nav {
    margin-left: 0;
    justify-self: center;
  }
}

@media (width < 60rem) {
  .nav a {
    padding-inline: 10px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0.7em 1.2em 0.72em;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    background-color var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out),
    transform 140ms var(--ease-out);
}

.btn-sm {
  padding: 0.42em 0.85em 0.44em;
  font-size: 0.875rem;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-primary:active {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-secondary {
  color: var(--fg);
  background: var(--card-03);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: var(--card-04);
}

.btn-secondary:active {
  background: var(--card-03);
}

.btn-ghost {
  color: var(--fg);
  background: transparent;
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--card);
}

.btn-ghost:active {
  background: transparent;
}

.header-bar .btn {
  margin-left: 4px;
}

@media (width >= 60rem) {
  .header-bar .btn {
    margin-left: 0;
    justify-self: end;
  }
}

@media (width < 60rem) {
  .header-bar .btn {
    min-height: 44px;
  }
}

main {
  padding-top: var(--header-h);
}

.section {
  padding-block: var(--section-y);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.85rem, 2.2vw + 1.1rem, 2.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 1.1vw + 1.15rem, 1.85rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.022em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.hero {
  position: relative;
  padding-top: calc(var(--v) * 4.25);
  padding-bottom: calc(var(--v) * 2.25);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image: radial-gradient(circle, color-mix(in oklab, var(--fg) 11%, transparent) 1px, transparent 1.2px);
  background-size: 1.85rem 1.85rem;
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.7), transparent 92%);
}

.hero-grid,
.hero-copy,
.pipe {
  position: relative;
}

@media (width >= 60rem) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 3.5rem;
    align-items: center;
  }
}

.lede {
  max-width: 28rem;
  margin-top: 1.15rem;
  font-size: 1.125rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.caret {
  display: inline-block;
  width: 0.09em;
  height: 0.95em;
  margin-left: 0.12em;
  vertical-align: -0.08em;
  background: var(--fg);
  animation: caret-blink 1s steps(1, end) infinite;
}

@keyframes caret-blink {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0; }
}

.pipe {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.pipe-node {
  flex: 0 0 auto;
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.pipe-node.is-tests {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  color: var(--fg);
  border-color: var(--line-strong);
}

.pipe-check {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--accent);
}

.pipe-check path {
  stroke-dasharray: 18;
  stroke-dashoffset: 0;
}

.pipe-edge {
  position: relative;
  flex: 1 1 1.75rem;
  min-width: 1.25rem;
  height: 0.5rem;
  overflow: hidden;
}

.pipe-edge::before {
  position: absolute;
  inset: 50% 0 auto;
  height: 0;
  content: "";
  border-top: 1.5px dotted var(--line);
}

.pipe-flow {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
}

.pipe-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: no-preference) {
  .pipe-check path {
    stroke-dashoffset: 18;
    animation: check-tick 5.5s var(--ease-out) infinite;
  }

  .pipe-flow {
    animation: pipe-flow 3.4s linear infinite;
  }

  .pipe-flow.is-late {
    animation-delay: 1.7s;
  }

  .pipe-dot {
    animation: pipe-dot-fade 3.4s linear infinite;
  }

  .pipe-flow.is-late .pipe-dot {
    animation-delay: 1.7s;
  }
}

@keyframes check-tick {
  0%,
  6% { stroke-dashoffset: 18; }

  16%,
  82% { stroke-dashoffset: 0; }

  92%,
  100% { stroke-dashoffset: 18; }
}

@keyframes pipe-flow {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

@keyframes pipe-dot-fade {
  0%,
  8% { opacity: 0; }

  18%,
  82% { opacity: 1; }

  92%,
  100% { opacity: 0; }
}

@media (width < 60rem) {
  .pipe {
    max-width: 34rem;
    margin-top: clamp(1.75rem, 5vw, 2.5rem);
    margin-inline: auto;
  }
}

@media (width < 40rem) {
  .pipe-node {
    padding: 0.32rem 0.45rem;
    font-size: 0.625rem;
    letter-spacing: 0.02em;
  }

  .pipe-check {
    width: 0.7rem;
    height: 0.7rem;
  }

  .pipe-edge {
    flex-basis: 0.75rem;
    min-width: 0.35rem;
  }
}

.where,
.meta,
.when,
.shot-note,
.tl-kicker,
.browser-url {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.where {
  margin-top: calc(var(--v) * 0.5);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--g);
  margin-top: var(--v);
}

.tools {
  padding-block: 0.9rem 1.15rem;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.tools-mask {
  padding-left: max(var(--pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad-x), env(safe-area-inset-right, 0px));
}

.tools-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  justify-content: center;
  margin: 0;
  padding: 0 0.3rem;
  list-style: none;
}

.tools-list li {
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.shot-note {
  margin-top: calc(var(--v) * 1.35);
}

.work-section,
#experience,
#contact {
  border-top: 1px solid var(--line);
}

.work-section {
  position: relative;
  isolation: isolate;
}

.shot {
  position: relative;
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.32);
}

.browser {
  display: block;
}

.browser-chrome {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.85rem;
  background: var(--card-03);
  border-bottom: 1px solid var(--line);
}

.browser-dots {
  display: flex;
  flex: 0 0 auto;
  gap: 0.35rem;
}

.browser-dots span {
  width: 0.45rem;
  height: 0.45rem;
  background: color-mix(in oklab, var(--fg) 28%, transparent);
  border-radius: 50%;
}

.browser-url {
  min-width: 0;
  overflow: hidden;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
}

/* Lantern's screenshot is a wide strip on parchment: show all of it, padded in its own paper colour. */
.shot img[data-fit="contain"] {
  object-fit: contain;
  object-position: center;
  background: #f0e7d6;
}

@media (hover: hover) and (pointer: fine) {
  .card {
    transition:
      transform 200ms var(--ease-out),
      border-color 200ms var(--ease-out),
      box-shadow 200ms var(--ease-out);
  }

  .card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 22px 48px rgb(0 0 0 / 0.38);
    transform: translateY(-3px);
  }
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.7rem;
  margin-top: calc(var(--v) * 2.25);
  padding: 0.4rem 0.4rem 0.6rem 0.9rem;
}

.timeline-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--line);
  pointer-events: none;
  overflow: visible;
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 0.75rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.tl-node {
  position: relative;
  z-index: 1;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.45rem;
  background: var(--fg);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--bg);
}

.tl-node.is-edu {
  background: var(--bg);
  border: 1.5px solid var(--fg);
  box-shadow: 0 0 0 3px var(--bg);
}

.tl-node.is-current {
  background: var(--accent);
  border: 0;
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 0 color-mix(in oklab, var(--accent) 40%, transparent);
}

.tl-node.is-sub {
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.35rem;
  background: color-mix(in oklab, var(--fg) 70%, transparent);
  box-shadow: 0 0 0 2px var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  .tl-node.is-current {
    animation: node-pulse 2.4s var(--ease-out) infinite;
  }
}

@keyframes node-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px var(--bg),
      0 0 0 0 color-mix(in oklab, var(--accent) 40%, transparent);
  }

  50% {
    box-shadow:
      0 0 0 3px var(--bg),
      0 0 0 8px color-mix(in oklab, var(--accent) 0%, transparent);
  }
}

.tl-card .role-top {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
  justify-content: space-between;
}

.tl-card .role-top h3 {
  flex: 1 1 14rem;
  min-width: 0;
}

.tl-card .meta {
  margin-top: calc(var(--v) * 0.35);
}

.tl-card p:not(.when, .meta, .tl-kicker) {
  max-width: 68ch;
  margin-top: calc(var(--v) * 0.75);
}

.tl-subs {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.8rem;
  padding-left: 0.15rem;
}

.tl-sub {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.tl-sub .meta {
  margin-top: 0.15rem;
}

.tl-edu-head h2 {
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.tl-kicker {
  display: none;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (width >= 60rem) {
  .timeline {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.15rem 4.5rem;
  }

  .tl-work[data-step="bwh"] {
    grid-column: 1;
    grid-row: 1;
  }

  .tl-edu-head {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    padding-left: 1.75rem;
  }

  .tl-work[data-step="usc"] {
    grid-column: 1;
    grid-row: 2;
  }

  .tl-edu[data-step="umbc"] {
    grid-column: 2;
    grid-row: 2;
    padding-top: 1.65rem;
  }

  .tl-work[data-step="hdfc"] {
    grid-column: 1;
    grid-row: 3 / 5;
  }

  .tl-edu[data-step="nit"] {
    grid-column: 2;
    grid-row: 4;
  }
}

@media (width < 60rem) {
  .timeline {
    display: flex;
    flex-direction: column;
  }

  .tl-work[data-step="bwh"] { order: 1; }
  .tl-edu-head { order: 2; }
  .tl-edu[data-step="umbc"] { order: 3; }
  .tl-work[data-step="usc"] { order: 4; }
  .tl-work[data-step="hdfc"] { order: 5; }
  .tl-edu[data-step="nit"] { order: 6; }

  .tl-edu[data-step="nit"] .tl-kicker {
    display: block;
  }
}

.site-footer {
  padding-block: calc(var(--v) * 3);
  padding-bottom: max(calc(var(--v) * 3), env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}

.site-footer .meta {
  margin-top: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transition:
      opacity 600ms var(--ease-out),
      transform 600ms var(--ease-out);
    transform: translateY(0.8rem);
  }

  html.js .reveal[data-visible] {
    opacity: 1;
    transform: none;
  }

  html.js .timeline:not([data-drawn]) .timeline-svg {
    clip-path: inset(0 0 100% 0);
  }

  html.js .timeline[data-drawn] .timeline-svg {
    transition: clip-path 900ms var(--ease-out);
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .caret {
    animation: none !important;
    opacity: 1;
  }

  .pipe-flow,
  .pipe-dot,
  .pipe-check path,
  .tl-node.is-current {
    animation: none !important;
  }

  .pipe-flow {
    transform: none;
  }

  .pipe-check path {
    stroke-dashoffset: 0;
  }

  .reveal,
  .timeline-svg {
    opacity: 1;
    clip-path: none;
    transform: none;
  }
}

/* Project cards: one template, any number of projects, any width. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: var(--gap);
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: card;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  counter-increment: card;
}

.card .shot {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
}

.card-body::before {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  content: counter(card, decimal-leading-zero);
}

/* Categories are labels, not controls: words remain meaningful without colour. */
.category-tag {
  align-self: flex-start;
  max-width: 100%;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--tag-text);
  background: var(--tag-bg);
  border: 1px solid var(--tag-bg);
  border-radius: 999px;
}

.category-tag[data-category="analytics-engineering"] {
  --tag-bg: var(--tag-analytics-engineering);
}

.category-tag[data-category="data-science"] {
  --tag-bg: var(--tag-data-science);
}

.category-tag[data-category="business-analysis"] {
  --tag-bg: var(--tag-business-analysis);
}

.card-title {
  font-size: clamp(1.15rem, 0.6vw + 1rem, 1.3rem);
}

.card-line {
  min-height: calc(1.55em * 4);
  line-height: 1.55;
}

.card .meta {
  min-height: calc(1.5em * 2);
}

.card .actions {
  margin-top: auto;
  padding-top: 0.4rem;
}

/* Phones: short brand mark so the header never crowds. */
.brand-short {
  display: none;
  letter-spacing: 0.04em;
}

@media (width < 40rem) {
  .brand-full {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .brand-short {
    display: inline;
  }
}

/* Folded phones: keep full-size controls, not a squeezed single-row header. */
@media (width < 22rem) {
  :root {
    --header-h: calc(6.5rem + env(safe-area-inset-top, 0px));
    --pad-x: 0.75rem;
  }

  .header-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr 1fr;
    gap: 0;
  }

  .brand {
    justify-self: start;
  }

  .header-bar .btn {
    grid-column: 2;
    grid-row: 1;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-inline: auto;
  }

  .pipe-node {
    padding-inline: 0.2rem;
  }

  .pipe-edge {
    min-width: 0.2rem;
  }
}

/* Short viewports use content height, never a fixed 100vh hero. */
@media (height <= 35rem) {
  .hero {
    padding-top: clamp(1.5rem, 6svh, 2.5rem);
    padding-bottom: clamp(1.5rem, 5svh, 2rem);
  }
}

/* Dual-screen fallback: one intact reading pane, never text under a hinge.
   This is deliberately scoped to actual viewport segments, not tablet widths. */
/* stylelint-disable-next-line media-feature-range-notation -- Discrete segment count. */
@media (horizontal-viewport-segments: 2) {
  body,
  .site-header {
    width: env(viewport-segment-width 0 0);
  }

  .site-header {
    right: auto;
  }

  .header-bar {
    display: flex;
    gap: 0.25rem;
  }

  .nav {
    margin-left: auto;
  }

  .header-bar .btn {
    margin-left: 4px;
  }

  .hero-grid {
    display: block;
  }

  .pipe {
    margin-top: 2rem;
  }

  .timeline {
    display: flex;
    flex-direction: column;
  }

  .tl-work[data-step="bwh"] { order: 1; }
  .tl-edu-head { order: 2; }
  .tl-edu[data-step="umbc"] { order: 3; }
  .tl-work[data-step="usc"] { order: 4; }
  .tl-work[data-step="hdfc"] { order: 5; }
  .tl-edu[data-step="nit"] { order: 6; }

  .tl-edu-head,
  .tl-edu[data-step="umbc"] {
    padding: 0;
  }

  .tl-edu[data-step="nit"] .tl-kicker {
    display: block;
  }
}

/* stylelint-disable-next-line media-feature-range-notation -- Discrete segment count. */
@media (vertical-viewport-segments: 2) {
  html,
  body {
    height: env(viewport-segment-height 0 0);
  }

  html {
    overflow: hidden;
  }

  body {
    overflow-y: auto;
    scroll-padding-top: calc(var(--header-h) + 1rem);
  }

  .hero {
    padding-block: 2rem;
  }
}
