/* =============================================
   PORTFOLIO — DESIGN SYSTEM
   ============================================= */

/* ---- Design Tokens ---- */
:root {
  --bg: #f5f5f7;
  --sidebar-bg: #f5f5f7;
  --elevated: #ffffff;
  --card: #ffffff;
  --border: #d2d2d7;
  --text: #1d1d1f;
  --text-2: #424245;
  --text-3: #86868b;
  --coral: #1d1d1f;
  --coral-muted: #6e6e73;
  --blue: #1d1d1f;
  --radius: 10px;
  --radius-sm: 6px;
  --sans: "pacaembu", Arial, sans-serif;
  --serif: "legitima", Georgia, serif;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Subtle film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

a {
  color: var(--text-2);
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

.static-project-transcript,
.static-homepage-index {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =============================================
   CENTERED LAYOUT
   ============================================= */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

/* ---- Top Header ---- */
.top-header {
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  z-index: 10;
  font-family: var(--sans);
}

/* Root (blog/gallery) pages: breathe between the shared header and page content,
   restoring the separation the standalone section row used to provide. */
.root-page > .top-header {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.top-header-inner {
  max-width: 1200px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 16px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "brand worlds utils";
  align-items: center;
  gap: 16px;
}

.top-header-left {
  grid-area: brand;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.top-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.top-header-right {
  grid-area: utils;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-header-worlds {
  grid-area: worlds;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.world-chip {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
}

.world-chip:hover {
  color: #ffffff;
  background: var(--text);
  border-color: var(--text);
  transform: translateY(-1px);
}

.world-chip.active,
.world-chip[aria-current="page"] {
  background: var(--text);
  color: var(--sidebar-bg);
  border-color: var(--text);
}

.top-nav-link {
  font-size: 13px;
  color: var(--text-3);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  text-align: center;
}

.top-nav-link:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

/* ---- Contact Sheet ---- */
.contact-wrapper {
  position: relative;
}

.contact-sheet {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  background: var(--elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92) translateY(-6px);
  transform-origin: top right;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.22s;
  z-index: 100;
}

.contact-sheet.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.contact-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.contact-item svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.contact-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 4px 14px;
}

.model-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-3);
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: default;
}

.model-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ABF6F;
}

.model-chevron {
  opacity: 0.5;
  font-size: 10px;
  margin-left: auto;
}



/* ---- Main Panel ---- */
.main-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.artifact-header {
  display: none;
}

.artifact-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-3);
  background: var(--elevated);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
}

.artifact-header-title {
  color: var(--text-2);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 14px;
}

/* ---- Filter Chip Bar (Artifacts-inspired) ---- */
.filter-chip-wrap {
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.filter-chip-bar {
  display: flex;
  gap: 6px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 32px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
}

.filter-chip-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-3);
  min-height: 32px;
  padding: 6px 16px;
  border-radius: 20px;
  background: transparent;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.filter-chip:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

.filter-chip.active {
  background: var(--text);
  color: var(--sidebar-bg);
  font-weight: 600;
}

/* Scrollable content area */
.main-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  background: var(--bg);
}

/* ---- Artifact Detail ---- */
.artifact-detail {
  padding: 36px 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.artifact-detail>* {
  box-sizing: border-box;
}

.artifact-color-bar {
  display: none;
}

.artifact-thumb-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.artifact-thumb-wrap img {
  width: 100%;
  display: block;
}

.artifact-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.25;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.artifact-date {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 14px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.artifact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.artifact-tag {
  font-size: 11px;
  color: var(--text-3);
  background: var(--elevated);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ---- Landing Page ---- */
.artifact-detail-landing {
  max-width: none;
  padding: clamp(24px, 4vw, 48px) 32px 0;
}

.landing-page {
  --portrait-frame-width: clamp(360px, 34vw, 500px);
  --portrait-frame-height: clamp(500px, calc(100vh - 210px), 720px);
  --portrait-object-position: 50% 0%;
  width: min(100%, 1220px);
  min-height: min(760px, calc(100vh - 178px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 650px) var(--portrait-frame-width);
  grid-template-areas:
    "copy portrait"
    "capsules portrait"
    "extras extras";
  column-gap: clamp(32px, 5vw, 72px);
  align-items: start;
  justify-content: center;
}

.landing-copy {
  grid-area: copy;
  z-index: 1;
  max-width: 650px;
  padding-top: clamp(18px, 3.8vh, 44px);
}

.landing-headline {
  font-family: var(--sans);
  font-size: clamp(34px, 2.75vw, 42px);
  font-weight: 600;
  line-height: 1.58;
  color: #7a8792;
  max-width: 650px;
}

.landing-title-phrase {
  white-space: nowrap;
}

.landing-title-link {
  display: inline;
  font: inherit;
  line-height: inherit;
  color: inherit;
  text-align: left;
  border-radius: 8px;
  padding: 0 5px;
  margin: 0 -5px;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}

.landing-title-link:hover,
.landing-title-link:focus-visible {
  color: var(--text);
  background: #bcc3c9;
  box-shadow: 0 0 0 1px rgba(122, 135, 146, 0.18);
}

.landing-title-link:focus-visible,
.landing-capsule:focus-visible,
.filter-chip:focus-visible,
.world-chip:focus-visible,
.top-nav-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.landing-punchline {
  margin-top: clamp(34px, 5vh, 54px);
  font-size: clamp(27px, 2.15vw, 34px);
  font-weight: 600;
  line-height: 1.55;
  color: #7a8792;
}

.landing-punchline strong {
  color: var(--text);
  font-weight: 700;
}

.landing-proof {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(210px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: end;
  padding-top: clamp(24px, 3.4vh, 34px);
  border-top: 1px solid rgba(210, 210, 215, 0.76);
}

.landing-proof-label {
  display: block;
  margin-bottom: 7px;
  color: #7a8792;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 1.6px;
  line-height: 1;
  text-transform: uppercase;
}

.landing-current {
  min-width: 0;
}

.landing-current strong {
  display: block;
  color: var(--text);
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 760;
  line-height: 1.15;
}

.landing-current img {
  width: clamp(92px, 7vw, 120px);
  margin-top: 20px;
  mix-blend-mode: multiply;
}

.landing-proof-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(22px, 3.2vw, 44px);
  min-width: 0;
  padding-bottom: 4px;
}

.landing-proof-logo {
  display: block;
  max-width: 92px;
  max-height: 44px;
  object-fit: contain;
  opacity: 0.72;
  filter: grayscale(1);
  mix-blend-mode: multiply;
}

.landing-logo-time {
  max-width: 70px;
  max-height: 30px;
}

.landing-logo-artifex {
  max-width: 42px;
  max-height: 42px;
  opacity: 0.76;
}

.landing-logo-simon {
  max-width: 50px;
  max-height: 46px;
  opacity: 0.78;
}

.landing-logo-amu {
  max-width: 92px;
  max-height: 40px;
}

.landing-logo-ergorithm {
  max-width: 44px;
  max-height: 44px;
  opacity: 0.76;
}

.landing-skills {
  margin-top: clamp(30px, 4.4vh, 46px);
}

.landing-extras {
  grid-area: extras;
  width: min(100%, 1040px);
  justify-self: center;
  margin-top: clamp(30px, 4.8vh, 54px);
  padding-bottom: clamp(18px, 3vh, 34px);
}

.landing-skills-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.landing-skills-header span:first-child {
  color: #86868b;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 1.6px;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.landing-skills-header span:last-child {
  flex: 1;
  height: 1px;
  background: rgba(210, 210, 215, 0.9);
}

.landing-skills-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  column-gap: clamp(14px, 2vw, 28px);
  row-gap: 18px;
}

.landing-latest {
  grid-column: 1 / -1;
  width: min(100%, 1040px);
  justify-self: center;
  padding: clamp(22px, 3.2vh, 34px) 0 clamp(46px, 6vh, 72px);
  border-top: 1px solid rgba(210, 210, 215, 0.76);
}

.landing-latest h2 {
  margin-bottom: 18px;
  color: #86868b;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 1.6px;
  line-height: 1.1;
  text-transform: uppercase;
}

.landing-latest-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 22px);
}

.landing-latest-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--card);
  border: 1px solid rgba(210, 210, 215, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s, box-shadow 0.2s;
}

.landing-latest-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ececf0;
}

.landing-latest-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.landing-latest-thumb span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  color: #86868b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}

.landing-latest-card h3 {
  margin: 0;
  padding: 11px 12px 13px;
  overflow: hidden;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-latest-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14), 0 1px 4px rgba(0, 0, 0, 0.08);
}

.landing-latest-card:hover .landing-latest-thumb img,
.landing-latest-card:focus-visible .landing-latest-thumb img {
  transform: scale(1.025);
}

.landing-latest-card:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.landing-skill-item {
  gap: 4px;
  padding: 0;
}

.landing-skill-item:hover {
  background: transparent;
}

.landing-skill-item .skill-icon {
  width: clamp(24px, 2.25vw, 32px);
  height: clamp(24px, 2.25vw, 32px);
  opacity: 0.88;
}

.landing-skill-item .skill-label {
  max-width: 74px;
  font-size: clamp(8px, 0.72vw, 9px);
  line-height: 1.08;
  color: #86868b;
}

.landing-capsules {
  grid-area: capsules;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  z-index: 1;
  max-width: 650px;
  margin-top: clamp(26px, 4vh, 42px);
  padding-bottom: 0;
}

.landing-capsule {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 15px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
}

.landing-capsule:hover {
  color: #ffffff;
  background: var(--text);
  border-color: var(--text);
  transform: translateY(-1px);
}

.landing-portrait {
  grid-area: portrait;
  position: relative;
  width: var(--portrait-frame-width);
  height: var(--portrait-frame-height);
  justify-self: end;
  align-self: start;
  margin-top: clamp(8px, 2vh, 28px);
  overflow: hidden;
  pointer-events: none;
}

.landing-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--portrait-object-position);
}

.landing-portrait::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 19%;
  background: linear-gradient(to bottom, rgba(245, 245, 247, 0), var(--bg) 78%);
  pointer-events: none;
}

.tag-chip {
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.tag-chip:hover {
  color: var(--text);
  border-color: var(--text-3);
  background: rgba(0, 0, 0, 0.04);
}

.tag-chip.active,
.tag-filter-clear {
  color: #ffffff;
  background: var(--text);
  border-color: var(--text);
}

/* ---- Tag Results ---- */
.tag-results-section {
  max-width: 1080px;
  margin: 0 auto;
}

.tag-results-heading {
  margin-bottom: 28px;
}

.tag-results-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.tag-results-heading h1 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 10px;
}

.tag-results-heading p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 560px;
}

.tag-results-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-results-counts span {
  font-size: 12px;
  color: var(--text-2);
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 11px;
}

.tag-results-group {
  margin-top: 34px;
}

.tag-results-group h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 14px;
}

.tag-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.tag-project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s;
}

.tag-project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.11);
}

.tag-project-main {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
  font: inherit;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.tag-project-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: var(--elevated);
  overflow: hidden;
}

.tag-project-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tag-project-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 32px;
  color: var(--text-3);
}

.tag-project-copy {
  padding: 14px 15px 12px;
}

.tag-project-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--text-3);
  margin-bottom: 5px;
}

.tag-project-copy h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 7px;
}

.tag-project-copy p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
  margin-bottom: 12px;
}

.tag-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 15px 15px;
}

.tag-result-tag {
  font-size: 10px;
  padding: 2px 8px;
}

.tag-rnd-bento {
  margin-top: 0;
}

.tag-empty-state {
  padding: 28px 0;
  color: var(--text-3);
  font-size: 14px;
}

.artifact-desc {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 800px;
  white-space: pre-line;
  margin-left: auto;
  margin-right: auto;
}

.artifact-more-context {
  max-width: 800px;
  margin: 0 auto 26px;
}

.artifact-more-context h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 10px;
}

.artifact-more-context p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 14px;
}

.artifact-more-context p:last-child {
  margin-bottom: 0;
}

.artifact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.artifact-link {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: #1d1d1f;
  border: 1px solid #1d1d1f;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background 0.15s;
  text-decoration: none;
}

.artifact-link:hover {
  background: #424245;
}

/* Inline banner video */
.artifact-banner-video {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  max-width: 800px;
  aspect-ratio: 16 / 9;
  margin-left: auto;
  margin-right: auto;
}

.artifact-banner-video iframe,
.artifact-banner-video video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Inline gallery */
.inline-gallery {
  margin-top: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.inline-gallery-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
  margin-bottom: 10px;
}

.inline-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.inline-gallery-img {
  width: 100%;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: opacity 0.15s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  transform: translateY(16px);
}

.inline-gallery-img.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Thumbnail Strip (horizontal scroll project browser) ---- */
.thumb-strip-wrap {
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  --thumb-strip-fade-width: 56px;
}

.thumb-strip-wrap::before,
.thumb-strip-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(var(--thumb-strip-fade-width), 18vw);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.thumb-strip-wrap::before {
  left: max(0px, calc((100% - 1200px) / 2));
  background: linear-gradient(to right, var(--bg) 0%, rgba(245, 245, 247, 0.92) 34%, rgba(245, 245, 247, 0) 100%);
}

.thumb-strip-wrap::after {
  right: max(0px, calc((100% - 1200px) / 2));
  background: linear-gradient(to left, var(--bg) 0%, rgba(245, 245, 247, 0.92) 34%, rgba(245, 245, 247, 0) 100%);
}

.thumb-strip-wrap.has-left-fade::before,
.thumb-strip-wrap.has-right-fade::after {
  opacity: 1;
}

.thumb-strip {
  display: flex;
  gap: 12px;
  padding: 14px 32px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1200px;
  margin: 0 auto;
}

.thumb-strip::-webkit-scrollbar {
  display: none;
}

.thumb-strip> :first-child {
  margin-left: auto;
}

.thumb-strip> :last-child {
  margin-right: auto;
}

.thumb-card {
  flex-shrink: 0;
  width: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  border: 2px solid transparent;
  background: var(--card);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.08);
  animation: thumbFadeIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.thumb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14), 0 1px 4px rgba(0, 0, 0, 0.08);
}

.thumb-card.active {
  border-color: var(--accent, var(--coral));
  box-shadow: 0 0 0 1px var(--accent, var(--coral)), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.thumb-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--elevated);
}

.thumb-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}

.thumb-card:hover .thumb-card-img-wrap img {
  transform: scale(1.05);
}

.thumb-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.thumb-card-label {
  padding: 8px 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumb-card.active .thumb-card-label {
  color: var(--text);
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--card);
  border-radius: var(--radius);
  width: 90%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--border);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 18px;
  color: var(--text-3);
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.04);
}

.modal-banner {
  width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal-banner-video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.modal-banner-video iframe,
.modal-banner-video video {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-banner-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: var(--elevated);
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal-body {
  padding: 24px 28px 32px;
}

.modal-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.modal-tagline {
  font-family: var(--serif);
  color: var(--text-3);
  font-size: 14px;
  margin-bottom: 14px;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.modal-year,
.modal-category {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text-3);
}

.modal-description {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  white-space: pre-line;
}

.modal-more-context {
  margin-top: 18px;
}

.modal-more-context h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 10px;
}

.modal-more-context p {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 12px;
}

.modal-more-context p:last-child {
  margin-bottom: 0;
}

.modal-links {
  margin-top: 20px;
}

.modal-links h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 10px;
}

.modal-link {
  display: inline-block;
  font-size: 13px;
  color: var(--coral);
  margin-right: 16px;
  margin-bottom: 6px;
  transition: opacity 0.15s;
}

.modal-link:hover {
  opacity: 0.7;
}

/* Modal gallery */
.modal-gallery {
  margin-top: 24px;
}

.modal-gallery h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 10px;
}

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.modal-gallery-img {
  width: 100%;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: opacity 0.15s;
}

.modal-gallery-img:hover {
  opacity: 0.8;
}

.bts-video {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* YouTube gallery */
.yt-gallery {
  margin-top: 20px;
}

.yt-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.yt-gallery-header h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
}

.yt-gallery-counter {
  font-size: 11px;
  color: var(--text-3);
}

.yt-gallery-player {
  position: relative;
  margin-bottom: 10px;
}

.yt-gallery-iframe-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.yt-gallery-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.yt-gallery-title-bar {
  padding: 8px 0;
}

.yt-gallery-now-playing {
  font-size: 12px;
  color: var(--text-2);
}

.yt-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-gallery-prev {
  left: -12px;
}

.yt-gallery-next {
  right: -12px;
}

.yt-gallery-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.yt-gallery-thumb {
  flex-shrink: 0;
  width: 100px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.15s;
  text-align: left;
}

.yt-gallery-thumb.active {
  border-color: var(--coral);
}

.yt-gallery-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.yt-gallery-thumb span {
  display: block;
  font-size: 10px;
  color: var(--text-3);
  padding: 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================
   OVERLAYS (About, Why Me)
   ============================================= */
.about-overlay,
.whyme-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  overflow-y: auto;
  padding: 40px 20px;
}

.about-overlay.active,
.whyme-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.about-content {
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
  opacity: 0;
}

.about-content.about-entered {
  transform: translateY(0);
  opacity: 1;
}

.about-close,
.whyme-close {
  position: fixed;
  top: 20px;
  right: 24px;
  font-size: 22px;
  color: var(--text-3);
  z-index: 601;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.about-close:hover,
.whyme-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.about-content,
.whyme-content {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-width: 775px;
  width: 100%;
  padding: 32px;
  margin: auto;
}

/* About styles */
.about-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.about-profile-pic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.about-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
}

.about-headline {
  font-size: 13px;
  color: var(--text-3);
}

.about-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.about-link {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: #1d1d1f;
  border: 1px solid #1d1d1f;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background 0.15s;
  text-decoration: none;
}

.about-link:hover {
  background: #424245;
}

.about-summary {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* Skills section in About modal */
.skills-section {
  margin-top: 20px;
  padding-top: 8px;
}

.skills-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.skills-header-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--text);
  white-space: nowrap;
  font-family: var(--mono, ui-monospace, monospace);
}

.skills-header-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 8px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 2px;
  border-radius: 6px;
  transition: background 0.15s;
}

.skill-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.skill-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  filter: grayscale(100%);
  opacity: 1;
  transition: filter 0.2s, opacity 0.2s;
}

.skill-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skill-icon-svg {
  width: 100%;
  height: 100%;
  color: #86868b;
  overflow: visible;
}

/* Dark-source PNGs (e.g. antigravity.png) — match #86868b gray of other icons */
.skill-icon-img.skill-icon-img-invert {
  filter: none;
  opacity: 0.53;
}

.skill-icon-svg svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}


.skill-label {
  font-size: 9px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.2;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-item:hover .skill-icon {
  filter: grayscale(0%) brightness(1) contrast(1);
  opacity: 1;
}

.skill-item:hover .skill-label {
  color: var(--text-2);
}

/* Why Me */
.whyme-header {
  margin-bottom: 24px;
}

.whyme-header h1 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
}

.whyme-header p {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}

.why-tabs {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.why-tab {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  padding: 12px 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.why-tab:hover {
  color: var(--text-2);
  border-color: rgba(0, 0, 0, 0.15);
}

.why-tab.active {
  color: #ffffff;
  background: #1d1d1f;
  border-color: #1d1d1f;
}

.whyme-subtitle {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 16px;
}

.why-essay-para {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 20px;
}

.why-essay-para:first-child {
  color: var(--text);
}

.whyme-annotation {
  border-left: 2px solid var(--border);
  padding: 14px 0 14px 18px;
  margin-bottom: 18px;
}

.whyme-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 8px;
}

.whyme-response {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 6px;
}

.whyme-project-link {
  font-size: 12px;
  color: var(--coral);
  cursor: pointer;
  transition: opacity 0.15s;
}

.whyme-project-link:hover {
  opacity: 0.7;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 4px;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s;
}

.lightbox img.lightbox-entered {
  transform: scale(1);
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.15s;
  z-index: 701;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* =============================================
   MOBILE HEADER
   ============================================= */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--border);
  z-index: 20;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
}

.mobile-menu-btn {
  font-size: 20px;
  color: var(--text);
  padding: 6px;
}

.mobile-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--coral);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1279px) {
  .artifact-detail-landing {
    padding: 28px 32px 0;
  }

  .landing-page {
    --portrait-frame-width: clamp(270px, 30vw, 350px);
    --portrait-frame-height: clamp(390px, 48vw, 540px);
    grid-template-columns: minmax(0, 1fr) var(--portrait-frame-width);
    column-gap: clamp(24px, 4vw, 44px);
    justify-content: stretch;
    min-height: auto;
  }

  .landing-copy {
    max-width: 620px;
    padding-top: 24px;
  }

  .landing-headline {
    font-size: clamp(30px, 3.2vw, 35px);
    line-height: 1.58;
  }

  .landing-punchline {
    margin-top: clamp(30px, 5vw, 48px);
    font-size: clamp(24px, 2.7vw, 29px);
  }

  .landing-capsules {
    margin-top: clamp(24px, 4vw, 38px);
  }

  .landing-proof {
    grid-template-columns: minmax(190px, 0.58fr) minmax(0, 1.42fr);
    gap: 28px;
    padding-top: 24px;
  }

  .landing-proof-logos {
    gap: 24px;
  }

  .landing-skills-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .landing-extras {
    width: min(100%, 940px);
    margin-top: 34px;
  }

  .landing-latest {
    width: min(100%, 940px);
  }
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 899px) {
  .artifact-detail-landing {
    padding: 24px 24px 0;
  }

  .landing-page {
    --portrait-frame-width: clamp(180px, 32vw, 260px);
    --portrait-frame-height: clamp(300px, 54vw, 430px);
    grid-template-columns: minmax(0, 1fr) var(--portrait-frame-width);
    column-gap: clamp(16px, 3vw, 26px);
  }

  .landing-copy {
    max-width: 560px;
    padding-top: 16px;
  }

  .landing-headline {
    max-width: 560px;
    font-size: clamp(25px, 4vw, 31px);
    line-height: 1.52;
  }

  .landing-punchline {
    margin-top: clamp(24px, 4.5vw, 34px);
    font-size: clamp(21px, 3.4vw, 26px);
  }

  .landing-portrait {
    justify-self: end;
    margin-top: 18px;
  }

  .landing-capsules {
    max-width: 560px;
    margin-top: clamp(20px, 3.5vw, 30px);
  }

  .landing-proof {
    grid-template-columns: minmax(160px, 0.54fr) minmax(0, 1.46fr);
    gap: clamp(20px, 3.2vw, 30px);
    padding-top: 22px;
  }

  .landing-proof-logos {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: clamp(16px, 2.5vw, 28px);
  }

  .landing-skills {
    margin-top: 32px;
  }

  .landing-skills-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .landing-extras {
    width: min(100%, 720px);
    justify-self: center;
    margin-top: 30px;
  }

  .landing-latest {
    width: min(100%, 720px);
  }

  .landing-latest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .top-header-inner {
    padding: 12px 16px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand utils"
      "worlds worlds";
    gap: 10px 16px;
  }

  .top-header-worlds {
    justify-self: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .top-header-worlds::-webkit-scrollbar {
    display: none;
  }

  .model-selector {
    display: none;
  }

  .top-name {
    font-size: 13px;
  }

  .main-panel {
    padding-top: 0;
  }

  .artifact-detail {
    padding: 20px 18px;
  }

  .artifact-title {
    font-size: 22px;
  }

  .filter-chip-bar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 16px;
  }

  .thumb-strip {
    padding: 12px 16px;
  }
}

@media (max-width: 639.98px) {
  .artifact-detail-landing {
    padding: 18px 18px 0;
  }

  .landing-page {
    --portrait-frame-width: min(100%, 340px);
    --portrait-frame-height: clamp(145px, 42vw, 180px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "portrait"
      "capsules"
      "extras";
    row-gap: 10px;
    justify-items: start;
  }

  .landing-copy {
    padding-top: 14px;
  }

  .landing-headline {
    font-size: clamp(22px, 6.4vw, 26px);
    line-height: 1.38;
  }

  .landing-punchline {
    margin-top: 22px;
    font-size: clamp(20px, 5.6vw, 22px);
    line-height: 1.38;
  }

  .landing-portrait {
    justify-self: center;
    margin-top: 0;
  }

  .landing-capsules {
    max-width: none;
    gap: 7px;
    margin-top: 12px;
    padding-bottom: 0;
  }

  .landing-capsule {
    font-size: 12px;
    padding: 6px 12px;
  }

  .landing-proof {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 18px;
  }

  .landing-current {
    text-align: center;
  }

  .landing-extras {
    width: min(100%, 360px);
    margin-top: 22px;
    padding-bottom: 18px;
  }

  .landing-latest {
    width: min(100%, 360px);
    padding-bottom: 38px;
  }

  .landing-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .landing-latest-card h3 {
    font-size: 12px;
  }

  .landing-current img {
    width: 92px;
    margin-top: 16px;
    margin-left: auto;
    margin-right: auto;
  }

  .landing-proof-logos {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 24px;
  }

  .landing-proof-logo {
    max-width: 76px;
    max-height: 38px;
  }

  .landing-logo-time {
    max-width: 64px;
  }

  .landing-logo-artifex {
    max-width: 38px;
    max-height: 38px;
  }

  .landing-logo-simon {
    max-width: 46px;
    max-height: 42px;
  }

  .landing-logo-amu {
    max-width: 78px;
  }

  .landing-logo-ergorithm {
    max-width: 38px;
    max-height: 38px;
  }

  .landing-skills-header {
    margin-bottom: 14px;
  }

  .landing-skills-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 14px;
  }

  .landing-skill-item .skill-label {
    display: none;
  }
}

/* =============================================
   SCROLLBAR
   ============================================= */
.main-content-scroll::-webkit-scrollbar,
.modal::-webkit-scrollbar {
  width: 6px;
}

.main-content-scroll::-webkit-scrollbar-track,
.modal::-webkit-scrollbar-track {
  background: transparent;
}

.main-content-scroll::-webkit-scrollbar-thumb,
.modal::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* =============================================
   ANIMATIONS & VIEW TRANSITIONS
   ============================================= */

/* Thumbnail stagger entrance */
@keyframes thumbFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* View Transition names for morph targets */
.thumb-strip-wrap {
  view-transition-name: thumb-strip;
}

.artifact-detail {
  view-transition-name: artifact-detail;
}

.artifact-header {
  view-transition-name: artifact-header;
}

/* View Transition crossfade (pure opacity, no movement to avoid jitter) */
::view-transition-old(artifact-detail),
::view-transition-old(artifact-header) {
  animation: none;
  opacity: 0;
}

::view-transition-new(artifact-detail),
::view-transition-new(artifact-header) {
  animation: vtFadeIn 0.25s ease both;
}

@keyframes vtFadeIn {
  from {
    opacity: 0;
  }
}

/* =============================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {

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

  .inline-gallery-img {
    opacity: 1;
    transform: none;
  }

  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* =============================================
   R&D BENTO SECTION
   ============================================= */
.rnd-section {
  padding: 36px 32px 48px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.rnd-heading {
  margin-bottom: 32px;
}

.rnd-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-3);
  background: var(--elevated);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.rnd-desc {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 560px;
  margin-top: 8px;
}

/* Bento grid — CSS columns for a natural masonry flow */
.rnd-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 760px;
  margin-top: 18px;
}

.rnd-topic-chip {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-3);
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 11px;
}

.rnd-bento {
  columns: 1;
  column-gap: 20px;
}

@media (min-width: 680px) {
  .rnd-bento {
    columns: 2;
  }
}

@media (min-width: 960px) {
  .rnd-bento {
    columns: 3;
  }
}

.rnd-card {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 2px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s;
}

.rnd-card-meta {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.rnd-card-meta h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 5px;
}

.rnd-card-meta p {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-3);
  margin-bottom: 10px;
}

.rnd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rnd-tag {
  font-size: 10px;
  padding: 2px 8px;
}

.rnd-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
}

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

/* LinkedIn iframe fills the card naturally */
.rnd-card iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: none;
  /* height is set inline from data */
}

/* BTS video — clickable to fullscreen */
.bts-video-wrap {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.bts-video-thumb {
  width: 100%;
  display: block;
  border-radius: 0;
  border: none;
  opacity: 1;
  transform: none;
  cursor: pointer;
}

.bts-video-play-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}

.bts-video-wrap:hover .bts-video-play-hint {
  opacity: 1;
}

/* Phase 3 root-domain static pages */
.root-page {
  min-height: 100vh;
  padding: 0 0 72px;
  background: var(--bg);
  color: var(--text);
}

.root-shell-header {
  border-bottom: 1px solid var(--border);
  background: rgba(245, 245, 247, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.root-shell-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px clamp(18px, 4vw, 32px);
}

.root-shell-brand,
.root-top-links {
  display: inline-flex;
  align-items: center;
}

.root-shell-brand {
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.root-top-links {
  gap: 6px;
}

.root-top-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.root-top-link:hover,
.root-top-link[aria-current="page"] {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

.root-chip-bar {
  display: flex;
  justify-content: center;
  gap: 6px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px clamp(18px, 4vw, 32px) 34px;
  overflow-x: auto;
  scrollbar-width: none;
}

.root-chip-bar::-webkit-scrollbar {
  display: none;
}

.root-chip[aria-current="page"] {
  background: var(--text);
  color: var(--sidebar-bg);
  font-weight: 600;
}

.root-article,
.root-hero-text,
.root-featured-essay,
.root-list,
.root-gallery-grid,
.root-link-panels,
.root-error {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.root-article {
  max-width: 1120px;
}

.root-hero-text {
  margin-bottom: 42px;
  padding: 0 clamp(18px, 4vw, 32px);
}

.root-hero-text h1,
.root-error h1 {
  margin: 0;
  max-width: 920px;
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 82px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

.root-hero-text p,
.root-error p {
  max-width: 760px;
  margin-top: 22px;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.55;
}

.root-index-hero h1,
.root-gallery-hero h1 {
  font-family: var(--sans);
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 650;
  line-height: 1.05;
}

.root-essay-head {
  display: grid;
  gap: 2px;
}

.root-hero-media,
.root-video {
  max-width: 1120px;
  margin: 0 auto 34px;
  padding: 0 clamp(18px, 4vw, 32px);
}

.root-hero-media img,
.root-video video,
.root-video iframe {
  display: block;
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
  background: #111;
}

.root-video iframe {
  aspect-ratio: 16 / 9;
}

.root-artifact-frame {
  border-radius: var(--radius);
}

.root-artifact-frame img,
.root-artifact-frame video,
.root-artifact-frame iframe {
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 8px 30px rgba(0, 0, 0, 0.08);
}

.root-prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
}

.root-prose p,
.root-prose li {
  color: var(--text);
  font-size: 18px;
  line-height: 1.72;
}

.root-prose p {
  margin: 0 0 20px;
}

.root-prose h2 {
  margin: 42px 0 14px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
  font-family: var(--serif);
  font-weight: 500;
}

.root-media-grid,
.root-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 34px;
  padding: 0 clamp(18px, 4vw, 32px);
}

.root-featured-essay {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  margin-bottom: 42px;
  padding: 0 clamp(18px, 4vw, 32px);
}

.root-featured-media {
  display: block;
  margin: 0;
  overflow: hidden;
}

.root-featured-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border);
  transition: transform 0.22s ease, filter 0.22s ease;
}

.root-featured-media:hover img {
  filter: brightness(1.04);
  transform: scale(1.025);
}

.root-featured-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.08;
}

.root-featured-copy h2 + p {
  margin-top: 22px;
}

.root-featured-copy h2 a,
.root-list-card a,
.root-link-panels a {
  color: var(--text);
  text-decoration: none;
}

.root-featured-copy p {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
}

.root-archive-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.root-media-grid figure,
.root-gallery-item,
.root-list-card {
  margin: 0;
}

.root-media-grid img,
.root-list-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface-2);
}

.root-list-card {
  padding: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--elevated);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.root-list-card:hover {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14), 0 1px 4px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.root-gallery-grid {
  max-width: 1240px;
  padding: 0 clamp(12px, 3vw, 28px);
}

.root-gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-items: start;
  gap: 14px;
  columns: initial;
  margin-top: 34px;
}

.root-gallery-item {
  display: block;
  width: 100%;
  margin: 0;
}

.root-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 3px);
  background: var(--surface-2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.root-gallery-item figcaption {
  margin-top: 7px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.4;
}

.root-list-card a {
  display: grid;
  gap: 0;
}

.root-list-card-title,
.root-link-panels span {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;
}

.root-link-panels small {
  color: var(--text-3);
  font-size: 13px;
}

.root-link-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.root-link-panels a {
  min-height: 120px;
  align-content: end;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.root-error {
  padding: 12vh clamp(18px, 4vw, 32px) 0;
}

.root-policy {
  max-width: 900px;
}

.root-policy-card {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--elevated);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 8px 30px rgba(0, 0, 0, 0.05);
}

.root-prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--text-3);
  text-underline-offset: 3px;
  word-break: break-word;
}

.root-prose a:hover {
  text-decoration-color: var(--text);
}

.root-lightbox-link {
  display: block;
  cursor: zoom-in;
  border-radius: calc(var(--radius) - 3px);
  overflow: hidden;
}

.root-lightbox-link img {
  transition: filter 0.18s ease, transform 0.18s ease;
}

.root-lightbox-link:hover img {
  filter: brightness(1.06);
}

.root-lightbox-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.root-link-panels a {
  transition: border-color 0.18s ease, background 0.18s ease;
}

.root-link-panels a:hover {
  border-color: var(--text-3);
  background: var(--surface-2);
}

.root-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--text);
}

.root-enhanced .root-reveal,
.root-enhanced .root-list-card,
.root-enhanced .root-gallery-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.root-enhanced .root-reveal.is-visible,
.root-enhanced .root-list-card.is-visible,
.root-enhanced .root-gallery-item.is-visible {
  opacity: 1;
  transform: none;
}

/* Photography tabs */
.root-tabs {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
}

.root-tablist {
  display: flex;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin-top: 26px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--elevated);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.root-tablist [role="tab"] {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--text-3);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.root-tablist [role="tab"]:hover {
  color: var(--text);
}

.root-tablist [role="tab"][aria-selected="true"] {
  color: var(--sidebar-bg);
  background: var(--text);
}

.root-tablist [role="tab"] small {
  display: none;
}

.root-tablist [role="tab"]:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.root-tabs .root-gallery-grid {
  margin-top: 26px;
  padding-inline: 0;
}

.root-tabs [role="tabpanel"][hidden] {
  display: none !important;
}

/* Lightbox overlay */
.root-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 10, 0.92);
}

.root-lightbox[hidden] {
  display: none;
}

body.root-lightbox-open {
  overflow: hidden;
}

.root-lightbox figure {
  margin: 0;
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.root-lightbox img {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.root-lightbox figcaption {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-align: center;
}

.root-lightbox button {
  appearance: none;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease;
}

.root-lightbox button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.root-lightbox button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.root-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.root-lightbox-prev,
.root-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.root-lightbox-prev {
  left: 14px;
}

.root-lightbox-next {
  right: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .root-lightbox-link img,
  .root-link-panels a,
  .root-lightbox button {
    transition: none;
  }
}

@media (max-width: 700px) {
  .root-shell-inner {
    gap: 14px;
    padding: 14px 18px;
  }

  .root-shell-brand {
    gap: 10px;
  }

  .root-top-links {
    gap: 2px;
  }

  .root-top-link {
    padding-inline: 8px;
  }

  .root-chip-bar {
    justify-content: flex-start;
    padding: 10px 18px 30px;
    scroll-padding-inline: 18px;
  }

  .root-hero-text h1,
  .root-error h1,
  .root-index-hero h1,
  .root-gallery-hero h1 {
    font-size: clamp(40px, 13vw, 58px);
    line-height: 1.06;
  }

  .root-featured-essay {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .root-featured-media {
    order: -1;
  }

  .root-gallery-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .root-prose p,
  .root-prose li {
    font-size: 16px;
  }

  .root-lightbox-prev,
  .root-lightbox-next {
    top: auto;
    bottom: 16px;
    transform: none;
  }
}

/* Phase 3 craft pass: root-only archive/product surfaces */
.root-page {
  --root-sans: var(--sans);
  --root-serif: var(--serif);
  --root-ink: var(--text);
  --root-muted: var(--text-3);
  --root-hairline: rgba(29, 29, 31, 0.12);
  --root-paper: rgba(255, 255, 255, 0.72);
  --root-shadow: 0 1px 2px rgba(29, 29, 31, 0.06), 0 18px 48px rgba(29, 29, 31, 0.09);
  --root-gutter: clamp(20px, 4.5vw, 32px);
  --root-measure: 1120px;
  --root-wide: 1260px;
  --root-readable: 760px;
  overflow-x: clip;
  font-family: var(--root-sans);
}

.root-shell-inner,
.root-top-links,
.root-featured-copy,
.root-list-card,
.root-link-panels a,
.root-tablist [role="tab"] {
  min-width: 0;
}

.root-shell-header {
  background: rgba(245, 245, 247, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.root-shell-inner,
.root-chip-bar,
.root-article,
.root-hero-text,
.root-featured-essay,
.root-list,
.root-link-panels,
.root-error,
.root-tabs {
  width: min(calc(100% - (var(--root-gutter) * 2)), var(--root-measure));
  padding-inline: 0;
}

.root-chip-bar {
  align-items: center;
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.root-chip {
  white-space: nowrap;
}

.root-hero-text {
  padding-top: 14px;
  margin-inline: auto;
}

.root-hero-text h1,
.root-error h1 {
  max-width: 100%;
  font-family: var(--root-serif);
  font-size: clamp(44px, 6.1vw, 82px);
  line-height: 0.98;
  overflow-wrap: normal;
  text-wrap: balance;
}

.root-index-hero h1,
.root-gallery-hero h1 {
  font-family: var(--root-sans);
  font-size: clamp(44px, 5.2vw, 70px);
  font-weight: 760;
  letter-spacing: 0;
}

.root-hero-text p,
.root-error p {
  max-width: var(--root-readable);
  overflow-wrap: anywhere;
}

.root-hero-text h1 + p,
.root-error h1 + p {
  margin-top: clamp(22px, 2.4vw, 30px);
}

.root-featured-essay {
  position: relative;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(28px, 5vw, 60px);
  padding-block: 24px 28px;
}

.root-featured-essay:focus-visible {
  outline: 2px solid var(--root-ink);
  outline-offset: 10px;
  border-radius: var(--radius);
}

.root-featured-essay::before {
  content: "";
  position: absolute;
  left: clamp(18px, 4vw, 32px);
  right: clamp(18px, 4vw, 32px);
  top: 0;
  border-top: 1px solid var(--root-hairline);
}

.root-featured-media {
  border-radius: var(--radius);
}

.root-featured-media img,
.root-list-card img,
.root-gallery-item img {
  transform-origin: center;
}

.root-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-block: 10px;
}

.root-featured-copy p {
  overflow-wrap: anywhere;
}

.root-featured-meta {
  display: grid;
  gap: 3px;
  margin-top: 18px;
  color: var(--root-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.root-featured-meta span,
.root-byline span,
.root-byline time {
  display: block;
}

.root-featured-copy h2 {
  font-family: var(--root-serif);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.root-essay-head {
  width: min(calc(100% - (var(--root-gutter) * 2)), 980px);
  margin-bottom: 34px;
}

.root-essay-head h1 {
  max-width: 100%;
  font-size: clamp(50px, 6.4vw, 92px);
  line-height: 0.96;
  text-wrap: balance;
}

.root-essay-head > p {
  max-width: 760px;
}

.root-byline {
  display: grid;
  gap: 4px;
  margin-top: 22px;
  color: var(--root-muted);
  font-family: var(--root-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.root-essay .root-hero-media,
.root-essay .root-video {
  width: min(calc(100% - (var(--root-gutter) * 2)), var(--root-measure));
  padding-inline: 0;
  margin-bottom: 46px;
}

.root-essay .root-prose {
  width: min(calc(100% - (var(--root-gutter) * 2)), var(--root-readable));
  max-width: none;
  padding-inline: 0;
}

.root-essay .root-prose p,
.root-essay .root-prose li,
.root-essay .root-prose blockquote {
  font-family: var(--root-serif);
  font-size: 18px;
  line-height: 1.7;
}

.root-essay .root-prose h2 {
  margin-top: 48px;
  scroll-margin-top: 110px;
}

.root-essay-media-grid {
  width: min(calc(100% - (var(--root-gutter) * 2)), var(--root-measure));
  max-width: none;
  margin: 58px auto 0;
  padding-inline: 0;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.root-essay-media-grid figure {
  padding: 7px;
  border: 1px solid var(--root-hairline);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.66);
  box-shadow: 0 1px 0 rgba(255,255,255,0.92) inset, 0 10px 26px rgba(29,29,31,0.07);
}

.root-essay-media-grid img {
  aspect-ratio: auto;
  height: auto;
  border-radius: calc(var(--radius) - 5px);
  box-shadow: none;
}

.root-list {
  gap: clamp(22px, 2.2vw, 30px);
}

.root-archive-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.root-list-card {
  position: relative;
  min-width: 0;
  padding: 14px;
  border-color: var(--root-hairline);
  background: var(--root-paper);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 12px 28px rgba(29,29,31,0.07);
}

.root-list-card-link {
  display: grid;
  gap: 0;
  min-width: 0;
}

.root-list-card img {
  margin-bottom: 0;
}

.root-list-card-copy {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2.1vw, 26px) 3px 6px;
}

.root-list-card-title,
.root-link-panels span {
  overflow-wrap: anywhere;
}

.root-list-card-title {
  display: block;
  font-size: clamp(22px, 2.05vw, 28px);
  font-weight: 740;
  line-height: 1.12;
  letter-spacing: 0;
}

.root-list-card time {
  display: block;
  color: var(--root-muted);
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 560;
  line-height: 1.35;
}

.root-gallery-grid {
  width: min(calc(100% - (var(--root-gutter) * 2)), var(--root-wide));
  padding-inline: 0;
}

.root-gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  align-items: start;
  gap: 18px;
  columns: initial;
  column-gap: normal;
  margin-top: 40px;
}

.root-gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--root-hairline);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.66);
  box-shadow: 0 1px 0 rgba(255,255,255,0.92) inset, 0 10px 26px rgba(29,29,31,0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.root-gallery-item:hover,
.root-gallery-item:focus-within {
  border-color: rgba(29,29,31,0.24);
  box-shadow: 0 1px 0 rgba(255,255,255,0.92) inset, 0 18px 42px rgba(29,29,31,0.12);
  transform: translateY(-2px);
}

.root-gallery-item img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 5px);
  box-shadow: none;
}

.root-gallery-item figcaption {
  padding-inline: 2px;
}

.root-policy-card {
  position: relative;
  overflow: visible;
}

.root-policy .root-prose h2 {
  font-family: var(--root-sans);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 760;
  line-height: 1.14;
  letter-spacing: 0;
}

.root-policy .root-prose h2:first-child {
  margin-top: 0;
}

.root-link-panels a {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 116px;
  background: rgba(255,255,255,0.62);
  box-shadow: 0 1px 0 rgba(255,255,255,0.88) inset;
}

.root-link-panels a:focus-visible {
  outline: 2px solid var(--root-ink);
  outline-offset: 4px;
}

.root-link-panels small {
  display: block;
  overflow-wrap: anywhere;
}

.root-tablist {
  position: relative;
  isolation: isolate;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  padding: 7px;
  border-color: rgba(29,29,31,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.78));
  box-shadow:
    0 1px 0 rgba(255,255,255,0.92) inset,
    0 0 0 1px rgba(255,255,255,0.62) inset,
    0 12px 32px rgba(29,29,31,0.1);
}

.root-tablist::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(29,29,31,0.11),
    inset 0 1px 0 rgba(255,255,255,0.82);
}

.root-tab-indicator {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 0;
  width: 0;
  height: calc(100% - 14px);
  border-radius: 999px;
  background: var(--root-ink);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 8px 20px rgba(29,29,31,0.22);
  transition: transform 0.42s cubic-bezier(.22, 1, .36, 1), width 0.42s cubic-bezier(.22, 1, .36, 1);
  will-change: transform, width;
}

.root-tab-indicator.is-animating {
  transition: none;
}

.root-tablist [role="tab"] {
  position: relative;
  z-index: 1;
  justify-content: center;
  min-width: 112px;
  min-height: 42px;
  padding: 0 22px;
  line-height: 1;
  transition: color 0.18s ease, transform 0.18s ease;
}

.root-tablist [role="tab"][aria-selected="true"] {
  background: transparent;
}

.root-tablist [role="tab"]:active {
  transform: scale(0.98);
}

.root-tablist [role="tab"]:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px currentColor;
}

.root-tabs [role="tabpanel"] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.root-lightbox {
  background: rgba(8, 8, 10, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.root-lightbox img {
  box-shadow: 0 20px 80px rgba(0,0,0,0.38);
}

.root-lightbox button span {
  display: block;
}

.root-lightbox-close span {
  font-size: 26px;
  line-height: 1;
  transform: translateY(-1px);
}

.root-lightbox-chevron {
  width: 11px;
  height: 11px;
  border-block-start: 2px solid currentColor;
  border-inline-end: 2px solid currentColor;
}

.root-lightbox-prev .root-lightbox-chevron {
  transform: rotate(225deg);
}

.root-lightbox-next .root-lightbox-chevron {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .root-featured-media img,
  .root-gallery-item,
  .root-tablist [role="tab"],
  .root-tabs [role="tabpanel"] {
    transition: none;
  }

  .root-tab-indicator {
    transition: transform 0.22s ease-out, width 0.22s ease-out;
  }
}

@media (max-width: 900px) {
  .root-hero-text h1,
  .root-error h1 {
    font-size: 58px;
  }

  .root-index-hero h1,
  .root-gallery-hero h1 {
    font-size: 54px;
  }

  .root-featured-copy h2 {
    font-size: 42px;
  }
}

@media (max-width: 700px) {
  .root-page {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    --root-gutter: 20px;
  }

  .root-shell-inner {
    width: 100%;
  }

  .root-top-link {
    min-height: 34px;
  }

  .root-chip-bar {
    width: min(calc(100% - (var(--root-gutter) * 2)), var(--root-measure));
    max-width: none;
    flex-wrap: nowrap;
    justify-content: center;
    overflow: visible;
    mask-image: none;
    padding-inline: 0;
  }

  .root-chip {
    min-height: 32px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .root-hero-text {
    width: min(calc(100% - (var(--root-gutter) * 2)), var(--root-measure));
    max-width: none;
    padding-inline: 0;
  }

  .root-hero-text h1,
  .root-error h1,
  .root-index-hero h1,
  .root-gallery-hero h1 {
    max-width: 100%;
    font-size: clamp(36px, 11vw, 46px);
    line-height: 1.04;
    overflow-wrap: break-word;
  }

  .root-hero-text p,
  .root-error p {
    font-size: 17px;
    line-height: 1.5;
  }

  .root-featured-essay,
  .root-list,
  .root-gallery-grid,
  .root-tabs,
  .root-link-panels,
  .root-error {
    width: min(calc(100% - (var(--root-gutter) * 2)), var(--root-measure));
    max-width: none;
    padding-inline: 0;
  }

  .root-featured-essay {
    overflow: hidden;
    grid-template-columns: 1fr;
    padding-block: 18px 26px;
  }

  .root-featured-copy h2 {
    font-size: clamp(30px, 9.2vw, 36px);
  }

  .root-essay-head {
    width: min(calc(100% - (var(--root-gutter) * 2)), 980px);
    margin-bottom: 28px;
  }

  .root-essay-head h1 {
    font-size: clamp(40px, 12vw, 50px);
    line-height: 1.02;
  }

  .root-essay .root-hero-media,
  .root-essay .root-video,
  .root-essay .root-prose {
    width: min(calc(100% - (var(--root-gutter) * 2)), var(--root-readable));
    padding-inline: 0;
  }

  .root-essay .root-hero-media {
    margin-bottom: 36px;
  }

  .root-gallery-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
  }

  .root-tablist {
    width: 100%;
    max-width: 100%;
  }

  .root-tablist [role="tab"] {
    flex: 1 1 0;
    justify-content: center;
    padding-inline: 10px;
  }

  .root-policy-card {
    border-radius: var(--radius);
  }
}

@media (max-width: 430px) {
  .root-shell-brand .top-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .root-hero-text h1,
  .root-error h1,
  .root-index-hero h1,
  .root-gallery-hero h1 {
    font-size: clamp(34px, 10.5vw, 42px);
  }

  .root-gallery-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 340px) {
  .root-gallery-masonry {
    grid-template-columns: 1fr;
  }
}
