:root {
      --bg: #090909;
      --fg: #e7e5df;
      --soft: #b8b5ae;
      --muted: #77756f;
      --line: #232323;
      --panel: #11110f;
      --header-fade: rgba(9,9,9,.85);
      --scan: rgba(255,255,255,.045);
      --max: 1080px;
    }

    html[data-theme="light"] {
      --bg: #ffffff;
      --fg: #14140f;
      --soft: #4a4844;
      --muted: #8a8781;
      --line: #e7e5df;
      --panel: #f4f3ee;
      --header-fade: rgba(255,255,255,.85);
      --scan: rgba(0,0,0,.045);
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--fg);
      font-family: "DM Sans", "Segoe UI", Helvetica, Arial, sans-serif;
      font-size: 14px;
      line-height: 1.55;
      font-weight: 400;
      transition: background .25s ease, color .25s ease;
    }

    .brand,
    .hero h1,
    .film-copy h2,
    .section-heading h2 {
      font-family: "Fraunces", Georgia, "Times New Roman", serif;
    }

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

    header {
      position: fixed;
      z-index: 10;
      top: 0;
      left: 0;
      right: 0;
      padding: 22px 28px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: linear-gradient(to bottom, var(--header-fade), transparent);
      transition: background .25s ease;
    }

    .brand {
      font-size: 13px;
      letter-spacing: .025em;
    }

    nav {
      display: flex;
      align-items: center;
      gap: 24px;
    }

    nav a {
      color: var(--soft);
      font-size: 12px;
      transition: color .2s ease;
    }

    nav a:hover {
      color: var(--fg);
    }

    .theme-toggle-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
    }

    .theme-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 1.5px solid var(--fg);
      background: var(--panel);
      color: var(--fg);
      cursor: pointer;
      box-shadow: 0 1px 4px rgba(0,0,0,.12);
      transition: color .2s ease, border-color .2s ease, transform .2s ease, background .2s ease;
    }

    .theme-toggle:hover {
      background: var(--fg);
      color: var(--bg);
      transform: scale(1.08);
    }

    .theme-toggle svg {
      width: 18px;
      height: 18px;
    }

    .theme-toggle .icon-sun { display: none; }
    html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
    html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

    .theme-label {
      font-size: 10px;
      letter-spacing: .04em;
      color: var(--muted);
      white-space: nowrap;
    }

    .theme-label .label-dark { display: none; }
    .theme-label .label-light { display: inline; }
    html[data-theme="light"] .theme-label .label-dark { display: inline; }
    html[data-theme="light"] .theme-label .label-light { display: none; }

    main {
      width: min(var(--max), calc(100% - 48px));
      margin: 0 auto;
    }

    .hero {
      padding: 118px 0 90px;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .eyebrow {
      color: var(--muted);
      font-size: 11px;
      margin-bottom: 18px;
      letter-spacing: .06em;
    }

    .hero h1 {
      margin: 0 0 18px;
      max-width: 680px;
      font-size: clamp(38px, 6vw, 72px);
      line-height: .98;
      letter-spacing: -.045em;
      font-weight: 400;
    }

    .hero-intro {
      max-width: 550px;
      color: var(--soft);
      font-size: 16px;
      line-height: 1.5;
      margin-bottom: 26px;
    }

    .project-link {
      color: var(--muted);
      font-size: 12px;
      letter-spacing: .02em;
      margin-bottom: 42px;
    }

    .project-link a {
      color: var(--soft);
      border-bottom: 1px solid var(--line);
      transition: color .2s ease, border-color .2s ease;
    }

    .project-link a:hover {
      color: var(--fg);
      border-color: var(--soft);
    }

    .film-card {
      display: grid;
      grid-template-columns: minmax(0, 1.65fr) minmax(220px, .75fr);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      min-height: 330px;
    }

    .film-image {
      min-height: 330px;
      background: #121211;
      position: relative;
      overflow: hidden;
      display: grid;
      place-items: center;
    }

    .film-image::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 52% 42%, rgba(255,255,255,.075), transparent 30%),
        linear-gradient(125deg, #111, #181816 48%, #0b0b0a);
      opacity: .9;
    }

    .film-image::after {
      content: "BARBARA";
      position: absolute;
      font-size: clamp(30px, 6vw, 65px);
      letter-spacing: -.05em;
      color: rgba(231,229,223,.65);
      transform: rotate(-3deg);
    }

    .film-image img {
      position: absolute;
      inset: 0;
      z-index: 2;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .film-caption {
      position: absolute;
      z-index: 1;
      bottom: 18px;
      left: 20px;
      color: #77756f;
      font-size: 10px;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .film-copy {
      padding: 28px;
      border-left: 1px solid var(--line);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .film-copy h2 {
      margin: 0;
      font-size: 28px;
      line-height: 1;
      letter-spacing: -.03em;
      font-weight: 400;
    }

    .film-copy p {
      color: var(--soft);
      margin: 28px 0;
      max-width: 330px;
    }

    .status {
      color: var(--muted);
      font-size: 11px;
      padding-top: 15px;
      border-top: 1px solid var(--line);
    }

    section:not(.hero) {
      padding: 105px 0;
      border-top: 1px solid var(--line);
    }

    .section-heading {
      margin-bottom: 42px;
    }

    .section-heading h2 {
      margin: 0 0 8px;
      font-size: 27px;
      font-weight: 400;
      letter-spacing: -.025em;
    }

    .section-heading p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
    }

    .about {
      display: grid;
      grid-template-columns: 234px minmax(0, 570px);
      gap: 52px;
      align-items: center;
      max-width: 850px;
    }

    .about-copy {
      font-size: 18px;
      line-height: 1.45;
      color: var(--soft);
    }

    .portrait-frame {
      width: 234px;
      height: 234px;
      border-radius: 50%;
      border: 1px solid var(--line);
      padding: 9px;
      display: grid;
      place-items: center;
    }

    .portrait {
      width: 210px;
      height: 210px;
      border-radius: 50%;
      background: var(--panel);
      display: grid;
      place-items: center;
      color: #4e4c48;
      font-size: 10px;
      letter-spacing: .08em;
      text-transform: uppercase;
      overflow: hidden;
      position: relative;
    }

    .portrait img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 75%;
    }

    .portrait::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 50%;
      background:
        radial-gradient(circle at 28% 18%, rgba(255,255,255,.22), transparent 55%),
        linear-gradient(155deg, rgba(0,0,0,.28), transparent 62%);
      mix-blend-mode: overlay;
      pointer-events: none;
    }

    .interlude {
      text-align: center;
    }

    .interlude img {
      width: 100%;
      max-height: 460px;
      object-fit: cover;
      border: 1px solid var(--line);
      display: block;
    }

    .interlude p {
      margin: 20px 0 0;
      color: var(--muted);
      font-size: 16px;
      letter-spacing: .05em;
    }

    .work-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-bottom: 22px;
    }

    .work-grid-item {
      overflow: hidden;
      border: 1px solid var(--line);
      aspect-ratio: 4 / 3;
      display: block;
      cursor: pointer;
      transition: border-color .2s ease;
      padding: 0;
      background: none;
      font: inherit;
    }

    .work-grid-item:hover {
      border-color: var(--soft);
    }

    .work-grid-item img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .3s ease;
    }

    .work-grid-item:hover img {
      transform: scale(1.04);
    }

    .work-placeholder {
      padding: 20px 0;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      color: var(--muted);
      font-size: 13px;
    }

    .links {
      display: grid;
      max-width: 620px;
      border-top: 1px solid var(--line);
    }

    .links a {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 13px 0;
      border-bottom: 1px solid var(--line);
      color: var(--soft);
      transition: padding .2s ease, color .2s ease;
    }

    .links a svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }

    .links a:hover {
      padding-left: 6px;
      color: var(--fg);
    }

    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px;
      background: rgba(0,0,0,.86);
      opacity: 0;
      visibility: hidden;
      transition: opacity .25s ease, visibility .25s ease;
    }

    .lightbox.is-open {
      opacity: 1;
      visibility: visible;
    }

    .lightbox-content {
      margin: 0;
      max-width: min(900px, 100%);
      max-height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      transform: scale(.97);
      transition: transform .25s ease;
    }

    .lightbox.is-open .lightbox-content {
      transform: scale(1);
    }

    .lightbox-content img {
      max-width: 100%;
      max-height: 78vh;
      object-fit: contain;
      border: 1px solid rgba(255,255,255,.15);
    }

    .lightbox-content figcaption {
      margin-top: 16px;
      color: #d8d6cf;
      font-size: 12px;
      letter-spacing: .03em;
      text-align: center;
    }

    .lightbox-close {
      position: absolute;
      top: 22px;
      right: 22px;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,.3);
      background: transparent;
      color: #e7e5df;
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: background .2s ease, transform .2s ease;
    }

    .lightbox-close:hover {
      background: rgba(255,255,255,.12);
      transform: scale(1.06);
    }

    .lightbox-close svg {
      width: 18px;
      height: 18px;
    }

    footer {
      width: min(var(--max), calc(100% - 48px));
      margin: 0 auto;
      padding: 30px 0 42px;
      color: var(--muted);
      font-size: 11px;
      display: flex;
      justify-content: space-between;
    }

    .noise {
      position: fixed;
      inset: -50%;
      z-index: 20;
      pointer-events: none;
      opacity: .025;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
      animation: noise .25s steps(2) infinite;
    }

    @keyframes noise {
      0% { transform: translate(0,0); }
      50% { transform: translate(1%, -1%); }
      100% { transform: translate(-1%, 1%); }
    }

    .scanline {
      position: fixed;
      z-index: 21;
      left: 0;
      right: 0;
      top: -2px;
      height: 1px;
      background: var(--scan);
      pointer-events: none;
      animation: scan 9s linear infinite;
    }

    @keyframes scan {
      from { top: -2px; }
      to { top: 100vh; }
    }

    @media (max-width: 720px) {
      header { padding: 18px; }
      nav { gap: 14px; }
      nav a:nth-child(2) { display: none; }

      main, footer {
        width: min(var(--max), calc(100% - 32px));
      }

      .hero {
        padding-top: 105px;
        min-height: auto;
      }

      .hero h1 {
        font-size: 46px;
      }

      .film-card {
        grid-template-columns: 1fr;
      }

      .film-copy {
        border-left: 0;
        border-top: 1px solid var(--line);
      }

      .film-image {
        min-height: 250px;
      }

      .work-grid {
        grid-template-columns: 1fr;
      }

      .about {
        grid-template-columns: 1fr;
        gap: 28px;
      }

      .portrait-frame {
        width: 168px;
        height: 168px;
        padding: 7px;
      }

      .portrait {
        width: 150px;
        height: 150px;
      }

      .about-copy {
        font-size: 16px;
      }

      section:not(.hero) {
        padding: 78px 0;
      }

      footer {
        display: block;
      }

      footer div + div {
        margin-top: 7px;
      }
    }

    body.lightbox-lock {
      position: fixed;
      left: 0;
      right: 0;
      width: 100%;
      overflow: hidden;
    }
