/* =========================================================
   Part 3 · Sections, work grid, covers, archive, dialog
   ========================================================= */

.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 6vw, 96px) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .8fr) auto;
  align-items: end;
  gap: 36px;
  margin-bottom: 40px;
}
.section-head-main .eyebrow { margin-bottom: 14px; }
.section-head h2 {
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.08;
}
.section-note {
  max-width: 340px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-left: auto;
}
.section-head .text-link { justify-self: end; }

/* ---------- Work toolbar ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.filters {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  position: relative;
  flex-shrink: 0;
  min-height: 50px;
  padding: 0 1px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  transition: color .25s;
}
.filters button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.filters button:hover { color: var(--ink); }
.filters button.is-active { color: var(--ink); }
.filters button.is-active::after { transform: scaleX(1); }
.filters .filter-count {
  margin-left: 5px;
  font-size: 8px;
  vertical-align: super;
  color: var(--accent);
  font-weight: 700;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 220px;
  flex-shrink: 0;
  color: var(--muted);
}
.search-box svg { width: 14px; height: 14px; color: var(--accent); }
.search-box input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 11px;
}
.search-box input::placeholder { color: #736d6b; }
.search-box input::-webkit-search-cancel-button { filter: invert(.6); }

/* ---------- Project grid ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(16px, 1.8vw, 26px);
}
.project-card {
  min-width: 0;
  animation: cardIn .55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.project-open {
  display: block;
  width: 100%;
  text-align: left;
}
.project-media {
  position: relative;
  aspect-ratio: 1.5;
  overflow: hidden;
  background: #141010;
  border: 1px solid var(--line);
  container-type: inline-size;
  isolation: isolate;
}
.project-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #141010;
}
.project-image--contain { /*object-fit: contain;*/ }
.project-image--light { background: #f4f0e8; }
.project-open:hover .project-cover { transform: scale(1.045); }
.project-cover {
  position: absolute;
  inset: 0;
  transition: transform .8s var(--ease), filter .5s;
  will-change: transform;
}
.project-open:hover .project-cover { filter: brightness(1.03); }

.project-type {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 5px 7px;
  background: rgba(9, 9, 9, .72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #ddd6d2;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.project-featured {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 5px 7px;
  background: var(--accent);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.project-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(9, 9, 9, .45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, -42%) scale(.9);
  transition: opacity .3s, transform .45s var(--ease);
}
.project-hover svg { width: 18px; height: 18px; }
.project-open:hover .project-hover,
.project-open:focus-visible .project-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project-caption {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.project-number {
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 27px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.01em;
}
.project-caption-main { flex: 1; min-width: 0; }
.project-caption h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.45;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-category {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-arrow { width: 16px; height: 16px; color: var(--muted); transition: transform .3s, color .3s; }
.project-open:hover .project-arrow { color: var(--accent); transform: translate(3px, -3px); }
.project-open:hover h3 { color: #fff; }

.work-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
}
.work-count {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.empty-state {
  padding: 60px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.empty-state button {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  font-size: 13px;
}

/* =========================================================
   Project covers — pure CSS, self-contained
   ========================================================= */
.cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: inline-size;
  isolation: isolate;
  color: #fff;
  font-family: var(--body);
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 9;
  background: radial-gradient(ellipse at 50% 120%, transparent 40%, rgba(0, 0, 0, .18) 100%);
  pointer-events: none;
}
.cov-big {
  position: absolute;
  z-index: 2;
  font-family: var(--display);
  font-weight: 400;
  line-height: .84;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.cov-brand {
  position: absolute;
  z-index: 3;
  font-size: 2.2cqw;
  font-weight: 800;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.cov-kicker {
  position: absolute;
  z-index: 3;
  font-size: 1.35cqw;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .66;
}
.cov-meta {
  position: absolute;
  right: 4.5cqw;
  bottom: 3.6cqw;
  z-index: 4;
  font-size: 1.25cqw;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .62;
  text-align: right;
}

/* Shared phone frame */
.phone {
  position: absolute;
  z-index: 2;
  padding: .85cqw;
  background: #0a0909;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 3.4cqw;
  box-shadow: 0 2.6cqw 5cqw rgba(0, 0, 0, .5);
}
.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 2.7cqw;
  overflow: hidden;
  background: #15100f;
}

/* --- 01 Aurelia — fashion commerce --- */
.cov-aurelia { background: linear-gradient(145deg, #d8c7b1, #b6a087 70%, #a58d72); color: #241a14; }
.cov-aurelia .cov-brand { top: 5cqw; left: 5.5cqw; }
.cov-aurelia .cov-kicker { top: 9.6cqw; left: 5.7cqw; color: #4c3a30; }
.cov-aurelia .cov-orb {
  position: absolute;
  z-index: 1;
  top: -16cqw;
  right: -12cqw;
  width: 50cqw;
  height: 50cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #c13744, #7e1420 68%);
  opacity: .92;
}
.cov-aurelia .cov-big {
  left: 5cqw;
  bottom: 2.4cqw;
  font-size: 14.5cqw;
  color: #2a1c15;
  mix-blend-mode: multiply;
  opacity: .9;
}
.cov-aurelia .phone {
  right: 8cqw;
  top: 7.5cqw;
  width: 27cqw;
  height: 41cqw;
  transform: rotate(-7deg);
}
.cov-aurelia .ph-photo {
  flex: 1;
  position: relative;
  background:
    radial-gradient(ellipse 55% 45% at 50% 34%, #d9a07f 0 32%, transparent 34%),
    radial-gradient(ellipse 80% 60% at 50% 90%, #3a2320 0 60%, transparent 62%),
    linear-gradient(165deg, #cfa27e, #8c4c3e 55%, #391f1c);
}
.cov-aurelia .ph-photo::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6cqw;
  width: 19cqw;
  height: 22cqw;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #1b1210, #080606);
  border-radius: 50% 50% 0 0;
}
.cov-aurelia .ph-top {
  position: absolute;
  top: 1.2cqw;
  left: 1.6cqw;
  right: 1.6cqw;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-size: 1.1cqw;
  font-weight: 700;
  letter-spacing: .12em;
  color: #fff8ef;
}
.cov-aurelia .ph-bottom {
  padding: 2.4cqw 1.8cqw 1.8cqw;
  background: #f5ece0;
  color: #2a1c15;
}
.cov-aurelia .ph-bottom strong {
  display: block;
  font-family: var(--display);
  font-size: 2.9cqw;
  letter-spacing: .06em;
  font-weight: 400;
}
.cov-aurelia .ph-bottom span {
  display: flex;
  justify-content: space-between;
  margin-top: .8cqw;
  font-size: 1.15cqw;
  letter-spacing: .06em;
  opacity: .7;
}
.cov-aurelia .ph-bottom i { font-style: normal; }

/* --- 02 Pulse — fitness app --- */
.cov-pulse {
  background:
    radial-gradient(ellipse at 50% 118%, #6d0e1b 0, #250709 42%, #0a0909 75%);
  color: #f5efec;
}
.cov-pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(227, 43, 60, .2) .5px, transparent .5px);
  background-size: 2.4cqw 2.4cqw;
  mask-image: radial-gradient(ellipse at 50% 60%, #000, transparent 78%);
}
.cov-pulse .cov-kicker { top: 4.8cqw; left: 5cqw; color: #ef8a92; }
.cov-pulse .cov-brand { top: 8.1cqw; left: 5cqw; font-size: 1.6cqw; letter-spacing: .26em; color: #d6c8c6; }
.cov-pulse .cov-big {
  top: -2.5cqw;
  left: 50%;
  transform: translateX(-50%);
  font-size: 17cqw;
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 65, 81, .62);
  opacity: .9;
}
.cov-pulse .phone {
  left: 50%;
  top: 10cqw;
  width: 26cqw;
  height: 38cqw;
  transform: translateX(-50%) rotate(6deg);
  border-color: rgba(255, 255, 255, .2);
  background: #080707;
}
.cov-pulse .phone-screen {
  background: linear-gradient(175deg, #161011, #0b0909);
  align-items: center;
  padding: 2.4cqw 2cqw;
}
.cov-pulse .ph-eyebrow {
  align-self: flex-start;
  font-size: 1.05cqw;
  font-weight: 700;
  letter-spacing: .18em;
  color: #b7aaa8;
}
.cov-pulse .ring {
  position: relative;
  width: 17cqw;
  height: 17cqw;
  margin: 2.4cqw 0 1.8cqw;
  border-radius: 50%;
  background: conic-gradient(#ef4151 0 71%, #2a2022 71% 100%);
  box-shadow: 0 0 3.2cqw rgba(227, 43, 60, .28);
}
.cov-pulse .ring::before {
  content: "";
  position: absolute;
  inset: 1.6cqw;
  border-radius: 50%;
  background: #100b0c;
}
.cov-pulse .ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.cov-pulse .ring-label strong {
  font-family: var(--display);
  font-size: 3.8cqw;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .02em;
}
.cov-pulse .ring-label span {
  font-size: .95cqw;
  letter-spacing: .14em;
  color: #a99c9a;
  margin-top: .4cqw;
}
.cov-pulse .mini-stats { width: 100%; }
.cov-pulse .mini-stats span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25cqw 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: 1.15cqw;
  color: #b7aaa8;
}
.cov-pulse .mini-stats b { color: #f0e6e3; font-weight: 700; }
.cov-pulse .ph-cta {
  width: 100%;
  margin-top: auto;
  padding: 1.2cqw;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 1.05cqw;
  font-weight: 700;
  letter-spacing: .12em;
  border-radius: .8cqw;
}
.cov-pulse .cov-meta { color: #b9a7a5; }

/* --- 03 Nimbus — SaaS dashboard --- */
.cov-nimbus {
  background: linear-gradient(155deg, #0f2a2f, #081316 58%, #060d0f);
  color: #e7fbf6;
}
.cov-nimbus::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(67, 214, 197, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 214, 197, .07) 1px, transparent 1px);
  background-size: 5.5cqw 5.5cqw;
  mask-image: radial-gradient(ellipse at 70% 40%, #000, transparent 85%);
}
.cov-nimbus .cov-kicker { top: 5cqw; left: 5cqw; color: #5ad8c7; }
.cov-nimbus .cov-big {
  left: 5cqw;
  bottom: 3.4cqw;
  font-size: 11.5cqw;
  color: #e7fbf6;
  letter-spacing: -.01em;
}
.cov-nimbus .cov-big span { color: #43d6c5; }
.cov-nimbus .cov-sub {
  position: absolute;
  left: 5.4cqw;
  bottom: 16.5cqw;
  z-index: 2;
  font-size: 1.2cqw;
  font-weight: 700;
  letter-spacing: .22em;
  color: #7ea8a1;
}
.cov-nimbus .dash {
  position: absolute;
  right: 5cqw;
  top: 8cqw;
  z-index: 2;
  width: 58cqw;
  height: 37cqw;
  display: flex;
  transform: rotate(-2.5deg);
  background: #0d1c1f;
  border: 1px solid rgba(126, 220, 206, .24);
  border-radius: 1.2cqw;
  box-shadow: 0 2.6cqw 5.4cqw rgba(0, 0, 0, .45);
  overflow: hidden;
}
.cov-nimbus .dash-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.4cqw;
  display: flex;
  align-items: center;
  gap: .6cqw;
  padding: 0 1.4cqw;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.cov-nimbus .dash-bar i {
  width: .7cqw;
  height: .7cqw;
  border-radius: 50%;
  background: #3a4c4b;
}
.cov-nimbus .dash-bar i:first-child { background: var(--accent); }
.cov-nimbus .dash-side {
  width: 14cqw;
  padding: 5.4cqw 1.4cqw 1.4cqw;
  border-right: 1px solid rgba(255, 255, 255, .06);
}
.cov-nimbus .dash-side span {
  display: block;
  height: .8cqw;
  margin-bottom: 1.3cqw;
  background: rgba(255, 255, 255, .12);
  border-radius: 1cqw;
}
.cov-nimbus .dash-side span:first-child { width: 74%; background: #43d6c5; opacity: .8; }
.cov-nimbus .dash-side span:nth-child(2) { width: 62%; }
.cov-nimbus .dash-side span:nth-child(3) { width: 80%; }
.cov-nimbus .dash-side span:nth-child(4) { width: 54%; }
.cov-nimbus .dash-main {
  flex: 1;
  padding: 5.2cqw 1.6cqw 1.4cqw;
  min-width: 0;
}
.cov-nimbus .dash-cards { display: flex; gap: .9cqw; }
.cov-nimbus .dash-card {
  flex: 1;
  padding: 1.1cqw;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: .7cqw;
}
.cov-nimbus .dash-card small {
  display: block;
  font-size: .8cqw;
  letter-spacing: .1em;
  color: #79918e;
}
.cov-nimbus .dash-card strong {
  display: block;
  margin-top: .35cqw;
  font-family: var(--display);
  font-size: 2.2cqw;
  font-weight: 400;
  color: #d9f7f1;
  letter-spacing: .02em;
}
.cov-nimbus .dash-chart {
  display: flex;
  align-items: flex-end;
  gap: .9cqw;
  height: 13cqw;
  margin-top: 1.6cqw;
  padding: 1.2cqw 1.2cqw 0;
  background: linear-gradient(180deg, rgba(67, 214, 197, .06), transparent);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: .7cqw;
}
.cov-nimbus .bar {
  flex: 1;
  height: var(--h, 40%);
  background: linear-gradient(180deg, #43d6c5, #1e756a);
  border-radius: .3cqw .3cqw 0 0;
  opacity: .85;
}
.cov-nimbus .bar.is-hot { background: linear-gradient(180deg, #ff6a76, #a81422); }
.cov-nimbus .cov-meta { color: #85b8b0; }

/* --- 04 Tandoor House — restaurant --- */
.cov-tandoor { background: #efe2cd; color: #2b1610; }
.cov-tandoor .cov-tandoor-arch {
  position: absolute;
  left: 5cqw;
  top: 6cqw;
  bottom: 0;
  width: 44cqw;
  border: 1px solid rgba(43, 22, 16, .16);
  border-bottom: 0;
  border-radius: 22cqw 22cqw 0 0;
}
.cov-tandoor .cov-kicker { top: 5cqw; left: 5.6cqw; color: #7b2a20; }
.cov-tandoor .cov-brand { top: 8.3cqw; left: 5.6cqw; font-size: 1.6cqw; color: #5a2a20; }
.cov-tandoor .tand-plate {
  position: absolute;
  right: 5cqw;
  top: 11cqw;
  z-index: 2;
  width: 42cqw;
  height: 42cqw;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #e6a84f 0 14%, #b23c25 14% 27%, #6e2216 27% 44%, #2f1610 44% 58%, #f8efdf 58% 61%, #dfd0b9 61% 100%);
  box-shadow: 0 2cqw 4cqw rgba(58, 24, 14, .28), inset 0 0 3cqw rgba(0, 0, 0, .25);
}
.cov-tandoor .tand-plate::after {
  content: "";
  position: absolute;
  inset: 12cqw;
  border-radius: 50%;
  border: 1px solid rgba(248, 239, 223, .2);
}
.cov-tandoor .cov-big {
  left: 4.4cqw;
  bottom: 7.2cqw;
  font-size: 12cqw;
  color: #8e1d24;
  letter-spacing: -.015em;
}
.cov-tandoor .tand-house {
  position: absolute;
  left: 5.6cqw;
  bottom: 4.2cqw;
  z-index: 3;
  font-size: 1.6cqw;
  font-weight: 800;
  letter-spacing: .5em;
  color: #4a2319;
}
.cov-tandoor .menu-card {
  position: absolute;
  right: 4.4cqw;
  bottom: 4cqw;
  z-index: 3;
  width: 24cqw;
  padding: 2.2cqw 2cqw;
  background: #fbf5e9;
  border: 1px solid rgba(43, 22, 16, .12);
  box-shadow: 0 1.4cqw 2.4cqw rgba(58, 24, 14, .14);
}
.cov-tandoor .menu-card strong {
  display: block;
  font-family: var(--display);
  font-size: 2.3cqw;
  font-weight: 400;
  letter-spacing: .06em;
  color: #8e1d24;
}
.cov-tandoor .menu-card span {
  display: flex;
  justify-content: space-between;
  gap: .8cqw;
  margin-top: 1cqw;
  padding-top: .7cqw;
  border-top: 1px solid rgba(43, 22, 16, .12);
  font-size: 1cqw;
  letter-spacing: .06em;
  color: #5b3a2e;
}
.cov-tandoor .cov-meta { color: #5b3a2e; }
.cov-tandoor .cov-meta,
.cov-nomad .cov-meta {
  top: 4.4cqw;
  bottom: auto;
  right: 4.4cqw;
}

/* --- 05 Vault — fintech wallet --- */
.cov-vault { background: radial-gradient(circle at 82% 18%, #1b3c2e, #081009 62%, #050a07); color: #eaf6ee; }
.cov-vault::before {
  content: "";
  position: absolute;
  inset: -20cqw;
  background: repeating-radial-gradient(circle at 82% 18%, rgba(110, 214, 160, .08) 0 1px, transparent 1px 4.4cqw);
  opacity: .8;
}
.cov-vault .cov-kicker { top: 5cqw; left: 5cqw; color: #6bd69b; }
.cov-vault .balance {
  position: absolute;
  left: 5cqw;
  top: 9cqw;
  z-index: 3;
}
.cov-vault .balance small {
  display: block;
  font-size: 1.15cqw;
  font-weight: 700;
  letter-spacing: .18em;
  color: #87a696;
}
.cov-vault .balance strong {
  display: block;
  font-family: var(--display);
  font-size: 6.4cqw;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.1;
  color: #f1fbf5;
}
.cov-vault .balance span {
  display: inline-block;
  margin-top: .8cqw;
  padding: .35cqw .8cqw;
  border: 1px solid rgba(107, 214, 155, .35);
  color: #6bd69b;
  font-size: 1cqw;
  font-weight: 700;
  letter-spacing: .1em;
}
.cov-vault .vault-card {
  position: absolute;
  right: 6cqw;
  top: 11cqw;
  z-index: 3;
  width: 50cqw;
  height: 31.5cqw;
  padding: 2.6cqw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-7deg);
  background: linear-gradient(135deg, #17271f, #0a120e 70%);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 1.6cqw;
  box-shadow: 0 2.6cqw 5cqw rgba(0, 0, 0, .55);
}
.cov-vault .vault-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, .1), transparent 38%);
  pointer-events: none;
}
.cov-vault .vault-chip {
  width: 5.4cqw;
  height: 4cqw;
  border-radius: .6cqw;
  background:
    linear-gradient(90deg, transparent 45%, rgba(0, 0, 0, .28) 45% 52%, transparent 52%),
    linear-gradient(0deg, transparent 45%, rgba(0, 0, 0, .28) 45% 52%, transparent 52%),
    linear-gradient(135deg, #f0cd7a, #a97c2c);
}
.cov-vault .vault-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--display);
  font-size: 2.7cqw;
  font-weight: 400;
  letter-spacing: .12em;
  color: #eaf6ee;
}
.cov-vault .vault-brand span {
  font-family: var(--body);
  font-size: 1.1cqw;
  letter-spacing: .2em;
  color: #7c9b8b;
}
.cov-vault .vault-num {
  font-size: 1.55cqw;
  letter-spacing: .28em;
  color: #a8bdb1;
}
.cov-vault .cov-big {
  left: 5cqw;
  bottom: 3.4cqw;
  font-size: 10cqw;
  color: #eaf6ee;
  letter-spacing: .02em;
}
.cov-vault .cov-big span { color: #6bd69b; }
.cov-vault .cov-meta { color: #7c9b8b; }

/* --- 06 Nomad — travel --- */
.cov-nomad {
  background: linear-gradient(178deg, #133449 0%, #3a6a79 42%, #c68b58 78%, #e0a469 100%);
  color: #fff;
}
.cov-nomad .nod-sun {
  position: absolute;
  right: 8cqw;
  top: 8cqw;
  width: 26cqw;
  height: 26cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, #ffe6bd, #f3a95f 62%, #c0723c);
  box-shadow: 0 0 6cqw rgba(243, 169, 95, .5);
}
.cov-nomad .nod-arch {
  position: absolute;
  left: 8cqw;
  bottom: 0;
  width: 36cqw;
  height: 34cqw;
  border: 1px solid rgba(255, 255, 255, .24);
  border-bottom: 0;
  border-radius: 18cqw 18cqw 0 0;
}
.cov-nomad .cov-kicker { top: 5cqw; left: 5cqw; color: #d9eff4; }
.cov-nomad .cov-big {
  left: 4.4cqw;
  top: 11cqw;
  font-size: 16cqw;
  letter-spacing: -.015em;
  text-shadow: 0 1cqw 3cqw rgba(19, 52, 73, .35);
}
.cov-nomad .nod-route {
  position: absolute;
  left: 6cqw;
  bottom: 20cqw;
  width: 44cqw;
  border-top: 1px dashed rgba(255, 255, 255, .55);
  transform: rotate(-7deg);
  z-index: 2;
}
.cov-nomad .nod-route::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}
.cov-nomad .ticket {
  position: absolute;
  right: 4.6cqw;
  bottom: 4.6cqw;
  z-index: 3;
  width: 31cqw;
  padding: 2.2cqw;
  transform: rotate(3deg);
  background: #f8f1e6;
  color: #182d38;
  box-shadow: 0 1.8cqw 3.4cqw rgba(15, 35, 47, .3);
}
.cov-nomad .ticket small {
  display: block;
  font-size: .95cqw;
  font-weight: 800;
  letter-spacing: .22em;
  color: #a35f34;
}
.cov-nomad .ticket strong {
  display: flex;
  align-items: center;
  gap: 1cqw;
  margin: 1.2cqw 0 1.4cqw;
  font-family: var(--display);
  font-size: 3.6cqw;
  font-weight: 400;
  letter-spacing: .04em;
}
.cov-nomad .ticket strong i {
  font-style: normal;
  color: #c2713e;
  font-size: 2.2cqw;
}
.cov-nomad .ticket span {
  display: flex;
  justify-content: space-between;
  padding-top: 1cqw;
  border-top: 1px solid rgba(24, 45, 56, .16);
  font-size: 1cqw;
  letter-spacing: .08em;
  color: #5e6f75;
}
.cov-nomad .cov-meta { color: #f6e9d8; }

/* =========================================================
   Archive
   ========================================================= */
.archive-list { border-top: 1px solid var(--line); }
.archive-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1.2fr) minmax(0, .9fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  transition: color .25s, padding .35s var(--ease), background .25s;
}
.archive-row:hover {
  color: var(--accent);
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(227, 43, 60, .06), transparent 60%);
}
.archive-year {
  font-family: var(--display);
  font-size: 17px;
  color: var(--accent);
  letter-spacing: .02em;
}
.archive-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.archive-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.archive-row svg { width: 16px; height: 16px; color: var(--muted); transition: transform .3s, color .3s; }
.archive-row:hover svg { color: var(--accent); transform: translate(3px, -3px); }

/* =========================================================
   Project dialog
   ========================================================= */
.project-dialog {
  width: min(1080px, calc(100vw - 40px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid #4b3438;
  background: #0d0b0b;
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #131010;
}
.project-dialog[open] { animation: dialogIn .45s var(--ease); }
.project-dialog::backdrop {
  background: rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
@keyframes dialogIn {
  from { opacity: 0; transform: translateY(18px) scale(.99); }
  to { opacity: 1; transform: none; }
}
.dialog-heading {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 8px 22px;
  background: rgba(13, 11, 11, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.dialog-heading .eyebrow { color: var(--accent); }
.dialog-close { border: 0; }
.dialog-media {
  position: relative;
  aspect-ratio: 1.7;
  background: #050505;
  container-type: inline-size;
  overflow: hidden;
}
.dialog-media .cover { position: absolute; inset: 0; }
.dialog-body { padding: clamp(22px, 3vw, 36px); }
.dialog-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}
.dialog-title-row h2 { font-size: clamp(28px, 3.4vw, 48px); line-height: .96; margin-bottom: 8px; }
.dialog-title-row .accent { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.dialog-year {
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 24px;
  color: var(--muted-2);
  letter-spacing: .04em;
}
.dialog-description {
  max-width: 680px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.dialog-facts {
  display: grid;
  grid-template-columns: .8fr 1.4fr .8fr;
  gap: 26px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.dialog-facts p { margin-top: 7px; font-size: 12px; line-height: 1.6; }
.dialog-facts .eyebrow { font-size: 9px; color: var(--muted-2); }
.dialog-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.dialog-actions .primary-link { gap: 40px; }
body.dialog-open { overflow: hidden; }

/* ---------- Reveal primitives ---------- */
.reveal.is-pending {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-pending.is-visible {
  opacity: 1;
  transform: none;
}
