.portfolio-work {
  --portfolio-gutter: 40px;
  padding-block: 100px;
  background: #fff;
  color: #111;
}

.portfolio-work__container {
  width: calc(100% - (var(--portfolio-gutter) * 2));
  max-width: 1840px;
  margin-inline: auto;
}

.portfolio-work__header {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  padding-top: clamp(32px, 4vw, 72px);
  margin-bottom: clamp(56px, 6vw, 104px);
  border-top: 1px solid rgba(17, 17, 17, 0.18);
}

.portfolio-work__kicker,
.portfolio-work__stats,
.portfolio-card__index {
  color: rgba(17, 17, 17, 0.48);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.portfolio-work__kicker {
  margin-bottom: 14px;
}

.portfolio-work__title {
  margin: 0;
  font-size: clamp(48px, 4vw, 76px);
  font-weight: 450;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.portfolio-work__stats {
  align-self: center;
  justify-self: end;
  margin: 0;
  padding-left: 0;
}

.portfolio-work__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: clamp(72px, 7vw, 128px);
}

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

.portfolio-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.portfolio-card__link:focus-visible {
  outline: 2px solid #32f08c;
  outline-offset: 8px;
}

.portfolio-card__media {
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: #111;
  isolation: isolate;
}

.portfolio-card__media::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.045) 0,
    rgba(255, 255, 255, 0.045) 1px,
    transparent 1px,
    transparent 3px
  );
  content: "";
  opacity: 0.24;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.045);
  transform-origin: center;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), filter 900ms ease;
}

.portfolio-card:hover .portfolio-card__media img,
.portfolio-card:focus-within .portfolio-card__media img {
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1);
}

.portfolio-card__details {
  padding-top: 16px;
}

.portfolio-card__index {
  margin: 0 0 10px;
}

.portfolio-card__title {
  margin: 0;
  color: #111;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 450;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.portfolio-card__copy {
  max-width: 72ch;
  margin: 12px 0 0;
  color: rgba(17, 17, 17, 0.56);
  font-size: clamp(14px, 1vw, 18px);
  line-height: 1.42;
}

#expectations-legacy[hidden],
#faqs[hidden] {
  display: none !important;
}

.underlay-nav__container .nav-right {
  margin-left: auto;
  justify-content: flex-end !important;
}

.underlay-nav__header .button-nav2 {
  box-sizing: border-box;
  height: 48px;
  padding: 16px 24px !important;
  align-items: center;
}

.underlay-nav__header .button-nav2 .button-text {
  line-height: 14px;
}

.underlay-nav__logo {
  display: inline-flex !important;
  width: auto !important;
  height: 44px;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.underlay-nav__logo .w-embed {
  display: none !important;
}

.underlay-nav__logo::before {
  content: "";
  flex: 0 0 auto;
  width: 40px;
  height: 27px;
  background: url("/images/portfolio-mark.svg") center / contain no-repeat;
}

.underlay-nav__logo::after {
  content: "UI/UX PORTFOLIO";
  color: #fff;
  font-family: var(--_site-variables---primary-family);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.underlay-nav__header,
.underlay-nav__bar,
.underlay-nav__container {
  height: 72px;
}

.underlay-nav__header,
.underlay-nav__container {
  box-sizing: border-box;
}

.underlay-nav__container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.about-intro__lead {
  width: min(100%, 920px);
  max-width: 920px;
  margin: 0;
  font-size: 32px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  letter-spacing: -0.025em;
}

.about-intro__3d {
  position: relative;
  display: inline-block;
  width: 116px;
  height: 82px;
  margin: -22px 8px -8px;
  overflow: hidden;
  transform: translateY(-12px);
  vertical-align: middle;
  isolation: isolate;
}

.about-intro__3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.about-intro__3d.is-unavailable::before {
  position: absolute;
  inset: 12%;
  background: linear-gradient(135deg, #171717 8%, #c8cdcc 46%, #4b4f4e 76%, #fff 100%);
  content: "";
  -webkit-mask: url("/images/portfolio-mark.svg") center / contain no-repeat;
  mask: url("/images/portfolio-mark.svg") center / contain no-repeat;
}

.about-intro__supporting {
  max-width: 38em;
}

.form-process-card {
  width: 460px;
  max-width: calc(100vw - 48px);
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-qr-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portfolio-stats [text="eyebrow"] {
  text-transform: none;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.4;
}

.portfolio-stats [text="1"] {
  font-size: 120px !important;
  line-height: 1 !important;
  letter-spacing: -0.055em;
}

@media (min-width: 992px) {
  .portfolio-stat-value--retention {
    width: 260px !important;
  }
}

.application-process-section {
  padding-bottom: 160px !important;
}

.work-method-grid {
  padding-bottom: 64px !important;
}

.underlay-nav__header {
  position: fixed;
  inset: 0 0 auto;
}

.underlay-nav__header--blend {
  border-bottom: 1px solid transparent;
  transition:
    background-color 240ms ease,
    border-color 240ms ease,
    backdrop-filter 240ms ease;
}

html.bt-nav-scrolled .underlay-nav__header--blend {
  mix-blend-mode: normal;
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

html.bt-nav-scrolled .underlay-nav__header--blend .underlay-nav__bar {
  mix-blend-mode: difference;
}

html.bt-nav-scrolled[data-nav-surface="dark"] .underlay-nav__header--blend {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

html.bt-nav-scrolled[data-nav-surface="light"] .underlay-nav__header--blend {
  background-color: rgba(17, 17, 17, 0.12);
  border-color: rgba(17, 17, 17, 0.16);
}

.work-method-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-top: 96px;
  padding-bottom: 48px;
}

.work-method-heading .work-method-line {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

@media (min-width: 1921px) {
  .portfolio-work__container {
    width: 1840px;
  }
}

@media (max-width: 991px) {
  .portfolio-work {
    --portfolio-gutter: 20px;
    padding-block: 88px;
  }

  .portfolio-work__header {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 52px;
  }

  .portfolio-work__stats {
    justify-self: start;
    padding-left: 0;
  }

  .portfolio-work__grid {
    grid-template-columns: 1fr;
    row-gap: 64px;
  }

  .portfolio-card__media {
    aspect-ratio: 4 / 3;
  }

  .portfolio-card__copy {
    max-width: none;
  }

  .work-method-heading .work-method-line {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.4;
  }

  .about-intro__lead {
    width: 100%;
    max-width: none;
    font-size: clamp(24px, 7vw, 32px) !important;
    line-height: 1.6 !important;
  }

  .about-intro__3d {
    width: 92px;
    height: 65px;
    margin: -16px 5px -8px;
    transform: translateY(-8px);
  }

  .portfolio-stats [text="1"] {
    font-size: clamp(64px, 20vw, 92px) !important;
  }

  .portfolio-stats [text="eyebrow"] {
    font-size: 16px !important;
  }

  .application-process-section {
    padding-bottom: 96px !important;
  }

  .underlay-nav__header .underlay-nav__logo {
    width: 150px !important;
    height: 36px;
    gap: 7px;
  }

  .underlay-nav__logo::before {
    width: 25px;
    height: 17px;
  }

  .underlay-nav__logo::after {
    font-size: 15px;
  }

  .underlay-nav__header .button-nav2 {
    height: 48px;
    padding: 12px 18px !important;
  }

  .underlay-nav__header .button-nav2 .button-text {
    line-height: 22px;
  }

  .work-method-heading {
    padding-top: 56px;
    padding-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-card__media img {
    transition: none;
  }
}

/* Complex project management: exact annotated type sizes. */
html .ap-scroll__heading h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
}

html .ap-scroll .ap-step__title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
}

/* The source no longer renders this CTA; keep legacy cached markup from resurfacing. */
html .ap-scroll .ap-cta {
  display: none !important;
}

/* ---- Apply panel resume block (Figma node 5043-228427) ---- */
.hackathon-form .bt-resume {
  max-width: 640px;
  color: #000;
}

.hackathon-form .bt-resume-intro {
  margin: 0 0 40px;
  font-size: 32px;
  font-weight: 600;
  line-height: 44.8px;
}

.hackathon-form .bt-resume-contact {
  margin-bottom: 80px;
  font-size: 22px;
  font-weight: 600;
  line-height: 39.6px;
}

.hackathon-form .bt-resume-label {
  color: #20d475;
}

.hackathon-form .bt-resume-value {
  color: #000;
}

.hackathon-form .bt-resume-job {
  margin-bottom: 80px;
}

.hackathon-form .bt-resume-job:last-child {
  margin-bottom: 0;
}

.hackathon-form .bt-resume-company {
  margin: 0 0 24px;
  font-size: 40px;
  font-weight: 600;
  line-height: 53px;
}

.hackathon-form .bt-resume-role {
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 600;
  line-height: 29.2px;
}

.hackathon-form .bt-resume-item {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 400;
  line-height: 39.6px;
}

.hackathon-form .bt-resume-item:last-child {
  margin-bottom: 0;
}

/* Mobile: the WeChat QR block comes first — it is the primary contact.
   991px matches the breakpoint where .display-mobile becomes visible. */
@media (max-width: 991px) {
  .form-modal-wrap {
    display: flex;
    flex-direction: column;
  }

  .form-modal-wrap > .grid.display-mobile {
    order: -1;
  }
}
