:root {
      --canvas: #F3F0E8;
      --surface: #FFFDF8;
      --ink: #25231F;
      --muted: #6B675F;
      --accent: #C74E34;
      --accent-strong: #7D2D20;
      --line: #D9D3C7;
      --shell: 520px;
      --card-radius: 26px;
    }

    * { box-sizing: border-box; }

    html {
      scroll-behavior: smooth;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    body {
      min-height: 100vh;
      margin: 0;
      overflow-x: hidden;
      color: var(--ink);
      background:
        radial-gradient(circle at 10% 0%, rgb(199 78 52 / 0.11), transparent 29rem),
        var(--canvas);
      font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 16px;
      line-height: 1.5;
    }

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

    .skip-link {
      position: fixed;
      z-index: 100;
      top: 8px;
      left: 8px;
      transform: translateY(-140%);
      border-radius: 999px;
      padding: 10px 16px;
      color: var(--surface);
      background: var(--ink);
    }

    .skip-link:focus { transform: none; }

    .page {
      width: min(100%, var(--shell));
      min-height: 100vh;
      margin: 0 auto;
      padding: 48px 20px 80px;
    }

    .profile {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 18px;
      text-align: center;
    }

    .brand-mark {
      display: grid;
      width: 96px;
      height: 96px;
      grid-template-columns: repeat(2, 18px);
      place-content: center;
      gap: 6px;
      border: 1px solid var(--line);
      border-radius: 50%;
      background: var(--surface);
      box-shadow: 0 14px 30px rgb(37 35 31 / 0.08);
    }

    .brand-mark span {
      width: 18px;
      height: 18px;
      border-radius: 6px;
      background: var(--accent);
    }

    .brand-mark span:nth-child(2),
    .brand-mark span:nth-child(3) { background: var(--accent-strong); }

    .brand-mark span:nth-child(4) { border-radius: 50%; }

    .profile-copy { max-width: 350px; padding: 0 8px; }

    h1 {
      margin: 0;
      font-size: clamp(24px, 6vw, 30px);
      font-weight: 760;
      line-height: 1.15;
      letter-spacing: -0.03em;
    }

    .bio {
      margin: 7px 0 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 21px;
    }

    .socials {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-top: 24px;
    }

    .social {
      display: grid;
      width: 46px;
      height: 46px;
      place-items: center;
      border: 1px solid var(--line);
      border-radius: 50%;
      color: var(--ink);
      background: var(--surface);
      transition: color 180ms ease, transform 180ms ease, border-color 180ms ease;
    }

    .social:hover {
      border-color: var(--accent);
      color: var(--accent-strong);
      transform: translateY(-3px) rotate(-2deg);
    }

    .social svg { width: 21px; height: 21px; }

    .feature-card {
      display: flex;
      min-height: 108px;
      align-items: center;
      gap: 16px;
      margin-top: 34px;
      border-radius: var(--card-radius);
      padding: 17px 20px;
      color: var(--surface);
      background: var(--ink);
      box-shadow: 0 15px 34px rgb(37 35 31 / 0.2);
      transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease;
    }

    .feature-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 20px 40px rgb(37 35 31 / 0.26);
    }

    .feature-icon,
    .feature-arrow {
      display: grid;
      width: 42px;
      height: 42px;
      flex: 0 0 auto;
      place-items: center;
      border-radius: 50%;
      color: var(--surface);
      background: var(--accent);
    }

    .feature-icon svg { width: 21px; height: 21px; }
    .feature-arrow { width: 29px; height: 29px; margin-left: auto; transition: transform 180ms ease; }
    .feature-card:hover .feature-arrow { transform: translateX(3px); }

    .feature-copy { min-width: 0; }
    .feature-copy strong { display: block; font-size: 14px; line-height: 20px; }
    .feature-copy span { display: block; color: rgb(255 253 248 / 0.7); font-size: 12px; line-height: 17px; }

    .section { position: relative; margin-top: 22px; }

    .section-title {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 12px;
      font-size: 13px;
      font-weight: 780;
      line-height: 20px;
      letter-spacing: 0.11em;
      text-transform: uppercase;
    }

    .section-title::before {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
      content: "";
    }

    .carousel-controls {
      position: absolute;
      z-index: 4;
      top: -3px;
      right: 0;
      display: none;
      align-items: center;
      gap: 5px;
    }

    .has-carousel .carousel-controls { display: flex; }

    .carousel-control {
      display: grid;
      width: 28px;
      height: 28px;
      place-items: center;
      border: 0;
      border-radius: 50%;
      padding: 0;
      color: var(--surface);
      background: var(--ink);
      cursor: pointer;
      transition: color 160ms ease, transform 160ms ease, background-color 160ms ease;
    }

    .carousel-control:hover { background: var(--accent-strong); transform: scale(1.06); }
    .carousel-control svg { width: 12px; height: 12px; }
    .carousel-control [hidden] { display: none; }
    .carousel-step { display: none; }

    .carousel-viewport {
      width: calc(100% + 20px);
      overflow-x: auto;
      overscroll-behavior-inline: contain;
      scrollbar-width: none;
      cursor: grab;
      touch-action: pan-x pan-y pinch-zoom;
      -webkit-overflow-scrolling: touch;
    }

    .carousel-viewport::-webkit-scrollbar { display: none; }
    .carousel-viewport.is-dragging { cursor: grabbing; user-select: none; }

    .carousel-track {
      display: flex;
      width: max-content;
      gap: 12px;
      padding: 0 20px 6px 0;
      transform: translate3d(0, 0, 0);
      will-change: transform;
    }

    .resource {
      width: 150px;
      flex: 0 0 150px;
    }

    .resource a { display: block; }

    .resource-visual {
      position: relative;
      height: 184px;
      overflow: hidden;
      border-radius: 14px;
      background: var(--surface);
      box-shadow: inset 0 0 0 1px var(--line);
      transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 240ms ease;
    }

    .resource a:hover .resource-visual {
      transform: translateY(-2px);
      box-shadow: 0 14px 24px rgb(37 35 31 / 0.15);
    }

    .resource-art {
      position: absolute;
      inset: 0;
      overflow: hidden;
      background: linear-gradient(145deg, #F3BA72, #B9382B);
    }

    .resource:nth-child(2) .resource-art { background: linear-gradient(145deg, #B5C69B, #456052); }
    .resource:nth-child(3) .resource-art { background: linear-gradient(145deg, #C5B3DB, #625176); }

    .resource-art::before,
    .resource-art::after {
      position: absolute;
      border-radius: 50%;
      background: rgb(255 253 248 / 0.22);
      content: "";
    }

    .resource-art::before { top: 18px; right: -26px; width: 108px; height: 108px; }
    .resource-art::after { bottom: 20px; left: 18px; width: 46px; height: 46px; }

    .resource-overlay {
      position: absolute;
      z-index: 1;
      right: 12px;
      bottom: 12px;
      left: 12px;
      border-radius: 8px;
      padding: 7px 8px;
      color: var(--surface);
      background: rgb(37 35 31 / 0.78);
      box-shadow: 0 4px 12px rgb(37 35 31 / 0.18);
      font-size: 13px;
      font-weight: 800;
      line-height: 1.05;
      text-transform: uppercase;
    }

    .resource-name {
      display: -webkit-box;
      height: 36px;
      margin: 8px 0 5px;
      overflow: hidden;
      font-size: 12px;
      font-weight: 720;
      line-height: 17px;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .resource-button {
      display: inline-flex;
      min-height: 25px;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      padding: 4px 13px;
      color: var(--surface);
      background: var(--accent-strong);
      font-size: 11px;
      font-weight: 760;
      line-height: 16px;
      text-transform: uppercase;
    }

    .stack { display: grid; gap: 16px; margin-top: 18px; }

    .media-card,
    .contact-card {
      position: relative;
      display: block;
      overflow: hidden;
      border-radius: var(--card-radius);
      padding: 20px;
      color: var(--surface);
      box-shadow: 0 16px 32px rgb(37 35 31 / 0.15);
      transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease;
    }

    .media-card { min-height: 254px; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); }
    .contact-card { min-height: 164px; background: var(--ink); }

    .media-card:hover,
    .contact-card:hover { transform: translateY(-3px); box-shadow: 0 22px 38px rgb(37 35 31 / 0.21); }

    .card-head {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .round-icon {
      display: grid;
      width: 40px;
      height: 40px;
      flex: 0 0 40px;
      place-items: center;
      border-radius: 50%;
      background: rgb(255 253 248 / 0.16);
    }

    .round-icon svg { width: 21px; height: 21px; }
    .card-head-copy { min-width: 0; }
    .card-head-copy strong { display: block; font-size: 14px; line-height: 20px; }
    .card-head-copy span { display: block; color: rgb(255 253 248 / 0.7); font-size: 12px; line-height: 16px; }

    .media-glyph {
      position: absolute;
      top: 18px;
      right: 16px;
      width: 88px;
      height: 88px;
      border: 10px solid rgb(255 253 248 / 0.09);
      border-radius: 50%;
    }

    .media-window {
      position: absolute;
      right: 20px;
      bottom: 20px;
      left: 20px;
      height: 142px;
      overflow: hidden;
      border-radius: 22px;
      background:
        radial-gradient(circle at 75% 20%, rgb(255 253 248 / 0.24), transparent 24%),
        linear-gradient(145deg, #F2C779, #7D2D20);
      box-shadow: 0 16px 36px rgb(37 35 31 / 0.16);
    }

    .media-window::before {
      position: absolute;
      inset: 28px 55% 28px 24px;
      border: 1px solid rgb(255 253 248 / 0.4);
      border-radius: 18px;
      content: "";
      transform: rotate(-6deg);
    }

    .media-play {
      position: absolute;
      z-index: 2;
      top: 50%;
      left: 50%;
      display: grid;
      width: 46px;
      height: 46px;
      place-items: center;
      border-radius: 50%;
      color: var(--ink);
      background: rgb(255 253 248 / 0.94);
      box-shadow: 0 8px 24px rgb(37 35 31 / 0.22);
      transform: translate(-50%, -50%);
      transition: transform 180ms ease, background-color 180ms ease;
    }

    .media-card:hover .media-play { background: var(--surface); transform: translate(-50%, -50%) scale(1.08); }
    .media-play svg { width: 17px; height: 17px; margin-left: 2px; }

    .contact-label {
      margin: 12px 0 8px;
      font-size: 14px;
      font-weight: 650;
      line-height: 20px;
      text-transform: uppercase;
    }

    .contact-action {
      display: block;
      border-radius: 999px;
      padding: 10px 16px;
      background: rgb(255 253 248 / 0.13);
      font-size: 12px;
      font-weight: 740;
      line-height: 16px;
      text-align: center;
      transition: background-color 180ms ease, transform 180ms ease;
    }

    .contact-card:hover .contact-action { background: rgb(255 253 248 / 0.22); transform: translateY(-1px); }

    .updates { margin-top: 20px; }

    .update-card {
      position: relative;
      width: 150px;
      height: 258px;
      flex: 0 0 150px;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: var(--surface);
    }

    .update-art {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(150deg, transparent 38%, rgb(255 253 248 / 0.28) 38% 57%, transparent 57%),
        linear-gradient(160deg, #DA765F, #782D27);
      transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .update-card:nth-child(2) .update-art { background: linear-gradient(145deg, #96B39E, #304D48); }
    .update-card:nth-child(3) .update-art { background: linear-gradient(145deg, #D6B56D, #825928); }
    .update-card:nth-child(4) .update-art { background: linear-gradient(145deg, #A99CC3, #4F446B); }
    .update-card:hover .update-art { transform: scale(1.04); }

    .update-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgb(37 35 31 / 0.82)); }

    .update-tag {
      position: absolute;
      top: 12px;
      right: 12px;
      border-radius: 999px;
      padding: 5px 9px;
      color: var(--surface);
      background: rgb(37 35 31 / 0.34);
      font-size: 10px;
      font-weight: 760;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      backdrop-filter: blur(7px);
    }

    .update-meta {
      position: absolute;
      right: 13px;
      bottom: 13px;
      left: 13px;
      color: var(--surface);
      font-size: 12px;
      font-weight: 750;
      line-height: 15px;
      text-transform: uppercase;
    }

    footer {
      display: flex;
      min-height: 40px;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-top: 42px;
      color: var(--muted);
      text-align: center;
    }

    footer strong { font-size: 12px; font-weight: 650; }
    footer span { font-size: 12px; }

    :focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }

    .motion-enabled .profile > *,
    .motion-enabled .social,
    .motion-enabled .feature-card {
      opacity: 0;
      transform: translateY(10px);
    }

    .motion-enabled.is-ready .profile > *,
    .motion-enabled.is-ready .social,
    .motion-enabled.is-ready .feature-card {
      animation: rise-in 520ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    }

    .motion-enabled.is-ready .profile > :nth-child(2) { animation-delay: 70ms; }
    .motion-enabled.is-ready .social:nth-child(1) { animation-delay: 130ms; }
    .motion-enabled.is-ready .social:nth-child(2) { animation-delay: 180ms; }
    .motion-enabled.is-ready .social:nth-child(3) { animation-delay: 230ms; }
    .motion-enabled.is-ready .social:nth-child(4) { animation-delay: 280ms; }
    .motion-enabled.is-ready .feature-card { animation-delay: 340ms; }
    .motion-enabled.is-ready .feature-card .feature-icon { animation: spark 720ms ease 700ms 2; }

    .motion-enabled .reveal {
      opacity: 0;
      transform: translateY(12px);
      transition: opacity 500ms ease, transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .motion-enabled .reveal.is-visible { opacity: 1; transform: none; }

    @keyframes rise-in { to { opacity: 1; transform: none; } }

    @keyframes spark {
      50% { color: var(--accent-strong); background: var(--surface); transform: scale(1.08) rotate(-4deg); }
    }

    @media (min-width: 768px) {
      .carousel-step { display: grid; }
    }

    @media (max-width: 389px) {
      .page { padding-right: 16px; padding-left: 16px; }
      .carousel-viewport { width: calc(100% + 16px); }
      .feature-card { padding-right: 16px; padding-left: 16px; }
    }

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