    /* ——————————————————————————————————————————————
       CSS VARIABLES — change only these to retheme
    —————————————————————————————————————————————— */
    :root {
      --bg:         #0D0D0D;
      --text:       #BCC3CB;
      --text-dim:   rgba(188,195,203,0.55);
      --text-muted: rgba(188,195,203,0.42);
      --text-faint: rgba(188,195,203,0.28);
      --accent:     #C0392B;
      --accent2:    #E04030;
      --border:     #1a1a1a;
      --border-s:   #2e2e2e;
      --surf:       rgba(188,195,203,0.05);
      --surf-b:     rgba(188,195,203,0.09);
      --icon:       #6a6f74;
      --noise:      0;
      --text-dim-2: rgba(188,195,203,0.35);
      --light:      #C8CDD2;
      --light-text: #1a1a1a;
      --light-dim:  rgba(26,26,26,0.55);
    }

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

    body {
      background: var(--bg);
      font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
      color: var(--text);
      transition: background 0.25s, color 0.25s;
      isolation: isolate;
    }

    /* Noise overlay — opacity driven by --noise variable */
    body::after {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: -1;
      opacity: var(--noise);
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
      mix-blend-mode: screen;
    }

    /* ——————————————————————————————————————————————
       LIGHT BLOCK — fully isolated, never changes
    —————————————————————————————————————————————— */
    .light-block,
    .light-block * {
      --bg:         #C8CDD2 !important;
      --text:       #1a1a1a !important;
      --text-dim:   rgba(26,26,26,0.6) !important;
      --text-muted: rgba(26,26,26,0.42) !important;
      --text-faint: rgba(26,26,26,0.28) !important;
      --accent:     #C0392B !important;
      --accent2:    #E04030 !important;
      --border:     #b5babe !important;
      --border-s:   #9fa5aa !important;
      --surf:       rgba(0,0,0,0.04) !important;
      --surf-b:     rgba(0,0,0,0.07) !important;
      --icon:       #9fa5aa !important;
    }

    /* ——————————————————————————————————————————————
       GLOBAL HELPERS
    —————————————————————————————————————————————— */
    .wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(24px, 4vw, 56px); }
    .divider { border-top: 0.5px solid var(--border); }
    .section-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
    .red { color: var(--accent2); }
    .dyn-accent { color: var(--accent); }

    /* ——————————————————————————————————————————————
       SETTINGS PANEL
    —————————————————————————————————————————————— */
    #settings-wrap {
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.42s cubic-bezier(0.4,0,0.2,1);
    }
    #settings-wrap.open { max-height: 340px; }

    #np-wrap {
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.42s cubic-bezier(0.4,0,0.2,1);
    }
    #np-wrap.open { max-height: 360px; }

    #np-panel {
      padding: 0 56px 50px;
      display: flex;
      justify-content: center;
      transform: translateY(-100%);
      transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
    }
    #np-wrap.open #np-panel { transform: translateY(0); }
    #np-panel .np-widget { transition: transform 0.18s ease; -webkit-tap-highlight-color: transparent; outline: none; }
    #np-panel .np-widget:active { transform: scale(0.97); }

    #settings-panel {
      padding: 0 56px 50px;
      max-width: 640px;
      width: 100%;
      margin: 0 auto;
      transform: translateY(-100%);
      transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 24px;
    }
    #settings-wrap.open #settings-panel { transform: translateY(0); }
    .s-top { display: flex; gap: 48px; align-items: flex-start; width: 100%; }

    .s-col  { display: flex; flex-direction: column; gap: 24px; width: 220px; flex-shrink: 0; }
    .s-row  { display: flex; flex-direction: column; gap: 10px; }
    .s-head { display: flex; justify-content: space-between; align-items: baseline; }
    .s-name { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); opacity: 0.45; }
    .s-val  { font-family: 'SF Mono','Fira Mono',monospace; font-size: 11px; color: var(--text); opacity: 0.35; min-width: 28px; text-align: right; }

    .s-track-wrap  { position: relative; height: 24px; display: flex; align-items: center; }
    .s-track-bg    { position: absolute; left: 0; right: 0; height: 3px; border-radius: 1.5px; pointer-events: none; }
    .s-track-thumb {
      position: absolute; width: 14px; height: 14px; border-radius: 50%;
      transform: translateX(-50%) scale(1); pointer-events: none;
      background: var(--accent); box-shadow: 0 0 0 3px rgba(0,0,0,0.45);
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .s-track-wrap:hover    .s-track-thumb { transform: translateX(-50%) scale(1.35); box-shadow: 0 0 0 4px rgba(0,0,0,0.35); }
    .s-track-wrap.dragging .s-track-thumb { transform: translateX(-50%) scale(1.55); box-shadow: 0 0 0 5px rgba(0,0,0,0.25); }
    .s-track-wrap input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; z-index: 2; }

    .s-picker-col   { width: 220px; flex: 0 0 220px; display: flex; flex-direction: column; gap: 8px; }
    .s-picker-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); opacity: 0.45; }
    #hue-picker  { position: relative; width: 100%; height: 80px; border-radius: 6px; cursor: crosshair; overflow: hidden; }
    #hue-canvas  { display: block; width: 100%; height: 100%; }
    #hue-cursor  { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,0.5); transform: translate(-50%,-50%); pointer-events: none; }
    #accent-hex  { font-size: 11px; letter-spacing: 0.12em; font-family: 'SF Mono','Fira Mono',monospace; color: var(--text); opacity: 0.25; margin-top: 2px; }

    .s-footer { display: flex; gap: 10px; justify-content: center; }
    .s-btn {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--surf); border: 0.5px solid var(--surf-b);
      border-radius: 10px; padding: 9px 16px;
      font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--text); opacity: 0.7; cursor: pointer;
      font-family: inherit; backdrop-filter: blur(8px);
      transition: opacity 0.2s;
    }
    .s-btn:hover { opacity: 1; box-shadow: 0 0 0 1px var(--accent); }
    .s-btn.active { opacity: 1; box-shadow: 0 0 0 1px var(--accent); color: var(--accent); }

    /* ── INVERT mode ── */
    html.is-inverted { filter: invert(1); }

    /* ── OUTLINE mode ── */
    body.is-outline {
      --bg: #BCC3CB;
      --text: var(--accent);
      --text-dim: var(--accent);
      --text-muted: var(--accent);
      --text-faint: var(--accent);
      --border: var(--accent);
      --border-s: var(--accent);
      --surf: transparent;
      --surf-b: var(--accent);
      --icon: var(--accent);
    }
    body.is-outline * {
      background-color: transparent !important;
      background-image: none !important;
      box-shadow: none !important;
      text-shadow: none !important;
      color: transparent !important;
      -webkit-text-stroke: 0.5px var(--accent) !important;
    }
    body.is-outline #page-main,
    body.is-outline #slide-root,
    body.is-outline #portfolio-v-root,
    body.is-outline #page-cinematic,
    body.is-outline #gal-scroll { background: #BCC3CB !important; }
    body.is-outline.at-portfolio,
    body.is-outline .light-block,
    body.is-outline .light-block * {
      --accent: #0D0D0D !important;
      --accent2: #1a1a1a !important;
      --border: #0D0D0D !important;
      --border-s: #0D0D0D !important;
      --surf-b: #0D0D0D !important;
      --icon: #0D0D0D !important;
    }
    body.is-outline .collab-logo {
      position: relative;
      background-color: transparent !important;
      filter: none !important;
      -webkit-mask-image: none !important;
      mask-image: none !important;
    }
    body.is-outline .collab-logo::before,
    body.is-outline .collab-logo::after {
      content: '';
      position: absolute;
      pointer-events: none;
      background: var(--accent) !important;
      -webkit-mask-image: inherit;
      mask-image: inherit;
      -webkit-mask-size: contain;
      mask-size: contain;
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      -webkit-mask-position: center;
      mask-position: center;
    }
    body.is-outline .collab-logo::before {
      inset: -0.5px;
      -webkit-mask-image: var(--logo-mask);
      mask-image: var(--logo-mask);
    }
    body.is-outline .collab-logo::after {
      inset: 0.5px;
      background: #BCC3CB !important;
      -webkit-mask-image: var(--logo-mask);
      mask-image: var(--logo-mask);
    }
    body.is-outline img,
    body.is-outline canvas:not(#hue-canvas):not(#timeline-canvas) { opacity: 0 !important; }
    body.is-outline #about-photo-wrap,
    body.is-outline .collab-left,
    body.is-outline .d-frame,
    body.is-outline #gal-lb-img { outline: 1px solid var(--accent); }
    body.is-outline #timeline-canvas { opacity: 1 !important; }
    body.is-outline .s-track-bg {
      height: 0 !important;
      border-top: 1px solid var(--accent);
      background: transparent !important;
    }
    body.is-outline .s-track-thumb {
      width: 14px;
      height: 14px;
      background: #BCC3CB !important;
      border: 1px solid var(--accent);
      box-shadow: none !important;
    }
    body.is-outline #geo-link svg path[fill="#C0392B"] { fill: var(--accent) !important; }
    body.is-outline .pull-slideshow,
    body.is-outline .d-frame,
    body.is-outline .d-thumbs .t,
    body.is-outline #gal-masonry img,
    body.is-outline #gal-lb-img,
    body.is-outline .pb-cell .cv,
    body.is-outline .film-frame {
      outline: 1px solid var(--accent) !important;
      outline-offset: -1px;
    }
    body.is-outline .d-frame,
    body.is-outline .film-frame,
    body.is-outline .pb-cell .cv {
      background-image: none !important;
      background-color: transparent !important;
    }
    body.is-outline .d-thumbs .t.active {
      outline-width: 2px !important;
    }
    body.is-outline .d-thumbs .t,
    body.is-outline #gal-masonry img,
    body.is-outline #gal-lb-img,
    body.is-outline .pb-cell .cv img,
    body.is-outline .pull-slideshow img {
      opacity: 1 !important;
      object-fit: none !important;
      object-position: 9999px 9999px !important;
    }
    body.is-outline .film-track {
      border-left: 1px solid var(--accent) !important;
    }
    body.is-outline #menu-btn-hero div span { background: var(--accent) !important; }
    body.is-outline .menu-item.menu-active { opacity: 1 !important; color: transparent !important; }
    body.is-outline #hue-canvas { opacity: 0 !important; }
    body.is-outline #hue-cursor { opacity: 0 !important; }
    body.is-outline #hue-picker { border: 0.5px solid var(--accent); }
    body.is-outline .pull-arc stop {
      stop-color: var(--accent) !important;
      stop-opacity: 1 !important;
    }
    body.is-outline .pull-glow-line,
    body.is-outline .pull-a1,
    body.is-outline .pull-a2 { stroke: var(--accent) !important; }
    body.is-outline .pull-nav,
    body.is-outline .pull-nav:hover,
    body.is-outline .pull-toggle-label,
    body.is-outline .portfolio-hero-cta,
    body.is-outline .portfolio-arr-circ {
      color: var(--accent) !important;
      background: transparent !important;
      border-color: var(--accent) !important;
    }
    body.is-outline .portfolio-arr-circ {
      border: 1px solid var(--accent) !important;
    }
    body.is-outline .pb-see-all::before,
    body.is-outline .pb-see-all::after,
    body.is-outline .portfolio-nav-rail::after {
      background: var(--accent) !important;
    }

    .btn-pill { background: var(--surf); border: 0.5px solid var(--surf-b); border-radius: 10px; padding: 11px 18px; backdrop-filter: blur(8px); cursor: pointer; display: flex; align-items: center; justify-content: center; }
    .btn-pill:hover { box-shadow: 0 0 0 1px var(--accent); }

    #settings-btn { transition: opacity 0.2s !important; }
    #settings-btn:hover,
    #settings-btn.active { box-shadow: 0 0 0 1px var(--accent) !important; }

    /* ——————————————————————————————————————————————
       SITE COMPONENTS
    —————————————————————————————————————————————— */
    .tag { display: inline-block; border: 0.5px solid var(--border-s); border-radius: 20px; padding: 6px 16px; font-size: 12px; color: var(--text); }

    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50%       { opacity: 0.4; }
    }

    .np-source { display: inline; }
    .np-listen { display: none; }
    .np-widget:not(.np-inactive):hover .np-source { display: none; }
    .np-widget:not(.np-inactive):hover .np-listen { display: inline-flex !important; }

    /* inactive = API unavailable — text-dim, no pulse */
    .np-widget.np-inactive    .np-dot { background: var(--text-dim); animation: none; }
    /* now playing — green, pulse */
    .np-widget.np-playing     .np-dot { background: #9ae09a;         animation: pulse 2s ease-in-out infinite; }
    /* last played — red, no pulse */
    .np-widget.np-not-playing .np-dot { background: var(--accent);   animation: none; }

    .light-divider { border-bottom: 0.5px solid #b5babe; }

    .app-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 0.5px solid #b5babe; }
    .app-row:last-child { border-bottom: none; }
    .app-row .ic { width: 32px; height: 32px; background: var(--border-s); border-radius: 8px; flex-shrink: 0; }
    .app-row span { font-size: 13px; color: var(--text-muted); }

    .portfolio-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; cursor: pointer; opacity: 0.65; }
    .portfolio-cta:hover { opacity: 1; }
    .portfolio-cta .cta-title { font-size: 16px; color: var(--text); letter-spacing: 0.22em; text-transform: uppercase; }
    .portfolio-cta .cta-sub   { font-size: 11px; color: var(--text); letter-spacing: 0.08em; opacity: 0.5; }

    .projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
    .project-card  { display: flex; flex-direction: column; }
    .project-thumb { width: 100%; aspect-ratio: 1 / 1; background: #1a1a1a; border-radius: 10px; margin-bottom: 14px; }
    .project-name  { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
    .project-desc  { font-size: 11px; color: var(--text-muted); line-height: 1.55; margin-bottom: 8px; }
    .project-link  { font-size: 11px; color: var(--text); opacity: 0.3; text-decoration: none; transition: opacity 0.18s; }
    .project-link:hover { opacity: 0.7; }

    .btn-more-projects {
      display: inline-block; border: 0.5px solid var(--accent2); color: var(--accent2);
      font-size: 13px; padding: 32px 40px; text-decoration: none; letter-spacing: 0.08em;
      border-radius: 6px; text-transform: uppercase; text-align: center; line-height: 1.8; flex-shrink: 0;
      transition: border-color 0.18s, color 0.18s, background 0.18s;
    }
    .btn-more-projects:hover { background: var(--accent2); color: var(--bg); }

    .btn-outline-dark { display: block; border: 0.5px solid var(--border); color: var(--text-muted); font-size: 13px; padding: 14px 32px; text-decoration: none; letter-spacing: 0.04em; border-radius: 6px; text-align: center; white-space: nowrap; transition: border-color 0.18s, color 0.18s; }
    .btn-outline-dark:hover { border-color: var(--text); color: var(--text); }

    .btn-primary-dark { display: block; background: var(--text); color: var(--bg); font-size: 13px; padding: 14px 32px; text-decoration: none; letter-spacing: 0.04em; border-radius: 6px; text-align: center; white-space: nowrap; transition: background 0.18s; }
    .btn-primary-dark:hover { background: #d6dde5; }

    .btn-outline-light { border: 0.5px solid #1a1a1a; padding: 14px 28px; font-size: 13px; color: #1a1a1a; cursor: pointer; white-space: nowrap; letter-spacing: 0.04em; border-radius: 6px; transition: background 0.18s, color 0.18s; background: none; }
    .btn-outline-light:hover { background: #1a1a1a; color: #C8CDD2; }

    .link-email-light { font-size: 13px; color: var(--accent2); text-decoration: none; margin-top: 12px; display: inline-block; transition: opacity 0.18s; }
    .link-email-light:hover { opacity: 0.7; }

    .about-accent { font-family: Georgia, serif; font-style: italic; font-size: 26px; color: var(--accent); letter-spacing: 0.06em; line-height: 0; vertical-align: baseline; position: relative; top: 4px; }

    .about-line { width: fit-content; white-space: nowrap; line-height: 1.5; background: linear-gradient(to left, var(--line-shadow, rgba(0,0,0,0.5)), transparent 20px), var(--line-bg, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 10px; padding: 6px 14px; overflow: visible; -webkit-mask-image: linear-gradient(to right, black calc(100% - 20px), transparent 100%); mask-image: linear-gradient(to right, black calc(100% - 20px), transparent 100%); }

    @media (min-width: 1025px) {
      #about-lines {
        width: 600px !important;
      }
    }

    /* —— Menu overlay —— */
    #menu-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(13,13,13,0.70); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
    body.is-chrome #menu-overlay { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(13,13,13,0.99); }
    #menu-overlay.is-open { opacity: 1; pointer-events: all; }
    .menu-item { font-family: 'Big Shoulders Display', sans-serif; font-size: 84px; font-weight: 900; color: var(--text); text-decoration: none; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; transition: opacity 0.15s, color 0.2s; opacity: 0.45; }
    .menu-item:hover { opacity: 1 !important; }
    .menu-item.menu-active { color: var(--accent) !important; opacity: 1; }

    #menu-btn-hero.on-light { color: #1a1a1a !important; background: rgba(0,0,0,0.08) !important; border-color: rgba(0,0,0,0.18) !important; }
    #menu-btn-hero.on-light #menu-denbych { color: #1a1a1a !important; }
    #menu-btn-hero.on-light div span { background: #1a1a1a !important; }
    .menu-icon { height:50px; width:62px; border-radius:12px; background:rgba(188,195,203,0.05); border:0.5px solid rgba(188,195,203,0.15); display:flex; align-items:center; justify-content:center; padding:11px 18px; cursor:pointer; transition: border-color 0.2s; text-decoration:none; }
    .menu-icon:hover { border-color: var(--accent2); }
    .menu-icon .ic-mask { background-color: var(--icon); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; transition: background-color 0.2s; width:24px; height:24px; flex-shrink:0; }
    .menu-icon:hover .ic-mask { background-color: var(--accent2); }
    .menu-icon-label { display: none; }

    /* ——————————————————————————————————————————————
       TIMELINE WIDGET
    —————————————————————————————————————————————— */
    .timeline-wrap { display: flex; align-items: stretch; width: 100%; min-height: 460px; }
    .timeline-curve-side { flex: 0 0 55%; position: relative; min-height: 460px; overflow: visible; }
    .tl-html-label { position: absolute; font-family: Georgia, serif; font-style: italic; font-weight: 700; font-size: 16px; color: var(--accent); opacity: 0; pointer-events: none; white-space: nowrap; }
    .timeline-canvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
    .timeline-text-side { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 48px 56px; position: relative; }
    .timeline-hint { font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif; font-size: 13px; color: var(--text); opacity: 0.3; letter-spacing: 0.02em; line-height: 1.9; position: absolute; transition: opacity 0.7s; pointer-events: none; }
    @keyframes tl-fade-in { from { opacity: 0; } to { opacity: 1; } }
    .timeline-year { font-family: Georgia, serif; font-style: italic; font-weight: 700; font-size: 32px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 18px; opacity: 0; }
    .timeline-desc { font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif; font-size: 15px; color: var(--text); line-height: 2.2; opacity: 0; letter-spacing: 0.02em; }
    .timeline-year.tl-visible { animation: tl-fade-in 0.35s ease forwards; }
    .timeline-desc.tl-visible { animation: tl-fade-in 0.35s ease forwards; }
    .timeline-reset { position: absolute; bottom: 48px; left: 56px; display: flex; align-items: center; gap: 8px; cursor: pointer; opacity: 0; pointer-events: none; background: none; border: none; padding: 0; color: var(--text); }
    .timeline-reset:hover { color: var(--accent2); }
    .timeline-reset span { font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: inherit; }
    .timeline-reset svg { stroke: currentColor; }
    .timeline-reset.visible { opacity: 0.4; pointer-events: all; }
    .timeline-reset.visible:hover { opacity: 1; }

    /* —— Divider section ————————————————————————————————————————— */
    .divider-section {
      position: relative; overflow: hidden; height: 500px;
      -webkit-mask-image: linear-gradient(to right, transparent 0%, black 100px, black calc(100% - 100px), transparent 100%);
      mask-image: linear-gradient(to right, transparent 0%, black 100px, black calc(100% - 100px), transparent 100%);
    }
    .divider-mline {
      position: absolute; white-space: nowrap;
      font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
      font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--text); pointer-events: none;
    }
    .divider-hero {
      position: absolute; inset: 0; z-index: 10;
      display: flex; flex-direction: column; justify-content: center;
      padding: 0 clamp(20px, 18.75vw, 300px); pointer-events: none;
      -webkit-mask-image: none; mask-image: none;
    }
    /* до ~1150px оба синхронны (12vw); выше — dh-1 замирает, dh-2 (10) уходит правее */
    .dh-1 { font-family: Georgia, serif; font-style: italic; font-weight: 400; font-size: 15px; color: var(--text); opacity: 0.22; letter-spacing: 0.12em; text-transform: uppercase; align-self: flex-start; margin-bottom: 20px; margin-left: clamp(0px, 12vw, 140px); }
    .dh-2 { font-family: 'Big Shoulders Display', sans-serif; font-weight: 400; font-size: clamp(80px, 14vw, 200px); color: var(--text); opacity: 0.85; letter-spacing: 0.18em; line-height: 0.82; align-self: flex-start; margin-bottom: 12px; margin-left: clamp(0px, 12vw, 400px); }
    .dh-3 { font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif; font-weight: 400; font-size: 32px; color: var(--text); opacity: 0.45; letter-spacing: 0.02em; line-height: 1; align-self: center; margin-bottom: 4px; margin-right: clamp(0px, 3.125vw, 50px); }
    .dh-3 em { font-family: Georgia, serif; font-style: italic; font-weight: 400; color: var(--accent); opacity: 1; font-size: 36px; letter-spacing: 0.04em; }
    .dh-4 { font-family: 'Big Shoulders Display', sans-serif; font-weight: 400; font-size: clamp(32px, 5vw, 72px); color: var(--text); opacity: 0.6; letter-spacing: 0.22em; line-height: 0.95; align-self: flex-end; text-transform: uppercase; margin-right: clamp(-50px, -3.125vw, 0px); }

    @media (max-width: 767px) {
      .dh-1, .dh-2, .dh-3, .dh-4 { align-self: center; margin-left: 0; margin-right: 0; }
    }


    /* —— MY STACK ————————————————————————————————————————————————— */
    .stk-board { margin-bottom: 48px; }
    .stk-board-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      padding: 0 0 12px;
      border-bottom: 1px solid var(--border);
      margin-bottom: 4px;
    }
    .stk-board-label {
      display: flex;
      align-items: baseline;
      gap: 12px;
    }
    .stk-board-dot {
      width: 8px;
      height: 8px;
      background: var(--accent);
      border-radius: 50%;
      flex-shrink: 0;
    }
    .stk-board-name {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text);
      font-weight: 500;
    }
    .stk-board-count {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      letter-spacing: 0.1em;
      color: var(--text-muted);
    }
    .stk-col-heads {
      display: grid;
      grid-template-columns: 0.4fr 0.9fr 1.4fr 0.5fr;
      padding: 8px 0;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      letter-spacing: 0.15em;
      color: var(--text-muted);
      text-transform: uppercase;
    }
    .stk-col-heads div:last-child { text-align: right; }
    .stk-row {
      display: grid;
      grid-template-columns: 0.4fr 0.9fr 1.4fr 0.5fr;
      padding: 14px 0;
      border-top: 1px solid var(--border);
      align-items: center;
      font-family: 'JetBrains Mono', monospace;
    }
    .stk-code { font-size: 12px; letter-spacing: 0.12em; color: var(--text-dim); font-weight: 500; }
    .stk-name { font-size: 15px; color: var(--text); font-weight: 500; }
    .stk-role { font-size: 13px; color: var(--text-dim); }
    .stk-usage { text-align: right; font-size: 11px; letter-spacing: 0.12em; font-weight: 500; }
    .stk-usage.u-new     { color: #9ae09a; }
    .stk-usage.u-daily    { color: var(--accent); }
    .stk-usage.u-periodic { color: var(--text-dim); }
    .stk-usage.u-rare     { color: rgba(188,195,203,0.25); }
    .stk-usage.u-archive     { color: rgba(188,195,203,0.10); }
    .stk-show-wrap { border-top: 1px solid var(--border); padding: 16px 0; margin-top: 4px; }
    .stk-show-link {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-dim);
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
      transition: color 0.2s;
      user-select: none;
    }
    .stk-show-link:hover { color: var(--text); }
    .stk-show-link .stk-count { color: var(--accent); }
    .stk-show-link .stk-arrow { display: inline-block; transition: transform 0.3s; margin-left: 4px; }
    .stk-show-link.open .stk-arrow { transform: rotate(180deg); }
    .stk-rows-extra { overflow: hidden; max-height: 0; transition: max-height 0.4s ease; }

    /* —— Scroll-sticky menu pill ——————————————————————————————————— */
    #menu-btn-hero {
      position: fixed;
      top: 61px;
      right: max(56px, calc((100vw - 1280px) / 2 + 56px));
      z-index: 50;
      flex-direction: row !important;
      justify-content: flex-end;
      align-items: center;
      gap: 14px;
      overflow: hidden;
      max-width: 54px;
      transition: max-width 0.4s cubic-bezier(0.4,0,0.2,1) 0.2s;
    }
    body.page-scrolled #menu-btn-hero {
      max-width: 200px;
      transition: max-width 0.4s cubic-bezier(0.4,0,0.2,1) 0s;
    }

    #menu-denbych {
      opacity: 0;
      white-space: nowrap;
      flex-shrink: 0;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      transition: opacity 0.25s ease 0s;
      color: var(--text);
    }
    body.page-scrolled #menu-denbych {
      opacity: 1;
      transition: opacity 0.25s ease 0.3s;
    }
    #menu-btn-hero:hover {
      max-width: 200px;
      transition: max-width 0.4s cubic-bezier(0.4,0,0.2,1) 0s;
    }
    #menu-btn-hero:hover #menu-denbych {
      opacity: 1;
      transition: opacity 0.25s ease 0.3s;
      color: var(--accent);
    }

    /* —— Menu close pill ———————————————————————————————————————————— */
    #menu-btn-close {
      flex-direction: row !important;
      justify-content: center;
      align-items: center;
    }
    #menu-close-label { display: none; }

  /* —— Film strip + Portfolio reel ——————————————————————————————— */
.film-box {
  display: flex;
  align-items: stretch;
  height: 190px;
  border-radius: 4px;
  overflow: visible;
  cursor: pointer;
  background: transparent;
}

.film-sep {
  flex: 0 0 10px;
  background: #000;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.film-strip {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: transparent;
  z-index: 1;

  --film-frame-width: 160px;
  --film-frame-gap: 12px;
  --film-visible-set: 16;
  --film-loop-distance: calc((var(--film-frame-width) + var(--film-frame-gap)) * var(--film-visible-set));
}

.film-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px 0;
  background: #000;
  border: 1px solid var(--border);
  border-left: none;
  will-change: transform;
  transform: translateX(420px);
  z-index: 1;
}

.film-track.is-intro {
  animation: film-intro 3.6s linear forwards;
}

.film-track.is-loop {
  animation: film-roll 40s linear infinite;
}

.film-perf {
  height: 14px;
  flex-shrink: 0;
  background-image: linear-gradient(
    to right,
    transparent 0,
    transparent 6px,
    #161616 6px,
    #161616 18px,
    transparent 18px
  );
  background-size: 24px 100%;
  background-repeat: repeat-x;
}

#film-frames {
  display: flex;
  width: max-content;
  flex: 0 0 auto;
}

.film-frame {
  flex: 0 0 var(--film-frame-width);
  width: var(--film-frame-width);
  height: 162px;
  margin: 0 6px;
  border-radius: 2px;
  background-color: #111;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.film-reel {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: none;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px 0 14px;
  gap: 12px;
  overflow: visible;
}


.film-reel:hover {
  background: #141414;
}

.film-reel-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 100%;
  justify-content: center;
}

.film-reel-title {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
}

.film-reel-sub {
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
  text-align: center;
}

.film-reel-arrow {
  font-size: 16px;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  align-self: center;
}

@keyframes film-intro {
  from {
    transform: translateX(420px);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes film-roll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--film-loop-distance)));
  }
}
    /* ——— Nerd Side (light block) ——————————————————————————————— */
    .nerd-site {
      padding: 44px 48px;
      color: #1a1a1a;
      max-width: 1280px;
      margin: 0 auto;
      font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    }
    .wt { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px dashed #9fa5aa; }
    .wt h3 { font-family: Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(28px, 4vw, 54px); color: #1a1a1a; line-height: 1.05; }
    .wt h3 em { color: var(--accent); font-style: italic; }
    .wt .email { font-family: 'JetBrains Mono', monospace; font-size: 20px; color: var(--accent); letter-spacing: 0.02em; text-decoration: none; }
    .nerd-title { font-family: 'Press Start 2P', monospace; font-size: 26px; color: #1a1a1a; margin-bottom: 10px; letter-spacing: 0.01em; }
    .nerd-sub { font-size: 14px; color: #6f767d; line-height: 1.6; margin-bottom: 22px; max-width: 640px; }
    .nerd-board {
      display: grid;
      grid-template-columns: 1.35fr 1fr;
      gap: 12px;
      background: #0D0D0D;
      border-radius: 10px;
      padding: 20px;
      color: #d4d4d4;
      border: 1px solid #2a2a2a;
    }
    .nerd-card {
      background: #161616;
      border: 1px solid #2a2a2a;
      border-radius: 6px;
      padding: 16px 18px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      line-height: 1.65;
    }
    .nerd-card .label { font-size: 9px; color: var(--text-muted); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
    .nerd-card h5 { font-family: 'Press Start 2P', monospace; font-size: 13px; color: #d4d4d4; margin-bottom: 12px; line-height: 1.4; }
    .nerd-card.span2 { grid-column: span 2; }
    .nerd-ac  { color: var(--accent); }
    .nerd-mut { color: var(--text-dim); }
    .stat { display: flex; justify-content: space-between; align-items: flex-end; padding: 7px 0; border-bottom: 1px dashed #2a2a2a; }
    .stat:last-child { border-bottom: none; }
    .stat .big { font-family: 'Georgia', serif; font-weight: 700; font-style: italic; font-size: 30px; color: var(--accent); line-height: 1; }
    .stat .note { font-size: 10px; color: var(--text-dim); text-align: right; line-height: 1.4; }
    .bots { list-style: none; }
    .bots li { border-bottom: 1px dashed #2a2a2a; }
    .bots li:last-child { border-bottom: none; }
    .bot-row {
      width: 100%;
      padding: 7px 0;
      border: 0;
      background: transparent;
      -webkit-appearance: none;
      appearance: none;
      display: grid;
      grid-template-columns: 160px 1fr 20px;
      gap: 12px;
      align-items: center;
      color: inherit;
      cursor: pointer;
      font: inherit;
      text-align: left;
    }
    .bots .nm { color: #9ae09a; }
    .bots .nt { color: var(--text-faint); }
    .bots .ip { color: var(--text-muted); }
    .bots .ds { color: var(--text-dim); font-size: 11px; }
    .bots .op { color: var(--accent); text-align: right; font-size: 11px; }
    .bot-op {
      position: relative;
      display: inline-grid;
      justify-self: end;
      place-items: center;
      line-height: 1;
      transform-origin: 50% 50%;
      transition: transform 0.2s ease;
    }
    .bot-row:hover .bot-op,
    .bot-row:active .bot-op,
    .bot-item.is-open .bot-op {
      transform: rotate(90deg);
    }
    .bots .op.bot-op-faint { color: var(--text-faint); }
    .bots .op.bot-op-muted { color: var(--text-muted); }
    .bot-op-swap .bot-arrow {
      grid-area: 1 / 1;
      opacity: 0;
      transition: opacity 0.2s ease;
    }
    .bot-op-swap .bot-mark {
      grid-area: 1 / 1;
      opacity: 1;
      transition: opacity 0.2s ease;
    }
    .bot-row:hover .bot-op-swap .bot-mark,
    .bot-row:active .bot-op-swap .bot-mark,
    .bot-item.is-open .bot-op-swap .bot-mark {
      opacity: 0;
    }
    .bot-row:hover .bot-op-swap .bot-arrow,
    .bot-row:active .bot-op-swap .bot-arrow,
    .bot-item.is-open .bot-op-swap .bot-arrow {
      opacity: 1;
    }
    .bot-desc {
      max-height: 0;
      overflow: hidden;
      color: var(--text-dim);
      font-size: 11px;
      line-height: 1.7;
      opacity: 0;
      transition: max-height 0.24s ease, opacity 0.2s ease, padding 0.24s ease;
    }
    .bot-item.is-open .bot-desc {
      padding: 0 32px 10px 0;
      opacity: 1;
    }
    .service { display: grid; grid-template-columns: 75px 1fr; padding: 7px 0; gap: 12px; align-items: start; border-bottom: 1px dashed #2a2a2a; }
    .service:last-child { border-bottom: none; }
    .service .sname { color: #9ae09a; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
    .service .stools { display: flex; flex-wrap: wrap; gap: 4px; }
    .service .stools span { font-size: 10px; padding: 2px 7px; background: #2a2a2a; color: #ccc; border-radius: 3px; }
    .service .stools span.hi { background: var(--accent); color: #fff; }
    .nerd-center { display: flex; justify-content: center; }
    .expand-btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 14px;
      margin: 28px auto 0; padding: 18px 32px;
      background: transparent; border: 1px solid rgba(26,26,26,0.35); border-radius: 8px;
      cursor: pointer; font-family: 'JetBrains Mono', monospace; font-size: 12px;
      letter-spacing: 0.18em; text-transform: uppercase; color: #1a1a1a;
      transition: background 0.2s, border-color 0.2s; width: fit-content;
    }
    .expand-btn:hover { background: rgba(26,26,26,0.06); border-color: #1a1a1a; }
    .expand-btn .arr { font-size: 14px; letter-spacing: 0; transition: transform 0.3s ease; display: inline-block; }
    .expand-btn.open .arr { transform: rotate(180deg); }
    .expand-btn .ct { display: inline-block; padding: 2px 7px; border: 1px solid currentColor; border-radius: 3px; font-size: 10px; }
    .projects-panel {
      overflow: hidden; max-height: 0;
      transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), padding-top 0.45s ease, margin-top 0.45s ease;
      padding-top: 0; margin-top: 0; border-top: 0 solid #9fa5aa;
    }
    .projects-panel.open { max-height: 1200px; padding-top: 32px; margin-top: 32px; border-top: 1px dashed #9fa5aa; }
    .proj-group { margin-bottom: 28px; }
    .proj-group:last-child { margin-bottom: 0; }
    .proj-group-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px dashed #9fa5aa; }
    .proj-group-head h4 { font-family: 'Press Start 2P', monospace; font-size: 13px; color: #1a1a1a; }
    .proj-group-head .cnt { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--icon); letter-spacing: 0.08em; }
    .proj-group-head .meta { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--icon); letter-spacing: 0.08em; text-transform: uppercase; }
    .proj-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
    .proj-card { background: #fff; border: 1px solid #b5babe; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.2s; }
    .proj-card:hover { border-color: #1a1a1a; transform: translateY(-2px); }
    .proj-thumb { aspect-ratio: 4/3; margin-bottom: 10px; border-radius: 5px; background: repeating-linear-gradient(45deg, rgba(26,26,26,0.08) 0 6px, transparent 6px 12px), #eceae2; display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--icon); letter-spacing: 0.12em; text-transform: uppercase; }
    .proj-name { font-weight: 700; font-size: 16px; color: #1a1a1a; margin-bottom: 4px; }
    .proj-desc { font-size: 12px; color: #555b61; line-height: 1.5; margin-bottom: 10px; flex: 1; }
    .proj-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px dashed var(--border-s); font-family: 'JetBrains Mono', monospace; font-size: 10px; }
    .proj-foot .role { color: var(--icon); letter-spacing: 0.06em; text-transform: uppercase; }
    .proj-foot .url  { color: var(--accent); }


    /* —— Collab / Clients section ————————————————————————————————— */
    .collab-section {
      display: grid;
      grid-template-columns: 1fr 1fr;
    }
    .collab-left {
      overflow: hidden;
      position: relative;
    }
    .collab-left img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .collab-right {
      padding: 80px 0 80px 64px;
      text-align: right;
    }
    .collab-title {
      font-family: 'Big Shoulders Display', sans-serif;
      font-size: clamp(36px, 5vw, 68px);
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--text);
      line-height: 0.95;
      margin-bottom: 16px;
    }
    .collab-sub {
      font-size: 13px;
      color: var(--text-dim);
      line-height: 1.6;
      margin-bottom: 40px;
    }
    .collab-logos {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px 20px;
      align-items: start;
    }
.collab-logo {
  width: 100%;
  min-height: 44px;
  height: 56px;
  border-radius: 8px;
  cursor: pointer;
  background-color: var(--icon);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 0.2s, opacity 0.2s;
    aspect-ratio: 3 / 1;
}

    /* vertical stagger — 9 logos, 3 cols */
    .collab-logo:nth-child(1)  { margin-top: 0px; }
    .collab-logo:nth-child(2)  { margin-top: 55px; }
    .collab-logo:nth-child(3)  { margin-top: 18px; }
    .collab-logo:nth-child(4)  { margin-top: 72px; }
    .collab-logo:nth-child(5)  { margin-top: 50px; }
    .collab-logo:nth-child(6)  { margin-top: 44px; }
    .collab-logo:nth-child(7)  { margin-top: 120px; }
    .collab-logo:nth-child(8)  { margin-top: 20px; }
    .collab-logo:nth-child(9)  { margin-top: 50px; }

    /* —— Typewriter cursor ——————————————————————————————————————— */
    #cycler::after {
      content: '|';
      margin-left: 2px;
      font-weight: 400;
      animation: cur-blink 0.65s step-end infinite;
    }
    @keyframes cur-blink {
      0%, 100% { opacity: 0.6; }
      50%      { opacity: 0;   }
    }

    /* —— Slide navigation ——————————————————————————————————————————— */
    html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
    #slide-root {
      display: flex;
      height: 100%;
      transition: transform 0.65s cubic-bezier(0.77, 0, 0.18, 1);
      will-change: transform;
    }
    #slide-root.at-portfolio,
    html[data-screen="portfolio"] #slide-root,
    html[data-screen="cinematic"] #slide-root,
    html[data-screen="gallery"] #slide-root { transform: translateX(-100vw); }
    html[data-screen="portfolio"] #slide-root,
    html[data-screen="cinematic"] #slide-root,
    html[data-screen="gallery"] #slide-root,
    html[data-screen="cinematic"] #portfolio-v-root,
    html[data-screen="gallery"] #portfolio-v-root { transition: none !important; }
    #page-main, #page-portfolio {
      flex: 0 0 100vw;
      min-width: 100vw;
      height: 100%;
      overflow-y: auto;
      overflow-x: hidden;
      overscroll-behavior: none;
    }
    #page-portfolio { background: var(--bg); overflow: hidden; }
    #portfolio-v-root {
      display: flex;
      flex-direction: column;
      height: 300vh;
      transform: translateY(-100vh);
      transition: transform 0.65s cubic-bezier(0.77, 0, 0.18, 1);
      will-change: transform;
    }
    #portfolio-v-root.at-cinematic,
    html[data-screen="cinematic"] #portfolio-v-root { transform: translateY(0); }
    #portfolio-v-root.at-gallery,
    html[data-screen="gallery"] #portfolio-v-root { transform: translateY(-200vh); }
    #page-cinematic, #portfolio-landing, #page-gallery {
      flex: 0 0 100vh;
      height: 100vh;
      overflow: hidden;
      position: relative;
    }

    html.is-ios26-safari {
      --ios26-bottom-gutter: max(72px, calc(env(safe-area-inset-bottom, 0px) + 48px));
      --ios26-main-bottom-gutter: 0px;
    }

    html.is-ios26-safari,
    html.is-ios26-safari body,
    html.is-ios26-safari #slide-root,
    html.is-ios26-safari #page-main,
    html.is-ios26-safari #page-portfolio,
    html.is-ios26-safari #page-cinematic,
    html.is-ios26-safari #portfolio-landing,
    html.is-ios26-safari #page-gallery {
      height: var(--vvh, 100vh);
    }

    html.is-ios26-safari #portfolio-v-root {
      height: calc(var(--vvh, 100vh) + var(--vvh, 100vh) + var(--vvh, 100vh));
      transform: translateY(calc(-1 * var(--vvh, 100vh)));
    }

    html.is-ios26-safari #portfolio-v-root.at-cinematic,
    html.is-ios26-safari[data-screen="cinematic"] #portfolio-v-root {
      transform: translateY(0);
    }

    html.is-ios26-safari #portfolio-v-root.at-gallery,
    html.is-ios26-safari[data-screen="gallery"] #portfolio-v-root {
      transform: translateY(calc(-1 * (var(--vvh, 100vh) + var(--vvh, 100vh))));
    }

    html.is-ios26-safari #page-cinematic,
    html.is-ios26-safari #portfolio-landing,
    html.is-ios26-safari #page-gallery,
    html.is-ios26-safari .d-series {
      flex-basis: var(--vvh, 100vh);
      height: var(--vvh, 100vh);
    }

    html.is-ios26-safari #page-main {
      padding-bottom: var(--ios26-main-bottom-gutter) !important;
      background: var(--bg);
    }

    html.is-ios26-safari #page-cinematic .d-shell {
      padding-bottom: max(0px, calc(var(--ios26-bottom-gutter) - 5px)) !important;
      background: var(--bg);
    }

    html.is-ios26-safari[data-screen="portfolio"] #page-portfolio,
    html.is-ios26-safari[data-screen="portfolio"] #portfolio-v-root,
    html.is-ios26-safari body.at-portfolio #page-portfolio,
    html.is-ios26-safari body.at-portfolio #portfolio-v-root {
      background: var(--light-text);
    }

    html.is-ios26-safari #portfolio-landing {
      background: var(--light);
    }

    html.is-ios26-safari .portfolio-block {
      background: var(--light);
    }

    html.is-ios26-safari .pb-stage {
      padding-bottom: max(var(--ios26-bottom-gutter), calc(var(--mobile-block-gap, 28px) * 2)) !important;
    }

    @media (min-width: 1025px) {
      html.is-ios26-safari .pb-stage {
        bottom: 166px !important;
      }
    }

    @media (max-width: 1024px) {
      html.is-ios26-safari .pb-stage {
        bottom: 100px !important;
      }
    }

    html.is-ios26-safari .portfolio-nav-rail-bottom {
      bottom: 0 !important;
    }

    html.is-ios26-safari .d-jump.bottom {
      bottom: calc(18px + var(--ios26-bottom-gutter)) !important;
    }

    @media (max-width: 767px) {
      html.is-ios26-safari .d-jump.bottom {
        bottom: calc(10px + var(--ios26-bottom-gutter)) !important;
      }
    }

    html.is-ios26-safari .d-left-info,
    html.is-ios26-safari .d-right {
      padding-bottom: var(--ios26-bottom-gutter) !important;
    }

    /* ── Gallery screen ──────────────────────────────────────────── */
    #page-gallery {
      background: var(--bg);
      display: flex;
      flex-direction: column;
    }
    #gal-head {
      --gal-title-size: clamp(40px, 7vw, 88px);
      --gal-title-center-y: 82px;
      flex: 0 0 auto;
      display: flex; flex-direction: column;
      align-items: center; justify-content: flex-start;
      gap: 10px;
      position: relative;
      padding-top: calc(var(--gal-title-center-y) + (var(--gal-title-size) / 2) + 8px);
      padding-bottom: calc(var(--gal-title-center-y) - (var(--gal-title-size) / 2));
      border-bottom: 0.5px solid rgba(188,195,203,0.08);
    }
    #gal-head-title {
      position: absolute;
      top: var(--gal-title-center-y);
      left: 50%;
      font-family: 'Big Shoulders Display', sans-serif;
      font-size: var(--gal-title-size);
      font-weight: 900;
      color: var(--accent);
      letter-spacing: -0.01em;
      line-height: 1;
      transform: translate(-50%, -50%);
    }
    #gal-head-sub {
      font-size: 11px; letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--text); opacity: 0.35;
    }
    #gal-scroll {
      flex: 1;
      overflow-y: auto; overflow-x: hidden;
      overscroll-behavior: none;
    }
    #gal-masonry {
      position: relative; width: 100%;
    }
    #gal-masonry img {
      position: absolute;
      opacity: 0;
      transition: opacity 0.35s ease;
      cursor: pointer;
      display: block;
    }
    #gal-masonry img.gl-on { opacity: 1; }
    #gal-lb {
      display: none;
      position: absolute; inset: 0;
      background: var(--bg);
      z-index: 35;
      align-items: center; justify-content: center;
    }
    #gal-lb.open { display: flex; }
    #gal-lb-wrap {
      position: relative;
      display: inline-flex;
      max-width: calc(100% - 160px);
      max-height: 90vh;
    }
    #gal-lb-img {
      max-width: 100%;
      max-height: 90vh;
      object-fit: contain;
      border-radius: 4px;
      opacity: 0;
      transition: opacity 0.25s ease;
      display: block;
      position: relative; z-index: 1;
    }
    #gal-lb-img.gl-ready { opacity: 1; }
    #gal-lb-wrap .pull-prev { left: -68px; }
    #gal-lb-wrap .pull-next { right: -68px; }
    .gal-loader {
      position: absolute; top: 50%; left: 50%;
      width: 80px; height: 80px;
      margin: -40px 0 0 -40px;
      pointer-events: none;
      opacity: 1; transition: opacity 0.25s;
      perspective: 900px; perspective-origin: 50% 50%;
      z-index: 0;
    }
    #about-photo, #collab-photo { position: relative; z-index: 1; }
    #about-loader { opacity: 0; }
    #about-loader.is-loading { opacity: 1; }
    #gal-lb:has(img.gl-ready) .gal-loader { opacity: 0; }
    .d-frame .gal-loader .rubik { --cube-face: var(--text); }
    body:not(.at-gallery) #gal-masonry-loader { display: none; }
    #back-btn {
      position: fixed;
      top: 61px;
      left: 40px;
      z-index: 50;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
    }
    body.at-portfolio #back-btn { opacity: 0; pointer-events: none; transition-delay: 0s; }
    body.at-cinematic #back-btn,
    body.at-gallery   #back-btn { opacity: 0 !important; pointer-events: none !important; transition-delay: 0s; }
    #gal-back-home {
      position: absolute;
      top: 61px;
      left: max(56px, calc((100vw - 1280px) / 2 + 56px));
      z-index: 30;
    }
    .gal-back-btn {
      width: auto;
      min-width: 0;
      padding: 11px 18px;
      gap: 14px;
      color: var(--text-dim);
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      line-height: 1;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .gal-back-label,
    .gal-back-btn .arr {
      opacity: 0.4;
      transition: opacity 0.15s, color 0.2s;
    }
    .gal-back-btn:hover .gal-back-label,
    .gal-back-btn:hover .arr {
      color: var(--text);
      opacity: 1;
    }
    .gal-back-label-tablet {
      display: none;
    }
    .gal-close-btn {
      min-width: 54px;
      padding: 11px 18px;
      gap: 14px;
      color: var(--text);
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.12em;
      line-height: 1;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .gal-close-x {
      position: relative;
      width: 18px;
      height: 11px;
      flex-shrink: 0;
    }
    .gal-close-label {
      opacity: 0.4;
      transition: opacity 0.15s, color 0.2s;
    }
    .gal-close-btn:hover .gal-close-label,
    .gal-close-btn:hover .gal-close-x-line {
      color: var(--text);
      opacity: 1;
    }
    .gal-close-x-line {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 18px;
      height: 1px;
      background: var(--text);
      opacity: 0.4;
      transition: opacity 0.15s;
    }
    .gal-close-x-line-a { transform: translate(-50%, -50%) rotate(45deg); }
    .gal-close-x-line-b { transform: translate(-50%, -50%) rotate(-45deg); }
    body.gal-lb-open #menu-btn-hero { opacity: 0; pointer-events: none; transition-delay: 0s; }
    .film-reel { cursor: pointer; }

    /* —— Portfolio block ————————————————————————————————————————— */
    .portfolio-block {
      position: relative;
      width: 100%;
      height: 100%;
      overflow: hidden;
      background: var(--light);
      color: var(--light-text);
      isolation: isolate;
    }
    body.at-portfolio {
      --accent:  #ff3b30;
      --accent2: #ff5a45;
    }
    .portfolio-nav-rail {
      position: absolute;
      left: 0; right: 0; z-index: 5;
      height: 166px;
      display: flex; align-items: center; justify-content: center;
      background: var(--light-text);
    }
    .portfolio-nav-rail-top    { top: 0; }
    .portfolio-nav-rail-bottom { bottom: 0; }
    .portfolio-nav-rail::after {
      content: '';
      position: absolute; left: 0; right: 0; height: 4px;
      background: var(--accent);
      transform: scaleY(0);
      transition: transform 0.42s cubic-bezier(0.22,0.85,0.28,1);
      pointer-events: none;
    }
    .portfolio-nav-rail-top::after    { top: 0;    transform-origin: top center; }
    .portfolio-nav-rail-bottom::after { bottom: 0; transform-origin: bottom center; }
    .portfolio-nav-rail:hover::after  { transform: scaleY(1); transition-duration: 1.26s; }
    .portfolio-hero-cta {
      position: relative;
      display: inline-flex; align-items: center; justify-content: center;
      gap: clamp(14px, 1.8vw, 26px);
      border: 0; border-radius: 0;
      padding: 0 clamp(24px, 4vw, 56px);
      background: transparent;
      color: var(--accent);
      font-family: 'Big Shoulders Display', sans-serif;
      font-size: clamp(24px, 3vw, 42px);
      font-weight: 900; letter-spacing: 0.16em; line-height: 1;
      text-transform: uppercase; text-decoration: none; white-space: nowrap;
    }
    .portfolio-hero-cta > span:not(.portfolio-arr-circ) > span { color: currentColor; }
    .portfolio-arr-circ {
      width: clamp(30px, 3vw, 42px); height: clamp(30px, 3vw, 42px);
      border-radius: 50%;
      display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
      background: var(--accent); color: #fff;
      font-family: 'JetBrains Mono', monospace;
      font-size: clamp(13px, 1.2vw, 17px); font-weight: 400; letter-spacing: 0;
    }
    .pb-stage {
      position: absolute;
      top: 166px; left: 0; right: 0; bottom: 166px;
      display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
      align-items: center;
      gap: clamp(24px, 4vw, 56px);
      min-width: 0; min-height: 0;
      padding: 0 clamp(32px, 4vw, 56px);
    }
    .pb-left, .pb-right { min-width: 0; min-height: 0; }
    .pb-left {
      --pb-left-gap: clamp(18px, 3vh, 28px);
      display: flex; flex-direction: column; justify-content: center;
      gap: var(--pb-left-gap);
    }
    .pb-name-row {
      display: flex; align-items: center;
      gap: clamp(18px, 2.2vw, 32px); min-width: 0;
    }
    .pb-logo {
      width: clamp(126px, 10.5vw, 168px); height: clamp(126px, 10.5vw, 168px);
      flex: 0 0 auto; object-fit: contain; display: block;
    }
    .pb-heading { flex: 1 1 auto; min-width: 0; container-type: inline-size; }
    .pb-eyebrow {
      display: flex; align-items: center; gap: 10px;
      color: var(--light-dim);
      font-family: 'JetBrains Mono', monospace;
      font-size: clamp(9px, 0.78vw, 11px); letter-spacing: 0.22em; line-height: 1; text-transform: uppercase;
    }
    .pb-eyebrow b { color: var(--light-text); font-weight: 600; }
    .pb-headline {
      color: var(--light-text);
      font-family: 'Big Shoulders Display', sans-serif;
      font-size: clamp(40px, min(6.6vw, 18cqw), 96px);
      font-weight: 900; letter-spacing: -0.02em; line-height: 0.85;
      text-transform: uppercase; margin: 0; min-width: 0;
    }
    .pb-title-main { display: block; }
    .pb-subhead { margin: 0; font-size: clamp(40px, min(6.6vw, 18cqw), 96px); line-height: 0.85; }
    .pb-subhead .sub {
      display: block;
      margin-top: clamp(8px, 1.5vh, 14px);
      color: var(--accent);
      font-family: Georgia, serif; font-size: 0.34em; font-style: italic; font-weight: 400;
      letter-spacing: 0; line-height: 1; text-transform: lowercase;
    }
    .pb-handle {
      position: relative; width: fit-content;
      text-decoration: none; transition: none;
    }
    .pb-handle:hover { color: var(--light-text); }
    .pb-neutrinos {
      position: absolute;
      left: -5.8em; right: -4.2em; top: -3.3em; bottom: -1.8em;
      pointer-events: none; overflow: visible;
    }
    .pb-neutrinos span {
      position: absolute;
      left: var(--neutrino-left); top: var(--neutrino-top);
      width: var(--neutrino-size); height: var(--neutrino-size);
      border-radius: 50%; background: #2b2b2b;
      opacity: 0; transform: translate(0,0) scale(0.35);
    }
    .pb-bio {
      max-width: 420px; color: var(--light-text);
      font-size: clamp(13px, 1.05vw, 15px); line-height: 1.6; opacity: 0.78;
    }
    .pb-actions { display: flex; align-items: center; gap: 10px; }
    .pb-contact-stack {
      display: inline-flex; flex-direction: column; align-items: flex-start;
      gap: var(--pb-left-gap);
      width: fit-content;
    }
    .pb-contact-link {
      display: inline-flex; flex-direction: column; align-items: flex-start; gap: 7px;
      color: var(--light-text); text-decoration: none; width: fit-content; transition: none;
    }
    .pb-contact-kicker {
      color: var(--light-dim);
      font-family: 'JetBrains Mono', monospace;
      font-size: clamp(8px, 0.7vw, 10px); letter-spacing: 0.18em; line-height: 1; text-transform: uppercase;
    }
    .pb-contact-main {
      position: relative; display: inline-flex; align-items: center; gap: 10px;
      color: var(--light-text);
      font-family: 'Big Shoulders Display', sans-serif;
      font-size: clamp(22px, 2vw, 32px); font-weight: 900; letter-spacing: 0.08em; line-height: 1;
      text-transform: uppercase; transition: none;
    }
    .pb-contact-link:hover .pb-contact-main { color: var(--accent); }
    .pb-socials {
      display: flex; align-items: center; gap: 10px;
      color: var(--light-text);
    }
    .pb-social-icon {
      width: 50px; height: 40px;
      display: inline-flex; align-items: center; justify-content: center;
      color: inherit; text-decoration: none; opacity: 1;
      background: transparent;
      transition: color 0.2s;
    }
    .pb-social-icon-500 { width: 62px; }
    .pb-social-icon:hover { color: var(--accent); }
    .pb-social-mask {
      width: 20px; height: 20px; display: block;
      background-color: currentColor;
      -webkit-mask-size: contain; mask-size: contain;
      -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
      -webkit-mask-position: center; mask-position: center;
    }
    .pb-social-mask-500 { width: 40px; height: 16px; margin-right: -8px; }
    .pb-social-mask-telegram { transform: translateX(1px); }
    .pb-right {
      display: flex; flex-direction: column; justify-content: center;
      gap: clamp(9px, 1.5vh, 12px);
      height: 50vh; max-height: 900px; align-self: center;
    }
    .pb-row-head {
      display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
      padding-bottom: 8px; border-bottom: 0.5px solid rgba(0,0,0,0.15);
      color: var(--light-dim);
      font-family: 'JetBrains Mono', monospace;
      font-size: clamp(8px, 0.7vw, 10px); letter-spacing: 0.18em; line-height: 1.3; text-transform: uppercase;
    }
    .pb-row-head b { color: var(--light-text); font-weight: 600; }
    .pb-row-head .num-tag { color: var(--accent); font-weight: 700; letter-spacing: 0.14em; }
    .pb-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0,1fr));
      grid-template-rows: repeat(2, minmax(0,1fr));
      gap: clamp(8px, 1.2vh, 10px);
      flex: 1; min-height: 0;
    }
    .pb-cell {
      position: relative; display: flex; flex-direction: column;
      min-width: 0; min-height: 0; overflow: hidden;
      border: 0.5px solid rgba(0,0,0,0.08); border-radius: 8px;
      background: rgba(0,0,0,0.05); cursor: pointer;
    }
    .pb-cell-main { grid-row: span 2; }
    .pb-cell { transition: transform 0.3s ease; }
    .pb-cell:hover { transform: scale(1.025); }
    .pb-cell .cv { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #1a1a1a; }
    .pb-cell .cv img { position: absolute; top: -1px; left: -1px; width: calc(100% + 2px); height: calc(100% + 2px); object-fit: cover; display: block; border: none; }
    a.pb-cell { text-decoration: none; color: inherit; outline: none; -webkit-tap-highlight-color: transparent; }
    .pb-cell .info { padding: clamp(8px,1vh,11px); }
    .pb-cell .ttl { color: var(--light-text); font-size: clamp(10px,0.85vw,12px); font-weight: 600; letter-spacing: 0.01em; line-height: 1.25; }
    .pb-cell .desc { display: -webkit-box; margin-top: 3px; overflow: hidden; color: var(--light-dim); font-size: clamp(9px,0.72vw,10px); line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .pb-cell .yr { margin-top: 4px; color: rgba(0,0,0,0.45); font-family: 'JetBrains Mono',monospace; font-size: 9px; letter-spacing: 0.1em; }
    .pb-cell-main .info { padding: clamp(10px,1.25vh,14px); }
    .pb-cell-main .ttl { font-size: clamp(12px,0.98vw,14px); }
    .pb-cell-main .desc { font-size: clamp(10px,0.78vw,11px); -webkit-line-clamp: 3; }
    .pb-see-all {
      position: relative; display: flex; grid-column: span 2;
      align-items: center; justify-content: space-between; gap: 12px;
      align-self: end; min-height: 0; height: clamp(52px,7vh,64px);
      overflow: hidden; border-radius: 8px;
      background: var(--light-text); color: var(--light);
      padding: clamp(12px,1.55vh,14px) clamp(14px,1.6vw,18px);
      font-family: 'Big Shoulders Display', sans-serif;
      font-size: clamp(15px,1.25vw,18px); font-weight: 700; letter-spacing: 0.1em;
      text-decoration: none; text-transform: uppercase; isolation: isolate;
    }
    .pb-see-all::before, .pb-see-all::after {
      content: ''; position: absolute; top: 0; bottom: 0; left: 0;
      background: var(--accent); z-index: 0;
    }
    .pb-see-all::before { width: 4px; z-index: 1; }
    .pb-see-all::after  { width: 4px; transition: width 0.74s cubic-bezier(0.64,-0.04,0.18,1.28); }
    .pb-see-all:hover::after { width: 100%; }
    .pb-see-all > * { position: relative; z-index: 2; }
    .pb-see-all:hover { color: #fff; }
    .pb-see-all .arr { font-family: 'JetBrains Mono',monospace; font-size: clamp(10px,0.9vw,13px); font-weight: 400; letter-spacing: 0.08em; opacity: 0.7; }
    .portfolio-back-btn {
      position: absolute;
      top: 61px;
      left: max(56px, calc((100vw - 1280px) / 2 + 56px));
      z-index: 10;
      gap: 6px;
      color: var(--text);
      background: var(--surf);
      border-color: var(--surf-b);
      font-size: 11px; font-weight: 700; letter-spacing: 0.12em; line-height: 1;
      text-decoration: none;
    }
    .portfolio-back-arr {
      opacity: 0.4;
      transition: opacity 0.15s, color 0.2s;
    }
    .portfolio-back-label {
      opacity: 0.4;
      transition: opacity 0.15s, color 0.2s;
    }
    .portfolio-back-btn:hover .portfolio-back-arr,
    .portfolio-back-btn:hover .portfolio-back-label {
      color: var(--text);
      opacity: 1;
    }
    body.at-portfolio #menu-btn-hero {
      max-width: 54px !important;
      color: var(--text) !important;
      background: var(--surf) !important;
      border-color: var(--surf-b) !important;
    }
    body.at-portfolio #menu-btn-hero:hover { max-width: 200px !important; }
    body.at-portfolio #menu-btn-hero #menu-denbych { color: var(--text) !important; opacity: 0; }
    body.at-portfolio #menu-btn-hero:hover #menu-denbych { opacity: 1; }
    body.at-portfolio #menu-btn-hero div span { background: var(--text) !important; }

    body.sliders-touched #footer-headline { color: var(--text) !important; transition: color 0.25s; }
    body.sliders-touched .btn-outline-dark { color: var(--text) !important; border-color: var(--border-s) !important; transition: color 0.18s, border-color 0.18s; }

    /* ——————————————————————————————————————————————
       TYPE SCALE OVERRIDES
    —————————————————————————————————————————————— */
    #hero-name     { font-size: 68px !important; }
    #denbych-title { font-size: clamp(72px, 10vw, 144px) !important; }
    #section-mypath { font-size: clamp(48px, 6.67vw, 96px) !important; }
    #footer-headline { font-size: clamp(24px, 3.33vw, 48px) !important; }

    /* ——————————————————————————————————————————————
       SPOTIFY — compact now-playing button
    —————————————————————————————————————————————— */
    .now-playing-btn {
      display: none;
      align-items: center;
      gap: 8px;
      background: var(--surf);
      border: 0.5px solid var(--surf-b);
      border-radius: 10px;
      padding: 11px 18px;
      backdrop-filter: blur(8px);
      cursor: pointer;
      color: var(--text);
      opacity: 0.7;
      font-size: 12px;
      font-family: inherit;
      letter-spacing: 0.02em;
      transition: opacity 0.2s;
    }
    .now-playing-btn:hover,
    .now-playing-btn:active { box-shadow: 0 0 0 1px var(--accent); }
    .equalizer {
      display: flex;
      align-items: flex-end;
      gap: 2px;
      height: 12px;
    }
    .equalizer span { display: block; width: 2px; border-radius: 1px; }
    @keyframes np-eq1 { 0%, 100% { height: 4px; }  50% { height: 12px; } }
    @keyframes np-eq2 { 0%, 100% { height: 8px; }  50% { height:  4px; } }
    @keyframes np-eq3 { 0%, 100% { height: 12px; } 50% { height:  6px; } }
    @keyframes np-eq4 { 0%, 100% { height: 6px; }  50% { height: 10px; } }

    /* inactive — circle dot instead of bars */
    .now-playing-btn.np-inactive .equalizer span { display: none; }
    .now-playing-btn.np-inactive .equalizer::before {
      content: '';
      display: block;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--text-dim);
      margin-bottom: 2px;
    }
    /* now playing — green bars, animated */
    .now-playing-btn.np-playing .equalizer span { background: #9ae09a; }
    .now-playing-btn.np-playing .equalizer span:nth-child(1) { animation: np-eq1 0.80s ease-in-out infinite; }
    .now-playing-btn.np-playing .equalizer span:nth-child(2) { animation: np-eq2 0.70s ease-in-out infinite 0.10s; }
    .now-playing-btn.np-playing .equalizer span:nth-child(3) { animation: np-eq3 0.90s ease-in-out infinite 0.05s; }
    .now-playing-btn.np-playing .equalizer span:nth-child(4) { animation: np-eq4 0.75s ease-in-out infinite 0.15s; }
    /* last played — red bars, low, no animation */
    .now-playing-btn.np-not-playing .equalizer span { background: var(--accent); height: 3px; }

    /* ——————————————————————————————————————————————
       RESPONSIVE — shared max-width: 1024px
    —————————————————————————————————————————————— */
    @media (max-width: 1024px) {
      /* menu pill — keep aligned with wrap */
      #menu-btn-hero { right: clamp(24px, 4vw, 56px); }
      .portfolio-back-btn { left: clamp(24px, 4vw, 56px); }
      #gal-back-home { left: clamp(24px, 4vw, 56px); }
      #gal-photo-close { right: clamp(24px, 4vw, 56px) !important; }

      /* DENBYCH + film: stack, film goes below */
      #denbych-section { flex-direction: column !important; align-items: flex-start !important; }
      #denbych-section .film-box { width: 100%; }

      /* collab section: stack + center */
      .collab-section { grid-template-columns: 1fr; }
      .collab-left { max-height: 320px; }
      .collab-right { padding: 48px 0 64px; text-align: center; }
      .collab-logos { justify-items: center; }
      .collab-logo { margin-top: 0 !important; }

      /* timeline: reduce side padding on text area */
      .timeline-text-side { padding: 32px; }
      .timeline-reset { left: 32px; bottom: 32px; }

      /* MY STACK table: hide Role column, tighten grid */
      .stk-col-heads,
      .stk-row { grid-template-columns: 0.5fr 1fr 0.7fr; }
      .stk-col-heads > div:nth-child(3),
      .stk-row > div:nth-child(3) { display: none; }

      /* menu overlay items */
      .menu-item { font-size: clamp(42px, 5.8vw, 84px); }

      /* Spotify: hide big widget, show compact button */
      .spotify-widget-full { display: none !important; }
      .now-playing-btn { display: inline-flex; }
    }

    /* ——————————————————————————————————————————————
       TABLET LAYOUT — 768–1024px
    —————————————————————————————————————————————— */
    @media (max-width: 1024px) and (min-width: 768px) {
      .portfolio-nav-rail { height: 100px; }
      .portfolio-hero-cta { gap: clamp(10px,1.4vw,16px); padding: 0 clamp(18px,3vw,34px); font-size: clamp(18px,2.8vw,30px); letter-spacing: 0.14em; }
      .portfolio-arr-circ { width: clamp(24px,3vw,32px); height: clamp(24px,3vw,32px); font-size: clamp(11px,1.3vw,14px); }
      .portfolio-back-btn { top: 29px; width: auto !important; min-width: 0 !important; gap: 8px !important; }
      .portfolio-back-label { display: inline !important; }
      #menu-btn-hero { top: 29px; }
      #gal-back-home { top: 29px; }
      #gal-photo-close { top: 29px !important; }
      /* about: fixed text width, photo may sit under text */
      #about-section {
        display: block !important;
        position: relative !important;
        min-height: calc((100vw - (clamp(24px, 4vw, 56px) * 2)) * 0.9) !important;
        padding: 24px 0 var(--mobile-block-gap) !important;
      }
      #about-photo-wrap {
        position: absolute !important;
        top: 24px !important;
        left: 50% !important;
        right: 0 !important;
        width: auto !important;
        height: auto !important;
        aspect-ratio: 2 / 3 !important;
      }
      #about-section > div:last-child {
        position: relative !important;
        z-index: 2;
        width: 55% !important;
      }
      #about-lines {
        width: 100% !important;
        gap: clamp(4px, calc((100vw - 768px) * 0.046875), 12px) !important;
      }
      #about-lines .about-line {
        line-height: 1.5 !important;
        padding-top: clamp(2px, calc(2px + (100vw - 768px) * 0.0234375), 6px) !important;
        padding-bottom: clamp(2px, calc(2px + (100vw - 768px) * 0.0234375), 6px) !important;
      }
      #about-lines .dyn-accent {
        line-height: 0 !important;
      }
      @media (max-width: 900px) {
        #about-title > div:nth-child(1),
        #about-title > div:nth-child(2) {
          font-size: 46px !important;
        }
      }
      /* about → PATH gap */
      #section-mypath { margin-top: var(--mobile-block-gap) !important; }
      /* clients: photo left 1:1, logos 2-per-row */
      .wrap:has(#section-clients) { margin-top: var(--mobile-block-gap) !important; }
      .collab-section { grid-template-columns: 1fr 1fr; align-items: start; }
      .collab-left { width: 100%; max-height: none; aspect-ratio: 1 / 1; border-radius: 10px; align-self: start; }
      .collab-left img { width: 100% !important; height: 100% !important; object-fit: cover; }
      .collab-right { padding: 0 0 var(--mobile-block-gap) 32px; text-align: left; }
      /* divider between clients and stack */
      .divider-section { height: 340px; margin-top: var(--mobile-block-gap) !important; }
      /* stack */
      #section-mystack { padding-top: var(--mobile-block-gap) !important; }
      .collab-logos { grid-template-columns: repeat(2, 1fr); gap: 12px 16px; justify-items: start; }
      #gal-head {
        --gal-title-size: clamp(56px, 9vw, 76px);
        --gal-title-center-y: 50px;
        flex-basis: auto;
        min-height: 0;
        padding-top: calc(var(--gal-title-center-y) + (var(--gal-title-size) / 2) + 8px);
        padding-bottom: 18px;
      }
      #gal-head-title { font-size: var(--gal-title-size); }
      .gal-back-label-full { display: none; }
      .gal-back-label-tablet { display: inline; }
      .pb-stage { top: 100px; bottom: 100px; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,auto) minmax(0,1fr); align-content: center; align-items: stretch; gap: var(--mobile-block-gap); padding: var(--mobile-block-gap) 25vw calc(var(--mobile-block-gap) * 2); }
      .pb-left { --pb-left-gap: clamp(12px,2vh,18px); justify-content: flex-end; gap: var(--pb-left-gap); }
      .pb-name-row { gap: clamp(18px,3vw,30px); }
      .pb-logo { width: clamp(108px,14vw,148px); height: clamp(108px,14vw,148px); }
      .pb-headline, .pb-subhead { font-size: clamp(40px,18cqw,80px); }
      .pb-bio { max-width: 660px; font-size: clamp(12px,1.6vw,14px); line-height: 1.5; }
      .pb-contact-main { font-size: clamp(22px,3vw,30px); }
      .pb-right { justify-content: flex-start; width: 100%; height: min(38vh,420px); max-height: none; align-self: stretch; }
      .pb-grid { gap: 8px; }
      .pb-see-all { height: clamp(52px,7vh,64px); }
    }

    @media (max-width: 1024px) {
      :root {
        --mobile-block-gap: 28px;
      }

      .portfolio-nav-rail::after {
        display: none;
      }

      .pb-cell {
        cursor: default;
        transition: none;
      }

      .pb-cell:hover {
        transform: none;
      }

      .pb-see-all::after {
        width: 4px;
        transition: none;
      }

      .pb-see-all:hover::after {
        width: 4px;
      }

      .pb-see-all:hover {
        color: var(--light);
      }

      .portfolio-back-btn {
        width: 54px;
        min-width: 54px;
        gap: 0;
      }

      .portfolio-back-label {
        display: none;
      }
    }

    /* ——————————————————————————————————————————————
       MOBILE EARLY LAYOUT — max-width: 767px
    —————————————————————————————————————————————— */
    @media (max-width: 767px) {
      /* portfolio mobile */
      .portfolio-nav-rail { height: 100px; }
      .portfolio-nav-rail:hover::after { transform: scaleY(0); transition-duration: 0s; }
      .portfolio-hero-cta { gap: 10px; padding: 0 18px; font-size: clamp(16px,6vw,24px); letter-spacing: 0.12em; }
      .portfolio-arr-circ { width: 26px; height: 26px; font-size: 12px; }
      .portfolio-back-btn {
        top: 29px;
        left: 20px;
      }
      .pb-stage { top: 100px; bottom: 100px; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,auto) minmax(0,1fr); align-content: center; align-items: stretch; gap: var(--mobile-block-gap); padding: var(--mobile-block-gap) 10vw calc(var(--mobile-block-gap) * 2); }
      .pb-left { --pb-left-gap: 12px; justify-content: flex-end; gap: var(--pb-left-gap); }
      .pb-eyebrow { font-size: 8px; letter-spacing: 0.18em; }
      .pb-name-row { gap: 12px; }
      .pb-logo { width: clamp(72px,22vw,96px); height: clamp(72px,22vw,96px); }
      .pb-headline, .pb-subhead { font-size: clamp(34px,18cqw,60px); }
      .pb-bio { max-width: none; font-size: 12px; line-height: 1.45; }
      .pb-contact-kicker { font-size: 8px; }
      .pb-contact-main { font-size: clamp(22px,7vw,30px); }
      .pb-handle:hover { color: var(--accent); }
      .pb-contact-link:hover .pb-contact-main { color: var(--light-text); }
      .pb-social-icon:hover { color: var(--light-text); }
      .pb-neutrinos { display: none; }
      .pb-right { justify-content: flex-start; width: 100%; height: min(42vh,390px); max-height: none; align-self: stretch; gap: 8px; }
      .pb-row-head { padding-bottom: 6px; font-size: 8px; }
      .pb-grid { gap: 6px; }
      .pb-cell { border-radius: 6px; cursor: default; }
      .pb-cell .info { padding: 7px; }
      .pb-cell .ttl { font-size: 10px; }
      .pb-cell .desc, .pb-cell .yr { display: none; }
      .pb-see-all { height: 52px; border-radius: 6px; padding: 10px 12px; font-size: 14px; letter-spacing: 0.08em; }
      .pb-see-all::after { width: 4px; transition: none; }
      .pb-see-all:hover::after { width: 4px; }
      .pb-see-all:hover { color: var(--light); }
      .pb-see-all .arr { font-size: 10px; }

      /* about section: photo above text, landscape 3:2 */
      #about-section { min-height: unset !important; padding: 24px 0 48px !important; }
      #about-photo-wrap {
        position: static !important;
        left: auto !important; width: 100% !important;
        height: auto !important; aspect-ratio: 3/2 !important;
        margin-bottom: 28px !important; border-radius: 10px !important;
      }
      #about-photo { position: static !important; width: 100% !important; height: 100% !important; }
      #about-section > div { position: static !important; }

      /* hero buttons: icon-only below 768 */
      .settings-label, .now-playing-label { display: none; }
      .now-playing-btn { padding: 11px; }

      /* timeline: stack canvas above text */
      .timeline-wrap { flex-direction: column; }
      .timeline-curve-side { flex: 0 0 320px; min-height: 320px; width: 100%; }

      /* nerd board: single column */
      .nerd-board { grid-template-columns: 1fr; }
      .nerd-card.span2 { grid-column: span 1; }

    }

    /* ——————————————————————————————————————————————
       CINEMATIC PULL-DOWN
    —————————————————————————————————————————————— */
    .pull-backdrop {
      position: fixed; inset: 0; z-index: 44;
      background: rgba(0,0,0,0);
      backdrop-filter: blur(0px);
      -webkit-backdrop-filter: blur(0px);
      pointer-events: none;
      transition: background 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
    }
    body.pull-open .pull-backdrop {
      background: rgba(0,0,0,0.70);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      pointer-events: auto;
    }
    body.is-chrome.pull-open .pull-backdrop {
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      background: rgba(0,0,0,0.92);
    }
    body.at-portfolio .pull-backdrop { display: none; }

    .pull-down-stage {
      --pull-rest:   48px;
      --pull-peek:   102px;
      --pull-height: min(
        calc(min(100vw - clamp(48px, 8vw, 112px), 1168px) * 9 / 16 + 172px),
        90vh
      );
      position: fixed; left: 0; right: 0; top: 0; height: 0;
      overflow: visible; pointer-events: none; z-index: 45;
      will-change: transform;
      transform: translateY(calc(-1 * var(--scroll-offset, 0px)));
    }
    .pull-down-stage[data-state="open"] { z-index: 60; }
    body.at-portfolio .pull-down-stage { display: none; }

    .pull-panel {
      position: absolute; left: 0; right: 0; top: 0;
      height: var(--pull-height);
      background: var(--bg);
      transform: translateY(calc(-1 * (var(--pull-height) - var(--pull-rest))));
      transition: transform 0.58s cubic-bezier(0.22,0.85,0.28,1),
                  background-color 0.58s ease, box-shadow 0.58s ease;
      z-index: 1; overflow: hidden; pointer-events: none;
    }
    .pull-down-stage:not([data-state="open"]):not(.suppress-hover) .pull-panel:has(.pull-arc-hit:hover) {
      transform: translateY(calc(-1 * (var(--pull-height) - var(--pull-peek))));
    }
    .pull-down-stage[data-state="open"] .pull-panel {
      background: #050505;
      transform: translateY(0);
      box-shadow: 0 28px 70px rgba(0,0,0,0.45);
      overflow: visible; pointer-events: auto;
    }

    .pull-panel-inner {
      width: calc(100% - clamp(24px, 4vw, 56px) * 2);
      max-width: calc(1280px - clamp(24px, 4vw, 56px) * 2);
      height: 100%; margin: 0 auto;
      padding: 20px 0 92px;
      display: flex; flex-direction: column;
      align-items: center; justify-content: flex-start;
      opacity: 0; visibility: hidden;
      transform: translateY(-10px); pointer-events: none;
      transition: opacity 0.32s ease, transform 0.42s ease, visibility 0s linear 0.32s;
    }
    .pull-down-stage[data-state="open"] .pull-panel-inner {
      opacity: 1; visibility: visible; transform: translateY(0);
      pointer-events: auto; transition-delay: 0.16s, 0.16s, 0s;
    }

    .pull-title {
      display: inline-flex; align-items: center; justify-content: center;
      background: var(--surf); border: 0.5px solid var(--surf-b);
      border-radius: 10px; padding: 10px 18px;
      backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
      cursor: pointer;
      font-family: 'JetBrains Mono', monospace; font-size: 10px;
      font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
      color: var(--text-dim); line-height: 1;
      transition: color 0.2s, border-color 0.2s, background 0.2s;
    }
    .pull-title:hover { color: var(--text); border-color: var(--accent); }
    .pull-title:focus-visible { outline: none; }

    .pull-slideshow {
      position: relative;
      width: 100%;
      aspect-ratio: 16/9;
      margin-top: 20px; border-radius: 8px; overflow: visible;
    }
    .pull-slideshow img {
      width: 100%; height: 100%; display: block;
      object-fit: cover; object-position: center;
      border-radius: 8px;
      transition: opacity 0.2s ease;
    }
    .pull-slideshow img.pull-slide-loading { opacity: 0; }

    .pull-loader {
      position: absolute; top: 50%; left: 50%;
      width: 80px; height: 80px;
      margin: -40px 0 0 -40px;
      pointer-events: none; z-index: 5;
      opacity: 0; transition: opacity 0.25s;
      perspective: 900px; perspective-origin: 50% 50%;
    }
    .pull-slideshow:has(img.pull-slide-loading) .pull-loader { opacity: 1; }

    /* — Rubik cube loader — */
    .rubik {
      --tile: 14px; --gap: 4px; --step: 18px; --depth: 14px; --half: 7px;
      --cube-face: var(--accent);
      position: absolute; top: 50%; left: 50%;
      width: 32px; height: 32px;
      transform: translate(-50%,-50%) rotateX(-24deg) rotateY(31deg);
      transform-style: preserve-3d;
    }
    .cubie {
      --x: 0px; --y: 0px; --z: 0px;
      --slab-w: var(--tile); --slab-h: var(--tile);
      --half-w: var(--half); --half-h: var(--half);
      position: absolute; left: 0; top: 0;
      width: var(--tile); height: var(--tile);
      transform: translate3d(var(--x),var(--y),var(--z));
      transform-style: preserve-3d;
    }
    .cubie--static { animation: cube-mask 4s step-end infinite; }
    .cubie--l-t-f, .cubie--l-t-b { animation-name: mask-lt; }
    .cubie--r-t-f, .cubie--r-t-b { animation-name: mask-rt; }
    .cubie--l-b-f, .cubie--l-b-b { animation-name: mask-lb; }
    .cubie--r-b-f, .cubie--r-b-b { animation-name: mask-rb; }
    .face {
      position: absolute; left: 50%; top: 50%;
      border-radius: 2px; background: var(--face);
      outline: 1px solid #0d0d0d; backface-visibility: hidden;
    }
    .face--front, .face--back { width: var(--slab-w); height: var(--slab-h); }
    .face--front { --face: var(--cube-face); transform: translate(-50%,-50%) translateZ(var(--half)); }
    .face--back  { --face: var(--cube-face); transform: translate(-50%,-50%) rotateY(180deg) translateZ(var(--half)); }
    .face--left, .face--right { width: var(--depth); height: var(--slab-h); }
    .face--left  { --face: var(--cube-face); transform: translate(-50%,-50%) rotateY(-90deg) translateZ(var(--half-w)); }
    .face--right { --face: var(--cube-face); transform: translate(-50%,-50%) rotateY(90deg) translateZ(var(--half-w)); }
    .face--top, .face--bottom { width: var(--slab-w); height: var(--depth); }
    .face--top    { --face: var(--cube-face); transform: translate(-50%,-50%) rotateX(90deg) translateZ(var(--half-h)); }
    .face--bottom { --face: var(--cube-face); transform: translate(-50%,-50%) rotateX(-90deg) translateZ(var(--half-h)); }
    .layer {
      position: absolute; transform-style: preserve-3d;
      animation: 4s cubic-bezier(.72,0,.28,1) infinite;
      visibility: hidden; will-change: transform;
    }
    .layer--v { width: var(--tile); height: 32px; transform-origin: 50% 50% calc(var(--step) / -2); }
    .layer--h { width: 32px; height: var(--tile); transform-origin: 50% 50% calc(var(--step) / -2); }
    .layer--left   { left: 0; top: 0; animation-name: turn-left; }
    .layer--bottom { left: 0; top: var(--step); animation-name: turn-bottom; }
    .layer--right  { left: var(--step); top: 0; animation-name: turn-right; }
    .layer--top    { left: 0; top: 0; animation-name: turn-top; }

    @keyframes cube-mask { 0%, 100% { visibility: visible; } }
    @keyframes mask-lt {
      0%,7.99%,25%,73.99%,91%,100% { visibility: visible; }
      8%,24.99%,74%,90.99% { visibility: hidden; }
    }
    @keyframes mask-rt {
      0%,51.99%,69%,73.99%,91%,100% { visibility: visible; }
      52%,68.99%,74%,90.99% { visibility: hidden; }
    }
    @keyframes mask-lb {
      0%,7.99%,25%,29.99%,47%,100% { visibility: visible; }
      8%,24.99%,30%,46.99% { visibility: hidden; }
    }
    @keyframes mask-rb {
      0%,29.99%,47%,51.99%,69%,100% { visibility: visible; }
      30%,46.99%,52%,68.99% { visibility: hidden; }
    }
    @keyframes turn-left {
      0%,7.99%   { visibility: hidden; transform: rotateX(0deg); }
      8%,12%     { visibility: visible; transform: rotateX(0deg); }
      22%,24.99% { visibility: visible; transform: rotateX(-90deg); }
      25%,100%   { visibility: hidden; transform: rotateX(-90deg); }
    }
    @keyframes turn-bottom {
      0%,29.99% { visibility: hidden; transform: rotateY(0deg); }
      30%,34%   { visibility: visible; transform: rotateY(0deg); }
      44%,46.99% { visibility: visible; transform: rotateY(90deg); }
      47%,100%  { visibility: hidden; transform: rotateY(90deg); }
    }
    @keyframes turn-right {
      0%,51.99% { visibility: hidden; transform: rotateX(0deg); }
      52%,56%   { visibility: visible; transform: rotateX(0deg); }
      66%,68.99% { visibility: visible; transform: rotateX(90deg); }
      69%,100%  { visibility: hidden; transform: rotateX(90deg); }
    }
    @keyframes turn-top {
      0%,73.99% { visibility: hidden; transform: rotateY(0deg); }
      74%,78%   { visibility: visible; transform: rotateY(0deg); }
      88%,90.99% { visibility: visible; transform: rotateY(-90deg); }
      91%,100%  { visibility: hidden; transform: rotateY(-90deg); }
    }
    @media (prefers-reduced-motion: reduce) {
      .cubie--static, .layer { animation: none; }
    }

    .pull-nav {
      position: absolute; top: 50%; width: 42px; height: 42px;
      padding: 0; border: 0; background: transparent;
      color: var(--accent2); cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transform: translateY(-50%);
      transition: color 0.2s, transform 0.2s, opacity 0.2s;
      opacity: 0.5; z-index: 3;
    }
    .pull-nav:hover { color: #ff523e; opacity: 1; transform: translateY(-50%) scale(1.08); }
    .pull-nav svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
    .pull-prev { left: -68px; padding: 0 14px 0 0; }
    .pull-next { right: -68px; padding: 0 0 0 14px; }
    .pull-nav:focus-visible { outline: none; }

    .pull-arc-hit {
      position: absolute; left: 0; right: 0; bottom: 0; height: 96px;
      border: 0; background: transparent; cursor: pointer; padding: 0;
      z-index: 4; pointer-events: auto;
    }
    .pull-arc-hit:focus-visible { outline: none; }

    .pull-toggle-label {
      position: absolute; left: 50%; bottom: 61px;
      transform: translateX(-50%);
      color: var(--text-dim);
      font-family: 'JetBrains Mono', monospace; font-size: 10px;
      letter-spacing: 0.2em; line-height: 1; text-transform: uppercase;
      opacity: 0; pointer-events: none;
      transition: opacity 0.2s, color 0.2s, transform 0.2s;
    }
    .pull-down-stage:not(.suppress-hover).is-hovering .pull-toggle-label,
    .pull-down-stage:not(.suppress-hover) .pull-arc-hit:hover .pull-toggle-label,
    .pull-down-stage[data-state="open"] .pull-toggle-label { opacity: 1; }
    .pull-down-stage:not([data-state="open"]):not(.suppress-hover) .pull-arc-hit:hover .pull-toggle-label {
      color: var(--accent2); transform: translateX(-50%) translateY(-9px);
    }
    .pull-label-close { display: none; }
    .pull-down-stage[data-state="open"] .pull-label-open  { display: none; }
    .pull-down-stage[data-state="open"] .pull-label-close { display: inline; }
    .pull-down-stage[data-state="open"] .pull-arc-hit:hover .pull-toggle-label { color: var(--accent2); }

    @keyframes arc-breathe {
      0%, 100% { opacity: 0.36; }
      50%       { opacity: 0.92; }
    }
    .pull-arc {
      position: absolute; left: 0; right: 0; bottom: -3px;
      width: 100%; height: 58px; overflow: visible;
      opacity: 0.36; transition: opacity 0.28s ease;
      -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 80%, transparent 100%);
              mask-image: linear-gradient(to right, transparent 0%, black 10%, black 80%, transparent 100%);
    }
    .pull-down-stage:not([data-state="open"]):not(.is-hovering) .pull-arc {
      animation: arc-breathe 10.8s ease-in-out infinite;
    }
    .pull-down-stage:not(.suppress-hover) .pull-panel:has(.pull-arc-hit:hover) .pull-arc,
    .pull-down-stage[data-state="open"] .pull-arc { animation: none; opacity: 1; }
    .pull-glow-line { opacity: 0.78; pointer-events: none; }
    .pull-a1, .pull-a2 { transition: stroke-width 0.28s ease; }
    .pull-down-stage:not([data-state="open"]):not(.suppress-hover) .pull-panel:has(.pull-arc-hit:hover) .pull-a2,
    .pull-down-stage[data-state="open"] .pull-a2 { stroke-width: 1.65; }

    /* ——————————————————————————————————————————————
       CINEMATIC SHOTS — slideshow
    —————————————————————————————————————————————— */
    #page-cinematic { --jump-zone: 64px; --hint-zone: 108px; --pad-y: 10vh; --pad-x: 32px; }

    .d-shell {
      width: 100%; height: 100%;
      position: relative; overflow: hidden;
      background: var(--bg);
    }
    .d-left {
      position: absolute; top: 0; left: 0; bottom: 0; width: 30%;
      background: var(--bg);
      border-right: 0.5px solid rgba(188,195,203,0.12);
      padding: 38px 32px 32px;
      display: flex; flex-direction: column; z-index: 5;
    }
    .d-left-inner { flex: 1; display: flex; flex-direction: column; min-height: 0; }
    .d-left-info  { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding-top: 8px; padding-bottom: 10vh; }
    .d-left-info::-webkit-scrollbar { display: none; }
    .d-eyebrow {
      font-family: 'JetBrains Mono', monospace; font-size: 10px;
      letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim);
      margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
    }
    .d-eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text); opacity: 0.65; }
    .d-title {
      font-family: 'Big Shoulders Display', sans-serif; font-weight: 900;
      font-size: 54px; line-height: 0.92; letter-spacing: -0.015em;
      text-transform: uppercase; color: var(--text); margin-bottom: 18px;
    }
    .d-meta {
      display: flex; gap: 18px;
      font-family: 'JetBrains Mono', monospace; font-size: 10px;
      letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim);
      padding: 10px 0;
      border-top: 0.5px solid rgba(188,195,203,0.12);
      border-bottom: 0.5px solid rgba(188,195,203,0.12);
      margin-bottom: 18px;
      justify-content: space-between;
    }
    .d-meta b { color: var(--text); font-weight: 500; }
    .d-desc { font-size: 13px; line-height: 1.65; color: var(--text); opacity: 0.78; margin-bottom: 22px; }
    .d-thumbs + .d-desc { margin-top: 22px; margin-bottom: 0; }
    .d-desc i { font-style: italic; color: var(--text); font-weight: 500; opacity: 1; }
    .d-thumbs-head {
      font-family: 'JetBrains Mono', monospace; font-size: 9px;
      letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim-2);
      margin-bottom: 22px; display: flex; justify-content: space-between;
    }
    .d-thumbs-head b { color: var(--text-dim); }
    .d-thumbs { position: relative; overflow: hidden; }
    .d-thumbs .t {
      position: absolute; visibility: hidden;
      border-radius: 3px; cursor: pointer;
      display: block; opacity: 0.5; transition: opacity .15s;
    }
    .d-thumbs .t:hover  { opacity: 0.7; outline: none; }
    .d-thumbs .t.active { opacity: 1; outline: none; }

    .d-right {
      position: absolute; top: 0; right: 0; bottom: 0; width: 70%;
      overflow-y: auto; overflow-x: hidden;
      scroll-snap-type: y mandatory;
      scrollbar-width: thin; scrollbar-color: rgba(188,195,203,0.15) transparent;
    }
    .d-right::-webkit-scrollbar { width: 6px; }
    .d-right::-webkit-scrollbar-thumb { background: rgba(188,195,203,0.15); border-radius: 3px; }

    .d-series {
      height: 100vh; scroll-snap-align: start;
      position: relative; padding: 15vh var(--pad-x) 5vh;
      display: flex; flex-direction: column;
    }
    .d-frame {
      flex: 1; border-radius: 6px;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      position: relative; overflow: hidden; min-height: 0;
    }
    .d-spacer-bottom { height: var(--hint-zone); flex-shrink: 0; }

    .d-jump {
      position: absolute;
      left: 65%; transform: translateX(-50%);
      width: 42px; height: 42px; border-radius: 50%;
      background: rgba(13,13,13,0.7);
      border: 0.5px solid var(--surf-b);
      display: flex; align-items: center; justify-content: center;
      color: var(--text);
      font-family: 'JetBrains Mono', monospace; font-size: 15px;
      cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
      z-index: 20; opacity: 0; pointer-events: none;
      transition: opacity .25s, background .15s, border-color .15s;
    }
    .d-jump.visible { opacity: 1; pointer-events: auto; }
    .d-jump:hover { background: rgba(188,195,203,0.10); border-color: var(--text-dim); }
    .d-jump.top    { top: 18px; }
    .d-jump.bottom { bottom: 18px; }
    .d-jump .label { display: none; }

    .scroll-hint {
      cursor: pointer; background: none; border: none; outline: none;
      position: absolute; left: 50%; transform: translateX(-50%);
      font-family: 'JetBrains Mono', monospace; font-size: 9px;
      letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim);
      background: rgba(188,195,203,0.05); padding: 6px 14px; border-radius: 3px;
      pointer-events: auto; z-index: 10;
      animation: hintFade 2.4s ease-in-out infinite;
    }
    .scroll-hint.bottom { bottom: calc(2.5vh + 63px); cursor: default; }
    .scroll-hint.top    { top: calc(7.5vh + 9px); }
    @keyframes hintFade { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

    .d-left-bottom { margin-top: auto; display: flex; justify-content: center; padding-top: 32px; }
    .d-back {
      display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
      background: var(--surf); border: 0.5px solid var(--surf-b);
      padding: 11px 18px; border-radius: 8px;
      font-family: 'JetBrains Mono', monospace; font-size: 10px;
      letter-spacing: 0.16em; text-transform: uppercase;
      color: var(--text-dim); text-decoration: none;
      transition: color .2s, border-color .2s; min-width: 220px; cursor: pointer;
      background: none; border: 0.5px solid var(--surf-b);
    }
    .d-back:hover { color: var(--text); border-color: var(--text-dim); }
    .d-back .arr  { color: var(--text-dim); transition: color .2s; font-size: 13px; }
    .d-back:hover .arr { color: var(--text); }

    /* ——————————————————————————————————————————————
       MOBILE INTEGRATION LAYER — max-width: 767px
       Keep this block at the end of the stylesheet.
    —————————————————————————————————————————————— */
    @media (max-width: 767px) {
      html {
        -webkit-text-size-adjust: 100%;
      }

      body,
      #page-main,
      #page-portfolio,
      #portfolio-v-root,
      #page-cinematic,
      #portfolio-landing,
      #page-gallery {
        width: 100%;
        max-width: 100%;
      }

      #page-main {
        --mobile-block-gap: 28px;
        --mobile-edge-gap: 20px;
        --mobile-photo-top-gap: 6px;
        --mobile-photo-bottom-gap: 12px;
        --mobile-photo-pullup: 14px;
        --mobile-drawer-gap: 28px;
      }

      #page-main > div:first-child {
        margin-top: 0;
        padding-bottom: 0;
      }

      #page-main,
      #page-portfolio,
      #gal-scroll,
      .d-left-info,
      .d-right {
        -webkit-overflow-scrolling: touch;
      }

      img,
      svg,
      canvas,
      video {
        max-width: 100%;
      }

      .wrap {
        width: 100%;
        padding-left: clamp(18px, 5.4vw, 28px);
        padding-right: clamp(18px, 5.4vw, 28px);
      }

      .btn-pill,
      .btn-primary-dark,
      .btn-outline-dark,
      .btn-outline-light,
      .s-btn,
      .d-back {
        min-height: 42px;
      }

      #menu-btn-hero {
        top: 29px;
        right: 18px;
        max-width: 54px !important;
        padding: 11px 18px;
        gap: 10px;
      }

      body.page-scrolled #menu-btn-hero,
      #menu-btn-hero:hover,
      body.at-portfolio #menu-btn-hero:hover {
        max-width: 54px !important;
      }

      #menu-denbych {
        display: none;
      }

      /* top hero */
      #page-main > div:first-child > .wrap > div:first-child {
        padding: 58px 0 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 24px !important;
      }

      #page-main > div:first-child > .wrap > div:first-child > div:first-child {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
      }

      #clock {
        order: 3;
        height: 0;
        line-height: 1.2;
        overflow: visible;
        margin-top: 8px !important;
        margin-left: 14px !important;
        margin-bottom: 0 !important;
      }

      #hero-name {
        order: 1;
        font-size: 68px !important;
        line-height: 0.96 !important;
        letter-spacing: -0.025em !important;
      }

      #hero-name + div {
        order: 2;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 10px !important;
        margin-top: var(--mobile-block-gap) !important;
        max-width: 100%;
      }

      #hero-name + div > div:first-child {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: space-between;
        padding: 10px 14px !important;
        gap: 10px !important;
      }

      #hero-name + div > div:first-child > a:first-child {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      #geo-link {
        min-width: 0;
        gap: 10px !important;
      }

      #geo-label {
        display: inline-block;
        max-width: min(35vw, 150px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      #settings-btn,
      .now-playing-btn {
        padding: 11px 13px !important;
      }

      .settings-label,
      .now-playing-label {
        display: none;
      }

      .spotify-widget-full {
        display: none !important;
      }

      /* settings and now-playing drawers */
      #settings-wrap.open {
        max-height: 640px;
      }

      #settings-panel {
        max-width: none;
        padding: var(--mobile-drawer-gap) clamp(18px, 5.4vw, 28px) 0;
        flex-direction: column;
        gap: 22px;
        align-items: stretch;
      }

      .s-top {
        flex-direction: column;
        gap: 22px;
      }

      .s-col,
      .s-picker-col {
        width: 100%;
        min-width: 0;
        flex: none;
      }

      .s-footer {
        flex-wrap: wrap;
        justify-content: flex-start;
      }

      /* 561–767px: wider block, sliders/picker 360px centered, buttons 1 row */
      @media (min-width: 561px) {
        #settings-panel {
          max-width: 100%;
          align-items: center;
          gap: 14px;
        }
        .s-top {
          align-items: center;
        }
        .s-col, .s-picker-col { width: 360px; flex: none; }
        .s-footer { flex-wrap: nowrap; }
      }

      /* ≤560px: full width, buttons 2 per row */
      @media (max-width: 560px) {
        #hero-name {
          font-size: clamp(42px, 15.2vw, 68px) !important;
        }

        .s-footer {
          display: grid;
          grid-template-columns: 1fr 1fr;
        }
      }

      #np-panel {
        padding: var(--mobile-drawer-gap) clamp(18px, 5.4vw, 28px) 0;
      }

      #np-panel .np-widget {
        width: 100% !important;
        max-width: 360px;
      }

      /* about */
      #about-section {
        min-height: 0 !important;
        margin-top: calc(-1 * var(--mobile-photo-pullup)) !important;
        padding: var(--mobile-photo-top-gap) 0 0 !important;
      }

      #about-photo-wrap {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: unset !important;
        margin-bottom: var(--mobile-photo-bottom-gap) !important;
        border-radius: 10px !important;
        overflow: hidden !important;
      }

      #about-photo {
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        height: 100% !important;
      }

      #about-title {
        width: 100% !important;
        max-width: 100% !important;
      }

      #about-lines {
        width: 90% !important;
        max-width: 90% !important;
        margin-bottom: var(--mobile-block-gap) !important;
      }

      #about-title > div:nth-child(1),
      #about-title > div:nth-child(2) {
        font-size: clamp(32px, 10.4vw, 44px) !important;
        line-height: 1.08 !important;
      }

      #about-title > div:nth-child(3) {
        margin-bottom: var(--mobile-block-gap) !important;
      }

      #about-lines {
        gap: 0 !important;
        font-size: 14px !important;
        line-height: 1.55 !important;
      }

      .about-line {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.55 !important;
        padding: 2px 0 !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        -webkit-mask-image: none;
        mask-image: none;
      }

      .about-accent {
        font-size: 22px;
        line-height: 0;
      }

      /* timeline */
      #section-mypath {
        margin-top: var(--mobile-block-gap) !important;
        margin-bottom: var(--mobile-block-gap) !important;
      }

      .timeline-wrap {
        flex-direction: column;
        min-height: 0;
        margin-bottom: 0 !important;
      }

      .timeline-curve-side {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 1;
        height: auto;
        min-height: 0;
        align-self: center;
      }

      .timeline-text-side {
        width: 100%;
        min-height: 110px;
        padding: 16px 0 0;
        align-items: center !important;
        justify-content: flex-start;
        text-align: center;
        margin-bottom: var(--mobile-block-gap);
      }

      .timeline-hint {
        max-width: 100%;
        font-size: 12px;
        line-height: 1.75;
        text-align: center;
      }

      .timeline-year {
        text-align: center;
        transform: translateY(-12px);
      }

      .timeline-desc {
        font-size: 14px;
        line-height: 1.9;
        text-align: center;
        transform: translateY(-12px);
      }

      .timeline-reset {
        position: relative !important;
        left: auto !important;
        bottom: auto !important;
        top: auto !important;
        align-self: center !important;
        margin-top: 12px;
      }

      .tl-html-label {
        font-size: 12px;
      }

      /* photographer / film strip */
      #denbych-section {
        padding: var(--mobile-edge-gap) 0 0 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: var(--mobile-block-gap) !important;
      }

      #denbych-section > div:first-child {
        width: 100%;
      }

      #denbych-title {
        font-size: clamp(64px, 22vw, 94px) !important;
        max-width: 100%;
        overflow-wrap: anywhere;
      }

      #denbych-section .film-box {
        width: 100%;
        height: 150px;
        margin-top: 12px;
      }

      .film-strip {
        --film-frame-width: 112px;
        --film-frame-gap: 8px;
      }

      .film-track {
        padding: 10px 0;
        transform: translateX(220px);
      }

      .film-frame {
        height: 124px;
        margin: 0 4px;
      }

      .film-perf {
        height: 10px;
        background-size: 18px 100%;
      }

      .film-sep {
        flex-basis: 7px;
      }

      .film-reel {
        flex-basis: 56px;
        padding: 0 8px;
        gap: 7px;
      }

      .film-reel-title {
        font-size: 12px;
      }

      .film-reel-sub {
        display: none;
      }

      /* clients */
      #section-clients {
        grid-template-columns: 1fr;
      }

      .collab-left {
        max-height: none;
        aspect-ratio: 4 / 3;
        border-radius: 10px;
      }

      .collab-right {
        padding: 34px 0 50px;
        text-align: left;
      }

      .collab-title {
        font-size: clamp(40px, 14vw, 58px);
      }

      .collab-sub {
        margin-bottom: 24px;
      }

      .collab-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(3, 44px);
        grid-auto-rows: 44px;
        gap: 14px 16px;
        justify-items: center;
        align-items: center;
      }

      .collab-logo {
        align-self: center;
        justify-self: center;
        width: 100%;
        min-height: 44px;
        height: 44px;
        margin-top: 0 !important;
        -webkit-mask-position: center center;
        mask-position: center center;
        -webkit-mask-size: var(--logo-size, contain);
        mask-size: var(--logo-size, contain);
      }

      .collab-logo:nth-child(1) { --logo-size: 86px auto; }
      .collab-logo:nth-child(2) { --logo-size: 86px auto; }
      .collab-logo:nth-child(3) { --logo-size: auto 42px; }
      .collab-logo:nth-child(4) { --logo-size: auto 44px; }
      .collab-logo:nth-child(5) { --logo-size: auto 42px; }
      .collab-logo:nth-child(6) { --logo-size: 86px auto; }
      .collab-logo:nth-child(7) { --logo-size: 76px auto; }
      .collab-logo:nth-child(8) { --logo-size: 86px auto; }
      .collab-logo:nth-child(9) { --logo-size: auto 44px; }

      /* divider */
      .divider-section {
        height: 340px;
        margin-top: var(--mobile-block-gap) !important;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 36px, black calc(100% - 36px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 36px, black calc(100% - 36px), transparent 100%);
      }

      .divider-hero {
        padding: 0 clamp(20px, 7vw, 32px);
      }

      .dh-1 {
        font-size: 13px;
        margin-bottom: 14px;
      }

      .dh-2 {
        font-size: clamp(82px, 30vw, 124px);
        letter-spacing: 0.12em;
        margin-bottom: 10px;
      }

      .dh-3 {
        font-size: 24px;
      }

      .dh-3 em {
        font-size: 30px;
      }

      .dh-4 {
        font-size: clamp(34px, 12vw, 48px);
        letter-spacing: 0.14em;
      }

      /* stack */
      #section-mystack {
        padding: var(--mobile-block-gap) 0 0 !important;
      }

      .stk-board {
        margin-bottom: 38px;
      }

      .stk-board:last-child {
        margin-bottom: 0;
      }

      .stk-board-head,
      .stk-board-label {
        gap: 8px;
      }

      .stk-board-count {
        font-size: 9px;
      }

      .stk-col-heads,
      .stk-row {
        grid-template-columns: minmax(50px, 0.58fr) minmax(0, 1fr) minmax(56px, 0.62fr);
        column-gap: 10px;
      }

      .stk-col-heads {
        font-size: 8px;
        letter-spacing: 0.1em;
      }

      .stk-row {
        padding: 13px 0;
      }

      .stk-code {
        font-size: 9px;
        letter-spacing: 0.08em;
      }

      .stk-name {
        min-width: 0;
        font-size: 13px;
        line-height: 1.25;
        overflow-wrap: anywhere;
      }

      .stk-usage {
        font-size: 9px;
        letter-spacing: 0.08em;
      }

      .stk-show-link {
        font-size: 10px;
      }

      /* nerd block */
      #section-nerd {
        padding: var(--mobile-block-gap) 0 12px !important;
      }

      #section-nerd > div {
        border-radius: 16px !important;
      }

      .nerd-site {
        padding: 30px clamp(16px, 5vw, 22px);
      }

      .wt {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding-bottom: 28px;
        margin-bottom: 28px;
      }

      .wt h3 {
        font-size: clamp(28px, 10vw, 42px);
      }

      .wt .email {
        max-width: 100%;
        font-size: clamp(14px, 4.6vw, 18px);
        overflow-wrap: anywhere;
      }

      .nerd-title {
        font-size: clamp(17px, 6.2vw, 24px);
        line-height: 1.35;
        margin-bottom: 10px;
        padding-bottom: 0;
      }

      .nerd-sub {
        font-size: 13px;
        margin-bottom: var(--mobile-block-gap);
      }

      .nerd-board {
        grid-template-columns: 1fr;
        padding: 12px;
      }

      .nerd-card,
      .nerd-card.span2 {
        grid-column: auto;
      }

      .nerd-card {
        padding: 14px;
        font-size: 11px;
        line-height: 1.6;
      }

      .nerd-card h5 {
        font-size: 11px;
      }

      .stat .big {
        font-size: 26px;
      }

      .service {
        grid-template-columns: 1fr;
        gap: 7px;
      }

      .bot-row {
        grid-template-columns: minmax(0, 1fr) 18px;
        gap: 3px 8px;
        align-items: center;
      }

      .bots .nm,
      .bots .nt,
      .bots .ip {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        overflow-wrap: anywhere;
      }

      .bots .ds {
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
      }

      .bots .op {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
      }

      .expand-btn {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px 16px;
        font-size: 10px;
        letter-spacing: 0.12em;
      }

      .projects-panel.open {
        max-height: 3000px;
        padding-top: 24px;
        margin-top: 24px;
      }

      .proj-group-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }

      .proj-group-head .meta {
        margin-left: 0;
      }

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

      .proj-foot {
        flex-wrap: wrap;
      }

      /* contact */
      #section-contact .wrap {
        padding-top: 52px !important;
        padding-bottom: 60px !important;
      }

      #section-contact .wrap > div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 28px !important;
      }

      #footer-headline {
        font-size: clamp(30px, 9.6vw, 40px) !important;
        line-height: 1.12 !important;
      }

      #section-contact .wrap > div > div:last-child {
        width: 100%;
      }

      #section-contact .btn-primary-dark,
      #section-contact .btn-pill {
        width: 100%;
      }

      /* menu overlay */
      #menu-overlay .wrap {
        padding-left: 18px;
        padding-right: 18px;
      }

      #menu-overlay .wrap > div:first-child {
        padding-top: 29px !important;
      }

      #menu-btn-close {
        width: 54px;
        min-width: 54px;
        max-width: 54px;
        padding: 11px 18px;
      }

      #menu-overlay .wrap > div:nth-child(2) {
        align-items: flex-start !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 24px !important;
      }

      #menu-overlay nav {
        width: 100%;
        align-items: flex-start !important;
        gap: 9px !important;
      }

      .menu-item {
        font-size: clamp(36px, 12.5vw, 58px);
        line-height: 0.98;
        white-space: normal;
        text-align: left;
      }

      #menu-overlay nav + div {
        position: static !important;
        transform: none !important;
        width: 100%;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center !important;
        gap: 8px !important;
      }

      .menu-icon {
        width: 46px;
        height: 42px;
        padding: 9px 12px;
        border-radius: 10px;
      }

      /* portfolio landing */
      .portfolio-nav-rail {
        height: 100px;
      }

      .portfolio-hero-cta {
        max-width: 100%;
        gap: 8px;
        padding: 0 14px;
        font-size: clamp(16px, 5.8vw, 23px);
        letter-spacing: 0.09em;
      }

      .portfolio-arr-circ {
        width: 25px;
        height: 25px;
        font-size: 11px;
      }

      .portfolio-back-btn {
        top: 29px;
        left: 18px;
        padding: 10px 14px;
      }

      .pb-stage {
        top: 100px;
        bottom: 100px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-content: start;
        align-items: stretch;
        gap: var(--mobile-block-gap);
        overflow-y: auto;
        overflow-x: hidden;
        padding: var(--mobile-block-gap) clamp(18px, 5vw, 24px) calc(var(--mobile-block-gap) * 2);
      }

      .pb-left {
        --pb-left-gap: 12px;
        justify-content: flex-start;
        gap: var(--pb-left-gap);
      }

      .pb-name-row {
        align-items: flex-start;
        gap: 12px;
      }

      .pb-logo {
        width: clamp(64px, 19vw, 82px);
        height: clamp(64px, 19vw, 82px);
      }

      .pb-eyebrow {
        font-size: 8px;
        letter-spacing: 0.13em;
        line-height: 1.45;
      }

      .pb-headline,
      .pb-subhead {
        font-size: clamp(34px, 15cqw, 52px);
      }

      .pb-bio {
        font-size: 12px;
        line-height: 1.48;
      }

      .pb-actions {
        flex-wrap: wrap;
        margin-top: var(--mobile-block-gap);
      }

      .pb-contact-main {
        font-size: clamp(22px, 7.2vw, 30px);
      }

      .pb-right {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        align-self: stretch;
        justify-content: flex-start;
        gap: 8px;
        margin-top: var(--mobile-block-gap);
      }

      .pb-row-head {
        font-size: 8px;
        letter-spacing: 0.12em;
      }

      .pb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: minmax(106px, auto);
        column-gap: 6px;
        row-gap: 6px;
        flex: 0 0 auto;
      }

      .pb-cell,
      .pb-cell-main {
        grid-row: auto;
        min-height: 106px;
      }

      .pb-cell .info {
        padding: 7px;
      }

      .pb-cell .ttl {
        font-size: 10px;
      }

      .pb-cell .desc,
      .pb-cell .yr {
        display: none;
      }

      .pb-see-all {
        grid-column: 1 / -1;
        height: 50px;
        min-height: 50px;
        padding: 10px 12px;
        border-radius: 6px;
        font-size: 14px;
      }

      .pb-see-all .arr {
        font-size: 10px;
      }

      .pb-neutrinos {
        display: none;
      }

      /* gallery */
      #gal-head {
        --gal-title-size: clamp(44px, 15vw, 64px);
        --gal-title-center-y: 50px;
        flex-basis: auto;
        min-height: 0;
        gap: 8px;
        padding-top: calc(var(--gal-title-center-y) + (var(--gal-title-size) / 2) + 8px);
        padding-bottom: calc(var(--gal-title-center-y) - (var(--gal-title-size) / 2));
      }

      #gal-head-title {
        font-size: var(--gal-title-size);
      }

      #gal-lb-wrap {
        max-width: calc(100% - 32px);
        max-height: calc(100svh - 96px);
      }

      #gal-lb-img {
        max-height: calc(100svh - 96px);
      }

      #gal-lb-wrap .pull-prev {
        left: 4px;
      }

      #gal-lb-wrap .pull-next {
        right: 4px;
      }

      #gal-photo-close {
        top: 29px !important;
        right: 20px !important;
      }

      .gal-close-btn {
        width: 54px;
        min-width: 54px;
        gap: 0;
      }

      .gal-close-label {
        display: none;
      }

      #gal-back-home {
        top: 29px !important;
        left: 20px !important;
      }

      .gal-back-btn {
        width: 54px;
        min-width: 54px;
        gap: 0;
      }

      .gal-back-btn .arr {
        opacity: 0.4 !important;
        color: var(--text) !important;
      }

      .gal-back-label {
        display: none;
      }

      /* cinematic details */
      #page-cinematic {
        --pad-x: 18px;
        --hint-zone: 62px;
      }

      .d-left {
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: 42vh;
        height: 42svh;
        min-height: 270px;
        padding: 22px 18px 16px;
        border-right: 0;
        border-bottom: 0.5px solid rgba(188,195,203,0.12);
      }

      .d-left-info {
        padding-top: 0;
        padding-bottom: 16px;
      }

      .d-title {
        font-size: clamp(34px, 12vw, 48px);
        line-height: 0.95;
        margin-bottom: 14px;
      }

      .d-meta {
        flex-wrap: wrap;
        gap: 8px 14px;
        font-size: 9px;
        letter-spacing: 0.1em;
      }

      .d-desc {
        font-size: 12px;
        line-height: 1.55;
        margin-bottom: 16px;
      }

      .d-thumbs-head {
        margin-bottom: 12px;
      }

      .d-left-bottom {
        padding-top: 12px;
      }

      .d-back {
        width: 100%;
        min-width: 0;
      }

      .d-right {
        top: 270px;
        top: max(42svh, 270px);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
      }

      .d-series {
        height: calc(100vh - 270px);
        height: calc(100svh - max(42svh, 270px));
        min-height: 340px;
        padding: 42px var(--pad-x) 28px;
      }

      .d-frame {
        border-radius: 5px;
      }

      .d-jump {
        left: 50%;
        width: 38px;
        height: 38px;
      }

      .d-jump.top {
        top: 278px;
        top: calc(max(42svh, 270px) + 8px);
      }

      .d-jump.bottom {
        bottom: 10px;
      }

      .scroll-hint {
        display: none;
      }

      /* cinematic pull-down */
      .pull-down-stage {
        --pull-rest: 80px;
        --pull-peek: 80px;
        --pull-height: min(calc((100vw - 36px) * 9 / 16 + 102px), 82svh);
      }

      .pull-down-stage:not([data-state="open"]) .pull-panel {
        background: transparent;
      }

      .pull-panel-inner {
        width: calc(100% - 36px);
        padding: 2px 0 71px;
      }

      #cinematic-pull[data-state="open"] .pull-panel-inner {
        padding-top: 20px;
      }

      .pull-title {
        max-width: 100%;
        padding: 10px 14px;
        font-size: 9px;
        letter-spacing: 0.1em;
        transform: translateY(-2px);
      }

      .pull-slideshow {
        margin-top: 12px;
        overflow: hidden;
      }

      .pull-nav {
        width: 34px;
        height: 34px;
        opacity: 0.82;
      }

      .pull-nav:hover {
        transform: translateY(-50%);
      }

      .pull-nav svg {
        width: 24px;
        height: 24px;
      }

      .pull-prev {
        left: 4px;
        padding: 0;
      }

      .pull-next {
        right: 4px;
        padding: 0;
      }

      /* cinematic mobile feed */
      #page-cinematic {
        --pad-x: 0px;
      }

      #page-cinematic .d-shell {
        overflow: hidden;
      }

      #page-cinematic .d-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
        align-content: start;
        height: 100%;
        padding: 18px clamp(16px, 5vw, 22px) 28px;
        overflow-y: auto;
        overflow-x: hidden;
      }

      #page-cinematic .d-left,
      #page-cinematic .d-left-inner,
      #page-cinematic .d-left-info,
      #page-cinematic .d-info-pane.is-active {
        display: contents !important;
      }

      #page-cinematic .d-info-pane:not(.is-active) {
        display: none !important;
      }

      #page-cinematic .d-eyebrow {
        order: 1;
        margin-bottom: 10px;
      }

      #page-cinematic .d-title {
        order: 2;
        margin-bottom: 12px;
      }

      #page-cinematic .d-meta {
        order: 3;
        margin-bottom: 0;
      }

      /* Скрываем десктопную оболочку, показываем мобильный layout */
      #page-cinematic .d-shell { display: none !important; }
      #page-cinematic #dLeftInfo,
      #page-cinematic #dRight,
      #page-cinematic .d-left-bottom { display: none !important; }

      .cm-back {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px clamp(16px, 5vw, 22px);
        background: var(--bg);
        display: flex;
        justify-content: center;
        align-items: center;
        border: none;
        cursor: pointer;
        z-index: 20;
      }
      .cm-back-pill {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 11px 18px;
        border-radius: 8px;
        border: 0.5px solid var(--surf-b);
        font-family: 'JetBrains Mono', monospace;
        font-size: 10px;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--text-dim);
        min-width: 220px;
      }
      .cm-back-pill .arr { font-size: 13px; color: var(--text-dim); }

      #cinematic-mobile {
        position: absolute;
        inset: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 29px clamp(16px, 5vw, 22px) calc(106px + var(--mobile-block-gap, 28px));
      }

      .cm-series {
        margin-bottom: 60px;
      }
      .cm-series:last-child { margin-bottom: 0; }

      .cm-eyebrow {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 11px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--text-dim);
        margin-bottom: 8px;
      }
      .cm-eyebrow .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--text);
        flex-shrink: 0;
      }

      .cm-title {
        font-size: clamp(22px, 6vw, 30px);
        font-weight: 800;
        letter-spacing: -0.02em;
        line-height: 1.1;
        margin: 0 0 6px;
        color: var(--text);
      }

      .cm-meta {
        display: flex;
        gap: 12px;
        font-size: 12px;
        letter-spacing: 0.06em;
        color: var(--text-dim);
        margin-bottom: 14px;
      }

      .cm-photo-wrap {
        width: 100%;
        aspect-ratio: 1;
        display: flex;
        flex-direction: row;
        overflow-x: scroll;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        border-radius: 8px;
      }
      .cm-photo-wrap::-webkit-scrollbar { display: none; }

      .cm-frame {
        min-width: 100%;
        flex-shrink: 0;
        scroll-snap-align: start;
        border-radius: 8px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
      }

      @media (max-width: 399px) {
        .cm-photo-wrap {
          background: var(--bg);
          clip-path: inset(0 2px round 8px);
        }
      }

      .cm-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 12px 0 6px;
      }
      .cm-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        background: var(--text);
        opacity: 0.25;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
        transition: opacity 0.25s, transform 0.25s, background 0.25s;
      }
      .cm-dot.active {
        opacity: 1;
        background: var(--text);
        transform: scale(1.4);
      }

      .cm-desc {
        margin-top: 6px;
        font-size: 13px;
        line-height: 1.75;
        color: var(--text-dim);
      }
      .cm-desc p { margin: 0 0 12px; }
      .cm-desc p:last-child { margin-bottom: 0; }


      .timeline-curve-side {
        cursor: pointer;
      }

      .timeline-curve-side.has-pinned-marker .tl-html-label.tl-pinned {
        opacity: 1 !important;
      }

      /* hero pill */
      #hero-name + div {
        flex-wrap: nowrap !important;
      }
      #hero-name + div > div:first-child {
        flex: 0 1 auto !important;
        min-width: 0;
        width: auto !important;
        justify-content: flex-start !important;
      }
      #settings-btn,
      .now-playing-btn {
        flex: 0 0 44px !important;
        width: 44px !important;
        min-width: 44px !important;
        justify-content: center !important;
        padding: 11px !important;
      }

      /* about photo */
      #about-photo-wrap {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        overflow: hidden !important;
        border-radius: 10px !important;
        margin-bottom: var(--mobile-photo-bottom-gap) !important;
      }
      #about-photo {
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 3 / 2 !important;
        object-fit: cover !important;
        object-position: center center !important;
      }

      /* clients photo */
      .collab-left {
        display: none !important;
      }

      /* cinematic linear layout */
      #page-cinematic .d-shell {
        display: flex !important;
        flex-direction: column !important;
        align-content: unset !important;
        grid-template-columns: unset !important;
        grid-auto-rows: unset !important;
      }

      #page-cinematic .d-right {
        position: static !important;
        order: 4;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 10px 0 0 !important;
        overflow: visible !important;
        scroll-snap-type: none !important;
        border-radius: 0 !important;
      }

      #page-cinematic .d-series {
        height: 68svh !important;
        min-height: 320px !important;
        padding: 0 !important;
        scroll-snap-align: none !important;
        margin-bottom: 6px;
      }

      #page-cinematic .d-frame {
        height: 100% !important;
        min-height: 100% !important;
        border-radius: 4px !important;
        touch-action: pan-y !important;
      }

      #page-cinematic .d-thumbs-head,
      #page-cinematic .d-thumbs {
        display: none !important;
      }

      /* portfolio cards */
      .pb-cell .cv {
        aspect-ratio: 3 / 2;
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
      }
      .pb-cell .cv img {
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        width: calc(100% + 6px) !important;
        height: calc(100% + 6px) !important;
        object-fit: cover !important;
        transform: translate(-50%, -50%) !important;
      }
      .pb-cell,
      .pb-cell-main {
        min-height: 0 !important;
      }
      .pb-cell.c5 {
        grid-column: 1 / -1 !important;
      }
      .pb-cell.c5 .cv {
        aspect-ratio: 3 / 1 !important;
      }
      .pb-cell.c5 .cv img {
        object-position: center calc(50% - 50px);
      }
      .pb-grid {
        grid-auto-rows: auto !important;
      }
      .pb-cell .desc {
        display: -webkit-box !important;
        margin-top: 3px;
        font-size: 9px;
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }
      .pb-cell .yr {
        display: block !important;
        margin-top: 4px;
        font-size: 9px;
      }

      /* portfolio columns spacing */
      .pb-left {
        margin-bottom: calc(var(--mobile-block-gap) * 2) !important;
      }

      .pb-right {
        margin-top: calc(var(--mobile-block-gap) * 2) !important;
      }

      /* portfolio Behance button */
      .pb-see-all {
        grid-column: 1 / -1 !important;
        justify-self: start;
        width: 60%;
        min-width: 0;
        height: clamp(52px, 7vh, 64px) !important;
        min-height: 52px !important;
        margin-top: 18px !important;
      }

      .pb-right::after {
        content: '';
        display: block;
        height: calc(var(--mobile-block-gap) * 2);
        flex: 0 0 auto;
      }

      /* pull-down arc */
      #cinematic-pull .pull-arc {
        opacity: 1 !important;
        animation: none !important;
        transition: none !important;
      }
      #cinematic-pull:not([data-state="open"]) .pull-panel {
        transform: translateY(calc(-1 * (var(--pull-height) - var(--pull-rest)))) !important;
      }
      #cinematic-pull .pull-a2 {
        stroke-width: 1.65 !important;
      }
      #cinematic-pull .pull-toggle-label {
        opacity: 1 !important;
        color: var(--accent2) !important;
        top: 29px !important;
        bottom: auto !important;
        transform: translateX(-50%) !important;
        transition: none !important;
      }
      #cinematic-pull[data-state="open"] .pull-toggle-label {
        top: 41px !important;
      }
      #cinematic-pull[data-state="open"] .pull-arc {
        bottom: -13px !important;
      }

      /* timeline to film gap */
      .wrap #denbych-section {
        padding-top: var(--mobile-edge-gap) !important;
      }

      /* film to clients gap */
      .wrap:has(#section-clients) {
        margin-top: var(--mobile-block-gap) !important;
      }

      /* clients bottom spacing */
      .wrap .collab-right {
        padding-bottom: 28px !important;
      }
    }
