/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0d0d0d;
  --text: #ffffff;
  --text-dim: rgba(255,255,255,0.5);
  --border: rgba(255,255,255,0.08);
  --accent: #c8a96e;
  --spacing: 0.18em;
  --max-w: 1100px;
  --font: 'Space Mono', 'Courier New', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: var(--spacing);
  -webkit-font-smoothing: antialiased;
  padding: 0 40px;
}

@media (max-width: 980px) {
  body { padding: 0 20px; }
}

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ===========================
   NAV
=========================== */
.nav {
  position: relative;
  padding: 0;
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  animation: fadeIn 0.6s ease both;
}

.nav__logo img {
  display: block;
  height: 52px;
  width: auto;
  transition: opacity 0.2s;
}
.nav__logo:hover img {
  opacity: 0.6;
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__link {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s;
}

.nav__link:hover,
.nav__link--active {
  opacity: 1;
  color: var(--accent);
}

.nav__link--active::after,
.nav__link:hover::after {
  width: 100%;
}

/* ===========================
   HERO (SHOWREEL)
=========================== */
.hero {
  margin: 0 -40px;
  display: block;
  padding-bottom: 0;
  animation: fadeIn 0.8s ease both;
}

.hero__video-wrap {
  position: relative;
  width: 100%;
  background: #111;
  aspect-ratio: 16 / 9;
  max-height: 92vh;
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}


.hero__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  width: 60px;
  height: 60px;
  transition: transform 0.2s, opacity 0.2s;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s, transform 0.2s;
}

.hero__video-wrap:hover .hero__play-btn {
  opacity: 1;
}

.hero__play-btn svg {
  width: 100%;
  height: 100%;
}

.hero__play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

.hero__controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 4;
}

.hero__video-wrap:hover .hero__controls {
  opacity: 1;
}

.hero__progress-wrap {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  border-radius: 2px;
  overflow: hidden;
}

.hero__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

.hero__time {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  white-space: nowrap;
  min-width: 60px;
}

.hero__ctrl-btns {
  display: flex;
  gap: 8px;
}

.hero__ctrl-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  width: 18px;
  height: 18px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.hero__ctrl-btn:hover {
  opacity: 1;
}

.hero__ctrl-btn svg {
  width: 100%;
  height: 100%;
}

/* ===========================
   ABOUT
=========================== */
.about {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 52px 0 52px;
  gap: 40px;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.about__name {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 18px;
}

.about__subtitle {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.about__slash {
  color: var(--accent);
}

.about__tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.tool-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.tool-icon:hover {
  opacity: 1;
}

.tool-icon--invert {
  filter: invert(1);
}

.about__bio {
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.9;
  max-width: 480px;
  color: var(--text-dim);
}

.about__right {
  flex-shrink: 0;
  padding-top: 8px;
}

.about__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 14px 28px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  transition: border-color 0.3s, color 0.3s;
  white-space: nowrap;
  font-weight: 400;
}

.about__cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

/* ===========================
   PORTFOLIO GRID
=========================== */
.grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-bottom: 80px;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.grid__item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.grid__thumb {
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.grid__item:hover .grid__thumb {
  transform: scale(1.06);
}

.grid__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: background 0.4s;
}

.grid__item:hover .grid__overlay {
  background: rgba(0,0,0,0.6);
}

.grid__title {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s;
}

.grid__item:hover .grid__title {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   PORTFOLIO PAGE (portfolio.html)
=========================== */
.page-header {
  padding: 60px 0 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  animation: fadeUp 0.8s ease 0.1s both;
}

.page-header__label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.page-header__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.portfolio-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-bottom: 80px;
  animation: fadeUp 0.8s ease 0.3s both;
}

/* ===========================
   PROJECT DETAIL PAGE
=========================== */
.project {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 0 80px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.project__back {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  transition: color 0.2s;
}

.project__back:hover {
  color: var(--accent);
}

.project__label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.project__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.project__meta {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
  display: flex;
  gap: 24px;
}

.project__hero-media {
  width: 100%;
  aspect-ratio: 16/9;
  background: #1a1a1a;
  margin-bottom: 24px;
  overflow: hidden;
}

.project__hero-media img,
.project__hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project__desc {
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.9;
  max-width: 520px;
  margin-bottom: 40px;
  color: var(--text-dim);
}

.project__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-bottom: 60px;
}

.project__gallery-item {
  aspect-ratio: 1/1;
  background: #1a1a1a;
  overflow: hidden;
}

.project__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.project__gallery-item:hover img {
  transform: scale(1.04);
}

.project__gallery--full {
  grid-template-columns: 1fr;
  margin-bottom: 24px;
}

.project__gallery-item--wide {
  aspect-ratio: auto;
}

.project__section-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.project__reels {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.project__reel-item {
  flex: 0 0 27%;
  aspect-ratio: 9 / 16;
  background: #1a1a1a;
  overflow: hidden;
}

.project__reel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project__nav {
  display: flex;
  justify-content: space-between;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.project__nav-link {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}

.project__nav-link:hover {
  color: var(--accent);
}

/* ===========================
   SPLIT LAYOUT (project-1)
=========================== */
.split-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding-bottom: 60px;
}

.split-layout__video {
  flex: 0 0 36%;
  aspect-ratio: 9 / 16;
  background: #1a1a1a;
  overflow: hidden;
}

.split-layout__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-layout__info {
  flex: 1;
  padding-top: 2px;
}

.split-layout__label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.split-layout__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.split-layout__meta {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
}

.split-layout__desc {
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.9;
  color: var(--text-dim);
}

.breakdown-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 0 80px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.breakdown-section__label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  align-self: flex-start;
}

.breakdown-section__video {
  width: 38%;
  aspect-ratio: 9 / 16;
  background: #1a1a1a;
  overflow: hidden;
}

.breakdown-section__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===========================
   CONTACT PAGE
=========================== */
.contact {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 0 80px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.contact__header {
  margin-bottom: 56px;
}

.contact__label {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.contact__title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 20px;
}

.contact__intro {
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.9;
  color: var(--text-dim);
  max-width: 480px;
}

.contact__body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__field-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact__input {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s;
  width: 100%;
  -webkit-appearance: none;
}

.contact__input::placeholder {
  color: rgba(255,255,255,0.2);
}

.contact__input:focus {
  border-color: var(--accent);
}

.contact__textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.7;
}

.contact__submit {
  align-self: flex-start;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 32px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}

.contact__submit:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Direct links sidebar */
.contact__links {
  padding-top: 4px;
}

.contact__links-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact__item-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact__link {
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.contact__link:hover {
  color: var(--accent);
}

@media (max-width: 760px) {
  .contact__body {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact__title { font-size: 32px; }
  .contact__row { grid-template-columns: 1fr; }
}

/* ===========================
   FOOTER
=========================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 50px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer__detail {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  line-height: 2;
  text-transform: none;
}

.footer__detail a {
  transition: color 0.2s;
}
.footer__detail a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer__heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__text {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  line-height: 2;
}

.footer__social {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__social a {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer__social a:hover {
  color: var(--accent);
}

.footer__wrap {
  padding: 0 0 40px;
}

/* ===========================
   PORSCHE 911 (project-3)
=========================== */
/* TOP COVER: full-bleed banner, natural video proportions */
.p3-cover {
  position: relative;
  margin: 0 -40px;
  background: #111;
  line-height: 0;
}

.p3-cover__video {
  width: 100%;
  height: auto;
  display: block;
}

.p3-cover__overlay {
  position: absolute;
  bottom: 64px;
  left: 64px;
  z-index: 2;
}

.p3-cover__eyebrow {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  animation: fadeUp 0.8s ease 0.2s both;
}

.p3-cover__title {
  font-size: 80px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.95;
  text-shadow: 0 4px 60px rgba(0,0,0,0.6);
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* MAIN COMP: hero video below cover */
.p3-main-video {
  margin: 0 -40px;
  background: #000;
  line-height: 0;
}

.p3-main-video video {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.p3-back {
  position: absolute;
  top: 28px;
  left: 64px;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  z-index: 2;
  transition: color 0.2s;
  animation: fadeIn 0.6s ease 0.1s both;
}

.p3-back:hover {
  color: var(--accent);
}

/* Full-bleed emblem image */
.p3-feature-img {
  margin: 0 -40px;
  overflow: hidden;
  background: #111;
}

.p3-feature-img img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 80vh;
}

/* Split: text + image */
.p3-split {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.p3-split__meta {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.p3-split__body {
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.9;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.p3-split__body--credit {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 11px;
}

.p3-split__visual {
  overflow: hidden;
}

.p3-split__visual img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.p3-split__visual:hover img {
  transform: scale(1.03);
}

/* Section label */
.p3-label {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

/* Video sections */
.p3-video-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.p3-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.p3-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Renders */
.p3-renders {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 0 0;
}

.p3-renders__grid {
  width: 100%;
  background: #111;
  overflow: hidden;
  margin-bottom: 4px;
}

.p3-renders__grid video {
  width: 100%;
  display: block;
}

.p3-renders__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 64px;
}

.p3-renders__img {
  overflow: hidden;
  background: #111;
  aspect-ratio: 1 / 1;
}

.p3-renders__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.p3-renders__img:hover img {
  transform: scale(1.04);
}

.p3-nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 28px;
  color: rgba(255,255,255,0.6);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  font-family: var(--font);
}

.lightbox__close:hover {
  color: #fff;
}

[data-lightbox] {
  cursor: zoom-in;
}

@media (max-width: 980px) {
  .p3-cover__title   { font-size: 52px; }
  .p3-cover__overlay { left: 40px; bottom: 48px; }
  .p3-back           { left: 40px; }
}

@media (max-width: 640px) {
  .p3-cover__title   { font-size: 36px; line-height: 1; }
  .p3-cover__overlay { left: 24px; bottom: 40px; }
  .p3-back           { left: 24px; }
  .p3-split        { grid-template-columns: 1fr; gap: 40px; padding: 48px 0; }
  .p3-renders__pair { grid-template-columns: 1fr; }
}

/* ===========================
   SHARED PROJECT PAGE (p4, p5)
=========================== */
.proj-cover {
  position: relative;
  margin: 0 -40px;
  background: #111;
  line-height: 0;
  overflow: hidden;
}

.proj-cover img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: cover;
  display: block;
}

.proj-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  pointer-events: none;
}

.proj-cover__overlay {
  position: absolute;
  bottom: 64px;
  left: 64px;
  z-index: 2;
}

.proj-cover__eyebrow {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  animation: fadeUp 0.8s ease 0.2s both;
}

.proj-cover__title {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.95;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.proj-back {
  position: absolute;
  top: 28px;
  left: 64px;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  z-index: 2;
  transition: color 0.2s;
  animation: fadeIn 0.6s ease 0.1s both;
}

.proj-back:hover { color: var(--accent); }

.proj-info {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.proj-info__meta {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.proj-info__body {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.proj-info__visual img {
  width: 100%;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.3s;
}

.proj-info__visual:hover img { opacity: 0.85; }

.proj-feature {
  margin: 0 -40px;
  line-height: 0;
  background: #111;
}

.proj-feature img {
  width: 100%;
  display: block;
  height: auto;
  cursor: zoom-in;
}

.proj-gallery {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 0;
}

.proj-gallery__label {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.proj-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.proj-gallery__item {
  overflow: hidden;
  background: #111;
  cursor: zoom-in;
}

.proj-gallery__item img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

.proj-gallery__item:hover img {
  transform: scale(1.04);
  opacity: 0.85;
}

.proj-nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}

@media (max-width: 980px) {
  .proj-cover__title   { font-size: 48px; }
  .proj-cover__overlay { left: 40px; bottom: 48px; }
  .proj-back           { left: 40px; }
  .proj-info           { grid-template-columns: 1fr; gap: 40px; padding: 48px 0; }
  .proj-gallery__grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .proj-cover__title   { font-size: 32px; line-height: 1; }
  .proj-cover__overlay { left: 24px; bottom: 32px; }
  .proj-back           { left: 24px; }
  .proj-gallery__grid  { grid-template-columns: 1fr; }
}

/* ===========================
   XTEND PROJECT (p4)
=========================== */
/* Hero: text-forward + 2x2 unit showcase */
.xt-hero__intro {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 52px 0 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.xt-hero__back {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  flex-shrink: 0;
  padding-bottom: 4px;
}
.xt-hero__back:hover { color: var(--accent); }

.xt-hero__title {
  font-size: 108px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 0.85;
  flex: 1;
  text-align: center;
}

.xt-hero__label {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
  text-align: right;
  padding-bottom: 4px;
  line-height: 1.8;
}

/* 2x2 grid: all 4 units on page load */
.xt-hero__showcase {
  margin: 0 -40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: #050505;
}

.xt-hero__showcase-item {
  overflow: hidden;
  background: #0a0a0a;
  position: relative;
  cursor: zoom-in;
}

.xt-hero__showcase-item img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}

.xt-hero__showcase-item:hover img {
  transform: scale(1.04);
  opacity: 0.8;
}

.xt-hero__showcase-label {
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  pointer-events: none;
  transition: color 0.3s;
}

.xt-hero__showcase-item:hover .xt-hero__showcase-label {
  color: var(--accent);
}

.xt-info {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.xt-info__meta {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.xt-info__body {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.xt-chapters {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: 40px;
}

.xt-chapter {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.xt-chapter__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.xt-chapter__label {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.xt-chapter__num {
  font-size: 140px;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.04);
  user-select: none;
  pointer-events: none;
}

.xt-chapter__hero {
  width: 100%;
  margin-bottom: 4px;
  cursor: zoom-in;
  overflow: hidden;
}

.xt-chapter__hero img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.xt-chapter__hero:hover img {
  transform: scale(1.025);
}

.xt-chapter__strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.xt-chapter__item {
  overflow: hidden;
  cursor: zoom-in;
}

.xt-chapter__item img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

.xt-chapter__item:hover img {
  transform: scale(1.05);
  opacity: 0.75;
}

.xt-nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}

@media (max-width: 980px) {
  .xt-hero__title        { font-size: 68px; }
  .xt-hero__intro        { padding: 40px 0 36px; }
}

@media (max-width: 640px) {
  .xt-hero__title        { font-size: 40px; }
  .xt-hero__intro        { flex-direction: column; align-items: flex-start; gap: 16px; }
  .xt-hero__label        { text-align: left; }
  .xt-hero__showcase     { grid-template-columns: 1fr; }
  .xt-chapter__strip     { grid-template-columns: 1fr; }
  .xt-chapter__num       { font-size: 80px; }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 980px) {
  .hero { margin: 0 -20px; }
  .about__name { font-size: 36px; }
}

@media (max-width: 640px) {
  :root { --max-w: 100%; }

  .nav__links { gap: 20px; }

  .about { flex-direction: column; gap: 16px; }
  .about__name { font-size: 28px; }
  .about__right { padding-top: 0; }

  .grid,
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  .project__gallery { grid-template-columns: 1fr; }
}
