    /* ─────────────────────────────────────────
       RESET & BASE
    ───────────────────────────────────────── */
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      --site-font:    "Helvetica Neue", Helvetica, Arial, sans-serif;
      --bg:           #F8F7F5;
      --ink:          #1A1A1A;
      --ink-muted:    #7A7A7A;
      --border:       #D8D6D2;
      --header-h:     56px;
      --gap:          24px;
      --card-radius:  2px;
    }

    html {
      font-size: 14px;
      -webkit-font-smoothing: antialiased;
    }

    body {
      font-family: var(--site-font);
      font-weight: 400;
      line-height: 1.5;
      background-color: var(--bg);
      color: var(--ink);
      min-height: 100vh;

      /* Subtle paper grain texture via SVG noise */
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    }

    button,
    input[type="button"],
    input[type="submit"] {
      font-family: var(--site-font) !important;
      font-weight: 700 !important;
    }

    /* ─────────────────────────────────────────
       HEADER
    ───────────────────────────────────────── */
    header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      height: var(--header-h);
      background-color: rgba(248, 247, 245, 0.92);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--border);
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      column-gap: 24px;
      align-items: center;
      padding: 0 40px;
    }

    .header-title {
      font-family: var(--site-font);
      font-weight: 400;
      font-size: 0.75rem;
      letter-spacing: normal;
      text-transform: uppercase;
      color: var(--ink);
    }

    .header-meta {
      font-family: var(--site-font);
      font-weight: 400;
      font-size: 0.7rem;
      letter-spacing: normal;
      color: var(--ink-muted);
    }

    .header-center {
      display: flex;
      align-items: center;
      justify-self: center;
      gap: clamp(22px, 2.5vw, 52px);
      white-space: nowrap;
    }

    /* Nav links */
    .header-nav {
      display: flex;
      align-items: center;
      gap: 32px;
      justify-self: center;
    }

    .nav-link {
      font-family: var(--site-font);
      font-size: 0.7rem;
      font-weight: 400;
      letter-spacing: normal;
      text-transform: uppercase;
      color: rgba(30, 30, 30, 0.5);
      text-decoration: none;
      cursor: pointer;
      transition: color 0.2s ease;
      background: none;
      border: none;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }

    .nav-link:hover,
    .nav-link.active {
      color: rgba(30, 30, 30, 0.9);
    }

    .header-title {
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }

    .header-right {
      display: flex;
      align-items: center;
      justify-self: end;
      gap: clamp(8px, 1vw, 20px);
      white-space: nowrap;
    }

    .header-right > button {
      margin-left: 0 !important;
    }

    @media (min-width: 1101px) and (max-width: 1700px) {
      :root { --header-h: 88px; }

      header {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 40px 40px;
        padding: 4px 24px;
      }

      .header-title { grid-column: 1; grid-row: 1; transform: translateY(20px); }
      .header-right { grid-column: 2; grid-row: 1; transform: translateY(20px); }
      .header-center { grid-column: 1 / -1; grid-row: 2; }
    }

    @media (max-width: 1100px) {
      header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
      }
    }

    @media (min-width: 769px) and (max-width: 1100px) {
      :root { --header-h: 80px; }

      header {
        grid-template-columns: 1fr;
        grid-template-rows: 36px 36px;
        padding: 4px 24px;
      }

      .header-title { grid-column: 1; grid-row: 1; }
      .header-center { grid-column: 1; grid-row: 2; }
      .header-right { grid-column: 1; grid-row: 1; }
    }

    /* Page sections */
    .page-section {
      display: none;
      opacity: 0;
      padding-top: calc(var(--header-h) + 48px);
      padding-bottom: 80px;
      padding-left: 40px;
      padding-right: 40px;
      max-width: 1400px;
      margin: 0 auto;
      transition: opacity 0.3s ease;
    }

    .page-section.visible {
      display: block;
    }

    .page-section.faded-in {
      opacity: 1;
    }

    .page-placeholder {
      font-family: var(--site-font);
      font-size: 0.7rem;
      font-weight: 400;
      letter-spacing: normal;
      color: rgba(30, 30, 30, 0.5);
      text-transform: uppercase;
      margin-top: 80px;
      text-align: center;
    }

    /* ─────────────────────────────────────────
       CONTACT PAGE
    ───────────────────────────────────────── */
    .contact-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      min-height: calc(100vh - var(--header-h));
    }

    .contact-email {
      font-family: var(--site-font);
      font-size: 11px;
      font-weight: 400;
      letter-spacing: normal;
      color: rgba(30, 30, 30, 0.5);
      text-decoration: none;
      text-transform: lowercase;
      transition: color 0.2s ease;
      opacity: 0;
      animation: fadeIn 0.6s ease 0.12s forwards;
    }

    .contact-email:hover {
      color: rgba(30, 30, 30, 0.9);
    }

    /* ─────────────────────────────────────────
       LINKS PAGE
    ───────────────────────────────────────── */
    #view-links {
      display: none;
      min-height: calc(100vh - var(--header-h));
    }

    .links-inner {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 48px;
      min-height: calc(100vh - var(--header-h));
    }

    .links-icon {
      font-size: 22px;
      color: rgba(30, 30, 30, 0.45);
      text-decoration: none;
      cursor: pointer;
      transition: color 0.2s ease;
      opacity: 0;
      animation: fadeIn 0.6s ease forwards;
    }

    .links-icon:hover {
      color: rgba(30, 30, 30, 0.9);
    }

    .links-icon svg {
      display: block;
      width: 22px;
      height: 22px;
    }

    /* OTHERS PAGE */
    body.others-active {
      background-color: #fff;
      background-image: none;
    }

    body.others-active header {
      background-color: #fff;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }

    body.others-active .header-right {
      display: none;
    }

    body.others-active footer {
      display: none;
    }

    #view-others {
      max-width: none;
      min-height: 100vh;
      padding: 0 24px;
      background: #fff;
    }

    .others-inner {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .others-video-trigger {
      display: block;
      width: min(480px, calc(100dvh - 120px), 100%);
      line-height: 0;
      padding: 0;
      border: 0;
      background: none;
      cursor: pointer;
    }

    .others-video-trigger img {
      display: block;
      width: 100%;
      height: auto;
    }

    .others-video-trigger:focus-visible,
    .others-video-back:focus-visible {
      outline: 2px solid var(--ink);
      outline-offset: 6px;
    }

    .others-video-trigger[hidden],
    .others-player[hidden] {
      display: none;
    }

    .others-player {
      position: relative;
      width: min(720px, calc(100dvh - 120px), 100%);
      aspect-ratio: 16 / 9;
    }

    .others-player video {
      display: block;
      width: 100%;
      height: 100%;
      background: #000;
    }

    .others-video-back {
      position: absolute;
      top: calc(100% + 16px);
      right: 0;
      padding: 0;
      border: 0;
      background: none;
      color: var(--ink);
      font: 400 11px var(--site-font);
      letter-spacing: normal;
      cursor: pointer;
    }

    /* ─────────────────────────────────────────
       ABOUT PAGE
    ───────────────────────────────────────── */
    @keyframes fadeIn {
      from { opacity: 0; }
      to   { opacity: 1; }
    }

    .about-inner {
      max-width: 580px;
      margin: 0 auto;
      text-align: center;
      padding: 120px 24px;
    }

    .about-eyebrow {
      display: block;
      font-family: var(--site-font);
      font-size: 11px;
      font-weight: 400;
      letter-spacing: normal;
      text-transform: uppercase;
      color: rgba(30, 30, 30, 0.4);
      margin-bottom: 48px;
      opacity: 0;
      animation: fadeIn 0.6s ease forwards;
    }

    .about-divider {
      width: 32px;
      height: 1px;
      background: rgba(30, 30, 30, 0.2);
      margin: 0 auto 48px auto;
      opacity: 0;
      animation: fadeIn 0.6s ease 0.2s forwards;
    }

    .about-year {
      font-family: var(--site-font);
      font-size: 0.6rem;
      font-weight: 400;
      letter-spacing: normal;
      color: rgba(30, 30, 30, 0.35);
      margin: 64px 0 0 0;
      opacity: 0;
      animation: fadeIn 0.6s ease 0.5s forwards;
    }

    .about-body {
      font-family: var(--site-font);
      font-size: 11px;
      font-weight: 400;
      font-style: normal;
      text-transform: uppercase;
      letter-spacing: normal;
      line-height: 2.2;
      color: rgba(20, 20, 20, 0.88);
      margin: 0;
      opacity: 0;
      animation: fadeIn 0.6s ease 0.3s forwards;
    }

    .shuffle-btn {
      font-family: var(--site-font);
      font-size: 11px;
      font-weight: 400;
      letter-spacing: normal;
      text-transform: uppercase;
      color: rgba(30, 30, 30, 0.5);
      background: transparent;
      border: 1px solid rgba(30, 30, 30, 0.2);
      cursor: pointer;
      padding: 5px 12px;
      border-radius: 2px;
      transition: border-color 0.2s, color 0.2s;
      line-height: 1;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }

    .shuffle-btn:hover {
      border-color: rgba(30, 30, 30, 0.6);
      color: rgba(30, 30, 30, 0.9);
    }

    /* ─────────────────────────────────────────
       CARD REVEAL ANIMATION
    ───────────────────────────────────────── */
    @keyframes cardReveal {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ─────────────────────────────────────────
       MAIN LAYOUT
    ───────────────────────────────────────── */
    main {
      padding-top: calc(var(--header-h) + 48px);
      padding-bottom: 80px;
      padding-left: 40px;
      padding-right: 40px;
      max-width: 1400px;
      margin: 0 auto;
    }

    /* ─────────────────────────────────────────
       GRID
    ───────────────────────────────────────── */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--gap);
    }

    @media (max-width: 900px) {
      .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      header, main {
        padding-left: 24px;
        padding-right: 24px;
      }
    }

    @media (max-width: 540px) {
      .gallery-grid {
        grid-template-columns: 1fr;
      }
      header, main {
        padding-left: 16px;
        padding-right: 16px;
      }
    }

    /* ─────────────────────────────────────────
       CARD — FLIP CONTAINER
    ───────────────────────────────────────── */
    .card-wrap {
      aspect-ratio: 1 / 1;
      perspective: 1200px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      -webkit-user-select: none;
      user-select: none;
    }

    body:not(.tbm-active) .card-wrap.has-image:not(.flipped) {
      cursor: url('assets/raiders-revenge-cursor.png') 2 37, pointer;
    }

    /* The inner element that flips */
    .card-inner {
      position: relative;
      width: 100%;
      height: 100%;
      transform-style: preserve-3d;
      -webkit-transform-style: preserve-3d;
      transition: transform 0.6s ease;
      border-radius: var(--card-radius);
    }

    .card-wrap:hover .card-inner,
    .card-wrap.flipped .card-inner {
      will-change: transform;
    }

    /* Flipped state — rotate the inner 3D container */
    .card-wrap.flipped .card-inner {
      transform: rotateY(180deg);
    }

    /* Scale on hover (only when not flipped) */
    .card-wrap:not(.flipped):hover .card-inner {
      transform: scale(1.02);
    }

    /* ─────────────────────────────────────────
       CARD FACE — SHARED
    ───────────────────────────────────────── */
    .card-front,
    .card-back {
      position: absolute;
      inset: 0;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      border-radius: var(--card-radius);
      overflow: hidden;
    }

    /* ─────────────────────────────────────────
       CARD FRONT — PHOTO + SHIMMER
    ───────────────────────────────────────── */
    .card-front {
      background-color: #ffffff;
    }

    .card-front img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      /* Slight desaturation for a gallery print feel */
      filter: saturate(0.92) brightness(0.98);
      transition: filter 0.4s ease;
      /* Prevent iOS long-press "Save Image" callout and touch interception */
      -webkit-touch-callout: none;
      pointer-events: none;
    }

    .card-wrap:hover .card-front img {
      filter: saturate(1) brightness(1);
    }

    /*
      Shimmer overlay — a radial gradient that follows the mouse.
      --mouse-x and --mouse-y are set in JS (percentage values).
      The gradient simulates a pearl/iridescent light catch.
    */
    .card-shimmer {
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.3s ease;
      border-radius: var(--card-radius);

      background: radial-gradient(
        circle 200px at calc(var(--mouse-x, 50%) * 1%) calc(var(--mouse-y, 50%) * 1%),
        rgba(255, 255, 255, 0.28) 0%,
        rgba(200, 210, 255, 0.10) 25%,
        rgba(255, 220, 240, 0.08) 50%,
        transparent 70%
      );

      /* Thin iridescent edge sheen */
      mix-blend-mode: overlay;
    }

    .card-wrap:not(.flipped):hover .card-shimmer {
      opacity: 1;
    }

    @media (hover: none) {
      .card-wrap:not(.flipped):hover .card-inner { transform: none; }
      .card-wrap:hover .card-front img { filter: saturate(0.92) brightness(0.98); }
      .card-wrap:not(.flipped):hover .card-shimmer { opacity: 0; }
    }

    @media (prefers-reduced-motion: reduce) {
      .card-inner, .card-front img, .card-shimmer, .page-section,
      .nav-link, .links-icon, .shuffle-btn { transition-duration: 0.01ms !important; }
      .card-wrap, .about-eyebrow, .about-divider, .about-body,
      .about-year, .links-icon, .contact-email { animation-duration: 0.01ms !important; animation-delay: 0ms !important; }
      html { scroll-behavior: auto; }
    }

    /* ─────────────────────────────────────────
       CARD BACK — BRUSHED METAL + LABEL
    ───────────────────────────────────────── */
    .card-back {
      transform: rotateY(180deg);
      /* Texture image — drop silver-textured-sheet-metal-texture.jpg next to index.html */
      background-image: url('silver-textured-sheet-metal-texture.jpg');
      background-size: cover;
      background-position: center;
      border: 1px solid rgba(255,255,255,0.4);
      box-shadow:
        inset 0  2px  4px rgba(255,255,255,0.6),  /* top highlight   */
        inset 0 -2px  4px rgba(0,0,0,0.4),          /* bottom shadow   */
        inset  2px 0  4px rgba(255,255,255,0.3),    /* left highlight  */
        inset -2px 0  4px rgba(0,0,0,0.3),           /* right shadow    */
        0 20px 60px rgba(0,0,0,0.5),                 /* card drop shadow */
        0  8px 20px rgba(0,0,0,0.3);
    }

    /* Vignette — sits below the light overlay */
    .card-back::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.18) 100%);
      pointer-events: none;
      z-index: 0;
    }

    /* Light source overlay — simulates a spot hitting the metal */
    .card-back::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.25) 0%, transparent 60%);
      mix-blend-mode: overlay;
      pointer-events: none;
      z-index: 1;
    }

    /* ── Content block — sits above texture and all overlays ── */
    .card-back-content {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      padding: 40px 24px 28px 24px;
      z-index: 10;
      pointer-events: none;
      background: linear-gradient(
        to top,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.45) 50%,
        rgba(0,0,0,0.1)  80%,
        transparent      100%
      );
    }

    .card-label {
      font-family: var(--site-font);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: normal;
      color: rgba(255, 255, 255, 0.75);
      margin-bottom: 8px;
      display: block;
      text-transform: uppercase;
      text-shadow:
        0 1px  0px rgba(0,0,0,1),
        0 2px  4px rgba(0,0,0,1),
        0 4px 12px rgba(0,0,0,0.9),
        0 8px 24px rgba(0,0,0,0.7);
    }

    .card-title {
      font-family: var(--site-font);
      font-weight: 600;
      font-style: normal;
      font-size: 32px;
      letter-spacing: normal;
      color: #FFFFFF;
      margin: 4px 0;
      line-height: 1.2;
      text-shadow:
        0 1px  0px rgba(0,0,0,1),
        0 2px  4px rgba(0,0,0,1),
        0 4px 12px rgba(0,0,0,0.9),
        0 8px 24px rgba(0,0,0,0.7),
        0 0   30px rgba(200,200,200,0.2);
    }

    .card-date {
      font-family: var(--site-font);
      font-size: 11px;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.65);
      margin: 0 0 8px 0;
      text-shadow:
        0 1px  0px rgba(0,0,0,1),
        0 2px  4px rgba(0,0,0,1),
        0 4px 12px rgba(0,0,0,0.9),
        0 8px 24px rgba(0,0,0,0.7);
    }

    .card-description {
      font-family: var(--site-font);
      font-size: 11px;
      font-weight: 500;
      letter-spacing: normal;
      line-height: 1.7;
      color: rgba(255, 255, 255, 0.75);
      margin: 0;
      text-shadow:
        0 1px  0px rgba(0,0,0,1),
        0 2px  4px rgba(0,0,0,1),
        0 4px 12px rgba(0,0,0,0.9),
        0 8px 24px rgba(0,0,0,0.7);
    }

    /* Close hint at top-right */
    .card-back-close {
      position: absolute;
      top: 20px;
      right: 20px;
      font-family: var(--site-font);
      font-size: 0.58rem;
      letter-spacing: normal;
      color: rgba(255, 255, 255, 0.45);
      text-transform: uppercase;
      z-index: 10;
      display: flex;
      align-items: center;
      gap: 6px;
      text-shadow:
        0 1px 3px rgba(0,0,0,0.9),
        0 2px 8px rgba(0,0,0,0.7);
    }

    .card-back-close::before {
      content: '×';
      font-size: 0.9rem;
      line-height: 1;
    }

    /* Bold project details use the sitewide font. */
    .card-back,
    .card-back * {
      font-family: var(--site-font);
      font-weight: 700;
      font-style: normal;
    }

    /* ─────────────────────────────────────────
       FOOTER
    ───────────────────────────────────────── */
    footer {
      text-align: center;
      padding: 40px 0 24px;
      font-family: var(--site-font);
      font-size: 0.6rem;
      letter-spacing: normal;
      color: var(--ink-muted);
      text-transform: uppercase;
    }


    /* ─────────────────────────────────────────
       MOBILE — max-width: 768px
    ───────────────────────────────────────── */
    @media (max-width: 768px) {

      :root { --header-h: 80px; }

      /* Header: two-row column layout */
      header {
        display: flex;
        height: auto;
        min-height: 80px;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        padding: 16px 20px;
        gap: 10px;
      }

      /* Row 1: title left, shuffle button right */
      .header-title {
        font-size: 9px;
        align-self: flex-start;
      }

      .header-center { display: contents; }

      /* Row 2: nav links centered */
      .header-nav {
        position: static;
        transform: none;
        left: auto;
        justify-content: center;
        gap: 20px;
        order: 3;
      }

      .nav-link {
        font-size: 9px;
        letter-spacing: normal;
      }

      /* Shuffle sits opposite the title on narrow screens */
      #shuffle-btn {
        position: absolute;
        top: 16px;
        right: 20px;
      }

      .header-right {
        position: static;
      }

      /* Shuffle button */
      .shuffle-btn {
        font-size: 9px;
        padding: 6px 10px;
      }

      /* Gallery grid */
      .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
      }

      main {
        padding: 16px;
        padding-top: calc(80px + 48px);
        padding-bottom: calc(220px + env(safe-area-inset-bottom));
      }

      body #telley-break-button { bottom: calc(16px + env(safe-area-inset-bottom)); }
      body #telley-breakout-button { bottom: calc(62px + env(safe-area-inset-bottom)); }
      body #telley-collage-button { bottom: calc(108px + env(safe-area-inset-bottom)); }
      body #telley-vandalize-button { bottom: calc(154px + env(safe-area-inset-bottom)); }

      /* Cards */
      .card-wrap {
        width: 100%;
        aspect-ratio: 1 / 1;
      }

      /* About page */
      .about-inner {
        padding: 60px 24px;
      }

      .about-eyebrow {
        font-size: 9px;
        letter-spacing: normal;
        margin-bottom: 24px;
      }

      .about-divider {
        margin: 0 auto 24px auto;
      }

      .about-body {
        font-size: 9px;
        line-height: 1.8;
        letter-spacing: normal;
        max-width: 100%;
      }

      .about-year {
        margin-top: 32px;
        font-size: 9px;
      }
    }
