@font-face {
  font-family: "InterLocal";
  src: url("fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterLocal";
  src: url("fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterLocal";
  src: url("fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterLocal";
  src: url("fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tempting";
  src: url("fonts/Tempting-Personal-Use-Only.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #0D0D0D;
  --black-2: #0D0D0D;
  --white: #F2F2F2;
  --paper: #F2F2F2;
  --ink: #0D0D0D;
  --muted: #8C8C8C;
  --purple: #73030D;
  --purple-2: #73030D;
  --purple-deep: #73030D;
  --glass: rgba(255,255,255,.10);
  --glass-border: rgba(255,255,255,.18);
  --light-glass: rgba(255,255,255,.44);
  --radius: 28px;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "InterLocal", Inter, Arial, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--purple); color: white; }

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

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 36px));
  height: 64px;
  padding: 0 18px 0 22px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}
.glass {
  background:
    linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.055));
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 20px 55px rgba(0,0,0,.22);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.logo {
  font-family: "InterLocal", Inter, Arial, sans-serif;
  font-size: 1.55rem;
  line-height: .72;
  letter-spacing: -.04em;
}
.logo span {
  display: block;
  font-family: "InterLocal", Inter, Arial, sans-serif;
  font-size: .52rem;
  font-weight: 600;
  letter-spacing: .18em;
  opacity: .65;
  margin-top: 7px;
}
.topbar nav {
  display: flex;
  gap: 28px;
  font-size: .82rem;
  font-weight: 600;
}
.topbar nav a { opacity: .72; }
.topbar nav a:hover { opacity: 1; }
.nav-cta {
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
}

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #151515;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background:
    linear-gradient(135deg, #2d2d31, #0a0a0a 70%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.28) 50%, rgba(0,0,0,.18) 100%),
    linear-gradient(0deg, rgba(0,0,0,.58), transparent 45%);
}
.hero-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -120px 180px rgba(0,0,0,.52);
}
.hero-content {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  width: min(var(--wrap), calc(100% - 52px));
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 150px 0 88px;
}
.hero-copy { max-width: 940px; }
.micro,
.eyebrow {
  margin: 0;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.micro { color: rgba(255,255,255,.68); }
.eyebrow { color: #77737b; }
.eyebrow.light { color: rgba(255,255,255,.46); }

h1, h2, h3 { margin-top: 0; }
.hero h1 {
  font-family: "InterLocal", Inter, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(4.7rem, 9.2vw, 9.6rem);
  line-height: .78;
  letter-spacing: -.035em;
  word-spacing: .045em;
  margin: 20px 0 50px;
  text-transform: uppercase;
}
.hero h1 span {
  color: var(--purple-2);
  display: inline-block;
  letter-spacing: -.025em;
  text-shadow: 0 0 38px rgba(115,3,13,.2);
}
.lead {
  max-width: 650px;
  color: rgba(255,255,255,.78);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.6;
}
.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 34px;
}
.glass-button {
  min-height: 50px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: .82rem;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}
.glass-button:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.14);
}
.glass-button-primary {
  background: rgba(255,255,255,.94);
  color: #111;
}
.glass-button-primary:hover { background: white; }

.hero-pill {
  flex: 0 0 auto;
  width: 225px;
  padding: 15px 16px;
  border-radius: 20px;
  font-size: .67rem;
  letter-spacing: .08em;
  font-weight: 800;
}
.hero-pill > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 7px;
  height: 7px;
  background: var(--purple-2);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--purple);
}
.sound-toggle {
  border: 0;
  padding: 10px 0 0;
  background: none;
  color: rgba(255,255,255,.5);
  font-size: .6rem;
  cursor: pointer;
}
.scroll-hint {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  writing-mode: vertical-rl;
  font-size: .58rem;
  letter-spacing: .15em;
  opacity: .5;
}

.section-light {
  background: var(--paper);
  color: var(--ink);
}
.section-dark {
  background: var(--black);
  color: var(--white);
}
.intro, .services, .work, .workflow {
  padding: 120px 0;
}
.intro-grid,
.statement-grid {
  display: grid;
  grid-template-columns: .42fr 1.58fr;
  gap: 80px;
}
.intro h2,
.section-title-row h2,
.statement h2,
.contact h2 {
  font-family: "InterLocal", Inter, Arial, sans-serif;
  font-size: clamp(3.8rem, 7vw, 7.7rem);
  line-height: .82;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.intro h2 { margin-bottom: 38px; }
.intro-copy {
  max-width: 760px;
  color: #424047;
  font-size: 1.15rem;
  line-height: 1.75;
}
.location {
  margin-top: 24px;
  color: #66636b;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
  margin-bottom: 52px;
}
.section-title-row h2 { margin: 14px 0 0; }
.section-title-row > p {
  max-width: 390px;
  color: #67636c;
  line-height: 1.65;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.service-card {
  min-height: 390px;
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.glass-light {
  background:
    linear-gradient(135deg, rgba(255,255,255,.66), rgba(255,255,255,.28));
  border: 1px solid rgba(255,255,255,.82);
  box-shadow:
    inset 0 1px 0 white,
    0 18px 48px rgba(40,35,55,.08);
  backdrop-filter: blur(20px);
}
.service-card > span {
  font-size: .7rem;
  color: #77737d;
}
.service-card h3 {
  font-family: "InterLocal", Inter, Arial, sans-serif;
  text-transform: uppercase;
  font-size: clamp(3rem, 5vw, 5.4rem);
  line-height: .8;
  margin: 74px 0 18px;
}
.service-card p {
  max-width: 480px;
  color: #5b5860;
  line-height: 1.6;
}
.service-accent {
  color: white;
  background:
    radial-gradient(circle at 80% 15%, rgba(255,255,255,.25), transparent 25%),
    linear-gradient(135deg, var(--purple), var(--purple-deep));
  box-shadow: 0 25px 70px rgba(115,3,13,.25);
}
.service-accent > span,
.service-accent p { color: rgba(255,255,255,.72); }
.chips {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chips i {
  font-style: normal;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20,20,20,.12);
  font-size: .68rem;
  color: #5c5961;
}
.service-accent .chips i {
  border-color: rgba(255,255,255,.24);
  color: white;
  background: rgba(255,255,255,.08);
}

.statement {
  position: relative;
  padding: 145px 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  opacity: .36;
}
.orb-a {
  width: 330px; height: 330px;
  background: var(--purple);
  top: 15%; right: 5%;
}
.orb-b {
  width: 240px; height: 240px;
  background: #73030D;
  bottom: 10%; left: 12%;
  opacity: .18;
}
.statement-grid { position: relative; z-index: 2; }
.statement h2 { margin-bottom: 34px; }
.statement-lead {
  max-width: 760px;
  color: rgba(255,255,255,.7);
  font-size: 1.2rem;
  line-height: 1.7;
}
.statement-lead em { color: var(--purple-2); font-style: normal; }
.principles {
  margin-top: 55px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.glass-dark {
  min-height: 220px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13);
  backdrop-filter: blur(22px);
}
.glass-dark span {
  color: var(--purple-2);
  font-size: .7rem;
  font-weight: 800;
}
.glass-dark strong {
  display: block;
  margin: 64px 0 10px;
  font-size: 1.05rem;
}
.glass-dark p {
  margin: 0;
  color: rgba(255,255,255,.52);
  font-size: .88rem;
  line-height: 1.55;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 42px 18px;
}
.work-card-wide { grid-column: 1 / -1; }
.media-placeholder {
  min-height: 520px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  padding: 25px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: white;
}
.work-card-wide .media-placeholder { min-height: 650px; }
.media-purple {
  background:
    radial-gradient(circle at 70% 25%, rgba(255,255,255,.35), transparent 15%),
    linear-gradient(130deg, #732F3B 0%, #73030D 48%, #111 100%);
}
.media-mono {
  background:
    radial-gradient(circle at 25% 30%, #777 0%, transparent 18%),
    linear-gradient(145deg, #505055, #111 70%);
}
.media-glass {
  background:
    radial-gradient(circle at 70% 30%, #732F3B 0%, transparent 18%),
    linear-gradient(145deg, #d9d5e2, #4b4654 50%, #111 100%);
}
.media-placeholder > span {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.media-placeholder button {
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(0,0,0,.15);
  backdrop-filter: blur(14px);
  font-size: .65rem;
  font-weight: 800;
}
.work-meta {
  display: grid;
  grid-template-columns: 1fr .65fr;
  gap: 40px;
  padding-top: 18px;
}
.work-meta.compact { grid-template-columns: 1fr; }
.work-meta small {
  color: #77737d;
  font-size: .62rem;
  letter-spacing: .12em;
}
.work-meta h3 {
  font-family: "InterLocal", Inter, Arial, sans-serif;
  text-transform: uppercase;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: .86;
  margin: 8px 0 0;
}
.work-meta > p {
  margin: 0;
  color: #66626a;
  line-height: 1.55;
}

.workflow { padding-top: 30px; }
.workflow-list { margin-top: 38px; border-top: 1px solid #cfccd1; }
.workflow-list > div {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #cfccd1;
  padding: 26px 0;
}
.workflow-list span { color: #8b8790; font-size: .7rem; }
.workflow-list h3 {
  margin: 0;
  font-family: "InterLocal", Inter, Arial, sans-serif;
  text-transform: uppercase;
  font-size: 1.65rem;
}
.workflow-list p { margin: 0; color: #69656e; }

.contact {
  position: relative;
  padding: 150px 0;
  overflow: hidden;
}
.contact-glow {
  position: absolute;
  width: 680px; height: 680px;
  border-radius: 50%;
  right: -170px; top: -200px;
  background: radial-gradient(circle, rgba(115,3,13,.52), rgba(115,3,13,0) 68%);
}
.contact-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}
.contact h2 {
  margin: 18px 0 25px;
  font-size: clamp(4.4rem, 9vw, 10rem);
}
.contact h2 span { color: var(--purple-2); }
.contact-inner > p:not(.eyebrow) { color: rgba(255,255,255,.52); }
.contact-actions { justify-content: center; }

.footer {
  background: #050505;
  color: #77737b;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: .68rem;
}

@media (max-width: 900px) {
  .topbar nav { display: none; }
  .hero-content {
    align-items: flex-end;
    flex-direction: column;
    justify-content: flex-end;
  }
  .hero-pill { align-self: flex-start; }
  .intro-grid,
  .statement-grid { grid-template-columns: 1fr; }
  .section-title-row { flex-direction: column; align-items: flex-start; }
  .principles { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card-wide { grid-column: auto; }
  .work-meta { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .topbar { top: 10px; width: calc(100% - 20px); }
  .nav-cta { padding: 9px 12px; }
  .hero-content { width: calc(100% - 28px); padding-bottom: 55px; }
  .hero h1 { font-size: clamp(3.8rem, 17vw, 6rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-pill { width: 100%; }
  .scroll-hint { display: none; }
  .intro, .services, .work, .workflow { padding: 82px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 360px; }
  .statement { padding: 90px 0; }
  .media-placeholder,
  .work-card-wide .media-placeholder { min-height: 390px; }
  .workflow-list > div {
    grid-template-columns: 34px 1fr;
  }
  .workflow-list p { grid-column: 2; }
  .contact { padding: 100px 0; }
  .footer { flex-direction: column; }
}

.hero h1 .punctuation { margin-left: .10em; }

/* V7 — Tempting is reserved for the hero signature. Keep it crisp: no glow, blur or filter. */
.hero h1 > span.hero-signature {
  display: inline-block;
  font-family: "Tempting", cursive;
  font-weight: 400;
  text-transform: none;
  color: #73030D;
  letter-spacing: .015em;
  word-spacing: .03em;
  text-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  transform: none;
  line-height: .92;
  padding-right: .08em;
}
.hero h1 > span.hero-signature .punctuation {
  margin-left: .11em;
  text-shadow: none !important;
  filter: none !important;
}


/* V8 layout refinements */
.hero h1 {
  margin-top: 20px;
  margin-bottom: 44px;
}
.hero h1 > span.hero-signature {
  position: relative;
  top: .10em;
  text-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}
.intro-grid {
  gap: 58px;
}
.portfolio-intro {
  padding-bottom: 120px;
}
.portfolio-intro .intro-grid {
  margin-bottom: 72px;
}
.portfolio-intro .eyebrow {
  padding-top: .2em;
}
.portfolio-grid-wrap {
  margin-top: 0;
}
.services {
  padding-top: 120px;
}
.workflow {
  padding-top: 120px;
}


/* V10 — preserve V8 order, refine intro/topbar and add smooth contrast dissolve */
.topbar,
.topbar .logo,
.topbar .logo span,
.topbar nav a,
.topbar .nav-cta {
  transition:
    color .28s ease,
    background-color .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    opacity .28s ease;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.topbar nav {
  margin-left: 0;
}

/* Dark-background state: hero + final CTA */
.topbar {
  color: #F2F2F2;
}

.topbar .logo,
.topbar nav a {
  color: #F2F2F2;
}

.topbar .logo span {
  color: rgba(242,242,242,.72);
}

.topbar .nav-cta {
  background: rgba(255,255,255,.92);
  color: #0D0D0D;
}

/* Light-background state: portfolio / workflow / offer */
.topbar.is-light {
  background:
    linear-gradient(135deg, rgba(255,255,255,.76), rgba(255,255,255,.48));
  border-color: rgba(13,13,13,.11);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 20px 55px rgba(0,0,0,.08);
}

.topbar.is-light .logo,
.topbar.is-light nav a {
  color: #0D0D0D;
}

.topbar.is-light .logo span {
  color: rgba(13,13,13,.62);
}

.topbar.is-light .nav-cta {
  background: #0D0D0D;
  color: #F2F2F2;
}

/* Intro now reads as one block, with the eyebrow directly above the heading. */
.portfolio-intro .intro-stack {
  max-width: 980px;
  margin: 0 auto 72px;
}

.portfolio-intro .intro-eyebrow {
  margin: 0 0 18px;
  padding: 0;
}

.portfolio-intro .intro-stack h2 {
  margin: 0 0 30px;
}

.portfolio-intro .intro-copy {
  max-width: 820px;
}

/* Keep Feel Real crisp and slightly lower. */
.hero h1 > span.hero-signature {
  top: .14em;
  text-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

@media (max-width: 900px) {
  .topbar-right {
    gap: 0;
  }
}


/* V11 — seamless top/bottom + darker glass on dark sections */

/* Remove any possible document seam above the hero. */
html,
body,
main {
  margin: 0;
  padding: 0;
}

html,
body {
  background: #0D0D0D;
}

main {
  display: block;
}

.hero {
  margin: 0;
  border: 0;
}

/* Extend the video by 2px so there can never be a 1px/black seam at the top. */
.hero-video {
  top: -2px;
  bottom: auto;
  height: calc(100% + 2px);
}

/* Dark variant of the liquid-glass header.
   This is used on the hero and the final CTA/footer area. */
.topbar:not(.is-light) {
  background:
    linear-gradient(135deg, rgba(13,13,13,.66), rgba(13,13,13,.48));
  border-color: rgba(255,255,255,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 20px 55px rgba(0,0,0,.28);
}

/* Make the CTA and footer visually one continuous dark ending. */
.contact,
.footer {
  background-color: #0D0D0D;
}

.footer {
  border-top-color: rgba(255,255,255,.055);
}

/* Smoothly dissolve the glass itself too, not only the text/buttons. */
.topbar {
  transition:
    background .32s ease,
    color .28s ease,
    border-color .32s ease,
    box-shadow .32s ease;
}

.topbar .logo,
.topbar .logo span,
.topbar nav a,
.topbar .nav-cta {
  transition:
    color .28s ease,
    background-color .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    opacity .28s ease;
}


/* V12 — extend the final CTA dark background upward behind the floating topbar */
.contact {
  position: relative;
  isolation: isolate;
}

.contact::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -150px;
  height: 170px;
  background: #0D0D0D;
  z-index: -1;
  pointer-events: none;
}


/* V13 — real fix for the white strip at the very bottom.
   The final CTA + footer now occupy at least one full viewport,
   so at maximum scroll the dark section can reach the very top
   instead of leaving part of the previous light section visible. */

.contact {
  min-height: calc(100vh - 86px);
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 120px;
}

.contact .contact-inner {
  width: 100%;
}

.footer {
  min-height: 86px;
  align-items: center;
}

/* Old pseudo-extension from V12 is no longer needed. */
.contact::before {
  display: none !important;
}


/* V14 — expandable Barber Event portfolio project */
.portfolio-project { width: 100%; margin-top: 10px; }
.project-cover { width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; display:block; }
.project-cover-media { position: relative; min-height: 600px; border-radius: var(--radius); overflow: hidden; background:#151515; box-shadow: 0 24px 70px rgba(0,0,0,.14); }
.project-preview-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 45%; transform:scale(1.015); transition:transform .55s cubic-bezier(.2,.7,.2,1); }
.project-cover:hover .project-preview-video { transform:scale(1.045); }
.project-cover-overlay { position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.06),rgba(0,0,0,.12) 42%,rgba(0,0,0,.74) 100%),linear-gradient(90deg,rgba(0,0,0,.35),transparent 55%); }
.project-cover-copy { position:absolute; left:30px; right:30px; bottom:28px; display:flex; align-items:flex-end; justify-content:space-between; gap:28px; color:#fff; }
.project-kicker { display:block; font-size:.67rem; font-weight:800; letter-spacing:.15em; opacity:.68; margin-bottom:10px; }
.project-cover-copy h3,.project-expanded-head h3 { margin:0; font-family:"InterLocal",Inter,Arial,sans-serif; text-transform:uppercase; font-size:clamp(3rem,6vw,6.5rem); line-height:.82; letter-spacing:-.055em; }
.project-open-label,.project-close { flex:0 0 auto; border:1px solid rgba(255,255,255,.28); background:rgba(15,15,15,.2); color:#fff; backdrop-filter:blur(18px) saturate(150%); -webkit-backdrop-filter:blur(18px) saturate(150%); border-radius:999px; padding:12px 16px; font-size:.68rem; font-weight:800; letter-spacing:.04em; }
.project-expanded { max-height:0; opacity:0; overflow:hidden; margin-top:0; background:#0D0D0D; color:#F2F2F2; border-radius:var(--radius); transition:max-height .8s cubic-bezier(.2,.72,.18,1),opacity .32s ease,margin-top .5s ease; }
.portfolio-project.is-open .project-expanded { max-height:4300px; opacity:1; margin-top:24px; }
.project-expanded-head { display:flex; justify-content:space-between; align-items:flex-end; gap:28px; padding:34px 34px 24px; }
.project-expanded-head h3 { font-size:clamp(2.8rem,5vw,5.8rem); }
.project-close { cursor:pointer; }
.project-story { padding:0 34px 30px; }
.project-story p { max-width:760px; margin:0; color:rgba(255,255,255,.62); font-size:1.02rem; line-height:1.7; }
.project-gallery { display:grid; grid-template-columns:1.15fr .85fr .85fr; gap:14px; padding:0 14px 14px; align-items:start; }
.project-media { margin:0; border-radius:20px; overflow:hidden; background:#181818; aspect-ratio:9/16; }
.project-media-video { grid-row:span 2; }
.project-media img,.project-media video { display:block; width:100%; height:100%; object-fit:cover; }
.project-media video { background:#000; }
@media (max-width:900px){ .project-cover-media{min-height:520px}.project-gallery{grid-template-columns:1fr 1fr}.project-media-video{grid-row:auto} }
@media (max-width:650px){ .project-cover-media{min-height:470px}.project-cover-copy{left:20px;right:20px;bottom:20px;flex-direction:column;align-items:flex-start}.project-cover-copy h3{font-size:clamp(2.6rem,13vw,4.4rem)}.project-expanded-head{align-items:flex-start;flex-direction:column;padding:26px 20px 18px}.project-story{padding:0 20px 24px}.project-gallery{grid-template-columns:1fr;gap:10px;padding:0 10px 10px}.project-media{border-radius:16px} }


/* V15 — portfolio homepage: 2x2 grid, 4:5 cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.portfolio-card {
  min-width: 0;
}

.portfolio-card .project-cover-media,
.placeholder-visual {
  aspect-ratio: 4 / 5;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.portfolio-card .project-preview-video {
  object-fit: cover;
  object-position: center center;
  transform: scale(1.005);
}

.portfolio-card .project-cover:hover .project-preview-video {
  transform: scale(1.025);
}

.portfolio-card .project-cover-copy {
  left: 24px;
  right: 24px;
  bottom: 22px;
}

.portfolio-card .project-cover-copy h3,
.placeholder-copy h3 {
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: .84;
}

.portfolio-card-event {
  display: contents;
}

.portfolio-card-event > .project-cover {
  grid-column: auto;
}

.portfolio-card-event > .project-expanded {
  grid-column: 1 / -1;
  width: 100%;
}

.placeholder-visual {
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #fff;
}

.placeholder-copy {
  position: relative;
  z-index: 2;
}

.placeholder-copy h3 {
  margin: 8px 0 0;
  font-family: "InterLocal", Inter, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: -.05em;
}

.placeholder-burgundy {
  background:
    radial-gradient(circle at 70% 24%, rgba(255,255,255,.18), transparent 22%),
    linear-gradient(145deg, #732F3B 0%, #73030D 52%, #161013 100%);
}

.placeholder-dark {
  background:
    radial-gradient(circle at 26% 22%, rgba(255,255,255,.12), transparent 18%),
    linear-gradient(145deg, #3d3d40, #121214 70%);
}

.placeholder-soft {
  color: #111;
  background:
    radial-gradient(circle at 68% 26%, rgba(115,3,13,.18), transparent 20%),
    linear-gradient(145deg, #e6e2e2, #bdb7ba 48%, #777176 100%);
}

.placeholder-soft .project-kicker {
  color: rgba(17,17,17,.62);
}

.portfolio-more {
  display: flex;
  justify-content: center;
  padding-top: 34px;
}

.portfolio-more-button {
  min-height: 60px;
  padding: 0 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #73030D;
  background: #73030D;
  color: #F2F2F2;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 10px 26px rgba(115,3,13,.22);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .045em;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.portfolio-more-button:hover {
  transform: translateY(-3px);
  background: #8A0A18;
  border-color: #8A0A18;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 14px 30px rgba(115,3,13,.28);
}

.portfolio-more-button:focus-visible {
  outline: 3px solid rgba(115,3,13,.32);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card-event > .project-expanded {
    grid-column: 1;
  }

  .portfolio-card .project-cover-copy {
    left: 20px;
    right: 20px;
    bottom: 18px;
  }
}


/* V16 — fix 2x2 grid + expandable Event row */
.portfolio-card-event {
  display: block !important;
}

.portfolio-expanded-row {
  grid-column: 1 / -1;
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  pointer-events: none;
  transition:
    max-height .8s cubic-bezier(.2,.72,.18,1),
    opacity .32s ease,
    margin .5s ease;
}

.portfolio-grid.is-event-open .portfolio-expanded-row {
  max-height: 4300px;
  opacity: 1;
  margin: 6px 0 18px;
  pointer-events: auto;
}

@media (max-width: 760px) {
  .portfolio-expanded-row {
    grid-column: 1;
  }
}


/* V18 — expanding Event tile without duplicate video + clickable lightbox gallery */
.portfolio-grid-v18 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.event-project {
  grid-column: 1;
  min-width: 0;
  transition: grid-column .01s linear .28s;
}

.event-project.is-open {
  grid-column: 1 / -1;
}

.event-project-inner {
  display: grid;
  grid-template-columns: 1fr 0fr;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0D0D0D;
  box-shadow: 0 20px 54px rgba(0,0,0,.12);
  transition: grid-template-columns .72s cubic-bezier(.2,.72,.18,1);
}

.event-project.is-open .event-project-inner {
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
}

.event-video-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  min-width: 0;
  overflow: hidden;
  background: #000;
}

.event-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #000;
  transition: object-fit .01s linear .35s, transform .55s cubic-bezier(.2,.72,.18,1);
}

.event-project:not(.is-open):hover .event-video {
  transform: scale(1.025);
}

.event-project.is-open .event-video {
  object-fit: contain;
  transform: none;
}

.event-cover-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.12) 48%, rgba(0,0,0,.72) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity .32s ease;
}

.event-project.is-open .event-cover-overlay {
  opacity: 0;
}

.event-cover-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  color: #fff;
  transition: opacity .28s ease, transform .35s ease;
}

.event-cover-copy h3 {
  margin: 8px 0 0;
  font-family: "InterLocal", Inter, Arial, sans-serif;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: .84;
  letter-spacing: -.055em;
}

.event-project.is-open .event-cover-copy {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.project-open-label,
.event-close {
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(10,10,10,.24);
  color: #fff;
  border-radius: 999px;
  padding: 11px 14px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  cursor: pointer;
}

.event-close {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .25s ease .2s, transform .3s ease .2s;
}

.event-project.is-open .event-close {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.event-details {
  min-width: 0;
  overflow: hidden;
  background: #0D0D0D;
  color: #F2F2F2;
  opacity: 0;
  transform: translateX(-18px);
  pointer-events: none;
  padding: 28px;
  transition:
    opacity .35s ease .18s,
    transform .48s cubic-bezier(.2,.72,.18,1) .12s;
}

.event-project.is-open .event-details {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.event-details-head {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 20px;
}

.event-details-head p {
  margin: 0;
  color: rgba(255,255,255,.60);
  line-height: 1.65;
}

.event-photo-grid {
  height: calc(100% - 82px);
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.event-photo {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #171717;
  cursor: zoom-in;
}

.event-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

.event-photo:hover img {
  transform: scale(1.025);
  filter: brightness(.92);
}

/* Fullscreen vertical video: show the whole frame, fitted by screen height. */
.event-video:fullscreen,
.event-video:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
}

/* Photo lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-stage {
  min-width: 0;
  height: 100vh;
  padding: 38px 20px 28px;
  display: grid;
  place-items: center;
  position: relative;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: calc(100vh - 66px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 30px 100px rgba(0,0,0,.35);
}

.lightbox-counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.62);
  font-size: .72rem;
  letter-spacing: .08em;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.07);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
}

.lightbox-nav {
  width: 46px;
  height: 64px;
  border-radius: 999px;
  justify-self: center;
  font-size: 2rem;
}

/* Project 02 falls below while Event takes the full row. */
.portfolio-grid-v18.has-open-event .project-02 {
  grid-column: 1;
}

.portfolio-grid-v18.has-open-event .project-03 {
  grid-column: 1;
}

.portfolio-grid-v18.has-open-event .project-04 {
  grid-column: 2;
}

@media (max-width: 900px) {
  .event-project.is-open .event-project-inner {
    grid-template-columns: .9fr 1.1fr;
  }

  .event-details-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .event-photo-grid {
    height: calc(100% - 116px);
  }
}

@media (max-width: 760px) {
  .portfolio-grid-v18 {
    grid-template-columns: 1fr;
  }

  .event-project,
  .event-project.is-open {
    grid-column: 1;
  }

  .event-project-inner,
  .event-project.is-open .event-project-inner {
    grid-template-columns: 1fr;
  }

  .event-video-wrap {
    aspect-ratio: 4 / 5;
  }

  .event-details {
    max-height: 0;
    padding: 0 18px;
    opacity: 0;
    transform: translateY(-12px);
    transition:
      max-height .7s cubic-bezier(.2,.72,.18,1),
      opacity .3s ease,
      transform .4s ease,
      padding .4s ease;
  }

  .event-project.is-open .event-details {
    max-height: 2600px;
    padding: 22px 18px 18px;
    transform: translateY(0);
  }

  .event-photo-grid {
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, auto);
  }

  .event-photo {
    aspect-ratio: 4 / 5;
  }

  .portfolio-grid-v18.has-open-event .project-02,
  .portfolio-grid-v18.has-open-event .project-03,
  .portfolio-grid-v18.has-open-event .project-04 {
    grid-column: 1;
  }

  .gallery-lightbox {
    grid-template-columns: 54px 1fr 54px;
  }

  .lightbox-stage {
    padding-inline: 4px;
  }
}


/* V19 small robustness fixes */
.event-video-wrap {
  background:
    radial-gradient(circle at 50% 38%, rgba(115,3,13,.18), transparent 32%),
    #050505;
}

.event-video {
  position: relative;
  z-index: 1;
}

.event-cover-overlay,
.event-cover-copy,
.event-close {
  z-index: 2;
}


/* V20 — smooth sideways expansion, close button outside video, horizontal photo rail */
.portfolio-grid-v20 {
  display: block !important;
}

.portfolio-featured-row,
.portfolio-secondary-row {
  display: flex;
  gap: 18px;
  align-items: stretch;
}

.portfolio-secondary-row {
  margin-top: 18px;
}

.portfolio-featured-row > .portfolio-card,
.portfolio-secondary-row > .portfolio-card {
  flex: 1 1 0;
  min-width: 0;
}

.event-project,
.project-02 {
  transition:
    flex-basis .72s cubic-bezier(.2,.72,.18,1),
    flex-grow .72s cubic-bezier(.2,.72,.18,1),
    opacity .38s ease,
    transform .55s cubic-bezier(.2,.72,.18,1);
}

.portfolio-featured-row.is-open .event-project {
  flex: 1 1 100%;
}

.portfolio-featured-row.is-open .project-02 {
  flex: 0 1 0;
  opacity: 0;
  transform: translateX(34px);
  pointer-events: none;
  overflow: hidden;
}

.event-project-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 0fr !important;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0D0D0D;
  box-shadow: 0 20px 54px rgba(0,0,0,.12);
  transition: grid-template-columns .72s cubic-bezier(.2,.72,.18,1);
}

.event-project.is-open .event-project-inner {
  grid-template-columns: minmax(300px, .76fr) minmax(0, 1.24fr) !important;
}

.event-video-panel {
  min-width: 0;
  background: #0D0D0D;
  padding: 0;
  transition: padding .55s cubic-bezier(.2,.72,.18,1);
}

.event-project.is-open .event-video-panel {
  padding: 28px 0 28px 28px;
}

.event-video-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  transition:
    border-radius .45s ease,
    aspect-ratio .45s ease;
}

.event-project.is-open .event-video-frame {
  aspect-ratio: auto;
  height: min(72vh, 760px);
  min-height: 560px;
  border-radius: 20px;
}

.event-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #000;
  transition: transform .45s ease;
}

.event-project:not(.is-open):hover .event-video {
  transform: scale(1.025);
}

.event-project.is-open .event-video {
  object-fit: contain;
  transform: none;
}

.event-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.12) 48%, rgba(0,0,0,.72) 100%);
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: opacity .3s ease;
}

.event-project.is-open .event-cover-overlay {
  opacity: 0;
}

.event-cover-copy {
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  color: #fff;
  transition: opacity .25s ease, transform .35s ease;
}

.event-cover-copy h3 {
  margin: 8px 0 0;
  font-family: "InterLocal", Inter, Arial, sans-serif;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: .84;
  letter-spacing: -.055em;
}

.event-project.is-open .event-cover-copy {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.project-open-label,
.event-close {
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.07);
  color: #fff;
  border-radius: 999px;
  padding: 11px 14px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  cursor: pointer;
}

.event-details {
  min-width: 0;
  overflow: hidden;
  color: #F2F2F2;
  background: #0D0D0D;
  opacity: 0;
  transform: translateX(-18px);
  pointer-events: none;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition:
    opacity .32s ease .18s,
    transform .48s cubic-bezier(.2,.72,.18,1) .12s;
}

.event-project.is-open .event-details {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.event-details-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.event-details-top > div {
  display: grid;
  grid-template-columns: .46fr 1.54fr;
  gap: 24px;
  align-items: start;
}

.event-details-top p {
  margin: 0;
  color: rgba(255,255,255,.60);
  line-height: 1.65;
}

.event-close {
  position: static !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
  white-space: nowrap;
}

.event-photo-rail {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.event-photo-rail::-webkit-scrollbar {
  height: 8px;
}

.event-photo-rail::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}

.event-photo {
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #171717;
  cursor: zoom-in;
  scroll-snap-align: start;
}

.event-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

.event-photo:hover img {
  transform: scale(1.02);
  filter: brightness(.92);
}

/* Keep the right-hand content height tied to the video height. */
.event-project.is-open .event-details {
  height: calc(min(72vh, 760px) + 56px);
}

.event-project.is-open .event-photo-rail {
  min-height: 0;
}

/* fullscreen: entire vertical frame visible, fitted by viewport height */
.event-video:fullscreen,
.event-video:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
}

/* Keep placeholder cards 4:5 */
.portfolio-secondary-row .placeholder-visual,
.project-02 .placeholder-visual {
  aspect-ratio: 4 / 5;
  height: auto;
}

@media (max-width: 900px) {
  .event-project.is-open .event-project-inner {
    grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr) !important;
  }

  .event-details-top > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 760px) {
  .portfolio-featured-row,
  .portfolio-secondary-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .portfolio-featured-row.is-open .project-02 {
    display: none;
  }

  .event-project-inner,
  .event-project.is-open .event-project-inner {
    grid-template-columns: 1fr !important;
  }

  .event-project.is-open .event-video-panel {
    padding: 18px 18px 0;
  }

  .event-project.is-open .event-video-frame {
    height: auto;
    min-height: 0;
    aspect-ratio: 9 / 16;
    max-height: 76vh;
  }

  .event-details {
    max-height: 0;
    padding: 0 18px;
    opacity: 0;
    transform: translateY(-12px);
    transition:
      max-height .7s cubic-bezier(.2,.72,.18,1),
      opacity .3s ease,
      transform .4s ease,
      padding .4s ease;
  }

  .event-project.is-open .event-details {
    height: auto;
    max-height: 2600px;
    padding: 22px 18px 18px;
    transform: translateY(0);
  }

  .event-details-top,
  .event-details-top > div {
    grid-template-columns: 1fr;
  }

  .event-photo-rail {
    height: 58vh;
  }
}


/* V21 — fix: no giant stretched black card */
.portfolio-featured-row {
  align-items: flex-start !important;
}

.portfolio-featured-row > .portfolio-card {
  align-self: flex-start;
}

.event-project:not(.is-open) .event-project-inner {
  height: auto !important;
  min-height: 0 !important;
  align-items: start;
}

.event-project:not(.is-open) .event-video-panel {
  height: auto !important;
  min-height: 0 !important;
}

.event-project:not(.is-open) .event-video-frame {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 5 !important;
}

.event-project:not(.is-open) .event-details {
  height: 0 !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}

.event-project:not(.is-open) {
  overflow: hidden;
}

.event-project:not(.is-open) .event-project-inner {
  background: transparent;
  box-shadow: none;
}

/* Keep the visible closed card exactly the same height as Project 02. */
.event-project:not(.is-open),
.project-02 {
  width: 100%;
}

.event-project:not(.is-open) .event-video-frame,
.project-02 .placeholder-visual {
  aspect-ratio: 4 / 5 !important;
}

/* During opening, grow to the right smoothly. */
.portfolio-featured-row.is-open {
  align-items: flex-start !important;
}

.portfolio-featured-row.is-open .event-project {
  flex-grow: 1;
  flex-basis: 100%;
}

.portfolio-featured-row.is-open .project-02 {
  flex-grow: 0;
  flex-basis: 0;
  width: 0;
}

/* Open state sizing — no accidental page-height stretching. */
.event-project.is-open .event-project-inner {
  height: auto !important;
  min-height: 0 !important;
}

.event-project.is-open .event-video-panel,
.event-project.is-open .event-details {
  align-self: stretch;
}

.event-project.is-open .event-details {
  height: auto !important;
  min-height: 0 !important;
}

.event-project.is-open .event-video-frame {
  height: min(72vh, 760px) !important;
  min-height: 520px !important;
}


/* V22 — polish open Event layout */

/* 1) Keep the whole tile rounded on BOTH sides. */
.event-project-inner {
  border-radius: var(--radius) !important;
  overflow: hidden !important;
}

.event-project.is-open .event-project-inner {
  border-radius: var(--radius) !important;
}

.event-details {
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Shared stage height so video + gallery are visually aligned. */
.event-project.is-open {
  --event-stage-h: min(72vh, 760px);
}

/* 2) Open video: true vertical 9:16 frame, no black side bars inside the player. */
.event-project.is-open .event-video-panel {
  height: calc(var(--event-stage-h) + 56px) !important;
  padding: 28px 0 28px 28px !important;
  display: grid;
  place-items: center;
  box-sizing: border-box;
}

.event-project.is-open .event-video-frame {
  width: auto !important;
  height: var(--event-stage-h) !important;
  min-height: 0 !important;
  aspect-ratio: 9 / 16 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

.event-project.is-open .event-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: #000;
}

/* 3) Right side: fixed to same total height as the video panel. */
.event-project.is-open .event-details {
  height: calc(var(--event-stage-h) + 56px) !important;
  min-height: 0 !important;
  box-sizing: border-box;
  overflow: hidden !important;
  padding: 28px !important;
  display: flex !important;
  flex-direction: column;
}

.event-details-top {
  flex: 0 0 auto;
  margin-bottom: 18px !important;
}

.event-photo-rail {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  display: flex !important;
  gap: 12px;
  align-items: stretch;
  scroll-snap-type: x mandatory;
}

.event-photo {
  flex: 0 0 auto !important;
  height: 100% !important;
  width: auto !important;
  aspect-ratio: 4 / 5 !important;
  max-height: 100% !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

.event-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Closed state remains a clean 4:5 card. */
.event-project:not(.is-open) .event-project-inner,
.event-project:not(.is-open) .event-video-frame {
  border-radius: var(--radius) !important;
}

/* Fullscreen still shows the entire vertical frame. */
.event-video:fullscreen,
.event-video:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain !important;
  background: #000 !important;
}

@media (max-width: 900px) {
  .event-project.is-open {
    --event-stage-h: min(64vh, 660px);
  }
}

@media (max-width: 760px) {
  .event-project.is-open .event-video-panel,
  .event-project.is-open .event-details {
    height: auto !important;
  }

  .event-project.is-open .event-video-frame {
    width: min(100%, 430px) !important;
    height: auto !important;
    aspect-ratio: 9 / 16 !important;
  }

  .event-photo-rail {
    height: 58vh !important;
  }
}


/* V23 — final polish for Event case study */

/* Strong clipping fixes the missing right-side rounding in all browsers. */
.event-project,
.event-project-inner {
  border-radius: var(--radius) !important;
}

.event-project-inner {
  overflow: hidden !important;
  clip-path: inset(0 round var(--radius));
  -webkit-clip-path: inset(0 round var(--radius));
}

.event-details {
  border-radius: 0 var(--radius) var(--radius) 0 !important;
  overflow: hidden !important;
}

/* Fullscreen vertical video: keep a true 9:16 viewport centered on screen.
   This is stricter than object-fit alone, especially in Safari. */
.event-video:fullscreen,
.event-video:-webkit-full-screen {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  width: min(100vw, calc(100vh * 9 / 16)) !important;
  height: 100vh !important;
  max-width: calc(100vh * 9 / 16) !important;
  max-height: 100vh !important;
  aspect-ratio: 9 / 16 !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
}

/* Horizontal photo rail with an obvious liquid-glass affordance. */
.event-photo-rail-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.event-photo-rail {
  height: 100% !important;
  padding-right: 78px;
  scroll-behavior: smooth;
}

.photo-rail-next {
  position: absolute;
  z-index: 8;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24);
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.07));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    0 12px 30px rgba(0,0,0,.28);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity .22s ease, transform .22s ease, background .22s ease;
}

.photo-rail-next:hover {
  transform: translateY(-50%) scale(1.05);
  background:
    linear-gradient(135deg, rgba(255,255,255,.24), rgba(255,255,255,.10));
}

.photo-rail-next.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* When Event opens, Project 02 drops underneath instead of disappearing. */
.portfolio-featured-row {
  flex-wrap: wrap;
}

.portfolio-featured-row.is-open .event-project {
  flex: 1 1 100%;
  width: 100%;
}

.portfolio-featured-row.is-open .project-02 {
  flex: 0 0 calc(50% - 9px);
  width: calc(50% - 9px);
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
  overflow: visible !important;
  order: 2;
}

@media (max-width: 760px) {
  .photo-rail-next {
    width: 48px;
    height: 48px;
    right: 10px;
  }

  .portfolio-featured-row.is-open .project-02 {
    flex-basis: 100%;
    width: 100%;
  }
}


/* V24 — fullscreen wrapper, bi-directional photo rail, stronger Safari clipping,
   and Project 02 relocation to the 3-card row */

/* Strongest possible rounded clipping for Safari / WebKit. */
.event-project {
  background: transparent !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  clip-path: inset(0 round var(--radius)) !important;
  -webkit-clip-path: inset(0 round var(--radius)) !important;
  isolation: isolate;
  transform: translateZ(0);
}

.event-project-inner {
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  clip-path: inset(0 round var(--radius)) !important;
  -webkit-clip-path: inset(0 round var(--radius)) !important;
  transform: translateZ(0);
  contain: paint;
}

.event-details {
  border-radius: 0 var(--radius) var(--radius) 0 !important;
  overflow: hidden !important;
}

/* Hide Safari's native fullscreen button and use our own wrapper fullscreen.
   This avoids Safari zooming the vertical video. */
.event-video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}

.video-fullscreen {
  display: none;
  position: absolute;
  z-index: 10;
  top: 16px;
  left: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.07));
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    0 12px 30px rgba(0,0,0,.24);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  font-size: 1.15rem;
  cursor: pointer;
}

.event-project.is-open .video-fullscreen {
  display: grid;
  place-items: center;
}

/* We fullscreen the FRAME, not the video itself. */
.event-video-frame:fullscreen,
.event-video-frame:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  background: #000 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
}

.event-video-frame:fullscreen .event-video,
.event-video-frame:-webkit-full-screen .event-video {
  width: min(100vw, calc(100vh * 9 / 16)) !important;
  height: 100vh !important;
  max-width: calc(100vh * 9 / 16) !important;
  max-height: 100vh !important;
  aspect-ratio: 9 / 16 !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
}

.event-video-frame:fullscreen .video-fullscreen,
.event-video-frame:-webkit-full-screen .video-fullscreen {
  display: none !important;
}

/* If Safari still enters fullscreen directly on the <video>, keep it contained. */
.event-video:fullscreen,
.event-video:-webkit-full-screen {
  width: min(100vw, calc(100vh * 9 / 16)) !important;
  height: 100vh !important;
  max-width: calc(100vh * 9 / 16) !important;
  max-height: 100vh !important;
  aspect-ratio: 9 / 16 !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
}

/* Photo rail arrows — both directions. */
.photo-rail-prev,
.photo-rail-next {
  position: absolute;
  z-index: 8;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24);
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.07));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    0 12px 30px rgba(0,0,0,.28);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity .22s ease, transform .22s ease, background .22s ease;
}

.photo-rail-prev { left: 16px; }
.photo-rail-next { right: 16px; }

.photo-rail-prev:hover,
.photo-rail-next:hover {
  transform: translateY(-50%) scale(1.05);
  background:
    linear-gradient(135deg, rgba(255,255,255,.24), rgba(255,255,255,.10));
}

.photo-rail-prev.is-hidden,
.photo-rail-next.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Make room for both overlay arrows. */
.event-photo-rail {
  padding-left: 78px !important;
  padding-right: 78px !important;
}

/* Project 02: fly right, then reappear below in a 3-column row. */
.portfolio-featured-row {
  position: relative;
  overflow: visible;
}

.project-02.is-flying-out {
  position: absolute !important;
  right: 0;
  top: 0;
  width: calc(50% - 9px) !important;
  z-index: 4;
  transform: translateX(125%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition:
    transform .48s cubic-bezier(.3,.7,.2,1),
    opacity .34s ease !important;
}

.project-02.is-relocated {
  position: static !important;
  width: auto !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.portfolio-secondary-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-secondary-row.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-secondary-row.three-up .project-02,
.portfolio-secondary-row.three-up .project-03,
.portfolio-secondary-row.three-up .project-04 {
  min-width: 0;
}

/* Project 02 should not occupy space in the top row while Event is open. */
.portfolio-featured-row.is-open .project-02:not(.is-flying-out):not(.is-relocated) {
  flex: 0 0 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

/* Smooth re-entry when closing. */
.project-02.is-returning {
  opacity: 0 !important;
  transform: translateX(70px) !important;
}

@media (max-width: 900px) {
  .portfolio-secondary-row.three-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .photo-rail-prev,
  .photo-rail-next {
    width: 48px;
    height: 48px;
  }

  .photo-rail-prev { left: 10px; }
  .photo-rail-next { right: 10px; }

  .event-photo-rail {
    padding-left: 62px !important;
    padding-right: 62px !important;
  }

  .portfolio-secondary-row,
  .portfolio-secondary-row.three-up {
    grid-template-columns: 1fr;
  }

  .project-02.is-flying-out {
    display: none !important;
  }
}


/* V25 — three targeted fixes:
   1) closed Event card has genuinely rounded right corners;
   2) photo rail loops infinitely;
   3) Project 02 flies out to the right, then appears below. */

/* CLOSED EVENT: remove the zero-column/padding leak that created the square black right edge. */
.event-project:not(.is-open) {
  background: transparent !important;
  overflow: hidden !important;
  border-radius: var(--radius) !important;
  clip-path: inset(0 round var(--radius)) !important;
  -webkit-clip-path: inset(0 round var(--radius)) !important;
}

.event-project:not(.is-open) .event-project-inner {
  grid-template-columns: minmax(0, 1fr) 0px !important;
  background: transparent !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  clip-path: inset(0 round var(--radius)) !important;
  -webkit-clip-path: inset(0 round var(--radius)) !important;
}

.event-project:not(.is-open) .event-video-panel {
  background: transparent !important;
  padding: 0 !important;
  min-width: 0 !important;
}

.event-project:not(.is-open) .event-video-frame {
  width: 100% !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  clip-path: inset(0 round var(--radius)) !important;
  -webkit-clip-path: inset(0 round var(--radius)) !important;
}

.event-project:not(.is-open) .event-details {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

/* OPEN EVENT keeps its own rounded outer shell. */
.event-project.is-open,
.event-project.is-open .event-project-inner {
  border-radius: var(--radius) !important;
  overflow: hidden !important;
}

/* Infinite rail: arrows are always meaningful because the strip wraps around. */
.photo-rail-prev,
.photo-rail-next {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.event-photo-rail {
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}

/* Project 02 animation is now a separate fixed ghost — this avoids layout jank. */
.project02-flight-ghost {
  position: fixed !important;
  z-index: 9999 !important;
  pointer-events: none !important;
  margin: 0 !important;
  will-change: transform, opacity;
  transition:
    transform .56s cubic-bezier(.2,.72,.18,1),
    opacity .44s ease !important;
}

.project02-enter {
  animation: project02Enter .42s cubic-bezier(.2,.72,.18,1) both;
}

@keyframes project02Enter {
  from {
    opacity: 0;
    transform: translateY(22px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* The lower row becomes 3 equal cards while Event is open. */
.portfolio-secondary-row.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 900px) {
  .portfolio-secondary-row.three-up {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .portfolio-secondary-row.three-up {
    grid-template-columns: 1fr !important;
  }
}


/* V26 — simplified/stable animation + native fullscreen only */

/* The first row is now a real animating two-column grid.
   Event grows right while Project 02 physically flies off-screen. */
.portfolio-featured-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 18px;
  align-items: start !important;
  overflow: visible !important;
  transition: grid-template-columns .72s cubic-bezier(.2,.72,.18,1);
}

.portfolio-featured-row.is-open {
  grid-template-columns: minmax(0, 1fr) 0fr !important;
}

.portfolio-featured-row .event-project {
  width: 100% !important;
  min-width: 0 !important;
}

.portfolio-featured-row .project-02 {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  opacity: 1 !important;
  transform: translateX(0);
  pointer-events: auto !important;
  overflow: visible !important;
  transition:
    transform .72s cubic-bezier(.2,.72,.18,1),
    opacity .38s ease !important;
}

.portfolio-featured-row.is-open .project-02 {
  transform: translateX(115vw) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Remove old relocation / ghost styles from having any effect. */
.project-02.is-flying-out,
.project-02.is-relocated,
.project-02.is-returning,
.project02-flight-ghost,
.project02-enter {
  animation: none !important;
}

.portfolio-secondary-row,
.portfolio-secondary-row.three-up {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px;
}

/* We use Safari/browser native video controls and fullscreen now.
   Hide our old custom fullscreen button completely. */
.video-fullscreen {
  display: none !important;
}

/* The native fullscreen is browser-controlled; keep the video itself contained
   wherever the browser honors fullscreen CSS. */
.event-video:fullscreen,
.event-video:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
}

/* Infinite rail: both arrows remain available. */
.photo-rail-prev,
.photo-rail-next {
  opacity: 1 !important;
  pointer-events: auto !important;
}

@media (max-width: 760px) {
  .portfolio-featured-row,
  .portfolio-featured-row.is-open {
    grid-template-columns: 1fr !important;
  }

  .portfolio-featured-row.is-open .project-02 {
    display: none;
  }
}


/* V27 — fullscreen fix copied back to V21 behavior.
   Important: this selector is intentionally more specific than the open-state
   object-fit: cover rule, so fullscreen wins in Safari. */
.event-project.is-open .event-video:fullscreen,
.event-project.is-open .event-video:-webkit-full-screen,
.event-video:fullscreen,
.event-video:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  background: #000 !important;
}


/* V28 — Project 02 reappears below + smoother UX after opening Event */

.portfolio-secondary-row.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.project02-lower-clone {
  opacity: 0;
  transform: translateX(34px) translateY(10px) scale(.985);
  animation: project02LowerEnter .48s cubic-bezier(.2,.72,.18,1) forwards;
}

.project02-lower-clone.is-leaving {
  animation: project02LowerLeave .28s ease forwards;
}

@keyframes project02LowerEnter {
  to {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

@keyframes project02LowerLeave {
  to {
    opacity: 0;
    transform: translateX(24px) translateY(8px) scale(.985);
  }
}

@media (max-width: 1050px) {
  .portfolio-secondary-row.three-up {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .portfolio-secondary-row.three-up {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================
   V29 — MOBILE ONLY
   Desktop remains exactly as in V28.
   ========================================================== */
@media (max-width: 760px) {

  /* 1) HERO — keep the dot attached to "Feel Real." */
  .hero h1 > span.hero-signature {
    white-space: nowrap !important;
    max-width: 100%;
    padding-right: 0 !important;
  }

  .hero h1 > span.hero-signature .punctuation {
    display: inline !important;
    white-space: nowrap !important;
    margin-left: .025em !important;
  }

  /* OPEN EVENT — clean single-column mobile case study */
  .event-project.is-open,
  .event-project.is-open .event-project-inner {
    width: 100% !important;
    border-radius: var(--radius) !important;
    overflow: hidden !important;
  }

  .event-project.is-open .event-project-inner {
    display: flex !important;
    flex-direction: column !important;
    background: #0D0D0D !important;
  }

  /* 2) VIDEO — centered, never pushed to the right */
  .event-project.is-open .event-video-panel {
    order: 1;
    width: 100% !important;
    height: auto !important;
    padding: 18px 18px 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    box-sizing: border-box;
  }

  .event-project.is-open .event-video-frame {
    width: min(100%, 390px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 9 / 16 !important;
    margin: 0 auto !important;
    border-radius: 20px !important;
    overflow: hidden !important;
  }

  .event-project.is-open .event-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  /* DETAILS become: thumbnails -> text -> close */
  .event-project.is-open .event-details {
    order: 2;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 16px 18px 22px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
    box-sizing: border-box;
    overflow: visible !important;
    border-radius: 0 0 var(--radius) var(--radius) !important;
  }

  /* 3/4) MINI PHOTO TILES — no giant vertical photo rail on mobile */
  .event-photo-rail-wrap {
    order: 1;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin: 0 0 24px;
  }

  .event-photo-rail {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  .event-photo {
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    aspect-ratio: 4 / 5 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  .event-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Infinite-carousel copies are unnecessary on mobile.
     JS marks them with .rail-clone. */
  .event-photo.rail-clone {
    display: none !important;
  }

  .photo-rail-prev,
  .photo-rail-next {
    display: none !important;
  }

  /* Text after thumbnails */
  .event-details-top {
    order: 2;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    margin: 0 !important;
  }

  .event-details-top > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .event-details-top .project-kicker {
    margin: 0 !important;
  }

  .event-details-top p {
    margin: 0 !important;
    font-size: 1rem;
    line-height: 1.65;
  }

  /* Close button last, full width */
  .event-close {
    order: 3;
    width: 100% !important;
    min-height: 52px;
    margin-top: 2px;
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 430px) {
  .hero h1 > span.hero-signature {
    font-size: .92em;
  }

  .event-project.is-open .event-video-frame {
    width: min(100%, 360px) !important;
  }

  .event-photo-rail {
    gap: 6px !important;
  }

  .event-photo {
    border-radius: 10px !important;
  }
}


/* ==========================================================
   V30 — MULTI-PROJECT PORTFOLIO SYSTEM
   Everything outside portfolio remains V29.
   ========================================================== */

.v30-portfolio {
  width: 100%;
}

.v30-grid,
.v30-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.v30-card {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    opacity .35s ease,
    transform .55s cubic-bezier(.2,.72,.18,1);
}

.v30-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0D0D0D;
}

.v30-card-media > video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transition: transform .45s ease;
}

.v30-card:hover .v30-card-media > video {
  transform: scale(1.025);
}

.v30-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.12) 48%, rgba(0,0,0,.72) 100%);
}

.v30-placeholder {
  color: #fff;
}

.v30-burgundy {
  background:
    radial-gradient(circle at 70% 24%, rgba(255,255,255,.18), transparent 22%),
    linear-gradient(145deg, #732F3B 0%, #73030D 52%, #161013 100%);
}

.v30-dark {
  background:
    radial-gradient(circle at 26% 22%, rgba(255,255,255,.12), transparent 18%),
    linear-gradient(145deg, #3d3d40, #121214 70%);
}

.v30-soft {
  color: #111;
  background:
    radial-gradient(circle at 68% 26%, rgba(115,3,13,.18), transparent 20%),
    linear-gradient(145deg, #e6e2e2, #bdb7ba 48%, #777176 100%);
}

.v30-card-copy {
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.v30-card-copy span,
.v30-kicker {
  display: block;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .15em;
  opacity: .68;
}

.v30-card-copy h3 {
  margin: 8px 0 0;
  font-family: "InterLocal", Inter, Arial, sans-serif;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: .84;
  letter-spacing: -.055em;
}

.v30-card-copy button,
.v30-close,
.v30-gallery-arrow {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(10,10,10,.20);
  color: #fff;
  border-radius: 999px;
  padding: 11px 14px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  cursor: pointer;
}

.v30-soft .v30-card-copy button {
  border-color: rgba(13,13,13,.16);
  background: rgba(255,255,255,.46);
  color: #111;
}

/* ---- expanded case study ---- */
.v30-expanded {
  display: none;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0D0D0D;
  color: #F2F2F2;
}

.v30-expanded.is-visible {
  display: block;
  animation: v30StageEnter .58s cubic-bezier(.2,.72,.18,1) both;
}

.v30-expanded.is-switching .v30-expanded-inner {
  opacity: .20;
  transform: translateX(-18px) scale(.995);
}

@keyframes v30StageEnter {
  from {
    opacity: 0;
    transform: scale(.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.v30-expanded-inner {
  display: grid;
  grid-template-columns: minmax(300px, .76fr) minmax(0, 1.24fr);
  min-height: 0;
  transition: opacity .22s ease, transform .32s ease;
}

.v30-main-media {
  padding: 28px 0 28px 28px;
  display: grid;
  place-items: center;
  min-width: 0;
}

.v30-main-media-frame {
  width: auto;
  height: min(72vh, 760px);
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #080808;
  display: grid;
  place-items: center;
}

.v30-main-media-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.v30-main-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 32%, rgba(115,3,13,.22), transparent 28%),
    linear-gradient(145deg, #242126, #0D0D0D);
  color: rgba(255,255,255,.68);
}

.v30-main-placeholder strong {
  display: block;
  font-size: 1rem;
  letter-spacing: .12em;
  margin-bottom: 8px;
}

.v30-main-placeholder span {
  font-size: .78rem;
  opacity: .65;
}

.v30-details {
  padding: 28px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: calc(min(72vh, 760px) + 56px);
  overflow: hidden;
}

.v30-details-head {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}

.v30-details-head > div {
  display: grid;
  grid-template-columns: .46fr 1.54fr;
  gap: 24px;
}

.v30-details-head p {
  margin: 0;
  color: rgba(255,255,255,.60);
  line-height: 1.65;
}

.v30-gallery-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.v30-gallery {
  height: 100%;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 78px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.v30-gallery::-webkit-scrollbar { display: none; }

.v30-photo {
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: zoom-in;
  background: #171717;
}

.v30-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.v30-photo-placeholder {
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  color: rgba(255,255,255,.36);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .10em;
}

.v30-gallery-arrow {
  position: absolute;
  z-index: 8;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  border-radius: 50%;
}

.v30-gallery-prev { left: 16px; }
.v30-gallery-next { right: 16px; }

/* ---- the 3 inactive cards below ---- */
.v30-shelf {
  display: none;
  margin-top: 18px;
}

.v30-shelf.is-visible {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.v30-shelf .v30-card {
  animation: v30ShelfIn .44s cubic-bezier(.2,.72,.18,1) both;
}

.v30-shelf .v30-card.is-arriving {
  animation: v30OldProjectDown .48s cubic-bezier(.2,.72,.18,1) both;
}

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

@keyframes v30OldProjectDown {
  from { opacity: 0; transform: translateY(-18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* fullscreen from V29/V27 behavior */
.v30-main-media-frame video:fullscreen,
.v30-main-media-frame video:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
}

/* ==========================================================
   MOBILE — same V29 UX for whichever project is active
   ========================================================== */
@media (max-width: 760px) {
  .v30-grid {
    grid-template-columns: 1fr;
  }

  .v30-expanded {
    border-radius: var(--radius);
  }

  .v30-expanded-inner {
    display: flex;
    flex-direction: column;
  }

  .v30-main-media {
    order: 1;
    width: 100%;
    padding: 18px 18px 0;
    display: flex;
    justify-content: center;
  }

  .v30-main-media-frame {
    width: min(100%, 390px);
    height: auto;
    aspect-ratio: 9 / 16;
    margin: 0 auto;
  }

  .v30-details {
    order: 2;
    width: 100%;
    height: auto;
    padding: 16px 18px 22px;
    overflow: visible;
  }

  .v30-gallery-wrap {
    order: 1;
    width: 100%;
    height: auto;
    overflow: visible;
    margin-bottom: 24px;
  }

  .v30-gallery {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    overflow: visible;
  }

  .v30-photo,
  .v30-photo-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
  }

  .v30-gallery-arrow {
    display: none;
  }

  .v30-details-head {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
  }

  .v30-details-head > div {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .v30-close {
    order: 3;
    width: 100%;
    min-height: 52px;
  }

  .v30-shelf.is-visible {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .v30-main-media-frame {
    width: min(100%, 360px);
  }

  .v30-gallery {
    gap: 6px;
  }
}


/* ==========================================================
   V31 — portfolio fixes on top of V30
   ========================================================== */

/* Event card text must stay white on the video cover. */
.v30-card-event .v30-card-copy,
.v30-card-event .v30-card-copy span,
.v30-card-event .v30-card-copy h3 {
  color: #fff !important;
}

/* When a project is already open, the 3 cards below are clickable as a whole.
   The "ZOBACZ" button is intentionally removed from shelf cards in JS. */
.v30-shelf .v30-card {
  cursor: pointer;
}

.v30-shelf .v30-card:hover {
  transform: translateY(-3px);
}

/* Give shelf text a little more room now that there is no CTA button. */
.v30-shelf .v30-card-copy {
  right: 24px;
}

.v30-shelf .v30-card-copy > div {
  max-width: 100%;
}

/* A small focus state for keyboard navigation on shelf cards. */
.v30-shelf .v30-card[role="button"]:focus-visible {
  outline: 2px solid rgba(115,3,13,.70);
  outline-offset: 4px;
}


/* V31 carousel: seven repeated sets, visually one continuous strip. */
.v30-gallery .v31-loop-set {
  display: flex;
  flex: 0 0 auto;
  height: 100%;
  gap: 12px;
}

/* No extra visual gap between repeated sets beyond the normal item gap. */
.v30-gallery .v31-loop-set + .v31-loop-set {
  margin-left: 0;
}

@media (max-width: 760px) {
  .v30-gallery .v31-loop-set {
    display: contents;
  }
}


/* ==========================================================
   V32 — expanded "ZOBACZ WIĘCEJ" CTA
   ========================================================== */
.v32-more-link {
  width: fit-content;
  margin-top: 18px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.20);
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  color: #F2F2F2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.v32-more-link:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.07));
  border-color: rgba(255,255,255,.30);
}

@media (max-width: 760px) {
  .v32-more-link {
    width: 100%;
    min-height: 50px;
    margin-top: 18px;
  }
}


/* ==========================================================
   V33 — "ZOBACZ WIĘCEJ" in the bottom-right corner
   ========================================================== */

.v30-details {
  position: relative;
}

.v33-more-row {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 16px;
}

.v33-more-row .v32-more-link {
  margin-top: 0;
}

/* Keep the visual balance: top-right = close, bottom-right = more. */
@media (min-width: 761px) {
  .v30-gallery-wrap {
    min-height: 0;
  }

  .v33-more-row {
    min-height: 58px;
  }
}

@media (max-width: 760px) {
  /* Mobile V29-style flow stays natural rather than forcing a corner layout. */
  .v33-more-row {
    order: 3;
    width: 100%;
    padding-top: 18px;
  }

  .v33-more-row .v32-more-link {
    width: 100%;
  }

  .v30-details-head {
    order: 2;
  }

  .v30-close {
    order: 4;
  }
}


/* ==========================================================
   V35 — portfolio video covers
   Desktop: video plays only on hover.
   Mobile/touch: muted autoplay continues.
   ========================================================== */

.v30-card.v30-has-video .v30-card-copy,
.v30-card.v30-has-video .v30-card-copy span,
.v30-card.v30-has-video .v30-card-copy h3 {
  color: #fff !important;
}

.v30-card.v30-has-video .v30-card-media {
  background: #090909;
}

.v30-card .v35-preview-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.001);
  transition:
    transform .48s cubic-bezier(.2,.72,.18,1),
    filter .35s ease;
}

@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .v30-card.v30-has-video:hover .v35-preview-video {
    transform: scale(1.025);
  }
}

@media (max-width: 760px) {
  .v30-card .v35-preview-video {
    transform: none;
  }
}


/* ==========================================================
   V36 — explicit static cover images on portfolio cards
   ========================================================== */

.v30-card.v30-has-video .v30-card-media {
  position: relative;
}

.v36-static-cover {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  transition: opacity .28s ease;
  pointer-events: none;
}

.v30-card-overlay {
  z-index: 2;
}

.v30-card-copy {
  z-index: 3;
}

/* Desktop: static thumbnail until hover starts the preview. */
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .v30-card.is-preview-playing .v36-static-cover {
    opacity: 0;
  }
}

/* Touch/mobile: video continues autoplaying all the time. */
@media (max-width: 760px), (hover: none) {
  .v36-static-cover {
    display: none !important;
  }
}


/* ==========================================================
   V41 — PRODUCT / GALLERY COLOR FIX
   Keep V39 proportions. Fix only the washed-out color issue.
   ========================================================== */

/* Do not dim the whole case-study content while switching projects.
   This was also dimming the gallery images, while the lightbox
   (outside this container) showed their true colors. */
.v30-expanded.is-switching .v30-expanded-inner {
  opacity: 1 !important;
}

/* Gallery images should always render with their original colors. */
.v30-gallery,
.v30-photo,
.v30-photo img {
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
}

.v30-photo img {
  color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

/* Keep the transition feeling through movement only, not color/opacity. */
.v30-expanded.is-switching .v30-expanded-inner {
  transform: translateX(-18px) scale(.995);
}


/* ==========================================================
   V47 — MAIN PAGE PLAYER FIX (V44 BASE)
   Safari's native control bar can extend outside the video box.
   Keep the video rounded, but don't clip its native controls.
   ========================================================== */
.v30-main-media-frame {
  overflow: visible !important;
}

.v30-main-media-frame video {
  border-radius: 20px !important;
}

@media (max-width: 760px) {
  .v30-main-media-frame {
    overflow: visible !important;
  }

  .v30-main-media-frame video {
    border-radius: 20px !important;
  }
}


/* V51 — SZIMU SVG wordmark: crossfade black/white with the existing nav contrast state. */
.topbar .logo {
  position: relative;
  display: block;
  flex: 0 0 132px;
  width: 132px;
  height: 38px;
  overflow: visible;
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
}
.topbar .logo-image {
  position: absolute;
  left: 0;
  top: 50%;
  display: block;
  width: 132px;
  height: 33px;
  object-fit: contain;
  object-position: left center;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.topbar .logo-image--white { opacity: 1; }
.topbar .logo-image--black { opacity: 0; }
.topbar.is-light .logo-image--white { opacity: 0; }
.topbar.is-light .logo-image--black { opacity: 1; }
.portfolio-page .topbar .logo-image--white { opacity: 1; }
.portfolio-page .topbar .logo-image--black { opacity: 0; }
@media (max-width: 650px) {
  .topbar .logo {
    flex-basis: 118px;
    width: 118px;
  }
  .topbar .logo-image {
    width: 118px;
    height: 29.5px;
  }
}


/* V52 — mobile homepage portfolio cards are fully clickable.
   Desktop keeps the visible ZOBACZ button unchanged. */
@media (max-width: 760px) {
  .v30-grid > .v30-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .v30-grid > .v30-card .v30-card-copy {
    left: 20px;
    right: 20px;
    bottom: 18px;
    gap: 0;
  }

  .v30-grid > .v30-card .v30-card-copy > div {
    width: 100%;
    max-width: 100%;
  }

  .v30-grid > .v30-card .v30-card-copy button {
    display: none !important;
  }

  .v30-grid > .v30-card:active {
    transform: scale(.995);
  }

  .v30-grid > .v30-card:focus-visible {
    outline: 2px solid rgba(115, 3, 13, .75);
    outline-offset: 4px;
  }
}
