/* Fonts */
@font-face {
  font-family: "MintSans";
  src: url("../assets/fonts/MintSansBold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MintSans";
  src: url("../assets/fonts/MintSansExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MintSans";
  src: url("../assets/fonts/MintSansRegular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../assets/fonts/SourceSansPro-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../assets/fonts/SourceSansPro-BlackIt.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../assets/fonts/SourceSansPro-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../assets/fonts/SourceSansPro-BoldIt.woff2") format("woff2");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../assets/fonts/SourceSansPro-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../assets/fonts/SourceSansPro-ExtraLightIt.woff2") format("woff2");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../assets/fonts/SourceSansPro-It.woff2") format("woff2");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../assets/fonts/SourceSansPro-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../assets/fonts/SourceSansPro-LightIt.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../assets/fonts/SourceSansPro-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../assets/fonts/SourceSansPro-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../assets/fonts/SourceSansPro-SemiboldIt.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-BoldItalic.woff2") format("woff2");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-ExtraLightItalic.woff2") format("woff2");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-Italic.woff2") format("woff2");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-SemiBoldItalic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-ThinItalic.woff2") format("woff2");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

/* Variables */
:root {
  --bg-color: #fdfdfa;
  --main-color: #0009be;

  --font-primary: "Source Sans Pro", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-display: "MintSans", sans-serif;

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 4rem;
  --space-section: clamp(8rem, 20vw, 16rem);

  --page-padding: 2rem;
}
/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Global */
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  font-family: var(--font-primary);
  background: var(--bg-color);
  color: var(--main-color);
  header.site-header {
    div.header-container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.5rem 2rem;
      border-bottom: 0.5px solid var(--main-color);
      a.site-name {
        font-family: var(--font-display);
        font-weight: 700;
        letter-spacing: 1px;
        line-height: 1.5;
        text-transform: lowercase;
        font-size: 1rem;
      }
      .language-switcher {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        .language-current,
        .language-other {
          display: inline-block;
        }
        .language-current {
          order: 1;
          filter: blur(0);
          opacity: 1;
          transition:
            filter 0.6s ease,
            opacity 0.6s ease;
        }
        &::before {
          content: "";
          order: 2;
          display: block;
          width: 1.5rem;
          height: 1px;
          background: currentColor;
          transform: scaleX(0.45);
          transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
        }
        .language-other {
          order: 3;
          filter: blur(1.5px);
          opacity: 0.95;
          transition:
            filter 0.6s ease,
            opacity 0.6s ease;
        }
        &:hover,
        &:focus-within {
          .language-current {
            filter: blur(2px);
            opacity: 0.55;
          }
          .language-other {
            filter: blur(0);
            opacity: 1;
          }
          &::before {
            transform: scaleX(1);
          }
        }
      }
      fieldset.color-switcher {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin: 0 0 0 1.25rem;
        padding: 0 0 0 1.25rem;
        border: 0;
        legend,
        .sr-only {
          position: absolute;
          width: 1px;
          height: 1px;
          padding: 0;
          margin: -1px;
          overflow: hidden;
          clip: rect(0, 0, 0, 0);
          white-space: nowrap;
          border: 0;
        }
        label {
          position: relative;
          display: block;
          width: 0.75rem;
          height: 0.75rem;
          cursor: pointer;
        }
        input[type="radio"] {
          position: absolute;
          inset: 0;
          width: 100%;
          height: 100%;
          margin: 0;
          opacity: 0;
          cursor: pointer;
        }
        .color-dot {
          filter: blur(0.5px);
          display: block;
          width: 100%;
          height: 100%;
          border-radius: 50%;
          transition:
            transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
            filter 0.3s ease;
        }
        .color-dot-blue {
          background: #0009be;
        }
        .color-dot-black {
          background: #171717;
        }
        .color-dot-red {
          background: #c41414;
        }

        input:checked + .color-dot {
          filter: blur(0px);
          transform: scale(1.8);
        }
        label:hover .color-dot {
          filter: blur(0px);
        }
        input:focus-visible + .color-dot {
          outline: 1px solid currentColor;
          outline-offset: 3px;
        }
      }
    }
  }
  main {
    section.hero {
      min-height: calc(100svh - 4.5rem);
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding-inline: var(--page-padding);
      p.eyebrow {
        margin-bottom: 1.5rem;
        font-family: var(--font-mono);
        font-size: 0.75rem;
        font-weight: 500;
        letter-spacing: 0.04em;
        text-transform: uppercase;
      }
      h1#hero-title {
        max-width: 16ch;
        font-size: clamp(2.5rem, 8vw, 23rem);
        font-weight: 600;
        line-height: 0.9;
        letter-spacing: -0.04em;
      }
      p.hero-intro {
        max-width: 32rem;
        margin-top: 2.5rem;
        font-size: clamp(1.125rem, 1.5vw, 1.5rem);
        line-height: 1.35;
        .unexpected {
          display: inline-block;
        }
      }
      &:after {
        content: "✳︎";
        position: absolute;
        top: 30%;
        right: -3rem;
        font-size: 333px;
        line-height: 1;
        filter: blur(19px);
        animation: rotating 15s linear infinite;
        pointer-events: none;
      }
      p.hero-intro:hover .unexpected {
        animation: unexpected-move 0.85s cubic-bezier(0.22, 1, 0.36, 1);
      }
    }
    section {
      padding-inline: var(--page-padding);
      p.section-number {
        position: relative;
        left: -33px;
        width: max-content;
        /*  margin-bottom: var(--space-l);*/
        font-family: var(--font-display);
        font-size: clamp(8rem, 30vw, 18rem);
        font-weight: 600;
        line-height: 0.7;
        filter: blur(3px);
        opacity: 0.45;
        user-select: none;
        z-index: -1;
        margin-bottom: -33px;
      }
      h2 {
        max-width: 15ch;
        font-size: clamp(1.9rem, 6vw, 6rem);
        font-weight: 600;
        line-height: 0.95;
        letter-spacing: -0.035em;
        margin-top: 10px;
      }
    }
    section.profile {
      position: relative;
      h2 + p {
        max-width: 28rem;
        margin-top: var(--space-m);
        font-size: clamp(1.125rem, 1.5vw, 1.5rem);
        line-height: 1.35;
      }
      h2 + p + p {
        max-width: 36rem;
        margin-top: var(--space-m);
        font-size: clamp(1.125rem, 1.5vw, 1.5rem);
        line-height: 1.45;
      }
      .technical-note {
        max-width: 32rem;
        margin-top: var(--space-m);
        font-family: var(--font-mono);
        font-size: 0.75rem;
        line-height: 1.6;
        text-transform: uppercase;
        letter-spacing: 0.02em;
      }
      .technical-note::before {
        content: "";
        display: block;
        width: 2rem;
        margin-bottom: var(--space-s);
        border-top: 1px solid currentColor;
      }
    }
    section.expertise {
      position: relative;
      padding: var(--space-section) var(--page-padding) var(--space-section)
        var(--page-padding);
      h2 {
        margin-bottom: var(--space-m);
      }
      article {
        padding-block: var(--space-s);
        h3 {
          max-width: 12ch;
          font-size: 1rem;
          font-weight: 600;
          line-height: 1;
          letter-spacing: -0.03em;
          text-transform: uppercase;
        }
        h3 + p {
          max-width: 18rem;
          margin-top: var(--space-xs);
          font-size: 1rem;
          line-height: 1.3;
        }
        > p:last-child {
          margin-top: var(--space-xs);
          font-family: var(--font-mono);
          font-size: 0.75rem;
          line-height: 1.6;
          text-transform: uppercase;
          letter-spacing: 0.02em;
        }
      }
      article:first-of-type {
        padding-top: 0px;
      }
    }
    aside.statement {
      min-height: 65svh;
      display: flex;
      align-items: center;
      padding: var(--space-l) var(--page-padding);
      background: var(--main-color);
      color: var(--bg-color);
      p {
        max-width: 13ch;
        font-size: clamp(3rem, 16vw, 10rem);
        font-weight: 600;
        line-height: 0.9;
        letter-spacing: -0.03em;
        text-transform: uppercase;
        span {
          position: relative;
          display: inline-block;
          font-style: italic;
          text-decoration: none;

          &::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0.02em;
            width: 100%;
            height: 0.05em;
            background: currentColor;
            transform-origin: left;
          }
        }
      }
    }
    aside.statement:hover .animated-not::after {
      animation: redraw-underline 1.2s ease-in-out infinite;
    }
    section.contact {
      position: relative;
      padding: var(--space-section) var(--page-padding);
      h2 {
        max-width: 13ch;
      }
      h2 + p {
        max-width: 28rem;
        margin-top: var(--space-m);
        font-size: clamp(1.125rem, 1.5vw, 1.5rem);
        line-height: 1.35;
      }
      .contact-cta {
        display: inline-flex;
        align-items: center;
        gap: 1rem;
        margin-top: var(--space-m);
        padding: 0.9rem 1.25rem;
        border: 1px solid var(--main-color);
        border-radius: 999px;
        font-family: var(--font-mono);
        font-size: 0.75rem;
        line-height: 1.6;
        text-transform: uppercase;
        letter-spacing: 0.02em;
      }
      .contact-cta::after {
        content: "↗";
        font-size: 1rem;
      }
    }
  }
  footer.site-footer {
    position: relative;
    padding: 2rem 0rem 0rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    border-top: 0.5px solid var(--main-color);
    .footer-links {
      padding: 0rem 2rem 2rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem 1.5rem;
      margin-bottom: var(--space-m);
      border-bottom: 0.5px solid var(--main-color);
    }
    .footer-links + p {
      padding: 0rem 2rem 2rem;
      border-bottom: 0.5px solid var(--main-color);
    }
    .back-to-top {
      position: fixed;
      right: 1.5rem;
      bottom: 1.5rem;
      display: grid;
      place-items: center;
      width: 3rem;
      height: 3rem;
      border-radius: 50%;
      color: var(--main-color);
      background-color: var(--bg-color);
      font-family: var(--font-mono);
      text-transform: uppercase;
      font-size: 1.5rem;
      border: 1px solid var(--main-color);
      z-index: 100;
    }
    .color-scale {
      display: grid;
      grid-template-columns: repeat(10, 1fr);
      overflow: hidden;
      height: 3rem;
      span {
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
      }
      span:nth-child(1) {
        background: var(--main-color);
      }
      span:nth-child(2) {
        background: color-mix(in srgb, var(--main-color) 90%, var(--bg-color));
      }
      span:nth-child(3) {
        background: color-mix(in srgb, var(--main-color) 80%, var(--bg-color));
      }
      span:nth-child(4) {
        background: color-mix(in srgb, var(--main-color) 70%, var(--bg-color));
      }
      span:nth-child(5) {
        background: color-mix(in srgb, var(--main-color) 60%, var(--bg-color));
      }
      span:nth-child(6) {
        background: color-mix(in srgb, var(--main-color) 50%, var(--bg-color));
      }
      span:nth-child(7) {
        background: color-mix(in srgb, var(--main-color) 40%, var(--bg-color));
      }
      span:nth-child(8) {
        background: color-mix(in srgb, var(--main-color) 30%, var(--bg-color));
      }
      span:nth-child(9) {
        background: color-mix(in srgb, var(--main-color) 20%, var(--bg-color));
      }
      span:nth-child(10) {
        background: color-mix(in srgb, var(--main-color) 10%, var(--bg-color));
      }
    }
    .color-scale.is-visible span {
      transform: scaleX(1);
    }
    .color-scale span:nth-child(1) {
      transition-delay: 0s;
    }
    .color-scale span:nth-child(2) {
      transition-delay: 0.06s;
    }
    .color-scale span:nth-child(3) {
      transition-delay: 0.12s;
    }
    .color-scale span:nth-child(4) {
      transition-delay: 0.18s;
    }
    .color-scale span:nth-child(5) {
      transition-delay: 0.24s;
    }
    .color-scale span:nth-child(6) {
      transition-delay: 0.3s;
    }
    .color-scale span:nth-child(7) {
      transition-delay: 0.36s;
    }
    .color-scale span:nth-child(8) {
      transition-delay: 0.42s;
    }
    .color-scale span:nth-child(9) {
      transition-delay: 0.48s;
    }
    .color-scale span:nth-child(10) {
      transition-delay: 0.54s;
    }
  }
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.7'/%3E%3C/svg%3E");
}

/* Responsive */

@media only screen and (max-width: 767px) {
  body header.site-header div.header-container {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name language"
      "name colors";
    gap: 0.35rem 1rem;
    padding: 1rem var(--page-padding);
  }
  body header.site-header div.header-container a.site-name {
    grid-area: name;
    align-self: center;
    max-width: 13ch;
    line-height: 1.3;
  }
  body header.site-header div.header-container .language-switcher {
    grid-area: language;
    justify-self: end;
    gap: 0.75rem;
    font-size: 0.75rem;
  }
  body header.site-header div.header-container .language-switcher::before {
    width: 1rem;
  }
  body header.site-header div.header-container fieldset.color-switcher {
    grid-area: colors;
    justify-self: end;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
  }
  body header.site-header div.header-container fieldset.color-switcher label {
    width: 0.6rem;
    height: 0.6rem;
  }
}

@media only screen and (min-width: 410px) {
  :root {
    --page-padding: 2.5rem;
  }
  body {
    main {
      section.hero {
        h1#hero-title {
          font-size: 3.75rem;
          line-height: 0.95;
        }
      }
    }
  }
}

@media only screen and (min-width: 768px) {
  :root {
    --page-padding: 4rem;
  }

  body {
    header.site-header {
      div.header-container {
        padding: 2rem var(--page-padding);
        a.site-name {
          span:first-of-type {
          }
          span:nth-of-type(2) {
          }
        }
        nav {
          span {
          }
          a {
          }
        }
      }
    }
    main {
      section.hero {
        p.eyebrow {
        }
        h1#hero-title {
          max-width: 15ch;
          font-size: clamp(5rem, 10vw, 7rem);
          line-height: 0.9;
        }
        p.hero-intro {
          max-width: 28rem;
          font-size: 1.25rem;
        }
        &:after {
        }
      }

      section {
        p.section-number {
        }
        h2 {
        }
      }
      section.profile {
        h2 {
          max-width: 15ch;
        }
        h2 + p {
          max-width: 26rem;
        }
        h2 + p + p {
          max-width: 30rem;
          margin-left: auto;
          margin-top: var(--space-l);
        }
        .technical-note {
          max-width: 30rem;
          margin-left: auto;
        }
        .technical-note::before {
        }
      }
      section.expertise {
        h2 {
        }
        article {
          h3 {
            font-size: 2rem;
          }
          h3 + p {
            font-size: clamp(1.125rem, 1.5vw, 1.5rem);
          }
          > p:last-child {
            max-width: none;
          }
        }
        article:first-of-type {
        }

        article:not(first-of-type) {
          margin-top: var(--space-m);
        }

        article:nth-of-type(even) {
          max-width: 30rem;
          margin-left: auto;
        }
      }
      aside.statement {
        p {
        }
      }
      section.contact {
        display: flex;
        flex-direction: column;
        h2 {
        }
        .contact-cta {
          display: inline-flex;
          align-items: center;
          gap: 1rem;
          margin-top: auto;
          margin-left: auto;
        }
        .contact-cta::after {
        }
        .contact-cta::before {
          content: "";
          width: 3rem;
          height: 1px;
          background: currentColor;
        }
      }
    }
    footer.site-footer {
      .footer-links {
      }
      .back-to-top {
      }
    }
  }
}

@media only screen and (min-width: 1024px) {
  :root {
    --page-padding: clamp(4rem, 6vw, 7rem);
    --grid-gap: 1.5rem;
  }
  body {
    header.site-header {
      div.header-container {
        a.site-name {
          span:first-of-type {
          }
          span:nth-of-type(2) {
          }
        }
        nav {
          span {
          }
          a {
          }
        }
      }
    }
    main {
      section.hero {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        align-content: center;
        column-gap: 1.5rem;
        min-height: calc(100svh - 5rem);
        p.eyebrow {
          grid-column: 1 / -1;
          font-size: 0.875rem;
        }
        h1#hero-title {
          grid-column: 1 / 13;
          max-width: none;
          max-width: 18ch;
          font-size: clamp(7rem, 8vw, 8rem);
        }
        p.hero-intro {
          font-weight: 500;
          grid-column: 8 / 13;
          margin-top: var(--space-l);
          font-size: 1.375rem;
          line-height: 1.3;
        }
        &:after {
          top: 0%;
          font-size: 700px;
          filter: blur(24px);
          animation: rotating 33s linear infinite;
        }
      }
      section,
      aside.statement {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: var(--grid-gap);
        padding-inline: var(--page-padding);
      }
      section {
        p.section-number {
          grid-column: 1 / -1;
        }
        h2 {
          grid-column: 1 / 13;
          margin-top: -19px;
        }
      }
      section.profile {
        p.section-number {
          grid-column: 1 / -1;
        }
        h2 {
          grid-column: 1 / 13;
        }
        h2 + p {
          grid-column: 1 / -1;
          font-size: 1.375rem;
          line-height: 1.3;
        }
        h2 + p + p {
          margin-top: var(--space-m);
          font-size: 1.375rem;
          grid-column: 8 / 13;
        }
        .technical-note {
          grid-column: 8 / 13;
          font-size: 0.875rem;
        }
        .technical-note::before {
          font-size: 0.875rem;
        }
      }
      section.expertise {
        h2 {
        }
        article {
          max-width: unset;
          h3 {
          }
          h3 + p {
            max-width: unset;
            font-size: 1.375rem;
          }
          > p:last-child {
            font-size: 0.875rem;
          }
        }
        article {
          width: unset !important;
          max-width: unset !important;
          padding-block: unset !important;
        }
        article:nth-of-type(even) {
          margin-left: unset;
        }
        article:nth-of-type(1) {
          grid-column: 1 / 7;
          grid-row: 3;
        }
        article:nth-of-type(2) {
          grid-column: 8 / 13;
          grid-row: 4;
        }
        article:nth-of-type(3) {
          grid-column: 1 / 7;
          grid-row: 5;
        }
        article:nth-of-type(4) {
          grid-column: 8 / 13;
          grid-row: 6;
        }
        article:nth-of-type(5) {
          grid-column: 1 / 7;
          grid-row: 7;
        }
        article:nth-of-type(6) {
          grid-column: 8 / 13;
          grid-row: 8;
        }
      }
      aside.statement {
        min-height: 0;
        padding: 5rem var(--page-padding);
        p {
          grid-column: 1 / 13;
          max-width: 16ch;
          font-size: clamp(4rem, 7vw, 6rem);
        }
      }
      section.contact {
        min-height: unset;
        h2 {
        }
        .contact-cta {
          font-size: 0.875rem;
        }
        .contact-cta::after {
        }
        .contact-cta::before {
        }
      }
    }
    footer.site-footer {
      margin: unset;
      padding: unset;
      border: unset;
      div.footer-container {
        display: flex;
        flex-flow: row wrap;
        padding: 0px;
        border: 0.5px solid var(--main-color);
        .footer-links {
          display: flex;
          flex-flow: row nowrap;
          justify-content: center;
          flex-basis: 18%;
          margin-bottom: unset;
          padding: 2rem 2rem;
          border-bottom: unset;
          border-right: 0.5px solid var(--main-color);
          a {
            text-align: center;
          }
        }
        .footer-links + p {
          text-align: center;
          padding: 2rem 2rem;
          flex-basis: 25%;
          border-bottom: unset;
          border-right: 0.5px solid var(--main-color);
        }
        .back-to-top {
        }
        div.color-scale {
          border-bottom: unset;
          height: auto;
          flex-basis: 57%;
          width: 100%;
        }
      }
    }
  }
}

@media only screen and (min-width: 1280px) {
  :root {
    --page-padding: clamp(5rem, 7vw, 8rem);
    --grid-gap: 2rem;
  }
  body {
    header.site-header {
      padding-inline: var(--page-padding);
      border-top: 1px solid var(--main-color);
      border-bottom: 1px solid var(--main-color);
      height: var(--page-padding);
      div.header-container {
        border-right: 1px solid var(--main-color);
        border-left: 1px solid var(--main-color);
        border-bottom: unset;
        height: var(--page-padding);
        a.site-name {
          span:first-of-type {
          }
          span:nth-of-type(2) {
          }
        }
        .language-switcher {
          margin-left: auto;
        }
        fieldset.color-switcher {
          margin-left: 2rem;
          .color-dot {
            filter: blur(2px);
          }
          input:checked + .color-dot {
            filter: blur(0px);
            transform: scale(1.8);
          }
          label:hover .color-dot {
            filter: blur(0px);
          }
        }
      }
    }
    main {
      section.hero {
        min-height: calc(100svh - 2rem);
        p.eyebrow {
          grid-column: 1 / 5;
          font-size: 0.875rem;
        }
        h1#hero-title {
          grid-column: 1 / 10;
          max-width: none;
          font-size: clamp(5rem, 5.5vw, 9rem);
        }
        p.hero-intro {
          grid-column: 8 / 13;
          font-size: 1.5rem;
        }
        &:after {
          top: -10%;
          right: 0rem;
          font-size: 725px;
          filter: blur(25px);
        }
      }
      section,
      aside.statement {
      }
      section {
        border-right: 1px solid var(--main-color);
        border-left: 1px solid var(--main-color);
        margin-right: var(--page-padding);
        margin-left: var(--page-padding);
        p.section-number {
          left: -47px;
        }
        h2 {
          margin-top: -30px;
        }
      }
      section.profile {
        p.section-number {
        }
        h2 {
        }
        h2 + p {
        }
        h2 + p + p {
        }
        .technical-note {
        }
        .technical-note::before {
        }
      }
      section.expertise {
        h2 {
        }
        article {
          h3 {
          }
          h3 + p {
          }
          > p:last-child {
          }
        }
        article {
        }
        article:nth-of-type(even) {
        }
        article:nth-of-type(1) {
        }
        article:nth-of-type(2) {
        }
        article:nth-of-type(3) {
        }
        article:nth-of-type(4) {
        }
        article:nth-of-type(5) {
        }
      }
      aside.statement {
        padding: 5rem calc(var(--page-padding) * 2);
        p {
          max-width: 18ch;
        }
      }
      section.contact {
        h2 {
        }
        .contact-cta {
        }
        .contact-cta::after {
        }
        .contact-cta::before {
        }
      }
    }
    footer.site-footer {
      padding-inline: var(--page-padding);
      border-top: 1px solid var(--main-color);
      border-bottom: 1px solid var(--main-color);
      height: var(--page-padding);
      div.footer-container {
        height: -webkit-fill-available;
        justify-content: center;
        align-items: center;
        border: unset;
        .footer-links {
          height: -webkit-fill-available;
          border-left: 1px solid var(--main-color);
          align-items: center;
          padding: unset;
        }
        .footer-links + p {
          display: flex;
          justify-content: center;
          align-items: center;
          height: -webkit-fill-available;
          padding: unset;
        }
        .back-to-top {
          right: calc(((var(--page-padding) - 48px) / 2));
          bottom: calc(((var(--page-padding) - 48px) / 2));
        }
        div.color-scale {
          height: -webkit-fill-available;
          border-right: 1px solid var(--main-color);
        }
      }
    }
  }
}
@media only screen and (min-width: 1600px) {
  body {
    max-width: 1600px;
    border-right: 1px solid var(--main-color);
    border-left: 1px solid var(--main-color);
    margin: 0 auto;

    header.site-header {
      div.header-container {
        a.site-name {
          span:first-of-type {
          }
          span:nth-of-type(2) {
          }
        }
        nav {
          span {
          }
          a {
          }
        }
      }
    }
    main {
      section.hero {
        p.eyebrow {
        }
        h1#hero-title {
        }
        p.hero-intro {
        }
        &:after {
        }
      }
      section,
      aside.statement {
      }
      section {
        p.section-number {
          left: -42px;
        }
        h2 {
          margin-top: -40px;
        }
      }
      section.profile {
        p.section-number {
        }
        h2 {
        }
        h2 + p {
        }
        h2 + p + p {
        }
        .technical-note {
        }
        .technical-note::before {
        }
      }
      section.expertise {
        h2 {
        }
        article {
          h3 {
          }
          h3 + p {
          }
          > p:last-child {
          }
        }
        article {
        }
        article:nth-of-type(even) {
        }
        article:nth-of-type(1) {
        }
        article:nth-of-type(2) {
        }
        article:nth-of-type(3) {
        }
        article:nth-of-type(4) {
        }
        article:nth-of-type(5) {
        }
      }
      aside.statement {
        p {
        }
      }
      section.contact {
        h2 {
        }
        .contact-cta {
        }
        .contact-cta::after {
        }
        .contact-cta::before {
        }
      }
    }
    footer.site-footer {
      div.footer-container {
        .footer-links {
        }
        .footer-links + p {
        }
        .back-to-top {
        }
        div.color-scale {
        }
      }
    }
  }
}
@media only screen and (min-width: 1680px) {
  body {
    header.site-header {
      div.header-container {
        a.site-name {
          span:first-of-type {
          }
          span:nth-of-type(2) {
          }
        }
        nav {
          span {
          }
          a {
          }
        }
      }
    }
    main {
      section.hero {
        min-height: unset;
        height: calc(100svh - 2rem);
        max-height: 1048px;
        p.eyebrow {
        }
        h1#hero-title {
          font-size: 106px;
        }
        p.hero-intro {
        }
        &:after {
        }
      }
      section,
      aside.statement {
      }
      section {
        p.section-number {
          left: -42px;
        }
        h2 {
          margin-top: -40px;
        }
      }
      section.profile {
        p.section-number {
        }
        h2 {
        }
        h2 + p {
        }
        h2 + p + p {
        }
        .technical-note {
        }
        .technical-note::before {
        }
      }
      section.expertise {
        h2 {
        }
        article {
          h3 {
          }
          h3 + p {
          }
          > p:last-child {
          }
        }
        article {
        }
        article:nth-of-type(even) {
        }
        article:nth-of-type(1) {
        }
        article:nth-of-type(2) {
        }
        article:nth-of-type(3) {
        }
        article:nth-of-type(4) {
        }
        article:nth-of-type(5) {
        }
      }
      aside.statement {
        p {
        }
      }
      section.contact {
        h2 {
        }
        .contact-cta {
        }
        .contact-cta::after {
        }
        .contact-cta::before {
        }
      }
    }
    footer.site-footer {
      div.footer-container {
        .footer-links {
        }
        .footer-links + p {
        }
        .back-to-top {
        }
        div.color-scale {
        }
      }
    }
  }
}

/* Animation Hero*/
section.hero {
  p.eyebrow,
  h1#hero-title,
  p.hero-intro {
    opacity: 0;
    animation: reveal-up 1.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  p.eyebrow {
    animation-delay: 0.33s;
  }
  h1#hero-title {
    animation-delay: 0.5s;
  }
  p.hero-intro {
    animation-delay: 0.75s;
  }
}

/* Animation au scroll */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
section.profile,
section.contact,
section.expertise {
  h2.reveal {
    transition-delay: 0s;
  }
  h2 + p.reveal {
    transition-delay: 0.12s;
  }
  h2 + p + p.reveal {
    transition-delay: 0.24s;
  }
  .technical-note.reveal {
    transition-delay: 0.36s;
  }
  .contact-cta.reveal {
    transition-delay: 0.24s;
  }
}

/* Animation au scroll, pour les compétences */
section.expertise {
  article.reveal:nth-of-type(1) {
    transition-delay: 0.1s;
  }
  article.reveal:nth-of-type(2) {
    transition-delay: 0.2s;
  }
  article.reveal:nth-of-type(3) {
    transition-delay: 0.3s;
  }
  article.reveal:nth-of-type(4) {
    transition-delay: 0.4s;
  }
  article.reveal:nth-of-type(5) {
    transition-delay: 0.5s;
  }
  article.reveal:nth-of-type(6) {
    transition-delay: 0.6s;
  }
}

/* Animation statment */
aside.statement p {
  opacity: 0;
  transform: translateX(-33px);
  transition:
    opacity 0.7s ease 0.45s,
    transform 3s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}
aside.statement.is-visible p {
  opacity: 1;
  transform: translateX(0);
}

/* Animation fonctionnelle : liens + CTA */
footer.site-footer .footer-links a {
  position: relative;
  display: inline-block;
}

footer.site-footer .footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2em;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
footer.site-footer .footer-links a:hover::after,
footer.site-footer .footer-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-cta {
  transition:
    background-color 0.15s ease-out,
    color 0.15s ease-out;
}
.contact-cta::before,
.contact-cta::after {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-cta:hover,
.contact-cta:focus-visible {
  background-color: var(--main-color);
  color: var(--bg-color);
}
.contact-cta:hover {
  animation: cta-nudge 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-cta:hover::after,
.contact-cta:focus-visible::after {
  transform: translate(3px, -3px);
}

footer.site-footer .back-to-top {
  transition:
    background-color 0.15s ease-out,
    color 0.15s ease-out;
}
footer.site-footer .back-to-top:hover,
footer.site-footer .back-to-top:focus-visible {
  background-color: var(--main-color);
  color: var(--bg-color);
}
footer.site-footer .back-to-top:hover {
  animation: back-to-top-nudge 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Keyframes */
@keyframes rotating {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes unexpected-move {
  0% {
    transform: translate(0, 0) rotate(0);
  }
  35% {
    transform: translate(5px, -4px) rotate(-4deg);
  }
  65% {
    transform: translate(-2px, 1px) rotate(1deg);
  }
  100% {
    transform: translate(0, 0) rotate(0);
  }
}

@keyframes redraw-underline {
  0% {
    transform: scaleX(1);
    transform-origin: right;
  }
  35% {
    transform: scaleX(0);
    transform-origin: right;
  }
  36% {
    transform: scaleX(0);
    transform-origin: left;
  }
  70% {
    transform: scaleX(1);
    transform-origin: left;
  }
  100% {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@keyframes back-to-top-nudge {
  0% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes cta-nudge {
  0% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
