      :root {
        color-scheme: light;
        --bg: #f0f8ff;
        --surface: #ffffff;
        --text: #535353;
        --text-strong: #000000;
        --accent: #b99a5b;
        --stone: #d7cfca;
        --stone-cold: #d8d8d8;
        --paper: #f4efe6;
        --footer: #535353;
        --footer-text: #e3d3b4;
        --rule: rgba(0, 0, 0, 0.72);
        --nav-surface: #ffffff;
        --shadow-soft: 0 18px 38px rgba(49, 48, 45, 0.18);
        --ease: cubic-bezier(0.22, 1, 0.36, 1);
        --hero-progress: 0;
        --hero-expanded: min(494px, 58.5vh);
        --hero-sticky: 242px;
        --page-width: min(100vw, 430px);
        --skill-rail-color: #535353;
      }

      html[data-theme="dark"] {
        color-scheme: dark;
        --bg: #1f1f1f;
        --surface: #2a2a2a;
        --text: #e3d3b4;
        --text-strong: #f4efe6;
        --accent: #b99a5b;
        --stone: #3b3835;
        --stone-cold: #343434;
        --paper: #292723;
        --footer: #151515;
        --footer-text: #e3d3b4;
        --rule: rgba(227, 211, 180, 0.74);
        --nav-surface: #262626;
        --shadow-soft: 0 22px 44px rgba(0, 0, 0, 0.38);
      }

      * {
        box-sizing: border-box;
      }

      html {
        background: var(--bg);
      }

      body {
        margin: 0;
        min-width: 320px;
        background: var(--bg);
        color: var(--text);
        font-family: "Roboto", Arial, sans-serif;
        overflow-x: hidden;
        transition: background-color 700ms var(--ease), color 700ms var(--ease);
      }

      .social-dock-check {
  display: none;
}

.social-dock {
  position: fixed;
  left: -8px;
  top: 50%;
  z-index: 999999;
  height: 280px;
  width: 64px;
  transform: translate(-50px, -50%);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.social-dock-check:checked + .social-dock {
  transform: translate(0, -50%);
}

.social-dock-panel {
  width: 64px;
  height: 280px;
  background: var(--accent);
  border-radius: 0 16px 16px 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;

  padding: 18px 0;
}

.social-dock-panel a {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--footer-text);
  text-decoration: none;
  transition: transform 300ms ease, opacity 300ms ease;
}

.social-dock-panel a:hover {
  transform: scale(1.08);
  opacity: 0.8;
}

.social-dock-panel svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.social-dock-handle {
  position: absolute;
  right: -14px;
  top: 50%;

  width: 28px;
  height: 56px;

  transform: translateY(-50%);
  background: var(--accent);
  border-radius: 0 28px 28px 0;

  display: grid;
  place-items: center;
  cursor: pointer;
}

.social-dock-handle svg {
  width: 14px;
  height: 14px;
  color: var(--footer-text);
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.social-dock-handle svg path {
  stroke: currentColor;
}

.social-dock-check:checked + .social-dock .social-dock-handle svg {
  transform: rotate(180deg);
}

      body::view-transition-old(root),
      body::view-transition-new(root) {
        animation-duration: 900ms;
        animation-timing-function: var(--ease);
        mix-blend-mode: normal;
      }

      html[data-theme="dark"]::view-transition-old(root),
      html[data-theme="dark"]::view-transition-new(root) {
        animation-duration: 900ms;
        animation-timing-function: var(--ease);
      }

      a,
      button {
        color: inherit;
      }

      .site {
        width: var(--page-width);
        margin: 0 auto;
        min-height: 100vh;
        background: var(--bg);
        overflow: hidden;
        transition: background-color 700ms var(--ease);
      }

      .hero-space {
        position: relative;
        height: calc(var(--hero-expanded) + 52px);
        overflow: hidden;
      }

      .portrait-shell {
        position: fixed;
        inset: 0 auto auto max(0px, calc((100vw - var(--page-width)) / 2));
        z-index: 40;
        width: var(--page-width);
        height: calc(var(--hero-expanded) - ((var(--hero-expanded) - var(--hero-sticky)) * var(--hero-progress)));
        min-height: var(--hero-sticky);
        overflow: hidden;
        background: #cbd4d9;
        box-shadow: 0 calc(18px * var(--hero-progress)) calc(34px * var(--hero-progress)) rgba(31, 31, 31, calc(0.2 * var(--hero-progress)));
        will-change: height, box-shadow;
        contain: layout paint;
      }

      .portrait-shell::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        opacity: calc(var(--hero-progress) * 0.5);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
        backdrop-filter: blur(calc(8px * var(--hero-progress)));
        -webkit-backdrop-filter: blur(calc(8px * var(--hero-progress)));
      }

      html[data-theme="dark"] .portrait-shell::after {
        background: linear-gradient(180deg, rgba(31, 31, 31, 0.14), rgba(31, 31, 31, 0.32));
      }

      .portrait-image {
    position: absolute;
    width: 110%;
    height: 115%;
    left: -14px;

    object-fit: cover;
    object-position: center 23%;

    filter:
        saturate(calc(1 - (0.18 * var(--hero-progress))))
        contrast(calc(1 - (0.08 * var(--hero-progress))));

    transform: translate3d(
        0,
        calc(-22px * var(--hero-progress)),
        0
    );

    transform-origin: 52% 20%;

    will-change: transform, filter;
}

      .top-nav {
        position: absolute;
        z-index: 4;
        top: 16px;
        left: clamp(16px, 7.95vw, 31px);
        right: clamp(16px, 7.95vw, 31px);
        height: 46px;
        border-radius: 100px;
        background: var(--nav-surface);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        overflow: hidden;
        box-shadow: 0 12px 30px rgba(31, 31, 31, 0.08);
        transform: translate3d(0, -86px, 0);
        animation: navDrop 1250ms var(--ease) 180ms forwards;
        transition: background-color 700ms var(--ease), box-shadow 700ms var(--ease);
        will-change: transform, opacity;
      }

      .theme-control {
        border: 0;
        background: transparent;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 0;
        cursor: pointer;
        transform: translate3d(-82px, 0, 0);
        opacity: 0;
        animation: navItemLeft 1100ms var(--ease) 620ms forwards;
        will-change: transform, opacity;
      }

      .moon {
        width: 18px;
        height: 18px;
        color: #000000;
        transition: color 700ms var(--ease);
      }
      html[data-theme="dark"] .theme-control svg {
      color: #F0F8FF;
}

      .switch {
        width: 36px;
        height: 18px;
        border-radius: 99px;
        background: #535353;
        position: relative;
        transition: background-color 700ms var(--ease);
      }

      .switch::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--accent);
        transform: translate3d(calc(18px * var(--theme-x, 0)), 0, 0);
        transition: transform 700ms var(--ease);
      }

      html[data-theme="dark"] .switch {
        background: #e3d3b4;
      }

      html[data-theme="dark"] .switch::after {
        --theme-x: 1;
        background: #535353;
      }

      .brand-logo {
        width: 72px;
        display: grid;
        justify-items: center;
        gap: 0;
        font-family: "Playfair Display", Georgia, serif;
        color: var(--text);
        line-height: 1;
        text-decoration: none;
        transform: translate3d(90px, 0, 0);
        opacity: 0;
        animation: navItemRight 1100ms var(--ease) 720ms forwards;
        transition: color 700ms var(--ease);
        will-change: transform, opacity;
      }

      .skill-rail {
  position: absolute;
  z-index: 1;
  top: var(--hero-expanded);
  left: 0;
  width: 100%;
  height: 52px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: transparent;
  color: #535353;
  font-size: 14px;
  transform: translateY(-100px);
  animation: skillRailReveal 1400ms var(--ease) 950ms forwards;
  will-change: transform, opacity;
  border-bottom: #535353 1px solid;
}

.skill-rail-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  min-width: max-content;
  white-space: nowrap;
  will-change: transform;
}

.skill-rail span {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;

  white-space: nowrap;

  color: #535353;
  font-size: 14px;
  font-weight: 400;
}

.skill-rail span::before {
  content: "";

  width: 5px;
  height: 5px;

  border-radius: 50%;
  background: currentColor;

  margin-right: 12px;
  flex-shrink: 0;
}

@keyframes skillRailReveal {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
 html[data-theme="dark"] {
  --skill-rail-color: #e3d3b4;
}

.skill-rail {
  color: var(--skill-rail-color);
  border-bottom: 1px solid var(--skill-rail-color);
}

.skill-rail span {
  color: var(--skill-rail-color);
}


      .content {
        position: relative;
        z-index: 2;
      }

      .about {
        min-height: 388px;
        display: grid;
        justify-items: center;
        padding: 0 26px 40px;
        text-align: center;
      }

      .first-name,
      .surname {
        margin: 0;
        font-family: "Playfair Display", Georgia, serif;
        color: var(--text);
        line-height: 1.08;
        white-space: nowrap;
      }

      .first-name {
        padding-top: 20px;
        font-size: clamp(54px, 16.4vw, 64px);
        font-weight: 600;
        animation: heroFromTop 1450ms var(--ease) 260ms both;
      }

      .surname-row {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
      }

      .surname {
        font-size: clamp(36px, 10.25vw, 40px);
        font-weight: 400;
        animation: heroFromBottom 1450ms var(--ease) 430ms both;
      }

      .job-title {
        margin: 20px 0 0;
        color: var(--accent);
        font-size: 24px;
        animation: heroFromLeft 1450ms var(--ease) 600ms both;
      }

      .fine-rule {
        width: 212px;
        height: 1px;
        margin-top: 18px;
        background: var(--rule);
        transform-origin: center;
        animation: ruleGrow 1400ms var(--ease) 840ms both;
      }

      .about-copy {
        display: grid;
        gap: 18px;
        width: min(338px, calc(100vw - 52px));
        margin-top: 28px;
        color: var(--text);
        font-size: 14px;
        font-weight: 500;
        line-height: 1.15;
      }

      .about-copy p {
        margin: 0;
      }

      .band {
        position: relative;
        overflow: hidden;
        padding: 24px 56px 34px;
        background: var(--bg);
        transition: background-color 700ms var(--ease);
      }

      .band.stone {
        min-height: 212px;
        background: var(--stone);
      }

      .band.cold {
        min-height: 145px;
        background: var(--stone-cold);
      }

      .band.tools {
        min-height: 140px;
      }

      .vertical-label {
        position: absolute;
        left: -8px;
        top: 20px;
        color: #ffffff;
        opacity: 0.3;
        font-size: 48px;
        font-weight: 600;
        letter-spacing: 3.36px;
        transform: rotate(-90deg) translate3d(-116px, -64px, 0);
        transform-origin: left top;
      }

      .section-title {
        width: 235px;
        margin: 0 auto 16px;
        padding: 0 190px 8px 10px;
        border-bottom: 0.5px solid var(--rule);
        font-family: "Playfair Display", Georgia, serif;
        font-size: 24px;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: 1.68px;
        color: var(--text-strong);
        white-space: nowrap;
      }

      .section-title.on-dark {
        color: var(--footer-text);
        border-color: var(--footer-text);
      }

      .skill-grid,
      .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 50px;
        margin: 0 auto;
        width: min(275px, 100%);
        color: var(--text-strong);
        font-size: 14px;
        font-weight: 300;
      }

      .skill-grid.tight {
        gap: 10px 20px;
      }

      .skill-grid span,
      .contact-grid span {
        position: relative;
        white-space: nowrap;
      }

      .skill-grid span::before,
      .contact-grid span::before {
        content: "";
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: currentColor;
        display: inline-block;
        margin: 0 8px 2px 0;
      }

      .final-skill {
        margin-top: 10px;
        text-align: center;
        color: var(--text-strong);
        font-size: 14px;
        font-weight: 300;
        white-space: nowrap;
      }

      .logo-row {
        width: 238px;
        margin: 19px auto 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .tool-icon {
        width: 22px;
        height: 22px;
        object-fit: contain;
      }

      .projects {
        min-height: 1086px;
        padding: 24px 48px 44px;
        background: var(--paper);
        transition: background-color 700ms var(--ease);
      }

      .project-list {
        display: grid;
        gap: 26px;
        margin-top: 44px;
      }

      .project-card {
        position: relative;
        overflow: hidden;
        aspect-ratio: 1;
        background: #1f1f1f;
        transform: translateZ(0);
        border-radius: 10px;
      }

      .project-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 1500ms var(--ease), filter 1500ms var(--ease);
        will-change: transform;
      }

      .project-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(31, 31, 31, 0) 70%, #1f1f1f 100%);
      }

      .project-card:active img {
        transform: scale(1.035);
      }

      .project-label {
        position: absolute;
        z-index: 2;
        left: 50%;
        bottom: 14px;
        transform: translate3d(-50%, 0, 0);
        padding: 4px 20px 0;
        border-top: 0.5px solid #ffffff;
        color: #ffffff;
        font-size: 16px;
        font-weight: 300;
        letter-spacing: 1.12px;
        white-space: nowrap;
      }

      .contact {
        min-height: 532px;
        padding: 24px 70px 30px;
        background: var(--footer);
        color: var(--footer-text);
        transition: background-color 700ms var(--ease), color 700ms var(--ease);
      }

      .contact-grid {
        width: 249px;
        gap: 10px 50px;
        color: var(--footer-text);
        letter-spacing: 1.4px;
        line-height: 28px;
      }

      .contact-rule {
        width: 235px;
        height: 1px;
        margin: 30px auto 22px;
        background: var(--footer-text);
        opacity: 0.8;
      }

      .contact-list {
        display: grid;
        gap: 20px;
        width: max-content;
        margin: 0 auto;
        font-size: 14px;
        font-weight: 300;
      }

      .contact-item {
        display: flex;
        align-items: center;
        gap: 12px;
        white-space: nowrap;
       text-decoration: none;
      }

      .contact-item img {
        width: 22px;
        height: 22px;
        object-fit: contain;
      }

      .footer-logo {
        width: 156px;
        display: block;
        margin: 52px auto 0;
      }

      .location {
        margin: 27px 0 0;
        text-align: center;
        font-size: 14px;
        font-weight: 300;
        letter-spacing: 0.98px;
      }

      .reveal {
        opacity: 0;
        transform: translate3d(0, 34px, 0);
        transition: opacity 1100ms var(--ease), transform 1100ms var(--ease);
        will-change: transform, opacity;
      }

      .reveal.is-visible {
        opacity: 1;
        transform: translate3d(0, 0, 0);
      }

      @keyframes navDrop {
        from { transform: translate3d(0, -86px, 0); opacity: 0; }
        to { transform: translate3d(0, 0, 0); opacity: 1; }
      }

      @keyframes navItemLeft {
        from { transform: translate3d(-82px, 0, 0); opacity: 0; }
        to { transform: translate3d(0, 0, 0); opacity: 1; }
      }

      @keyframes navItemRight {
        from { transform: translate3d(90px, 0, 0); opacity: 0; }
        to { transform: translate3d(0, 0, 0); opacity: 1; }
      }

      @keyframes heroFromTop {
        from { opacity: 0; transform: translate3d(0, -58px, 0); }
        to { opacity: 1; transform: translate3d(0, 0, 0); }
      }

      @keyframes heroFromBottom {
        from { opacity: 0; transform: translate3d(0, 50px, 0); }
        to { opacity: 1; transform: translate3d(0, 0, 0); }
      }

      @keyframes heroFromLeft {
        from { opacity: 0; transform: translate3d(-70px, 0, 0); }
        to { opacity: 1; transform: translate3d(0, 0, 0); }
      }

      @keyframes ruleGrow {
        from { opacity: 0; transform: scaleX(0.28); }
        to { opacity: 1; transform: scaleX(1); }
      }

      @keyframes railDrift {
        from { transform: translate3d(-28%, 0, 0); }
        to { transform: translate3d(-72%, 0, 0); }
      }

      @media (min-width: 431px) {
        body {
          background:
            linear-gradient(90deg, rgba(0, 0, 0, 0.04), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.04)),
            var(--bg);
        }
      }

      @media (max-width: 360px) {
        .band,
        .projects,
        .contact {
          padding-left: 32px;
          padding-right: 32px;
        }

        .contact-list {
          font-size: 13px;
        }

        .section-title {
          width: 220px;
          padding-right: 164px;
        }
      }
      @keyframes skillRailReveal {
    from {
        transform: translateY(-100px);
    }

    to {
        transform: translateY(0);
    }
}

      @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
          animation-duration: 1ms !important;
          animation-iteration-count: 1 !important;
          scroll-behavior: auto !important;
          transition-duration: 1ms !important;
        }

        .skill-rail-track {
          animation: none !important;
        }
      }
