  :root {
    --color-bg: #121212;
    --color-surface: #1e1e1e;
    --color-surface-alt: #1f1f1f;
    --color-accent: #4CAF50;
    --color-danger: #ff3860;
    --color-text: #e0e0e0;
    --color-text-muted: #bbb;
    --color-text-dim: #ccc;
    --color-border: #333;
    --color-border-alt: #444;
    --color-border-strong: #555;
    --color-link: #4FA7FF;
    --radius-sm: 0.4rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.6rem;
  }

  body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
  }

  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
  }

  .hero {
    text-align: center;
    margin-bottom: 3rem;
    background: radial-gradient(ellipse at center, var(--color-surface-alt) 0%, var(--color-bg) 100%);
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
  }

  .hero .hero-role {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-link);
    margin: 0 0 0.75rem;
  }

  .hero p {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    max-width: 60ch;
    margin-inline: auto;
  }

  #avatar-wrapper {
    width: 100%;
    max-width: 680px;
    margin: 2rem auto;
  }

  #avatar-wrapper [data-avatar-widget] {
    width: 100%;
    aspect-ratio: 680 / 480;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
    background-color: #000;
  }

  section {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 3rem auto;
  }

  section h2 {
    margin-bottom: 1rem;
  }

  section p,
  section li {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  ul {
    padding-left: 1.2rem;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  input,
  textarea {
    background: var(--color-surface);
    border: 1px solid var(--color-border-alt);
    color: white;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    flex: 1;
  }

  button[type="submit"] {
    align-self: flex-start;
    background: var(--color-border);
    border: 1px solid var(--color-border-strong);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
  }

  button[type="submit"]:hover {
    background: var(--color-border-alt);
  }

  button {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
  }

  button:focus {
    outline: none;
  }

  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
  }

  @media (max-width: 600px) {
    .hero {
      margin-top: 0;
      padding-top: 0;
    }

    .container {
      padding-top: 0;
      margin-top: 0;
    }

    body {
      margin-top: 0;
    }

    .project-card .project-details,
    .project-card .project-details p,
    .project-card .project-details li {
      font-size: 0.75rem !important;
    }

    .project-card {
      margin: 0 auto 2rem auto !important;
    }

    .project-title {
      font-size: 1.2rem !important;
    }
  }

  .project-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 3rem auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: border-color 0.15s;
  }

  .project-card:hover {
    border-color: #777;
  }

  @media (prefers-reduced-motion: no-preference) {
    .project-card {
      transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    }

    .project-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    }
  }

  .project-media {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    display: block;
  }

  .project-media.logo-frame {
    background: #fff;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 2 / 1;
    cursor: default;
    box-sizing: border-box;
    overflow: hidden;
  }

  .project-media.logo-frame img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  #projects {
    margin: 0;
    padding: 0;
  }

  #projects .projects-list {
    padding-left: 0;
    margin: 0;
    list-style: none;
  }

  .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;
  }

  .skip-link {
    position: absolute;
    left: 0;
    top: -40px;
    background: var(--color-accent);
    color: #000;
    padding: 0.5rem 1rem;
    z-index: 1001;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    transition: top 0.15s ease;
  }

  .skip-link:focus {
    top: 0;
  }

  .back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-accent);
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 900;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background 0.15s, color 0.15s;
  }

  .back-to-top[hidden] {
    display: none;
  }

  .back-to-top:hover {
    background: var(--color-accent);
    color: #000;
  }

  .video-placeholder {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
  }

  .video-placeholder.silk {
    padding-bottom: 0%;
  }

  .video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: 1;
  }

  .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 16px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
  }

  .play-button::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 24px solid white;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 4px;
    background: none;
    z-index: 3;
  }

  .project-card.vr360 {
    text-align: center;
  }

  .video-thumb-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
  }

  .video-thumb-wrapper iframe,
  .video-thumb-wrapper .video-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
  }

  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

.call-bubble {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: white;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    max-width: 280px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s ease;
    cursor: pointer;
    pointer-events: none;
  }

  .call-bubble::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent var(--color-accent) transparent;
  }

  .call-bubble.show {
    opacity: 1;
    pointer-events: auto;
  }

  .call-bubble.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .hidden {
    display: none !important;
  }

  .project-header {
    position: relative;
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 0 2rem;
  }

  .project-header:has(.project-visit) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
  }

  .project-header:has(.project-visit) .project-title {
    text-align: left;
    flex: 1;
  }

  .project-visit {
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--color-border-strong);
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
  }

  .project-visit:hover {
    background: #e0e0e0;
    color: #000;
  }

  @media (max-width: 600px) {
    .project-header:has(.project-visit) {
      flex-direction: column;
      align-items: stretch;
      text-align: center;
    }

    .project-header:has(.project-visit) .project-title {
      text-align: center;
    }

    .project-visit {
      align-self: center;
    }
  }

  .project-title {
    margin: 1.2rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    padding: 0 1rem;
  }

  .toggle-details-bar {
    text-align: center;
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .details-toggle {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.95rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s;
    opacity: 0.85;
  }

  .details-toggle:hover {
    opacity: 1;
  }

  .details-toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
  }

  .project-details {
    padding: 0 1rem 1rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text-dim);
  }

  .project-details ul {
    list-style: disc !important;
    padding-left: 1.5em !important;
    margin: 1em 0;
    color: white;
  }

  .project-details li {
    margin-bottom: 0.5em;
  }

  .project-details a {
    color: var(--color-link);
    text-decoration: underline;
  }
