  :root {
    --yellow: #F5C800;
    --yellow-deep: #E0B500;
    --pink: #E8B4F0;
    --pink-dark: #D490E8;
    --cream: #F9F5ED;
    --cream-deep: #F1EADA;
    --black: #111111;
    --ink: #1A1A1A;
    --white: #FFFFFF;
    --red-accent: #FF3B3B;
    --blue-accent: #5B7FFF;
    --muted: #6B6357;

    --maxw: 1280px;
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --radius: 22px;
    --radius-lg: 32px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

  body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  /* Film-grain / paper texture overlay */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: 0.5;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  }

  ::selection { background: var(--yellow); color: var(--black); }

  a { color: inherit; }
  img { display: block; max-width: 100%; }

  .visually-hidden {
    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: 16px; top: -60px;
    background: var(--black);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 999px;
    z-index: 10000;
    font-weight: 600;
    font-size: 0.85rem;
    transition: top 0.25s var(--ease-out);
  }
  .skip-link:focus { top: 16px; }

  :focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 3px;
    border-radius: 6px;
  }

  /* ─────────────────────────────  NAV  ───────────────────────────── */
  .site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px clamp(20px, 5vw, 56px);
    background: color-mix(in srgb, var(--cream) 82%, transparent);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border-bottom: 1.5px solid rgba(17,17,17,0.08);
    transition: transform 0.45s var(--ease-out), background 0.3s;
  }
  .site-nav.nav-hidden { transform: translateY(-110%); }

  .nav-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--black);
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
  }
  .nav-logo .dot-mark { color: var(--red-accent); font-size: 1.6rem; line-height: 0; }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
  }
  .nav-links a {
    text-decoration: none;
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
  }
  .nav-links a:hover { border-color: rgba(17,17,17,0.3); }
  .nav-links a[aria-current="page"] { border-color: var(--black); }

  .nav-cta {
    background: var(--yellow) !important;
    border-color: var(--black) !important;
    font-weight: 700 !important;
    box-shadow: 3px 3px 0 var(--black);
    transition: transform 0.15s var(--ease-spring), box-shadow 0.15s !important;
  }
  .nav-cta:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--black); }
  .nav-cta:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--black); }

  .hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    width: 44px; height: 44px;
    align-items: center;
    background: transparent;
    border: none;
    z-index: 300;
    position: relative;
  }
  .hamburger span {
    display: block;
    width: 26px; height: 2.5px;
    background: var(--black);
    border-radius: 3px;
    transition: transform 0.35s var(--ease-out), opacity 0.2s;
    transform-origin: center;
  }
  .hamburger.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

  /* Drawer */
  .nav-drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(90vw, 420px);
    height: 100dvh;
    background: var(--yellow);
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 96px clamp(28px, 8vw, 56px) 48px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77,0,0.175,1);
    border-left: 2px solid var(--black);
  }
  .nav-drawer.open { transform: translateX(0); }

  .drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(17,17,17,0.4);
    z-index: 190;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(2px);
  }
  .drawer-overlay.open { opacity: 1; pointer-events: all; }

  .nav-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
  .nav-drawer ul li a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2.4rem, 10vw, 3.6rem);
    line-height: 1.18;
    color: var(--black);
    text-decoration: none;
    transform: translateX(40px);
    opacity: 0;
    transition: transform 0.45s var(--ease-out), opacity 0.4s ease, color 0.2s;
  }
  .nav-drawer ul li a .idx {
    font-family: 'Space Mono', monospace;
    font-style: normal;
    font-size: 0.8rem;
    opacity: 0.5;
    transform: translateY(-0.7em);
  }
  .nav-drawer.open ul li a { transform: translateX(0); opacity: 1; }
  .nav-drawer.open ul li:nth-child(1) a { transition-delay: 0.12s; }
  .nav-drawer.open ul li:nth-child(2) a { transition-delay: 0.18s; }
  .nav-drawer.open ul li:nth-child(3) a { transition-delay: 0.24s; }
  .nav-drawer.open ul li:nth-child(4) a { transition-delay: 0.30s; }
  .nav-drawer ul li a:hover { color: var(--red-accent); }

  .drawer-bottom {
    margin-top: auto;
    padding-top: 28px;
    border-top: 2px solid rgba(17,17,17,0.25);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease 0.4s, opacity 0.4s ease 0.4s;
  }
  .nav-drawer.open .drawer-bottom { transform: translateY(0); opacity: 1; }
  .drawer-social {
    font-size: 0.9rem; font-weight: 600;
    color: var(--black); text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
  }
  .drawer-social:hover { border-color: var(--black); }

  /* ─────────────────────────────  PAGES  ───────────────────────────── */
  .page { display: none; }
  .page.active { display: block; animation: pageIn 0.5s var(--ease-out); }
  @keyframes pageIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  main { padding-top: 74px; }

  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

  /* ─────────────────────────────  HERO  ───────────────────────────── */
  .hero {
    position: relative;
    padding: clamp(40px, 7vw, 90px) 0 clamp(30px, 5vw, 60px);
    overflow: hidden;
  }
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 22px;
  }
  .hero-eyebrow .pulse {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--red-accent);
    box-shadow: 0 0 0 0 rgba(255,59,59,0.5);
    animation: pulse 2.4s infinite;
  }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,59,59,0.5); }
    70% { box-shadow: 0 0 0 12px rgba(255,59,59,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); }
  }

  .hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(3rem, 11.5vw, 9.5rem);
    line-height: 0.92;
    letter-spacing: -0.025em;
    margin: 0;
  }
  .hero-title .line { display: block; overflow: hidden; }
  .hero-title .line > span {
    display: block;
    transform: translateY(110%);
    animation: rise 0.9s var(--ease-out) forwards;
  }
  .hero-title .line:nth-child(1) > span { animation-delay: 0.05s; }
  .hero-title .line:nth-child(2) > span { animation-delay: 0.16s; }
  .hero-title em { font-style: italic; font-weight: 500; color: var(--red-accent); }
  .hero-title .outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--black);
  }
  @keyframes rise { to { transform: translateY(0); } }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: end;
    margin-top: clamp(28px, 4vw, 44px);
  }
  .hero-intro {
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.7;
    color: var(--ink);
    max-width: 46ch;
  }
  .hero-intro strong { font-weight: 600; }
  .hero-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-left: 2px solid var(--black);
    padding-left: 22px;
  }
  .hero-meta dt {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
  }
  .hero-meta dd { font-weight: 600; font-size: 0.96rem; }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: clamp(30px, 4vw, 46px);
  }

  .doodle {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    animation: float 5s ease-in-out infinite;
    opacity: 0.9;
  }
  .doodle svg { display: block; }
  .doodle-1 { top: 6%; right: 5%; animation-delay: 0s; }
  .doodle-2 { top: 20%; right: 8%; animation-delay: 1.2s; }
  .doodle-3 { bottom: 12%; left: 1%; animation-delay: 0.6s; }
  @keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(6deg); }
  }

  /* ─────────────────────────────  MARQUEE  ───────────────────────────── */
  .marquee {
    background: var(--black);
    color: var(--cream);
    padding: 16px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
    transform: rotate(-1.4deg) scale(1.04);
    margin: clamp(36px,5vw,64px) 0;
  }
  .marquee-track {
    display: inline-flex;
    animation: scroll-x 28s linear infinite;
    will-change: transform;
  }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .marquee-track span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.3rem, 3.2vw, 2.1rem);
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
  }
  .marquee-track span::after {
    content: "✦";
    color: var(--yellow);
    font-style: normal;
    font-size: 0.8em;
    margin-left: 28px;
  }
  @keyframes scroll-x {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* ─────────────────────────────  SECTION  ───────────────────────────── */
  .section { padding: clamp(48px, 7vw, 100px) 0; }
  .section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: clamp(28px, 4vw, 48px);
  }
  .section-kicker {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .section-kicker::before { content: ""; width: 28px; height: 2px; background: var(--red-accent); }
  .section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(2rem, 5.5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin-top: 10px;
  }
  .section-title em { font-style: italic; color: var(--red-accent); }

  /* ─────────────────────────────  WORK GRID  ───────────────────────────── */
  .work-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(14px, 1.8vw, 26px);
  }
  .work-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cream-deep);
    text-decoration: none;
    color: var(--black);
    cursor: pointer;
    border: 2px solid var(--black);
    box-shadow: 6px 6px 0 rgba(17,17,17,0.12);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
    display: block;
  }
  .work-card:hover { transform: translate(-3px,-3px); box-shadow: 10px 10px 0 rgba(17,17,17,0.18); }
  .work-card:focus-visible { outline-offset: 5px; }

  .work-card .thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cream-deep);
  }
  .work-card .thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
  }
  .work-card:hover .thumb img { transform: scale(1.06); }

  .work-card .badge {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--yellow);
    color: var(--black);
    font-family: 'Space Mono', monospace;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1.5px solid var(--black);
  }

  .work-card .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: var(--white);
    border-top: 2px solid var(--black);
  }
  .work-card .meta h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
  }
  .work-card .meta .yr {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    color: var(--muted);
    flex-shrink: 0;
  }
  .work-card .arrow-chip {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid var(--black);
    background: var(--cream);
    display: grid; place-items: center;
    transition: background 0.25s, color 0.25s, transform 0.3s var(--ease-spring);
    flex-shrink: 0;
  }
  .work-card:hover .arrow-chip { background: var(--black); color: var(--cream); transform: rotate(-45deg); }

  .span-7 { grid-column: span 7; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-4 { grid-column: span 4; }
  .span-8 { grid-column: span 8; }
  .span-12 { grid-column: span 12; }
  .ar-wide .thumb { aspect-ratio: 16 / 10; }
  .ar-tall .thumb { aspect-ratio: 3 / 4; }
  .ar-square .thumb { aspect-ratio: 1 / 1; }

  /* ─────────────────────────────  SERVICES  ───────────────────────────── */
  .services {
    background: var(--yellow);
    border-top: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
  }
  .service-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 20px;
    padding: clamp(22px, 3vw, 34px) 0;
    border-bottom: 2px solid rgba(17,17,17,0.18);
    text-align: left;
    background: transparent;
    border-left: none; border-right: none; border-top: none;
    width: 100%;
    cursor: pointer;
    font: inherit;
    color: var(--black);
    transition: padding-left 0.3s var(--ease-out);
  }
  .service-row:last-child { border-bottom: none; }
  .service-row:hover, .service-row:focus-visible { padding-left: 14px; }
  .service-row .num { font-family: 'Space Mono', monospace; font-size: 0.85rem; opacity: 0.6; }
  .service-row h3 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.7rem, 5.5vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.01em;
  }
  .service-row .svc-desc {
    font-size: 0.86rem;
    color: rgba(17,17,17,0.7);
    max-width: 28ch;
    margin-left: auto;
    text-align: right;
  }
  .service-row .svc-arrow {
    font-size: 1.5rem;
    transform: translateX(-10px);
    opacity: 0;
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
  }
  .service-row:hover .svc-arrow, .service-row:focus-visible .svc-arrow { transform: translateX(0); opacity: 1; }

  /* ─────────────────────────────  CTA  ───────────────────────────── */
  .cta {
    background: var(--pink);
    border-top: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
    position: relative;
    overflow: hidden;
  }
  .cta-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    padding: clamp(40px, 6vw, 80px) 0;
  }
  .cta h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: clamp(1.8rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
  }
  .cta h2 em { font-style: italic; border-bottom: 3px solid var(--red-accent); }
  .cta-side {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 3vw, 36px);
    box-shadow: 8px 8px 0 var(--black);
  }
  .cta-side p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.15rem;
    margin-bottom: 6px;
  }
  .cta-side .small {
    font-family: 'DM Sans', sans-serif;
    font-style: normal;
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 22px;
  }

  /* ─────────────────────────────  BUTTONS  ───────────────────────────── */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid var(--black);
    background: var(--black);
    color: var(--cream);
    transition: transform 0.15s var(--ease-spring), box-shadow 0.15s, background 0.2s, color 0.2s;
    box-shadow: 4px 4px 0 rgba(17,17,17,0.25);
  }
  .btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(17,17,17,0.35); }
  .btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 rgba(17,17,17,0.35); }
  .btn .b-arrow { transition: transform 0.25s var(--ease-out); }
  .btn:hover .b-arrow { transform: translateX(4px); }

  .btn-yellow { background: var(--yellow); color: var(--black); box-shadow: 4px 4px 0 var(--black); }
  .btn-yellow:hover { box-shadow: 6px 6px 0 var(--black); }
  .btn-outline { background: transparent; color: var(--black); box-shadow: 4px 4px 0 var(--black); }
  .btn-outline:hover { background: var(--black); color: var(--cream); box-shadow: 6px 6px 0 rgba(17,17,17,0.4); }
  .btn-full { width: 100%; justify-content: center; }

  /* ─────────────────────────────  FOOTER  ───────────────────────────── */
  footer {
    background: var(--black);
    color: var(--cream);
    padding: clamp(48px, 7vw, 90px) 0 36px;
  }
  .footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: clamp(28px, 4vw, 56px);
    padding-bottom: clamp(40px, 5vw, 64px);
    border-bottom: 1.5px solid rgba(249,245,237,0.18);
  }
  .footer-brand .footer-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
  }
  .footer-brand .footer-logo .dot-mark { color: var(--yellow); }
  .footer-brand p { color: rgba(249,245,237,0.7); max-width: 34ch; }
  .footer-col h4 {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--yellow);
    margin-bottom: 18px;
  }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
  .footer-col a {
    color: rgba(249,245,237,0.85);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s, gap 0.2s;
    width: fit-content;
    background: none; border: none; cursor: pointer; font: inherit; padding: 0;
  }
  .footer-col a:hover { color: var(--yellow); gap: 12px; }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 28px;
    font-size: 0.8rem;
    color: rgba(249,245,237,0.55);
    font-family: 'Space Mono', monospace;
  }

  /* ─────────────────────────────  PORTFOLIO PAGE  ───────────────────────────── */
  .page-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 3vw, 40px); }
  .page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(3rem, 12vw, 8rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
  }
  .page-hero h1 em { font-style: italic; color: var(--red-accent); }
  .page-hero .lead {
    margin-top: 18px;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    max-width: 52ch;
    color: var(--ink);
  }

  .filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: clamp(24px, 3vw, 36px) 0 clamp(18px, 2vw, 28px);
  }
  .filter-tab {
    padding: 9px 20px;
    border-radius: 999px;
    border: 1.5px solid var(--black);
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-spring);
    color: var(--black);
  }
  .filter-tab:hover { transform: scale(1.05); }
  .filter-tab[aria-pressed="true"] { background: var(--black); color: var(--cream); }

  .count-note {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 22px;
  }

  /* ─────────────────────────────  ABOUT PAGE  ───────────────────────────── */
  .about-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 40px); }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
  }
  .about-hero h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(2.6rem, 9vw, 6rem);
    line-height: 0.96;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
  }
  .about-hero h1 em { font-style: italic; color: var(--red-accent); }
  .about-bio p {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.8;
    color: var(--ink);
    margin-bottom: 18px;
    max-width: 52ch;
  }
  .about-portrait {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    background: linear-gradient(150deg, var(--pink), var(--yellow));
    border: 2px solid var(--black);
    box-shadow: 10px 10px 0 var(--black);
    display: grid;
    place-items: center;
    overflow: hidden;
  }
  .about-portrait .mono {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(5rem, 16vw, 11rem);
    color: var(--black);
    opacity: 0.92;
    font-style: italic;
  }
  .about-portrait .tag {
    position: absolute;
    bottom: 16px; left: 16px; right: 16px;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 14px;
    padding: 12px 16px;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    justify-content: space-between;
  }

  .cv { margin-top: clamp(8px, 1vw, 16px); }
  .cv-block { margin-bottom: clamp(36px, 5vw, 56px); }
  .cv-list { list-style: none; }
  .cv-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    padding: 20px 0;
    border-top: 1.5px solid rgba(17,17,17,0.14);
    align-items: baseline;
  }
  .cv-item .when { font-family: 'Space Mono', monospace; font-size: 0.82rem; color: var(--muted); }
  .cv-item .what h4 { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.25rem; }
  .cv-item .what .org { font-weight: 600; color: var(--ink); }
  .cv-item .what p { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }

  .skills-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
  .skill-chip {
    border: 1.5px solid var(--black);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--white);
    transition: background 0.2s, transform 0.2s var(--ease-spring);
  }
  .skill-chip:hover { background: var(--yellow); transform: translateY(-2px) rotate(-1.5deg); }

  /* ─────────────────────────────  PROJECT DETAIL  ───────────────────────────── */
  .proj-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    padding: clamp(20px,3vw,32px) 0 0;
    background: none; border: none; font-family: inherit;
    transition: gap 0.2s;
  }
  .proj-back:hover { gap: 13px; }
  .proj-back .ba { transition: transform 0.2s; }
  .proj-back:hover .ba { transform: translateX(-4px); }

  .proj-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: end;
    padding: clamp(18px,3vw,32px) 0 clamp(18px,3vw,28px);
    border-bottom: 2px solid var(--black);
  }
  .proj-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(2.2rem, 7vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.025em;
  }
  .proj-tag {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    border: 2px solid var(--black);
    font-family: 'Space Mono', monospace;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--yellow);
    white-space: nowrap;
  }

  .proj-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 22px;
    padding: clamp(24px,3vw,34px) 0;
    border-bottom: 2px solid rgba(17,17,17,0.12);
  }
  .proj-info .lbl {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .proj-info .val { font-weight: 600; font-size: 1rem; }

  .proj-desc {
    padding: clamp(30px,4vw,48px) 0;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.75;
    color: var(--ink);
    max-width: 60ch;
  }

  .proj-cover {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--black);
    box-shadow: 12px 12px 0 rgba(17,17,17,0.14);
    margin: clamp(8px,2vw,20px) 0;
    background: var(--cream-deep);
  }
  .proj-cover img { width: 100%; height: auto; display: block; }

  .proj-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(14px,2vw,22px);
    padding: clamp(20px,3vw,32px) 0;
  }
  .proj-gallery .gitem {
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--black);
    aspect-ratio: 4/3;
    background: var(--cream-deep);
    cursor: pointer;
  }
  .proj-gallery .gitem.span2 { grid-column: span 2; aspect-ratio: 16/8; }
  .proj-gallery .gitem img { width:100%; height:100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
  .proj-gallery .gitem:hover img { transform: scale(1.05); }

  .proj-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: clamp(36px,4vw,56px) 0;
    border-top: 2px solid var(--black);
    margin-top: clamp(20px,3vw,32px);
  }
  .proj-nav-btn { background:none; border:none; cursor:pointer; font:inherit; text-align:left; display:flex; flex-direction:column; gap:4px; transition: transform 0.2s; color: var(--ink); }
  .proj-nav-btn:hover { transform: translateY(-2px); }
  .proj-nav-btn.next { text-align: right; }
  .proj-nav-btn .dir { font-family:'Space Mono',monospace; font-size:0.7rem; text-transform:uppercase; letter-spacing:0.1em; color: var(--muted); }
  .proj-nav-btn .nm { font-family:'Playfair Display',serif; font-style:italic; font-size: clamp(1rem,2vw,1.4rem); }
  .proj-nav-center {
    width:52px; height:52px; border-radius:50%;
    border: 2px solid var(--black); background: transparent;
    cursor:pointer; display:grid; place-items:center;
    transition: background 0.2s, color 0.2s, transform 0.3s var(--ease-spring);
    flex-shrink: 0;
  }
  .proj-nav-center:hover { background: var(--black); color: var(--cream); transform: rotate(90deg); }

  /* ─────────────────────────────  MODAL  ───────────────────────────── */
  .modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(17,17,17,0.62);
    z-index: 250;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
  }
  .modal-overlay.open { display: flex; }
  .modal {
    background: var(--cream);
    border: 2px solid var(--black);
    border-radius: var(--radius-lg);
    padding: clamp(26px, 4vw, 40px);
    width: 100%;
    max-width: 460px;
    position: relative;
    box-shadow: 14px 14px 0 var(--black);
    animation: modalIn 0.35s var(--ease-spring);
    max-height: 92dvh;
    overflow-y: auto;
  }
  @keyframes modalIn {
    from { transform: scale(0.86) translateY(16px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
  }
  .modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 2px solid var(--black);
    background: var(--cream);
    cursor: pointer;
    display: grid; place-items: center;
    transition: background 0.2s, color 0.2s, transform 0.3s var(--ease-spring);
  }
  .modal-close:hover { background: var(--black); color: var(--cream); transform: rotate(90deg); }
  .modal h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 6px;
  }
  .modal .sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
  .form-group { margin-bottom: 16px; }
  .form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink);
  }
  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--black);
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    background: var(--white);
    outline: none;
    transition: box-shadow 0.2s;
    resize: vertical;
    color: var(--ink);
  }
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus { box-shadow: 4px 4px 0 var(--yellow); }
  .form-note { font-size: 0.78rem; color: var(--muted); margin-top: 14px; text-align: center; }

  /* ─────────────────────────────  LIGHTBOX  ───────────────────────────── */
  .lightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(17,17,17,0.94);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .lightbox.open { display: flex; }
  .lightbox img {
    max-width: min(94vw, 1100px);
    max-height: 88dvh;
    border-radius: 14px;
    border: 2px solid var(--cream);
    animation: lbIn 0.3s var(--ease-spring);
  }
  @keyframes lbIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  .lightbox-close {
    position: absolute; top: 20px; right: 20px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(249,245,237,0.16);
    border: none; color: var(--cream);
    cursor: pointer; display: grid; place-items: center;
    transition: background 0.2s, transform 0.3s var(--ease-spring);
  }
  .lightbox-close:hover { background: rgba(249,245,237,0.3); transform: rotate(90deg); }

  /* ─────────────────────────────  REVEAL  ───────────────────────────── */
  .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 0.08s; }
  .reveal-delay-2 { transition-delay: 0.16s; }
  .reveal-delay-3 { transition-delay: 0.24s; }

  /* ─────────────────────────────  RESPONSIVE  ───────────────────────────── */
  @media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; align-items: start; }
    .cta-inner { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .span-7, .span-5, .span-6, .span-8 { grid-column: span 6; }
    .work-grid { grid-template-columns: repeat(6, 1fr); }
  }
  @media (max-width: 640px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .work-grid { grid-template-columns: 1fr; gap: 18px; }
    .span-7, .span-5, .span-6, .span-4, .span-8, .span-12 { grid-column: span 1; }
    .cv-item { grid-template-columns: 1fr; gap: 6px; }
    .service-row { grid-template-columns: auto 1fr auto; }
    .service-row .svc-desc { display: none; }
    .proj-gallery { grid-template-columns: 1fr; }
    .proj-gallery .gitem.span2 { grid-column: span 1; aspect-ratio: 4/3; }
    .footer-top { grid-template-columns: 1fr; }
    .marquee { transform: rotate(-1.4deg) scale(1.08); }
  }

  /* ─────────────────────────────  REDUCED MOTION  ───────────────────────────── */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }
    .hero-title .line > span { transform: none; }
    .marquee-track { animation: none; }
    .reveal { opacity: 1; transform: none; }
  }
