:root {
  --void: #f6f1e8;
  --void-2: #fffcf7;
  --paper: #1c1915;
  --mute: #5e574e;
  --line: rgba(28, 25, 21, 0.12);
  --gold: #b5441a;
  --gold-2: #8f3916;
  --teal: #2f6f66;
  --ember: #c45c26;
  --violet: #5b4db3;
  --display: "Cormorant Garamond", Georgia, serif;
  --title: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.55;
  overflow-x: hidden;
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button {
  cursor: none;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.05;
  mix-blend-mode: multiply;
  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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor,
.cursor-dot {
  display: none;
}

body.has-cursor .cursor,
body.has-cursor .cursor-dot {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-100px, -100px);
}

.cursor {
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 1px solid rgba(181, 68, 26, 0.55);
  transition: width 0.25s, height 0.25s, margin 0.25s, background 0.25s;
}

.cursor.grow {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(181, 68, 26, 0.1);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--gold);
}

a {
  color: inherit;
  text-decoration: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 6vw;
  background: linear-gradient(
    to bottom,
    rgba(246, 241, 232, 0.94),
    rgba(246, 241, 232, 0.55) 70%,
    transparent
  );
  backdrop-filter: blur(10px);
}

.nav-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-mark img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  border: 1.5px solid rgba(181, 68, 26, 0.35);
  box-shadow: 0 2px 8px rgba(28, 25, 21, 0.12);
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--paper);
}

a.card {
  display: block;
  color: inherit;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-cta {
  background: var(--paper);
  color: var(--void);
}

.btn-gold {
  background: var(--gold);
  color: #fffaf4;
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
}

.hero {
  width: 100%;
  max-width: 100%;
  padding: 8vh 6vw 4vh;
  position: relative;
  box-sizing: border-box;
}

.hero::before {
  content: "";
  position: absolute;
  right: -10vw;
  top: -8vh;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 68, 26, 0.14), transparent 62%);
  pointer-events: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gold-2);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f9d6a;
  box-shadow: 0 0 0 0 rgba(47, 157, 106, 0.5);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
}

.hero h1 {
  margin: 1.15rem 0 0;
  width: 100%;
  max-width: none;
  font-weight: 500;
}

.hero-name {
  display: block;
  width: 100%;
  font-family: var(--title);
  font-optical-sizing: auto;
  font-size: clamp(2.4rem, 8vw, 6.2rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.hero h1 em {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  font-family: var(--title);
  font-optical-sizing: auto;
  font-size: clamp(1.15rem, 3.2vw, 2.2rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--gold);
}

.hero-field {
  display: block;
  width: 100%;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.hero-foot {
  display: block;
  width: 100%;
  max-width: none;
  margin-top: 2.6rem;
}

.hero-foot p {
  color: var(--mute);
  font-size: 1.12rem;
  width: 100%;
  max-width: none;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  margin-top: 6vh;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.hero-meta span {
  display: block;
  color: var(--mute);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.hero-meta strong {
  font-weight: 500;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 0.9rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: scroll 32s linear infinite;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--void-2);
}

.stats article {
  padding: 2.4rem 6vw 2.4rem 2.2rem;
  border-right: 1px solid var(--line);
}

.stats article:first-child {
  padding-left: 6vw;
}

.stats article:last-child {
  border-right: 0;
}

.stats h2 {
  font-family: var(--title);
  font-size: 3.2rem;
  margin: 0;
  color: var(--gold);
}

.stats p {
  margin: 0.4rem 0 0;
  color: var(--mute);
  font-size: 0.92rem;
}

.work,
.vault,
.process,
.about,
.contact,
.experience,
.skills {
  padding: 10vh 6vw;
}

.section-head h2,
.about-copy h2,
.contact h2,
.case-body h2 {
  font-family: var(--title);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.3rem, 3.2vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 0.8rem;
  max-width: 28rem;
}

.kicker {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.lede {
  color: var(--mute);
  max-width: 52ch;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 3rem;
}

.card {
  text-align: left;
  background: var(--void-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  padding: 0;
  font: inherit;
  transition: transform 0.45s ease, border-color 0.3s, box-shadow 0.45s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(181, 68, 26, 0.4);
  box-shadow: 0 18px 40px rgba(28, 25, 21, 0.08);
}

.card-visual {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #efe6d6;
}

.orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: 8%;
  top: 20%;
  filter: blur(8px);
  opacity: 0.9;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(28, 25, 21, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 25, 21, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 70% 40%, #000, transparent 72%);
}

.card-mark {
  position: absolute;
  left: 1.2rem;
  bottom: 1rem;
  font-family: var(--title);
  font-size: 2.4rem;
  z-index: 1;
}

.tone-amber .orb {
  background: radial-gradient(circle, #e07a48, #f3d5b5 70%);
}
.tone-teal .orb {
  background: radial-gradient(circle, #6ec8bc, #cfe8e2 70%);
}
.tone-violet .orb {
  background: radial-gradient(circle, #8b7cf6, #ddd6ff 70%);
}
.tone-sand .orb {
  background: radial-gradient(circle, #d4a056, #f4e6c8 70%);
}
.tone-ember .orb {
  background: radial-gradient(circle, #c45c26, #f2cbb3 70%);
}
.tone-ink .orb {
  background: radial-gradient(circle, #6a8cb0, #d5e2ef 70%);
}
.tone-brass .orb {
  background: radial-gradient(circle, #c9a227, #efe3b8 70%);
}

.card-copy {
  padding: 1.3rem 1.4rem 1.5rem;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--mute);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-copy h3 {
  font-family: var(--title);
  font-size: 1.9rem;
  margin: 0.45rem 0 0.4rem;
}

.card-copy p {
  color: var(--mute);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.card-tags li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.vault {
  background: #efe8dc;
}

.vault-inner {
  border: 1px solid rgba(181, 68, 26, 0.22);
  border-radius: 32px;
  padding: 3.2rem 3vw 3.4rem;
  background: rgba(255, 252, 247, 0.72);
  box-shadow: 0 24px 60px rgba(28, 25, 21, 0.06);
}

.vault-form label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.6rem;
}

.vault-row {
  display: flex;
  gap: 0.7rem;
  max-width: 520px;
}

.vault-row input {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  padding: 0.9rem 1.2rem;
  font: inherit;
  outline: none;
}

.vault-row input:focus {
  border-color: var(--gold);
}

.vault-error {
  color: #b5441a;
  font-size: 0.9rem;
}

.vault-hint {
  color: var(--mute);
  font-size: 0.82rem;
  max-width: 46ch;
}

.vault-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0 0.5rem;
  color: var(--teal);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-btn {
  background: none;
  border: 0;
  color: var(--gold);
  font: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  gap: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem 2rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.timeline li span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 0.45rem;
}

.timeline h3 {
  font-family: var(--title);
  font-size: 1.8rem;
  margin: 0;
  grid-column: 2;
}

.timeline .org {
  grid-column: 2;
  margin: 0.15rem 0 0.4rem;
  color: var(--paper);
  font-weight: 500;
}

.timeline p:last-child {
  grid-column: 2;
  margin: 0;
  color: var(--mute);
  max-width: 68ch;
}

.timeline li span {
  grid-row: 1 / span 4;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.process-list li {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

.process-list span {
  font-family: var(--title);
  color: var(--gold);
  font-size: 1.6rem;
}

.process-list h3 {
  font-family: var(--title);
  font-size: 1.6rem;
  margin: 0.6rem 0 0.5rem;
}

.process-list p {
  color: var(--mute);
  margin: 0;
}

.about {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: start;
}

.about-copy p {
  color: var(--mute);
  font-size: 1.05rem;
  max-width: 58ch;
}

.about-copy strong {
  color: var(--paper);
  font-weight: 500;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1.6rem 0 0;
  list-style: none;
}

.chips li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 3rem;
}

.skill-grid article {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.3rem 1.4rem 1.5rem;
  background: var(--void-2);
}

.skill-grid h3 {
  font-family: var(--title);
  font-size: 1.45rem;
  margin: 0 0 0.8rem;
}

.skill-grid .chips {
  margin: 0;
}

.about-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.8rem;
  background: linear-gradient(180deg, #fffdf9, #f3ebe0);
}

.about-card-label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.about-card h3 {
  font-family: var(--title);
  font-size: 2rem;
  margin: 0 0 0.5rem;
  line-height: 1.1;
}

.about-card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.4rem 0;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 6vw 2.4rem;
  color: var(--mute);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
}

.footer code {
  color: var(--gold-2);
}

.case-dialog {
  width: min(860px, 92vw);
  max-height: 88vh;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 0;
  background: #fffcf7;
  color: var(--paper);
  overflow: auto;
}

.case-dialog::backdrop {
  background: rgba(40, 34, 28, 0.35);
}

.case-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  background: rgba(255, 252, 247, 0.86);
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-cover {
  height: 180px;
  position: relative;
}

.case-cover::after {
  content: "";
  position: absolute;
  inset: 20% 12%;
  border-radius: 50%;
  filter: blur(18px);
  background: inherit;
}

.case-cover.tone-amber {
  background: radial-gradient(circle at 70% 40%, #e07a48, #f6f1e8 60%);
}
.case-cover.tone-teal {
  background: radial-gradient(circle at 70% 40%, #6ec8bc, #f6f1e8 60%);
}
.case-cover.tone-violet {
  background: radial-gradient(circle at 70% 40%, #8b7cf6, #f6f1e8 60%);
}
.case-cover.tone-sand {
  background: radial-gradient(circle at 70% 40%, #d4a056, #f6f1e8 60%);
}
.case-cover.tone-ember {
  background: radial-gradient(circle at 70% 40%, #c45c26, #f6f1e8 60%);
}
.case-cover.tone-ink {
  background: radial-gradient(circle at 70% 40%, #6a8cb0, #f6f1e8 60%);
}
.case-cover.tone-brass {
  background: radial-gradient(circle at 70% 40%, #c9a227, #f6f1e8 60%);
}

.case-body {
  padding: 1.6rem 2rem 2.2rem;
}

.case-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.4rem;
  margin: 1.4rem 0;
}

.case-meta dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.case-meta dd {
  margin: 0.2rem 0 0;
  color: var(--mute);
}

.case-body p,
.case-content p {
  color: var(--mute);
}

.app-page {
  padding: 6vh 6vw 10vh;
  min-height: 70vh;
}

.panel {
  max-width: 640px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2rem;
  background: rgba(255, 252, 247, 0.72);
}

.panel h1,
.panel h2 {
  font-family: var(--title);
  margin: 0.4rem 0 0.8rem;
}

.flash-wrap {
  padding: 0 6vw;
}

.flash {
  margin: 0.6rem 0;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.92rem;
}

.flash-error {
  background: #f8e3d8;
  color: #8f3916;
}

.flash-success {
  background: #dceee6;
  color: #1f5c45;
}

.login-form label {
  margin-top: 1rem;
}

.hint,
.panel .hint {
  color: var(--mute);
  font-size: 0.9rem;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 2rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--void-2);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table th {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.table-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.table-actions form {
  margin: 0;
}

.pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill-active {
  color: #1f5c45;
}

.pill-inactive {
  color: var(--mute);
}

.stack-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.stack-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.stack-form input,
.stack-form select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--paper);
  padding: 0.8rem 1rem;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.form-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.case-page {
  max-width: 760px;
}

.case-page .card-tags {
  margin: 1rem 0;
}

.work-grid > .lede {
  grid-column: 1 / -1;
}

.file-group {
  margin-top: 4rem;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}

.file-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 8.5rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--void-2);
  transition: transform 0.35s ease, border-color 0.3s, box-shadow 0.35s;
}

.file-link:hover {
  transform: translateY(-4px);
  border-color: rgba(181, 68, 26, 0.4);
  box-shadow: 0 14px 32px rgba(28, 25, 21, 0.08);
}

.file-kind {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.file-link strong {
  font-family: var(--title);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

.file-meta {
  color: var(--mute);
  font-size: 0.78rem;
  word-break: break-word;
}

.player-page h2,
.media-dialog-body h2 {
  font-family: var(--title);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin: 0.4rem 0 0.8rem;
}

.player-stage {
  margin: 1.4rem 0 2rem;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf9;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.player-stage img,
.player-stage video,
.player-stage iframe {
  width: 100%;
  max-height: 78vh;
  border: 0;
  object-fit: contain;
  background: #fffdf9;
}

.player-stage video {
  background: #1c1915;
}

.player-stage iframe {
  min-height: 70vh;
}

.media-dialog {
  width: min(960px, 94vw);
  max-height: 92vh;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 0;
  background: #fffcf7;
  color: var(--paper);
  overflow: auto;
}

.media-dialog::backdrop {
  background: rgba(40, 34, 28, 0.45);
}

.media-dialog-body {
  padding: 3.2rem 1.6rem 1.6rem;
}

.work-grid a {
  color: var(--gold);
}

@media (max-width: 980px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    order: 3;
    width: 100%;
    gap: 0.75rem 1.1rem;
  }

  .hero-meta,
  .stats,
  .work-grid,
  .process-list,
  .about,
  .timeline li,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .timeline h3,
  .timeline .org,
  .timeline p:last-child,
  .timeline li span {
    grid-column: 1;
    grid-row: auto;
  }

  .stats article,
  .stats article:first-child {
    padding: 1.6rem 6vw;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .vault-inner {
    padding: 2rem 1.2rem;
  }

  .footer {
    flex-direction: column;
  }

  .case-meta {
    grid-template-columns: 1fr;
  }
}
