:root {
  --bg: #06070b;
  --bg-soft: #0b0c12;
  --panel: rgba(14, 15, 23, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.032);
  --panel-border: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f7f2fb;
  --muted: rgba(245, 239, 249, 0.74);
  --muted-2: rgba(245, 239, 249, 0.46);
  --accent: #ff38bb;
  --accent-2: #9642ff;
  --accent-3: #ff8f54;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.4);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --container: 1520px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.overlay-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(38rem 30rem at 8% 0%, rgba(255, 87, 187, 0.11), transparent 56%),
    radial-gradient(34rem 26rem at 100% 0%, rgba(120, 70, 255, 0.1), transparent 54%),
    radial-gradient(32rem 28rem at 72% 100%, rgba(255, 133, 88, 0.08), transparent 58%),
    linear-gradient(180deg, #05060a 0%, #06070b 100%);
}

.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.8px) 0 0 / 42px 42px,
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.22) 100%);
  opacity: 0.34;
  mask-image: radial-gradient(circle at center, black 36%, transparent 92%);
}

.container {
  width: min(calc(100% - 56px), var(--container));
  margin: 0 auto;
}

.section {
  padding-top: 34px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(5, 6, 10, 0.74);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-name {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.brand-meta {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  transition: color 0.22s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
}

.site-nav a:hover::after,
.site-nav a.is-active::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.eyebrow.no-margin {
  margin: 0;
}

.section-head.compact,
.archive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spark {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #ff74d8;
  font-size: 0.9rem;
}

.hero {
  padding-top: 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: 24px;
  align-items: start;
}

.hero-copy {
  padding-top: 22px;
}

.hero h1 {
  margin: 0;
  max-width: 16.5ch;
  font-size: clamp(2.18rem, 3.05vw, 3.55rem);
  line-height: 1;
  letter-spacing: -0.075em;
}

.hero h1 span {
  color: var(--accent);
}

.hero-text {
  max-width: 42rem;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.62;
}

.hero-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  width: 100%;
  max-width: 100%;
}

.hero-chip-list li,
.project-pills span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.028);
}

.hero-chip-list li {
  padding: 9px 13px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(90deg, #7d3dff 0%, #b33fff 40%, #ff469f 72%, #ff7b60 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(232, 62, 172, 0.22);
}

.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  color: rgba(255, 255, 255, 0.92);
}

.resume-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  font-size: 1.2rem;
}

.resume-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.resume-copy strong {
  font-size: 1rem;
  font-weight: 600;
}

.resume-copy small {
  color: var(--muted-2);
  font-size: 0.9rem;
}

.glow-panel {
  background: linear-gradient(180deg, rgba(13, 14, 20, 0.96), rgba(9, 10, 16, 0.96));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border-radius: var(--radius-xl);
  width: 100%;
  border: 1px solid var(--panel-border);
  cursor: pointer;
  appearance: none;
  text-align: left;
}

.hero-slide {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  aspect-ratio: 16 / 10.4;
  border-radius: 20px;
  object-fit: cover;
  object-position: center center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-card::after {
  content: '';
  display: block;
  padding-top: calc(100% / (16 / 10.4));
}

.hero-card img {
  pointer-events: none;
}

.hero-card:focus-visible {
  outline: 2px solid rgba(255, 86, 197, 0.9);
  outline-offset: 4px;
}

.hero-progress {
  display: flex;
  gap: 9px;
  padding: 14px 6px 0;
}

.hero-progress span {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-progress span.active {
  width: 44px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

.project-grid-five {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  width: 100%;
  padding: 0;
  overflow: hidden;
  appearance: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(16, 17, 24, 0.92), rgba(10, 11, 17, 0.98));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(244, 96, 204, 0.35);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
}

.project-trigger:focus-visible {
  outline: 2px solid rgba(255, 86, 197, 0.9);
  outline-offset: 3px;
}

.card-image {
  aspect-ratio: 0.84;
  object-fit: cover;
}

.image-pos-top {
  object-position: center top;
}

.project-body {
  display: flex;
  flex-direction: column;
  min-height: 156px;
  padding: 14px 14px 15px;
}

.project-body h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.project-body p {
  min-height: 46px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.44;
}

.project-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.project-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-pills span {
  padding: 5px 9px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-footer b {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.14rem;
  line-height: 1;
}

.case-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.64fr);
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(14, 15, 21, 0.95), rgba(8, 9, 14, 0.98));
  box-shadow: var(--shadow);
}

.case-copy {
  padding: 10px 8px 8px;
}

.case-block + .case-block {
  margin-top: 22px;
}

.case-block h3 {
  margin: 0 0 10px;
  color: #ef7cff;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.case-block p,
.process-copy p,
.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.case-copy .case-block p {
  font-size: 0.92rem;
  line-height: 1.64;
}

.case-stage-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.case-stage-row::-webkit-scrollbar,
.archive-track::-webkit-scrollbar {
  display: none;
}

.case-stage-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(76, 23, 112, 0.64), rgba(16, 12, 28, 0.96));
}

.case-stage-card img {
  aspect-ratio: 0.58;
  object-fit: cover;
}

.case-stage-copy {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px 12px 15px;
}

.case-stage-copy h4 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.case-stage-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  line-height: 1.42;
}

.case-stage-copy ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-stage-copy li {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  line-height: 1.35;
}

.process-stack {
  display: grid;
  gap: 14px;
}

.process-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 20px;
}

.process-copy h3 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.process-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 168px;
  height: 116px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.process-media-mask::after {
  content: '';
  position: absolute;
  right: -1px;
  bottom: -1px;
  border-radius: 20px 0 16px 0;
  background:
    radial-gradient(circle at bottom right, rgba(6, 7, 11, 0.98) 0 52%, rgba(6, 7, 11, 0.92) 64%, transparent 100%);
  pointer-events: none;
}

.process-media-mask-idea::after {
  width: 56px;
  height: 44px;
}

.process-media-mask-system::after {
  width: 34px;
  height: 30px;
}

.process-media-mask-adapt::after {
  width: 54px;
  height: 40px;
}

.process-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.process-media-image-idea,
.process-media-image-system,
.process-media-image-adapt {
  transform: scale(1.08);
  transform-origin: left center;
}

.process-media-image-idea {
  object-position: 30% 50%;
}

.process-media-image-system {
  object-position: 38% 50%;
}

.process-media-image-adapt {
  object-position: 34% 50%;
}

.archive-head a {
  color: #ef8aff;
  font-weight: 600;
}

.archive-open-all {
  padding: 0;
  border: 0;
  background: transparent;
  color: #ef8aff;
  font-weight: 600;
  cursor: pointer;
}

.archive-rail {
  display: block;
}

.archive-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.archive-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.15;
  padding: 16px 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(24rem 16rem at 70% 84%, rgba(255, 150, 83, 0.09), transparent 72%),
    linear-gradient(180deg, rgba(18, 19, 27, 0.96), rgba(10, 11, 17, 0.98));
}

.archive-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0 1px, transparent 1.7px) 0 0 / 68px 68px;
  opacity: 0.38;
  pointer-events: none;
}

.archive-collage {
  position: relative;
  z-index: 1;
  height: 100%;
}

.archive-collage-item {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  margin: 0;
  transform: rotate(var(--r, 0deg));
  transform-origin: center;
}

.archive-collage-item img {
  width: 100%;
  aspect-ratio: var(--ratio, 1);
}

.archive-collage-frame img {
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
}

.archive-collage-object img {
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.28));
}

.contact {
  padding-bottom: 48px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px 30px;
  border-radius: 22px;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(32rem 24rem at 0% 0%, rgba(255, 255, 255, 0.08), transparent 58%),
    linear-gradient(90deg, rgba(87, 27, 128, 0.96) 0%, rgba(118, 37, 178, 0.95) 48%, rgba(167, 44, 123, 0.98) 100%);
}

.contact-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(2.05rem, 3vw, 3.05rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.contact-intro p {
  max-width: 40rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.contact-icon {
  font-size: 0.95rem;
}

.site-footer {
  padding: 0 0 26px;
  color: rgba(255, 255, 255, 0.46);
}

.footer-inner,
.footer-meta,
.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-inner {
  justify-content: space-between;
  padding-top: 2px;
}

.footer-meta span::after {
  content: '•';
  margin-left: 14px;
  color: rgba(255, 255, 255, 0.24);
}

.footer-meta span:last-child::after {
  content: none;
}

.footer-socials {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
  text-transform: lowercase;
}

.project-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.project-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 8, 0.76);
  backdrop-filter: blur(16px);
}

.project-overlay-dialog {
  position: relative;
  width: min(100%, 1600px);
  height: min(86vh, 900px);
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #09090d url('assets/project_background.png') center / cover no-repeat;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.project-overlay-dialog::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 4, 8, 0.16), rgba(3, 4, 8, 0.38));
  pointer-events: none;
}

.project-overlay-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.project-overlay-close span {
  position: absolute;
  top: 24px;
  left: 15px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.project-overlay-close span:first-child {
  transform: rotate(45deg);
}

.project-overlay-close span:last-child {
  transform: rotate(-45deg);
}

.project-overlay-grid {
  position: relative;
  height: 100%;
  padding: 38px 42px;
}

.overlay-card {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  margin: 0;
  transition: transform 0.2s ease;
}

.overlay-card img {
  width: 100%;
  aspect-ratio: var(--ratio, 0.82);
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.overlay-card figcaption {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overlay-card-object img {
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  box-shadow: none;
  filter: drop-shadow(0 22px 42px rgba(0, 0, 0, 0.34));
}

.project-overlay-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.project-overlay-copy-box {
  width: min(40rem, calc(100vw - 420px));
  text-align: left;
}

.project-overlay-copy.is-hidden {
  display: none;
}

.project-overlay-kicker {
  display: none;
}

.project-overlay-copy h2,
.project-overlay-copy p {
  width: 100%;
  font-size: clamp(1.14rem, 1.18vw, 1.44rem);
  line-height: 1.64;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
}

.project-overlay-copy h2 {
  margin: 0;
  font-weight: 800;
  color: #fff;
}

.project-overlay-copy p {
  margin: 14px 0 0;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.84);
}

.reveal,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

@media (max-width: 1420px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  }
}

@media (max-width: 1180px) {
  .hero-grid,
  .case-shell,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 20px;
  }

  .hero h1 {
    max-width: none;
  }

  .contact-card {
    align-items: flex-start;
  }

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

  .case-stage-row {
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .project-overlay-copy-box {
    width: min(34rem, calc(100vw - 220px));
  }
}

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-overlay-copy-box {
    width: min(30rem, calc(100vw - 140px));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 9, 14, 0.98);
  }

  .site-nav.is-open {
    display: flex;
  }

  .brand-name {
    font-size: 1.38rem;
  }

  .brand-meta {
    max-width: 14rem;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 11vw, 4.2rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .resume-link {
    justify-content: flex-start;
  }

  .project-grid-five {
    grid-template-columns: 1fr;
  }

  .case-stage-row {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .case-stage-card img {
    aspect-ratio: 1.18;
  }

  .project-body {
    min-height: 0;
  }

  .project-body p {
    min-height: 0;
  }

  .process-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .process-media {
    width: 100%;
    height: 148px;
  }

  .archive-track {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 24px 22px;
  }

  .contact-link,
  .contact-actions > .btn {
    width: 100%;
    justify-content: center;
  }

  .project-overlay {
    padding: 10px;
  }

  .project-overlay-dialog {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 92vh;
    overflow-y: auto;
  }

  .project-overlay-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    height: auto;
    padding: 12px 16px 18px;
  }

  .overlay-card {
    position: static;
    width: 100%;
    transform: none !important;
  }

  .overlay-card img {
    aspect-ratio: 0.78;
  }

  .project-overlay-copy {
    order: -1;
    position: static;
    padding: 82px 18px 8px;
    transform: none;
  }

  .project-overlay-copy-box {
    width: auto;
  }

  .project-overlay-copy h2,
  .project-overlay-copy p {
    text-align: left;
    text-align-last: left;
    font-size: 1rem;
    line-height: 1.62;
  }
}

@media (max-width: 380px) {
  .header-inner {
    min-height: 80px;
    gap: 14px;
  }

  .brand-name {
    font-size: 1.24rem;
  }

  .brand-meta {
    max-width: 11rem;
    font-size: 0.68rem;
    line-height: 1.28;
    letter-spacing: 0.03em;
  }
}
