@import url("https://fonts.googleapis.com/css2?family=Faculty+Glyphic&display=swap");

:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #4f5d55;
  --paper: #f5f1e7;
  --moss: #6f8a66;
  --clay: #b96f52;
  --sea: #467c83;
  --mustard: #d4a847;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

.hero-bg,
.hero::before,
#atmosphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  z-index: -5;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.01);
}

.hero::before {
  z-index: -4;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(245, 241, 231, 0.38), rgba(245, 241, 231, 0.04) 52%, rgba(245, 241, 231, 0.12)),
    radial-gradient(circle at 18% 46%, rgba(245, 241, 231, 0.3), transparent 36%);
  opacity: 0.72;
}

#atmosphere {
  z-index: -3;
  mix-blend-mode: multiply;
  opacity: 0.1;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: rgba(245, 241, 231, 0.08);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 88px);
  width: min(1180px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) 0;
}

.identity {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(0.72rem, 1.6vw, 0.86rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 44px;
  height: 2px;
  content: "";
  background: var(--clay);
}

h1 {
  max-width: 9ch;
  margin: 0;
  font-family: "Faculty Glyphic", Georgia, serif;
  font-size: clamp(4.1rem, 13vw, 9.8rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
}

.surname {
  width: fit-content;
  margin: clamp(8px, 1.6vw, 16px) 0 0 clamp(6px, 1.4vw, 14px);
  color: rgba(23, 33, 29, 0.82);
  font-family: "Faculty Glyphic", Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 14px 38px rgba(245, 241, 231, 0.3);
}

.role {
  width: fit-content;
  margin: clamp(14px, 2vw, 22px) 0 0 clamp(8px, 1.6vw, 16px);
  padding: 0 0 10px;
  color: rgba(23, 33, 29, 0.72);
  font-size: clamp(0.84rem, 1.7vw, 1.08rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.role::after {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: clamp(10px, 1.7vw, 14px);
  content: "";
  background: linear-gradient(90deg, var(--clay), var(--sea), transparent);
  transform-origin: left;
}

.scroll-cue {
  display: grid;
  grid-template-columns: auto 18px;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: clamp(22px, 3vw, 34px) 0 0 clamp(8px, 1.6vw, 16px);
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  color: rgba(23, 33, 29, 0.76);
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 12px 34px rgba(23, 33, 29, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue-text {
  white-space: nowrap;
}

.scroll-cue-track {
  position: relative;
  display: block;
  width: 18px;
  height: 34px;
  border: 1px solid rgba(23, 33, 29, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.scroll-cue-dot {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--clay);
  box-shadow: 0 0 0 4px rgba(185, 111, 82, 0.14);
  transform: translateX(-50%);
  animation: scrollCueDot 1.65s ease-in-out infinite;
}

@keyframes scrollCueDot {
  0%,
  100% {
    opacity: 0.45;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(15px);
  }
}

.lede {
  max-width: 34rem;
  margin: clamp(22px, 4vw, 34px) 0 0;
  color: #26342f;
  font-size: clamp(1.04rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.network-shell {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.04;
  min-height: 360px;
  max-height: min(76vh, 680px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow:
    0 28px 80px rgba(23, 33, 29, 0.22),
    0 8px 22px rgba(23, 33, 29, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(23, 33, 29, 0.1);
}

.network-shell::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.035) 44%, rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.04) 30%, transparent 58%),
    radial-gradient(circle at 82% 86%, rgba(124, 170, 183, 0.12), transparent 30%);
  opacity: 0.52;
}

#network {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  cursor: none;
}

.network-toolbar,
.network-readout {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.network-toolbar {
  top: 18px;
}

.network-readout {
  bottom: 18px;
}

.segmented,
.network-actions,
.metric {
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.segmented {
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 8px 24px rgba(23, 33, 29, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.segmented button,
.icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.icon-button {
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 24px rgba(23, 33, 29, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.segmented button[aria-pressed="true"] {
  color: #fffaf1;
  background: rgba(185, 111, 82, 0.78);
}

.segmented button[data-class="1"][aria-pressed="true"] {
  background: rgba(70, 124, 131, 0.82);
}

.network-actions {
  gap: 2px;
  padding: 3px;
}

.icon-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.25;
}

.icon-button[aria-pressed="true"] {
  color: #fffaf1;
  background: rgba(111, 138, 102, 0.78);
}

.metric {
  min-width: 106px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  color: rgba(23, 33, 29, 0.72);
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 24px rgba(23, 33, 29, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric strong {
  margin-left: 8px;
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0;
}

.gallery-section {
  min-height: 100svh;
  padding: clamp(56px, 8vw, 128px) 16px;
  background: #0a0a0a;
  color: #fffaf1;
  display: grid;
  place-items: center;
}

.folder-gallery {
  position: relative;
  width: 100%;
  min-height: 500px;
  padding: 128px 0;
  contain: layout paint;
}

.folder-stage {
  position: relative;
  display: flex;
  width: 400px;
  height: 500px;
  justify-content: center;
  margin: 0 auto;
  pointer-events: none;
}

.gallery-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  z-index: 30;
  margin: 0;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-50%) translateY(50px);
  transition: opacity 560ms cubic-bezier(0.2, 0.9, 0.22, 1.15), transform 560ms cubic-bezier(0.2, 0.9, 0.22, 1.15);
  white-space: nowrap;
  pointer-events: none;
}

.folder-gallery.is-open .gallery-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.gallery-card {
  position: absolute;
  bottom: 40px;
  left: 50%;
  z-index: calc(10 + var(--index));
  display: block;
  width: 224px;
  height: 288px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: #111;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  color: #fffaf1;
  cursor: grab;
  outline: none;
  pointer-events: none;
  text-decoration: none;
  transform-origin: bottom;
  transform:
    translate3d(-50%, 0, 0)
    translate3d(var(--rest-x), var(--rest-y), 0)
    rotate(var(--rest-rotate))
    scale(var(--rest-scale));
  transition:
    transform 620ms cubic-bezier(0.2, 0.9, 0.22, 1.15),
    box-shadow 220ms ease,
    z-index 0ms linear;
  user-select: none;
  touch-action: none;
  will-change: transform;
  backface-visibility: hidden;
}

.gallery-card::before {
  position: absolute;
  inset: 42% 0 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72)),
    linear-gradient(90deg, rgba(70, 124, 131, 0.14), rgba(212, 168, 71, 0.18));
}

.gallery-card:active {
  cursor: grabbing;
}

.gallery-card:focus-visible {
  box-shadow:
    0 0 0 3px rgba(255, 250, 241, 0.9),
    0 20px 40px rgba(0, 0, 0, 0.5);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.card-title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 2;
  display: block;
  font-family: "Faculty Glyphic", Georgia, serif;
  font-size: 1.42rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.72);
  pointer-events: none;
}

.folder-gallery.is-hovering:not(.is-open) .gallery-card {
  transform:
    translate3d(-50%, 0, 0)
    translate3d(var(--hover-x), var(--hover-y), 0)
    rotate(var(--hover-rotate))
    scale(var(--rest-scale));
}

.folder-gallery.is-open .gallery-card {
  z-index: 50;
  pointer-events: auto;
  transform:
    translate3d(-50%, 0, 0)
    translate3d(var(--open-x), var(--open-y), 0)
    rotate(0deg)
    scale(1.05);
}

.folder-gallery.is-open .gallery-card:hover {
  z-index: 100;
  transform:
    translate3d(-50%, 0, 0)
    translate3d(var(--open-x), var(--open-y), 0)
    rotate(0deg)
    scale(1.1);
}

.folder-gallery.is-open .gallery-card:focus-visible {
  z-index: 110;
  transform:
    translate3d(-50%, 0, 0)
    translate3d(var(--open-x), var(--open-y), 0)
    rotate(0deg)
    scale(1.1);
}

.folder-gallery.is-dragging .gallery-card:not(.is-dragging) {
  opacity: 0.72;
}

.gallery-card.is-dragging {
  z-index: 150;
  cursor: grabbing;
  transition: none;
  transform:
    translate3d(-50%, 0, 0)
    translate3d(calc(var(--open-x) + var(--drag-x, 0px)), calc(var(--open-y) + var(--drag-y, 0px)), 0)
    rotate(5deg)
    scale(1.15);
}

.folder-back {
  position: absolute;
  right: 40px;
  bottom: 24px;
  left: 40px;
  z-index: 0;
  width: 320px;
  height: 224px;
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.15);
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 560ms cubic-bezier(0.2, 0.9, 0.22, 1.15),
    transform 560ms cubic-bezier(0.2, 0.9, 0.22, 1.15);
}

.folder-back-tab,
.folder-back-body,
.folder-back-pocket {
  position: absolute;
  pointer-events: none;
}

.folder-back-tab {
  top: 0;
  left: 0;
  width: 128px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(to top, #1e1e1e, #2a2a2a);
}

.folder-back-body {
  inset: 32px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 12px 12px;
  background: linear-gradient(to bottom, #1e1e1e, #0a0a0a);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.folder-back-pocket {
  inset: 40px 8px 8px;
  border-radius: 8px;
  background: #000;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.folder-gallery.is-open .folder-back {
  opacity: 0;
  transform: scale(0.9);
}

.folder {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 20;
  width: 340px;
  height: 176px;
  border: 0;
  color: #fffaf1;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translateX(-50%);
  transform-origin: bottom;
  transition:
    transform 560ms cubic-bezier(0.2, 0.9, 0.22, 1.15),
    opacity 560ms cubic-bezier(0.2, 0.9, 0.22, 1.15);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.folder::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 16px;
  content: "";
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.folder-gallery.is-hovering:not(.is-open) .folder {
  transform: translateX(-50%) translateY(10px) rotateX(-25deg);
}

.folder-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: linear-gradient(to bottom, #2a2a2a, #111);
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.1);
}

.folder-face::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  content: "";
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.folder-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: #000;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.folder-gallery.is-open .folder {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.detail-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 10% 8%, rgba(212, 168, 71, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 16%, rgba(70, 124, 131, 0.16), transparent 28rem),
    linear-gradient(135deg, #f7f0e2, #eef2e6 52%, #f9f5eb);
}

.detail-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.brand-link,
.detail-links a,
.text-link,
.project-item a,
.contact-item {
  color: inherit;
  text-decoration: none;
}

.brand-link {
  font-family: "Faculty Glyphic", Georgia, serif;
  font-size: 1.06rem;
  line-height: 1;
}

.detail-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.detail-links a {
  padding: 8px 11px;
  border-radius: 999px;
  color: rgba(23, 33, 29, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-links a[aria-current="page"],
.detail-links a:hover,
.detail-links a:focus-visible {
  color: #fffaf1;
  background: rgba(23, 33, 29, 0.86);
  outline: none;
}

.detail-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 88px) 0 clamp(72px, 10vw, 128px);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  min-height: calc(100svh - 96px);
}

.page-kicker,
.item-date,
.contact-item span {
  margin: 0 0 12px;
  color: rgba(23, 33, 29, 0.56);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-title {
  max-width: 11ch;
  margin: 0;
  font-family: "Faculty Glyphic", Georgia, serif;
  font-size: clamp(3.3rem, 8vw, 7.6rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.94;
}

.page-lede {
  max-width: 43rem;
  margin: clamp(22px, 4vw, 34px) 0 0;
  color: rgba(23, 33, 29, 0.72);
  font-size: clamp(1.05rem, 1.9vw, 1.32rem);
  line-height: 1.58;
}

.detail-visual {
  display: block;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  justify-self: end;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  box-shadow:
    0 34px 90px rgba(23, 33, 29, 0.18),
    0 10px 30px rgba(23, 33, 29, 0.11);
}

.detail-band,
.timeline-item,
.project-item,
.contact-item {
  border: 1px solid rgba(23, 33, 29, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.detail-band {
  padding: clamp(24px, 4vw, 48px);
}

.detail-band p,
.split-section p,
.timeline-item p,
.project-item p {
  margin: 0;
  color: rgba(23, 33, 29, 0.76);
  font-size: 1.02rem;
  line-height: 1.68;
}

.detail-band p {
  max-width: 68rem;
  font-size: clamp(1.16rem, 2vw, 1.55rem);
  line-height: 1.5;
}

.writing-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fffaf1;
  background: rgba(23, 33, 29, 0.9);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.split-section,
.timeline,
.project-grid,
.contact-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.split-section {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 42px);
  margin-top: clamp(40px, 7vw, 88px);
}

.split-section h2,
.timeline-item h2,
.project-item h2 {
  margin: 0 0 14px;
  font-family: "Faculty Glyphic", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
}

.pill-list,
.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list li {
  padding: 8px 11px;
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.5);
  color: rgba(23, 33, 29, 0.7);
  font-size: 0.84rem;
  font-weight: 800;
}

.clean-list {
  display: grid;
  gap: 12px;
  color: rgba(23, 33, 29, 0.76);
  line-height: 1.62;
}

.timeline,
.project-grid,
.contact-grid {
  margin-top: clamp(36px, 6vw, 78px);
}

.timeline-item,
.project-item,
.contact-item {
  padding: clamp(22px, 3vw, 34px);
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.24fr) minmax(0, 0.76fr);
  column-gap: clamp(18px, 4vw, 52px);
}

.timeline-item .item-date {
  margin: 6px 0 0;
}

.timeline-item h2 {
  margin-bottom: 12px;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-item h2 a {
  background-image: linear-gradient(90deg, rgba(185, 111, 82, 0.9), rgba(70, 124, 131, 0.9));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 2px;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-item {
  display: grid;
  gap: 6px;
  color: rgba(23, 33, 29, 0.86);
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-item:hover,
.contact-item:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.brand-link:focus-visible,
.project-item a:focus-visible {
  outline: 2px solid rgba(23, 33, 29, 0.82);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .gallery-section {
    padding: 72px 16px;
  }

  .folder-gallery {
    min-height: 430px;
    padding: 64px 0;
  }

  .folder-stage {
    width: 320px;
    height: 430px;
  }

  .gallery-card {
    width: 156px;
    height: 202px;
  }

  .card-title {
    left: 12px;
    right: 12px;
    bottom: 14px;
    font-size: 1.06rem;
  }

  .folder-gallery.is-open .gallery-card {
    transform:
      translate3d(-50%, 0, 0)
      translate3d(var(--mobile-open-x), var(--open-y), 0)
      rotate(0deg)
      scale(1.05);
  }

  .folder-gallery.is-open .gallery-card:focus-visible {
    transform:
      translate3d(-50%, 0, 0)
      translate3d(var(--mobile-open-x), var(--open-y), 0)
      rotate(0deg)
      scale(1.1);
  }

  .gallery-card.is-dragging {
    transform:
      translate3d(-50%, 0, 0)
      translate3d(calc(var(--mobile-open-x) + var(--drag-x, 0px)), calc(var(--open-y) + var(--drag-y, 0px)), 0)
      rotate(5deg)
      scale(1.15);
  }

  .folder {
    width: 272px;
    height: 141px;
  }

  .folder-back {
    left: 32px;
    right: 32px;
    width: 256px;
    height: 179px;
  }
}

@media (max-width: 480px) {
  .folder-gallery.is-open .gallery-card {
    transform:
      translate3d(-50%, 0, 0)
      translate3d(var(--phone-open-x), var(--open-y), 0)
      rotate(0deg)
      scale(1.05);
  }

  .folder-gallery.is-open .gallery-card:focus-visible {
    transform:
      translate3d(-50%, 0, 0)
      translate3d(var(--phone-open-x), var(--open-y), 0)
      rotate(0deg)
      scale(1.1);
  }

  .gallery-card.is-dragging {
    transform:
      translate3d(-50%, 0, 0)
      translate3d(calc(var(--phone-open-x) + var(--drag-x, 0px)), calc(var(--open-y) + var(--drag-y, 0px)), 0)
      rotate(5deg)
      scale(1.15);
  }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    align-content: center;
    width: min(100% - 36px, 640px);
    gap: 28px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(4rem, 20vw, 7.2rem);
  }

  .surname {
    font-size: clamp(2.35rem, 12vw, 4.4rem);
  }

  .role {
    max-width: 100%;
    font-size: clamp(0.76rem, 3.2vw, 0.96rem);
    letter-spacing: 0.1em;
  }

  .scroll-cue {
    max-width: calc(100% - 32px);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .lede {
    max-width: 28rem;
  }

  .network-shell {
    width: 100%;
    min-height: 300px;
    max-height: 48vh;
  }

  .network-toolbar,
  .network-readout {
    left: 12px;
    right: 12px;
  }

  .network-toolbar {
    top: 12px;
  }

  .network-readout {
    bottom: 12px;
  }

  .metric {
    min-width: 86px;
    padding: 0;
    font-size: 0.64rem;
  }

  .detail-nav {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .detail-shell {
    width: min(100% - 32px, 640px);
    padding-top: 30px;
  }

  .detail-hero,
  .split-section,
  .writing-band,
  .project-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    min-height: auto;
  }

  .page-title {
    max-width: 100%;
  }

  .detail-visual {
    justify-self: start;
    width: min(100%, 360px);
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item .item-date {
    margin: 0 0 12px;
  }

  .text-link {
    width: fit-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue-dot {
    animation: none;
  }
}
