header, .case-page header, .work-page header { font-size: 12px; }
.feather-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; flex-shrink: 0; }
.feather-icon svg { width: 20px; height: 20px; stroke-width: 2; }
.explore-work .feather-icon { font-size: inherit; line-height: 0; }
.carousel-arrow .feather-icon svg { width: 16px; height: 16px; }
.project-nav a { display: inline-flex; align-items: center; gap: 10px; }

.desktop-signature { opacity: 1; animation: signature-shrink 1.1s cubic-bezier(.22,1,.36,1) 1.65s both; }
.desktop-signature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.signature-gray { filter: brightness(.28); }
.signature-white { clip-path: inset(0); animation: signature-wipe 1s linear .55s both; }
@keyframes signature-wipe {
  from { clip-path: inset(0 0 0 0); }
  to { clip-path: inset(0 100% 0 0); }
}
@keyframes signature-shrink {
  from { transform: translate(100px,110px) scale(2.4); }
  to { transform: translate(0,0) scale(1); }
}
#works .project-grid, .work-page .work-catalog .project-grid { gap: 10px; }
.work-catalog .card-caption, .work-catalog .project-card > p { display: none; }
.card-details {
  position: absolute; inset: 0 auto 0 0; z-index: 2;
  display: flex; flex-direction: column; gap: 14px;
  width: min(32%,300px); padding: 12px 40px;
  background: #151515df; opacity: 0; transform: translateX(-16px);
  transition: opacity .3s, transform .4s cubic-bezier(.22,1,.36,1);
  pointer-events: none; overflow: hidden;
}
.card-details p, .card-details h3 { margin: 0; }
.card-name { font: 700 16px/1.2 Switzer,Arial,sans-serif; color: #ffffff80; text-transform: uppercase; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card-tags span { background: #f2f1ed; color: #000; border-radius: 20px; font: 500 10px/1 Switzer,Arial,sans-serif; padding: 4px 8px; }
.card-slogan { font: 500 clamp(24px,2.4vw,36px)/1.04 Switzer,Arial,sans-serif; letter-spacing: -.03em; margin-block: 12px !important; }
.card-description { font: 500 14px/1.15 Switzer,Arial,sans-serif; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 11; overflow: hidden; }
.card-hook { margin-top: auto !important; font: 700 10px/1.1 Switzer,Arial,sans-serif; text-transform: uppercase; }
.card-open { position: absolute; z-index: 2; left: 70%; top: 50%; transform: translate(-50%,-50%) scale(.9); width: 130px; height: 130px; border: 7px solid #fff; border-radius: 50%; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s, transform .35s; }
.card-open .feather-icon svg { width: 112px; height: 112px; stroke-width: 1.5; }
.project-card:is(.is-pointer-active,:focus-visible) .card-details { opacity: 1; transform: translateX(0); }
.project-card:is(.is-pointer-active,:focus-visible) .card-open { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.pill-link { display: flex; width: fit-content; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 0; padding: 40px 0; margin: 40px auto 0; font: 700 14px/1.2 Switzer,Arial,sans-serif; }
.pill-link .feather-icon { transition: transform .2s; }
.pill-link:is(:hover,:focus-visible) .feather-icon { transform: translate(2px,-2px); }

.portrait-tilt { width: 88%; max-width: 520px; perspective: 900px; }
.portrait-tilt > img { display: block; width: 100%; height: auto; object-fit: contain; transform-style: preserve-3d; transition: transform .35s ease-out; }
.portrait-tilt.is-tilting > img { transition-duration: .12s; will-change: transform; }
.footer-identity { display: flex; align-items: flex-start; gap: 28px; }
.footer-gif { display: block; width: 160px; max-width: 35%; height: auto; aspect-ratio: 1080/1280; object-fit: cover; }

@media (max-width: 1199px) and (min-width: 810px) {
  .card-details { width: 34%; padding: 12px 24px; gap: 10px; }
  .card-slogan { font-size: 28px; margin-block: 4px !important; }
  .card-description { font-size: 12px; -webkit-line-clamp: 8; }
  .card-hook { font-size: 9px; }
}
@media (max-width: 809px), (hover: none) {
  .card-details { top: auto; bottom: 0; width: 100%; height: auto; padding: 16px 60px 16px 16px; opacity: 1; transform: none; background: linear-gradient(transparent,#000d); }
  .card-details .card-name, .card-tags, .card-description, .card-hook { display: none; }
  .card-slogan { font-size: 22px; margin: 0 !important; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .card-open, .project-card:is(.is-pointer-active,:focus-visible) .card-open { left: auto; right: 16px; top: auto; bottom: 16px; width: 32px; height: 32px; border-width: 2px; opacity: 1; transform: none; }
  .card-open .feather-icon svg { width: 26px; height: 26px; }
  .portrait-tilt { width: 86%; max-width: 360px; }
  .footer-identity { gap: 20px; }
  .footer-gif { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .desktop-signature { animation: none; transform: none; opacity: 1; }
  .signature-white { animation: none; visibility: hidden; }
  .portrait-tilt > img, .card-details, .card-open, .pill-link .feather-icon { transition: none; }
}

/* Cover layout shared by Selected Work and the full Work catalogue. */
header, .case-page header, .work-page header { font-size: 13px; }
#works .card-image { height: 70vh; aspect-ratio: auto; }
.work-catalog .card-image { height: 80vh; aspect-ratio: auto; }
.card-image > img { opacity: .5; transform: scale(1); transition: opacity .4s ease, transform .6s ease; }
.project-card:is(.is-pointer-active,:focus-visible) .card-image > img { opacity: 1; transform: scale(1.025); }
.project-card .card-image > img { position: absolute; left: 0; top: -15vh; width: 100%; height: calc(100% + 30vh); translate: 0 var(--image-drift, 0px); }
/* Homepage: 17vh of symmetric travel space preserves center composition at every scroll offset. */
#works .project-card .card-image > img { top: -17vh; height: calc(100% + 34vh); object-position: center center; }
.card-details {
  inset: auto auto 24px 24px;
  width: 440px; max-width: calc(100% - 48px); height: auto;
  padding: 24px; gap: 24px; border-radius: 18px;
  background: rgb(28 28 28 / 70%);
  transform: translateY(10px);
}
.card-name { font-size: 14px; }
.card-slogan { font-size: 32px; line-height: 1.05; margin: 0 !important; }
.card-description { font-size: 18px; line-height: 1.15; display: block; }
.card-hook { margin-top: 0 !important; font-size: 14px; line-height: 1.15; }
.card-tags { gap: 8px; }
.card-tags span { font-size: 14px; padding: 6px 16px; }
.work-catalog .card-details { opacity: 1; transform: none; }
.work-catalog .card-open { display: none; }
.work-main { max-width: none; }
.work-catalog { padding-inline: 3.15%; }
@media (max-width: 809px), (hover: none) {
  .card-details { inset: auto auto 18px 18px; max-width: calc(100% - 36px); padding: 20px; gap: 18px; transform: none; }
  .card-details .card-name, .card-details .card-tags, .card-details .card-description, .card-details .card-hook { display: flex; }
  .card-slogan { display: block; font-size: 26px; }
  .card-description { font-size: 14px; }
  .card-hook { font-size: 11px; }
  .card-tags span { padding: 5px 12px; font-size: 11px; }
  .card-open { display: none; }
  .work-catalog { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-card .card-image > img { translate: none; }
}

/* Original compact footer and the main-page hover rail. */
footer { border-top: 0; padding: 80px 48px 32px; gap: 34px; }
.footer-identity { gap: 10px; }
.footer-gif { width: 66px; height: 120px; max-width: none; aspect-ratio: auto; object-fit: cover; }
.footer-identity > div { display: flex; flex-direction: column; align-items: flex-start; }
.footer-identity p { font: 700 12px/1.2 Switzer,Arial,sans-serif; margin: 0 0 34px; }
.footer-identity a { display: block; margin: 0; font: 700 12px/1.2 Switzer,Arial,sans-serif; }
.footer-title { justify-self: end; text-align: right; font: 500 28px/1 Switzer,Arial,sans-serif; letter-spacing: -.04em; margin: 0; }
.footer-bottom { font: 700 12px/1.2 Switzer,Arial,sans-serif; }
.footer-bottom > a { margin: 0; padding: 12px 16px; border-radius: 50px; background: #fff; color: #111; font: 500 12px/1.2 Switzer,Arial,sans-serif; transition: background-color .2s, transform .2s; }
.footer-bottom > a:hover { background: #ddd; transform: translateY(-2px); }
#works { max-width: none; padding-inline: 48px; }
#works .project-card { max-width: none; }
#works .filters button { width: 104px; padding: 12px 16px; font: 400 16px/1.2 Switzer,Arial,sans-serif; }
#works .section-heading { gap: 56px; margin-bottom: 50px; }
#works .card-details { inset: 0 auto 0 0; width: 300px; max-width: 40%; padding: 20px 32px; gap: 16px; border-radius: 0; background: rgb(20 20 20 / 70%); transform: translateX(-12px); }
#works .card-name { order: 0; font-size: 16px; }
#works .card-tags { order: 1; gap: 8px; }
#works .card-tags span { font-size: 10px; padding: 4px 8px; }
#works .card-slogan { order: 2; font-size: 34px; line-height: 1.04; margin: 10px 0 12px !important; }
#works .card-description { order: 3; font-size: 14px; line-height: 1.15; }
#works .card-hook { order: 4; font-size: 10px; margin-top: auto !important; padding-top: 24px; }
#works .project-card:is(.is-pointer-active,:focus-visible) .card-details { transform: none; }
.portfolio-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-portfolio-cursor, .has-portfolio-cursor body, .has-portfolio-cursor a, .has-portfolio-cursor button { cursor: none; }
  .portfolio-cursor { display: grid; place-items: center; position: fixed; left: 0; top: 0; width: 13px; height: 13px; border: 0 solid #fff; border-radius: 50%; background: #fff; z-index: 1000; pointer-events: none; opacity: 0; translate: -50% -50%; transition: width .2s, height .2s, background-color .2s, border-width .2s, opacity .15s; }
  .portfolio-cursor.is-visible { opacity: 1; }
  .portfolio-cursor .cursor-arrow { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity .15s; }
  .portfolio-cursor.is-project { width: 132px; height: 132px; border-width: 0; background: transparent; }
  .portfolio-cursor.is-project .cursor-arrow { opacity: 1; }
}
@media (max-width: 809px) {
  footer { padding: 60px 24px 24px; grid-template-columns: 1fr auto; gap: 32px 16px; }
  .footer-title { font-size: 24px; }
  .footer-bottom { grid-column: 1/-1; }
  #works { padding-inline: 16px; }
  #works .section-heading { gap: 40px; }
  #works .card-details { inset: auto 16px 16px; width: auto; max-width: none; border-radius: 16px; padding: 18px; gap: 12px; transform: none; }
  #works .card-slogan { font-size: 26px; margin: 0 !important; }
  #works .card-description { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .portfolio-cursor { transition: none; } }

@font-face { font-family: Switzer; src: url('../media/switzer-500.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; }
/* Company introduction — full-width, unboxed editorial layout matching the portfolio. */
.company-intro-pending .desktop-signature,
.company-intro-pending .desktop-signature .signature-white {
  animation-play-state: paused !important;
}
body.application-modal-open { overflow: hidden; }
body.application-modal-open .portfolio-cursor { visibility: hidden !important; opacity: 0 !important; }
html.has-portfolio-cursor body.application-modal-open,
html.has-portfolio-cursor body.application-modal-open button,
html.has-portfolio-cursor body.application-modal-open a { cursor: auto !important; }

.application-modal-backdrop[hidden] { display: none !important; }
.application-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(18px,4vw,60px);
  color: #f7f7f7;
}
.application-curtain {
  position: absolute;
  z-index: 0;
  left: 0;
  width: 100%;
  height: 50.1%;
  background: rgba(8,8,8,.84);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: transform 960ms cubic-bezier(.75,0,.2,1) 170ms;
  will-change: transform;
}
.application-curtain-top { top: 0; }
.application-curtain-bottom { bottom: 0; }

.application-modal {
  position: relative;
  z-index: 1;
  width: min(100%,495px);
  max-height: min(92dvh,850px);
  overflow-y: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  animation: introduction-in 550ms cubic-bezier(.22,1,.36,1) both;
  transition: opacity 180ms ease, transform 180ms ease;
}
@keyframes introduction-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
/* The dialog receives invisible initial focus; controls show rings only on keyboard navigation. */
.application-modal:focus { outline: none; }
.application-modal-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 34px;
  margin-bottom: 30px;
  padding-right: 6px;
}
.application-modal-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  padding: 3px;
  border: 1.25px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: transparent;
}
.application-modal-close .feather-icon svg { width: 10px; height: 10px; stroke-width: 2.6; }
.application-modal-close:hover { background: #fff; color: #111; }

.application-modal-title {
  max-width: none;
  margin: 0 0 17px;
  color: #f7f7f7;
  font: 500 30px/1.1 Switzer,Arial,sans-serif;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.application-modal-message {
  max-width: 100%;
  margin: 0 0 30px;
  color: #f1f1f1;
  font: 500 16px/1.33 Switzer,Arial,sans-serif;
  letter-spacing: -.01em;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.application-modal-author {
  margin: 0 0 30px;
  color: #aaa;
  font: 500 11px/1.3 Switzer,Arial,sans-serif;
  letter-spacing: .005em;
}
.application-modal-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 27px;
  border-top: 1px solid rgba(255,255,255,.72);
}
.application-modal-countdown {
  color: #898989;
  font: 400 11px/1.4 Switzer,Arial,sans-serif;
}
.application-modal-skip {
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: 500 11px/1.2 Switzer,Arial,sans-serif;
  cursor: pointer;
}
.application-modal-skip:hover { text-decoration: underline; text-underline-offset: 5px; }
.application-modal :is(button):focus-visible,
#works .application-reopen:focus-visible { outline: 2px solid #eee; outline-offset: 4px; }

.application-modal-backdrop.is-exiting { pointer-events: none; }
.application-modal-backdrop.is-exiting .application-modal {
  opacity: 0;
  transform: translateY(-10px);
  animation: none;
}
.application-modal-backdrop.is-exiting .application-curtain-top { transform: translateY(-101%); }
.application-modal-backdrop.is-exiting .application-curtain-bottom { transform: translateY(101%); }

#works .application-company-name { color: #ededed; }
#works .section-heading h2:has(.application-company-name) {
  max-width: 800px;
  font-size: clamp(21px,3vw,32px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
#works .application-reopen {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: #aaa;
  font: 500 12px/1.3 Switzer,Arial,sans-serif;
  letter-spacing: .05em;
  padding: 10px 14px;
}
#works .application-reopen .feather-icon svg { width: 16px; height: 16px; }
#works .application-reopen:hover { color: #fff; }
@media(max-width:600px) {
  .application-modal-backdrop { padding: 28px 24px; }
  .application-modal { max-height: 90dvh; }
  .application-modal-top { margin-bottom: 35px; }
  .application-modal-title { font-size: clamp(24px,6.4vw,30px); }
  .application-modal-message { font-size: 16px; margin-bottom: 28px; }
  .application-modal-author { margin-bottom: 26px; }
  .application-modal-bottom { padding-top: 25px; }
  .application-modal-countdown { max-width: 180px; }
}
@media(prefers-reduced-motion:reduce) {
  .application-modal { animation: none; transition: none; }
  .application-curtain { transition: none; will-change: auto; }
}

/* Programmatic focus after the curtain must not paint the browser's hero outline. */
.hero h1[tabindex="-1"]:focus { outline: none; }

/* Native anchor smooth scroll remains; coarse desktop wheels get lightweight JS inertia. */
html.wheel-smoothing { scroll-behavior: auto; }

/* Editorial cover details: one compact, bottom-aligned reading sequence. */
.card-details .card-name {
  padding-bottom: 10px;
  border-bottom: 1px solid rgb(255 255 255 / 26%);
}
.card-details .card-hook { margin-top: 0 !important; }
#works .card-details {
  justify-content: flex-end;
  justify-content: safe flex-end;
  gap: 12px;
  padding-block: clamp(18px, 3vh, 32px);
}
#works .card-slogan { margin: 7px 0 9px !important; }
#works .card-hook { margin-top: 0 !important; padding-top: 8px; }
@media (min-width: 810px) and (hover: hover) and (pointer: fine) {
  #works .card-details { transform: none; transition: opacity .3s ease; }
  #works .card-details > * {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity .32s ease, transform .48s cubic-bezier(.22,1,.36,1);
    transition-delay: 0s;
  }
  #works .project-card:is(.is-pointer-active,:focus-visible) .card-details > * {
    opacity: 1;
    transform: translateX(0);
    transition-delay: var(--card-enter-delay,0ms);
  }
  #works .card-name { --card-enter-delay: 0ms; }
  #works .card-tags { --card-enter-delay: 45ms; }
  #works .card-slogan { --card-enter-delay: 90ms; }
  #works .card-description { --card-enter-delay: 135ms; }
  #works .card-hook { --card-enter-delay: 180ms; }
}
@media (min-width: 810px) and (max-height: 750px) {
  #works .card-details { gap: 8px; padding-block: 16px; }
  #works .card-slogan { font-size: clamp(25px,4.2vh,34px); margin: 3px 0 5px !important; }
  #works .card-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
  #works .card-hook { padding-top: 4px; }
}
@media (max-width: 809px), (hover: none) {
  #works .card-details { justify-content: flex-end; gap: 12px; padding-block: 18px; transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #works .card-details, #works .card-details > * { transform: none !important; transition: none !important; }
}

/* Two distinct editorial treatments: frosted glass for Work, solid page inset for home. */
.work-catalog .card-details {
  width: 440px;
  padding: 26px;
  gap: 18px;
  background: rgb(20 20 20 / 74%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
}
.work-catalog .card-name { font: 500 13px/1.3 Switzer,Arial,sans-serif; color: #aaa; }
.work-catalog .card-tags { gap: 7px; }
.work-catalog .card-tags span { font: 400 12px/1.2 Switzer,Arial,sans-serif; padding: 5px 12px; }
.work-catalog .card-slogan { font: 500 clamp(26px,2.7vw,34px)/1.08 Switzer,Arial,sans-serif; }
.work-catalog .card-description { font: 400 15px/1.4 Switzer,Arial,sans-serif; color: #e3e3e3; }
.work-catalog .card-hook { font: 500 11px/1.35 Switzer,Arial,sans-serif; color: #e3e3e3; }
.card-description-full { display: none; }
#works .card-details {
  inset: auto auto 0 0;
  width: 400px;
  max-width: 48%;
  max-height: 100%;
  padding: 38px;
  gap: 0;
  border-radius: 0 22px 0 0;
  background: #0f0e0e;
  justify-content: safe flex-end;
}
#works .card-name {
  font: 500 16px/1.2 Switzer,Arial,sans-serif;
  color: #a0a0a0;
  padding: 0;
  border: 0;
  margin: 0 0 10px;
}
#works .card-tags {
  gap: 7px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgb(255 255 255 / 38%);
  margin: 0 0 24px;
}
#works .card-tags span { font: 400 10px/1.2 Switzer,Arial,sans-serif; padding: 4px 9px; }
#works .card-slogan {
  font: 500 clamp(29px,3vw,38px)/1.04 Switzer,Arial,sans-serif;
  letter-spacing: -.035em;
  margin: 0 0 24px !important;
}
#works .card-description {
  display: block;
  font: 400 14px/1.4 Switzer,Arial,sans-serif;
  color: #f1f1f1;
  margin: 0 0 24px;
  overflow: visible;
}
#works .card-description-full { display: inline; }
#works .card-description-short { display: none; }
#works .card-hook {
  font: 600 10px/1.3 Switzer,Arial,sans-serif;
  padding-top: 0;
  margin-top: 0 !important;
}
#works .card-description:last-child { margin-bottom: 0; }
@media (min-width: 810px) and (max-height: 820px) {
  #works .card-details { padding: 26px 30px; }
  #works .card-tags { margin-bottom: 17px; padding-bottom: 10px; }
  #works .card-slogan { font-size: clamp(26px,4.2vh,34px); margin-bottom: 16px !important; }
  #works .card-description { font-size: 13px; margin-bottom: 18px; }
}
@media (min-width: 810px) and (max-height: 650px) {
  #works .card-details { padding: 16px 22px; }
  #works .card-name { font-size: 13px; margin-bottom: 6px; }
  #works .card-tags { margin-bottom: 10px; padding-bottom: 7px; }
  #works .card-slogan { font-size: 25px; margin-bottom: 12px !important; }
  #works .card-description { font-size: 12px; margin-bottom: 12px; }
  #works .card-description-full { display: none; }
  #works .card-description-short { display: inline; }
}
@media (max-width: 809px), (hover: none) and (pointer: coarse) {
  #works .card-details { inset: auto auto 0 0; width: min(400px,100%); max-width: 100%; padding: 22px; border-radius: 0 18px 0 0; }
  #works .card-name { font-size: 13px; margin-bottom: 8px; }
  #works .card-tags { margin-bottom: 14px; padding-bottom: 9px; }
  #works .card-slogan { font-size: 26px; margin-bottom: 14px !important; }
  #works .card-description { font-size: 13px; margin-bottom: 14px; }
  #works .card-description-full { display: none; }
  #works .card-description-short { display: inline; }
  .work-catalog .card-details { padding: 18px; gap: 12px; }
  .work-catalog .card-slogan { font-size: 26px; }
  .work-catalog .card-description { font-size: 13px; }
  .work-catalog .card-tags span { font-size: 11px; }
}

/* Restore the edge-to-edge left rail, without changing the current visual hierarchy. */
#works .card-details,
.work-catalog .card-details {
  inset: 0 auto 0 0;
  height: auto;
  border-radius: 0;
  justify-content: flex-end;
  justify-content: safe flex-end;
}
@media (max-width: 809px), (hover: none) and (pointer: coarse) {
  #works .card-details,
  .work-catalog .card-details {
    inset: auto auto 0 0;
    max-width: 100%;
    border-radius: 0;
  }
}

/* One pointer state for cursor, cover and copy, even during inertial scrolling. */
@media (min-width: 810px) and (hover: hover) and (pointer: fine) {
  .project-card .card-image > img {
    transition: opacity .55s ease, transform .85s cubic-bezier(.22,1,.36,1);
  }
  .project-card:is(.is-pointer-active,:focus-visible) .card-image > img {
    transform: translateX(var(--cover-hover-x, 0px)) scale(var(--cover-hover-scale, 1.045));
    transition-delay: 0ms, 45ms;
  }
  #works .card-details { transition: opacity .46s cubic-bezier(.22,1,.36,1); }
  #works .card-details > * {
    transition: opacity .42s ease, transform .7s cubic-bezier(.22,1,.36,1);
    transition-delay: 0ms;
  }
  #works .card-name { --card-enter-delay: 80ms; }
  #works .card-tags { --card-enter-delay: 140ms; }
  #works .card-slogan { --card-enter-delay: 210ms; }
  #works .card-description { --card-enter-delay: 280ms; }
  #works .card-hook { --card-enter-delay: 350ms; }
  .portfolio-cursor { transition: width .38s cubic-bezier(.22,1,.36,1), height .38s cubic-bezier(.22,1,.36,1), background-color .24s, opacity .2s; }
  .portfolio-cursor .cursor-arrow { transition: opacity .28s ease; }
  html:not(.has-project-hover) .project-card:hover .card-image > img { opacity: 1; transform: scale(1.045); }
  html:not(.has-project-hover) #works .project-card:hover .card-details { opacity: 1; }
  html:not(.has-project-hover) #works .project-card:hover .card-details > * { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .project-card .card-image > img,
  .project-card:is(.is-pointer-active,:focus-visible) .card-image > img {
    transform: none !important;
    transition: none !important;
  }
  .portfolio-cursor, .portfolio-cursor .cursor-arrow { transition: none !important; }
}

/* Approved After Effects signature: exact scroll-linked SVG path, after the existing entrance. */
.desktop-signature { --signature-scroll-color: #474747; }
.signature-scroll-stage { position:absolute; left:0; top:-32px; max-width:none; overflow:hidden; pointer-events:none; opacity:0; color:var(--signature-scroll-color); }
.desktop-signature.is-scroll-signature > img { visibility:hidden; }
.desktop-signature.is-scroll-signature > .signature-scroll-stage { opacity:1; }
.desktop-signature.is-scroll-signature > .signature-scroll-stage.is-exited { opacity:0; }
@media (max-width:700px), (prefers-reduced-motion:reduce) {
  .desktop-signature.is-scroll-signature > .signature-gray { visibility:visible; }
  .desktop-signature > .signature-scroll-stage { display:none; }
}

/* Recruiter-friendly case index: disclosure navigation, not an ARIA application menu. */
.work-nav { display: flex; align-items: center; padding-block: 20px; }
.work-nav-trigger { display: flex; align-items: center; gap: 3px; }
.work-nav-toggle { display: none; align-items: center; justify-content: center; width: 22px; height: 28px; padding: 0; border: 0; background: none; color: #aaa; }
.work-nav.is-enhanced .work-nav-toggle { display: inline-flex; }
.work-nav-toggle svg { transition: transform .25s cubic-bezier(.22,1,.36,1); }
.work-nav.is-open .work-nav-toggle svg { transform: rotate(180deg); }
.work-nav-panel[hidden] { display: none; }
.work-nav-panel {
  position: absolute; top: 100%; left: 50%; translate: -50% 0;
  width: min(880px, calc(100vw - 64px)); max-height: calc(100dvh - 86px); overflow: auto;
  background: #151515; border: 1px solid #333; padding: 24px 28px 26px;
  box-shadow: 0 18px 44px #0005; color: #eee; font-weight: 400; letter-spacing: 0;
}
.work-nav.is-open .work-nav-panel { animation: work-nav-in .28s cubic-bezier(.22,1,.36,1) both; }
@keyframes work-nav-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.work-nav-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #333; color: #a0a0a0; font-size: 11px; }
.work-nav-heading a { color: #eee; font-weight: 500; font-size: 12px; white-space: nowrap; }
.work-nav-heading a span { margin-left: 5px; }
.work-nav-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding-top: 20px; }
.work-nav-group { min-width: 0; }
.work-nav-group + .work-nav-group { border-left: 1px solid #303030; padding-left: 20px; }
.work-nav-group h2 { font: 500 13px/1.3 Switzer,Arial,sans-serif; letter-spacing: 0; color: #aaa; margin: 0 0 12px; }
.work-nav-group ul { list-style: none; padding: 0; margin: 0; }
.work-nav-group li { margin: 0; }
.work-nav-group li a {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 9px 18px 9px 0; color: #f3f3f3;
  text-decoration: none; transition: opacity .2s ease, transform .25s cubic-bezier(.22,1,.36,1);
}
.work-nav-group li a:hover, .work-nav-group li a:focus-visible { color: #fff; transform: translateX(3px); }
.work-nav-name { font-size: 13px; font-weight: 500; line-height: 1.2; }
.work-nav-description { color: #a0a0a0; font-size: 11px; line-height: 1.35; }
.work-nav-arrow { position: absolute; right: 2px; top: 11px; opacity: 0; color: #ddd; transition: opacity .2s ease; }
.work-nav-group li a:hover .work-nav-arrow, .work-nav-group li a:focus-visible .work-nav-arrow { opacity: 1; }
@media (min-width: 701px) and (max-width: 1000px) {
  .work-nav-panel { width: min(880px, calc(100vw - 32px)); padding: 20px; }
  .work-nav-grid { gap: 14px; }
  .work-nav-group + .work-nav-group { padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .work-nav.is-open .work-nav-panel { animation: none; }
  .work-nav-toggle svg, .work-nav-group li a, .work-nav-arrow { transition: none; }
}

/* Keep all topbar labels on the same baseline; the dropdown is out of flow. */
@media (min-width: 701px) {
  header > nav { align-items: center; height: 100%; top: 0; }
  header > nav > a { display: inline-flex; align-items: center; height: 100%; }
  header > nav > .work-nav { height: 100%; padding-block: 0; }
  .work-nav-trigger { height: 100%; }
}

/* The signature can cross the hero's layout bounds during its large entrance.
   Clip only at the page/viewport edge, not at the narrower hero container.
   Keep vertical overflow and the existing scroll-linked animation untouched. */
html:has(#hero), body:has(#hero) { overflow-x: clip; }
@supports not (overflow: clip) {
  html:has(#hero) { overflow-x: hidden; }
}
