/* Fidelity-preserving responsive fixes layered over the original portfolio. */

/* Keep the pre-hydration hero behind a stable cover until the progressive
   hero layer, its fonts and its measurements are all ready. The React loader
   and language gate sit above this cover (z-index 400/300), so their existing
   behavior is preserved without exposing the unenhanced hero between them. */
html.portfolio-booting::before {
  content: "";
  position: fixed;
  z-index: 250;
  inset: 0;
  background: var(--ink, #050505);
  opacity: 1;
  pointer-events: auto;
  transition: opacity 260ms cubic-bezier(.22, 1, .36, 1);
}

/* Keep the server-rendered layout measurable while the progressive layer is
   being prepared, but never expose the unenhanced page between loader states. */
html.portfolio-booting:not(.portfolio-revealing) body > :not(.site-loader):not(.language-gate) {
  visibility: hidden !important;
}

/* React owns its loader and may unmount it before the progressive hero is
   ready. This synchronized copy keeps the approved loading screen visible
   through that final preparation interval. */
.site-loader.portfolio-boot-loader {
  z-index: 401;
  opacity: 1;
  visibility: visible !important;
  transition: opacity 260ms cubic-bezier(.22, 1, .36, 1);
}

html.portfolio-revealing .site-loader.portfolio-boot-loader {
  opacity: 0;
  pointer-events: none;
}

/* Project tags use one consistent, text-only underline interaction. Keep
   them above the card sweep and out of the shared button fill animation. */
.project-grid .project-tags {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.project-grid .project-tag-link {
  background-image: none !important;
  text-decoration: none !important;
  transform: none !important;
  transition: none !important;
  position: relative;
  z-index: 3;
  overflow: visible !important;
  isolation: auto !important;
  box-shadow: none;
}

.project-grid .project-tag-link::before {
  content: none !important;
  display: none !important;
}

.project-grid .project-tag-link:is(:hover, :focus, :focus-visible, :active) {
  color: inherit !important;
  text-decoration-line: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px;
  transform: none !important;
  box-shadow: none !important;
}

html.portfolio-booting.portfolio-revealing::before {
  opacity: 0;
  pointer-events: none;
}

html.portfolio-booting .hero:not(.hero-waiting) :is(
  .hero-name-line,
  .hero-kicker,
  .hero-registration,
  .hero-asterisk-3d,
  .hero-bottom
) {
  animation-play-state: paused !important;
}

:where(h1, h2, h3, h4, h5, h6, strong, b, a, button, .project-title, .software-name) {
  hyphens: none;
  word-break: normal;
}

.mega {
  overflow-wrap: normal;
  white-space: nowrap;
}

.work > .mega {
  font-size: clamp(30px, 10.25vw, 190px);
  line-height: 0.78;
}

.mega .inline-mark,
.brand-note .note-mark,
.copy-confirmation .button-mark,
.marquee-item .marquee-mark {
  break-before: avoid;
  white-space: nowrap;
}

.project-cta,
.project-number,
.poster-index,
.language-switch,
.socials a,
.case-nav button,
.modal-top button,
footer a {
  white-space: nowrap;
}

.project-image img,
.popup-slide img,
.tag-project-card img {
  image-rendering: auto;
}

.project-grid > .project {
  border: 1px solid var(--white) !important;
  transition: border-color 180ms ease;
}

.project-grid > .project:is(:hover, :focus-within) {
  border-color: var(--acid) !important;
}

.project-grid > .project .project-info {
  background-color: var(--ink) !important;
  background-image: linear-gradient(to top, var(--acid) 0 50%, var(--ink) 50% 100%) !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  background-size: 100% 200% !important;
  transition: background-position var(--interaction-duration, 220ms) var(--interaction-ease, cubic-bezier(.22, 1, .36, 1)), color 90ms linear 110ms;
}

.project-grid > .project:is(:hover, :focus-within) .project-info {
  background-color: var(--ink) !important;
  background-position: center bottom !important;
  color: var(--ink) !important;
}

.project-grid > .project:is(:hover, :focus-within) .project-tags {
  color: var(--ink) !important;
  transition-delay: 110ms;
}

.project-grid > .project:is(:hover, :focus-within) .project-image img {
  filter: saturate(1.08) !important;
  transform: scale(1.06) !important;
}

.project-grid > .project .project-image[role="button"] {
  cursor: pointer;
}

.project-grid > .project .project-image[role="button"]:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: -3px;
}

.project-grid > .project { position: relative; }
.project-like {
  display: none !important;
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--acid);
  background: #050505d9;
  color: var(--white);
  font: 700 10px/1 var(--font-idv);
  letter-spacing: .08em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}
.project-like:hover,
.project-like:focus-visible,
.project-like[aria-pressed="true"] {
  background: var(--acid);
  color: var(--ink);
  transform: translateY(-2px);
}
.project-like-icon { font-size: 17px; line-height: 1; }
.project-like-count {
  min-width: 1.7em;
  padding-left: 7px;
  border-left: 1px solid currentColor;
  text-align: center;
}

@media (max-width: 760px) {
  .hero-stage {
    min-height: 72svh;
    padding: 82px 14px 14px;
  }

  .hero h1 {
    z-index: 4;
    width: 100%;
    margin: auto 0 0;
    font-size: clamp(58px, 18vw, 78px);
    letter-spacing: -.065em;
    line-height: .82;
  }

  .hero h1 .hero-name-line {
    max-width: 100%;
    white-space: nowrap;
  }

  .hero-stage > .hero-mark {
    z-index: 1;
    top: 31%;
    right: -8vw;
    font-size: 43vw;
    opacity: .82;
  }

  .hero-shapes { z-index: 1; }

  .hero-shapes .shape-square-outline {
    width: clamp(64px, 21vw, 86px);
    top: 18%;
    right: 8%;
    left: auto;
  }

  .hero-shapes .shape-triangle-fill {
    width: clamp(68px, 23vw, 92px);
    top: 34%;
    left: 24%;
  }

  .hero-bottom {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px;
    padding: 22px 14px 24px;
  }

  .hero-bottom > * {
    grid-column: 1 !important;
    justify-self: start;
    max-width: 100%;
    text-align: left !important;
  }

  .hero-bottom h2 {
    max-width: 13ch;
    font-size: clamp(26px, 8vw, 34px);
  }

  :is(
      .work > .mega,
      .about .mega,
      .experience > .mega,
      .contact > .mega,
      .courses article h3,
      .timeline h3,
      .software-name,
      .project-title,
      .contact-option strong,
      .case header h2,
      .case-intro h3,
      .tag-popup-header h2
    ) {
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  :is(.work > .mega, .about .mega, .experience > .mega, .contact > .mega) {
    white-space: nowrap !important;
  }

  .work > .mega {
    margin-block: 22vw;
    font-size: clamp(30px, 10.25vw, 78px);
  }

  .about .mega {
    font-size: 18vw;
  }

  .experience .mega {
    overflow-wrap: normal;
    white-space: nowrap;
    font-size: 10.5vw;
  }

  .experience .mega em {
    overflow-wrap: normal;
    white-space: nowrap;
  }

  .contact .mega {
    overflow-wrap: normal;
    white-space: nowrap;
    font-size: 10.8vw;
  }

  :is(
      .courses article h3,
      .timeline h3,
      .software-name,
      .project-title,
      .contact-option strong,
      .case header h2,
      .case-intro h3,
      .tag-popup-header h2
    ) {
    overflow-wrap: normal;
    word-break: normal;
  }

  .timeline h3 {
    font-size: clamp(23px, 6.8vw, 34px);
  }

  .project-grid .project-info > .project-title,
  .project-grid .project:hover .project-info > .project-title {
    font-size: clamp(20px, 5.9vw, 31px);
    text-wrap: balance;
  }

  .case header h2 {
    font-size: clamp(38px, 10.5vw, 66px);
    text-wrap: balance;
  }

  .case-intro h3 {
    font-size: clamp(27px, 7.5vw, 44px);
    text-wrap: balance;
  }

  .tag-popup-header h2 {
    font-size: clamp(31px, 8.5vw, 52px);
    text-wrap: balance;
  }

  .contact-option strong {
    font-size: clamp(30px, 9vw, 44px);
    text-wrap: balance;
  }

  .contact-option small {
    overflow-wrap: normal;
    white-space: nowrap;
    font-size: clamp(8px, 2.65vw, 10px);
  }

  .section-label {
    gap: 14px;
    font-size: clamp(8px, 2.4vw, 10px);
  }

  .section-label > span,
  .hero-kicker > span {
    flex: none;
    white-space: nowrap;
  }

  .education h2 {
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media (max-width: 390px) {
  .work > .mega {
    font-size: 9.8vw;
  }

  .about .mega {
    font-size: 17vw;
  }

  .contact .mega {
    font-size: 10.2vw;
  }

  .section-label {
    letter-spacing: 0.07em;
  }
}

/* The two ticker bands framing the About section share one treatment. */
.about + .marquee {
  background: var(--ink) !important;
  color: var(--acid) !important;
  border-top-color: var(--acid) !important;
  border-bottom-color: var(--acid) !important;
}

.about + .marquee > .marquee-track,
.about + .marquee .marquee-item,
.about + .marquee .marquee-mark,
.about + .marquee .mark-alt {
  color: var(--acid) !important;
}

/* Account for the portfolio's intentional outer gutter inside the declared
   width, so the work section is centered instead of extending to the right. */
.work {
  width: calc(100% - var(--work-outer) - var(--work-outer)) !important;
  max-width: calc(100% - var(--work-outer) - var(--work-outer)) !important;
}

/* Project archive: a persistent editorial index gives the grid a sense of
   direction without competing with the artwork. */
.work-projects-shell {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(150px, 13vw) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 76px);
}

.project-rail {
  position: sticky;
  top: 94px;
  max-height: calc(100svh - 118px);
  overflow: auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 11px 0 13px;
  scrollbar-width: none;
}

.project-rail::-webkit-scrollbar { display: none; }

.project-rail__heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.3;
}

.project-rail__count { color: var(--violet); }

.project-rail__list { display: grid; }

.project-rail__item {
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 10px;
  gap: 7px;
  align-items: baseline;
  cursor: pointer;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  padding: 9px 0;
  color: var(--ink);
  text-align: left;
  transition: background-color .22s ease, color .22s ease, padding .22s ease;
}

.project-rail__item:first-child { border-top: 0; }
.project-rail__number, .project-rail__arrow { font-size: 8px; letter-spacing: .08em; }
.project-rail__name { overflow: hidden; font-size: 10px; font-weight: 700; letter-spacing: .035em; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.project-rail__arrow { color: var(--violet); opacity: 0; transform: translateX(-4px); transition: opacity .22s ease, transform .22s ease; }

.project-rail__item:is(:hover, :focus-visible), .project-rail__item[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
  padding-inline: 8px;
  outline: 0;
}

.project-rail__item:is(:hover, :focus-visible) .project-rail__arrow,
.project-rail__item[aria-current="true"] .project-rail__arrow { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .work-projects-shell .project {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s cubic-bezier(.2,.75,.2,1), transform .5s cubic-bezier(.2,.75,.2,1);
  }
  .work-projects-shell .project.is-in-view { opacity: 1; transform: none; }
}

/* Desktop projects sit in balanced pairs. This removes the asymmetric spans
   and offsets from the original masonry layout while preserving each image. */
@media (min-width: 901px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    align-items: start !important;
    column-gap: clamp(28px, 3.5vw, 72px) !important;
    row-gap: clamp(56px, 7vw, 128px) !important;
  }

  .project-grid > .project,
  .project-grid > .project:nth-child(n) {
    grid-column: auto !important;
    grid-row: auto !important;
    align-self: start !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 900px) {
  .work-projects-shell { display: block; }
  .project-rail { display: none; }
}

@media (max-width: 760px) {
  .work-projects-shell .project { opacity: 1; transform: none; }
}

/* Projects remain a horizontal narrative while page scrolling stays native. */
.work-horizontal-shell {
  min-width: 0;
  height: auto;
  isolation: isolate;
  position: relative;
}

.work-horizontal-sticky {
  min-width: 0;
  position: static;
}

.project-carousel-controls {
  position: absolute;
  z-index: 80;
  top: 50%;
  left: -22px;
  right: -22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

.project-carousel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: var(--ink);
  background: var(--acid);
  border: 1px solid var(--acid);
  font: 700 28px/1 var(--font-idv);
  cursor: pointer;
  pointer-events: auto;
  transition: color 200ms ease, background-color 200ms ease, opacity 200ms ease;
}

.project-carousel-button:is(:hover, :focus-visible) {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
  outline: 0;
}

.project-carousel-button:focus-visible {
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--acid);
}

.project-carousel-button:disabled {
  opacity: .6;
  cursor: default;
}

.project-carousel-button:disabled:is(:hover, :focus-visible) {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
  box-shadow: none;
}

.work-horizontal-shell .project-grid {
  --horizontal-card-width: 100%;
  display: flex !important;
  grid-template-columns: none !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: clamp(18px, 2.25vw, 44px) !important;
  width: 100% !important;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  transform: none !important;
  will-change: auto;
}

.work-horizontal-shell .project-grid::-webkit-scrollbar { display: none; }

.work-horizontal-shell .project-grid > .project,
.work-horizontal-shell .project-grid > .project:nth-child(n) {
  flex: 0 0 var(--horizontal-card-width);
  grid-column: auto !important;
  margin: 0 !important;
  opacity: 1;
  scroll-snap-align: start;
  transform: none;
  width: var(--horizontal-card-width) !important;
}

@media (min-width: 901px) {
  .work > .section-label { margin-bottom: 0; }

  .work > .mega {
    margin-block: clamp(90px, 9vw, 170px);
  }

  .work-horizontal-shell .project-grid {
    --horizontal-card-width: min(70vw, 940px, calc((100svh - 300px) * 1.3333));
    padding-right: clamp(40px, 8vw, 150px);
  }

  .work-horizontal-shell .project-grid > .project,
  .work-horizontal-shell .project-grid > .project:nth-child(n) {
    --project-info-height: clamp(110px, 6.5vw, 124px);
  }
}

/* Keep the About title mark visible on its violet surface. The masked acid
   underlay retains the opposite color so the brush interaction still reads. */
.about > .about-content .mega .inline-mark {
  color: var(--acid) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.about .about-underlay .mega .inline-mark {
  color: var(--violet) !important;
}

@media (max-width: 900px) {
  .work-horizontal-shell .project .poster { aspect-ratio: 4 / 3; }

  .project-carousel-controls {
    left: 8px;
    right: 8px;
  }
}

@media (max-width: 430px) {
  .project-carousel-button {
    width: 44px;
    height: 44px;
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-horizontal-shell .project-grid { scroll-behavior: auto; }
}

/* Brand-level selection and scroll treatments. Touch devices keep their native
   scrollbar for a familiar, reliable gesture experience. */
::selection {
  background: var(--acid);
  color: var(--ink);
  text-shadow: none;
}

::-moz-selection {
  background: var(--acid);
  color: var(--ink);
  text-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  html, body, .project-popup {
    scrollbar-color: var(--acid) var(--ink);
    scrollbar-width: thin;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  .project-popup::-webkit-scrollbar { width: 14px; height: 14px; }

  html::-webkit-scrollbar-track,
  body::-webkit-scrollbar-track,
  .project-popup::-webkit-scrollbar-track {
    background: var(--ink);
    border-left: 1px solid #ffffff38;
  }

  html::-webkit-scrollbar-thumb,
  body::-webkit-scrollbar-thumb,
  .project-popup::-webkit-scrollbar-thumb {
    background: var(--acid);
    border: 3px solid var(--ink);
    border-radius: 0;
    box-shadow: inset 0 0 0 1px #00000044;
  }

  html::-webkit-scrollbar-thumb:hover,
  body::-webkit-scrollbar-thumb:hover,
  .project-popup::-webkit-scrollbar-thumb:hover { background: #d9ff9d; }
}

/* About: the biography and Brenda's animated mark share one compact editorial
   row. The large decorative mark and the former portrait no longer compete
   with the text. */
.about .about-content {
  padding-bottom: clamp(64px, 6vw, 112px);
}

.about-grid.about-gif-layout {
  align-items: start;
  column-gap: clamp(32px, 5vw, 96px);
  row-gap: 0;
}

.about-grid.about-gif-layout > .mega {
  grid-column: 1 / -1;
  margin-block: clamp(82px, 8vw, 150px) clamp(54px, 5vw, 92px);
}

.about-grid.about-gif-layout .about-copy {
  grid-column: 5 / 13;
  margin: 0;
  max-width: 1080px;
  padding-top: clamp(34px, 2.4vw, 48px);
}

.about-grid.about-gif-layout .about-copy small {
  max-width: 720px;
  width: 82%;
}

.about-grid.about-gif-layout .about-gif {
  aspect-ratio: 1;
  grid-column: 1 / 5;
  justify-self: start;
  margin: 0;
  max-width: 380px;
  overflow: hidden;
  width: 100%;
}

.about-grid.about-gif-layout .about-gif img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

/* Recolor only the revealed layer, keeping the original animation in sync. */
.about-underlay .about-gif img {
  filter: url(#about-purple-headphones);
}

.about-grid.about-gif-layout .about-mark,
.about-grid.about-gif-layout .portrait-placeholder {
  display: none !important;
}

@media (max-width: 760px) {
  .about .about-content {
    padding-bottom: clamp(52px, 16vw, 76px);
  }

  .about-grid.about-gif-layout {
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .about-grid.about-gif-layout > .mega {
    grid-column: 1;
    margin-block: clamp(72px, 22vw, 104px) clamp(42px, 13vw, 64px);
  }

  .about-grid.about-gif-layout .about-copy {
    grid-column: 1;
    margin: 0;
    max-width: 100%;
    padding-top: 0;
    width: 100%;
  }

  .about-grid.about-gif-layout .about-copy small {
    margin-top: 28px;
    width: 100%;
  }

  .about-grid.about-gif-layout .about-gif {
    grid-column: 1;
    justify-self: center;
    margin: 0 auto clamp(34px, 11vw, 54px);
    max-width: 320px;
    width: min(76vw, 320px);
  }
}

/* Centered editorial hero with print-registration marks and a dimensional symbol. */
.hero { background: #000; color: var(--white); }
.hero .hero-stage {
  isolation: isolate;
  min-height: 76svh;
  padding: 112px 24px;
  justify-content: center;
}
.hero .hero-shapes,
.hero .hero-underlay,
.hero .hero-lens-title,
.hero .hero-echo-layer,
.hero .hero-field-meta,
.hero .hero-stage::before,
.hero .hero-stage::after { display: none !important; }

.hero .hero-stage > h1 {
  color: var(--white);
  width: 100%;
  max-width: 100%;
  margin: auto 0 !important;
  font-size: min(18.4vw, 29.2svh, 308px);
  line-height: .84;
  text-align: center;
  position: relative;
  /* Optical correction for the uppercase font's space below the baseline. */
  transform: translateY(.065em) !important;
  z-index: 3;
}
.hero .hero-stage > h1 .hero-name-line { white-space: nowrap; }
.hero .hero-stage > h1 .hero-letter {
  animation: none !important;
  transform: none !important;
  transition: none;
  will-change: auto;
}
.hero .hero-kicker {
  position: absolute;
  top: 92px;
  left: 24px;
  right: 24px;
  width: auto;
  z-index: 7;
}
.hero .hero-stage > .hero-mark {
  animation: none !important;
  color: var(--acid);
  font-size: min(34vw, 48svh, 540px);
  left: 50%;
  right: auto;
  top: 50%;
  transform: translate(-50%, -50%) rotate(8deg);
  translate: none !important;
  z-index: 5;
}
.hero .hero-asterisk-3d ~ .hero-mark { display: none !important; }
.hero-asterisk-3d {
  appearance: none;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  aspect-ratio: 1;
  width: min(36vw, 52svh, 580px);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(8px 14px 12px #00000050);
  pointer-events: auto;
  z-index: 6;
}
.hero-asterisk-3d:focus-visible { outline: 2px solid var(--acid); outline-offset: 6px; }
.hero-asterisk-3d:disabled { cursor: default; }
.hero-asterisk-canvas { display: block; width: 100%; height: 100%; }
.hero-registration {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92%, 1450px);
  height: clamp(240px, 58svh, 570px);
  color: var(--acid);
  opacity: 1;
  transform: translate(calc(-50% + var(--registration-x, 0px)), calc(-50% + var(--registration-y, 0px)));
  pointer-events: none;
  z-index: 2;
}
.hero-registration > i { position: absolute; width: 24px; height: 24px; border-color: currentColor; border-style: solid; border-width: 0; }
.hero-registration > i:nth-child(1) { left: 0; top: 0; border-left-width: 3px; border-top-width: 3px; }
.hero-registration > i:nth-child(2) { right: 0; top: 0; border-right-width: 3px; border-top-width: 3px; }
.hero-registration > i:nth-child(3) { left: 0; bottom: 0; border-left-width: 3px; border-bottom-width: 3px; }
.hero-registration > i:nth-child(4) { right: 0; bottom: 0; border-right-width: 3px; border-bottom-width: 3px; }
.hero .hero-bottom {
  background: var(--violet);
  border-top-color: var(--violet);
  color: var(--white);
}
@media (min-width: 761px) {
  .hero .hero-bottom { align-items: center; }
  .hero .hero-bottom > * {
    justify-self: stretch;
    text-align: center;
  }
  .hero .hero-bottom > * + * {
    border-left: 1px solid #ffffff35;
    padding-left: clamp(18px, 1.7vw, 32px);
  }
}
@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero .hero-stage {
    flex: none;
    height: auto;
    min-height: 0;
    padding: 132px 16px 48px;
  }
  .hero .hero-kicker {
    top: 86px;
    left: 16px;
    right: 16px;
    gap: 12px;
    font-size: 10px;
    letter-spacing: .035em;
  }
  .hero .hero-kicker > span { flex-shrink: 0; }
  .hero .hero-stage > h1 {
    font-size: min(19.5vw, 22svh);
    letter-spacing: -.045em;
    line-height: .88;
  }
  .hero-asterisk-3d {
    width: min(30vw, 24svh, 160px);
    top: calc(50% + 42px);
  }
  .hero .hero-stage > .hero-mark {
    font-size: min(28vw, 22svh, 150px);
    top: calc(50% + 42px);
  }
  .hero .hero-registration { display: none; }
  .hero .hero-bottom {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 20px 12px;
    padding: 24px 16px;
  }
  .hero .hero-bottom > h2,
  .hero .hero-bottom > p:first-of-type {
    grid-column: 1 / -1 !important;
    width: 100%;
    text-align: center !important;
  }
  .hero .hero-bottom > h2 {
    width: 100%;
    max-width: none;
    font-size: clamp(22px, 6.1vw, 40px);
    line-height: 1.02;
    letter-spacing: -.025em;
  }
  .hero .hero-bottom > p {
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: .025em;
  }
  .hero .hero-bottom > a {
    grid-column: 2 !important;
    align-self: end;
    justify-self: end;
    font-size: 12px;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce), (hover: none) {
  .hero-registration { display: none; }
}

/* Education: one featured qualification, course cards and two distinct panels. */
.skills.section {
  --ink: #000;
  --acid: #c2ff73;
  --education-line: var(--acid);
  background: var(--ink);
  color: var(--white);
  padding: 40px 24px 80px;
}
.skills.section .section-label,
.skills.section .note-mark { color: var(--acid); }
.skills.section > * {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.skills .education-title {
  font-size: clamp(64px, 10vw, 168px);
  line-height: .82;
  margin-block: clamp(60px, 7vw, 104px);
}
.skills .education {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(180px, .8fr);
  align-items: center;
  gap: 24px 40px;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--education-line);
  background: #000;
  color: var(--white);
}
.skills .education > p {
  grid-column: 1;
  grid-row: 1 / 3;
  margin: 0;
  font-family: inherit;
  font-size: clamp(32px, 4.2vw, 66px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
}
.skills .education > p span {
  display: block;
  margin-top: 28px;
  color: var(--acid);
  font: 500 14px/1.5 sans-serif;
  letter-spacing: .04em;
}
.skills .education > h2 {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--education-line);
  color: var(--acid);
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.1;
  letter-spacing: -.025em;
}
.skills .education-emblem {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  color: var(--acid);
  font-size: clamp(72px, 8vw, 112px);
  transform: rotate(12deg);
}
.skills .education-coursework {
  grid-column: 1 / -1;
  grid-row: 3;
  border-top: 1px solid var(--education-line);
  padding-top: 28px;
  margin-top: 12px;
}
.skills .education-coursework h3 {
  color: var(--acid);
  font: 500 14px/1.5 sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.skills .education-coursework ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.skills .education-coursework li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--white);
  font: 400 clamp(16px, 1.3vw, 20px)/1.5 sans-serif;
}
.skills .education-coursework li::before {
  content: '';
  flex: 0 0 8px;
  height: 8px;
  background: var(--violet);
}
.skills .education > .education-profile {
  grid-column: 1 / -1;
  grid-row: 4;
  max-width: 76ch;
  margin: 8px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--education-line);
  font: 500 clamp(16px, 1.35vw, 21px)/1.5 sans-serif;
  letter-spacing: 0;
}
.skills .courses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border: 0;
  padding: 40px 0 0;
}
.skills .courses-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--acid);
}
.skills .courses article {
  background: transparent;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin: 0;
  padding: clamp(20px, 2.3vw, 32px);
  border: 1px solid var(--education-line);
}
.skills .courses article > span,
.skills .courses article > p { font-size: 14px; line-height: 1.5; }
.skills .courses article > h3 {
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.12;
}
.skills .courses article > span {
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--white);
}
.skills .courses article > p { margin: auto 0 0; padding-top: 8px; }
.skills .skill-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 17vw, 240px);
  align-items: start;
  gap: 24px;
  padding-top: 40px;
}
.skills .skill-cols > div {
  --education-line: var(--acid);
  background: transparent;
  color: var(--white);
  min-width: 0;
  margin: 0;
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--education-line);
}
.skills .skill-cols > div > span:first-child {
  font-size: 18px;
  color: var(--acid);
  letter-spacing: .08em;
  margin: 0 0 24px;
}
.skills .skill-cols > div:nth-child(2) {
  display: flex;
  flex-flow: row wrap;
  gap: 10px;
}
.skills .skill-cols > div:nth-child(2) > span { flex-basis: 100%; }
.skills .skill-cols > div:nth-child(2) > b {
  border: 1px solid var(--education-line);
  padding: 12px 14px;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.1;
}
.skills .skill-cols > div:nth-child(2) > b:hover { background: var(--violet); color: var(--white); }
@media (max-width: 760px) {
  .skills.section { padding: 40px 14px 52px; }
  .skills .education-title {
    font-size: 12.2vw;
    margin-block: 56px;
    letter-spacing: -.045em;
  }
  .skills .education { grid-template-columns: minmax(0, 1fr) 68px; padding: 24px; gap: 24px 12px; }
  .skills .education > p { grid-column: 1 / -1; grid-row: 1; font-size: clamp(28px, 7vw, 42px); }
  .skills .education > h2 { grid-column: 1; grid-row: 2; font-size: 24px; }
  .skills .education-emblem { grid-column: 2; grid-row: 2; font-size: 60px; }
  .skills .education-coursework ul { grid-template-columns: minmax(0, 1fr); }
  .skills .education > .education-profile { grid-column: 1 / -1; grid-row: 4; font-size: 16px; }
  .skills .courses { grid-template-columns: minmax(0, 1fr); }
  .skills .courses article { gap: 18px; }
  .skills .courses article > h3 { font-size: 24px; }
  .skills .skill-cols { grid-template-columns: minmax(0, 1fr); }
}

/* Only endpoint marks remain on the software meters. */
.software-skill .software-meter {
  height: 58px;
  background:
    linear-gradient(currentColor, currentColor) left 32px / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) left 27px / 1px 11px no-repeat,
    linear-gradient(currentColor, currentColor) right 27px / 1px 11px no-repeat;
}
.software-skill .software-meter::before,
.software-skill .software-meter::after {
  display: block;
  bottom: 0;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
}
.software-skill .software-meter i {
  top: 31px;
  bottom: auto;
  height: 4px;
  clip-path: none;
}
.software-skill .software-meter i::after { display: none; }
.software-skill .software-level,
.software-skill:is(:hover, :focus-visible) .software-level {
  top: 0;
  bottom: auto;
  right: auto;
  left: clamp(42px, var(--skill-level), 100%);
  padding: 3px 5px;
  border: 0;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  transform: translateX(-100%);
}

.skills .skill-cols b.software-skill {
  display: grid !important;
  position: relative;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  gap: 12px;
  min-height: 72px;
  padding: 12px 0 !important;
  border: 0;
  font-size: clamp(20px, 1.7vw, 30px);
  line-height: 1.1;
  background: transparent;
  color: var(--white);
}
.skills .software-skill .software-name { padding-right: 0; margin: 0; font-size: inherit; line-height: 1.25; }
.skills .software-skill .software-meter {
  display: none !important;
  position: static;
  height: 8px;
  width: 100%;
  background:
    linear-gradient(var(--acid), var(--acid)) left 3px / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) left top / 1px 8px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 1px 8px no-repeat;
  color: var(--acid);
  opacity: 1;
  visibility: visible;
  transform: none;
}
.skills .software-skill .software-meter::before,
.skills .software-skill .software-meter::after { display: none; }
.skills .software-skill .software-meter i {
  display: block;
  position: relative;
  top: 2px;
  left: auto;
  bottom: auto;
  height: 3px;
  width: var(--skill-level);
  background: var(--acid);
}
.skills .software-skill .software-level,
.skills .software-skill:is(:hover, :focus-visible) .software-level {
  top: 20px;
  right: 0;
  bottom: auto;
  left: auto;
  padding: 0;
  opacity: 1;
  transform: none;
  background: transparent;
  color: var(--acid);
  font-size: 14px;
}

/* An editorial instrument panel: selection at left, evidence at right. */
.skills .skill-cols > div:first-child {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  counter-reset: software-index;
  padding: clamp(24px, 2.4vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto repeat(3, minmax(72px, 1fr));
  gap: 20px clamp(20px, 2vw, 36px);
}
.skills .skill-cols > div:first-child > span:first-child {
  grid-column: 1 / -1;
  display: block;
  color: var(--acid);
  font-size: clamp(34px, 3.4vw, 56px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  margin: 0 0 12px;
}
.skills .skill-cols > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
.skills .skill-cols b.software-skill::before {
  counter-increment: software-index;
  content: counter(software-index, decimal-leading-zero);
  color: #aaa;
  font: 400 12px/1.5 monospace;
  align-self: center;
}
.skills .software-skill:has(.software-select[aria-pressed="true"])::before { color: var(--acid); }
.skills .software-select {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  border: 0;
  width: 100%;
  cursor: pointer;
}
.skills .software-select:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
.skills .software-select:not(:focus-visible) { outline: none; box-shadow: none; }
.skills .software-skill:has(.software-select[aria-pressed="true"]) .software-name,
.skills .software-skill:has(.software-select:hover) .software-name { color: var(--acid); }
.skills .skill-cols b.software-skill:is(:hover, :focus-within) { background: transparent; box-shadow: none; }
.skills .software-detail {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  min-width: 0;
  border: 1px solid var(--education-line);
  padding: 20px;
  color: var(--white);
  background: #000;
}
.skills .software-detail-label {
  font: 500 14px/1.5 sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--acid);
  margin: 0 0 14px;
}
.skills .software-detail h3 {
  font-size: 18px;
  line-height: 1.1;
  overflow-wrap: anywhere;
  margin: 0 0 16px;
  min-height: 2.2em;
}
.skills .software-detail > .software-detail-label { font-size: 12px; letter-spacing: 0; margin-bottom: 4px; }
.skills .software-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 2vw, 32px);
}
.skills .software-detail-body > div { min-width: 0; }
.skills .software-detail-chart {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 16px;
}
.skills .software-detail-chart strong { color: var(--white); font: 400 40px/1 sans-serif; letter-spacing: -.04em; }
.skills .software-detail-scale { width: min(80px, 100%); height: 220px; position: relative; border: 1px solid var(--acid); }
.skills .software-detail-scale i { position: absolute; bottom: 0; left: 0; width: 100%; background: var(--acid); }
.skills .software-detail-caption { font: 400 12px/1.5 sans-serif; color: #c9c9c9; margin: 12px 0 0; text-align: center; }
@media (max-width: 1000px) {
  .skills .skill-cols > div:first-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-auto-rows: minmax(64px, auto);
  }
}
@media (max-width: 760px) {
  .skills .skill-cols > div:first-child,
  .skills .skill-cols > div:nth-child(2) { grid-column: 1; grid-row: auto; }
  .skills .skill-cols > div:first-child { row-gap: 12px; }
  .skills .software-detail { grid-column: 1 / -1; grid-row: auto; margin: 16px 0; padding: 20px 16px; }
  .skills .software-detail-chart { max-width: 300px; }
  .skills .software-detail-scale { height: 160px; width: 56px; }
  .skills .software-detail-visual { justify-items: center; display: grid; }
  .skills .software-detail-body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
  .skills .skill-cols > div:first-child { grid-template-columns: minmax(0, 1fr); }
  .skills .skill-cols b.software-skill { min-height: 56px; }
}

/* The names are the surface; proficiency is disclosed only on interaction. */
.skills .skill-cols.software-hover-grid { grid-template-columns: minmax(0, 1fr); }
.skills .software-hover-grid > div:first-child {
  grid-column: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto repeat(3, minmax(100px, auto));
}
.skills .software-hover-grid b.software-skill { font-size: clamp(24px, 2.3vw, 42px); }
.skills .software-skill:has(.software-select[aria-expanded="true"]) .software-name { color: var(--acid); }
.software-popover {
  --acid: #c2ff73;
  position: fixed;
  z-index: 110;
  width: min(300px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--acid);
  background: #080808;
  color: #fff;
  box-shadow: 5px 5px 0 #590fe8;
  font-family: var(--font-idv, sans-serif);
  animation: software-card-in 160ms ease-out both;
  pointer-events: none;
}
.software-popover[hidden] { display: none !important; }
.software-popover-index { margin: 0 0 12px; color: var(--acid); font: 500 12px/1.4 monospace; letter-spacing: .09em; }
.software-popover h4 { margin: 0 0 16px; font-size: 24px; font-weight: 900; line-height: 1.05; overflow-wrap: anywhere; }
.software-popover-value { display: block; font-size: 46px; line-height: 1; letter-spacing: -.04em; font-weight: 900; }
.software-popover-scale { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; align-items: end; height: 64px; margin: 16px 0; }
.software-popover-scale i { height: var(--bar-height); background: linear-gradient(to top, var(--acid) var(--bar-fill), #ffffff20 var(--bar-fill)); }
.software-popover-caption { margin: 0; padding-top: 12px; border-top: 1px solid #ffffff40; color: #ddd; font: 400 14px/1.4 sans-serif; }
@keyframes software-card-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1000px) {
  .skills .software-hover-grid > div:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
}
@media (max-width: 560px) {
  .skills .software-hover-grid > div:first-child { grid-template-columns: minmax(0, 1fr); }
}

/* One visible glyph per letter: continuous expansion without crossfade ghosts. */
@property --hero-inflate {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}
@keyframes hero-name-enter {
  from {
    opacity: 0;
    clip-path: inset(100% 0 0);
    transform: translateY(.24em) scaleY(.9);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
    transform: translateY(0) scaleY(1);
  }
}
@keyframes hero-meta-enter {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-symbol-enter {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.58) rotate(-22deg); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
}
@keyframes hero-frame-enter {
  from { opacity: 0; clip-path: inset(48% 48% 48% 48%); }
  to { opacity: 1; clip-path: inset(0); }
}
@keyframes hero-bottom-enter {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .hero-stage > h1,
.hero .hero-stage > h1 .hero-letter {
  font-family: 'roc-grotesk', sans-serif;
  font-weight: 800 !important;
  font-synthesis: none;
}
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .hero .hero-stage > h1.hero-inflate-ready {
    --hero-inflate: 0;
    transition: --hero-inflate 850ms cubic-bezier(.45, 0, .2, 1);
  }
  .hero.hero-name-expanded .hero-stage > h1.hero-inflate-ready {
    --hero-inflate: 1;
  }
  .hero:not(.hero-waiting) .hero-stage > h1.hero-inflate-ready .hero-name-line {
    animation: hero-name-enter 900ms cubic-bezier(.16, 1, .3, 1) both !important;
    display: flex;
    justify-content: center;
    width: 100%;
    transform: none;
    text-align: center;
  }
  .hero:not(.hero-waiting) .hero-stage > h1.hero-inflate-ready .hero-name-line:nth-child(2) {
    animation-delay: 110ms !important;
  }
  .hero:not(.hero-waiting) .hero-kicker {
    animation: hero-meta-enter 720ms 140ms cubic-bezier(.16, 1, .3, 1) both;
  }
  .hero:not(.hero-waiting) .hero-registration {
    animation: hero-frame-enter 900ms 220ms cubic-bezier(.16, 1, .3, 1) both;
  }
  .hero:not(.hero-waiting) .hero-asterisk-3d {
    animation: hero-symbol-enter 1050ms 260ms cubic-bezier(.16, 1, .3, 1) both;
  }
  .hero:not(.hero-waiting) .hero-bottom {
    animation: hero-bottom-enter 780ms 420ms cubic-bezier(.16, 1, .3, 1) both;
  }
  .hero .hero-stage > h1.hero-inflate-ready .hero-letter {
    position: relative;
    isolation: isolate;
    flex-shrink: 0;
    width: calc((var(--glyph-base) + var(--glyph-growth) * var(--hero-inflate)) * 1em);
    margin-right: var(--hero-tracking);
    letter-spacing: 0;
    color: transparent;
  }
  .hero .hero-stage > h1.hero-inflate-ready .hero-letter:last-child { margin-right: 0; }
  .hero .hero-stage > h1.hero-inflate-ready .hero-letter::before {
    content: attr(data-glyph);
    position: absolute;
    top: 0;
    left: 0;
    width: max-content;
    color: var(--white);
    line-height: inherit;
    transform-origin: left center;
    pointer-events: none;
    font-synthesis: none;
  }
  .hero .hero-stage > h1.hero-inflate-ready .hero-letter::before {
    font-family: 'roc-grotesk', sans-serif;
    font-weight: 800;
    opacity: 1;
    transform: scaleX(calc(var(--glyph-base-scale) + var(--glyph-stretch) * var(--hero-inflate)));
    -webkit-text-stroke: calc(var(--hero-inflate) * .008em) var(--white);
  }
  .hero .hero-stage > h1.hero-inflate-ready .hero-letter::after {
    content: none;
  }
}

/* Project popups: a tighter editorial rhythm keeps the case title readable
   without letting it overpower the project information below. */
@media (min-width: 761px) {
  .project-popup .popup-case > header {
    padding: clamp(48px, 5vw, 88px) clamp(28px, 3vw, 56px) clamp(24px, 3vw, 48px);
  }

  .project-popup .popup-case > header h2 {
    max-width: none;
    margin: clamp(26px, 2.8vw, 48px) 0 clamp(32px, 4vw, 64px);
    font-size: clamp(42px, 5.4vw, 86px);
    line-height: .86;
    letter-spacing: -.085em;
    white-space: nowrap;
    text-wrap: nowrap;
  }

  .project-popup .case-intro {
    grid-template-columns: minmax(110px, 1fr) minmax(0, 3fr);
    gap: clamp(24px, 4vw, 72px);
    padding: clamp(72px, 8vw, 132px) clamp(28px, 3vw, 56px);
  }

  .project-popup .case-intro h3 {
    max-width: 46rem;
    font-size: clamp(24px, 2.35vw, 38px);
    line-height: 1.08;
    letter-spacing: -.025em;
  }
}

@media (max-width: 760px) {
  .project-popup .popup-case > header h2 {
    font-size: clamp(36px, 13vw, 68px);
    line-height: .88;
    letter-spacing: -.075em;
    text-wrap: balance;
  }

  .project-popup .case-intro {
    padding: clamp(72px, 18vw, 128px) 14px;
  }

  .project-popup .case-intro h3 {
    max-width: 34ch;
    font-size: clamp(23px, 7vw, 36px);
    line-height: 1.08;
  }
}

/* About portrait: the original image keeps its proportions while its frame
   follows the full height of the heading and biography beside it. */
.about .about-photo-layout {
  display: grid;
  grid-template-columns: clamp(260px, 29vw, 520px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(24px, 2.4vw, 44px) clamp(32px, 5vw, 96px);
  align-items: start;
  margin-top: clamp(48px, 5vw, 88px);
}
.about .about-photo-layout > .mega {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: clamp(64px, 8vw, 146px);
  text-align: left;
  line-height: .9;
  white-space: normal;
}
.about .about-photo-layout > .about-photo-stack {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 100%;
  min-width: 0;
  align-self: start;
}
.about .about-photo-layout .about-photo-space {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}
.about .about-photo-layout .about-photo-space img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
/* The portrait remains untouched while the original brush interaction moves
   across the surrounding About surface. */
.about > .about-content .about-photo-layout > .about-photo-stack {
  position: relative;
  z-index: 20;
}
.about .about-underlay .about-photo-layout > .about-photo-stack {
  visibility: hidden;
}
.about-cv-download {
  width: 100%;
  min-height: clamp(58px, 5vw, 78px);
  margin-top: 8px;
  padding: 0 clamp(18px, 2vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  font-size: clamp(14px, 1.05vw, 18px);
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}
.about-cv-label,
.about-cv-arrow {
  transition: transform .25s cubic-bezier(.2, .75, .18, 1);
}
.about-cv-arrow {
  flex: none;
  width: clamp(34px, 3.5vw, 52px);
  height: clamp(34px, 3.5vw, 52px);
}
.about-cv-download:is(:hover, :focus-visible) {
  background: var(--ink);
  color: var(--white);
  border-color: var(--white);
  box-shadow: inset 0 0 0 1px var(--white);
  outline: 0;
}
.about-cv-download:is(:hover, :focus-visible) .about-cv-label {
  transform: translateX(4px);
}
.about-cv-download:is(:hover, :focus-visible) .about-cv-arrow {
  transform: translate(4px, 4px);
}
.about-cv-download:focus-visible {
  box-shadow: inset 0 0 0 1px var(--white), 0 0 0 3px var(--violet), 0 0 0 6px var(--white);
}
.about .about-photo-layout .about-copy {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: clamp(18px, 2.25vw, 40px);
  line-height: 1.15;
  max-width: none;
}
.about .about-photo-layout .about-copy small {
  width: 100%;
  max-width: 780px;
  margin: clamp(14px, 1.5vw, 24px) auto 0 0;
  font-size: clamp(12px, .9vw, 16px);
  line-height: 1.5;
}
.about-practice {
  margin-top: clamp(28px, 3.5vw, 54px);
  padding-top: clamp(14px, 1.4vw, 22px);
  border-top: 1px solid currentColor;
  color: inherit;
}
.about-practice h3 {
  margin: 0 0 clamp(14px, 1.5vw, 22px);
  color: inherit;
  font-size: clamp(13px, .92vw, 16px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.about-practice ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(18px, 2.4vw, 38px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-practice li {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  color: inherit;
  font-size: clamp(13px, .95vw, 17px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.header a[href="#experience"],
.mobile-menu a[href="#experience"],
section.experience,
section.skills,
.marquee.marquee-slow:has(+ .contact) {
  display: none !important;
}
.about .about-photo-layout .about-mark { display: none; }
.contact.contact-with-gif { display: grid; grid-template-columns: minmax(0, 1fr) clamp(160px, 20vw, 320px); gap: 0 32px; min-height: auto; }
.contact.contact-with-gif > :not(.mega):not(.contact-gif) { grid-column: 1 / -1; }
.contact.contact-with-gif > .mega { grid-column: 1; grid-row: 2; font-size: clamp(48px, 8.2vw, 156px); line-height: .9; white-space: normal; margin: 64px 0 48px; align-self: center; }
.contact-gif { grid-column: 2; grid-row: 2; width: 100%; aspect-ratio: 1; margin: 48px 0; align-self: center; pointer-events: none; }
.contact-gif img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(1.5px 0 0 var(--white))
    drop-shadow(-1.5px 0 0 var(--white))
    drop-shadow(0 1.5px 0 var(--white))
    drop-shadow(0 -1.5px 0 var(--white));
}
@media (max-width: 760px) {
  .about .about-photo-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about .about-photo-layout > .about-photo-stack {
    grid-column: 1;
    grid-row: 1;
    width: min(82vw, 380px);
    justify-self: start;
  }
  .about .about-photo-layout > .mega { grid-column: 1; grid-row: 2; font-size: clamp(56px, 15vw, 100px); }
  .about .about-photo-layout .about-copy { grid-column: 1; grid-row: 3; font-size: clamp(24px, 6.8vw, 36px); }
  .about-practice ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-practice li { font-size: 14px; }
  .project-grid .project,
  .project-grid .project:nth-child(n) { --project-info-height: 154px; }
  .project-grid .project-info,
  .project-grid .project:hover .project-info {
    align-content: start;
    padding-top: 14px;
  }
  .contact.contact-with-gif { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .contact.contact-with-gif > .mega {
    grid-column: 1;
    grid-row: 2;
    font-size: clamp(36px, 9vw, 64px);
    margin: 44px 0 16px;
  }
  .contact-gif {
    grid-column: 1;
    grid-row: 3;
    justify-self: end;
    width: min(180px, 48vw);
    margin: 0 0 32px;
  }
  .contact-gif img {
    filter:
      drop-shadow(1px 0 0 var(--white))
      drop-shadow(-1px 0 0 var(--white))
      drop-shadow(0 1px 0 var(--white))
      drop-shadow(0 -1px 0 var(--white));
  }
}
@media (max-width: 460px) {
  .about-practice ul { grid-template-columns: minmax(0, 1fr); }
}

/* Portfolio narrative: proposition-led hero, project framing and services. */
.hero .hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  grid-template-rows: auto auto;
  gap: clamp(18px, 2.2vw, 36px) clamp(36px, 5vw, 96px);
  align-items: center;
  padding: clamp(34px, 4vw, 68px) clamp(22px, 4vw, 72px) clamp(26px, 3vw, 48px);
}
.hero .hero-bottom > * + * {
  border-left: 0;
  padding-left: 0;
}
.hero .hero-value-headline {
  grid-column: 1;
  grid-row: 1;
  max-width: 20ch;
  margin: 0;
  color: var(--white);
  font: 800 clamp(34px, 3.6vw, 68px)/.9 var(--font-idv);
  letter-spacing: -.045em;
  text-align: left;
  text-transform: uppercase;
}
.hero .hero-value-subhead {
  grid-column: 2;
  grid-row: 1;
  max-width: 42ch;
  margin: 0;
  color: var(--white);
  font: 400 clamp(16px, 1.15vw, 22px)/1.28 var(--font-idv);
  letter-spacing: -.015em;
  text-align: left;
  text-transform: none;
}
.hero-value-actions {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hero .hero-value-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--white);
  color: var(--white);
  font: 700 12px/1 var(--font-idv);
  letter-spacing: .075em;
  text-align: center;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.hero .hero-value-cta-primary {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
}
.hero .hero-value-cta:is(:hover, :focus-visible) {
  background: var(--white);
  color: var(--violet);
  outline: 0;
  transform: translateY(-2px);
}
.hero .hero-value-rule {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  height: 0;
  margin: 0;
  border-top: 1px solid #ffffff4a;
}
.hero-contact-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-width: none;
  max-height: min(780px, calc(100svh - 32px));
  margin: auto;
  padding: 0;
  border: 1px solid var(--acid);
  background: var(--ink);
  color: var(--white);
  overflow: auto;
}
@media (hover: hover) and (pointer: fine) {
  html.brand-cursor-ready .hero-contact-dialog,
  html.brand-cursor-ready .hero-contact-dialog * { cursor: none !important; }
  .hero-contact-dialog > .brand-cursor { z-index: 4; }
}
.hero-contact-dialog::backdrop {
  background: #000000c7;
  backdrop-filter: blur(9px);
}
.hero-contact-shell { padding: clamp(20px, 3vw, 48px); }
.hero-contact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--acid);
  font: 700 10px/1 var(--font-idv);
  letter-spacing: .12em;
}
.hero-contact-top button {
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
}
.hero-contact-shell > h2 {
  max-width: 13ch;
  margin: clamp(40px, 5vw, 76px) 0;
  color: var(--white);
  font: 800 clamp(48px, 7vw, 112px)/.86 var(--font-idv);
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.hero-contact-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}
.hero-contact-option {
  position: relative;
  min-height: 190px;
  padding: clamp(20px, 2.5vw, 38px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
  transition: background-color .22s ease, color .22s ease;
}
.hero-contact-option + .hero-contact-option { border-left: 1px solid var(--line); }
.hero-contact-option strong {
  font: 800 clamp(20px, 2.2vw, 34px)/1 var(--font-idv);
  letter-spacing: -.02em;
}
.hero-contact-option small { font: 500 12px/1.3 var(--font-idv); }
.hero-contact-option > span {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--acid);
  font-size: 28px;
  transition: transform .22s ease;
}
.hero-contact-option:is(:hover, :focus-visible) {
  background: var(--acid);
  color: var(--ink);
  outline: 0;
}
.hero-contact-option:is(:hover, :focus-visible) > span {
  color: var(--ink);
  transform: translate(4px, -4px);
}
.hero-contact-whatsapp {
  width: 100%;
  min-height: 112px;
  margin-bottom: clamp(24px, 3vw, 42px);
  border: 1px solid var(--line);
  padding: clamp(18px, 2vw, 28px);
}
.hero-contact-whatsapp strong { font-size: clamp(20px, 1.8vw, 30px); }
.hero-contact-shell > h2.is-form-title { max-width: 15ch; margin-bottom: clamp(28px, 4vw, 54px); }
.hero-contact-form { border-top: 1px solid var(--line); }
.hero-contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-contact-fields label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--acid);
  font: 700 10px/1 var(--font-idv);
  letter-spacing: .1em;
}
.hero-contact-fields label:nth-child(odd) { padding-right: 18px; border-right: 1px solid var(--line); }
.hero-contact-fields label:nth-child(even) { padding-left: 18px; }
.hero-contact-fields label:last-child {
  grid-column: 1 / -1;
  padding-right: 0;
  border-right: 0;
}
.hero-contact-fields :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  border: 1px solid #ffffff52;
  border-radius: 0;
  outline: 0;
  background: #ffffff0a;
  color: var(--white);
  font: 500 16px/1.35 var(--font-idv);
}
.hero-contact-fields :is(input, select) { height: 48px; padding: 0 13px; }
.hero-contact-fields textarea { min-height: 118px; padding: 13px; resize: vertical; }
.hero-contact-fields select option { background: var(--ink); color: var(--white); }
.hero-contact-fields :is(input, select, textarea):focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 1px var(--acid);
}
.hero-contact-fields textarea::placeholder { color: #ffffff80; }
.hero-contact-honeypot {
  position: fixed !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.hero-contact-form-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding-top: 22px;
}
.hero-contact-form-actions small {
  color: #ffffff9c;
  font: 500 10px/1.3 var(--font-idv);
  letter-spacing: .06em;
}
.hero-contact-feedback {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid currentColor;
  font: 700 11px/1.35 var(--font-idv);
  letter-spacing: .04em;
}
.hero-contact-feedback.is-success { color: var(--acid); }
.hero-contact-feedback.is-error { color: #ff7f6a; }
.hero-contact-submit:disabled {
  cursor: wait;
  opacity: .72;
}
.hero-contact-back,
.hero-contact-submit {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  font: 700 11px/1 var(--font-idv);
  letter-spacing: .08em;
}
.hero-contact-back { justify-self: start; }
.hero-contact-submit { border-color: var(--acid); background: var(--acid); color: var(--ink); }
.hero-contact-back:hover { border-color: var(--acid); color: var(--acid); }
.hero-contact-submit:hover { background: var(--white); border-color: var(--white); }

.work-intro {
  width: min(48%, 720px);
  max-width: 58ch;
  margin: clamp(-12px, -.8vw, -4px) 0 clamp(38px, 4vw, 68px) auto;
  padding-left: clamp(14px, 1.4vw, 22px);
  border-left: 2px solid var(--acid);
  color: var(--acid);
  font: 400 clamp(16px, 1.18vw, 22px)/1.35 var(--font-idv);
  letter-spacing: -.005em;
}
.services.section {
  position: relative;
  z-index: 2;
  padding: clamp(36px, 4vw, 70px) 24px clamp(68px, 8vw, 144px);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services > * { width: 100%; max-width: none; }
.services .section-label {
  color: var(--acid);
  border-color: var(--line);
}
.services-title {
  max-width: none;
  margin: clamp(56px, 7vw, 112px) 0 clamp(28px, 3vw, 48px);
  color: var(--acid);
  font: 800 clamp(58px, 8vw, 142px)/.84 var(--font-idv);
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.services-title span { white-space: nowrap; }
.services-intro {
  max-width: 34ch;
  margin: 0 0 clamp(48px, 6vw, 92px) auto;
  font: 400 clamp(21px, 2.4vw, 42px)/1.1 var(--font-idv);
  letter-spacing: -.02em;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services-grid article {
  min-width: 0;
  min-height: clamp(330px, 34vw, 560px);
  padding: clamp(22px, 3vw, 50px);
  display: flex;
  flex-direction: column;
  transition: background-color .25s ease, color .25s ease;
}
.services-grid article + article { border-left: 1px solid var(--line); }
.services-grid article:is(:hover, :focus-within) {
  background: var(--acid);
  color: var(--ink);
}
.service-number {
  color: var(--acid);
  font: 700 10px/1 var(--font-idv);
  letter-spacing: .12em;
}
.services-grid article:is(:hover, :focus-within) .service-number { color: var(--violet); }
.services-grid h3 {
  margin: clamp(42px, 4vw, 64px) 0 0;
  font: 800 clamp(28px, 3.25vw, 60px)/.9 var(--font-idv);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}
.services-grid ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}
.services-grid li {
  padding: 10px 0;
  border-top: 1px solid currentColor;
  font: 500 clamp(13px, 1vw, 17px)/1.2 var(--font-idv);
  letter-spacing: .045em;
  text-transform: uppercase;
}
.services-ux-note {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) minmax(0, 1fr);
  gap: 28px;
  margin: 0;
  padding: clamp(28px, 4vw, 64px) clamp(22px, 3vw, 48px);
  background: var(--violet);
  color: var(--white);
}
.services-ux-note strong {
  color: var(--acid);
  font: 800 clamp(22px, 2.4vw, 42px)/1 var(--font-idv);
  letter-spacing: -.02em;
}
.services-ux-note p {
  max-width: 50ch;
  margin: 0;
  font: 400 clamp(16px, 1.45vw, 24px)/1.3 var(--font-idv);
}

.about .about-photo-layout .about-copy { align-self: start; }
.about .about-photo-layout .about-copy > p { margin-bottom: 0; }
.about-practice { display: none !important; }

.contact-intro {
  max-width: 50ch;
  margin: 0 0 clamp(36px, 4vw, 64px);
  color: var(--acid);
  font: 400 clamp(18px, 1.8vw, 30px)/1.25 var(--font-idv);
  letter-spacing: -.015em;
}
.footer-credit {
  max-width: none;
  margin: 0;
  color: var(--acid);
  font: 700 10px/1.4 var(--font-idv);
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (min-width: 761px) {
  .header nav { gap: clamp(13px, 1.55vw, 30px); }
  .header nav > a { white-space: nowrap; }
  .footer-details > .footer-credit { grid-column: 1 / -1; }
}
@media (min-width: 901px) {
  .hero {
    height: 100svh;
    min-height: 700px;
    padding: 66px 0 0;
  }
  .hero .hero-stage {
    flex: 1 1 auto;
    min-height: 0;
    padding: 34px 24px 18px;
  }
  .hero .hero-kicker { top: 22px; }
  .hero .hero-stage > h1 { font-size: min(16vw, 22svh, 240px); }
  .hero-asterisk-3d { width: min(27vw, 37svh, 400px); }
  .hero-registration { height: clamp(220px, 38svh, 380px); }
  .hero .hero-bottom {
    flex: 0 0 auto;
    gap: 10px clamp(32px, 4vw, 72px);
    padding: 16px clamp(22px, 4vw, 72px) 14px;
  }
  .hero .hero-value-headline {
    max-width: none;
    font-size: clamp(32px, 2.85vw, 54px);
    line-height: .92;
  }
  .hero .hero-value-subhead {
    max-width: 46ch;
    font-size: clamp(14px, .95vw, 18px);
    line-height: 1.3;
  }
  .hero .hero-value-cta { min-height: 46px; }
}
@media (max-width: 900px) {
  .hero .hero-bottom {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }
  .hero .hero-bottom > .hero-value-headline {
    justify-self: start;
    text-align: left !important;
  }
  .hero .hero-value-headline,
  .hero .hero-value-subhead,
  .hero-value-actions,
  .hero .hero-value-rule {
    grid-column: 1;
    grid-row: auto;
  }
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .services-grid article { min-height: 320px; }
  .services-grid article + article { border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 760px) {
  .hero .hero-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px;
    padding: 34px 16px 28px;
  }
  .hero .hero-bottom > * { width: 100%; text-align: left !important; }
  .hero .hero-value-headline {
    max-width: 18ch;
    font-size: clamp(38px, 12vw, 64px);
    line-height: .9;
    white-space: normal;
  }
  .hero-value-line-break { display: none; }
  .hero .hero-value-subhead { font-size: 18px; line-height: 1.25; }
  .hero-value-actions { flex-direction: column; gap: 10px; }
  .hero .hero-value-cta { width: 100%; min-height: 54px; }
  .work-intro {
    width: 100%;
    margin: 0 0 38px;
    font-size: 17px;
  }
  .services.section { padding-inline: 14px; }
  .services-title { font-size: clamp(44px, 12.5vw, 72px); }
  .services-intro { margin-left: 0; }
  .services-grid article { min-height: 300px; padding: 24px 18px; }
  .services-grid h3 { font-size: clamp(34px, 10vw, 54px); }
  .services-ux-note { grid-template-columns: minmax(0, 1fr); }
  .contact-intro { font-size: 18px; }
  .hero-contact-shell > h2 { font-size: clamp(42px, 12vw, 64px); }
  .hero-contact-whatsapp { min-height: 110px; }
  .hero-contact-fields { grid-template-columns: minmax(0, 1fr); }
  .hero-contact-fields label,
  .hero-contact-fields label:nth-child(odd),
  .hero-contact-fields label:nth-child(even),
  .hero-contact-fields label:last-child {
    grid-column: 1;
    padding: 18px 0;
    border-right: 0;
  }
  .hero-contact-form-actions { grid-template-columns: 1fr auto; }
  .hero-contact-submit { grid-column: 2; }
}

/* One continuous editorial footer: signature first, useful information directly below. */
@property --footer-inflate {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}
.footer-signature { display: none; }
@media (min-width: 761px) {
  .contact.contact-with-gif { padding-bottom: clamp(64px, 9vh, 112px); }
  .contact.contact-with-gif > .socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  footer:has(> .footer-signature) {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100svh;
    padding: 0;
    border-top: 1px solid var(--line);
  }
  .header { transition: transform 420ms cubic-bezier(.45, 0, .2, 1), opacity 280ms ease; }
  .footer-isolated .header { transform: translateY(-100%); opacity: 0; pointer-events: none; }
  .footer-signature {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    margin: 0;
    padding: clamp(20px, 2.5vw, 40px) 0 0;
    overflow: hidden;
    background: var(--ink);
  }
  .footer-signature h2 {
    --footer-inflate: 0;
    --footer-base-size: 8vw;
    --footer-compressed-size: 13vw;
    --footer-face-height: 9.88vw;
    position: relative;
    width: 100%;
    height: var(--footer-face-height);
    margin: 0 0 calc(var(--footer-compressed-size) * -.09);
    color: var(--white);
    font-synthesis: none;
    text-align: center;
    white-space: nowrap;
    transition: --footer-inflate 850ms cubic-bezier(.45, 0, .2, 1), color 500ms ease;
  }
  .footer-signature .footer-morph-line {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    height: 100%;
    margin: auto;
    color: currentColor;
    pointer-events: none;
  }
  .footer-signature .footer-letter {
    position: relative;
    flex: none;
    width: calc((var(--footer-letter-base) + var(--footer-letter-growth) * var(--footer-inflate)) * 1em);
    height: 100%;
    font-family: 'roc-grotesk', sans-serif !important;
    font-size: var(--footer-base-size);
    font-weight: 800;
    font-synthesis: none;
    line-height: .76;
  }
  .footer-signature .footer-letter::before {
    content: attr(data-glyph);
    position: absolute;
    left: 0;
    bottom: 0;
    width: max-content;
    color: currentColor;
    font: inherit;
    line-height: inherit;
    transform: scaleX(calc(1 + var(--footer-letter-stretch) * var(--footer-inflate))) scaleY(calc(1 + var(--footer-height-growth) * var(--footer-inflate)));
    transform-origin: left bottom;
    will-change: transform;
  }
  .footer-signature h2:hover {
    --footer-inflate: 1;
    color: var(--acid);
  }
  .footer-details {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1.25fr auto;
    align-items: start;
    column-gap: clamp(18px, 2.2vw, 42px);
    padding: 18px 24px 20px;
    border-top: 1px solid var(--line);
  }
  .footer-details > * { margin: 0; }
  .footer-details > div:first-child,
  .footer-details > p,
  .footer-details > a { padding-top: 2px; }
  .footer-details > a[href="#top"] { justify-self: end; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-signature h2 { transition: none; }
}

@media (max-width: 760px) {
  footer:has(> .footer-signature) { display: block; padding: 0; }
  .footer-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0;
  }
  .footer-details > :not(.socials) { margin: 0; padding: 18px 20px; border-top: 1px solid var(--line); }
  .footer-details > :nth-child(odd):not(.socials) { border-right: 1px solid var(--line); }
}

/* A mobile menu in the same typographic family, without oversized thin links. */
@media (max-width: 760px) {
  .mobile-menu { top: 66px; padding: 28px 20px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; gap: 8px; counter-reset: mobile-link; }
  .mobile-menu > a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #ffffff35;
    font-family: 'roc-grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 9vw, 46px);
    line-height: 1;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
  }
  .mobile-menu > a::before { counter-increment: mobile-link; content: counter(mobile-link, decimal-leading-zero); color: var(--acid); font: 400 12px/1 monospace; flex: 0 0 20px; }
  .mobile-menu > a:is(:hover, :focus-visible) { color: var(--acid); }
  .header .menu-button { min-height: 44px; min-width: 76px; padding: 10px 8px; font: 700 12px/1.2 'roc-grotesk', sans-serif; color: var(--white); border: 1px solid #ffffff40; }
  .mobile-menu .language-switch { padding-top: 24px; border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .software-popover { animation: none; }
}

/* Formation becomes the bright editorial interval between the darker sections. */
.skills.section {
  --education-line: #000;
  background: var(--acid);
  color: #000;
}
.skills.section .section-label,
.skills.section .note-mark,
.skills .education-title,
.skills .courses-label { color: #000; }
.skills.section .section-label { border-color: #000; }

/* The featured degree stays open: black details, with violet reserved for the asterisk. */
.skills .education {
  --education-line: #000;
  background: transparent;
  color: #000;
}
.skills .education > p span,
.skills .education > h2,
.skills .education-coursework h3 { color: #000; }
.skills .education-emblem { color: var(--violet); }
.skills .education-coursework li { color: #000; }
.skills .courses article,
.skills .courses article > span,
.skills .courses article > p,
.skills .skill-cols > div,
.skills .skill-cols b.software-skill { color: #000; }
.skills .courses article,
.skills .skill-cols > div { border-color: #000; }
.skills .skill-cols b.software-skill::before { color: #0009; }
.skills .software-skill:has(.software-select[aria-expanded="true"])::before,
.skills .software-skill:has(.software-select[aria-pressed="true"])::before { color: var(--violet); }
.skills .software-skill:has(.software-select[aria-expanded="true"]) .software-name,
.skills .software-skill:has(.software-select[aria-pressed="true"]) .software-name,
.skills .software-skill:has(.software-select:hover) .software-name { color: var(--violet); }
.skills .software-select:focus-visible { outline-color: var(--violet); }

/* Modular editorial grid: titles anchor the panels and every item has a place. */
.skills .skill-cols { gap: 16px; }
.skills .software-hover-grid > div:first-child {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto repeat(3, minmax(104px, 1fr));
  gap: 0;
  padding: 0;
  border: 2px solid #000;
}
.skills .skill-cols > div:first-child > span:first-child {
  justify-self: stretch;
  width: auto;
  margin: 0;
  padding: clamp(20px, 2vw, 30px);
  background: #000;
  color: var(--acid);
}
.skills .software-hover-grid b.software-skill {
  min-height: 104px;
  padding: clamp(20px, 2vw, 30px) !important;
  border-top: 1px solid #000;
  align-content: center;
  font-size: clamp(25px, 2.15vw, 40px);
}
.skills .software-hover-grid b.software-skill:not(:nth-of-type(3n)) { border-right: 1px solid #000; }

.skills .skill-cols > div:nth-child(2) {
  --education-line: #000;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 24px 24px;
  border: 2px solid #000;
}
.skills .skill-cols > div:nth-child(2) > span:first-child {
  grid-column: 1 / -1;
  margin: 0 -24px 8px;
  padding: 20px 24px;
  background: #000;
  color: var(--acid);
  font-size: clamp(28px, 2.6vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.025em;
}
.skills .skill-cols > div:nth-child(2) > b {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid #000;
  font-size: clamp(15px, 1.25vw, 19px);
}
@media (max-width: 1000px) {
  .skills .software-hover-grid > div:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills .software-hover-grid b.software-skill { border-right: 0; }
  .skills .software-hover-grid b.software-skill:nth-of-type(odd) { border-right: 1px solid #000; }
  .skills .skill-cols > div:nth-child(2) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills .skill-cols > div:nth-child(2) > b { grid-column: auto !important; }
}
@media (max-width: 560px) {
  .skills .software-hover-grid > div:first-child { grid-template-columns: minmax(0, 1fr); }
  .skills .software-hover-grid b.software-skill { min-height: 76px; border-right: 0 !important; }
  .skills .skill-cols > div:nth-child(2) { grid-template-columns: minmax(0, 1fr); padding-inline: 14px; }
  .skills .skill-cols > div:nth-child(2) > span:first-child { margin-inline: -14px; padding-inline: 14px; }
}

/* Casamar is presented as a full-width vertical sequence for legible details. */
.popup-slides-stacked .popup-slide img[src*="/casamar-"] {
  aspect-ratio: auto;
  object-fit: contain;
}

/* Use the compact Agência Trêes / Carnaval rhythm as the shared vertical
   spacing for every project popup. */
.project-popup .popup-slides,
.project-popup .popup-slides-stacked {
  gap: 24px !important;
}

.project-popup .popup-slides:has(> .popup-slide img[src*="/agencia-trees/"]) {
  grid-template-columns: minmax(0, 1fr) !important;
}

.project-popup .popup-slides:has(> .popup-slide img[src*="/agencia-trees/"]) > .popup-slide {
  grid-column: 1 / -1 !important;
  width: 100%;
}

.project-popup .popup-slides .popup-slide img[src*="/agencia-trees/"] {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}

@media (max-width: 760px) {
  .project-popup .popup-slides,
  .project-popup .popup-slides-stacked {
    gap: 14px !important;
  }
}

.popup-slides-stacked .popup-slide img[src*="guru-packaging-"] {
  aspect-ratio: auto;
  object-fit: contain;
}

.popup-slides-stacked .popup-slide img[src*="/ryzon-"] {
  aspect-ratio: auto;
  object-fit: contain;
}

/* Preserve every VIÉS composition at its original Behance proportions. */
.popup-slides-stacked .popup-slide img[src*="/vies-"] {
  aspect-ratio: auto;
  object-fit: contain;
}

/* Keep every Labirinto Noir board fully visible in its vertical sequence. */
.popup-slides-stacked .popup-slide img[src*="/labirinto-"] {
  aspect-ratio: auto;
  object-fit: contain;
}

/* The Morning / Evening / Night boards use several widescreen and vertical
   compositions. Preserve each source ratio so copy and packaging details are
   never cropped by the generic 4:3 project treatment. */
.popup-slides-stacked .popup-slide img[src*="/sadhu-morning-"] {
  aspect-ratio: auto;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

/* Match the three two-image modules from the original Behance case study:
   apparel (26–27), cups (32–33) and lanyards (35–36). */
@media (min-width: 761px) {
  .popup-slides-stacked:has(> .popup-slide img[src*="/sadhu-morning-"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 4px;
    align-items: start;
  }

  .popup-slides-stacked:has(> .popup-slide img[src*="/sadhu-morning-"]) > .popup-slide {
    grid-column: 1 / -1;
  }

  .popup-slides-stacked:has(> .popup-slide img[src*="/sadhu-morning-"]) > .popup-slide:nth-child(26),
  .popup-slides-stacked:has(> .popup-slide img[src*="/sadhu-morning-"]) > .popup-slide:nth-child(32),
  .popup-slides-stacked:has(> .popup-slide img[src*="/sadhu-morning-"]) > .popup-slide:nth-child(35) {
    grid-column: 1;
  }

  .popup-slides-stacked:has(> .popup-slide img[src*="/sadhu-morning-"]) > .popup-slide:nth-child(27),
  .popup-slides-stacked:has(> .popup-slide img[src*="/sadhu-morning-"]) > .popup-slide:nth-child(33),
  .popup-slides-stacked:has(> .popup-slide img[src*="/sadhu-morning-"]) > .popup-slide:nth-child(36) {
    grid-column: 2;
  }
}

/* One-line editorial section titles: each chapter name now behaves like a
   full-width typographic banner instead of a stacked heading. */
.section-display-title {
  position: relative;
  width: 100%;
  max-width: none;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  text-wrap: nowrap;
}

.section-display-title > .inline-mark {
  position: absolute;
  top: -.08em;
  right: 0;
  width: 1em;
  height: 1em;
  margin: 0;
  font-size: .18em;
}

.work > .mega.section-display-title {
  margin: clamp(70px, 7vw, 132px) 0 clamp(22px, 2.4vw, 42px) !important;
  font-size: clamp(40px, 7.4vw, 142px);
  line-height: .82;
  letter-spacing: -.065em;
}

.work-intro {
  width: min(58ch, 100%);
  margin: 0 0 clamp(40px, 4.5vw, 76px);
}

.services-title.section-display-title {
  margin: clamp(64px, 7vw, 112px) 0 clamp(18px, 2vw, 32px);
  font-size: clamp(44px, 9vw, 172px);
  line-height: .82;
}

:lang(en) .services-title.section-display-title {
  font-size: clamp(46px, 10.8vw, 206px);
}

.services-intro {
  max-width: 58ch;
  margin: 0 0 clamp(52px, 6vw, 96px);
  font-size: clamp(17px, 1.45vw, 26px);
  line-height: 1.25;
}

.about .about-photo-layout > .mega.section-display-title {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0 0 clamp(12px, 1.5vw, 28px);
  font-size: clamp(62px, 16vw, 300px);
  line-height: .8;
  letter-spacing: -.075em;
  white-space: nowrap !important;
}

.about .about-photo-layout > .about-photo-stack {
  grid-column: 1;
  grid-row: 2 / 4;
}

.about .about-photo-layout .about-copy {
  grid-column: 2;
  grid-row: 2;
}

.contact.contact-with-gif > .mega.section-display-title {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: clamp(58px, 7vw, 112px) 0 clamp(30px, 3vw, 52px);
  font-size: clamp(48px, 9vw, 172px);
  line-height: .82;
  letter-spacing: -.07em;
  white-space: nowrap !important;
}

.contact.contact-with-gif {
  overflow: hidden;
  overflow: clip;
}

:lang(en) .contact.contact-with-gif > .mega.section-display-title {
  font-size: clamp(42px, 7.2vw, 138px);
}

.contact.contact-with-gif > .contact-intro {
  grid-column: 1;
  grid-row: 3;
  align-self: center;
}

.contact.contact-with-gif > .contact-gif {
  grid-column: 2;
  grid-row: 3;
  margin: 0 0 clamp(34px, 4vw, 64px);
}

@media (max-width: 760px) {
  .work > .mega.section-display-title {
    margin-block: clamp(64px, 19vw, 92px) clamp(20px, 6vw, 30px) !important;
    font-size: clamp(20px, calc((100vw - 54px) * .078), 56px);
  }

  :lang(en) .work > .mega.section-display-title {
    font-size: clamp(22px, calc((100vw - 54px) * .085), 61px);
  }

  .services-title.section-display-title {
    margin-block: clamp(58px, 17vw, 86px) clamp(18px, 5vw, 28px);
    font-size: clamp(24px, calc((100vw - 38px) * .0875), 62px);
  }

  :lang(en) .services-title.section-display-title {
    font-size: clamp(28px, calc((100vw - 38px) * .103), 74px);
  }

  .services-intro {
    max-width: 42ch;
    margin-bottom: 42px;
    font-size: 16px;
  }

  .about .about-photo-layout > .mega.section-display-title {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 20px;
    font-size: 15.5vw;
  }

  .about .about-photo-layout > .about-photo-stack {
    grid-column: 1;
    grid-row: 2;
  }

  .about .about-photo-layout .about-copy {
    grid-column: 1;
    grid-row: 3;
  }

  .contact.contact-with-gif > .mega.section-display-title {
    grid-column: 1;
    grid-row: 2;
    margin-block: clamp(48px, 14vw, 72px) 24px;
    font-size: 8.5vw;
  }

  :lang(en) .contact.contact-with-gif > .mega.section-display-title {
    font-size: 6.5vw;
  }

  .contact.contact-with-gif > .contact-intro {
    grid-column: 1;
    grid-row: 3;
  }

  .contact.contact-with-gif > .contact-gif {
    grid-column: 1;
    grid-row: 4;
  }
}

/* Final narrative polish: align the hero columns from the same visual top. */
.hero .hero-bottom {
  grid-template-rows: auto auto;
  align-items: center;
}

.hero .hero-value-headline {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.hero-value-side {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: center;
  gap: clamp(12px, 1.2vw, 20px);
  min-width: 0;
}

.hero .hero-value-side .hero-value-subhead,
.hero .hero-value-side .hero-value-actions {
  width: 100%;
  margin: 0;
}

.hero .hero-value-rule {
  grid-column: 1 / -1;
  grid-row: 2;
}

/* Four core practices, followed by a quieter index of complementary work. */
.services-title.section-display-title {
  font-size: clamp(56px, 12vw, 220px);
}

:lang(en) .services-title.section-display-title {
  font-size: clamp(64px, 15vw, 270px);
}

.services-grid {
  overflow: visible;
}

.services-grid article {
  min-height: clamp(250px, 23vw, 390px);
  overflow: visible;
  padding: clamp(24px, 2.6vw, 46px);
}

.services-grid h3 {
  margin-top: clamp(44px, 4vw, 70px);
  font-size: clamp(26px, 2.65vw, 50px);
  line-height: .92;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.services-extras {
  display: grid;
  grid-template-columns: minmax(150px, .3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: clamp(24px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.services-extras-label {
  color: var(--acid);
  font: 800 10px/1.2 var(--font-idv);
  letter-spacing: .055em;
  text-transform: uppercase;
}

.services-extras ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-extras li {
  padding: 4px 0;
  color: #fff;
  font: 600 clamp(12px, .85vw, 15px)/1.35 var(--font-idv);
  letter-spacing: .055em;
  text-transform: uppercase;
}

.services-extras li:not(:last-child)::after {
  content: " / ";
  margin-inline: .55em;
  color: var(--acid);
}

/* Runtime cleanup is backed by CSS so no Behance action flashes in modals. */
.project-popup a[href*="behance.net"],
.tag-popup a[href*="behance.net"] {
  display: none !important;
}

.tag-project-actions {
  grid-template-columns: minmax(0, 1fr);
  align-self: end;
}

.tag-project-actions > * {
  width: 100%;
}

/* Tag results keep the action row aligned even when a project title wraps. */
.tag-project-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}

.tag-project-copy {
  display: grid;
  grid-template-rows: auto minmax(2em, auto) auto;
  align-content: start;
}

.tag-project-copy h3 {
  min-height: 2em;
  overflow-wrap: anywhere;
}

.tag-project-actions > :is(button, a) {
  display: flex !important;
  align-items: center;
  min-height: 48px;
  white-space: nowrap;
  transform: none !important;
}

.tag-project-actions > :is(button, a):is(:hover, :focus-visible) {
  transform: none !important;
}

@media (max-width: 900px) {
  .hero-value-side {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .hero .hero-value-rule {
    grid-column: 1;
    grid-row: auto;
  }

  .services-grid article {
    min-height: 240px;
  }

  .services-grid h3 {
    font-size: clamp(34px, 10vw, 54px);
  }

  .services-extras {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 18px;
  }

  .services-extras ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }

  .services-extras li {
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }

  .services-extras li::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .services-title.section-display-title {
    font-size: clamp(32px, 12.5vw, 72px);
  }

  :lang(en) .services-title.section-display-title {
    font-size: clamp(38px, 15vw, 82px);
  }
}

@media (max-width: 480px) {
  .services-extras ul {
    grid-template-columns: 1fr;
  }
}

/* Complementary practices form a compact, two-row interactive table. */
.services-extras {
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-top: 0;
}

.services-extras-label {
  display: block;
  padding: 18px clamp(18px, 2.6vw, 46px);
  border-bottom: 1px solid var(--line);
}

.services-extras ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.services-extras li {
  min-width: 0;
  min-height: clamp(52px, 4vw, 68px);
  padding: 10px clamp(14px, 1.6vw, 26px);
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color .22s ease, color .22s ease;
}

.services-extras li:nth-child(5n) {
  border-right: 0;
}

.services-extras li:nth-last-child(-n + 5) {
  border-bottom: 0;
}

.services-extras li::after {
  display: none;
}

.services-extras li:is(:hover, :focus-within) {
  background: var(--acid);
  color: var(--ink);
}

.services-grid {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* The portrait stack and the complete About copy share the same top/bottom. */
.about .about-photo-layout {
  grid-template-columns: clamp(260px, 29vw, 520px) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(18px, 2vw, 34px) clamp(32px, 5vw, 96px);
}

.about .about-photo-layout > .mega.section-display-title {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin: 0;
  font-size: clamp(72px, 8vw, 154px);
  line-height: .82;
  letter-spacing: -.07em;
  white-space: nowrap !important;
}

.about .about-photo-layout > .about-photo-stack {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: stretch;
}

.about .about-photo-layout .about-copy {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  font-size: clamp(19px, 2.05vw, 39px);
  line-height: 1.16;
}

@media (max-width: 900px) {
  .services-extras ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-extras li,
  .services-extras li:nth-child(5n),
  .services-extras li:nth-last-child(-n + 5) {
    min-height: 56px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .services-extras li:nth-child(2n) {
    border-right: 0;
  }

  .services-extras li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .about .about-photo-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 24px;
  }

  .about .about-photo-layout > .mega.section-display-title {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(54px, 15vw, 112px);
  }

  .about .about-photo-layout .about-copy {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    font-size: clamp(22px, 5.7vw, 36px);
  }

  .about .about-photo-layout > .about-photo-stack {
    grid-column: 1;
    grid-row: 3;
    width: min(100%, 560px);
  }
}

@media (max-width: 480px) {
  .services-extras ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-extras li,
  .services-extras li:nth-child(2n),
  .services-extras li:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .services-extras li:last-child {
    border-bottom: 0;
  }
}

/* Oversized low-contrast brand marks sit behind the Work and Contact titles.
   The former small acid inline marks are removed from every section title. */
.section-display-title > .inline-mark {
  display: none !important;
}

.work > .mega.section-display-title,
.services-title.section-display-title,
.contact.contact-with-gif > .mega.section-display-title {
  isolation: isolate;
  z-index: 0;
}

.work.section {
  /* Clip at the true section boundary, directly below the violet hero band. */
  clip-path: inset(0 -100vw 0 -100vw);
}

.work > .section-label,
.work > .work-intro,
.work > .project-grid,
.contact.contact-with-gif > .section-label,
.contact.contact-with-gif > .contact-intro,
.contact.contact-with-gif > .contact-gif,
.contact.contact-with-gif > .contact-options,
.contact.contact-with-gif > .contact-row,
.contact.contact-with-gif > .socials {
  position: relative;
  z-index: 2;
}

.work > .mega.section-display-title > .inline-mark,
.services-title.section-display-title > .inline-mark,
.contact.contact-with-gif > .mega.section-display-title > .inline-mark {
  display: block !important;
  z-index: -1;
  width: clamp(320px, 40vw, 760px);
  height: clamp(320px, 40vw, 760px);
  margin: 0;
  color: #111 !important;
  opacity: 1;
  pointer-events: none;
}

.work > .mega.section-display-title > .inline-mark {
  top: 52%;
  right: -12vw;
  width: clamp(500px, 52vw, 1040px);
  height: clamp(500px, 52vw, 1040px);
  transform: translateY(-50%) rotate(-10deg);
}

.services-title.section-display-title > .inline-mark {
  top: 50%;
  right: -3vw;
  width: clamp(300px, 34vw, 650px);
  height: clamp(300px, 34vw, 650px);
  transform: translateY(-50%) rotate(8deg);
}

.contact.contact-with-gif > .mega.section-display-title > .inline-mark {
  top: 52%;
  right: 4%;
  transform: translateY(-50%) rotate(10deg);
}

.work > .mega.section-display-title > .inline-mark i,
.services-title.section-display-title > .inline-mark i,
.contact.contact-with-gif > .mega.section-display-title > .inline-mark i {
  background: currentColor !important;
}

.work > .mega.section-display-title > .inline-mark .mark-alt,
.services-title.section-display-title > .inline-mark .mark-alt,
.contact.contact-with-gif > .mega.section-display-title > .inline-mark .mark-alt {
  display: none !important;
}

@media (max-width: 760px) {
  .work > .mega.section-display-title > .inline-mark,
  .services-title.section-display-title > .inline-mark,
  .contact.contact-with-gif > .mega.section-display-title > .inline-mark {
    width: clamp(240px, 78vw, 520px);
    height: clamp(240px, 78vw, 520px);
  }

  .work > .mega.section-display-title > .inline-mark {
    right: -34%;
    width: clamp(300px, 90vw, 620px);
    height: clamp(300px, 90vw, 620px);
  }

  .contact.contact-with-gif > .mega.section-display-title > .inline-mark {
    right: -14%;
  }

  .services-title.section-display-title > .inline-mark {
    right: -18%;
  }
}

.services-intro,
.services-grid,
.services-extras {
  position: relative;
  z-index: 2;
}

.services-grid {
  background: var(--ink);
}

/* The decorative marks flow through each heading area and stop naturally at
   the rule that introduces the next content block. */
.work > .project-grid,
.work > .work-horizontal-shell,
.contact.contact-with-gif > .contact-options {
  position: relative;
  z-index: 2;
  background: var(--ink);
}

@media (min-width: 761px) and (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .services-grid article {
    min-height: 280px;
    padding: 24px 18px;
  }

  .services-grid article + article {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .services-grid h3 {
    font-size: clamp(22px, 3.7vw, 34px);
  }
}

/* Clean per-letter weight response for section titles. The effect thickens
   the real glyph outline, preserving the original face, metrics and layout. */
.section-display-title.morph-text > .morph-letter {
  --morph-weight: 0;
  position: relative;
  z-index: 1;
  display: inline-block;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  vertical-align: baseline;
  paint-order: stroke fill;
  -webkit-text-stroke: calc(var(--morph-weight) * .042em) currentColor;
  pointer-events: none;
}

/* Wrapping each glyph removes the font's native V-A kerning pair. Restore the
   optical spacing only for the Portuguese contact title. */
:lang(pt) .contact.contact-with-gif > .mega.section-display-title
  > .morph-letter:first-child[data-glyph="V"] {
  margin-inline-end: -.065em;
}

.morph-text.is-morphing .morph-letter {
  will-change: -webkit-text-stroke-width;
}

/* Keep the original hero expansion untouched. The footer uses the same clean
   weight response while retaining its carefully fitted letter geometry. */

@media (min-width: 761px) {
  .footer-signature h2,
  .footer-signature h2:hover {
    --footer-inflate: 0;
    color: var(--white);
  }

  .footer-signature .footer-letter::before {
    transform: none;
    paint-order: stroke fill;
    -webkit-text-stroke: calc(var(--morph-weight, 0) * .042em) currentColor;
  }
}

/* A little more breathing room makes the weight change easier to read while
   keeping every editorial heading on one line. */
@media (min-width: 761px) {
  .work > .mega.section-display-title {
    font-size: clamp(38px, 6.6vw, 126px);
  }

  .services-title.section-display-title {
    font-size: clamp(50px, 10vw, 190px);
  }

  :lang(en) .services-title.section-display-title {
    font-size: clamp(56px, 12.4vw, 228px);
  }

  .contact.contact-with-gif > .mega.section-display-title {
    font-size: clamp(44px, 7.7vw, 148px);
  }

  :lang(en) .contact.contact-with-gif > .mega.section-display-title {
    font-size: clamp(40px, 6.25vw, 120px);
  }
}

@media (max-width: 760px) {
  .work > .mega.section-display-title {
    font-size: clamp(19px, calc((100vw - 54px) * .07), 50px);
  }

  :lang(en) .work > .mega.section-display-title {
    font-size: clamp(20px, calc((100vw - 54px) * .077), 55px);
  }

  .services-title.section-display-title {
    font-size: clamp(29px, 11vw, 64px);
  }

  :lang(en) .services-title.section-display-title {
    font-size: clamp(34px, 13vw, 72px);
  }

  .contact.contact-with-gif > .mega.section-display-title {
    font-size: 7.5vw;
  }

  :lang(en) .contact.contact-with-gif > .mega.section-display-title {
    font-size: 5.8vw;
  }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .morph-text .morph-letter {
    --morph-weight: 0 !important;
    -webkit-text-stroke-width: 0 !important;
    will-change: auto !important;
  }
}

/* Contact follows the same compact title-to-intro rhythm as the other
   chapters. The illustration no longer creates an oversized empty row, and
   the footer starts directly after the contact actions. */
@media (min-width: 761px) {
  .contact.contact-with-gif {
    grid-template-columns: minmax(0, 1fr) clamp(150px, 15vw, 250px);
    column-gap: clamp(24px, 3vw, 52px);
    padding-bottom: clamp(28px, 3vw, 48px);
  }

  .contact.contact-with-gif > .mega.section-display-title {
    margin: clamp(46px, 5vw, 82px) 0 clamp(18px, 1.8vw, 30px);
    padding-block: 0;
  }

  .contact.contact-with-gif > .contact-intro {
    align-self: start;
    margin: 0 0 clamp(24px, 2.5vw, 42px);
  }

  .contact.contact-with-gif > .contact-gif {
    width: 100%;
    margin: 0 0 clamp(24px, 2.5vw, 42px);
    justify-self: end;
    align-self: start;
  }

  footer:has(> .footer-signature) {
    min-height: auto;
  }

  .footer-signature {
    padding-top: clamp(12px, 1.5vw, 24px);
  }

  .footer-details {
    padding-block: 14px 16px;
  }
}

@media (max-width: 760px) {
  .contact.contact-with-gif {
    padding-bottom: 28px;
  }

  .contact.contact-with-gif > .mega.section-display-title {
    margin-block: clamp(40px, 11vw, 60px) 16px;
    padding-block: 0;
  }

  .contact.contact-with-gif > .contact-intro {
    margin-bottom: 22px;
  }

  .contact.contact-with-gif > .contact-gif {
    width: min(150px, 42vw);
    margin-bottom: 22px;
  }
}

/* Navigation offsets and a shared interaction rhythm. Contextual colors stay
   intact; only timing, movement and the text/arrow response are normalized. */
:root {
  --interaction-duration: 220ms;
  --interaction-ease: cubic-bezier(.22, 1, .36, 1);
  --interaction-shift: 4px;
  --arrow-white: url('/icons/arrow-white.svg');
  --arrow-acid: url('/icons/arrow-acid.svg');
  --arrow-purple: url('/icons/arrow-purple.svg');
  --arrow-black: url('/icons/arrow-black.svg');
}

.site-arrow {
  --site-arrow-image: var(--arrow-acid);
  --site-arrow-rotation: 0deg;
  display: inline-block;
  flex: 0 0 auto;
  width: .82em;
  height: .82em;
  margin-left: .42em;
  background: var(--site-arrow-image) center / contain no-repeat;
  transform: rotate(var(--site-arrow-rotation));
  transform-origin: center;
  transition: transform var(--interaction-duration) var(--interaction-ease),
    background-image var(--interaction-duration) var(--interaction-ease);
}

.site-arrow--north-east { --site-arrow-rotation: -90deg; }
.site-arrow--east { --site-arrow-rotation: -45deg; }
.site-arrow--south { --site-arrow-rotation: 45deg; }
.site-arrow--north { --site-arrow-rotation: -135deg; }
.site-arrow--west { --site-arrow-rotation: 135deg; }

.hero-value-cta-secondary .site-arrow--south {
  --site-arrow-rotation: 0deg;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  background: currentColor;
  -webkit-mask: url('/icons/arrow-down.svg') center / contain no-repeat;
  mask: url('/icons/arrow-down.svg') center / contain no-repeat;
}

.site-arrow--large {
  width: clamp(32px, 2.8vw, 42px);
  height: clamp(32px, 2.8vw, 42px);
  margin-left: 0;
}

:is(.hero-value-cta-secondary, .about-cv-download, footer a) .site-arrow {
  --site-arrow-image: var(--arrow-white);
}

:is(.hero-value-cta-primary, .hero-contact-submit, .hero-contact-option:is(:hover, :focus-visible)) .site-arrow,
.project-grid > .project:is(:hover, :focus-within) .project-cta .site-arrow {
  --site-arrow-image: var(--arrow-black);
}

:is(.hero-value-cta-primary, .hero-contact-submit):is(:hover, :focus-visible) .site-arrow {
  --site-arrow-image: var(--arrow-purple);
}

:is(.hero-value-cta, .project-cta, .hero-contact-option, .hero-contact-submit, .contact-option, .contact-copy-button, .socials a, .tag-project-actions a, .project-tag-link, .case-nav button, footer a) {
  align-items: center;
}

:is(.hero-value-cta, .hero-contact-submit, .contact-copy-button, .socials a, .tag-project-actions a, .project-tag-link, footer a) {
  display: inline-flex !important;
}

:is(.hero-value-cta, .project-cta, .hero-contact-option, .hero-contact-submit, .contact-option, .contact-copy-button, .socials a, .tag-project-actions a, .project-tag-link, .case-nav button, footer a):is(:hover, :focus-visible) .site-arrow {
  transform: translate(var(--interaction-shift), calc(var(--interaction-shift) * -1)) rotate(var(--site-arrow-rotation));
}

.hero-contact-option > .site-arrow {
  width: 26px;
  height: 26px;
  margin-left: 0;
}

html {
  scroll-padding-top: 70px;
}

:is(
  .header nav a,
  .mobile-menu > a,
  .socials a,
  footer a,
  .hero-value-cta,
  .project-like,
  .project-tag-link,
  .about-cv-download,
  .contact-option,
  .contact-copy-button,
  .hero-contact-option,
  .hero-contact-back,
  .hero-contact-submit,
  .tag-project-actions > *,
  .case-nav button,
  .modal-top button
) {
  transition-duration: var(--interaction-duration) !important;
  transition-timing-function: var(--interaction-ease) !important;
}

:is(.header nav a, .mobile-menu > a, .socials a, footer a) {
  display: inline-block;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: left calc(100% - 1px);
  background-repeat: no-repeat;
  background-size: 0 1px;
  text-decoration: none;
  transition-property: color, background-size !important;
}

:is(.header nav a, .mobile-menu > a, .socials a, footer a):is(:hover, :focus-visible) {
  background-size: 100% 1px;
  transform: none;
}

:is(.hero-value-cta, .project-like, .project-tag-link, .contact-copy-button, .hero-contact-back, .hero-contact-submit, .tag-project-actions > *, .modal-top button):is(:hover, :focus-visible) {
  transform: translateY(-2px);
}

.project-grid > .project :is(.project-title, .project-cta),
.services-grid article h3,
.services-extras li,
.contact-option :is(strong, small),
.hero-contact-option :is(strong, small),
.tag-project-actions > * > :last-child,
.case-nav button strong,
.about-cv-label,
.about-cv-arrow {
  transition-duration: var(--interaction-duration) !important;
  transition-timing-function: var(--interaction-ease) !important;
}

.project-grid > .project:is(:hover, :focus-within) :is(.project-title, .project-cta),
.services-grid article:is(:hover, :focus-within) h3,
.contact-option:is(:hover, :focus-visible) :is(strong, small),
.hero-contact-option:is(:hover, :focus-visible) :is(strong, small),
.case-nav button:is(:hover, :focus-visible) strong {
  transform: translateX(var(--interaction-shift));
}

.services-extras li {
  transition-property: background-color, color, padding-left !important;
}

.services-extras li:is(:hover, :focus-within) {
  padding-left: calc(clamp(14px, 1.6vw, 26px) + var(--interaction-shift));
}

.contact-option small,
.hero-contact-option > span,
.about-cv-arrow {
  transition-property: color, transform !important;
}

.contact-option:is(:hover, :focus-visible) small,
.hero-contact-option:is(:hover, :focus-visible) > span:not(.site-arrow),
.about-cv-download:is(:hover, :focus-visible) .about-cv-arrow {
  transform: translate(var(--interaction-shift), calc(var(--interaction-shift) * -1));
}

.about-underlay {
  pointer-events: none;
}

@media (max-width: 760px) {
  html { scroll-padding-top: 86px; }
}

@media (prefers-reduced-motion: reduce) {
  :is(a, button, .project-title, .project-cta, .services-grid h3, .services-extras li, .contact-option strong, .contact-option small) {
    transition-duration: 0.01ms !important;
  }
}

/* One shared upward sweep for action links. Context variables preserve the
   existing black, white, acid and violet relationships in each section. */
:where(
  .hero-value-cta,
  .about-cv-download,
  .hero-contact-option,
  .hero-contact-submit,
  .contact-option,
  .contact-copy-button,
  .hero-contact-back,
  .menu-button,
  .language-switch button,
  .project-like,
  .project-tag-link,
  .modal-top button,
  .copy-confirmation button,
  .tag-project-actions > *,
  .case-nav button
) {
  --sweep-base: transparent;
  --sweep-fill: var(--acid);
  --sweep-text: var(--ink);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

:where(
  .hero-value-cta,
  .about-cv-download,
  .hero-contact-option,
  .hero-contact-submit,
  .contact-option,
  .contact-copy-button,
  .hero-contact-back,
  .menu-button,
  .language-switch button,
  .project-like,
  .project-tag-link,
  .modal-top button,
  .copy-confirmation button,
  .tag-project-actions > *,
  .case-nav button
)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px;
  background: var(--sweep-fill);
  transform: translateY(101%);
  transform-origin: center bottom;
  transition: transform var(--interaction-duration) var(--interaction-ease);
  pointer-events: none;
}

:where(
  .hero-value-cta,
  .about-cv-download,
  .hero-contact-option,
  .hero-contact-submit,
  .contact-option,
  .contact-copy-button,
  .hero-contact-back,
  .menu-button,
  .language-switch button,
  .project-like,
  .project-tag-link,
  .modal-top button,
  .copy-confirmation button,
  .tag-project-actions > *,
  .case-nav button
):is(:hover, :focus-visible) {
  background: var(--sweep-base) !important;
  color: var(--sweep-text) !important;
}

:where(
  .hero-value-cta,
  .about-cv-download,
  .hero-contact-option,
  .hero-contact-submit,
  .contact-option,
  .contact-copy-button,
  .hero-contact-back,
  .menu-button,
  .language-switch button,
  .project-like,
  .project-tag-link,
  .modal-top button,
  .copy-confirmation button,
  .tag-project-actions > *,
  .case-nav button
):is(:hover, :focus-visible)::before {
  transform: translateY(0);
}

.hero-value-cta-primary,
.hero-contact-submit {
  --sweep-base: var(--acid);
  --sweep-fill: var(--white);
  --sweep-text: var(--violet);
}

.hero-value-cta-secondary {
  --sweep-base: transparent;
  --sweep-fill: var(--white);
  --sweep-text: var(--violet);
}

.about-cv-download {
  --sweep-base: var(--ink);
  --sweep-fill: #171717;
  --sweep-text: var(--white);
}

.about-cv-download:hover {
  border-color: var(--ink) !important;
  box-shadow: none !important;
}

.about-cv-download:focus-visible {
  border-color: var(--ink) !important;
  box-shadow: 0 0 0 3px var(--violet), 0 0 0 6px var(--white) !important;
}

.contact-whatsapp {
  --sweep-base: var(--acid);
  --sweep-fill: var(--white);
  --sweep-text: var(--violet);
}

.contact-email {
  --sweep-base: var(--violet);
  --sweep-fill: var(--white);
  --sweep-text: var(--violet);
}

.contact-copy-button {
  --sweep-base: var(--acid);
  --sweep-fill: var(--white);
  --sweep-text: var(--violet);
}

.hero-contact-whatsapp {
  align-items: flex-start !important;
  text-align: left !important;
}

.hero-contact-whatsapp :is(strong, small) {
  margin-inline: 0 !important;
  text-align: left !important;
}

.contact-options .contact-option {
  align-items: flex-start;
  text-align: left;
}

.project-like {
  position: absolute;
  --sweep-base: #050505d9;
  --sweep-fill: var(--acid);
  --sweep-text: var(--ink);
}

.modal-top button {
  --sweep-base: var(--acid);
  --sweep-fill: var(--white);
  --sweep-text: var(--violet);
}

.hero-value-cta-secondary:is(:hover, :focus-visible) .site-arrow,
:is(.hero-value-cta-primary, .hero-contact-submit):is(:hover, :focus-visible) .site-arrow {
  --site-arrow-image: var(--arrow-purple);
}

:is(.hero-contact-option, .contact-option):is(:hover, :focus-visible) .site-arrow {
  --site-arrow-image: var(--arrow-black);
}

.about-cv-download:is(:hover, :focus-visible) .site-arrow {
  --site-arrow-image: var(--arrow-white);
}

.contact-whatsapp .site-arrow {
  --site-arrow-image: var(--arrow-black);
}

.contact-email .site-arrow {
  --site-arrow-image: var(--arrow-white);
}

.contact-email:is(:hover, :focus-visible) .site-arrow {
  --site-arrow-image: var(--arrow-purple);
}

.contact-whatsapp:is(:hover, :focus-visible) .site-arrow {
  --site-arrow-image: var(--arrow-purple);
}

@media (prefers-reduced-motion: reduce) {
  :where(
    .hero-value-cta,
    .about-cv-download,
    .hero-contact-option,
    .hero-contact-submit,
    .contact-option,
    .contact-copy-button,
    .hero-contact-back,
    .menu-button,
    .language-switch button,
    .project-like,
    .project-tag-link,
    .modal-top button,
    .copy-confirmation button,
    .tag-project-actions > *,
    .case-nav button
  )::before {
    transition-duration: 0.01ms;
  }
}

/* Project popup editorial opening: denser hierarchy, Inter body copy and
   compact navigation without changing the site's existing interaction layers. */
.project-popup {
  --popup-body-font: "inter-18pt", "Inter", sans-serif;
  --popup-gutter: clamp(28px, 3.25vw, 62px);
}

.project-popup .popup-case > header {
  padding: clamp(34px, 4vw, 68px) var(--popup-gutter) 0;
}

.project-popup .popup-case > header > p {
  margin: 0;
  color: var(--acid);
  font-size: clamp(10px, .72vw, 12px);
  letter-spacing: .075em;
  text-transform: uppercase;
}

.project-popup .popup-case > header h2 {
  max-width: 100%;
  margin: clamp(24px, 2.6vw, 42px) 0 clamp(28px, 3.2vw, 52px);
  font-size: clamp(42px, 5.25vw, 84px);
  line-height: .88;
  letter-spacing: -.075em;
  white-space: normal;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.project-popup .case-meta {
  grid-template-columns: minmax(130px, .8fr) minmax(260px, 1.7fr) minmax(90px, .5fr);
  gap: clamp(20px, 3vw, 54px);
  padding: clamp(17px, 1.6vw, 25px) 0 clamp(21px, 2vw, 32px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-popup .case-meta span {
  min-width: 0;
  font-size: 10px;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.project-popup .case-meta b {
  margin-top: 7px;
  font-family: var(--popup-body-font) !important;
  font-optical-sizing: auto;
  font-size: clamp(12px, .86vw, 15px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}

.project-popup .case-intro {
  grid-template-columns: minmax(130px, .7fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(30px, 5vw, 92px);
  padding: clamp(34px, 4vw, 68px) var(--popup-gutter) clamp(48px, 5.5vw, 88px);
}

.project-popup .case-intro p {
  margin: .2em 0 0;
  color: var(--acid);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.project-popup .case-intro h3 {
  max-width: 58rem;
  margin: 0;
  font-family: var(--popup-body-font) !important;
  font-optical-sizing: auto;
  font-size: clamp(20px, 1.75vw, 29px);
  font-weight: 430;
  line-height: 1.34;
  letter-spacing: -.025em;
  text-wrap: pretty;
}

.project-popup .popup-slide figcaption,
.project-popup .popup-gallery-summary {
  font-family: var(--popup-body-font) !important;
  font-optical-sizing: auto;
  font-weight: 430;
  line-height: 1.55;
}

/* Malhafil support copy reads as a caption and follows the full image width. */
.project-popup .popup-slides:has(> .popup-slide img[src*="/malhafil/"]) .popup-slide figcaption {
  width: 100%;
  max-width: none;
  padding-top: 12px;
  font-size: clamp(11px, .82vw, 14px);
  font-weight: 420;
  line-height: 1.48;
  letter-spacing: .005em;
}

.project-popup .case-nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 96px);
}

.project-popup .case-nav button {
  display: flex;
  min-width: 0;
  min-height: clamp(112px, 12vw, 170px);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(20px, 2.2vw, 34px) var(--popup-gutter);
  overflow: hidden;
  white-space: normal;
  font-size: clamp(10px, .8vw, 13px);
  line-height: 1.2;
}

/* The compact previous/next controls intentionally opt out of the global
   sweep. Their long labels wrap inside the button instead of leaking out. */
.project-popup .case-nav button::before {
  content: none !important;
}

.project-popup .case-nav button:is(:hover, :focus-visible) {
  color: var(--acid) !important;
  background: var(--ink) !important;
}

.project-popup .case-nav button:last-child {
  align-items: flex-end;
}

.project-popup .case-nav strong {
  max-width: min(100%, 30ch);
  margin: 0;
  font-size: clamp(16px, 1.65vw, 27px);
  line-height: 1;
  letter-spacing: -.035em;
  white-space: normal;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

/* Give the primary navigation underline a small, deliberate breathing space. */
.header nav > a {
  padding-bottom: 3px;
  margin-bottom: -3px;
  background-position: left 100%;
}

/* Language controls mirror the primary navigation underline and spacing. */
.header .language-switch button,
.mobile-menu .language-switch button {
  display: inline-block;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0 0 3px;
  margin-bottom: -3px;
  isolation: auto;
  overflow: visible;
  color: inherit;
  background-color: transparent !important;
  background-image: linear-gradient(currentColor, currentColor) !important;
  background-position: left 100% !important;
  background-repeat: no-repeat !important;
  background-size: 0 1px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  transition-property: color, background-size, opacity !important;
}

.header .language-switch button::before,
.mobile-menu .language-switch button::before {
  content: none !important;
}

.header .language-switch button:is(:hover, :focus-visible),
.mobile-menu .language-switch button:is(:hover, :focus-visible) {
  color: var(--acid) !important;
  opacity: 1;
  background-size: 100% 1px !important;
}

.header .language-switch button.active,
.mobile-menu .language-switch button.active {
  color: var(--acid) !important;
  opacity: 1;
  background-size: 100% 1px !important;
}

@media (max-width: 760px) {
  .project-popup {
    --popup-gutter: 16px;
  }

  .mobile-menu > a {
    display: grid !important;
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 10px;
    align-items: baseline;
  }

  .project-popup .popup-case > header {
    padding: 30px var(--popup-gutter) 0;
  }

  .project-popup .popup-case > header h2 {
    margin: 24px 0 28px;
    font-size: clamp(36px, 12vw, 62px);
    line-height: .9;
  }

  .project-popup .case-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .project-popup .case-meta span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .project-popup .case-intro {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px var(--popup-gutter) 42px;
  }

  .project-popup .case-intro h3 {
    max-width: 42rem;
    font-size: clamp(18px, 5vw, 23px);
    line-height: 1.38;
  }

  .project-popup .case-nav button {
    min-height: 120px;
    gap: 8px;
    padding: 20px 16px;
    font-size: 10px;
  }

  .project-popup .case-nav strong {
    max-width: 100%;
    font-size: clamp(13px, 4vw, 18px);
    line-height: 1.05;
  }
}

/* Final shared treatment for every project tag. This intentionally sits at
   the end of the cascade so card length, breakpoint and hover state cannot
   select a different interaction style. */
.project-grid .project-tags .project-tag-link {
  color: inherit !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: none !important;
  transition: none !important;
  overflow: visible !important;
}

.project-grid .project-tags .project-tag-link::before {
  content: none !important;
  display: none !important;
}

.project-grid .project-tags .project-tag-link:is(:hover, :focus, :focus-visible, :active) {
  color: inherit !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  text-decoration-line: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
  transform: none !important;
}

/* One caption system for every project popup: compact support copy aligned
   to the exact width of its image or video. */
.project-popup .popup-slide figcaption {
  width: 100%;
  max-width: none;
  border: 0;
  padding: 12px 0 0;
  font-family: var(--popup-body-font) !important;
  font-optical-sizing: auto;
  font-size: clamp(11px, .82vw, 14px);
  font-weight: 420;
  line-height: 1.48;
  letter-spacing: .005em;
  text-wrap: pretty;
}

/* Malhafil video additions follow the existing popup title hierarchy. The
   Black Friday caption sits beside its film on wide screens; the final two
   short videos share one title and one balanced row. */
.project-popup-malhafil .popup-slides-stacked .popup-slide video {
  width: auto;
  height: min(68dvh, 640px);
  max-width: 100%;
  max-height: min(68dvh, 640px);
  margin-inline: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #000;
}

/* Preserve every Vistas do Itaqueri board at its original presentation ratio. */
.project-popup-vistas-do-itaqueri .popup-slide img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}

@media (min-width: 761px) {
  .project-popup-malhafil .popup-slides-stacked {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-popup-malhafil .popup-slides-stacked > .popup-slide {
    grid-column: 1 / -1;
  }

  .project-popup-malhafil .popup-slides-stacked > .popup-slide:nth-child(7) {
    display: block;
  }

  .project-popup-malhafil .popup-slides-stacked > .popup-slide:nth-child(7) video {
    width: auto;
    max-width: min(100%, 420px);
    margin-inline: auto;
  }

  .project-popup-malhafil .popup-slides-stacked > .popup-slide:nth-child(7) figcaption {
    width: min(100%, 420px);
    margin-inline: auto;
    padding-top: 12px;
  }

  .project-popup-malhafil .popup-slides-stacked > .popup-slide:nth-child(8),
  .project-popup-malhafil .popup-slides-stacked > .popup-slide:nth-child(9) {
    --malhafil-short-title-space: clamp(42px, 4vw, 54px);
    grid-column: auto;
    position: relative;
    padding-top: var(--malhafil-short-title-space);
  }

  .project-popup-malhafil .popup-slides-stacked > .popup-slide:nth-child(8) .popup-slide-title {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(200% + 24px);
  }

  .project-popup-malhafil .popup-slides-stacked > .popup-slide:nth-child(8) video,
  .project-popup-malhafil .popup-slides-stacked > .popup-slide:nth-child(9) video {
    height: min(60dvh, 560px);
    max-height: min(60dvh, 560px);
  }
}

/* Contact: one editorial panel with narrative on the left, compact primary
   actions on the right and one unified utility row below. */
.contact.contact-with-gif > .contact-main-frame {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  min-width: 0;
  margin-top: clamp(22px, 2.8vw, 44px);
  overflow: hidden;
  color: var(--white);
  background: #0b0b0b;
  border: 1px solid color-mix(in srgb, var(--acid) 62%, transparent);
}

.contact-panel-editorial {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(24px, 3vw, 48px);
  row-gap: clamp(14px, 1.6vw, 24px);
  min-width: 0;
  min-height: clamp(300px, 25vw, 410px);
  padding: clamp(32px, 4vw, 60px);
  border-right: 1px solid color-mix(in srgb, var(--white) 24%, transparent);
}

.contact-panel-eyebrow {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--acid);
  font-size: clamp(10px, .75vw, 12px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .055em;
}

.contact-panel-title {
  grid-column: 1;
  margin: 0;
  max-width: 10ch;
  color: var(--white);
  font-family: var(--display-font, inherit);
  font-size: clamp(38px, 4.1vw, 68px);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.contact-panel-copy {
  grid-column: 1;
  margin: 0;
  max-width: 48ch;
  align-self: end;
  color: color-mix(in srgb, var(--white) 84%, transparent);
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.42;
  text-wrap: pretty;
}

.contact-main-frame > .contact-options {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.5vw, 24px);
  min-width: 0;
  margin: 0;
  padding: clamp(34px, 4vw, 60px) clamp(28px, 4vw, 60px);
  background: transparent;
  border: 0;
}

.contact-main-frame .contact-option {
  width: min(86%, 480px);
  max-width: 480px;
  min-width: 0;
  min-height: 0;
  gap: clamp(8px, .8vw, 12px);
  padding: clamp(16px, 1.5vw, 22px) clamp(26px, 2.5vw, 38px);
  border: 1px solid color-mix(in srgb, var(--white) 72%, transparent);
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.contact-main-frame .contact-option + .contact-option {
  border: 1px solid color-mix(in srgb, var(--white) 72%, transparent);
}

.contact-main-frame .contact-option strong {
  max-width: 100%;
  font-size: clamp(23px, 2vw, 36px);
  line-height: .94;
  text-wrap: balance;
}

.contact-main-frame .contact-option::before {
  content: none !important;
}

.contact-main-frame .contact-whatsapp {
  color: var(--ink);
  background: var(--acid);
}

.contact-main-frame .contact-email {
  color: var(--white);
  background: var(--violet);
}

.contact-main-frame .contact-whatsapp:is(:hover, :focus-visible, :active) {
  color: var(--white) !important;
  background: var(--violet) !important;
}

.contact-main-frame .contact-email:is(:hover, :focus-visible, :active) {
  color: var(--ink) !important;
  background: var(--acid) !important;
}

.contact-main-frame .contact-option:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: -6px;
}

.contact-main-frame .contact-option:is(:hover, :focus-visible) strong {
  transform: none;
}

.contact-main-frame .contact-whatsapp:is(:hover, :focus-visible, :active) .site-arrow {
  --site-arrow-image: var(--arrow-white);
}

.contact-main-frame .contact-email:is(:hover, :focus-visible, :active) .site-arrow {
  --site-arrow-image: var(--arrow-black);
}

.contact.contact-with-gif > .contact-action-strip {
  grid-column: 1 / -1;
  justify-self: end;
  display: grid;
  grid-template-columns: minmax(142px, auto) minmax(248px, auto);
  align-items: stretch;
  width: fit-content;
  margin: clamp(14px, 1.8vw, 24px) 0 0;
  gap: 0;
  padding: 0;
  border: 0;
}

.contact-action-strip > span[hidden] {
  display: none !important;
}

.contact-action-strip > .contact-copy-button,
.contact-action-strip .contact-secondary-socials a,
.contact-action-strip .contact-secondary-socials a:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 44px;
  padding: 12px 16px;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
}

.contact-action-strip > .contact-copy-button {
  --sweep-base: var(--acid);
  --sweep-fill: var(--acid);
  --sweep-text: var(--ink);
  color: var(--ink);
  background: var(--acid);
  border: 1px solid var(--acid);
}

.contact-action-strip > .contact-copy-button:is(:hover, :focus-visible, :active) {
  color: var(--ink) !important;
  background: var(--acid) !important;
}

.contact-action-strip > .contact-secondary-socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(124px, 1fr));
  width: 100%;
  margin: 0;
  border: 0;
}

.contact-action-strip .contact-secondary-socials a,
.contact-action-strip .contact-secondary-socials a:last-child {
  color: var(--white);
  background: var(--ink);
  border: 1px solid color-mix(in srgb, var(--white) 38%, transparent);
  border-left: 0;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.contact-action-strip .contact-secondary-socials a:is(:hover, :focus-visible, :active) {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
}

.contact-action-strip .contact-secondary-socials a:is(:hover, :focus-visible, :active) .site-arrow {
  --site-arrow-image: var(--arrow-black);
}

.contact-action-strip :is(.contact-copy-button, .contact-secondary-socials a):focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .contact.contact-with-gif > .contact-main-frame {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 20px;
  }

  .contact-panel-editorial {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 16px;
    min-height: 0;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--white) 24%, transparent);
  }

  .contact-panel-eyebrow,
  .contact-panel-title,
  .contact-panel-copy {
    grid-column: 1;
  }

  .contact-panel-title {
    font-size: clamp(38px, 12vw, 54px);
  }

  .contact-panel-copy {
    align-self: auto;
    font-size: 15px;
  }

  .contact-main-frame > .contact-options {
    grid-column: 1;
    grid-row: 2;
    gap: 14px;
    padding: clamp(22px, 6vw, 28px);
  }

  .contact-main-frame .contact-option {
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 16px 20px;
  }

  .contact-main-frame .contact-option strong {
    font-size: clamp(24px, 7.5vw, 34px);
  }

  .contact.contact-with-gif > .contact-action-strip {
    justify-self: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    width: 100%;
  }

  .contact-action-strip > .contact-secondary-socials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-action-strip > .contact-copy-button,
  .contact-action-strip .contact-secondary-socials a,
  .contact-action-strip .contact-secondary-socials a:last-child {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
    font-size: clamp(8px, 2.3vw, 10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-main-frame .contact-option,
  .contact-action-strip :is(.contact-copy-button, .contact-secondary-socials a) {
    transition-duration: .01ms !important;
  }
}
