/* Remove the isolated decorative square above the project heading. */
.creative-media-showcase__counter {
  display: none;
}

.header--glass .header__pricing,
.header--glass .header__tutorial,
.header--glass .header__community,
.header--glass .header__download {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 769px) and (max-width: 940px) {
  .header--glass .header__pricing,
  .header--glass .header__tutorial,
  .header--glass .header-community-menu {
    display: none;
  }

  .header--glass .header__mobile-toggle {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border: 1px solid rgba(17, 17, 22, .12);
    border-radius: 50%;
    background: transparent;
  }

  .header--glass .header__mobile-toggle span {
    width: 14px;
    height: 1.5px;
    background: currentColor;
  }

  .header--glass .header__mobile-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 4px;
    padding: 10px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: #fafafb;
    border: 1px solid rgba(17, 17, 22, .1);
    border-radius: 16px;
  }

  .header--glass .header__mobile-panel.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .header--glass .header__mobile-panel > a,
  .header--glass .header__mobile-panel > button {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    color: #111;
    background: transparent;
    border: 0;
    font: inherit;
    text-align: left;
    white-space: nowrap;
  }
}

.hero-experience .hero__tagline,
.hero-experience .hero__tagline-live,
.hero-experience .hero__tagline-ghost-line {
  white-space: nowrap;
}

@media (min-width: 641px) {
  .hero-experience .hero__tagline {
    font-size: clamp(23px, 2.5vw, 25px);
    font-weight: 400;
  }
}

@media (max-width: 640px) {
  .hero-experience .hero__brand .mascot-wordmark__mascot {
    display: none;
  }

  .hero-experience .hero__tagline {
    font-size: clamp(14px, 4vw, 24px);
    letter-spacing: -0.025em;
  }

  #recall-vD .recall-v__headline {
    font-size: clamp(22px, 6.5vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.025em;
  }

  #recall-vD .recall-v__headline .scroll-reveal-text__line {
    white-space: nowrap;
  }

  #recall-vD .recall-v__desc {
    line-height: 1.75;
  }

  #recall-vD .recall-exp li {
    flex-direction: column;
    align-items: stretch !important;
    gap: 4px !important;
  }

  #recall-vD .recall-exp li > span:first-child {
    width: auto !important;
  }

  #recall-vD .recall-exp li > span:last-child {
    font-size: 14px !important;
    line-height: 1.6;
  }

  #recall-vD .recall-exp li > span:last-child > span {
    display: block;
    font-size: 13px !important;
  }
}

#skills .hero-line-network__node--square[x='696'][y='730'] {
  display: none;
}

/* Keep the video showcase on the same content axis as the projects below. */
@media (min-width: 941px) {
  .creative-media-showcase {
    --creative-showcase-inline: clamp(24px, 2.5vw, 40px);
    --creative-showcase-shell-extension: 0px;
    --creative-showcase-layout-block: 40px;
  }

  .creative-media-showcase__inner {
    width: min(calc(100% - clamp(20px, 2.5vw, 40px) * 2), 1760px);
    padding-inline: 24px;
  }

  .creative-media-showcase__inner::before {
    inset-inline: -16px;
  }

  .creative-media-showcase__layout {
    gap: 32px;
  }

}

/* Let the video showcase breathe at compact desktop widths. */
@media (min-width: 941px) and (max-width: 1180px) {
  .creative-media-showcase__layout {
    grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
    gap: 40px;
    padding-block: 56px;
  }

  .creative-media-showcase__title {
    font-size: 38px;
  }

  .creative-media-showcase__description {
    max-width: 36ch;
  }

  .creative-media-showcase__case-rail,
  .creative-media-showcase__thumb-list {
    width: 240px;
  }

  .creative-media-showcase__case-rail {
    max-height: none;
    margin-top: 40px;
  }

  .creative-media-showcase__case-list {
    max-height: none;
    overflow: visible;
    mask-image: none;
  }

  .creative-media-showcase__thumb-list {
    display: grid;
    grid-template-columns: repeat(2, 116px);
    gap: 10px 8px;
  }
}

/* Give each main section a little more breathing room when scrolling. */
#home + #recall-vD {
  padding-top: 64px;
  padding-bottom: 64px;
}

#product {
  padding-top: 56px;
  padding-bottom: 56px;
}

#creative-showcase {
  padding-top: 48px;
  padding-bottom: 48px;
}

#skills .skills__surface {
  padding-top: 56px;
}

#skills {
  padding-bottom: 56px;
}

#ai-adoption {
  padding-top: 48px;
}

@media (max-width: 640px) {
  #home + #recall-vD { padding-block: 48px; }
  #product { padding-block: 40px; }
  #creative-showcase { padding-block: 40px; }
  #skills .skills__surface { padding-top: 40px; }
  #skills { padding-bottom: 40px; }
  #ai-adoption { padding-top: 40px; }
}

.creative-media-showcase__media-surface[data-orientation='portrait-wide'],
.creative-media-showcase__controls-surface[data-orientation='portrait-wide'] {
  width: auto;
  height: 100%;
  aspect-ratio: 3 / 4;
}

/* The profile now follows the hero, so they share one continuous surface. */
@media (min-width: 941px) {
  #recall-vD {
    padding-inline: 0;
  }

  #recall-vD .recall-v__inner {
    width: min(calc(100% - clamp(20px, 2.5vw, 40px) * 2 + 32px), 1792px);
    max-width: none;
  }
}

.hero-experience + .recall-vD {
  background: #f7f7f8;
  padding-bottom: 44px;
}

.recall-vD + .workflow-carousel {
  padding-top: 36px;
}

.workflow-carousel__card {
  position: relative;
}

.workflow-carousel__detail-mark[href] {
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
  position: static;
  text-decoration: none;
  touch-action: manipulation;
  z-index: 2;
}

.workflow-carousel__detail-mark[href]::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
}

.workflow-carousel__detail-mark[href]:focus-visible::after {
  outline: 2px solid #5f55e7;
  outline-offset: -3px;
  border-radius: inherit;
}

.workflow-carousel__detail-mark[href]:focus-visible {
  border-radius: 4px;
  outline: 2px solid #5f55e7;
  outline-offset: 5px;
}

.workflow-layered {
  --glare-x: 50%;
  --glare-y: 50%;
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 790 / 446;
  overflow: hidden;
  pointer-events: auto;
  perspective: 1100px;
  background:
    linear-gradient(rgba(255, 255, 255, .62) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(90deg, rgba(255, 255, 255, .62) 1px, transparent 1px) 0 0 / 18px 18px,
    radial-gradient(circle at 72% 30%, rgba(110, 94, 255, .055), transparent 34%),
    linear-gradient(145deg, #fbfbff 0%, #f1f1fb 100%);
}

.workflow-layered__scene {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: absolute;
  inset: 0;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform;
}

.workflow-layered__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.workflow-layered.has-layer-preview:not(.is-layers-ready) .workflow-layered__scene {
  visibility: hidden;
}

.workflow-layered.is-layers-ready .workflow-layered__preview {
  display: none;
}

.workflow-layered__board {
  position: absolute;
  z-index: 2;
  top: -13%;
  left: -16%;
  width: 104%;
  aspect-ratio: 1536 / 1024;
  transform-style: preserve-3d;
}

.workflow-prototype__canvas {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  transform-style: preserve-3d;
}

.workflow-layered--prototype,
.workflow-layered--selection {
  aspect-ratio: 16 / 9;
}

.workflow-layered--selection .workflow-prototype__canvas,
.workflow-layered--selection .workflow-layered__scene {
  transform-style: flat;
}

.workflow-layered--selection .workflow-prototype__canvas {
  isolation: isolate;
}

.workflow-layered--pilot,
.workflow-layered--review {
  aspect-ratio: 5504 / 3072;
}

.workflow-layered--pilot .workflow-prototype__canvas,
.workflow-layered--pilot .workflow-layered__scene,
.workflow-layered--review .workflow-prototype__canvas,
.workflow-layered--review .workflow-layered__scene {
  transform-style: flat;
}

.workflow-layered--pilot .workflow-prototype__canvas,
.workflow-layered--review .workflow-prototype__canvas {
  isolation: isolate;
}

.workflow-prototype__part {
  filter: drop-shadow(0 var(--depth-shadow-y) var(--depth-shadow-blur) rgba(30, 29, 40, .07));
}

.workflow-prototype__part[data-depth="0.85"] {
  filter: none;
}

.workflow-layered__asset {
  --shift-x: 0px;
  --shift-y: 0px;
  --depth-shadow-y: 0px;
  --depth-shadow-blur: 0px;
  position: absolute;
  height: auto;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(var(--shift-x), var(--shift-y), 0);
}

.workflow-layered__asset--shell {
  left: 2%;
  top: 3%;
  width: 94%;
  height: 94%;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 12px 22px rgba(36, 35, 63, .08));
}

.workflow-layered__asset--progress {
  left: 17.97%;
  top: 67.09%;
  width: 66.15%;
  z-index: 3;
  filter: contrast(1.025) saturate(1.015) drop-shadow(0 var(--depth-shadow-y) var(--depth-shadow-blur) rgba(45, 43, 76, .13));
}

.workflow-layered__asset--header {
  left: 17.97%;
  top: 17.38%;
  width: 65.43%;
  z-index: 4;
  filter: contrast(1.025) saturate(1.015) drop-shadow(0 var(--depth-shadow-y) var(--depth-shadow-blur) rgba(45, 43, 76, .12));
}

.workflow-layered__asset--tasks {
  left: 17.97%;
  top: 36.82%;
  width: 33.59%;
  z-index: 5;
  filter: contrast(1.03) saturate(1.02) drop-shadow(0 var(--depth-shadow-y) var(--depth-shadow-blur) rgba(45, 43, 76, .14));
}

.workflow-layered__character {
  --shift-x: 0px;
  --shift-y: 0px;
  --depth-shadow-y: 0px;
  --depth-shadow-blur: 0px;
  position: absolute;
  z-index: 9;
  right: -2%;
  bottom: -70%;
  width: 45%;
  height: auto;
  pointer-events: none;
  user-select: none;
  backface-visibility: hidden;
  transform: translate3d(var(--shift-x), var(--shift-y), 0);
  filter: drop-shadow(0 var(--depth-shadow-y) var(--depth-shadow-blur) rgba(26, 25, 38, .09));
  will-change: transform;
}

.workflow-layered__alert-front {
  z-index: 7;
  top: 33.4%;
  left: 52.8%;
  width: 36.07%;
  filter: contrast(1.035) saturate(1.025) drop-shadow(0 var(--depth-shadow-y) var(--depth-shadow-blur) rgba(40, 38, 72, .17));
}

.workflow-layered__glow {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(255, 255, 255, .20), transparent 34%);
  mix-blend-mode: screen;
  transition: opacity 220ms ease;
}

.workflow-layered.is-depth-active .workflow-layered__glow {
  opacity: .32;
}

@media (prefers-reduced-motion: reduce) {
  .workflow-layered__scene,
  .workflow-layered__asset,
  .workflow-layered__character {
    transform: none !important;
  }

  .workflow-layered__glow { display: none; }
}

@media (max-width: 640px) {
  .workflow-layered__board {
    top: -8%;
    left: -15%;
    width: 103%;
  }

  .workflow-layered__character {
    right: -5%;
    bottom: -66%;
    width: 46%;
  }

  .workflow-layered__alert-front {
    top: 33.4%;
    left: 52.8%;
    width: 36.07%;
  }
}

@media (max-width: 940px) {
  .creative-media-showcase__media-surface[data-orientation='portrait-wide'],
  .creative-media-showcase__controls-surface[data-orientation='portrait-wide'] {
    width: auto;
    height: min(100%, calc(88vw * 4 / 3), 533px);
  }
}

@media (max-width: 640px) {
  .creative-media-showcase__media-surface[data-orientation='portrait-wide'],
  .creative-media-showcase__controls-surface[data-orientation='portrait-wide'] {
    width: min(88vw, 400px);
    height: auto;
  }
}

.project-carousel-controls {
  display: none;
}

#skills .skills__grid.is-project-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none;
}

@media (max-width: 640px) {
  #skills .skills__grid {
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .project-carousel-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    margin: 14px 20px 0;
    color: #777984;
  }

  .project-carousel-controls__counter {
    display: none;
    color: #111218;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
  }

  .project-carousel-controls__buttons {
    grid-column: 2;
    display: flex;
    gap: 8px;
  }

  .project-carousel-controls__buttons button {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    color: #111218;
    background: #fff;
    border: 1px solid #d9dae0;
    border-radius: 50%;
    font: 600 22px/1 Arial, sans-serif;
    cursor: pointer;
  }

  .project-carousel-controls__buttons button:active {
    background: #f0f0f3;
  }

  .project-carousel-controls__buttons button:focus-visible {
    outline: 2px solid #6257df;
    outline-offset: 2px;
  }
}

.ai-adoption {
  padding: 23px 28px 96px;
  background: #fff;
}

.ai-adoption__inner {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: clamp(44px, 5.5vw, 76px);
  color: #111218;
  background: #f4f4f7;
  border-radius: 16px;
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(520px, 1.18fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "intro values"
    "closing closing";
  column-gap: clamp(56px, 7vw, 120px);
}

@media (min-width: 941px) {
  #ai-adoption {
    padding-inline: 0;
  }

  .ai-adoption__inner {
    width: min(calc(100% - clamp(20px, 2.5vw, 40px) * 2 + 32px), 1792px);
    padding: 64px 40px;
  }
}

.ai-adoption__eyebrow {
  grid-area: eyebrow;
  margin-bottom: 24px;
  color: #6257df;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.ai-adoption__intro {
  grid-area: intro;
  max-width: 920px;
  align-self: start;
}

.ai-adoption__intro h2 {
  margin: 0;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.ai-adoption__intro > p {
  max-width: 440px;
  margin: 30px 0 0;
  color: #5d606a;
  font-size: 16px;
  line-height: 1.75;
  text-wrap: pretty;
}

.ai-adoption__steps {
  grid-area: values;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.ai-adoption__step {
  display: grid;
  grid-template-columns: 42px minmax(180px, .72fr) minmax(240px, 1fr);
  grid-template-areas:
    "marker title copy"
    ". output output";
  gap: 12px 24px;
  min-height: 0;
  padding: 25px 0 27px;
  border-top: 1px solid #cbcbd3;
}

.ai-adoption__step:last-child {
  border-bottom: 1px solid #cbcbd3;
}

.ai-adoption__marker {
  grid-area: marker;
  display: block;
  margin: 5px 0 0;
  color: #6257df;
  font: 650 12px/1 monospace;
  letter-spacing: .06em;
}

.ai-adoption__step h3 {
  grid-area: title;
  margin: 0;
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.ai-adoption__step p {
  grid-area: copy;
  max-width: 32ch;
  margin: 0;
  color: #646771;
  font-size: 14px;
  line-height: 1.75;
  text-wrap: pretty;
}

.ai-adoption__output {
  grid-area: output;
  display: block;
  margin-top: 7px;
  color: #8a8c95;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .035em;
}

.ai-adoption__closing {
  grid-area: closing;
  max-width: 880px;
  margin: clamp(50px, 6vw, 76px) 0 0 auto;
  padding: 26px 0 0;
  color: #28233f;
  border-top: 1px solid #cbcbd3;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -.015em;
}

@media (max-width: 900px) {
  .ai-adoption {
    padding: 48px 20px 72px;
  }

  .ai-adoption__inner {
    padding: 48px 32px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "intro"
      "values"
      "closing";
  }

  .ai-adoption__intro {
    max-width: 680px;
  }

  .ai-adoption__steps {
    margin-top: 48px;
  }
}

@media (max-width: 560px) {
  .ai-adoption {
    padding: 36px 14px 56px;
  }

  .ai-adoption__inner {
    padding: 38px 22px;
    border-radius: 12px;
  }

  .ai-adoption__intro h2 {
    font-size: 38px;
  }

  .ai-adoption__steps {
    margin-top: 44px;
  }

  .ai-adoption__step {
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-areas:
      "marker title"
      ". copy"
      ". output";
    gap: 10px 14px;
    min-height: 0;
    padding: 26px 0 30px;
  }

  .ai-adoption__marker {
    margin-top: 5px;
  }

  .ai-adoption__output {
    margin-top: 8px;
  }

  .ai-adoption__closing {
    margin-top: 36px;
    padding-top: 24px;
  }
}

.email-copy-toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 28px;
  max-width: calc(100vw - 32px);
  padding: 13px 18px;
  color: #fff;
  background: #111218;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(17, 18, 24, 0.18);
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.email-copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.footer .footer__inner {
  padding-top: 80px;
  padding-bottom: 28px;
}

.footer .footer__main {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(56px, 9vw, 140px);
  padding-bottom: 48px;
}

.footer .footer__brand {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 600px;
}

.footer .footer__tagline {
  max-width: 560px;
  line-height: 1.75;
  text-wrap: pretty;
}

.footer .footer__locale {
  margin-top: 10px;
}

.footer .footer__locale-label {
  display: none;
}

.footer .footer__locale-value {
  color: #7d8089;
  font-size: 13px;
}

.footer .footer__nav--compact {
  display: block;
  flex: 0 0 190px;
}

.footer__contact-compact {
  display: grid;
  gap: 22px;
  justify-items: end;
  text-align: right;
}

.footer__contact-heading {
  color: #111218;
  font-size: 14px;
  font-weight: 600;
}

.footer__contact-links {
  display: grid;
  gap: 14px;
  justify-items: end;
}

.footer__contact-links .footer__nav-link {
  width: fit-content;
  max-width: none;
  white-space: nowrap;
}

.footer__disclaimer {
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr);
  column-gap: 15px;
  row-gap: 7px;
  padding: 22px 0;
  color: #7d8089;
  border-top: 1px solid #dedfe3;
}

.footer__disclaimer::before {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 3px;
  min-height: 100%;
  content: '';
  background: #6257df;
  border-radius: 999px;
}

.footer__disclaimer-heading {
  grid-column: 2;
  color: #111218;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer__disclaimer p {
  grid-column: 2;
  max-width: 880px;
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  text-wrap: pretty;
}

@media (max-width: 700px) {
  .footer .footer__inner {
    padding-top: 48px;
  }

  .footer .footer__main {
    flex-direction: column;
    gap: 38px;
    padding-bottom: 40px;
  }

  .footer .footer__nav--compact {
    flex-basis: auto;
    width: 100%;
  }

  .footer__contact-compact {
    justify-items: start;
    text-align: left;
  }

  .footer__contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
  }

  .footer__disclaimer {
    padding: 20px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .email-copy-toast {
    transition: opacity 120ms linear;
    transform: translate(-50%, 0);
  }
}
.skill-card--static-case { cursor: pointer; }
.skill-card--static-case .skill-card__bg-img { object-fit: cover; object-position: center; }
.skill-card--hengpeng .skill-card__case-cover { object-position: center 65%; }
.skill-card--static-case .skill-card__media-shell > .skill-card__bg-img:not(.skill-card__case-cover) { display: none; }
.skill-card--static-case .skill-card__case-cover { display: block; }
.skill-card--static-case .skill-card__tint,
.skill-card--static-case .skill-card__media-status { display: none; }
.skill-card--static-case .skill-card__details-btn { text-decoration: none; }

#skills .skill-card--contact-entry {
  position: relative;
  min-height: 100%;
  overflow: visible;
  color: #fff;
  background: transparent;
  border-color: transparent;
  cursor: pointer;
  isolation: isolate;
}

#skills .skill-card--contact-entry .skill-card__inner,
#skills .skill-card--contact-entry .skill-card__face {
  height: 100%;
}

#skills .skill-card--contact-entry .skill-card__face {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(145deg, #3826ce 0%, #6554ed 48%, #9a87ff 100%);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 18px;
}

#skills .skill-card--contact-entry .skill-card__face > :not(.contact-entry-card) {
  display: none !important;
}

.contact-entry-card,
.contact-entry-card__idle,
.contact-entry-card__art {
  position: absolute;
  inset: 0;
}

.contact-entry-card {
  display: block;
  overflow: hidden;
  border-radius: inherit;
}

.contact-entry-card__idle,
.contact-entry-card__art {
  display: grid;
  place-content: center;
  place-items: center;
  transition: opacity 440ms cubic-bezier(.22, 1, .36, 1), transform 700ms cubic-bezier(.22, 1, .36, 1);
}

.contact-entry-card__idle {
  gap: 14px;
}

.contact-entry-card__idle img {
  width: clamp(46px, 4vw, 64px);
  height: clamp(46px, 4vw, 64px);
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.contact-entry-card__idle > span {
  color: #fff;
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.contact-entry-card__art {
  opacity: 0;
  background: #6554ed;
  transform: scale(1.035);
}

.contact-entry-card__art::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(180deg, rgba(101, 84, 237, .08) 48%, rgba(32, 20, 103, .62) 100%);
  pointer-events: none;
}

.contact-entry-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.contact-entry-card__action {
  position: absolute;
  right: clamp(20px, 2vw, 28px);
  bottom: clamp(20px, 2vw, 28px);
  left: clamp(20px, 2vw, 28px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

#skills .skill-card--contact-entry:hover .contact-entry-card__idle,
#skills .skill-card--contact-entry:focus-visible .contact-entry-card__idle {
  opacity: 0;
  transform: scale(.97);
}

#skills .skill-card--contact-entry:hover .contact-entry-card__art,
#skills .skill-card--contact-entry:focus-visible .contact-entry-card__art {
  opacity: 1;
  transform: scale(1);
}

#skills .skill-card--contact-entry:hover .contact-entry-card__action,
#skills .skill-card--contact-entry:focus-visible .contact-entry-card__action {
  color: #fff;
}

#skills .skill-card--contact-entry:focus-visible {
  outline: none;
}

#skills .skill-card--contact-entry:focus-visible .skill-card__face {
  outline: 3px solid #17171d;
  outline-offset: 3px;
}

@media (hover: none) {
  #skills .skill-card--contact-entry .contact-entry-card__art {
    opacity: .22;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-entry-card__idle,
  .contact-entry-card__art {
    transition-duration: 120ms;
    transform: none !important;
  }
}

#skills .skill-card__brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 18px;
  margin-top: 10px;
  margin-bottom: 4px;
  gap: 12px;
}

#skills .skill-card__brand {
  min-width: 0;
  overflow: hidden;
  color: rgba(17, 17, 20, 0.72);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#skills .skill-card__title-row {
  display: block;
}

#skills .skill-card .cc-b__name {
  display: block;
  min-height: 1.35em;
  overflow: visible;
  font-size: clamp(16px, 1.2vw, 19px);
  white-space: nowrap;
  text-overflow: clip;
  line-height: 1.35;
}

body.case-modal-open { overflow: hidden; }

.case-modal {
  width: min(94vw, 1320px);
  height: min(92dvh, 940px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  color: #f7f7fa;
  background: transparent;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(4, 6, 18, 0.34);
}

.case-modal::backdrop {
  background: rgba(5, 6, 12, 0.78);
  backdrop-filter: blur(9px);
}

.case-modal__frame {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  background: #05060a;
}

.case-modal__header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 13px 18px 13px 24px;
  background: #111218;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.case-modal__heading span {
  display: block;
  margin-bottom: 4px;
  color: #8f93a1;
  font-size: 11px;
}

.case-modal__heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.case-modal__actions { display: flex; align-items: center; gap: 9px; }

.case-modal__actions button,
.case-modal__external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: #f6f6fa;
  background: transparent;
  border: 1px solid #454854;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

.case-modal__external {
  padding: 0 15px;
  font-size: 13px;
  text-decoration: none;
}

.case-modal__zoom { padding: 0 15px; font-size: 13px; }

.case-modal__close {
  width: 40px;
  padding: 0;
  font-size: 25px !important;
  font-weight: 300;
  line-height: 1;
}

.case-modal__actions button:hover,
.case-modal__external:hover { background: #23252d; border-color: #6b6e7b; }
.case-modal__actions button:focus-visible,
.case-modal__external:focus-visible,
.case-modal__scroll:focus-visible { outline: 2px solid #849cff; outline-offset: -3px; }

.case-modal__progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
}

.case-modal__progress span { display: block; width: 100%; height: 100%; background: #766cff; transform: scaleX(0); transform-origin: left center; }
.case-modal__scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; background: #05060a; }
.case-modal__longform { width: min(100%, 760px); margin: 0 auto; font-size: 0; line-height: 0; }
.case-modal__longform img { display: block; width: 100%; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; }
.case-modal__scroll.is-expanded .case-modal__longform { width: min(100%, 1120px); }

.case-modal__back-to-top {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(17, 18, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease-out, transform 180ms ease-out, background-color 180ms ease-out;
  cursor: pointer;
}

.case-modal__back-to-top span {
  font-size: 21px;
  line-height: 1;
  transform: translateY(-1px);
}

.case-modal__back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.case-modal__back-to-top:hover { background: #2b2d36; }
.case-modal__back-to-top:focus-visible { outline: 2px solid #849cff; outline-offset: 3px; }

@media (max-width: 900px) {
  .case-modal__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    min-height: 0;
    padding: 12px 58px 11px 16px;
  }

  .case-modal__heading h2 {
    max-width: none;
    font-size: 16px;
  }

  .case-modal__actions {
    justify-content: flex-start;
    gap: 8px;
  }

  .case-modal__external,
  .case-modal__zoom {
    min-height: 36px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .case-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    min-height: 44px !important;
  }
}

@media (max-width: 640px) {
  .case-modal { width: 100vw; height: 100dvh; border-radius: 0; }
  .case-modal__header { padding: 10px 58px 10px 14px; gap: 7px; }
  .case-modal__heading span { display: none; }
  .case-modal__heading h2 { max-width: none; font-size: 15px; line-height: 1.35; }
  .case-modal__actions .case-modal__zoom { display: none; }
  .case-modal__external { min-height: 34px; padding: 0 11px; font-size: 12px; }
  .case-modal__close { top: 9px; right: 10px; }
  .case-modal__longform,
  .case-modal__scroll.is-expanded .case-modal__longform { width: 100%; }
  .case-modal__back-to-top {
    right: 12px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-modal::backdrop { backdrop-filter: none; }
  .case-modal__back-to-top { transition: none; }
}

/* Personal IP player. Rollback preview: ?ipplayer=off */
/* Decorative replacement uses the original base/detail DOM and animation. */
.hero-experience .ip-decorative-frame {
  aspect-ratio: 1717 / 916;
}
.hero-experience .ip-decorative-frame .hero-ardot-interface__layer--base {
  background: linear-gradient(135deg, #e7e9ec, #a8adb6 50%, #d4d7de);
  border-radius: 2.2% / 4.1%;
  box-shadow: inset 0 0 0 2px #a5aab4;
}
@media (min-width: 769px) {
  .hero-experience .hero-product:has(.ip-decorative-frame) {
    /* Fit inside the sticky stage including its header and safe padding. */
    width: min(80vw, 1536px, calc((100svh - var(--glass-header-height, 60px) - 2 * var(--hero-product-safe-gap, 30px)) * 1.87445));
  }
}
.hero-experience .ip-decorative-frame .hero-ardot-interface__layer--base img {
  /* Clip the opaque corner pixels outside the metal silhouette. */
  clip-path: inset(0.12% round 2.2% / 4.1%);
  box-shadow: none;
}
.hero-experience .ip-decorative-frame .hero-ardot-interface__layer--detail {
  /* Pixel-measured aperture: x27 y54, 1664 × 812 on 1717 × 916. */
  top: 5.8952%;
  left: 1.5725%;
  width: 96.9132%;
  height: 88.6463%;
  aspect-ratio: auto;
  border-radius: 1.1% / 2.2%;
  overflow: hidden;
  transform: scale(var(--ardot-layer-1-scale));
  transform-origin: 50% 49.75%;
}
.hero-experience .ip-decorative-frame .hero-ardot-interface__layer--detail video {
  object-fit: cover;
}
.hero-experience .ip-framed-player.ip-video-interactive .hero-ardot-interface__layer--detail,
.hero-experience .ip-framed-player .hero-ardot-interface__layers:fullscreen .hero-ardot-interface__layer--detail,
.hero-experience .ip-framed-player.ip-player--expanded .hero-ardot-interface__layer--detail {
  pointer-events: auto;
}
.hero-experience .ip-framed-player:not(.ip-video-interactive):not(.ip-player--expanded) .hero-ardot-interface__layers:not(:fullscreen) .hero-ardot-interface__layer--detail,
.hero-experience .ip-framed-player:not(.ip-video-interactive):not(.ip-player--expanded) .hero-ardot-interface__layers:not(:fullscreen) .ip-player__controls,
.hero-experience .ip-framed-player:not(.ip-video-interactive):not(.ip-player--expanded) .hero-ardot-interface__layers:not(:fullscreen) video {
  pointer-events: none;
}
.hero-experience .ip-frame-loading .hero-ardot-interface__layer--detail {
  visibility: hidden;
}
.ip-frame-loading__status {
  position: absolute;
  inset: 8% 2% 3%;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f3f4f6;
  color: #60636c;
  font-size: 14px;
}
.hero-experience .ip-player .hero-ardot-interface__layers {
  inset: 0 0 auto auto;
  width: 86%;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: #121318;
  box-shadow: 0 12px 36px rgba(20, 24, 40, .12);
}
.hero-experience .ip-player .hero-ardot-interface__layer--base { display: none; }
.hero-experience .ip-player .hero-ardot-interface__layer--detail {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  flex: 0 0 auto;
  border-radius: 0;
  transform: none;
}
.hero-experience .ip-player .hero-ardot-interface__layer--detail video {
  position: absolute;
  inset: 0;
  object-fit: cover;
  border-radius: 0;
  filter: none;
  transform: none;
}
.ip-player__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  color: #e8e9ef;
  background: #121318;
}

.ip-framed-player .ip-player__controls {
  position: absolute;
  z-index: 10;
  inset: auto 0 0;
  pointer-events: auto;
  background: rgba(18, 19, 24, .8);
}
@media (hover: hover) and (pointer: fine) {
  .ip-framed-player .ip-player__controls {
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }
  .ip-framed-player:hover .ip-player__controls,
  .ip-framed-player:focus-within .ip-player__controls,
  .ip-framed-player .hero-ardot-interface__layers:fullscreen:hover .ip-player__controls {
    opacity: 1;
    pointer-events: auto;
  }
}
@media (hover: none), (pointer: coarse), (max-width: 640px) {
  .ip-framed-player .ip-player__controls {
    background: transparent;
    padding: 8px 12px;
    gap: 8px;
    opacity: 1;
    pointer-events: auto;
  }
  .ip-framed-player .ip-player__time,
  .ip-framed-player .ip-player__seek { display: none; }
  .ip-framed-player .ip-player__play { margin-right: auto; }
  .ip-framed-player .ip-player__controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(0,0,0,.45);
  }
}
.ip-player__controls button {
  flex: 0 0 auto;
  min-width: 36px;
  min-height: 40px;
  padding: 0 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 15px;
}
.ip-player__controls button:hover { background: #282a34; }
.ip-player__controls :focus-visible { outline: 2px solid #918aff; outline-offset: 2px; }
.ip-player__time { font-size: 11px; font-variant-numeric: tabular-nums; }
.ip-player__seek { flex: 1; min-width: 0; accent-color: #8273ff; height: 3px; cursor: pointer; }
.ip-player__controls .ip-player__mute { font-size: 11px; }
.ip-player__controls .ip-player__fullscreen { font-size: 22px; }
.ip-player .hero-ardot-interface__layers:fullscreen { width: 100%; height: 100%; justify-content: center; border-radius: 0; }
.ip-player .hero-ardot-interface__layers:fullscreen .hero-ardot-interface__layer--detail { flex: 1; min-height: 0; aspect-ratio: auto; }
.hero-experience .ip-framed-player .hero-ardot-interface__layers:fullscreen,
.hero-experience .ip-framed-player.ip-player--expanded .hero-ardot-interface__layers {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  background: #000;
  border-radius: 0;
}
.hero-experience .ip-framed-player .hero-ardot-interface__layers:fullscreen .hero-ardot-interface__layer--base,
.hero-experience .ip-framed-player.ip-player--expanded .hero-ardot-interface__layer--base { display: none; }
.hero-experience .ip-framed-player .hero-ardot-interface__layers:fullscreen .hero-ardot-interface__layer--detail,
.hero-experience .ip-framed-player.ip-player--expanded .hero-ardot-interface__layer--detail {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: 0;
}
.hero-experience .ip-framed-player .hero-ardot-interface__layers:fullscreen video,
.hero-experience .ip-framed-player.ip-player--expanded video { object-fit: contain; transform: none; }
.hero-experience .ip-framed-player.ip-player--expanded { position: fixed; inset: 0; z-index: 10000; transform: none; }
@media (max-width: 640px) {
  .hero-experience .ip-player .hero-ardot-interface__layers { width: 100%; border-radius: 10px; }
  .hero-experience .ip-player { aspect-ratio: 16 / 11; }
  .ip-player__controls { gap: 7px; padding: 0 7px; }
  .ip-framed-player .ip-player__controls { gap: 8px; padding: 6px 10px; min-height: 40px; }
  .ip-framed-player .ip-player__controls button { min-width: 36px; min-height: 36px; padding: 0 3px; }
  .ip-framed-player .ip-player__time { font-size: 10px; }
  .ip-framed-player .ip-player__mute { font-size: 10px; }
  .ip-framed-player .ip-player__seek { width: 0; }
  .hero-experience .ip-framed-player .hero-ardot-interface__layers:fullscreen .ip-player__controls { padding-bottom: env(safe-area-inset-bottom); }
}

/* Static cover for the personal intro video: renders immediately, plays on tap. */
.ip-player__poster {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: block;
  padding: 0;
  border: 0;
  background: #121318;
  cursor: pointer;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}
.ip-player__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ip-player__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 14, .06), rgba(8, 9, 14, .34));
  pointer-events: none;
}
.ip-player__poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(12, 13, 18, .42);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}
.ip-player__poster-hint {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 1;
  text-align: center;
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .85);
  pointer-events: none;
}
.hero-experience .ip-framed-player:not(.is-video-played) .ip-player__poster { pointer-events: auto; }
.hero-experience .ip-framed-player:not(.is-video-played) .ip-player__controls .ip-player__play { display: none; }

/* Hero download buttons: the page icon fills its whole box, so it needs extra
   air before the two-line label and a slightly smaller box to stay balanced. */
.hero__cta .download-chooser > .download-os-btn,
.hero__cta .download-menu > .download-os-btn {
  gap: 14px;
}
.hero__cta .download-chooser > .download-os-btn > svg.download-os-btn__icon,
.hero__cta .download-menu > .download-os-btn > svg.download-os-btn__icon {
  width: 22px;
  height: 22px;
}

/* Below the desktop breakpoint the sub-label sits under the label as a second
   line, so the two lines centre on each other instead of sharing a left edge. */
@media (max-width: 819px) {
  .hero__cta .download-chooser > .download-os-btn > .download-os-btn__text,
  .hero__cta .download-menu > .download-os-btn > .download-os-btn__text {
    align-items: center;
  }
}

/* Phones stack these two pills, and each one centres its own cluster. For the
   centred clusters to line up they must measure the same, so both get an equal
   label column and an equal trailing element: the link has no chevron, so a
   same-size spacer stands in for it. */
@media (max-width: 480px) {
  .hero-experience .hero__cta .download-chooser > .download-os-btn,
  .hero-experience .hero__cta .download-chooser > .download-menu > .download-os-btn {
    justify-content: center;
    padding-inline: 20px;
  }
  .hero-experience .hero__cta .download-chooser > .download-os-btn > .download-os-btn__text,
  .hero-experience .hero__cta .download-chooser > .download-menu > .download-os-btn > .download-os-btn__text {
    min-width: 106px;
  }
  .hero-experience .hero__cta .download-chooser > .download-os-btn::after {
    content: '';
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
  }
}
.ip-framed-player.is-video-played .ip-player__poster { display: none; }
@media (hover: none), (pointer: coarse) {
  .ip-player__poster-hint { display: block; }
}
@media (max-width: 640px) {
  .ip-player__poster-play { width: 56px; height: 56px; font-size: 17px; }
  .ip-player__poster-hint { bottom: 58px; font-size: 11px; }
}

/* Separator between the company and the role inside the intro experience list. */
#recall-vD .recall-exp__separator {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1.6;
  opacity: .4;
  margin: 0 -5px;
}

@media (max-width: 640px) {
  #recall-vD .recall-exp__separator {
    display: none;
  }
}

/* The hover art has to fill the card on every card size. The shared grid centering made
   height:100% fall back to the image aspect, which left empty bands on wide cards and
   clipped the artwork on tall ones. */
.contact-entry-card__art {
  display: block;
}

.contact-entry-card__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

/* Below 640px the skills grid becomes a horizontal scroller, so the hover lift pushed
   cards past the scroller edges and clipped them. */
@media (max-width: 640px) {
  .skill-card:focus-within,
  .skill-card:hover {
    transform: none;
  }
}
