/* ── Local fonts ─────────────────────────────────────── */
    @font-face {
      font-family: 'Zalando Sans';
      src: url('fonts/ZalandoSans-VariableFont_wdth,wght.ttf') format('truetype');
      font-weight: 200 900;
      font-stretch: 75% 125%;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'Zalando Sans Expanded';
      src: url('fonts/ZalandoSansExpanded-VariableFont_wght.ttf') format('truetype');
      font-weight: 200 900;
      font-style: normal;
      font-display: swap;
    }

    /* ── Variables ─────────────────────────────────────── */
    :root {
      --bg:      #efefef;
      --ink:     #060606;
      --mid:     #6b6760;
      --rule:    #d4d0c8;
      --white:   #ffffff;
      --sans:      'Zalando Sans', sans-serif;
      --expanded:  'Zalando Sans Expanded', sans-serif;
      --max:     1100px;
      --gutter:  clamp(1.2rem, 5vw, 3rem);
    }

    /* ── Reset ─────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      background: var(--bg);
      color: var(--ink);
      font-family: var(--sans);
      font-size: clamp(0.88rem, 1.5vw, 1rem);
      font-weight: 400;
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
    }
    h1, h2, h3,
    .hero-label,
    .section-label,
    .works-item-label,
    .form-field label { font-family: var(--expanded); }
    img { display: block; width: 100%; height: 100%; object-fit: cover; }
    a { color: inherit; text-decoration: none; }

    /* ── Image hover — cinematic reveal ─────────────────── */
    .hero-img-wrap,
    .work-card-img,
    .works-item-media,
    .project-shot:not(.project-shot--placeholder),
    .blog-card-img {
      --img-hover-ease: cubic-bezier(0.23, 1, 0.32, 1);
      --img-hover-duration: 0.85s;
      isolation: isolate;
      transition:
        box-shadow var(--img-hover-duration) var(--img-hover-ease),
        transform var(--img-hover-duration) var(--img-hover-ease);
    }

    .hero-img-wrap img,
    .work-card-img img,
    .works-item-media img,
    .project-shot:not(.project-shot--placeholder) img,
    .blog-card-img img {
      transition: transform var(--img-hover-duration) var(--img-hover-ease);
      transform-origin: center center;
    }

    /* Light sweep overlay */
    .hero-img-wrap::before,
    .work-card-img::before,
    .works-item-media::before,
    .project-shot:not(.project-shot--placeholder)::before,
    .blog-card-img::before {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 2;
      pointer-events: none;
      background: linear-gradient(
        105deg,
        transparent 38%,
        rgba(255, 255, 255, 0.55) 48%,
        rgba(255, 255, 255, 0.12) 58%,
        transparent 68%
      );
      transform: translateX(-130%) skewX(-14deg);
      transition: transform 1s var(--img-hover-ease);
    }

    /* Vignette lift on hover */
    .hero-img-wrap::after,
    .work-card-img::after,
    .works-item-media::after,
    .project-shot:not(.project-shot--placeholder)::after,
    .blog-card-img::after {
      transition:
        opacity 0.5s ease,
        background 0.5s ease;
    }

    @media (hover: hover) {
      .hero-img-wrap { cursor: zoom-in; }

      .hero-img-wrap:hover,
      .work-card-link:hover .work-card-img,
      .work-card-link:focus-visible .work-card-img,
      .works-item-media:hover,
      .works-item-media:focus-visible,
      .project-shot:not(.project-shot--placeholder):hover,
      .blog-card:hover .blog-card-img {
        box-shadow:
          0 28px 70px -18px rgba(6, 6, 6, 0.45),
          0 0 0 1px rgba(6, 6, 6, 0.08);
        transform: translateY(-4px);
      }

      .hero-img-wrap:hover img,
      .work-card-link:hover .work-card-img img,
      .work-card-link:focus-visible .work-card-img img,
      .works-item-media:hover img,
      .works-item-media:focus-visible img,
      .project-shot:not(.project-shot--placeholder):hover img,
      .blog-card:hover .blog-card-img img {
        transform: scale(1.12);
      }

      .work-card-link:nth-child(odd):hover .work-card-img img,
      .work-card-link:nth-child(odd):focus-visible .work-card-img img {
        transform: scale(1.12) rotate(0.6deg);
      }
      .work-card-link:nth-child(even):hover .work-card-img img,
      .work-card-link:nth-child(even):focus-visible .work-card-img img {
        transform: scale(1.12) rotate(-0.6deg);
      }

      .hero-img-wrap:hover::before,
      .work-card-link:hover .work-card-img::before,
      .work-card-link:focus-visible .work-card-img::before,
      .works-item-media:hover::before,
      .works-item-media:focus-visible::before,
      .project-shot:not(.project-shot--placeholder):hover::before,
      .blog-card:hover .blog-card-img::before {
        transform: translateX(130%) skewX(-14deg);
      }

      .hero-img-wrap:hover::after,
      .work-card-link:hover .work-card-img::after,
      .work-card-link:focus-visible .work-card-img::after,
      .project-shot:not(.project-shot--placeholder):hover::after,
      .blog-card:hover .blog-card-img::after {
        opacity: 0;
      }

      .works-item-media::after {
        content: 'Ansehen';
        position: absolute;
        inset: 0;
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: var(--expanded);
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: var(--white);
        background: rgba(6, 6, 6, 0.42);
        opacity: 0;
        backdrop-filter: blur(2px);
      }

      .works-item-media:hover::after,
      .works-item-media:focus-visible::after {
        opacity: 1;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .hero-img-wrap,
      .work-card-img,
      .works-item-media,
      .project-shot:not(.project-shot--placeholder),
      .blog-card-img,
      .hero-img-wrap img,
      .work-card-img img,
      .works-item-media img,
      .project-shot:not(.project-shot--placeholder) img,
      .blog-card-img img,
      .hero-img-wrap::before,
      .work-card-img::before,
      .works-item-media::before,
      .project-shot:not(.project-shot--placeholder)::before,
      .blog-card-img::before {
        transition: none;
      }

      @media (hover: hover) {
        .hero-img-wrap:hover,
        .work-card-link:hover .work-card-img,
        .works-item-media:hover,
        .project-shot:not(.project-shot--placeholder):hover {
          transform: none;
          box-shadow: none;
        }

        .hero-img-wrap:hover img,
        .work-card-link:hover .work-card-img img,
        .works-item-media:hover img,
        .project-shot:not(.project-shot--placeholder):hover img {
          transform: none;
        }
      }
    }

    /* ── Layout helpers ────────────────────────────────── */
    .container {
      width: min(var(--max), 100%);
      margin-inline: auto;
      padding-inline: var(--gutter);
    }
    .section-rule {
      border: none;
      border-top: 1px solid var(--rule);
      margin: 0;
    }

    /* ── Nav ───────────────────────────────────────────── */
    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--bg);
      border-bottom: 1px solid var(--rule);
    }
    nav .container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      height: 56px;
    }
    .nav-logo {
      display: inline-flex;
      align-items: center;
      flex-shrink: 0;
      line-height: 0;
      font-style: normal;
    }
    .nav-logo img {
      display: block;
      height: clamp(26px, 5vw, 32px);
      width: auto;
      max-width: min(220px, 52vw);
    }
    .nav-logo { white-space: nowrap; }
    .nav-toggle {
      display: none;
      width: 40px;
      height: 40px;
      border: 1px solid var(--rule);
      background: transparent;
      border-radius: 2px;
      padding: 0;
      align-items: center;
      justify-content: center;
      gap: 4px;
      flex-direction: column;
    }
    .nav-toggle-line {
      width: 18px;
      height: 2px;
      background: var(--ink);
      display: block;
      border-radius: 2px;
    }
    .nav-toggle:focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
    }
    body.nav-open .nav-toggle-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    body.nav-open .nav-toggle-line:nth-child(2) { opacity: 0; }
    body.nav-open .nav-toggle-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .nav-toggle-line { transition: transform 0.18s ease, opacity 0.18s ease; }

    .nav-right {
      display: flex;
      align-items: center;
      gap: clamp(1rem, 4vw, 2rem);
      justify-content: flex-end;
      flex: 1;
      min-width: 0;
    }
    .nav-links {
      display: flex;
      gap: 2rem;
      list-style: none;
      font-size: 0.78rem;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }
    .nav-links a { color: var(--mid); transition: color 0.2s; }
    .nav-links a:hover { color: var(--ink); }
    .nav-links [aria-current="page"] { color: var(--ink); }
    .nav-cta {
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      border: 1px solid var(--ink);
      padding: 0.4em 1em;
      transition: background 0.2s, color 0.2s;
      white-space: nowrap;
    }
    .nav-cta:hover { background: var(--ink); color: var(--bg); }

    .nav-backdrop {
      position: fixed;
      inset: 0;
      background: color-mix(in srgb, var(--ink) 35%, transparent);
      z-index: 120;
    }

    @media (max-width: 640px) {
      body.nav-open { overflow: hidden; }

      .nav-toggle { display: inline-flex; margin-left: auto; }

      /* Semleges háttér — nincs elsötétítés; a kattintható réteg ne takarja a menüt */
      .nav-backdrop {
        display: none !important;
      }

      /* Logo + hamburger mindig a teljes képernyős panel felett marad */
      body.nav-open .nav-logo,
      body.nav-open .nav-toggle {
        position: relative;
        z-index: 160;
      }

      .nav-right {
        position: fixed;
        inset: 0;
        z-index: 150;
        min-height: 100vh;
        min-height: 100dvh;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: calc(56px + env(safe-area-inset-top, 0px)) 0 env(safe-area-inset-bottom, 0px);
        margin: 0;
        gap: 0;
        flex: initial;
        background: var(--bg);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }

      body.nav-open .nav-right {
        display: flex;
      }

      .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        flex: 0 0 auto;
        padding: 1rem var(--gutter) 1.25rem;
        background: transparent;
        border-bottom: 1px solid var(--rule);
        font-size: 0.82rem;
      }
      .nav-links li { border-top: 1px solid var(--rule); }
      .nav-links li:first-child { border-top: none; }
      .nav-links a {
        display: block;
        padding: 0.95rem 0;
        color: var(--ink);
        cursor: pointer;
        position: relative;
        z-index: 1;
      }

      .nav-cta {
        display: block;
        text-align: center;
        align-self: stretch;
        margin: clamp(1.75rem, 6vw, 2.75rem) var(--gutter) 1rem;
        flex-shrink: 0;
      }
    }

    /* ── Hero ──────────────────────────────────────────── */
    #hero {
      padding-block: clamp(3rem, 8vw, 6rem);
    }
    .hero-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: clamp(2rem, 5vw, 4rem);
      align-items: center;
    }
    .hero-label {
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--mid);
      margin-bottom: 1.2rem;
    }
    .hero-heading {
      font-family: var(--expanded);
      font-size: clamp(2.4rem, 5vw, 3.8rem);
      font-weight: 700;
      line-height: 1.1;
      letter-spacing: -0.02em;
      margin-bottom: 1.4rem;
    }
    .hero-heading em {
      font-style: normal;
      font-weight: 700;
      color: var(--accent);
    }
    .hero-body {
      color: var(--mid);
      max-width: 38ch;
      margin-bottom: 2rem;
    }
    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.9rem 1.1rem;
      align-items: center;
    }
    .btn {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      background: var(--ink);
      color: var(--bg);
      padding: 0.7em 1.6em;
      transition: background 0.2s, color 0.2s;
    }
    .btn:hover { background: var(--accent); }
    .btn-outline {
      background: transparent;
      color: var(--ink);
      border: 1px solid var(--ink);
    }
    .btn-outline:hover { background: var(--ink); color: var(--bg); }
    .hero-img-wrap {
      aspect-ratio: 4/5;
      overflow: hidden;
      background: var(--rule);
      position: relative;
    }
    /* placeholder when no real photo */
    .hero-img-wrap::after {
      content: 'YOUR PHOTO';
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      font-weight: 500;
      letter-spacing: 0.15em;
      color: var(--mid);
    }
    .hero-img-wrap img { position: relative; z-index: 1; }

    @media (max-width: 640px) {
      .hero-inner { grid-template-columns: 1fr; }
      .hero-img-wrap { order: -1; aspect-ratio: 3/2; }
    }

    /* ── Section titles ────────────────────────────────── */
    .section-title {
      font-family: var(--expanded);
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      font-weight: 600;
      letter-spacing: -0.02em;
      line-height: 1.1;
    }
    .section-label {
      font-size: 0.7rem;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--mid);
      margin-bottom: 0.6rem;
    }

    /* ── Works ─────────────────────────────────────────── */
    #works {
      padding-block: clamp(3rem, 7vw, 5rem);
    }
    .works-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      margin-bottom: 2.5rem;
    }
    .works-link {
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--mid);
      border-bottom: 1px solid var(--rule);
      padding-bottom: 2px;
      transition: color 0.2s, border-color 0.2s;
    }
    .works-link:hover { color: var(--ink); border-color: var(--ink); }
    .works-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
    }
    .work-card-link {
      display: block;
      border-radius: 2px;
      outline: none;
    }
    .work-card-link:focus-visible {
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
    }
    .work-card-img {
      aspect-ratio: 4/3;
      overflow: hidden;
      background: var(--rule);
      margin-bottom: 0.9rem;
      position: relative;
    }
    .work-card-img::after {
      content: attr(data-label);
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      font-weight: 500;
      letter-spacing: 0.12em;
      color: var(--mid);
    }
    .work-card-img img { position: relative; z-index: 1; }
    .work-tag {
      font-size: 0.65rem;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--mid);
      margin-bottom: 0.3rem;
    }
    .work-title {
      font-family: var(--expanded);
      font-size: clamp(1rem, 2vw, 1.3rem);
      font-weight: 600;
      margin-bottom: 0.4rem;
    }
    .work-desc { color: var(--mid); font-size: 0.85rem; }

    @media (max-width: 480px) {
      .works-grid { grid-template-columns: 1fr; }
    }

    /* ── CV ────────────────────────────────────────────── */
    #cv {
      padding-block: clamp(3rem, 7vw, 5rem);
      background: var(--ink);
      color: var(--bg);
    }
    #cv .section-label { color: #888; }
    .cv-inner {
      display: grid;
      grid-template-columns: 1fr 2fr;
      gap: clamp(2rem, 6vw, 5rem);
      align-items: start;
    }
    .cv-intro { color: #b0ada6; margin-top: 1rem; }
    .cv-download { margin-top: 2rem; }
    .btn-light {
      background: transparent;
      color: var(--bg);
      border: 1px solid #555;
    }
    .btn-light:hover { background: var(--bg); color: var(--ink); }
    .cv-cols {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
    }
    .cv-col-title {
      font-size: 0.7rem;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: #888;
      border-bottom: 1px solid #333;
      padding-bottom: 0.6rem;
      margin-bottom: 1.4rem;
    }
    .cv-entry { margin-bottom: 1.6rem; }
    .cv-entry-year {
      font-size: 0.72rem;
      color: #666;
      margin-bottom: 0.2rem;
    }
    .cv-entry-title {
      font-family: var(--expanded);
      font-size: 1rem;
      font-weight: 600;
      color: var(--bg);
      margin-bottom: 0.2rem;
    }
    .cv-entry-sub { font-size: 0.82rem; color: #888; }

    @media (max-width: 768px) {
      .cv-inner { grid-template-columns: 1fr; }
    }
    @media (max-width: 480px) {
      .cv-cols { grid-template-columns: 1fr; }
    }

    /* ── Contact ───────────────────────────────────────── */
    #contact {
      padding-block: clamp(3rem, 8vw, 6rem);
    }
    .contact-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: clamp(2rem, 5vw, 4rem);
      align-items: start;
    }
    .contact-heading {
      font-family: var(--expanded);
      font-size: clamp(2rem, 4.5vw, 3.2rem);
      font-weight: 700;
      line-height: 1.1;
      letter-spacing: -0.02em;
      margin-top: 0.8rem;
    }
    .contact-sub { color: var(--mid); margin-top: 1rem; max-width: 36ch; }
    .contact-direct {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      padding-top: 0.25rem;
      align-self: stretch;
    }
    .contact-name {
      margin: 0;
      font-size: clamp(1rem, 2vw, 1.15rem);
      font-weight: 600;
      letter-spacing: -0.01em;
      color: var(--ink);
      border-bottom: 1px solid var(--rule);
      padding-bottom: 0.75rem;
    }
    .contact-line {
      display: block;
      font-size: clamp(1rem, 2vw, 1.15rem);
      color: var(--ink);
      letter-spacing: -0.01em;
      border-bottom: 1px solid var(--rule);
      padding-bottom: 0.75rem;
      transition: color 0.2s, border-color 0.2s;
    }
    .contact-line:hover {
      color: var(--accent);
      border-bottom-color: color-mix(in srgb, var(--accent) 35%, transparent);
    }
    .contact-form { display: flex; flex-direction: column; gap: 1rem; }
    .contact-form-wrap {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }
    .contact-form-owner {
      border: none;
      border-top: 1px solid var(--rule);
      padding: 1.25rem 0 0;
      margin: 0.25rem 0 0;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .contact-form-owner .section-label {
      margin-bottom: 0;
    }
    .form-field--static .contact-form-value {
      display: block;
      font-size: clamp(1rem, 2vw, 1.1rem);
      color: var(--ink);
      letter-spacing: -0.01em;
      padding: 0.35rem 0 0.5rem;
      border-bottom: 1px solid var(--rule);
      transition: color 0.2s, border-color 0.2s;
    }
    .form-field--static .contact-form-value:hover {
      color: var(--ink);
      border-bottom-color: var(--ink);
    }
    .form-field--check {
      flex-direction: row;
      align-items: flex-start;
      gap: 0.6rem;
    }
    .form-field--check input {
      width: 1rem;
      height: 1rem;
      margin-top: 0.15rem;
      flex-shrink: 0;
      accent-color: var(--ink);
    }
    .form-field--check label {
      text-transform: none;
      letter-spacing: 0;
      font-size: 0.82rem;
      line-height: 1.5;
      font-weight: 400;
      color: var(--mid);
    }
    .form-field--check a {
      color: var(--ink);
      border-bottom: 1px solid var(--rule);
    }
    .contact-submit {
      align-self: flex-start;
      margin-top: 0.25rem;
      border: none;
      cursor: pointer;
    }
    .form-status {
      font-size: 0.85rem;
      color: var(--mid);
      margin: 0;
    }
    .form-status[hidden] { display: none; }
    .form-field { display: flex; flex-direction: column; gap: 0.3rem; }
    .form-field label {
      font-size: 0.7rem;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--mid);
    }
    .form-field input,
    .form-field textarea {
      background: transparent;
      border: none;
      border-bottom: 1px solid var(--rule);
      padding: 0.5rem 0;
      font-family: var(--sans);
      font-size: 0.95rem;
      color: var(--ink);
      outline: none;
      transition: border-color 0.2s;
      resize: none;
    }
    .form-field input:focus,
    .form-field textarea:focus { border-color: var(--ink); }
    .form-field textarea { min-height: 100px; }

    @media (max-width: 640px) {
      .contact-inner { grid-template-columns: 1fr; }
    }

    /* ── Blog ──────────────────────────────────────────── */
    #blog {
      padding-block: clamp(3rem, 7vw, 5rem);
      border-top: 1px solid var(--rule);
    }
    .blog-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      margin-bottom: 2.5rem;
    }
    .blog-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }
    .blog-card-img {
      aspect-ratio: 3/2;
      overflow: hidden;
      background: var(--rule);
      margin-bottom: 0.9rem;
      position: relative;
    }
    .blog-card-img::after {
      content: attr(data-label);
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.65rem;
      font-weight: 500;
      letter-spacing: 0.1em;
      color: var(--mid);
    }
    .blog-card-img img { position: relative; z-index: 1; }
    .blog-tag {
      font-size: 0.62rem;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--mid);
      margin-bottom: 0.35rem;
    }
    .blog-title {
      font-family: var(--expanded);
      font-size: clamp(0.9rem, 1.8vw, 1.1rem);
      font-weight: 600;
      line-height: 1.35;
    }

    @media (max-width: 640px) {
      .blog-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 900px) and (min-width: 641px) {
      .blog-grid { grid-template-columns: repeat(2, 1fr); }
    }

    /* ── Footer ────────────────────────────────────────── */
    footer {
      border-top: 1px solid var(--rule);
      padding-block: 2.5rem;
    }
    .footer-inner {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      gap: 2rem;
    }
    .footer-brand-name {
      margin-bottom: 0.5rem;
      line-height: 0;
    }
    .footer-brand-name img {
      display: block;
      height: clamp(32px, 4vw, 40px);
      width: auto;
      max-width: min(240px, 85%);
    }
    .footer-address { color: var(--mid); font-size: 0.83rem; line-height: 1.7; }
    .footer-social {
      display: flex;
      gap: 1rem;
      margin-top: 1.4rem;
    }
    .footer-social a {
      width: 32px;
      height: 32px;
      border: 1px solid var(--rule);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      color: var(--mid);
      transition: border-color 0.2s, color 0.2s;
    }
    .footer-social a:hover { border-color: var(--ink); color: var(--ink); }
    .footer-col-title {
      font-size: 0.68rem;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--mid);
      margin-bottom: 1rem;
    }
    .footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
    .footer-links a { font-size: 0.85rem; color: var(--mid); transition: color 0.2s; }
    .footer-links a:hover { color: var(--ink); }
    .footer-bottom {
      margin-top: 2.5rem;
      padding-top: 1.2rem;
      border-top: 1px solid var(--rule);
      display: flex;
      justify-content: space-between;
      font-size: 0.72rem;
      color: var(--mid);
    }

    @media (max-width: 768px) {
      .footer-inner { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 480px) {
      .footer-inner { grid-template-columns: 1fr; }
      .footer-bottom { flex-direction: column; gap: 0.5rem; }
    }

    /* ── Project pages ─────────────────────────────────── */
    .project-shell {
      padding-block: clamp(2rem, 5vw, 3rem);
    }
    .project-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 2rem;
      padding-bottom: 1.25rem;
      border-bottom: 1px solid var(--rule);
      margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    }
    .project-top h1 {
      font-family: var(--expanded);
      font-size: clamp(2.2rem, 5vw, 3.6rem);
      font-weight: 700;
      line-height: 1.05;
      letter-spacing: -0.02em;
    }
    .project-meta {
      display: grid;
      gap: 0.75rem;
      min-width: min(240px, 45vw);
      text-align: left;
    }
    .project-meta dt {
      font-size: 0.62rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--mid);
      margin-bottom: 0.15rem;
    }
    .project-meta dd {
      font-size: 0.9rem;
      color: var(--ink);
    }
    .project-body {
      display: grid;
      grid-template-columns: 260px 1fr;
      gap: clamp(1.5rem, 4vw, 3rem);
      align-items: start;
    }
    .project-aside {
      position: sticky;
      top: 76px;
      align-self: start;
      padding-right: 1.25rem;
      border-right: 1px solid var(--rule);
    }
    .project-aside h2 {
      font-size: 0.62rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--mid);
      margin-bottom: 0.4rem;
    }
    .project-aside p {
      color: var(--mid);
      font-size: 0.9rem;
      margin-bottom: 1.2rem;
      max-width: 36ch;
    }
    .project-gallery {
      display: grid;
      gap: 1.2rem;
    }
    .project-shot {
      overflow: hidden;
      background: var(--rule);
      border-radius: 2px;
      border: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
    }
    .project-shot img {
      width: 100%;
      height: auto;
      display: block;
    }
    .project-shot--placeholder {
      aspect-ratio: 4/3;
      display: grid;
      place-items: center;
      color: var(--mid);
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }
    .project-shot--zoomable {
      cursor: zoom-in;
    }
    .project-shot--zoomable:focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 25%, transparent);
    }

    /* ── Lightbox ──────────────────────────────────────── */
    body.lightbox-open { overflow: hidden; }

    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 1000;
      display: grid;
      place-items: center;
      padding: clamp(1rem, 4vw, 2rem);
    }

    .lightbox[hidden] { display: none; }

    .lightbox-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(6, 6, 6, 0.92);
      backdrop-filter: blur(6px);
    }

    .lightbox-dialog {
      position: relative;
      z-index: 1;
      width: min(96vw, 1400px);
      max-height: 92vh;
      display: grid;
      place-items: center;
    }

    .lightbox-figure {
      margin: 0;
      width: 100%;
      display: grid;
      gap: 0.75rem;
      justify-items: center;
    }

    .lightbox-img {
      display: block;
      width: auto;
      height: auto;
      max-width: min(96vw, 1400px);
      max-height: calc(92vh - 3rem);
      object-fit: contain;
      box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    }

    .lightbox-caption {
      color: rgba(255, 255, 255, 0.75);
      font-size: 0.78rem;
      letter-spacing: 0.06em;
      text-align: center;
      max-width: 60ch;
    }

    .lightbox-caption[hidden] { display: none; }

    .lightbox-close,
    .lightbox-nav {
      position: fixed;
      z-index: 2;
      border: 1px solid rgba(255, 255, 255, 0.25);
      background: rgba(255, 255, 255, 0.08);
      color: var(--white);
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      font-size: 1.4rem;
      line-height: 1;
      cursor: pointer;
      transition: background 0.2s ease, border-color 0.2s ease;
    }

    .lightbox-close:hover,
    .lightbox-nav:hover,
    .lightbox-close:focus-visible,
    .lightbox-nav:focus-visible {
      background: rgba(255, 255, 255, 0.18);
      border-color: rgba(255, 255, 255, 0.45);
      outline: none;
    }

    .lightbox-close {
      top: clamp(0.5rem, 2vw, 1rem);
      right: clamp(0.5rem, 2vw, 1rem);
    }

    .lightbox-nav {
      top: 50%;
      transform: translateY(-50%);
      font-size: 1.1rem;
    }

    .lightbox-prev { left: clamp(0.25rem, 2vw, 0.5rem); }
    .lightbox-next { right: clamp(0.25rem, 2vw, 0.5rem); }

    .lightbox-nav[hidden],
    .lightbox-close[hidden] { display: none; }

    @media (max-width: 640px) {
      .lightbox-nav {
        top: auto;
        bottom: 0.5rem;
        transform: none;
      }
      .lightbox-prev { left: calc(50% - 3.25rem); }
      .lightbox-next { right: calc(50% - 3.25rem); }
      .lightbox-img { max-height: calc(88vh - 5rem); }
    }
    .project-cta {
      margin-top: clamp(2rem, 5vw, 3rem);
      padding-top: clamp(1.5rem, 4vw, 2.5rem);
      border-top: 1px solid var(--rule);
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 1.5rem;
      align-items: end;
    }
    .project-cta h2 {
      font-family: var(--expanded);
      font-size: clamp(1.6rem, 3.8vw, 2.4rem);
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.15;
    }
    .project-cta p {
      color: var(--mid);
      margin-top: 0.75rem;
      max-width: 55ch;
    }
    .project-cta-actions {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    @media (max-width: 900px) {
      .project-body { grid-template-columns: 220px 1fr; }
    }
    @media (max-width: 720px) {
      .project-top { flex-direction: column; }
      .project-meta { min-width: 0; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .project-body { grid-template-columns: 1fr; }
      .project-aside {
        position: static;
        border-right: none;
        padding-right: 0;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--rule);
      }
      .project-cta { grid-template-columns: 1fr; align-items: start; }
      .project-cta-actions { justify-content: flex-start; }
    }

    /* ── Works list page ───────────────────────────────── */
    .works-page {
      padding-block: clamp(2.5rem, 6vw, 4rem);
    }
    .works-page-header h1 {
      font-family: var(--expanded);
      font-size: clamp(2.2rem, 5vw, 3.4rem);
      letter-spacing: -0.02em;
      line-height: 1.05;
      font-weight: 600;
      max-width: 18ch;
    }
    .works-page-rule {
      margin-top: clamp(1.25rem, 3vw, 1.75rem);
      border-top: 1px solid var(--rule);
    }
    .works-list {
      margin-top: clamp(1.25rem, 3vw, 1.75rem);
      border-top: 1px solid var(--rule);
    }
    .works-item {
      display: grid;
      grid-template-columns: 260px 1fr;
      gap: clamp(1.25rem, 4vw, 2.5rem);
      padding-block: clamp(1.5rem, 4vw, 2.25rem);
      border-bottom: 1px solid var(--rule);
      align-items: center;
    }
    .works-item-left {
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
      border-right: 1px solid var(--rule);
      padding-right: 1.25rem;
      min-height: 100%;
      justify-content: center;
    }
    .works-item-label {
      font-size: 0.65rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--mid);
    }
    .works-item-title {
      font-family: var(--expanded);
      font-size: clamp(1.2rem, 2.2vw, 1.6rem);
      letter-spacing: 0.02em;
      font-weight: 600;
      line-height: 1.15;
    }
    .works-item-btn {
      align-self: flex-start;
      margin-top: 0.6rem;
      display: inline-block;
      font-size: 0.65rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      border: 1px solid var(--ink);
      padding: 0.5em 0.9em;
      transition: background 0.2s, color 0.2s, border-color 0.2s;
    }
    .works-item-btn:hover {
      background: var(--ink);
      color: var(--bg);
    }
    .works-item-media {
      display: block;
      border-radius: 8px;
      overflow: hidden;
      background: #e7e2da;
      aspect-ratio: 16/9;
      position: relative;
    }
    .works-item-media-ph {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      color: var(--mid);
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }
    .works-item-media:focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
    }

    @media (max-width: 820px) {
      .works-item { grid-template-columns: 220px 1fr; }
    }
    @media (max-width: 640px) {
      .works-item { grid-template-columns: 1fr; }
      .works-item-left {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--rule);
        padding-bottom: 1rem;
      }
      .works-item-media { aspect-ratio: 3/2; }
    }

    /* ── CV page ───────────────────────────────────────── */
    .cv-page {
      padding-block: clamp(2.5rem, 6vw, 4rem);
    }
    .cv-page-header {
      padding-bottom: 1.25rem;
      border-bottom: 1px solid var(--rule);
    }
    .cv-name {
      font-family: var(--expanded);
      font-size: clamp(2.4rem, 6vw, 4rem);
      letter-spacing: -0.03em;
      line-height: 1.02;
      font-weight: 600;
    }
    .cv-title {
      margin-top: 0.35rem;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--mid);
    }
    .cv-contact {
      margin-top: 1.25rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.85rem 1.25rem;
      color: var(--mid);
      font-size: 0.9rem;
      align-items: center;
    }
    .cv-contact a { color: var(--mid); border-bottom: 1px solid transparent; }
    .cv-contact a:hover { color: var(--ink); border-bottom-color: var(--rule); }
    .cv-contact-item {
      display: inline-flex;
      gap: 0.5rem;
      align-items: center;
      white-space: nowrap;
    }
    .cv-divider {
      margin-top: 1.25rem;
      border-top: 1px solid var(--rule);
    }
    .cv-page-body {
      padding-top: clamp(1.25rem, 3vw, 2rem);
      display: grid;
      grid-template-columns: 1fr;
      gap: clamp(1.25rem, 3vw, 1.75rem);
    }
    .cv-section {
      padding-top: 1.25rem;
      border-top: 1px solid var(--rule);
    }
    .cv-section:first-child {
      border-top: none;
      padding-top: 0;
    }
    .cv-section h2 {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      margin-bottom: 0.75rem;
    }
    .cv-lead {
      color: var(--mid);
      max-width: 70ch;
      font-size: 0.95rem;
    }

    .cv-exp-list {
      display: grid;
      gap: 0.75rem;
    }
    .cv-acc {
      border: 1px solid var(--rule);
      border-radius: 6px;
      background: color-mix(in srgb, var(--bg) 85%, white);
      overflow: hidden;
    }
    .cv-acc summary {
      list-style: none;
      cursor: pointer;
      padding: 0.9rem 1rem;
      display: grid;
      grid-template-columns: 1fr auto auto;
      gap: 1rem;
      align-items: center;
    }
    .cv-acc summary::-webkit-details-marker { display: none; }
    .cv-acc summary::after {
      content: '▾';
      width: 1.25rem;
      height: 1.25rem;
      display: grid;
      place-items: center;
      color: var(--mid);
      font-size: 0.9rem;
      line-height: 1;
      transform: rotate(-90deg);
      transition: transform 0.18s ease, color 0.18s ease;
    }
    .cv-acc[open] summary::after {
      transform: rotate(0deg);
      color: var(--ink);
    }
    .cv-acc summary:focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
    }
    .cv-acc-headline {
      display: grid;
      gap: 0.15rem;
    }
    .cv-acc-role {
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .cv-acc-company {
      color: var(--mid);
      font-size: 0.9rem;
    }
    .cv-acc-meta {
      color: var(--mid);
      font-size: 0.85rem;
      white-space: nowrap;
    }
    .cv-acc-body {
      border-top: 1px solid var(--rule);
      padding: 0.85rem 1rem 1rem;
      color: var(--mid);
      font-size: 0.92rem;
    }
    .cv-acc-body ul {
      padding-left: 1.1rem;
      display: grid;
      gap: 0.35rem;
    }

    @media (max-width: 640px) {
      .cv-acc summary {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: start;
      }
      .cv-acc-meta {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
      }
      .cv-acc-headline {
        grid-column: 1;
        grid-row: 2;
      }
      .cv-acc summary::after {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
      }
      .cv-acc-role {
        text-wrap: balance;
      }
    }

    .cv-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    .cv-tag {
      border: 1px solid var(--rule);
      border-radius: 999px;
      padding: 0.4rem 0.75rem;
      font-size: 0.85rem;
      color: var(--ink);
      background: color-mix(in srgb, var(--bg) 75%, white);
    }

    .cv-simple-list {
      display: grid;
      gap: 0.8rem;
      color: var(--mid);
      font-size: 0.95rem;
      max-width: 75ch;
    }
    .cv-simple-item strong {
      color: var(--ink);
      font-weight: 600;
    }

    /* ── Legal pages ───────────────────────────────────── */
    .legal-page {
      padding-block: clamp(2.5rem, 6vw, 4rem);
    }
    .legal-header {
      padding-bottom: 1.25rem;
      border-bottom: 1px solid var(--rule);
      margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    }
    .legal-header h1 {
      font-family: var(--expanded);
      font-size: clamp(2rem, 5vw, 3.2rem);
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.08;
      margin-top: 0.2rem;
    }
    .legal-updated {
      margin-top: 0.75rem;
      color: var(--mid);
      font-size: 0.85rem;
    }
    .legal-content {
      max-width: 72ch;
    }
    .legal-content h2 {
      font-family: var(--expanded);
      font-size: clamp(1rem, 2vw, 1.2rem);
      font-weight: 600;
      letter-spacing: -0.01em;
      margin-top: 2rem;
      margin-bottom: 0.75rem;
      color: var(--ink);
    }
    .legal-content h2:first-child {
      margin-top: 0;
    }
    .legal-content p,
    .legal-content li {
      color: var(--mid);
      font-size: 0.95rem;
      line-height: 1.75;
      margin-bottom: 0.85rem;
    }
    .legal-content ul {
      padding-left: 1.25rem;
      margin-bottom: 0.85rem;
    }
    .legal-content a {
      color: var(--ink);
      border-bottom: 1px solid var(--rule);
      transition: border-color 0.2s ease;
    }
    .legal-content a:hover {
      border-bottom-color: var(--ink);
    }
