:root {
  --bg: #000000;
  --bg-elevated: #0c0c1a;
  --bg-soft: #141428;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.14);
  --accent-soft-strong: rgba(249, 115, 22, 0.26);
  --fg: #f9fafb;
  --fg-muted: #CECECE;
  --fg-subtle: #CECECE;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
  --radius-lg: 1.5rem;
  --radius-md: 0.875rem;
  --radius-pill: 999px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3rem;
  --space-10: 4rem;
  --max-width: 70rem;
  --page-max: 108rem; /* 1728px */
  --row-max: 103rem;  /* 1648px */
}

@media (max-width: 768px) {
  :root {
    --space-9: 2.5rem;
    --space-10: 3rem;
  }
}

/* Responsive breakpoints (max-width):
   - 1024px: optional layout tweaks
   - 768px: tablet; stacked project header, info rows; reduced root font
   - 640px: nav hidden (mobile menu could be added later)
   - 480px: small phone; smaller root font
   Fluid scaling: clamp(), rem, and % used so layout scales between breakpoints. */

/* Password protection */
.password-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 1.5rem;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.password-screen.is-unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.password-screen-inner {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.password-screen-label {
  margin: 0;
  color: #CECECE;
  font-family: "Articulat CF", "articulat-cf", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.password-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: "Articulat CF", "articulat-cf", system-ui, sans-serif;
  font-size: 1rem;
  color: #CECECE;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
}

.password-input::placeholder {
  color: #6b6b6b;
}

.password-input:focus {
  border-color: #ACD387;
}

.password-submit {
  padding: 0.75rem 1.25rem;
  font-family: "Articulat CF", "articulat-cf", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #000;
  background: #ACD387;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.password-submit:hover {
  background: #b8d994;
}

.password-error {
  margin: 0;
  color: #e57373;
  font-size: 0.875rem;
  text-align: center;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
}

html {
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

html,
body {
  padding: 0;
  margin: 0;
}

body {
  font-family: "articulat-cf", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: -0.05px;
  background: var(--bg);
  color: #CECECE;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
  cursor: url("assets/cursor-pointer.cur"), url("assets/cursor-pointer.svg") 10 5, pointer;
}

.page {
  min-height: 100vh;
  min-width: 0;
  display: flex;
  width: 100%;
  max-width: min(100vw, var(--page-max));
  padding: clamp(0.72rem, 1.8vw, 1.44rem) clamp(0.864rem, 2.88vw, 2.88rem) clamp(1.44rem, 2.88vw, 2.88rem) clamp(0.864rem, 2.304vw, 2.304rem);
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0 auto;
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: none;
  background: transparent;
  display: flex;
  width: 100%;
  min-width: 0;
  align-self: stretch;
}

.site-header-inner {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-self: stretch;
  mix-blend-mode: difference;
}

.header-intro {
  margin: 56px 0 clamp(3.2rem, 8vw, 6rem);
  color: #AAA;
  font-family: "Articulat CF", "articulat-cf", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 33px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.33px;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  box-sizing: border-box;
}

.header-intro-link {
  color: inherit;
  text-decoration: underline;
}

.header-intro-link:hover {
  color: #acd387;
}

@media (max-width: 768px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .brand {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    font-size: clamp(2.125rem, 16vw, 90px);
    overflow-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
  }
  body.is-scrolled .brand {
    font-size: clamp(1.25rem, 10vw, 50px);
  }
  .nav a {
    font-size: 1.875rem;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: clamp(2.125rem, 16vw, 90px);
  }
  body.is-scrolled .brand {
    font-size: clamp(1.25rem, 10vw, 50px);
  }
  .nav a {
    font-size: 1.75rem;
  }
  .header-intro {
    font-size: clamp(1.125rem, 5.5vw, 1.75rem);
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    border-radius: var(--radius-lg);
    padding-inline: var(--space-3);
  }
}

@media (max-width: 480px) {
  .site-header-inner {
    padding-inline: 0;
  }
}

.brand {
  color: #CECECE;
  leading-trim: both;
  text-edge: cap;
  font-family: "Articulat CF", "articulat-cf", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -3.6px;
  min-width: 0;
  filter: blur(0);
  transition: font-size 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
    letter-spacing 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
    filter 0.25s ease;
}

@media (min-width: 769px) {
  .brand {
    font-size: 120px;
    white-space: nowrap;
  }
}

.brand:hover {
  filter: blur(3px);
}

@media (min-width: 769px) {
  body.is-scrolled .brand {
    font-size: 75px;
    letter-spacing: -2.25px;
  }
}

body.is-scrolled .nav {
  align-items: flex-start;
  padding-top: 0;
}

body.is-scrolled .nav a {
  padding-top: 0;
}

.brand-mark {
  display: none;
}

.brand-text {
  display: none;
}

.nav {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.nav a {
  color: #CECECE;
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  font-family: "articulat-cf", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.72px;
  leading-trim: both;
  text-edge: cap;
  filter: blur(0);
  transition: filter 0.25s ease, color 0.25s ease;
}

.nav a::after {
  content: "";
  width: 0;
  height: 0;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  width: 0;
}

.nav a:hover {
  color: #acd387;
  filter: blur(3px);
}

.nav a.nav-active {
  color: #acd387;
}

.nav a.nav-link-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* Hide Work/Info on Misc when in locked mode; show when full mode */
.nav-link-full {
  display: none !important;
}
body.mode-full .nav-link-full {
  display: revert !important;
}

.page-main {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-9);
  padding-bottom: 2.88rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
  gap: var(--space-8);
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: var(--bg-elevated);
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.9);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.4fr);
    padding: var(--space-6);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: var(--space-5);
    border-radius: 20px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #CECECE;
}

.hero h1 {
  font-size: clamp(2.4rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0;
}

.hero-body {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 36rem;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 140ms ease-out,
    color 140ms ease-out,
    border-color 140ms ease-out,
    box-shadow 140ms ease-out,
    transform 100ms ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #ec4899);
  color: #020617;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.8);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.9);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.7);
  color: #CECECE;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.95);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  margin-top: var(--space-4);
}

@media (max-width: 720px) {
  .hero-meta {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-meta-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.hero-meta-value {
  font-size: 13px;
  color: #CECECE;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 960px) {
  .hero-visual {
    justify-content: flex-start;
  }
}

.hero-card {
  width: 100%;
  max-width: 320px;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: var(--bg-soft);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.95);
}

.hero-avatar {
  width: 84px;
  height: 84px;
  border-radius: 28px;
  background: var(--accent);
  border: 2px solid rgba(248, 250, 252, 0.8);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-highlight {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-highlight-number {
  font-size: 32px;
  font-weight: 700;
}

.hero-highlight-label {
  font-size: 12px;
  color: var(--fg-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
}

.pill.accent {
  background: var(--accent-soft-strong);
  color: #fed7aa;
  border: 1px solid rgba(248, 250, 252, 0.12);
}

.pill.subtle {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: #CECECE;
}

.section {
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 768px) {
  .section {
    padding: 0;
  }
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.section-header h2 {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  margin: 0;
}

.section-body {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Info page */
.info-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
}

/* Misc. playground page */
.misc-page {
  display: block;
  width: 100%;
  min-height: 0;
}

.misc-playground {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.misc-playground .misc-paper {
  pointer-events: auto;
}

.misc-paper {
  position: absolute;
  left: 0;
  top: 0;
  width: 374px;
  height: 374px;
  cursor: grab;
  overflow: hidden;
  opacity: 0;
  transform-origin: 50% 50%;
  transition: opacity 0.5s ease;
  contain: layout style paint;
}

.misc-paper-dragging {
  /* No will-change here to avoid layer promotion jump on mousedown */
}

.misc-paper.is-visible {
  opacity: 1;
}

.misc-paper:active {
  cursor: grabbing;
}


.misc-paper img,
.misc-paper video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 768px) {
  .misc-paper {
    width: 300px;
    height: 300px;
  }
}

/* Switch at bottom center */
.misc-view-switch-wrap {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: auto;
}

.misc-view-switch {
  display: inline-flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.misc-view-switch-option {
  appearance: none;
  background: transparent;
  border: none;
  font-family: "articulat-cf", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  color: #CECECE;
  cursor: pointer;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.misc-view-switch-option:hover {
  color: #fff;
}

.misc-view-switch-option[aria-pressed="true"] {
  background: #acd387;
  color: #0d0d0d;
}

/* Lightbox (gallery mode) */
.misc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

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

.misc-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  border: none;
  cursor: pointer;
  padding: 0;
}

.misc-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.misc-lightbox-content > * {
  pointer-events: auto;
}

.misc-lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.9;
}

.misc-lightbox-close:hover {
  opacity: 1;
}

.misc-lightbox-media {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.misc-lightbox-media img,
.misc-lightbox-media video {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.misc-lightbox-media video {
  background: #000;
}

/* Mosaic gallery view */
.misc-gallery {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: auto;
  padding: 1rem;
  box-sizing: border-box;
}

body.misc-gallery-view .misc-playground {
  visibility: hidden;
  pointer-events: none;
}

body.misc-gallery-view .misc-gallery {
  display: block;
  column-count: 5;
  column-gap: 4px;
  column-width: 168px;
  padding-top: 6rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
}

.misc-gallery-item {
  break-inside: avoid;
  margin-bottom: 4px;
  overflow: hidden;
  background: var(--bg, #0d0d0d);
  cursor: pointer;
  display: block;
}

.misc-gallery-item img,
.misc-gallery-item video {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  object-fit: cover;
}

.misc-gallery-item video {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 768px) {
  body.misc-gallery-view .misc-gallery {
    column-count: 3;
    column-width: 120px;
    column-gap: 4px;
  }
}

.info-intro {
  color: #CECECE;
  font-family: "articulat-cf", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.99px;
  margin: 0 0 3rem;
  max-width: 45rem;
}

.info-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: clamp(2rem, 18vw, 17.9375rem);
  align-self: stretch;
  padding-top: 2rem;
  margin-top: clamp(4rem, 10vw, 7.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.info-row-heading {
  flex-shrink: 0;
  width: clamp(8rem, 15vw, 12.5rem);
}

.info-row-heading {
  color: #CECECE;
  font-family: "articulat-cf", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.99px;
  margin: 0;
}

.info-row-content {
  flex: 1;
  min-width: 0;
  color: #CECECE;
  font-family: "articulat-cf", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.99px;
  margin: 0;
}

.info-row-content.info-list {
  display: flex;
  width: 100%;
  max-width: 24.26rem;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.9375rem);
}

.info-row-content.info-list p {
  margin: 0;
}

.info-jobs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-job {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.info-job-company,
.info-job-title,
.info-job-dates {
  display: block;
  color: #CECECE;
  font-family: "articulat-cf", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.99px;
}

.info-link {
  color: #CECECE;
  font-family: "articulat-cf", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.99px;
  text-decoration: underline;
}

.info-link:hover {
  color: #acd387;
}

a.brand {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 768px) {
  .info-row {
    flex-direction: column;
    gap: var(--space-4);
  }

  .info-row-heading {
    width: 100%;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

@media (max-width: 960px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: var(--bg-elevated);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.card-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.6;
}

.card-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--fg-subtle);
}

.card-meta-list li {
  position: relative;
  padding-left: 10px;
}

.card-meta-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(156, 163, 175, 0.9);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.card-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 13px;
  color: #bfdbfe;
  text-decoration: none;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(96, 165, 250, 0.5);
}

.card-link:hover {
  background: rgba(15, 23, 42, 1);
}

.projects-section {
  padding-top: 0;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: clamp(6rem, 15vw, 15rem);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.project-row {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(100%, var(--row-max));
  padding-top: 2rem;
  align-items: flex-start;
  gap: clamp(3rem, 6vw, 4.5rem);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  overflow: visible;
  min-width: 0;
  box-sizing: border-box;
}

.project-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: flex-start;
  gap: clamp(2rem, 5vw, 5rem);
  width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .project-header {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
}

.project-name {
  min-width: 0;
}

.project-title {
  color: #AAA;
  font-family: "Articulat CF", "articulat-cf", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 36px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -1.08px;
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.project-details {
  display: contents;
  min-width: 0;
}

.project-role,
.project-contributions,
.project-about {
  display: flex;
  width: 491px;
  max-width: 100%;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .project-role,
  .project-contributions,
  .project-about {
    width: 100%;
  }
}

.project-detail-heading {
  margin: 0;
  color: #AAA;
  font-family: "Articulat CF", "articulat-cf", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}

.project-detail-value {
  margin: 0;
  color: #F7F7F7;
  font-family: "Articulat CF", "articulat-cf", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: -0.05px;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  min-width: 0;
}

.project-about-text {
  margin: 0;
  color: #F7F7F7;
  font-family: "Articulat CF", "articulat-cf", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: -0.05px;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  min-width: 0;
}

.project-media {
  width: calc(100% + 50vw);
  min-height: clamp(18rem, 45vw, 31.887rem);
  margin-right: -50vw;
  max-width: none;
  border-radius: var(--radius-lg);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
  -webkit-user-select: none;
}

.project-media::-webkit-scrollbar {
  display: none;
}

.project-media:active {
  cursor: grabbing;
}

.project-media-track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1.25rem;
  padding-right: 50vw;
  min-width: min-content;
  height: 100%;
  box-sizing: border-box;
}

.project-media-track img,
.project-media-track video {
  height: clamp(18rem, 45vw, 31.887rem);
  width: auto;
  min-width: clamp(12rem, 30vw, 21rem);
  flex-shrink: 0;
  display: block;
  border-radius: 1rem;
  pointer-events: none;
  object-fit: cover;
  background: var(--bg);
}


/* On mobile, show a peek of the second image so it’s clear you can swipe */
@media (max-width: 768px) {
  .project-media-track img:first-child {
    max-width: 72%;
  }
}

@media (max-width: 480px) {
  .project-media-track img:first-child {
    max-width: 68%;
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

@media (max-width: 960px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .skills-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.skill-column h3 {
  margin: 0 0 var(--space-2);
  font-size: 1rem;
}

.skill-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--fg-muted);
}

.section-contact {
  background: var(--bg-elevated);
}

.contact-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.contact-body p {
  margin: 0;
  max-width: 32rem;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
}

.site-footer {
  margin-top: auto;
  padding-top: var(--space-4);
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4) 0 var(--space-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 12px;
  color: var(--fg-subtle);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--fg-subtle);
  text-decoration: none;
}

.footer-links a:hover {
  color: #CECECE;
}

@media (max-width: 640px) {
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Loosen letter-spacing at smaller sizes; line-height slightly above default so copy doesn’t feel tight */
@media (max-width: 768px) {
  body {
    letter-spacing: 0.04em;
    line-height: 1.4;
  }
  .nav a {
    letter-spacing: 0.02em;
  }
  .project-title {
    letter-spacing: -0.8px;
    line-height: 1.1;
  }
  .project-detail-value,
  .project-about-text {
    letter-spacing: 0.04em;
    line-height: 1.4;
  }
  .brand {
    letter-spacing: -2.8px;
  }
  body.is-scrolled .brand {
    letter-spacing: -1.8px;
  }
  .info-intro,
  .info-row-heading,
  .info-row-content,
  .info-link,
  .info-job-company,
  .info-job-title,
  .info-job-dates {
    letter-spacing: 0;
    line-height: 1.35;
  }
}

@media (max-width: 480px) {
  body {
    letter-spacing: 0.05em;
    line-height: 1.42;
  }
  .nav a {
    letter-spacing: 0.03em;
  }
  .project-title {
    letter-spacing: -0.4px;
    line-height: 1.12;
  }
  .project-detail-value,
  .project-about-text {
    letter-spacing: 0.05em;
    line-height: 1.42;
  }
  .brand {
    letter-spacing: -2.2px;
  }
  body.is-scrolled .brand {
    letter-spacing: -1.4px;
  }
  .info-intro,
  .info-row-heading,
  .info-row-content,
  .info-link,
  .info-job-company,
  .info-job-title,
  .info-job-dates {
    letter-spacing: 0.02em;
    line-height: 1.38;
  }
}

/* Scroll-in animation: elements fade and move up slightly when they enter view */
.scroll-in {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-in.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-in.is-visible { opacity: 1; }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(251, 191, 36, 0.95);
  outline-offset: 3px;
}
