/* 김관응 — Product Engineer portfolio */
@font-face {
  font-family: "Pretendard";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/woff2/PretendardVariable.woff2")
    format("woff2-variations");
}

:root {
  --ink: #0c0f14;
  --ink-soft: #2a3140;
  --ink-mute: #5c6778;
  --paper: #eef1f4;
  --paper-2: #e2e7ed;
  --paper-3: #d5dce5;
  --line: rgba(12, 15, 20, 0.1);
  --line-strong: rgba(12, 15, 20, 0.22);
  --accent: #1f6feb;
  --accent-deep: #0d4fbf;
  --signal: #ff4d2e;
  --mist: #8b97a8;
  --glow: rgba(31, 111, 235, 0.18);
  --radius: 0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Syne", "Pretendard", sans-serif;
  --font-body: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --nav-h: 4.25rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  /*
   * Overscroll rubber-band color only. Safari 26 bottom chin prefers a
   * bottom-edge fixed probe (.safari-chrome-tint); keep body painted so
   * pull-to-refresh never flashes system white.
   */
  background-color: var(--paper);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/*
 * Safari 26 Liquid Glass chin probe (bottom edge, ≥80% wide, ≥3px tall).
 * No background-color → transparent glass so the page wash shows through.
 * A solid --paper fill here was the opaque white shelf on GitHub Pages.
 */
.safari-chrome-tint {
  position: fixed;
  bottom: -8px;
  left: 0;
  width: 100%;
  min-height: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  z-index: 2;
  display: block;
  background: none;
  background-color: unset;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-deep);
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.site {
  position: relative;
  z-index: 1;
}

/*
 * Page wash lives on .site as absolute (not fixed) so it still paints under
 * the address-bar chin, but is never sampled for Safari toolbar tinting.
 */
.site::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1200px 700px at 12% -10%, var(--glow), transparent 55%),
    radial-gradient(900px 600px at 100% 8%, rgba(255, 77, 46, 0.08), transparent 50%),
    linear-gradient(165deg, #f5f7fa 0%, var(--paper) 42%, #e6ebf1 100%);
}

.site::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.site > main,
.site > .footer {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  background: transparent;
  /* Border lives on ::before only — a border here caused a 1px gap above the menu */
}

/* Full-bleed bar sits above the mobile menu so the panel slides out from under it */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--paper) 82%, white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.nav.is-scrolled::before {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 92%, white);
}

.nav__inner {
  position: relative;
  /* No z-index: keep brand/toggle and the menu in .nav's stacking context
     so ::before can sit between them (menu under the bar). */
  width: min(100% - (var(--gutter) * 2), var(--max));
  height: var(--nav-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand,
.nav__toggle {
  position: relative;
  z-index: 3;
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav__brand:hover {
  color: var(--ink);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink-soft);
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  background: var(--ink);
  color: var(--paper) !important;
  text-decoration: none !important;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), background 0.25s ease;
}

.nav__cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav__toggle span {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1rem;
  height: 1.5px;
  background: var(--ink);
}

.nav__toggle span::before {
  top: -5px;
}

.nav__toggle span::after {
  top: 5px;
}

@media (max-width: 760px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    position: fixed;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    /* No top padding — first item (Work) sits flush under the header */
    padding: 0 var(--gutter) 1.25rem;
    /*
     * Safari 26 still samples opacity:0 fixed layers. A near-white fill here
     * tints the Liquid Glass chrome even while the menu is closed — keep the
     * closed panel unpainted, and drop it from the render tree via [hidden].
     */
    background: transparent;
    border-bottom: 1px solid transparent;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s var(--ease), opacity 0.3s ease;
  }

  .nav__links[hidden] {
    display: none;
  }

  .nav.is-open .nav__links {
    background: color-mix(in srgb, var(--paper) 96%, white);
    border-bottom-color: var(--line);
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Same wash as the open menu so the join reads as one surface */
  .nav.is-open::before {
    background: color-mix(in srgb, var(--paper) 96%, white);
    border-bottom-color: transparent;
  }

  .nav__links li {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .nav__links a {
    display: block;
    padding: 0.95rem 0;
  }

  /* Match Work / Approach / Contact link style on mobile */
  .nav__cta {
    margin-top: 0;
    padding: 0.95rem 0;
    background: transparent;
    color: var(--ink-soft) !important;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.01em;
  }

  .nav__cta:hover {
    background: transparent;
    color: var(--ink) !important;
    transform: none;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h) - env(safe-area-inset-top, 0px));
  display: grid;
  align-items: end;
  padding: clamp(1.75rem, 5vh, 3.5rem) 0 clamp(2.25rem, 6vh, 4.25rem);
  overflow: clip;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: -10% -5% -20%;
  background-image:
    linear-gradient(to right, rgba(12, 15, 20, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 15, 20, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 65% at 70% 35%, #000 20%, transparent 75%);
  animation: gridDrift 28s linear infinite;
  will-change: transform;
}

.hero__orb {
  position: absolute;
  width: min(58vw, 34rem);
  aspect-ratio: 1;
  right: -6%;
  top: 8%;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg at 50% 50%, rgba(31, 111, 235, 0.35), rgba(255, 77, 46, 0.18), rgba(31, 111, 235, 0.05), rgba(31, 111, 235, 0.35));
  filter: blur(40px);
  animation: orbPulse 9s var(--ease) infinite alternate;
  opacity: 0.85;
}

.hero__plane {
  position: absolute;
  right: max(4%, calc(50% - 28rem));
  top: 12%;
  width: min(48vw, 26rem);
  height: min(58vh, 28rem);
  border: 1px solid rgba(12, 15, 20, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05)),
    linear-gradient(to bottom right, transparent 48%, rgba(31, 111, 235, 0.12) 48.5%, transparent 49%),
    linear-gradient(to top left, transparent 62%, rgba(255, 77, 46, 0.1) 62.5%, transparent 63%);
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  transform: rotate(-6deg);
  animation: planeIn 1.4s var(--ease) both;
}

.hero__plane::after {
  content: "";
  position: absolute;
  inset: 12% 14%;
  border: 1px solid rgba(12, 15, 20, 0.1);
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 18px,
      rgba(12, 15, 20, 0.05) 18px,
      rgba(12, 15, 20, 0.05) 19px
    );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
  max-width: 40rem;
}

.hero__brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.25rem, 10vw, 6.25rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  animation: rise 0.9s var(--ease) both;
}

.hero__headline {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
  max-width: 22ch;
  animation: rise 0.9s var(--ease) 0.08s both;
}

.hero__lead {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  max-width: 34ch;
  animation: rise 0.9s var(--ease) 0.16s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s var(--ease) 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper) !important;
}

.btn--primary:hover {
  background: var(--accent);
  color: white !important;
}

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

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink) !important;
}

.hero__meta {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2rem, 6vh, 4rem);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: right;
  animation: rise 1s var(--ease) 0.35s both;
}

@media (max-width: 760px) {
  .hero__plane {
    opacity: 0.45;
    right: -18%;
    top: 4%;
    width: 70vw;
  }

  .hero__meta {
    position: static;
    text-align: left;
    margin-top: 2.5rem;
    width: min(100% - (var(--gutter) * 2), var(--max));
    margin-inline: auto;
  }

  .hero__content {
    max-width: none;
  }
}

/* —— Sections —— */
.section {
  padding: clamp(4.5rem, 10vh, 7.5rem) 0;
}

.section__head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 5vh, 3.25rem);
  max-width: 36rem;
}

.section__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section__desc {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42ch;
}

/* —— Selected work —— */
.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.work-item {
  border-bottom: 1px solid var(--line-strong);
}

.work-item a {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: clamp(1.35rem, 3vh, 1.85rem) 0.15rem;
  text-decoration: none;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease);
}

.work-item a:hover {
  background: color-mix(in srgb, white 55%, transparent);
  padding-left: 0.65rem;
  padding-right: 0.65rem;
  color: var(--ink);
}

.work-item__index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mist);
}

.work-item__body {
  display: grid;
  gap: 0.35rem;
}

.work-item__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.work-item__summary {
  margin: 0;
  color: var(--ink-mute);
  font-size: 0.95rem;
  max-width: 48ch;
}

.work-item__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ink-mute);
  white-space: nowrap;
  justify-self: end;
  align-self: center;
}

.work-item__arrow {
  display: none;
}

@media (max-width: 720px) {
  .work-item a {
    grid-template-columns: 2.25rem 1fr;
    gap: 0.65rem 0.85rem;
  }

  .work-item__meta {
    grid-column: 2;
    justify-self: start;
    white-space: normal;
  }
}

/* —— Approach —— */
.approach {
  background: var(--ink);
  color: #e8edf3;
  position: relative;
  overflow: hidden;
}

.approach::before {
  content: "";
  position: absolute;
  width: 40rem;
  height: 40rem;
  right: -12rem;
  top: -14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 111, 235, 0.35), transparent 65%);
  pointer-events: none;
}

.approach .section__label {
  color: #7eb0ff;
}

.approach .section__desc {
  color: #a8b3c4;
}

.approach__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: clamp(2rem, 5vh, 3rem);
}

.approach__item {
  padding-top: 1.15rem;
  border-top: 1px solid rgba(232, 237, 243, 0.18);
}

.approach__item h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.approach__item p {
  margin: 0;
  color: #a8b3c4;
  font-size: 0.95rem;
}

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

/* —— Contact —— */
.contact__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: end;
}

.contact__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.contact__links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  transition: color 0.25s ease, padding-left 0.35s var(--ease);
}

.contact__links a:hover {
  color: var(--accent-deep);
  padding-left: 0.4rem;
}

.contact__links span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--mist);
  letter-spacing: 0.04em;
}

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

/* —— Footer —— */
.footer {
  padding: 2rem 0 calc(2.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  /* Bottom safe area stays visually open — page wash shows through; no solid fill */
  background: transparent;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: var(--ink-mute);
  font-size: 0.85rem;
}

.footer__inner a {
  text-decoration: none;
}

/* —— Project pages —— */
.project-hero {
  padding: clamp(2.5rem, 8vh, 4.5rem) 0 clamp(2rem, 5vh, 3rem);
  border-bottom: 1px solid var(--line);
}

.project-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-mute);
  text-decoration: none;
}

.project-hero__back:hover {
  color: var(--ink);
}

.project-hero__kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.project-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  max-width: 16ch;
}

.project-hero__lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  max-width: 46ch;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.project-meta dt {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}

.project-meta dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
}

@media (max-width: 800px) {
  .project-meta {
    grid-template-columns: 1fr 1fr;
  }
}

.prose {
  padding: clamp(2.5rem, 7vh, 4rem) 0 clamp(3rem, 8vh, 5rem);
}

.prose__inner {
  display: grid;
  gap: clamp(2rem, 5vh, 3rem);
  max-width: 42rem;
}

.prose h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.prose p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.prose li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--accent);
}

.quote {
  margin: 0;
  padding: 1.35rem 0 1.35rem 1.15rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.stack-pills span {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, white 50%, transparent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 calc(3rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}

.project-nav a {
  text-decoration: none;
  max-width: 45%;
}

.project-nav a:last-child {
  text-align: right;
  margin-left: auto;
}

.project-nav small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 0.35rem;
}

.project-nav strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.work-item.reveal {
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* —— Motion —— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes planeIn {
  from {
    opacity: 0;
    transform: rotate(-6deg) translate(2rem, 1.5rem);
  }
  to {
    opacity: 1;
    transform: rotate(-6deg);
  }
}

@keyframes orbPulse {
  from {
    transform: scale(0.92) translate(-2%, 2%);
  }
  to {
    transform: scale(1.05) translate(2%, -3%);
  }
}

@keyframes gridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-72px, -72px, 0);
  }
}

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

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

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