/* =========================
   01 — START / HERO
   ========================= */

   .hero {
    min-height: 70vh;
    padding: 76px 0 92px;
  }
  
  .hero-inner {
    position: relative;
    min-height: calc(70vh - 168px);

    display: grid;
    grid-template-rows: auto 1fr;
  }
  
  /*
    01 START ligger kvar längst upp i sektionen.
    Själva Theo Myrvold-blocket kan centreras separat om du har .hero-content i HTML.
  */
  
  .hero h1,
  .about h2 {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    color: var(--ink);
  }
  
  .hero h1 {
    max-width: 660px;
    font-size: clamp(66px, 7.4vw, 106px);
    line-height: 0.82;
    letter-spacing: -0.045em;
  }
  
  .hero-content {
    position: static;
    align-self: center;

    transform: none;

    padding-top: 32px;
  }
  
  .hero-copy {
    width: min(430px, 100%);
    margin-top: 30px;
  }
  
  .role {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
  }
  
  .hero-rule {
    width: 100%;
    height: 2px;
    margin: 8px 0;
    background: var(--red);
  }
  
  .intro {
    margin: 8px 0 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
  }
  .button-primary {
    position: relative;
    overflow: hidden;

    min-height: 36px;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: var(--red);
    color: #F7F3EC;

    font-size: 14px;
    font-weight: 500;

    transform: translateZ(0);

    transition:
      box-shadow 220ms ease,
      filter 220ms ease;
  }

  .button-primary::before {
    content: none;
  }

  @keyframes primary-button-liquid-wobble {
    0% {
      transform: translateY(0) scaleX(1) scaleY(1);
    }

    24% {
      transform: translateY(-1px) scaleX(1.032) scaleY(0.972);
    }

    48% {
      transform: translateY(-1px) scaleX(0.988) scaleY(1.018);
    }

    72% {
      transform: translateY(-1px) scaleX(1.012) scaleY(0.994);
    }

    100% {
      transform: translateY(-1px) scaleX(1) scaleY(1);
    }
  }


  @keyframes primary-button-idle-wobble {
    0%,
    100% {
      transform: translateY(-1px) scaleX(1) scaleY(1);
    }

    25% {
      transform: translateY(-1px) scaleX(1.005) scaleY(0.997);
    }

    50% {
      transform: translateY(-1px) scaleX(0.997) scaleY(1.004);
    }

    75% {
      transform: translateY(-1px) scaleX(1.003) scaleY(0.998);
    }
  }


  @media (hover: hover) and (pointer: fine) {
    .button-primary:hover {
      animation:
        primary-button-liquid-wobble
          420ms
          cubic-bezier(0.22, 1, 0.36, 1)
          both,
        primary-button-idle-wobble
          1900ms
          420ms
          ease-in-out
          infinite;

      box-shadow: none;
      filter: none;
    }
  }


  .button-primary:active {
    transform: translateY(0) scale(0.985);
  }

  .button-primary:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
  }
  
  
  /* =========================
     02 — WORK
     ========================= */
  
  .work {
    padding: 46px 0 56px;
  }
  
  .section-topline {
    margin-bottom: 0;
  }

  #work-content-start {
    height: 0;
    scroll-margin-top: 124px;
  }
  
  .other-grid[hidden],
  #projects-content[hidden] {
    display: none;
  }
  
  
  /* =========================
     POSTERS / OTHER
     ========================= */
  
  .other-grid {
    width: 100%;
  }
  
  .posters-copy {
    max-width: 560px;
    margin-bottom: 32px;
  }
  
  .posters-copy h2 {
    margin: 0 0 8px;
    font-size: 40px;
    font-weight: 550;
    line-height: 1;
  }
  
  .posters-copy p {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
  }
  
  .poster-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .poster-grid img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* Desktop order/layout */
  .poster-understand {
    grid-column: 1;
  }
  
  .poster-score {
    grid-column: 2;
  }
  
  .poster-path {
    grid-column: 1 / -1;
  }
  
  .poster-fragility {
    grid-column: 1;
  }
  
  .poster-burger {
    grid-column: 2;
  }
  
  
  /* =========================
     03 — ABOUT
     ========================= */
  
  .about {
    min-height: 70vh;
    padding: 64px 0 86px;
  }
  
  .about-layout {
    display: grid;
    grid-template-columns:
      minmax(0, 1.4fr)
      190px
      minmax(160px, 0.7fr);
    gap: 70px;
    align-items: start;
  }
  
  .about-main {
    max-width: 560px;
  }
  
  .about h2 {
    margin-bottom: 14px;
    font-size: 54px;
    line-height: 1;
  }
  
  .about-main p {
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
  }
  
  .about-photo-wrap {
    display: flex;
    justify-content: center;
  }
  
  .about-photo {
    width: 150px;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    background: #e1ded8;
  }
  
  
  /* =========================
     SKILLS
     ========================= */
  
  .skills-block {
    margin-top: 32px;
  }
  
  .skills-block h3 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 550;
  }
  
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  
  .skills-grid h4 {
    margin: 0 0 9px;
    font-size: 17px;
    font-weight: 500;
  }
  
  .skills-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .skills-grid li {
    margin-bottom: 5px;
    color: #565656;
    font-size: 14px;
    font-weight: 500;
  }
  
  
  /* =========================
     CONTACT
     ========================= */
  
  .contact-block {
    align-self: center;
  }
  
  .contact-block h3 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 550;
  }
  
  .contact-block a {
    margin-bottom: 7px;
    font-size: 17px;
    font-weight: 500;
  }
  
  
  @media (prefers-reduced-motion: reduce) {
    .button-primary {
      transition: none;
    }

    .button-primary,
    .button-primary::before {
      animation: none;
    }
  }


  /* =========================
     TABLET
     ========================= */
  
  @media (max-width: 900px) {
    .hero {
      min-height: 65vh;
      padding: 52px 0 72px;
    }
  
    .hero-inner {
      min-height: calc(65vh - 124px);
    }
  
    .about {
      min-height: 65vh;
    }
  
    .about-layout {
      grid-template-columns: 1fr 140px;
      gap: 36px;
    }
  
    .contact-block {
      grid-column: 1 / -1;
      align-self: start;
    }
  }
  
  
  /* =========================
     MOBILE
     ========================= */
  
  @media (max-width: 600px) {
    .hero {
      min-height: auto;
      padding: 32px 0 44px;
    }
  
    .hero-inner {
      min-height: auto;
    }
  
    .hero-content {
      position: static;
      transform: none;

      padding-top: 0;
      margin-top: 40px;
    }
  
    .hero h1 {
      font-size: 54px;
      line-height: 0.84;
    }
  
    .hero-copy {
      margin-top: 22px;
    }
  
    .role {
      font-size: 20px;
      font-weight: 500;
    }
  
    .intro {
      max-width: 330px;
      font-size: 14px;
      font-weight: 500;
    }
  
    .button-primary {
      min-height: 32px;
      font-size: 14px;
      font-weight: 500;
    }
  
    .work {
      padding: 28px 0 34px;
    }
  
    .section-topline {
      margin-bottom: 0;
      padding-inline: 0;
    }

    #work-content-start {
      scroll-margin-top: 124px;
    }
  
    .posters-copy {
      max-width: none;
      margin-bottom: 24px;
    }
  
    .posters-copy h2 {
      margin-bottom: 8px;
      font-size: 40px;
      font-weight: 550;
    }
  
    .posters-copy p {
      font-size: 17px;
      font-weight: 500;
    }
  
    .poster-grid {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
  
    /* Mobile order from your Figma */
    .poster-score {
      order: 1;
    }
  
    .poster-path {
      order: 2;
    }
  
    .poster-fragility {
      order: 3;
    }
  
    .poster-burger {
      order: 4;
    }
  
    .poster-understand {
      order: 5;
    }
  
    .about {
      min-height: auto;
      padding: 48px 0 54px;
    }
  
    .about-layout {
      display: flex;
      flex-direction: column;
      gap: 22px;
    }
  
    .about-photo-wrap {
      order: -1;
      width: 100%;
    }
  
    .about-photo {
      width: 118px;
    }
  
    .about h2 {
      font-size: 42px;
    }
  
    .about-main p {
      font-size: 17px;
      font-weight: 500;
      line-height: 1.5;
    }
  
    .skills-block h3 {
      font-size: 22px;
      font-weight: 550;
    }
  
    .skills-grid {
      grid-template-columns: 1fr;
      gap: 18px;
    }
  
    .skills-grid h4 {
      font-size: 17px;
      font-weight: 500;
    }
  
    .skills-grid li {
      color: #565656;
      font-size: 14px;
      font-weight: 500;
    }
  
    .contact-block {
      width: 100%;
    }
  
    .contact-block h3 {
      font-size: 22px;
      font-weight: 550;
    }
  
    .contact-block a {
      font-size: 17px;
      font-weight: 500;
    }
  }
  