/* 777 Creative Studio — site styles */
:root {
  --bg: #050505;
  --bg-elevated: #0d0d0d;
  --ink: #f2efe8;
  --ink-muted: rgba(242, 239, 232, 0.62);
  --red: #e10600;
  --red-hot: #ff1a12;
  --cream: #f2efe8;
  --line: rgba(242, 239, 232, 0.14);
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-ui: "Syne", system-ui, sans-serif;
  --header-h: 4.5rem;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1440px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 500;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.85rem var(--pad);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 5, 5, 0.9);
}

.site-header--home {
  position: fixed;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
}

.site-header--home.is-scrolled {
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  line-height: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.logo img {
  display: block;
  height: clamp(1.55rem, 3.2vw, 2.05rem);
  width: auto;
  max-width: min(190px, 46vw);
}

.logo:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.nav-desktop {
  display: none;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.nav-link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.82;
  transition: opacity 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.is-active { opacity: 1; color: var(--cream); }

.header-cta { justify-self: end; }

.nav-toggle {
  justify-self: end;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-content: center;
  gap: 7px;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(5, 5, 5, 0.97);
  display: grid;
  place-items: center;
  padding: var(--pad);
  animation: fadeIn 0.35s var(--ease);
}

.nav-mobile[hidden] {
  display: none !important;
}

.nav-mobile nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.nav-mobile__mark {
  width: 56px;
  height: auto;
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 12vw, 4.5rem);
  letter-spacing: 0.04em;
  line-height: 1;
}

.nav-mobile .btn { font-family: var(--font-ui); font-size: 0.9rem; margin-top: 1rem; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}

.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.72rem; }
.btn--lg { padding: 1rem 1.75rem; font-size: 0.85rem; }

.btn--ghost {
  border: 1px solid rgba(242, 239, 232, 0.55);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(242, 239, 232, 0.06);
  transform: translateY(-1px);
}

.btn--solid {
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
}
.btn--solid:hover {
  background: var(--red-hot);
  box-shadow: 0 0 28px rgba(225, 6, 0, 0.35);
  transform: translateY(-1px);
}

.btn--light {
  background: var(--cream);
  color: #0a0a0a;
  border: 1px solid var(--cream);
}
.btn--light:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.btn--light .play {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #0a0a0a;
  display: grid;
  place-items: center;
}
.btn--light .play::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff;
  margin-left: 2px;
}

/* Type */
.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.eyebrow--red { color: var(--red); }

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.9;
  text-transform: uppercase;
}

.display--hero {
  font-size: clamp(3.6rem, 11vw, 7.5rem);
}

.display--work {
  font-size: clamp(3.2rem, 12vw, 7rem);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.display--cta {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  flex: 1;
}

.display .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  text-stroke: 2px var(--red);
}

.display .red { color: var(--red); }

.lede {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ink-muted);
  max-width: 28ch;
}

/* Home hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img,
.hero__media video,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
  background: #050505;
}

.hero__video {
  pointer-events: none;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,5,0.88) 0%, rgba(5,5,5,0.55) 42%, rgba(5,5,5,0.18) 70%, rgba(5,5,5,0.55) 100%),
    linear-gradient(180deg, rgba(5,5,5,0.55) 0%, transparent 28%, transparent 68%, rgba(5,5,5,0.92) 100%);
  z-index: 1;
}

.hero__glow {
  position: absolute;
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  right: 8%;
  top: 42%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225,6,0,0.35) 0%, rgba(225,6,0,0.08) 45%, transparent 70%);
  filter: blur(8px);
  z-index: 1;
  animation: pulse 4.5s ease-in-out infinite;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding: calc(var(--header-h) + 1.5rem) var(--pad) 5.5rem;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.hero__copy {
  max-width: 16ch;
  animation: riseIn 0.9s var(--ease) both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.75rem;
  animation: riseIn 1s 0.12s var(--ease) both;
}

.hero__services {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero__side {
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  z-index: 2;
  display: none;
}

.hero__scroll {
  position: absolute;
  right: var(--pad);
  bottom: 5.75rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  animation: riseIn 1.1s 0.2s var(--ease) both;
}

.hero__scroll span {
  width: 1px;
  height: 2.25rem;
  background: linear-gradient(to bottom, var(--ink-muted), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

.hero__selected {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--pad);
  background: var(--cream);
  color: #0a0a0a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.25s;
}

.hero__selected:hover { background: #fff; }
.hero__selected .arrow { transition: transform 0.25s var(--ease); }
.hero__selected:hover .arrow { transform: translateX(4px); }

@media (min-width: 768px) {
  .hero__content {
    justify-content: center;
    padding-bottom: 6.5rem;
  }
  .hero__side { display: block; }
  .hero__media img,
  .hero__media video,
  .hero__video { object-position: center center; }
}

@media (min-width: 1100px) {
  .hero__copy { max-width: 14ch; }
  .display--hero { font-size: clamp(5rem, 8.5vw, 8rem); }
}

/* Work page */
.page-shell {
  padding: calc(var(--header-h) + 1.5rem) var(--pad) 4rem;
  max-width: min(var(--max), 100%);
  margin: 0 auto;
  overflow-x: clip;
  min-width: 0;
}

.work-hero {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
  min-width: 0;
  max-width: 100%;
}

.work-hero__top {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.work-hero__sub {
  margin: 0;
  max-width: 22ch;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.filters-row {
  min-width: 0;
  max-width: 100%;
}

.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.35rem;
}
.filters::-webkit-scrollbar { display: none; }

@media (min-width: 700px) {
  .filters {
    flex-wrap: wrap;
    overflow: visible;
  }
}

.filter-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.filter-chip:hover {
  color: var(--ink);
  border-color: rgba(242, 239, 232, 0.4);
}

.filter-chip.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.work-note {
  margin: 0.75rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (min-width: 900px) {
  .work-hero__top {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
  .filters {
    flex: 1;
    min-width: 0;
  }
  .work-note {
    margin: 0;
    flex: 0 1 auto;
    text-align: right;
    max-width: 28ch;
  }
}

/* Project grid */
.project-grid {
  display: grid;
  gap: 2.5rem;
}

.project-card {
  display: grid;
  gap: 1rem;
  animation: riseIn 0.7s var(--ease) both;
}

.project-card__media {
  position: relative;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 10;
  border-radius: 2px;
}

.project-card--full .project-card__media {
  aspect-ratio: 21 / 9;
  min-height: clamp(220px, 42vw, 520px);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s;
}

.project-card:hover .project-card__media img {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.project-card__index {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.project-card__play {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.85);
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.2);
  transition: transform 0.25s var(--ease), background 0.25s;
}

.project-card__play::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

.project-card:hover .project-card__play {
  transform: scale(1.06);
  background: var(--red);
  border-color: var(--red);
}

.project-card__meta {
  display: grid;
  gap: 0.35rem;
}

.project-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.02em;
  line-height: 1;
}

.project-card__label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (min-width: 800px) {
  .project-grid--mixed {
    grid-template-columns: 1fr 1fr;
  }
  .project-card--full {
    grid-column: 1 / -1;
  }
  .project-card__meta {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 1rem;
  }
  .project-card__label { text-align: right; }
}

/* Project detail */
.project-page__hero {
  position: relative;
  min-height: clamp(280px, 52vw, 620px);
  overflow: hidden;
  background: #0a0a0a;
}

.project-page__hero img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.project-page__hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0.35) 0%, transparent 40%, rgba(5,5,5,0.85) 100%);
  pointer-events: none;
}

.project-page__shell {
  padding-top: 1.75rem;
}

.project-page__back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.project-page__back:hover { color: var(--ink); }

.project-page__header { margin-bottom: 2.5rem; }

.project-page__title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  max-width: 16ch;
}

.project-page__subtitle {
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--ink-muted);
  max-width: 36ch;
}

.project-page__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.project-page__facts dt {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.project-page__facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

.project-page__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 2.5rem;
  background: #111;
  border-radius: 2px;
  overflow: hidden;
}

.project-page__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-page__video-link { margin-bottom: 2rem; }

.project-page__body {
  max-width: 62ch;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: rgba(242, 239, 232, 0.88);
  margin-bottom: 3.5rem;
}

.project-page__body--empty { color: var(--ink-muted); }

.project-page__nav {
  display: grid;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.project-page__nav-item {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 0;
  min-width: 0;
}

.project-page__nav-item span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.project-page__nav-item strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.project-page__nav-item:hover strong { color: var(--red); }

@media (min-width: 800px) {
  .project-page__nav {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .project-page__nav-item--next { text-align: right; }
}

/* Services / Studio / Contact */
.page-intro {
  max-width: 18ch;
  margin-bottom: 3rem;
}

.page-intro .display {
  font-size: clamp(3.2rem, 9vw, 6rem);
}

.services-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  gap: 0.75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease), color 0.25s;
}

.service-row:hover { padding-left: 0.75rem; }

.service-row__num {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--red);
  font-weight: 700;
}

.service-row h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.03em;
  line-height: 1;
}

.service-row p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 48ch;
}

@media (min-width: 800px) {
  .service-row {
    grid-template-columns: 4rem 1fr 1.2fr;
    align-items: start;
    gap: 2rem;
  }
}

.studio-layout {
  display: grid;
  gap: 2.5rem;
}

.studio-copy {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.55;
  max-width: 34ch;
  white-space: pre-line;
}

.studio-brand {
  display: grid;
  gap: 2rem;
  justify-items: start;
}

.studio-brand > img {
  width: clamp(120px, 22vw, 180px);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(225, 6, 0, 0.18));
}

.studio-facts {
  display: grid;
  gap: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  width: 100%;
}

.studio-facts div {
  display: grid;
  gap: 0.25rem;
}

.studio-facts dt {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.studio-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.03em;
}

@media (min-width: 900px) {
  .studio-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 3rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.field { display: grid; gap: 0.4rem; }

.field label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus { border-bottom-color: var(--red); }

.field textarea { min-height: 140px; resize: vertical; }

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .contact-layout {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
  }
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.alert--ok { background: rgba(40, 160, 90, 0.15); border: 1px solid rgba(40,160,90,0.4); }
.alert--err { background: rgba(225,6,0,0.12); border: 1px solid rgba(225,6,0,0.4); }

/* CTA + footer */
.cta-band {
  padding: 4rem var(--pad) 3rem;
  border-top: 1px solid var(--line);
}

.cta-band__inner { max-width: var(--max); margin: 0 auto; }

.cta-band__mark {
  width: 48px;
  height: auto;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.cta-band__row {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .cta-band__row {
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }
}

.site-footer {
  padding: 0 var(--pad) 1.5rem;
}

.site-footer__brand {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  border-top: 1px solid var(--line);
}

.site-footer__brand .brand-mark {
  width: clamp(52px, 10vw, 72px);
  height: auto;
  opacity: 0.95;
}

.site-footer__brand p {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.site-footer__bar {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.site-footer__top {
  transition: color 0.2s;
}

.site-footer__top:hover { color: var(--ink); }

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.newsletter-form input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0;
  min-width: min(220px, 50vw);
  outline: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
}

.newsletter-form input:focus { border-bottom-color: var(--red); }

/* Empty / misc */
.empty-state {
  padding: 4rem 0;
  color: var(--ink-muted);
  text-align: center;
}

/* Reveal helpers */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.65; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.06); }
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to { transform: scale(1.08) translate3d(-1.5%, 1%, 0); }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; transform-origin: top; }
  50% { transform: scaleY(0.55); opacity: 1; transform-origin: top; }
}

/* Mobile polish */
@media (max-width: 699px) {
  .header-cta { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero__scroll { display: none; }
  .display .outline { -webkit-text-stroke-width: 1.5px; }
  .project-card--full .project-card__media {
    aspect-ratio: 4 / 5;
    min-height: 0;
  }
  .cta-band { padding-top: 3rem; }
  .hero__media img,
  .hero__media video,
  .hero__video { object-position: 70% 40%; }
  .hero__content {
    padding-top: calc(var(--header-h) + 0.5rem);
    justify-content: flex-end;
  }
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(5,5,5,0.35) 0%, rgba(5,5,5,0.15) 35%, rgba(5,5,5,0.75) 70%, rgba(5,5,5,0.96) 100%),
      linear-gradient(90deg, rgba(5,5,5,0.55) 0%, transparent 55%);
  }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; min-width: 0; }
  .site-footer__bar { max-width: 100%; }
  .cta-band__inner { max-width: 100%; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
