/*--------------------------------------------*/
/*  home page                                  */
/*  light = "iced", dark = "hot"               */
/*--------------------------------------------*/

:root {
  --paper: #FAF8F3;
  --paper-raised: #FFFFFF;
  --ink: #1C1D22;
  --ink-soft: rgba(28, 29, 34, 0.64);
  --ink-faint: rgba(28, 29, 34, 0.12);
  --accent: #3F5D9C;

  --wash-1: rgba(255, 255, 255, 0.9);
  --wash-2: rgba(205, 222, 246, 0.85);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.11 0 0 0 0 0.13 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-opacity: 0.07;

  --font-sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 5vw, 64px);
  --max: calc(1040px + 2 * var(--gutter));
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #17181B;
  --paper-raised: #202125;
  --ink: #EDEBE7;
  --ink-soft: rgba(237, 235, 231, 0.64);
  --ink-faint: rgba(237, 235, 231, 0.12);
  --accent: #9DB3DE;

  --wash-1: transparent;
  --wash-2: rgba(110, 140, 195, 0.18);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-opacity: 0.05;
  color-scheme: dark;
}

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

html {
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  transition: background-color .35s ease;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: color .35s ease;
}

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

a {
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}

/* no lonely single words on the last line */
.stage-desc,
.stage-title,
.key-desc,
.hero-statement {
  text-wrap: balance;
}

.about-bio p,
.card-desc,
.earlier-desc,
.facts-grid figcaption {
  text-wrap: pretty;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}


/*-------------background wash + grain---------------*/

.wash {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(45% 45% at 10% 0%, var(--wash-1), transparent),
    radial-gradient(60% 60% at 92% 0%, var(--wash-2), transparent);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 240px 240px;
  opacity: var(--grain-opacity);
}


/*-------------navigation---------------*/

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--ink-faint);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.arrow {
  font-size: .8em;
  margin-left: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
}

.nav-social {
  display: flex;
  gap: 14px;
}

.nav-social a {
  display: block;
  width: 19px;
  height: 19px;
  transition: color .2s ease;
}

.nav-social a:hover {
  color: var(--accent);
}

.nav-social svg {
  width: 100%;
  height: 100%;
}

/* iced / hot toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 4px 0 4px 6px;
  background: none;
  border: 0;
  color: inherit;
  font: 400 12px/1 var(--font-mono);
  cursor: pointer;
}

.theme-track {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: var(--ink);
  transition: background-color .35s ease;
}

.theme-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  transition: transform .3s ease, background-color .35s ease;
}

:root[data-theme="dark"] .theme-knob {
  transform: translateX(14px);
}

.theme-label {
  opacity: .45;
  transition: opacity .2s ease;
}

:root:not([data-theme="dark"]) .theme-label-iced,
:root[data-theme="dark"] .theme-label-hot {
  opacity: 1;
}


/*-------------hero---------------*/

.hero {
  padding: clamp(40px, 9vh, 104px) 0 clamp(32px, 4vw, 56px);
}

.hero-title {
  font-size: clamp(44px, 5.4vw, 68px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) auto;
  justify-content: space-between;
  gap: clamp(48px, 6vw, 80px);
  align-items: center;
}

.hero-role {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .01em;
}

.hero-role span {
  white-space: nowrap;
}

.hero-statement {
  max-width: 30ch;
  margin-top: 36px;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s ease, color .35s ease;
}

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

.link-underline {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}

.link-underline:hover {
  color: var(--accent);
}

/* portrait + doodles that draw themselves in (final state is the default,
   so reduced-motion visitors simply see the finished drawing) */
.hero-photo {
  position: relative;
  width: clamp(260px, 27vw, 380px);
  margin: 12px 18px 24px 0;
}

.portrait {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(.86);
}

.photo-doodles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.doodle-frame {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw-frame 1.3s cubic-bezier(.6, .1, .3, 1) .3s both;
}

@keyframes draw-frame {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}

.doodle-latte {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: pop-in .6s cubic-bezier(.3, 1.7, .5, 1) 1.4s both;
}

@keyframes pop-in {
  from { transform: scale(0) rotate(-25deg); }
  to   { transform: none; }
}

.doodle-straw {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: straw-settle .9s cubic-bezier(.3, 1.8, .5, 1) 1.8s both;
}

@keyframes straw-settle {
  from { transform: rotate(-22deg); }
  to   { transform: none; }
}

.clink {
  transform-box: fill-box;
  transform-origin: center;
  animation: clink .5s ease-in-out 2s 3;
}

.clink-2 { animation-delay: 2.1s; }
.clink-3 { animation-delay: 2.2s; }

@keyframes clink {
  50% { rotate: 12deg; translate: 0 -4px; }
}

.sparkle {
  transform-box: fill-box;
  transform-origin: center;
  animation: sparkle-in .5s cubic-bezier(.3, 1.8, .5, 1) both, twinkle 3.2s ease-in-out infinite;
}

.sparkle-1 { animation-delay: 2.2s, 2.7s; }
.sparkle-2 { animation-delay: 2.4s, 3.5s; }
.sparkle-3 { animation-delay: 2.6s, 4.3s; }

@keyframes sparkle-in {
  from { transform: scale(0) rotate(-90deg); }
  to   { transform: none; }
}

@keyframes twinkle {
  0%, 100% { scale: 1; rotate: 0deg; }
  50%      { scale: .78; rotate: 18deg; }
}

.sparkles,
.straw-wiggle {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.sparkles {
  transform-origin: center;
  transition: transform .35s cubic-bezier(.3, 1.8, .5, 1);
}

@media (hover: hover) {
  .hero-photo:hover .sparkles {
    transform: scale(1.12);
  }

  .hero-photo:hover .straw-wiggle {
    animation: straw-wiggle .6s ease-in-out;
  }
}

@keyframes straw-wiggle {
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(7deg); }
}


/*-------------work---------------*/

.work {
  padding: 0 0 clamp(72px, 10vw, 128px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--ink-faint);
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 36px);
}

.card {
  display: block;
  text-decoration: none;
}

.card-img {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper-raised);
}

.card-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 18px;
}

.card-title {
  font-size: clamp(19px, 1.8vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color .2s ease;
}

.card-company {
  flex: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}

.lock {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -.15em;
}

.card-desc {
  display: block;
  max-width: 52ch;
  margin-top: 6px;
  font-size: 16px;
  color: var(--ink-soft);
}

@media (hover: hover) {
  .card:hover .card-img img {
    transform: scale(1.025);
  }

  .card:hover .card-title {
    text-decoration-color: currentColor;
  }
}


/* betterment + earlier work groups */
.work-group + .work-group {
  margin-top: clamp(72px, 9vw, 112px);
}

.group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.group-title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* placeholder covers until the case studies are ready */
.card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--ink-faint);
}

.card-placeholder span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}

.tone-sky {
  background: radial-gradient(80% 90% at 85% 10%, rgba(205, 222, 246, 0.9), transparent), var(--paper-raised);
}

.tone-egg {
  background: radial-gradient(80% 90% at 15% 10%, rgba(240, 232, 214, 0.9), transparent), var(--paper-raised);
}

:root[data-theme="dark"] .tone-sky,
:root[data-theme="dark"] .tone-egg {
  background: radial-gradient(80% 90% at 85% 10%, rgba(110, 140, 195, 0.16), transparent), var(--paper-raised);
}

.card.is-soon {
  cursor: default;
}

/* earlier work: a compact list, image preview on hover */
.earlier-list {
  border-top: 1px solid var(--ink-faint);
}

.earlier-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--ink-faint);
  text-decoration: none;
}

.earlier-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.earlier-title {
  font-size: clamp(18px, 1.7vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.earlier-desc {
  max-width: 54ch;
  font-size: 15px;
  color: var(--ink-soft);
}

.earlier-company {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.earlier-arrow {
  transition: transform .25s ease;
}

.earlier-doodle {
  width: 56px;
  height: 56px;
  overflow: visible;
}

@media (hover: hover) {
  .earlier-row:hover .earlier-doodle {
    animation: doodle-wiggle .5s ease-in-out;
  }

  .earlier-row:hover .earlier-title {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
  }

  .earlier-row:hover .earlier-arrow {
    transform: translateX(4px);
  }
}

@keyframes doodle-wiggle {
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(6deg); }
}

@media (max-width: 600px) {
  .earlier-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 6px 16px;
  }

  .earlier-doodle {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
  }

  .earlier-company {
    grid-row: 1;
    grid-column: 2;
  }

  .earlier-text {
    grid-column: 2;
  }

  .earlier-arrow {
    grid-row: 1 / span 2;
    grid-column: 3;
  }
}


/*-------------about page---------------*/

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.about-hero .portrait {
  aspect-ratio: 4 / 5;
  object-position: 50% 85%;
}

.about-bio {
  margin-top: 36px;
}

.about-bio p {
  max-width: 50ch;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
}

.about-bio p + p {
  margin-top: 18px;
}

.inline-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s ease;
}

.inline-link:hover {
  color: var(--accent);
}

.page-section {
  padding-bottom: clamp(72px, 10vw, 120px);
}

/* experience as a race course: checkpoints zig-zag, the route is drawn by home.js */
.route {
  position: relative;
}

.route-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.route-stages {
  position: relative;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px minmax(0, 1fr);
  align-items: center;
  min-height: 112px;
}

.stage-pin {
  grid-row: 1;
  grid-column: 2;
}

.stage-left .stage-pin { justify-self: start; }
.stage-right .stage-pin { justify-self: end; }

.stage-label {
  grid-row: 1;
  max-width: 36ch;
}

.stage-left .stage-label {
  grid-column: 1;
  justify-self: end;
  padding-right: 20px;
  text-align: right;
}

.stage-right .stage-label {
  grid-column: 3;
  padding-left: 20px;
}

.stage-marker {
  display: block;
  width: 48px;
  height: 48px;
  overflow: visible;
}

.stage-marker-sm {
  width: 40px;
  height: 40px;
}

.stage-marker-lg {
  width: 64px;
  height: 56px;
}

.mile-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  fill: currentColor;
}

.stage-mile {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}

.stage-title {
  display: inline-block;
  margin-top: 2px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.stage-desc {
  margin-top: 4px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* aid + cheer stations are map symbols on the course, explained in the key */
.stage-center .stage-pin {
  justify-self: center;
}

.stage-symbol {
  min-height: 72px;
}

.stage-symbol .stage-marker {
  transform: rotate(-8deg);
}

.stage-station .stage-pin {
  margin-left: 112px;
}

.route-leader {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1 5;
  opacity: 0;
  transition: opacity .4s ease;
}

.route-leader.is-on {
  opacity: .7;
}

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

/* map key */
.course-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
  margin-top: clamp(32px, 4vw, 48px);
  padding: 18px 24px;
  border: 1px solid var(--ink-faint);
}

.key-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}

.key-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
}

.key-items li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.key-icon {
  flex: none;
  width: 30px;
  height: 30px;
  overflow: visible;
}

.key-icon-wide {
  width: 36px;
}

.key-name {
  font-weight: 500;
  margin-right: 6px;
}

.key-desc {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
}

/* on desktop each key entry stays on one line per row, so the key reads evenly */
@media (min-width: 961px) {
  .key-items .key-name,
  .key-items .key-desc {
    white-space: nowrap;
  }
}

.stage-finish .stage-title {
  font-size: 18px;
}

/* checkpoints pop in as the route reaches them (only when motion is allowed) */
.route.is-animated .stage-pin,
.route.is-animated .stage-label {
  opacity: 0;
  transform: scale(.6);
  transition: opacity .4s ease, transform .5s cubic-bezier(.3, 1.6, .5, 1);
}

.route.is-animated .stage-label {
  transform: translateY(8px);
}

.route.is-animated .stage.is-reached .stage-pin,
.route.is-animated .stage.is-reached .stage-label {
  opacity: 1;
  transform: none;
}

/* wide screens: the course runs left to right, labels alternate above and below */
@media (min-width: 961px) {
  .route {
    margin-inline: calc(-1 * clamp(0px, (100vw - 1180px) / 2, 100px));
  }

  .route-stages {
    display: grid;
    grid-template-columns: minmax(0, .45fr) repeat(7, minmax(0, 1fr));
  }

  .route-stages .stage {
    grid-row: 1;
    grid-column: var(--col);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 116px 140px 116px;
    min-height: 0;
  }

  .route-stages .stage .stage-pin {
    grid-row: 2;
    grid-column: 1;
    justify-self: center;
  }

  /* a gentle wave: markers sit a little higher or lower on the course */
  .route-stages .is-above .stage-pin { align-self: end; margin-bottom: 22px; }
  .route-stages .is-below .stage-pin { align-self: start; margin-top: 22px; }

  .route-stages .stage .stage-label {
    grid-column: 1;
    justify-self: center;
    width: min(290px, calc(200% - 20px));
    max-width: none;
    padding: 0;
    text-align: center;
  }

  .route-stages .is-above .stage-label {
    grid-row: 1;
    align-self: end;
  }

  .route-stages .is-below .stage-label {
    grid-row: 3;
    align-self: start;
  }

  /* start and finish hug the edges */
  .route-stages .stage:first-child .stage-pin,
  .route-stages .stage:first-child .stage-label {
    justify-self: start;
    text-align: left;
  }

  .route-stages .stage-finish .stage-pin,
  .route-stages .stage-finish .stage-label {
    justify-self: end;
    text-align: right;
  }

  .route-stages .stage-finish .stage-label {
    width: max-content;
  }

  .stage-desc {
    font-size: 14px;
  }

  .route-stages .stage-symbol .stage-pin {
    align-self: center;
  }

  /* stations sit beside the course; home.js places them next to the line */
  .route-stages .stage-station {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    min-height: 0;
    transform: translate(-50%, -50%);
  }

  .route-stages .stage-station .stage-pin {
    margin: 0;
  }
}

@media (min-width: 961px) and (max-width: 1199px) {
  .route-stages .stage-desc {
    font-size: 13px;
  }
}


@media (max-width: 700px) {
  .stage {
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 14px;
    min-height: 0;
    padding: 18px 0;
  }

  .stage-pin {
    grid-column: 1;
  }

  .stage .stage-label {
    grid-column: 2;
    justify-self: start;
    padding: 0;
    text-align: left;
  }

  .stage-marker {
    width: 42px;
    height: 42px;
  }

  .stage-marker-sm {
    width: 36px;
    height: 36px;
  }

  .stage-marker-lg {
    width: 54px;
    height: 48px;
  }

  .stage-symbol {
    padding: 4px 0;
  }

  .stage-station .stage-pin {
    grid-column: 2;
    justify-self: start;
    margin-left: -4px;
  }
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 36px) clamp(16px, 2.4vw, 28px);
}

.facts-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.facts-grid figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (max-width: 820px) {
  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
}


/*-------------footer---------------*/

.footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--ink-faint);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-credit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}


/*-------------scroll reveal---------------*/

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}


/*-------------smaller screens---------------*/

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 40px;
  }

  .hero-photo {
    order: -1;
    justify-self: center;
    width: min(72vw, 300px);
    margin: 12px 0 20px;
  }

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

}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .nav-social,
  .theme-label {
    display: none;
  }

  .nav-inner {
    min-height: 56px;
  }


  .card-meta {
    flex-direction: column;
    gap: 2px;
  }

  .card-company {
    order: -1;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
