.hero {
  position: relative;
  background-image:
    url("/assets/graphics/hero-background-layer.svg"),
    radial-gradient(circle at 91% 12%, rgba(161, 207, 244, .36), transparent 30%),
    radial-gradient(circle at 34% 92%, rgba(203, 229, 249, .46), transparent 34%),
    linear-gradient(90deg, #f3f8fc 0%, #f4f8fb 48%, #eaf2f9 100%);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: right top, right top, 28% bottom, center;
  background-size: 720px 450px, 560px 420px, 560px 360px, 100% 100%;
}

.hero-art-desktop {
  left: 617px;
  right: auto;
  top: -22px;
  width: 614px;
  height: 472px;
  object-fit: contain;
  object-position: center;
  opacity: 1;
}

.hero-copy { z-index: 3; }

.project-media img {
  transform: none;
  object-position: center;
}

.portrait-placeholder {
  display: block;
  background: #181b1e;
}

.portrait-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

/*
  Mobile production pass based on Figma frame 179:2 (390px artboard).
  At 390px the measurements map directly to Figma; surrounding mobile widths
  scale fluidly while retaining the 28px reference gutters and vertical rhythm.
*/
@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  .shell {
    width: calc(100% - 56px);
  }

  /* Header */
  .site-header {
    height: 76px;
  }

  .header-inner {
    width: calc(100% - 56px);
  }

  .brand {
    width: 64px;
    height: 44px;
  }

  .menu-button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 10px;
  }

  .mobile-menu {
    top: 76px;
    padding: 12px 28px 22px;
  }

  /* Hero */
  .hero {
    height: 430px;
    background-image: linear-gradient(90deg, #f3f8fc 0%, #f4f8fb 48%, #eaf2f9 100%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
  }

  .hero-inner {
    width: 100%;
    max-width: none;
  }

  .hero-copy {
    width: 100%;
    padding: 36px 28px 0;
  }

  .hero .eyebrow {
    margin-bottom: 19px;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 1.5px;
  }

  .hero h1 {
    margin-bottom: 17px;
    font-size: 40px;
    line-height: 1.12;
    letter-spacing: -1px;
  }

  .hero-tagline {
    width: 100%;
    margin-bottom: 19px;
    font-family: Montserrat, sans-serif;
    font-size: 17px;
    line-height: 1.5;
  }

  .hero-intro {
    width: 100%;
    max-width: none;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-art-desktop {
    display: none;
  }

  .hero-art-mobile {
    display: block;
    position: absolute;
    left: 28px;
    right: auto;
    top: 139px;
    bottom: auto;
    width: calc(100% - 56px);
    max-width: none;
    height: auto;
    aspect-ratio: 334 / 256.923;
    background-image: url("/assets/graphics/hero-mobile-layer.svg");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    mix-blend-mode: normal;
    mask-image: none;
    -webkit-mask-image: none;
    pointer-events: none;
  }

  /* My Work */
  .work-section {
    min-height: 0;
    padding: 46px 0 76px;
  }

  .work-section h2 {
    margin-bottom: 25px;
    font-size: 32px;
    line-height: 1.15;
  }

  .work-tabs {
    justify-content: flex-start;
    gap: 0;
    height: 46px;
    margin-bottom: 24px;
  }

  .work-tab {
    flex: 0 0 auto;
    padding: 0 0 17px;
    font-size: 12px;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
  }

  #tab-digital { width: 43.12%; }
  #tab-multimedia { width: 29.34%; }
  #tab-brand { width: 27.54%; }

  #tab-digital::after,
  #tab-multimedia::after,
  #tab-brand::after {
    right: auto;
  }

  #tab-digital::after { width: 120px; }
  #tab-multimedia::after { width: 71px; }
  #tab-brand::after { width: 82px; }

  .project-grid,
  .project-grid-two,
  .project-grid-three {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .project-card {
    min-height: 0;
  }

  .project-media,
  .project-grid-three .project-media {
    width: 100%;
    aspect-ratio: 334 / 188;
    border-radius: 14px;
  }

  .project-copy {
    height: 64px;
    padding-top: 10px;
  }

  .project-copy h3,
  .project-grid-three .project-copy h3 {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.25;
  }

  .project-copy p,
  .project-grid-three .project-copy p {
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0;
  }

  /* Match the individual mobile crops from the Figma artboard without changing desktop. */
  #panel-digital .project-card:nth-child(1) .project-media img {
    width: 107%;
    max-width: none;
    height: 107%;
    margin-left: -3.57%;
    margin-top: -2.42%;
  }

  #panel-digital .project-card:nth-child(2) .project-media img {
    width: 112.08%;
    max-width: none;
    height: 112.08%;
    margin-left: 0;
    margin-top: -3.93%;
  }

  #panel-digital .project-card:nth-child(3) .project-media img {
    width: 109.06%;
    max-width: none;
    height: 109.06%;
    margin-left: -1.53%;
    margin-top: -3.32%;
  }

  #panel-digital .project-card:nth-child(4) .project-media img {
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .play-button {
    width: 40px;
    height: 40px;
  }

  .play-button::after {
    left: 17px;
    top: 12px;
    border-left-width: 12px;
    border-top-width: 8px;
    border-bottom-width: 8px;
  }

  /* About */
  .about-section {
    height: auto;
    min-height: 860px;
    padding: 48px 0;
  }

  .about-inner {
    display: flex;
    flex-direction: column;
    gap: 42px;
    align-items: stretch;
  }

  .about-section .eyebrow {
    margin-bottom: 18px;
    font-size: 10px;
    line-height: 1.2;
  }

  .about-section h2 {
    margin-bottom: 24px;
    font-size: 29px;
    line-height: 1.18;
  }

  .about-body {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: #c7ccd1;
  }

  .about-body p {
    margin-bottom: 20px;
  }

  .portrait-treatment {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 334 / 291.362;
    margin: 4px auto 0;
    transform: none;
  }

  .portrait-backplate {
    left: 6.81%;
    top: 7.8%;
    width: 93.19%;
    height: 92.2%;
    border-radius: 13px;
  }

  .portrait-placeholder {
    width: 93.19%;
    height: 92.2%;
    border-radius: 13px;
  }

  .portrait-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* Contact */
  .contact-section {
    min-height: 804px;
    padding: 48px 0 63px;
  }

  .contact-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .contact-copy {
    padding-top: 0;
  }

  .contact-section .eyebrow {
    margin-bottom: 18px;
    font-size: 10px;
    line-height: 1.2;
  }

  .contact-section h2 {
    margin-bottom: 50px;
    font-size: 34px;
    line-height: 1.12;
  }

  .contact-copy > p:not(.eyebrow) {
    margin-bottom: 19px;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    line-height: 1.5;
  }

  .contact-specialties {
    font-size: 12px;
    line-height: 1.45;
  }

  .contact-form {
    width: 100%;
    min-height: 426px;
    border: 0;
    border-radius: 20px;
    padding: 24px 20px 32px;
    gap: 20px;
  }

  .form-field {
    gap: 8px;
  }

  .form-field label {
    font-size: 10px;
    line-height: 1.2;
  }

  .form-field input {
    height: 48px;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 11px;
  }

  .form-field textarea {
    height: 96px;
    min-height: 96px;
    border-radius: 8px;
    padding: 14px;
    font-size: 11px;
  }

  .submit-button {
    height: 48px;
    margin-top: 10px;
    font-size: 11px;
  }

  .form-status:empty {
    display: none;
  }

  /* Footer */
  .site-footer {
    height: 270px;
  }

  .footer-inner {
    position: relative;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 34px;
  }

  .footer-brand {
    align-items: center;
    gap: 0;
  }

  .footer-brand img {
    width: 86px;
    height: 60px;
  }

  .footer-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0;
    margin-top: 26px;
  }

  .footer-nav a {
    width: 88px;
    text-align: center;
    font-size: 11px;
    line-height: 1.2;
  }

  .footer-brand p {
    position: absolute;
    left: 0;
    bottom: 68px;
    width: 100%;
    margin: 0;
    text-align: center;
    font-size: 10px;
    line-height: 1.35;
    color: #8f8f8f;
  }
}

@media (max-width: 389px) {
  .hero-copy {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-art-mobile {
    left: 24px;
    width: calc(100% - 48px);
  }

  .shell,
  .header-inner {
    width: calc(100% - 48px);
  }

  .mobile-menu {
    padding-left: 24px;
    padding-right: 24px;
  }
}
