:root {
  color-scheme: light;
  --paper: #f2f0e6;
  --ink: #151515;
  --purple: #9a1cce;
  --lime: #c0e73b;
  --lilac: #9896c7;
  --sand: #d3cab5;
  --stone: #b6ac97;
  --gutter: clamp(1.15rem, 5vw, 6rem);
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
:is(h1, h2, h3, p, figure) { margin: 0; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 100rem); margin-inline: auto; }
.skip { position: absolute; left: var(--gutter); top: 0; padding: .8rem; background: var(--lime); transform: translateY(-110%); z-index: 2; }
.skip:focus { transform: none; }
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid;
  padding-block: clamp(1.2rem, 3.65vw, 3.5rem) clamp(1rem, 2.25vw, 2.5rem);
}
.wordmark { font-size: clamp(1.4rem, 2.95vw, 3rem); font-weight: 900; letter-spacing: -.065em; text-decoration: none; }
.wordmark span { color: var(--purple); font-weight: 400; font-size: .74em; margin-left: .08em; }
nav { display: flex; flex-wrap: wrap; justify-content: end; gap: .4em; font-size: clamp(.72rem, 1.88vw, 1.8rem); font-weight: 500; text-transform: uppercase; }
nav a { text-decoration: none; }
nav a:hover { color: var(--purple); }

.hero {
  display: grid;
  grid-template-columns: 61% 36%;
  justify-content: space-between;
  align-items: start;
  padding-block: clamp(2.4rem, 5vw, 5.2rem) clamp(3.25rem, 6.4vw, 7rem);
}
.kicker { color: var(--purple); font-size: clamp(.83rem, 2.05vw, 2rem); font-weight: 500; letter-spacing: .17em; text-transform: uppercase; }
.hero-kicker { grid-column: 1 / -1; color: var(--ink); margin-bottom: clamp(2rem, 4.75vw, 5rem); }
.hero h1 {
  font-size: clamp(1rem, 7.85vw, 8.55rem);
  font-weight: 900;
  letter-spacing: -.09em;
  line-height: 1.03;
}
.hero h1 span { display: block; white-space: nowrap; width: max-content; position: relative; }
.hero h1 .highlight { margin-top: .19em; isolation: isolate; }
.highlight::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -.04em -1.42em -.11em -.15em;
  background: var(--lime);
  transform: rotate(-2deg);
}
.hero h1 .underlined { margin-top: .08em; color: var(--purple); }
.underlined::after {
  content: "";
  position: absolute;
  inset: auto 4% -.27em 1%;
  height: .25em;
  border-top: .065em solid;
  border-radius: 50%;
}
.hero-copy p {
  max-width: 29em;
  margin-block: clamp(2.5rem, 5vw, 5.1rem) clamp(1.3rem, 3.2vw, 3.2rem);
  font-size: clamp(1rem, 2.18vw, 2.15rem);
  line-height: 1.27;
  letter-spacing: -.045em;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .24em;
  border-radius: 99rem;
  background: var(--ink);
  color: white;
  padding: .96em 2.45em;
  font-size: clamp(1rem, 2.1vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -.04em;
  text-decoration: none;
}
.pill:hover { background: var(--purple); }

.portrait { position: relative; isolation: isolate; aspect-ratio: .755; display: grid; place-items: center; }
.portrait::before { content: ""; position: absolute; inset: 0; border-radius: .55rem; background: var(--lilac); transform: rotate(5deg); z-index: -2; }
.strip { position: relative; padding: .93em var(--gutter); text-align: center; background: var(--lime); font-size: clamp(.9rem, 2.45vw, 2.45rem); font-weight: 850; text-transform: uppercase; letter-spacing: -.045em; }
.strip p { text-wrap: balance; }
.strip span { font-size: .75em; }
.down {
  display: grid;
  place-items: center;
  width: clamp(2.25rem, 4vw, 4rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: clamp(1.35rem, 2.65vw, 2.6rem);
  font-weight: 400;
  text-decoration: none;
  line-height: 1;
}
.down:hover { background: var(--purple); }
.strip .down { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 8%); }

.section { padding-block: clamp(3.25rem, 5.25vw, 6rem); }
.section h2 { font-size: clamp(2.6rem, 6.75vw, 7rem); font-weight: 900; line-height: .99; letter-spacing: -.072em; margin-top: .18em; text-wrap: balance; }
.portfolio h2, .about h2 { text-wrap: initial; }
.portfolio .down { margin: 1rem auto -1.5rem; }

.services { background: var(--ink); color: var(--paper); padding-block: clamp(2.75rem, 4.6vw, 5rem); }
.services .kicker { color: var(--lime); }
.about-grid { display: grid; grid-template-columns: 31% 1fr; align-items: center; gap: 5%; margin-top: clamp(2rem, 3.75vw, 4rem); }
.process { background: #e3dff0; }
.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1rem, 2.7vw, 2.7rem);
  margin: clamp(1.5rem, 4vw, 4rem) 0;
  padding: 0;
  list-style-position: inside;
}
.process-list li { border-top: 2px solid var(--ink); padding-top: .75rem; }
.process-list li::marker { color: var(--purple); font-weight: 700; }
.process-list p, .statement p { margin-top: .5em; line-height: 1.5; }
.statement { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.statement p { margin: 0; max-width: 53ch; }
.contact { background: var(--lime); }
.contact h2 span { color: var(--purple); font-size: .65em; }
.contact p:not(.kicker) { margin-top: 1.3rem; max-width: 45ch; line-height: 1.45; font-size: clamp(1rem, 1.65vw, 1.6rem); }
.contact-links { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.6rem; font-size: clamp(1rem, 2vw, 1.95rem); }
.contact .text-link { color: var(--ink); }
.footer { display: flex; justify-content: space-between; gap: .75rem; padding-block: 1.2rem; font-size: .88rem; }

@media (max-width: 760px) {
  .masthead { flex-wrap: wrap; }
  nav { gap: .65rem; }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2rem, 10.95vw, 5.1rem); }
  .hero-copy p { max-width: 34ch; }
  .portrait { width: 65%; margin: 2.35rem 8% 0 auto; }
  .strip { padding-bottom: 1.35em; }
  .strip .down { transform: translate(-50%, 50%); }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 40% 1fr; }
}
@media (max-width: 470px) {
  .about-grid, .statement { grid-template-columns: 1fr; }
}

/* Editorial Autoral, second revision */
.wordmark { display: grid; gap: .27em; line-height: .98; letter-spacing: -.065em; }
.wordmark strong { font-weight: 900; }
.wordmark small { font-size: clamp(.68rem, 1.12vw, 1.05rem); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
nav { column-gap: clamp(.55rem, 1.4vw, 1.5rem); font-size: clamp(.72rem, 1.28vw, 1.25rem); }
.hero { padding-top: clamp(2.5rem, 4vw, 4.6rem); }
.hero-kicker { margin-bottom: clamp(1.7rem, 3.55vw, 3.75rem); }
.hero h1 { letter-spacing: -.078em; }
.hero-copy p { letter-spacing: -.035em; max-width: 25em; }
.editorial-portrait { width: 94%; margin: 0 4% 0 auto; aspect-ratio: .81; }
.editorial-portrait::before {
  inset: 4% -4% 2% 5%;
  transform: rotate(6deg);
  border-radius: 0;
  background: var(--lime);
}
.portrait-space, .behind-space {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: start;
  padding: 6%;
  background: var(--lilac);
}
.portrait-space {
  position: absolute;
  inset: 0;
  transform: rotate(-3deg);
  background: linear-gradient(142deg, #b3b1d9, var(--lilac) 60%, #a3a0cc);
}
.portrait-space span, .behind-space span {
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
  border-top: 1px solid currentColor;
  padding-top: .5rem;
}
.editorial-portrait .portrait-spark { position: absolute; top: -5%; right: -8%; color: var(--purple); line-height: 1; font-size: clamp(3rem, 7vw, 7rem); }

.editorial-gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: start;
  gap: clamp(2.5rem, 5vw, 5.5rem) clamp(1.35rem, 5vw, 5rem);
  margin-top: clamp(2rem, 4vw, 4.5rem);
}
.gallery-item { min-width: 0; }
.gallery-item:nth-child(even) { margin-top: clamp(2rem, 5.4vw, 5.75rem); }
.gallery-item:nth-child(4n + 3) { width: 88%; justify-self: end; }
.gallery-item:last-child { grid-column: 2; margin-top: -8%; width: 86%; }
.gallery-media {
  display: flex;
  align-items: end;
  padding: clamp(.65rem, 2vw, 2rem);
  background: var(--lilac);
  border: 1px solid #15151517;
}
.gallery-media span { border-top: 1px solid currentColor; padding-top: .4em; font-size: clamp(.75rem, 1.05vw, 1rem); font-weight: 650; }
.frame-wide { aspect-ratio: 1.75; }
.frame-tall { aspect-ratio: .86; background: var(--sand); }
.frame-landscape { aspect-ratio: 1.45; background: #dfd9ec; }
.frame-portrait { aspect-ratio: 1.02; background: #dbe999; }
.gallery-item:nth-child(6) .gallery-media { background: var(--sand); }
.gallery-caption { margin-top: .85rem; display: grid; gap: .4rem; line-height: 1.45; max-width: 52ch; }
.gallery-caption h3 { font-size: clamp(1.55rem, 3vw, 3.25rem); line-height: 1.03; letter-spacing: -.047em; }
.gallery-category, .gallery-status { font-size: .83rem; font-weight: 700; color: #7510a0; }
.portfolio .down { margin-top: 2rem; }

.services { background: #e5e0ef; color: var(--ink); }
.services .kicker { color: var(--purple); }
.services :focus-visible { outline-color: var(--purple); }
.service-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(2.4rem, 5vw, 5.5rem) clamp(1.75rem, 6vw, 6rem);
  margin-top: clamp(2.3rem, 4vw, 4.2rem);
}
.service { padding-top: 1.2rem; border-top: 2px solid var(--ink); }
.service svg { width: 2.8rem; height: 2.8rem; fill: none; stroke: var(--purple); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .85rem; }
.service h3, .custom-project h3 { font-size: clamp(1.85rem, 3.8vw, 4.1rem); line-height: 1.04; letter-spacing: -.057em; text-wrap: balance; }
.service p, .service li, .custom-project p { max-width: 54ch; font-size: clamp(1rem, 1.18vw, 1.2rem); line-height: 1.55; }
.service p { margin-top: .75em; }
.service .question { font-weight: 750; font-size: clamp(1.1rem, 1.55vw, 1.6rem); line-height: 1.32; }
.service ul { padding-left: 1.25em; }
.service li + li { margin-top: .2em; }
.service li::marker { color: var(--purple); }
.service blockquote { margin: 1.3rem 0 0; padding-left: .8rem; border-left: .3rem solid var(--purple); font-size: clamp(1.05rem, 1.5vw, 1.55rem); font-weight: 750; max-width: 35ch; }
.production { margin-top: clamp(1.4rem, 3vw, 3.2rem); }
.management { grid-column: 1 / -1; width: min(100%, 61rem); justify-self: center; }
.management ul { columns: 2; column-gap: 2.2rem; }
.management li { break-inside: avoid; }
.custom-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 5.5rem);
  padding: clamp(1.45rem, 3.35vw, 3.6rem);
  background: var(--lime);
}
.custom-project h3 { font-size: clamp(1.65rem, 3vw, 3rem); }
.custom-project .pill { margin-top: .9rem; padding: .75em 1.2em; font-size: 1rem; }
.about-grid { grid-template-columns: .85fr 1.15fr; gap: 7%; }
.behind-placeholder { position: relative; aspect-ratio: 1.3; transform: rotate(-3deg); isolation: isolate; }
.behind-placeholder::before { content: ""; position: absolute; inset: 5% -3% -4% 3%; background: var(--sand); transform: rotate(7deg); z-index: -1; }
.behind-space { height: 100%; }
.behind-spark { position: absolute; top: -.3em; right: -.32em; color: var(--purple); font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1; }
.about-lead { font-size: clamp(1.4rem, 2.55vw, 2.65rem); line-height: 1.22; letter-spacing: -.055em; font-weight: 800; }
.about-copy p + p, .process-intro { margin-top: 1rem; max-width: 57ch; line-height: 1.57; font-size: clamp(1rem, 1.24vw, 1.25rem); }
.process-list h3, .statement h3 { font-size: clamp(1.2rem, 2vw, 2rem); letter-spacing: -.047em; }
.text-link { font-weight: 750; text-underline-offset: .15em; }

@media (max-width: 980px) {
  .process-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .masthead { align-items: start; }
  .editorial-portrait { width: 72%; margin: 2.75rem 9% 0 auto; }
  .service-layout { grid-template-columns: 1fr; }
  .production { margin-top: 0; }
  .management ul { columns: auto; }
  .custom-project, .about-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 2rem; }
  .behind-placeholder { width: 84%; margin-left: .4rem; }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  nav { justify-content: start; }
  .editorial-gallery { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-item:nth-child(even), .gallery-item:nth-child(4n + 3), .gallery-item:last-child { grid-column: auto; margin-top: 0; }
  .gallery-item:nth-child(even) { width: 84%; justify-self: end; }
  .gallery-item:nth-child(4n + 3) { width: 90%; justify-self: start; }
  .gallery-item:last-child { width: 89%; justify-self: end; }
}

/* Reading order and section rhythm */
.hero h1 { letter-spacing: -.063em; line-height: 1.065; }
.section h2 { letter-spacing: -.055em; line-height: 1.035; }
.gallery-caption h3 { line-height: 1.1; letter-spacing: -.04em; }
.gallery-category, .gallery-status { font-size: .9rem; }
.gallery-media span { font-size: clamp(.87rem, 1.05vw, 1rem); }
.editorial-gallery .gallery-item:last-child { grid-column: auto; margin-top: 0; width: auto; }
.featured-gallery .gallery-item:nth-child(3) { width: 83%; justify-self: end; }
.more-work .gallery-item:nth-child(odd) { width: 92%; }
.more-work .gallery-item:last-child { width: 86%; justify-self: start; margin-top: clamp(1.5rem, 4vw, 4rem); }

/* Each service reads as one unbroken block. */
.services { background: var(--paper); border-top: 1px solid #15151530; }
.service-layout {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(1.3rem, 3.8vw, 3.8rem);
  align-items: start;
}
.service {
  --rule: #15151585;
  --icon: var(--ink);
  background: var(--lime);
  padding: clamp(1.4rem, 3.3vw, 3.6rem);
  border: 0;
}
.production { background: #c5c1e4; margin-top: clamp(1rem, 3.4vw, 3.75rem); }
.management {
  --rule: #ffffffa6;
  --icon: var(--lime);
  background: #701597;
  color: white;
  width: min(100%, 69rem);
}
.service svg { width: 3.55rem; height: 3.55rem; margin-bottom: 1.1rem; stroke: var(--icon); }
.service h3 { font-size: clamp(1.9rem, 3.7vw, 3.8rem); letter-spacing: -.05em; text-wrap: initial; }
.service .question { margin-top: 1em; }
.service p, .service li { line-height: 1.55; }
.service li + li { margin-top: .3em; }
.service li::marker { color: var(--icon); }
.service blockquote { margin-top: 1.45rem; padding: 1rem 0 0; border-left: 0; border-top: 1px solid var(--rule); }
.custom-project { background: transparent; border-block: 1px solid var(--ink); padding-inline: 0; }

/* Connected sequence, in page order on both axes. */
.process-list {
  list-style: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-block: clamp(2rem, 4vw, 4rem);
}
.process-list li { position: relative; border: 0; padding: 0 1rem 0 0; }
.process-list li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 1.65rem;
  left: 1.65rem;
  width: 100%;
  border-top: 1px solid #7510a080;
}
.step-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.3rem;
  aspect-ratio: 1;
  margin-bottom: .9rem;
  border: 1px solid var(--purple);
  border-radius: 50%;
  background: var(--paper);
  color: var(--purple);
}
.step-icon svg { width: 1.85rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.process-list h3 { font-size: clamp(1.05rem, 1.85vw, 1.85rem); }
.process-list p { max-width: 23ch; }
.process-publishing {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .4rem 1.1rem;
  padding: .9rem 1.2rem;
  border-left: .26rem solid var(--purple);
  background: var(--paper);
}
.process-publishing h3 { color: #7510a0; font-size: 1rem; }
.process-publishing p { line-height: 1.5; }
.process-note { margin-top: 1.1rem; font-size: .92rem; }

@media (max-width: 760px) {
  .service-layout { grid-template-columns: 1fr; }
  .production { margin-top: 0; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li { display: grid; grid-template-columns: 3.3rem 1fr; align-items: start; gap: 1rem; padding: 0 0 1.4rem; }
  .process-list li:last-child { padding-bottom: 0; }
  .process-list li:not(:last-child)::before {
    top: 1.65rem;
    bottom: -1.65rem;
    width: 0;
    border-top: 0;
    border-left: 1px solid #7510a080;
  }
  .step-icon { margin-bottom: 0; }
  .process-list h3 { margin-top: .12rem; font-size: 1.2rem; }
  .process-list p { margin-top: .25rem; max-width: 35ch; }
}
@media (max-width: 520px) {
  .featured-gallery .gallery-item:nth-child(3) { width: 92%; justify-self: start; }
  .more-work .gallery-item:last-child { margin-top: 0; justify-self: end; }
  .hero h1 { font-size: clamp(1.8rem, 10.65vw, 5.1rem); }
  .strip .down { bottom: -.25rem; }
}

.strip .strip-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .35em clamp(.38rem, 1.25vw, 1.3rem);
  letter-spacing: -.025em;
  font-size: clamp(.95rem, 2.15vw, 2.25rem);
}
.strip-words span { font-size: inherit; white-space: nowrap; }
.strip-words b { color: #701597; font-size: .85em; }
.strip .down { bottom: 0; transform: translate(-50%, 54%); }

.reel-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.7rem, 2vw, 2rem);
  width: min(100%, 48rem);
  margin: clamp(1.5rem, 3vw, 2.8rem) 0 0;
}
.showcase-item { min-width: 0; }
.showcase-item figcaption { margin-top: .55rem; font-size: clamp(.95rem, 1.55vw, 1.4rem); font-weight: 760; }
.showcase-item .media-tile { width: 100%; aspect-ratio: 9 / 16; }
.showcase-item:nth-child(2) .media-tile { background: var(--sand); }
.showcase-item:nth-child(3) .media-tile { background: #dbe999; }
#trabalhos { padding-bottom: clamp(2.3rem, 4vw, 4rem); }

.service { --emphasis: #541578; }
.management { --emphasis: var(--lime); }
.service svg { width: clamp(3.8rem, 5.8vw, 5.8rem); height: auto; stroke-width: 1.7; }
.service p strong { color: var(--emphasis); font-weight: 800; }
.service .question { font-size: clamp(1.13rem, 1.52vw, 1.6rem); }
.service ul { list-style: none; padding: 0; margin-block: .95rem; }
.service li { position: relative; padding-left: 1.2em; }
.service li::before { content: "✦"; position: absolute; left: 0; top: .17em; font-size: .75em; color: var(--emphasis); }
.service .event-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.event-tags li {
  padding: .28rem .58rem;
  margin: 0;
  border: 1px solid #15151567;
  border-radius: 10rem;
  font-size: .86rem;
  font-weight: 650;
}
.event-tags li::before { content: none; }
.service .delivery { font-weight: 750; margin-top: 1rem; }
.service .deliveries { margin-top: .35rem; }
.service blockquote strong { color: var(--emphasis); display: block; font-weight: 850; margin-top: .12em; }

.custom-project {
  background: #e5e0ef;
  padding-inline: clamp(1.4rem, 4vw, 4rem);
  border: 0;
}
.custom-project h3 { position: relative; max-width: 16ch; }
.custom-star {
  display: block;
  color: var(--purple);
  font-size: 1.2em;
  line-height: 1;
  margin-bottom: .32em;
}
.custom-project mark { background: var(--lime); color: inherit; box-shadow: .09em 0 var(--lime), -.09em 0 var(--lime); }

.project-gallery { margin-top: clamp(1.5rem, 3vw, 3.2rem); }
.project-entry {
  --tile-height: clamp(9.25rem, 17.5vw, 17rem);
  border-top: 1px solid #15151566;
  padding-block: clamp(1.15rem, 2.3vw, 2.5rem);
}
.project-entry:nth-child(even) { margin-left: clamp(0rem, 3.3vw, 4rem); }
.project-entry:last-child { padding-bottom: 0; }
.project-header { display: flex; align-items: end; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1rem; }
.project-copy { display: grid; gap: .35rem; max-width: 62ch; line-height: 1.42; }
.project-copy h3 { font-size: clamp(1.45rem, 2.9vw, 3rem); line-height: 1.06; letter-spacing: -.045em; }
.project-detail { font-size: .92rem; }
.project-strip {
  display: flex;
  gap: .7rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding-bottom: .45rem;
  scrollbar-color: #a4a0be transparent;
  scrollbar-width: thin;
}
.project-strip .media-tile { flex: none; height: var(--tile-height); scroll-snap-align: start; }
.project-strip .media-video { aspect-ratio: 9 / 16; }
.project-strip .media-image { aspect-ratio: 1.52; }
.project-strip .media-image:nth-of-type(even) { background: var(--sand); }
.project-entry:nth-child(even) .media-video { background: #dbe999; }
.media-tile {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: start;
  overflow: hidden;
  isolation: isolate;
  padding: .75rem;
  border: 0;
  background: var(--lilac);
  color: var(--ink);
  text-align: left;
}
.media-tile.media-image { background: #dfd9ec; }
button.media-tile { cursor: pointer; }
button.media-tile:hover, button.media-tile:focus-visible { outline: 3px solid var(--purple); outline-offset: -3px; }
.media-tile img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.media-label { padding: .25rem .48rem; background: var(--paper); font-size: .85rem; font-weight: 700; }
button.media-video .media-label::before { content: "▶ "; }
.carousel-controls:not([hidden]) { display: flex; flex: none; gap: .4rem; }
.carousel-controls button, .media-dialog button {
  width: 2.75rem;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font-size: 1.24rem;
  line-height: 1;
  cursor: pointer;
}
.carousel-controls button:not(:disabled):hover { color: white; background: var(--ink); }
.carousel-controls button:disabled { opacity: .45; cursor: default; }
.media-dialog {
  max-width: min(92vw, 64rem);
  max-height: 92dvh;
  padding: clamp(.85rem, 2vw, 1.65rem);
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.media-dialog::backdrop { background: #151515d9; }
.media-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: .75rem; }
.media-dialog-header h2 { font-size: clamp(1.05rem, 2vw, 1.5rem); }
.media-dialog img, .media-dialog video { display: block; max-width: 100%; max-height: 74dvh; margin: auto; object-fit: contain; }
body:has(.media-dialog[open]) { overflow: hidden; }

@media (max-width: 760px) {
  .reel-showcase {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(42%, 13rem);
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    overscroll-behavior-inline: contain;
    padding-bottom: .45rem;
    scrollbar-color: #a4a0be transparent;
    scrollbar-width: thin;
  }
  .showcase-item { scroll-snap-align: start; }
  .project-entry:nth-child(even) { margin-left: 0; }
}
@media (max-width: 480px) {
  .strip .strip-words { font-size: .84rem; column-gap: .45rem; }
  .strip { padding-bottom: 1.5em; }
  .project-header { align-items: start; flex-wrap: wrap; }
  .carousel-controls { margin-left: auto; }
  .carousel-controls button { width: 2.25rem; }
}

.portrait-space, .behind-space { overflow: hidden; padding: 0; }
.portrait-space img, .behind-space img { width: 100%; height: 100%; object-fit: cover; }
.portrait-space img { object-position: center 42%; }
.behind-space img { object-position: center 53%; }
.media-tile img { display: block; }
.media-dialog video { width: auto; max-width: min(100%, 80vw); }
