/* ===========================================================
   Mo Hamouda — Portfolio
   Editorial + motion · inspired by nithinmwarrier.com
   =========================================================== */

:root {
  --brand: #FAEB74;
  --brand-dark: #F0DE4D;
  --blue: #5eb3ff;
  --cream: #f3efe7;
  --ink: #0a0a0a;
  --dark: #161616;
  --text-soft: #5c5c5c;
  --border: #ddd9d0;
  --grid-line: rgba(10, 10, 10, 0.05);

  --font-hero: "Briller Black", "Briller-Black", "Archivo Black", var(--font-display), sans-serif;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-meta: "Archivo", var(--font-body);

  --container: 1180px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --splash: cubic-bezier(0.34, 1.56, 0.64, 1);
  --hero-role-shift: clamp(36px, 5.5vw, 88px);
  --hero-loc-shift: clamp(36px, 5.5vw, 88px);
}

@font-face {
  font-family: "Briller Black";
  src:
    local("Briller Black"),
    local("Briller-Black"),
    url("fonts/briller-black.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Briller-Black";
  src: url("fonts/briller-black.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 300;
}
.skip-link:focus { left: 0; }

.dotgrid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* ============ HERO ============ */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cream);
}
.hero__gridlines {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 58px 58px;
  transition: transform 0.5s var(--ease);
}
.hero__signature {
  position: absolute;
  top: clamp(48px, 12vh, 120px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(140px, 18vw, 200px);
}
.hero__signature svg { width: 100%; height: auto; display: block; }
.sig-path {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: sigDraw 2s var(--ease) 0.3s forwards;
}
@keyframes sigDraw { to { stroke-dashoffset: 0; } }

.hero__inner,
.hero__stack {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 0 clamp(12px, 2.5vw, 40px);
  text-align: center;
}

.hero__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero__name {
  width: 100%;
  font-family: var(--font-hero);
  font-weight: 400;
  font-synthesis: none;
}

/* Reference layout: line — role — name — location — line */
.hero__name-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero__row {
  display: grid;
  grid-template-columns: 1fr auto auto auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 100%;
  gap: clamp(14px, 2vw, 28px);
  padding: 0 clamp(16px, 3vw, 48px);
  box-sizing: border-box;
}

.hero__meta-line {
  width: 100%;
  height: 1px;
  background: rgba(10, 10, 10, 0.22);
  min-width: 0;
  transform: scaleX(0);
}

.hero__meta-line--left {
  transform-origin: left center;
  animation: heroLineIn 1.1s var(--ease) 0.42s both;
}

.hero__meta-line--right {
  transform-origin: right center;
  animation: heroLineIn 1.1s var(--ease) 0.42s both;
}

.hero__meta-text {
  flex-shrink: 0;
  font-family: var(--font-meta);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0;
}

.hero__meta-text--role {
  animation: heroMetaIn 0.85s var(--ease) 0.58s both, heroRoleSlide 0.85s var(--ease) 0.58s both;
}

.hero__meta-text--loc {
  animation: heroMetaIn 0.85s var(--ease) 0.78s both, heroLocSlide 0.85s var(--ease) 0.78s both;
}

.hero__name-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(4px, 0.8vh, 10px);
}

.hero__name-line {
  overflow: visible;
  padding: 0;
  line-height: 0.82;
  max-width: 100%;
}

.hero__name-line--top {
  overflow: visible;
}

.hero__name-line--bottom {
  position: relative;
  z-index: 1;
}

.hero__name-line,
.hero__word,
.hero__char {
  font-family: var(--font-hero);
  font-weight: 400;
  font-synthesis: none;
}

.hero__word {
  display: inline-flex;
  letter-spacing: 0.02em;
  line-height: 0.9;
  text-transform: uppercase;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.hero__name-line--top .hero__word {
  font-size: clamp(2rem, 6.2vw, 4.5rem);
}
.hero__name-line--bottom .hero__word {
  font-size: clamp(1.75rem, 5.5vw, 4.1rem);
}

.hero__char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 44px, 0) scale(0.86) rotate(6deg);
  filter: blur(6px);
  animation:
    heroCharIn 1.05s var(--splash) forwards,
    heroCharBreath 4s var(--splash) infinite;
  animation-delay:
    calc(0.06s + var(--i, 0) * 0.085s),
    calc(4s + var(--i, 0) * 0.07s);
}

@keyframes heroCharIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 44px, 0) scale(0.86) rotate(6deg);
    filter: blur(6px);
  }
  65% {
    opacity: 1;
    transform: translate3d(0, -6px, 0) scale(1.06) rotate(-2deg);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0);
    filter: blur(0);
  }
}

@keyframes heroCharBreath {
  0%, 24%, 100% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0);
  }
  5% {
    transform: translate3d(0, 8px, 0) scale(0.97) rotate(2.5deg);
  }
  11% {
    transform: translate3d(0, -2px, 0) scale(1.015) rotate(-0.8deg);
  }
  17% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0);
  }
}

@keyframes heroLineIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes heroMetaIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroRoleSlide {
  from { transform: translateX(-44px); }
  to { transform: translateX(0); }
}

@keyframes heroLocSlide {
  from { transform: translateX(44px); }
  to { transform: translateX(0); }
}

@keyframes heroScrollIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.hero__scroll {
  position: absolute;
  bottom: clamp(90px, 14vh, 130px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  opacity: 0;
  animation: heroScrollIn 0.9s var(--ease) 1.3s both;
}

/* ============ CURTAIN (rises over hero) ============ */
.curtain {
  position: relative;
  z-index: 2;
  min-height: clamp(560px, 86svh, 820px);
  background: var(--brand);
  overflow: hidden;
  padding: clamp(48px, 8vh, 76px) clamp(24px, 5vw, 72px) clamp(96px, 13vh, 132px);
  box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.12);
  -webkit-clip-path: url(#curtain-top);
  clip-path: url(#curtain-top);
}
.curtain__inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.72fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.curtain__about {
  max-width: 34rem;
}
.curtain__eyebrow {
  margin: 0 0 clamp(14px, 2vh, 20px);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.46);
}
.curtain__headline {
  margin: 0 0 clamp(16px, 2.5vh, 22px);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.curtain__lead {
  margin: 0 0 14px;
  font-size: clamp(0.95rem, 1.35vw, 1.08rem);
  line-height: 1.55;
  color: rgba(10, 10, 10, 0.72);
  font-weight: 500;
}
.curtain__body {
  margin: 0 0 clamp(22px, 3vh, 30px);
  font-size: clamp(0.88rem, 1.15vw, 0.98rem);
  line-height: 1.62;
  color: rgba(10, 10, 10, 0.58);
  max-width: 38ch;
}
.curtain__proof {
  margin: clamp(18px, 2.5vh, 24px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.52);
  white-space: nowrap;
}
@media (max-width: 820px) {
  .curtain__proof {
    white-space: normal;
    line-height: 1.55;
    letter-spacing: 0.04em;
  }
}
.curtain__decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.curtain__crop,
.curtain__mark,
.curtain__arc,
.curtain__stamp {
  opacity: 0;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.curtain.is-active .curtain__crop,
.curtain.is-active .curtain__mark,
.curtain.is-active .curtain__arc,
.curtain.is-active .curtain__stamp {
  opacity: 1;
  transform: none;
}

.curtain__crop {
  position: absolute;
  width: 20px;
  height: 20px;
}
.curtain__crop--tl {
  top: clamp(52px, 11vh, 92px);
  left: clamp(24px, 6vw, 96px);
  border-top: 1.5px solid rgba(10, 10, 10, 0.26);
  border-left: 1.5px solid rgba(10, 10, 10, 0.26);
  transform: translate(-4px, -4px);
}
.curtain__crop--tr {
  top: clamp(52px, 11vh, 92px);
  right: clamp(24px, 6vw, 96px);
  border-top: 1.5px solid rgba(10, 10, 10, 0.26);
  border-right: 1.5px solid rgba(10, 10, 10, 0.26);
  transform: translate(4px, -4px);
}
.curtain__crop--bl {
  bottom: clamp(96px, 17vh, 148px);
  left: clamp(24px, 6vw, 96px);
  border-bottom: 1.5px solid rgba(10, 10, 10, 0.22);
  border-left: 1.5px solid rgba(10, 10, 10, 0.22);
  transform: translate(-4px, 4px);
}
.curtain__crop--br {
  bottom: clamp(96px, 17vh, 148px);
  right: clamp(24px, 6vw, 96px);
  border-bottom: 1.5px solid rgba(10, 10, 10, 0.22);
  border-right: 1.5px solid rgba(10, 10, 10, 0.22);
  transform: translate(4px, 4px);
}

.curtain__mark {
  position: absolute;
  width: clamp(72px, 9vw, 110px);
  height: auto;
}
.curtain__mark--tl {
  top: clamp(72px, 12vh, 120px);
  left: clamp(20px, 4vw, 48px);
  transform: translateY(8px);
}
.curtain__mark--br {
  bottom: clamp(108px, 16vh, 156px);
  right: clamp(20px, 4vw, 48px);
  transform: translateY(-8px);
}

.curtain__arc {
  position: absolute;
  top: clamp(56px, 10vh, 96px);
  left: 50%;
  width: min(880px, 92%);
  transform: translateX(-50%) translateY(6px);
}
.curtain.is-active .curtain__arc {
  transform: translateX(-50%) translateY(0);
}

.curtain__stamp {
  position: absolute;
  top: clamp(88px, 14vh, 140px);
  right: clamp(28px, 5vw, 64px);
  width: auto;
  min-width: clamp(54px, 6vw, 68px);
  height: clamp(28px, 4vw, 34px);
  padding: 0 10px;
  border: 1.5px solid rgba(10, 10, 10, 0.22);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.54rem, 0.78vw, 0.62rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: rgba(10, 10, 10, 0.32);
  transform: rotate(-14deg) scale(0.92);
  transition-delay: 0.12s;
}
.curtain.is-active .curtain__stamp {
  transform: rotate(-14deg) scale(1);
}

.curtain__figure {
  position: relative;
  z-index: 2;
  width: 100%;
  height: clamp(300px, 46vh, 440px);
  margin: 0;
  justify-self: end;
  max-width: 380px;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 1s var(--ease), opacity 1s var(--ease);
}
.curtain.is-active .curtain__figure {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.08s;
}
.curtain__scribble {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 112%;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.8s var(--ease) 0.2s;
}
.curtain.is-active .curtain__scribble { opacity: 1; }
.curtain__photo {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--cream);
  border-radius: 260px 260px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.curtain__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.08);
  transform-origin: center 40%;
  display: block;
}
.curtain__photo-img[hidden] + .curtain__photo-placeholder,
.curtain__photo:not(:has(.curtain__photo-img:not([hidden]))) .curtain__photo-placeholder {
  display: block;
}
.curtain__photo:has(.curtain__photo-img:not([hidden])) .curtain__photo-placeholder {
  display: none;
}
.curtain__photo-placeholder {
  position: relative;
  z-index: 1;
  width: 88%;
  height: auto;
  margin-bottom: 0;
}
.curtain__pills {
  position: absolute;
  z-index: 3;
  bottom: clamp(28px, 5vh, 48px);
  left: clamp(24px, 5vw, 72px);
  right: clamp(24px, 5vw, 72px);
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  pointer-events: none;
}
.chip {
  display: inline-flex;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  font-weight: 500;
  white-space: nowrap;
  will-change: transform;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.chip--dark { background: var(--ink); color: #fff; }
.curtain.is-active .chip { opacity: 1; }
.curtain.is-active .chip:nth-child(2) { transition-delay: 0.1s; }
.curtain.is-active .chip:nth-child(3) { transition-delay: 0.2s; }

/* ============ DARK STATEMENT ============ */
.statement {
  position: relative;
  z-index: 2;
  background: var(--dark);
  color: #fff;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(52px, 8vh, 72px) 28px;
  overflow: hidden;
}
.statement::before,
.statement::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.statement::before { left: 8%; }
.statement::after { right: 8%; }
.statement__stage {
  position: relative;
  z-index: 2;
  width: min(100%, 640px);
  padding: 0 clamp(48px, 9vw, 80px);
}
.statement__copy {
  position: relative;
  z-index: 2;
  text-align: center;
}
.statement__text-wrap {
  position: relative;
  padding: 0 clamp(40px, 7vw, 64px);
}
.statement__text {
  max-width: 15ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.65rem, 4.2vw, 3.2rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}
.statement__proof {
  margin: clamp(14px, 2.5vh, 20px) 0 0;
  font-size: clamp(0.72rem, 1.1vw, 0.86rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.statement__word {
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.35s var(--ease);
}
.statement__word.is-lit {
  color: #fff;
}
.statement__hl {
  font-weight: 800;
  color: inherit;
}

.statement__objects {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.statement__tool {
  position: absolute;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}
.statement__tool--figma {
  top: 8%;
  left: -2%;
  width: clamp(24px, 2.6vw, 32px);
  animation: statementFloat 5.2s ease-in-out infinite;
}
.statement__tool--framer {
  top: 46%;
  left: 2%;
  width: clamp(22px, 2.4vw, 28px);
  animation: statementFloat 5.8s ease-in-out infinite 0.3s;
}
.statement__tool--react {
  top: 82%;
  left: -2%;
  width: clamp(24px, 2.6vw, 30px);
  animation: statementFloat 6.4s ease-in-out infinite 0.15s;
}
.statement__tool--cursor {
  top: 6%;
  right: -2%;
  width: clamp(26px, 2.8vw, 32px);
  animation: statementFloat 6.1s ease-in-out infinite 0.45s;
  --r: 6deg;
}
.statement__tool--notion {
  top: 44%;
  right: 2%;
  width: clamp(24px, 2.6vw, 30px);
  animation: statementFloat 5.5s ease-in-out infinite 0.55s;
  --r: -4deg;
}
.statement__tool--linear {
  top: 80%;
  right: -2%;
  width: clamp(22px, 2.4vw, 28px);
  animation: statementFloat 6.8s ease-in-out infinite 0.25s;
}
@keyframes statementFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--r, 0deg)); }
}
@keyframes statementFloatCenter {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* ============ WORK ============ */
.work {
  position: relative;
  z-index: 2;
  background: var(--cream);
  padding: clamp(80px, 12vw, 140px) 0;
}
.work::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  opacity: 0.45;
}
.work > .container {
  position: relative;
  z-index: 1;
}
.block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 60px;
}
.block-head--work {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: clamp(40px, 6vw, 56px);
}
.block-eyebrow {
  margin: 0;
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.block-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.block-title--single {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.block-tagline {
  margin: 0;
  max-width: 48ch;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.5;
  color: rgba(10, 10, 10, 0.55);
  font-weight: 500;
}
.block-sub {
  max-width: 42ch;
  color: var(--text-soft);
  font-size: 1.05rem;
}
.projects { list-style: none; }
.project {
  border-top: 1px solid var(--border);
}
.project:last-child { border-bottom: 1px solid var(--border); }
.project[data-accent="violet"] { --project-bg: linear-gradient(135deg, #2a1f4e 0%, #4f3d8f 48%, #1a1230 100%); }
.project[data-accent="coral"] { --project-bg: linear-gradient(135deg, #3d1414 0%, #c44b2d 52%, #2a1010 100%); }
.project[data-accent="teal"] { --project-bg: linear-gradient(135deg, #0f2a2a 0%, #1a6b62 50%, #0a1818 100%); }

.project__head-link {
  display: block;
  padding: clamp(22px, 3vw, 30px) 8px;
  transition: padding 0.35s var(--ease);
}
.project:hover .project__head-link { padding-left: 20px; padding-right: 20px; }

.project__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
}
.project__index {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  padding-top: 0.35em;
}
.project__info { min-width: 0; }
.project__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
}
.project__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 3.6vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.project__cats {
  margin: 0;
  font-size: clamp(0.72rem, 0.95vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.project__pitch {
  margin: clamp(10px, 1.5vw, 14px) 0 0;
  max-width: 52ch;
  font-size: clamp(0.92rem, 1.15vw, 1rem);
  line-height: 1.55;
  color: rgba(10, 10, 10, 0.58);
}
.project__involvement {
  margin: 10px 0 0;
  font-size: clamp(0.72rem, 0.95vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.72);
}
.project__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
  text-align: right;
}
.project__cta {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(10, 10, 10, 0.16);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s ease, color 0.3s ease;
}
.project__media {
  height: 0;
  overflow: hidden;
  margin: 0 clamp(12px, 3vw, 28px);
  max-width: min(840px, 100%);
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(14px);
  transition:
    height 0.55s var(--ease),
    margin 0.55s var(--ease),
    opacity 0.4s var(--ease),
    transform 0.55s var(--ease);
}
.project__preview-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 0;
  box-shadow:
    0 1px 2px rgba(10, 10, 10, 0.04),
    0 16px 44px rgba(10, 10, 10, 0.1);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.project:hover .project__preview-shell,
.project:focus-within .project__preview-shell {
  box-shadow:
    0 2px 6px rgba(10, 10, 10, 0.06),
    0 24px 56px rgba(10, 10, 10, 0.14);
}
.project__preview-link {
  display: block;
  position: relative;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.project__preview-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 0;
}
.project__preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
  overscroll-behavior: contain;
  container-type: inline-size;
  border-radius: 0;
}
.project__preview iframe {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  height: 900px;
  border: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(calc(100cqw / 1440px));
  transform-origin: top center;
  background: #fff;
}
.project:hover .project__preview iframe,
.project:focus-within .project__preview iframe {
  pointer-events: auto;
}
.project__preview-open {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(10, 10, 10, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease;
}
.project__preview-link:hover .project__preview-open {
  transform: translateY(-1px);
  background: var(--brand);
  border-color: var(--brand);
}

.project__head-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 8px;
}
.project:hover .project__media,
.project:focus-within .project__media {
  height: clamp(220px, 32vw, 360px);
  margin-top: 16px;
  margin-bottom: clamp(36px, 5vw, 52px);
  opacity: 1;
  transform: translateY(0);
}
.project:hover .project__cta,
.project:focus-within .project__cta {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
  transform: translateY(-2px);
}
.project:hover .project__index,
.project:focus-within .project__index {
  color: var(--ink);
}

/* ============ CONTACT ============ */
.contact {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: clamp(72px, 11vw, 120px) 0 clamp(48px, 8vw, 72px);
}
.contact__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact__eyebrow {
  text-transform: lowercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
  font-size: 0.88rem;
}
.contact__headline {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.contact__headline-accent { color: var(--brand); }
.contact__lead {
  max-width: 38ch;
  margin: 0 0 24px;
  font-size: clamp(0.92rem, 1.15vw, 1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
}
.contact__form {
  width: min(100%, 360px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  position: relative;
}
.contact__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.contact__submit:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}
.contact__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contact__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: rgba(250, 235, 116, 0.55);
  background: rgba(255, 255, 255, 0.08);
}
.contact__form textarea {
  resize: vertical;
  min-height: 72px;
}
.contact__submit {
  align-self: flex-start;
  margin-top: 2px;
  padding: 12px 22px;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease;
}
.contact__submit:hover {
  transform: translateY(-1px);
  background: var(--brand-dark);
}
.contact__status {
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}
.contact__status.is-success {
  color: #5ce06a;
}
.contact__status.is-error {
  color: #ff8a80;
}
.contact__status.is-pending {
  color: rgba(255, 255, 255, 0.55);
}
.contact__note {
  margin: 18px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.38);
}

/* ============ SITE FOOTER ============ */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0 calc(22px + env(safe-area-inset-bottom, 0px));
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.site-footer__identity {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.9);
}
.site-footer__loc {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}
.site-footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.site-footer__nav a {
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.48);
  transition: color 0.2s ease;
}
.site-footer__nav a:hover { color: var(--brand); }
.site-footer__sep {
  color: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  line-height: 1;
  user-select: none;
}
.site-footer__copy {
  margin: 0;
  text-align: right;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.26);
}

/* ============ FLOATING DOCK NAV ============ */
.dock {
  position: fixed;
  left: 50%;
  top: max(20px, env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dock__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #fff;
  border-radius: 26px;
  padding: 0 40px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 8px;
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease), padding 0.45s var(--ease);
}
.dock.is-open .dock__panel {
  max-height: 260px;
  opacity: 1;
  padding: 26px 44px 30px;
}
.dock__panel a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}
.dock__panel a:hover { color: var(--brand); }
.dock__toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--brand);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  min-height: 44px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s var(--ease);
}
.dock__toggle:hover { transform: translateY(-2px); }
.dock__icon {
  position: relative;
  width: 18px;
  height: 12px;
}
.dock__icon span {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}
.dock__icon span:nth-child(1) { top: 3px; }
.dock__icon span:nth-child(2) { top: 9px; }
.dock.is-open .dock__icon span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.dock.is-open .dock__icon span:nth-child(2) { top: 6px; transform: rotate(-45deg); }

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

/* ============ Responsive ============ */
@media (max-width: 820px) {
  .hero__row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
  }

  .hero__meta-line--left,
  .hero__meta-line--right {
    display: none;
  }

  .hero__meta-text {
    font-size: 0.9rem;
  }

  .hero__name-line--top .hero__word { font-size: clamp(1.8rem, 11vw, 2.8rem); }
  .hero__name-line--bottom .hero__word { font-size: clamp(1.55rem, 9vw, 2.5rem); }

  .curtain {
    padding-bottom: clamp(120px, 18vh, 160px);
  }
  .curtain__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .curtain__figure {
    order: -1;
    max-width: min(320px, 78vw);
    height: clamp(280px, 42vh, 360px);
    justify-self: center;
  }
  .curtain__about {
    max-width: none;
    text-align: center;
  }
  .curtain__body {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  .curtain__pills {
    flex-direction: column;
    align-items: center;
    bottom: clamp(20px, 4vh, 32px);
    left: 24px;
    right: 24px;
    gap: 10px;
  }
  .curtain__arc { width: 96%; top: 48px; }
  .curtain__stamp { top: 92px; right: 24px; min-width: 0; height: auto; padding: 0 8px; font-size: 0.5rem; }
  .curtain__mark--tl { top: 72px; left: 22px; width: 64px; }
  .curtain__mark--br { bottom: 118px; right: 22px; width: 64px; }
  .curtain__crop--bl,
  .curtain__crop--br { bottom: 100px; }
  .statement::before, .statement::after { display: none; }
  .statement__stage { padding: 0 28px; }
  .statement__text-wrap { padding: 0 36px; }
  .statement__tool--figma { left: -4%; top: 4%; }
  .statement__tool--framer { left: 0; top: 42%; }
  .statement__tool--react { left: -4%; top: 78%; }
  .statement__tool--cursor { right: -4%; top: 2%; }
  .statement__tool--notion { right: 0; top: 40%; }
  .statement__tool--linear { right: -4%; top: 76%; }

  .block-head { flex-direction: column; align-items: flex-start; }
  .project__head {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .project__index { grid-row: 1; grid-column: 1; }
  .project__info { grid-row: 1 / 3; grid-column: 2; }
  .project__aside {
    grid-row: 2;
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
  }
  .project__title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
  }
  .site-footer__identity {
    align-items: center;
  }
  .site-footer__copy {
    text-align: center;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact__headline {
    font-size: clamp(1.65rem, 8vw, 2.4rem);
  }

  .contact__form {
    width: 100%;
  }

  .contact__submit {
    align-self: stretch;
    text-align: center;
  }

  .project__media,
  .project.is-touch .project__media {
    height: clamp(200px, 56vw, 280px);
    margin-top: 12px;
    margin-bottom: 28px;
    opacity: 1;
    transform: none;
  }

  .project__preview iframe,
  .project.is-touch .project__preview iframe {
    pointer-events: auto;
  }

  .project__head-link {
    -webkit-tap-highlight-color: transparent;
  }

  .dock__panel a {
    font-size: 1.15rem;
    padding: 6px 0;
  }
}

@media (hover: none) and (pointer: coarse) {
  .project__media {
    height: clamp(200px, 56vw, 280px);
    margin-top: 12px;
    margin-bottom: 28px;
    opacity: 1;
    transform: none;
  }

  .project__preview iframe {
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__char,
  .hero__meta-text,
  .hero__meta-line,
  .hero__scroll,
  .hero__name-stack {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    scale: 1 !important;
    text-shadow: none !important;
  }
  .hero__meta-line { transform: scaleX(1) !important; }
  .hero__name-stack {
    transform: none !important;
  }
  .hero__scroll { transform: translateX(-50%) !important; }
  .statement__tool { animation: none !important; }
  .statement__word { color: #fff !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .curtain__photo, .curtain__figure, .curtain__scribble, .chip { opacity: 1; transform: none; }
  .curtain__line, .curtain__cluster, .curtain__note,
  .curtain__crop, .curtain__mark, .curtain__arc, .curtain__stamp {
    opacity: 1; transform: none; transition: none;
  }
  .curtain__stamp { transform: rotate(-14deg); }
}
