:root {
  --ink: #0d1b2a;
  --ink-2: #16232f;
  --paper: #f7f8f5;
  --paper-2: #e9eef0;
  --white: #ffffff;
  --gold: #d4a24c;
  --teal: #2f8c7d;
  --muted: #66706d;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(13, 27, 42, 0.12);
  --shadow: 0 18px 46px rgba(13, 27, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.detail-open {
  overflow: hidden;
}

h1,
h3 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0;
  padding-bottom: 24px;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 40px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(247, 248, 245, 0.96);
  backdrop-filter: blur(14px);
}

.nav-mark {
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a,
.nav-cta,
.button,
.hero-meta,
.journey-label,
.touchpoint,
.section-num,
.cat,
.exp-period,
.exp-tag,
.work-client,
.work-body em,
.footer-links a,
.footer-bottom,
.back-btn,
.detail-client,
.detail-tags span,
.detail-grid dt {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.nav-links a {
  color: rgba(22, 35, 47, 0.72);
  font-size: 0.8rem;
  text-decoration: none;
  text-transform: lowercase;
}

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

.nav-cta,
.button,
.back-btn {
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-cta {
  padding: 8px 16px;
}

.nav-cta:hover,
.back-btn:hover {
  background: var(--ink-2);
  color: var(--paper);
}

.hero {
  position: relative;
  overflow-x:hidden;
  overflow-y:visible;
  padding: 164px 40px 112px;
  background: var(--ink);
  color: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 82% 60% at 50% 0%, black 38%, transparent 92%);
  opacity: 0.58;
}

.hero-inner,
.section-inner,
.footer-inner {
  position: relative;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--gold);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(2.6rem, 5.8vw, 4.9rem);
  font-weight: 700;
  line-height: 1.04;
}

.hero-sub {
  max-width: 680px;
  margin-top: 30px;
  color: rgba(247, 248, 245, 0.74);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
}

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

.hero-actions .button {
  gap: 8px;
}

.button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.button.secondary {
  border-color: rgba(247, 248, 245, 0.38);
  color: var(--paper);
}

.button.secondary:hover,
.button.ghost:hover {
  border-color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
}

.button.ghost {
  border-color: transparent;
  color: rgba(247, 248, 245, 0.8);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(247, 248, 245, 0.14);
  color: rgba(247, 248, 245, 0.58);
  font-size: 0.8rem;
}

.hero-meta span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hero-meta i {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.journey {
  margin-top: 72px;
}

.journey-label {
  margin-bottom: 18px;
  color: rgba(247, 248, 245, 0.46);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.journey-scroll {
  padding: 52px 0 20px;
}

.journey-track {
  position: relative;
  min-width: 900px;
  height: 230px;
}

.journey-curve {
  position: absolute;
  inset: 0;
  color: rgba(212, 162, 76, 0.66);
}

.touchpoint {
  position: absolute;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.tp-node {
  display: block;
  width: 13px;
  height: 13px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--paper);
  transition: transform 200ms ease, background 200ms ease;
}

.future .tp-node {
  border-color: var(--teal);
  border-style: dashed;
  background: transparent;
}

.touchpoint:hover .tp-node,
.touchpoint:focus-visible .tp-node {
  transform: scale(1.65);
  background: var(--gold);
}

.tp-label,
.tp-year {
  position: absolute;
  left: 50%;
  white-space: nowrap;
  transform: translateX(-50%);
}

.tp-label {
  top: 21px;
  color: rgba(247, 248, 245, 0.58);
  font-size: 0.7rem;
}

.tp-year {
  bottom: 20px;
  color: rgba(247, 248, 245, 0.38);
  font-size: 0.65rem;
}

.tp-card {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  z-index: 5;
  width: 230px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink-2);
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.touchpoint:hover .tp-card,
.touchpoint:focus-visible .tp-card {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tp-card strong,
.tp-card small {
  display: block;
}

.tp-card strong {
  margin-bottom: 5px;
  font-family: Inter, sans-serif;
  font-size: 0.82rem;
}

.tp-card small {
  color: #555e5a;
  font-family: Inter, sans-serif;
  font-size: 0.76rem;
  line-height: 1.45;
}

main section,
.footer {
  padding: 112px 40px;
  scroll-margin-top: 88px;
}

.achievement-section {
  position: relative;
  z-index: 2;
  margin-top: -72px;
  padding: 0 40px 112px;
  background: transparent;
  scroll-margin-top: 132px;
}

.achievement-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  align-items: center;
  gap: 44px;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.achievement-intro {
  padding-right: 8px;
}

.achievement-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--teal);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.achievement-intro h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.22;
}

.achievement-intro p {
  max-width: 280px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.achievement-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 28px 26px 24px;
  border: 1px solid rgba(13, 27, 42, 0.08);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(13, 27, 42, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.achievement-card:hover {
  border-color: rgba(13, 27, 42, 0.14);
  box-shadow: 0 22px 50px rgba(13, 27, 42, 0.1);
  transform: translateY(-6px);
}

.achievement-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: rgba(47, 140, 125, 0.12);
  color: var(--teal);
}

.achievement-icon svg {
  width: 20px;
  height: 20px;
}

.achievement-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 4vw, 2.7rem);
  line-height: 1;
}

.achievement-card h3 {
  margin-bottom: 10px;
  color: var(--ink-2);
  font-size: 1.1rem;
  line-height: 1.2;
}

.achievement-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.achievement-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(13, 27, 42, 0.08);
  color: var(--teal);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.achievement-link span {
  transition: transform 180ms ease;
}

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

.achievement-link:hover span {
  transform: translateX(3px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
}

.section-num {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-head h2 {
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.section-head p {
  max-width: 390px;
  color: var(--muted);
  font-size: 0.92rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.skill-grid article {
  padding: 38px 34px;
  background: var(--paper);
}

.cat {
  display: block;
  margin-bottom: 26px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skill-grid ul,
.experience ul,
.detail-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-grid li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.95rem;
}

.skill-grid li:last-child {
  border-bottom: 0;
}

.skill-grid li::after {
  content: "-";
  color: var(--gold);
  font-family: "IBM Plex Mono", monospace;
}

.experience,
.footer {
  background: var(--ink);
  color: var(--paper);
}

.experience .section-head p,
.footer p {
  color: rgba(247, 248, 245, 0.58);
}

/* ---------- Experience section ---------- */

/* the Experience heading wrapper is a flex item that also holds the
   job rows; let it take the full width */
.experience .section-head > div {
  flex: 1 1 100%;
  min-width: 0;
}

.exp-row {
  display: grid;
  grid-template-columns: 180px 1fr 140px;
  gap: 34px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.exp-row:last-child {
  border-bottom: 1px solid var(--line);
}

.exp-period {
  color: var(--gold);
  font-size: 0.79rem;
}

.exp-main h3 {
  margin-bottom: 6px;
  font-size: 1.45rem;
}

.exp-org {
  margin-bottom: 22px;
  color: rgba(247, 248, 245, 0.52);
  font-size: 0.86rem;
}

.exp-main li {
  position: relative;
  margin-bottom: 13px;
  padding-left: 22px;
  color: rgba(247, 248, 245, 0.76);
  font-size: 0.96rem;
}

.exp-main li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  color: var(--teal);
  background: var(--teal);
}

.exp-tag {
  color: rgba(247, 248, 245, 0.45);
  font-size: 0.68rem;
  text-align: right;
  text-transform: uppercase;
}

.work {
  background: var(--paper-2);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.work-card {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: var(--paper);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(13, 27, 42, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.work-card:hover {
  border-color: rgba(13, 27, 42, 0.18);
  box-shadow: 0 24px 54px rgba(13, 27, 42, 0.14);
  transform: translateY(-7px);
}

.work-card:focus-visible,
.touchpoint:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.work-thumb {
  display: flex;
  height: 188px;
  align-items: center;
  justify-content: center;
  color: var(--paper);
}

.work-thumb svg {
  width: 42%;
  height: 42%;
}

.work-thumb-photo {
  background: var(--paper-2);
}

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

.thumb-gold {
  background: var(--gold);
  color: var(--ink);
}

.thumb-slate {
  background: #28384c;
}

.thumb-green {
  background: #52645e;
}

.thumb-gradient {
  background: linear-gradient(135deg, var(--gold), var(--teal));
  color: var(--ink);
}

.work-body {
  display: block;
  min-height: 250px;
  padding: 28px 28px 30px;
}

.work-client {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-body strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.22rem;
  line-height: 1.25;
}

.work-body span:not(.work-client) {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.58;
}

.work-body em {
  display: inline-block;
  margin-top: 24px;
  color: var(--gold);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
}

.work-card-cta {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 0;
  padding: 36px 40px;
  background: linear-gradient(115deg, var(--ink) 0%, #16324a 62%, var(--teal) 145%);
  color: var(--paper);
  text-decoration: none;
  overflow: hidden;
}

.work-card-cta .cta-glow {
  position: absolute;
  top: -90px;
  right: 10%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 162, 76, 0.35), rgba(212, 162, 76, 0) 70%);
  pointer-events: none;
  transition: transform 320ms ease;
}

.work-card-cta:hover .cta-glow {
  transform: scale(1.15);
}

.cta-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.cta-badge {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(247, 248, 245, 0.22);
  background: rgba(247, 248, 245, 0.06);
  color: var(--gold);
}

.cta-badge svg {
  width: 26px;
  height: 26px;
}

.cta-text {
  display: block;
  min-width: 0;
}

.work-card-cta strong {
  position: relative;
  display: block;
  margin-bottom: 6px;
  color: var(--paper);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.22rem;
  line-height: 1.25;
}

.work-card-cta .cta-text span {
  position: relative;
  display: block;
  color: rgba(247, 248, 245, 0.68);
  font-size: 0.92rem;
  line-height: 1.58;
}

.work-card-cta em {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.work-card-cta:hover em {
  background: #e6b862;
  border-color: #e6b862;
  box-shadow: 0 10px 28px rgba(212, 162, 76, 0.35);
}

.cta-arrow {
  display: inline-block;
  transition: transform 220ms ease;
}

.work-card-cta:hover .cta-arrow {
  transform: translateX(4px);
}

@media (max-width: 720px) {
  .work-card-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 30px 26px;
  }

  .work-card-cta em {
    align-self: flex-start;
  }
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.meta-item {
  padding: 15px 0;
  border-top: 1px solid var(--line-dark);
}

.meta-item:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.meta-item h3 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.meta-item p {
  color: var(--muted);
  font-size: 0.86rem;
}

.footer h2 {
  max-width: 720px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
}

.footer p {
  max-width: 720px;
  margin-top: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 38px;
}

.footer-links a {
  border-bottom: 1px solid rgba(247, 248, 245, 0.28);
  color: var(--paper);
  font-size: 0.86rem;
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-top: 68px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: rgba(247, 248, 245, 0.42);
  font-size: 0.75rem;
}

.footer-bottom a {
  text-decoration: none;
}

#main-view {
  transition: opacity 320ms ease, transform 320ms ease;
}

#main-view.hidden-view {
  position: absolute;
  inset: 0;
  height: 100vh;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}

#detail-view {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow-y: auto;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 360ms cubic-bezier(0.4, 0, 0.2, 1);
}

#detail-view.open {
  transform: translateX(0);
}

.detail-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(12px);
}

.back-btn {
  padding: 9px 15px;
  background: transparent;
  cursor: pointer;
}

.back-btn::before {
  content: "<-";
  margin-right: 8px;
}

.detail-hero {
  display: flex;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  color: var(--paper);
}

.detail-hero svg {
  width: 180px;
  height: 180px;
}

.detail-body {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 96px;
}

.detail-client {
  margin-bottom: 13px;
  color: var(--teal);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-body h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.detail-tags span {
  padding: 6px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.detail-lede {
  margin-bottom: 42px;
  color: #37423e;
  font-size: 1.06rem;
  line-height: 1.7;
}

.detail-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px 24px;
  margin: 0 0 42px;
  padding: 28px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.detail-grid dt {
  padding: 4px 0;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-grid dd {
  margin: 0;
  padding: 4px 0;
  font-size: 0.92rem;
}

.detail-section {
  padding: 0;
}

.detail-section h3 {
  margin: 34px 0 12px;
  font-size: 1.28rem;
}

.detail-section p,
.detail-section li {
  color: #37423e;
  font-size: 0.96rem;
  line-height: 1.7;
}

.detail-section li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 22px;
}

.detail-section li::before {
  content: "->";
  position: absolute;
  left: 0;
  color: var(--teal);
}

.detail-footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 58px;
  padding: 34px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
}

.detail-footer-cta p {
  color: rgba(247, 248, 245, 0.72);
}

.detail-footer-cta a {
  padding: 12px 22px;
  border-radius: 3px;
  background: var(--gold);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

body.page-leave {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 280ms ease, transform 280ms ease;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

@media (max-width: 930px) {
  .achievement-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .achievement-intro p {
    max-width: 480px;
  }

  .achievement-grid,
  .skill-grid,
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .exp-row {
    grid-template-columns: 1fr;
  }

  .exp-tag {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .site-nav {
    padding: 16px 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 126px 20px 88px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  main section,
  .footer {
    padding: 72px 20px;
  }

  .achievement-section {
    margin-top: -44px;
    padding: 0 20px 72px;
  }

  .achievement-grid,
  .skill-grid,
  .work-grid,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .achievement-card {
    min-height: auto;
    padding: 26px;
  }

  .button {
    width: 100%;
  }

  .detail-nav {
    padding: 16px 20px;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}
