/* ════════════════════════════════════════════════════════
   GEORGE NOSAL — UNIFIED STYLESHEET
   All text-transform: lowercase by default.
   Use class .cap-first on elements where first letter should be uppercase.
   ════════════════════════════════════════════════════════ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@100;200;300&display=swap');

@font-face {
    font-family: 'Coolvetica';
    src: url('Coolvetica.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OnlyTrue';
    src: url('OnlyTrue-Neutral.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ── TOKENS ── */
:root {
    --bg:       #000;
    --fg:       #fff;
    --dim:      rgba(255, 255, 255, 0.836);
    --dim2:     rgba(255, 255, 255, 0.494);
    --line:     rgba(255, 255, 255, 0.048);
    --accent:   rgba(255, 255, 255, 0.471);
    --glow:     rgba(255,255,255,0.18);
    --font:     'Futura', 'Century Gothic', sans-serif;
    --font-nav: 'Raleway', sans-serif;
    --ease:     cubic-bezier(0.4, 0, 0.2, 1);

    /* ── Expertise category palette ── */
    --cat-business:   #E8922A;
    --cat-creativity: #C94878;
    --cat-computing:  #4A8FD4;
    --cat-technology: #3D9E7F;
    --cat-society:    #8468CC;
}

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

/* ── BASE ── */
html, body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-weight: normal;
    text-transform: lowercase;
    -webkit-font-smoothing: antialiased;
}

/* ── FIRST-LETTER CAPITALISATION ── */
.cap-first::first-letter {
    text-transform: uppercase;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

/* ═══════════════════════════════════════════
   SHARED COMPONENTS
   ═══════════════════════════════════════════ */

/* ── PAGE TRANSITION OVERLAY ── */
#page-transition {
    position: fixed; inset: 0;
    background: #000;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 1, 1);
}
#page-transition.active {
    opacity: 1;
    pointer-events: auto;
}

/* Fade in on page load for inner pages */
.page-fade-in {
    animation: pageFadeIn 0.5s cubic-bezier(0, 0, 0.2, 1) both;
}
@keyframes pageFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── CUSTOM CURSOR (desktop only) ── */
@media (pointer: fine) {
    body { cursor: none; }
}

#cursor {
    position: fixed;
    width: 8px; height: 8px;
    background: var(--fg);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.22s var(--ease), height 0.22s var(--ease), opacity 0.2s;
    will-change: transform;
}
#cursor.big   { width: 44px; height: 44px; background: rgba(255,255,255,0.12); }
#cursor.small { width: 4px;  height: 4px; }

/* ── G NAV TRIGGER (top centre) ── */
#g-nav-trigger {
    position: fixed;
    top: 28px; left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    cursor: none;
    width: 48px; height: 48px;
    transition: filter 0.35s var(--ease);
}

#g-nav-trigger:hover {
    filter:
        drop-shadow(0 0 6px rgba(255,255,255,0.9))
        drop-shadow(0 0 18px rgba(255,255,255,0.45))
        drop-shadow(0 0 40px rgba(255,255,255,0.2));
}

#g-canvas { width: 100%; height: 100%; display: block; }

/* ── NAV MENU LINES HINT (right of G nav) ── */
#nav-menu-lines {
    position: fixed;
    top: 28px;
    left: calc(50% + 36px);
    height: 48px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

#nav-menu-lines span {
    display: block;
    height: 1px;
    background: rgba(255,255,255,0.3);
    border-radius: 1px;
    transition: background 0.3s var(--ease), width 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#nav-menu-lines span:nth-child(1) { width: 18px; }
#nav-menu-lines span:nth-child(2) { width: 11px; }
#nav-menu-lines span:nth-child(3) { width: 15px; }

#g-nav-trigger:hover ~ #nav-menu-lines span,
#g-nav-trigger:focus ~ #nav-menu-lines span,
#nav-menu-lines:hover span {
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 6px rgba(255,255,255,0.9), 0 0 18px rgba(255,255,255,0.45), 0 0 40px rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    #nav-menu-lines { display: none; }
}

/* ── HOME LOGO (top centre, p.html only) ── */

#home-logo {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: auto;
    cursor: none;
}
#home-logo img,
#home-logo svg {
    height: 140px;
    width: auto;
    display: block;
}


/* ── SITE LOGO (top left, all pages except home) ── */
#site-logo {
    position: fixed;
    top: 14px; left: 16px;
    z-index: 9999;
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: none;
}
#site-logo img {
    height: 74px;
    width: auto;
    display: block;
    transition: opacity 0.25s ease;
}
#site-logo:hover img { opacity: 0.7; }

/* ── BREADCRUMB (top right) ── */
#breadcrumb {
    position: fixed;
    top: 34px; right: 40px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.62rem;
    letter-spacing: 3px;
    text-transform: lowercase;
    color: var(--dim);
}

#breadcrumb a {
    color: var(--dim);
    text-decoration: none;
    transition: color 0.3s;
}
#breadcrumb a:hover { color: var(--fg); }
#breadcrumb .bc-sep { color: rgba(255,255,255,0.55); font-size: 0.52rem; }
#breadcrumb .bc-current { color: rgba(255,255,255,0.95); }

/* ── PAGE LABEL (top left) ── */
.page-label {
    position: fixed;
    top: 34px; left: 40px;
    font-size: 0.5rem;
    letter-spacing: 5px;
    text-transform: lowercase;
    color: var(--dim);
    z-index: 100;
}

/* ── DROPDOWN OVERLAY ── */
#g-dropdown {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.93);
    backdrop-filter: blur(24px);
    z-index: 9998;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.55s var(--ease);
}
#g-dropdown.open { opacity: 1; pointer-events: auto; }

#g-dropdown-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0.14;
}

.dropdown-links {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    gap: 16px; text-align: center;
}

.dropdown-links a {
    font-family: var(--font);
    font-size: clamp(2.2rem, 6vw, 5rem);
    letter-spacing: -1px;
    color: rgba(255,255,255,0.38);
    text-decoration: none;
    text-transform: lowercase;
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease,
                color 0.3s, letter-spacing 0.3s;
    display: block;
}

.dropdown-links a.active-page { color: rgba(255,255,255,0.7); }

#g-dropdown.open .dropdown-links a { opacity: 1; transform: translateY(0); }
#g-dropdown.open .dropdown-links a:nth-child(1) { transition-delay: 0.04s; }
#g-dropdown.open .dropdown-links a:nth-child(2) { transition-delay: 0.10s; }
#g-dropdown.open .dropdown-links a:nth-child(3) { transition-delay: 0.16s; }
#g-dropdown.open .dropdown-links a:nth-child(4) { transition-delay: 0.22s; }
#g-dropdown.open .dropdown-links a:nth-child(5) { transition-delay: 0.28s; }

.dropdown-links a:hover { color: var(--fg); letter-spacing: 1px; }

/* ── "George Nosal" name — preserve proper capitalisation ── */
.dropdown-links a[href="index.html"],
.proj-path a[href="index.html"],
#breadcrumb a[href="index.html"] {
    text-transform: capitalize;
}
.about-title {
    text-transform: none;
}

.dropdown-close {
    position: absolute; bottom: 48px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem; color: var(--dim);
    letter-spacing: 0.25em; text-transform: lowercase;
    font-family: var(--font-nav); font-weight: 200;
    transition: color 0.3s;
    background: none; border: none; cursor: none;
    white-space: nowrap;
}
.dropdown-close:hover { color: var(--fg); }

/* ── TAG / BADGE ── */
.tag {
    font-size: 0.52rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.50);
    padding: 4px 10px;
    color: var(--fg);
    transition: border-color 0.25s, color 0.25s;
}
.tag:hover { border-color: rgba(255,255,255,0.8); color: var(--fg); }

/* ── MICRO LABEL ── */
.micro {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
}

/* ═══════════════════════════════════════════
   INDEX PAGE  (p.html)
   ═══════════════════════════════════════════ */

body.page-index {
    overflow: hidden;
    height: 100vh;
}

body.page-index canvas#canvas {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 100vw !important; height: 100vh !important;
    z-index: 1;
    pointer-events: none;
}

/* Corner nav */
.x-nav {
    position: fixed; inset: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 1.8s var(--ease);
}
.x-nav.revealed { opacity: 1; pointer-events: auto; }

.nav-item {
    position: absolute;
    text-decoration: none;
    color: rgba(255,255,255,0.72);
    font-size: clamp(1.4rem, 2.8vw, 2.4rem);
    letter-spacing: 0.5px;
    pointer-events: auto;
    transition: color 0.4s, letter-spacing 0.4s, text-shadow 0.4s;
    text-transform: lowercase;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 1.2s ease, transform 1.2s ease,
                color 0.15s ease, letter-spacing 0.15s ease;
}
.x-nav.revealed .nav-item { opacity: 1; transform: translateY(0); }
.x-nav.revealed .nav-item:nth-child(1) { transition-delay: 0.1s; }
.x-nav.revealed .nav-item:nth-child(2) { transition-delay: 0.3s; }
.x-nav.revealed .nav-item:nth-child(3) { transition-delay: 0.5s; }
.x-nav.revealed .nav-item:nth-child(4) { transition-delay: 0.7s; }

.nav-item:hover {
    color: var(--fg);
    letter-spacing: 1px;
}

.tl { top: 8%; left: 8%; }
.tr { top: 8%; right: 8%; }
.bl { bottom: 8%; left: 8%; }
.br { bottom: 8%; right: 8%; }

.center-label {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'OnlyTrue', sans-serif;
    font-size: clamp(3rem, 2.5vw, 1.6rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
    z-index: 10000;
    pointer-events: none;
}

.sequence-container {
    position: absolute;
    top: 50%; right: 5%;
    transform: translateY(-50%);
    text-align: right;
    width: 30%; max-width: 350px;
    z-index: 20;
    pointer-events: none;
}

.fade-sentence {
    font-family: var(--font-nav);
    font-weight: 200;
    font-size: 0.55rem;
    color: #fff;
    letter-spacing: 2px;
    margin: 5px 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.fade-paragraph {
    font-family: 'Coolvetica', 'Futura', 'Century Gothic', sans-serif;
    font-weight: normal;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.90);
    line-height: 1.9;
    letter-spacing: 0.25px;
    margin-top: 15px;
    opacity: 0;
    transition: opacity 4s cubic-bezier(0.4,0,0.2,1);
}

.visible { opacity: 1 !important; }

#audio-init {
    position: fixed;
    bottom: 48px; left: 50%;
    transform: translateX(-50%);
    background: var(--fg); border: none;
    padding: 10px 22px;
    font-family: 'Times New Roman', serif;
    font-size: 0.55rem; letter-spacing: 3px;
    cursor: none; pointer-events: auto;
    z-index: 3000;
    text-transform: lowercase;
    transition: opacity 0.4s;
    animation: initPulse 2.2s ease-in-out infinite;
}
@keyframes initPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.55); opacity: 1; }
    50%       { box-shadow: 0 0 0 10px rgba(255,255,255,0); opacity: 0.82; }
}

/* Mobile corner nav adjustments */
@media (max-width: 600px) {
    .tl { top: 12%; left: 6%; }
    .tr { top: 12%; right: 6%; }
    .bl { bottom: 12%; left: 6%; }
    .br { bottom: 12%; right: 6%; }
    .nav-item { font-size: 1.2rem; }
    .center-label { font-size: 0.9rem; }
    .sequence-container { display: none; }
}

/* ═══════════════════════════════════════════
   ABOUT PAGE  (pabout.html)
   ═══════════════════════════════════════════ */

body.page-about {
    overflow-x: hidden;
    min-height: 100vh;
}

/* Ensure Coolvetica is always used for about body text */
body.page-about .fade-paragraph {
    font-family: 'Coolvetica', 'Futura', 'Century Gothic', sans-serif;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.90);
    line-height: 1.9;
    letter-spacing: 0.25px;
}

/* Right morph panel */
#goo-wrap {
    position: fixed;
    top: 0; right: 0;
    width: 40%; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    filter: blur(8px) contrast(20);
    background: var(--bg);
    z-index: 5;
    pointer-events: none;
    border-left: 1px solid var(--line);
}

#morph-canvas {
    width: 100%; max-width: 400px;
    aspect-ratio: 1 / 1;
    display: block;
}

.about-content {
    position: relative;
    width: 60%; z-index: 10;
    padding: 120px 8% 100px;
    display: flex; flex-direction: column;
    align-items: flex-start;
    background: var(--bg);
    min-height: 100vh;
}

.about-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: -2px;
    margin-bottom: 60px;
    font-weight: normal;
    text-transform: none;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    max-width: 480px;
    margin-bottom: 70px;
}

.bio-image {
    width: 100%; height: auto;
    filter: grayscale(1);
    transition: filter 0.6s;
    display: block;
}
.bio-image:hover { filter: grayscale(0); }

@media (max-width: 900px) {
    #goo-wrap { width: 100%; height: 35vh; position: relative; border-left: none; border-bottom: 1px solid var(--line); filter: blur(6px) contrast(18); }
    .about-content { width: 100%; padding-top: 60px; min-height: auto; }
}

@media (max-width: 500px) {
    .about-content { padding: 50px 6% 80px; }
    .about-title { font-size: 2.2rem; }
}

/* ═══════════════════════════════════════════
   PROJECTS PAGE  (pproject.html)
   ═══════════════════════════════════════════ */

body.page-projects {
    overflow: hidden;
    height: 100vh;
}

/* Hide standard breadcrumb — replaced by path in topbar */
.page-projects #breadcrumb,
.page-project-detail #breadcrumb { display: none; }

/* ── SHARED TOPBAR ── */
.proj-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(18px);
    z-index: 500;
}

/* Right-side path below topbar */
.proj-path {
    position: fixed;
    top: 68px; right: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.52rem;
    letter-spacing: 2px;
    z-index: 490;
    white-space: nowrap;
}
.proj-path a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    cursor: none;
    transition: color 0.22s;
}
.proj-path a:hover { color: rgba(255,255,255,0.9); }
.proj-path .path-sep { color: rgba(255,255,255,0.25); }
.proj-path .path-current { color: rgba(255,255,255,0.88); }

/* Center guard so G nav doesn't clash */
.proj-topbar-guard { flex: 0 0 80px; }

/* Right zone */
.proj-view-toggle {
    flex: 1;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.view-btn {
    width: 28px; height: 28px;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: none;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.22s, background 0.22s;
    padding: 0;
}
.view-btn:hover, .view-btn.active {
    border-color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.06);
}
.view-btn svg { width: 11px; height: 11px; fill: rgba(255,255,255,0.28); }
.view-btn:hover svg, .view-btn.active svg { fill: rgba(255,255,255,0.85); }

/* ── SIDEBAR ── */
.proj-sidebar {
    position: fixed;
    top: 56px; left: 0;
    width: 190px;
    height: calc(100vh - 56px);
    border-right: 1px solid var(--line);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    z-index: 400;
    padding: 22px 0 40px;
    overflow-y: auto;
    scrollbar-width: none;
}
.proj-sidebar::-webkit-scrollbar { display: none; }

.sidebar-label {
    display: block;
    font-size: 0.3rem;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.14);
    text-transform: uppercase;
    padding: 0 18px 12px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 0.46rem;
    letter-spacing: 0.4px;
    color: rgba(255,255,255,0.3);
    cursor: none;
    transition: color 0.18s, background 0.18s;
    border-left: 2px solid transparent;
}
.sidebar-item:hover {
    color: rgba(255,255,255,0.68);
    background: rgba(255,255,255,0.04);
}
.sidebar-item.active {
    color: rgba(255,255,255,0.88);
    border-left-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.06);
}
.sidebar-icon { font-size: 0.52rem; opacity: 0.45; flex-shrink: 0; }
.sidebar-count {
    margin-left: auto;
    font-size: 0.32rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.14);
}
.sidebar-divider {
    height: 1px;
    background: var(--line);
    margin: 10px 18px;
}

/* ── NO RESULTS ── */
.no-results {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.48rem;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.18);
    text-transform: uppercase;
    display: none;
    pointer-events: none;
}
.no-results.visible { display: block; }

/* ── FILTER BAR ── */
.proj-filter-bar {
    position: fixed;
    top: 76px; left: 0; right: 0;
    height: 44px;
    border-bottom: 1px solid var(--line);
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(12px);
    z-index: 400;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.proj-filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
    flex: 1;
    font-family: var(--font-nav);
    font-weight: 200;
    font-size: 0.54rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.88);
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    padding: 0;
    height: 44px;
    cursor: none;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.filter-chip:hover { color: rgba(255,255,255,0.82); }
.filter-chip.active {
    color: var(--chip-color, rgba(255,255,255,0.88));
    border-bottom-color: var(--chip-color, rgba(255,255,255,0.45));
}

/* ── PROJECT VIEWS WRAPPER ── */
#project-wrap {
    position: fixed;
    top: 120px; left: 0;
    width: 100vw;
    height: calc(100vh - 120px);
    overflow: hidden;
}

/* ── ROULETTE ── */
#view-roulette {
    width: 100%; height: 100%;
    display: flex;
    align-items: center; justify-content: center;
    perspective: 1200px;
    position: relative;
}

.roulette-track {
    position: relative;
    width: 600px; height: 800px;
    transform-style: preserve-3d;
}

.roulette-card {
    position: absolute;
    width: 520px; height: 720px;
    left: 40px; top: 40px;
    border: 1px solid rgba(255,255,255,0.14);
    background: #0d0d0d;
    cursor: none;
    transition: all 0.65s cubic-bezier(0.25,0.46,0.45,0.94);
    overflow: hidden;
    will-change: transform;
}

.roulette-card .card-img {
    width: 100%; height: 62%;
    overflow: hidden; position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* Subtle gradient only at bottom for text legibility */
.roulette-card .card-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 55%, rgba(0,0,0,0.65));
}
.card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem; opacity: 0.12;
}
.roulette-card .card-info { padding: 18px; }
.card-year  { font-size: 0.50rem; letter-spacing: 4px; color: rgba(255,255,255,0.88); text-transform: uppercase; margin-bottom: 7px; }
.card-title { font-size: 1.1rem; letter-spacing: -0.5px; margin-bottom: 5px; color: #fff; text-transform: none; }
.card-type  { font-size: 0.50rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.78); font-family: var(--font-nav); font-weight: 200; }
.card-tags  { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }

.roulette-nav {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 18px; align-items: center;
    z-index: 10;
}
.roulette-nav button {
    background: none;
    border: 1px solid rgba(255,255,255,0.45);
    color: rgba(255,255,255,0.82);
    font-family: var(--font-nav);
    font-weight: 200;
    font-size: 0.58rem; letter-spacing: 0.22em;
    text-transform: lowercase;
    padding: 8px 16px; cursor: none;
    transition: all 0.25s;
}
.roulette-nav button:hover { border-color: rgba(255,255,255,0.9); color: var(--fg); }
.roulette-counter { font-size: 0.54rem; letter-spacing: 4px; color: rgba(255,255,255,0.75); font-family: var(--font-nav); font-weight: 200; }
.drag-hint {
    position: absolute; bottom: 84px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.46rem; letter-spacing: 4px;
    color: rgba(255,255,255,0.35); text-transform: uppercase;
    pointer-events: none;
}

/* ── TILE ── */
#view-tile {
    width: 100%; height: 100%;
    overflow-y: auto;
    padding: 28px 28px 60px;
    display: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}
#view-tile::-webkit-scrollbar { width: 2px; }
#view-tile::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); }

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2px;
}

.tile-card {
    aspect-ratio: 3/4;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--line);
    position: relative; overflow: hidden;
    cursor: none; transition: border-color 0.32s;
}
.tile-card:hover { border-color: rgba(255,255,255,0.2); }
.tile-card:hover .tile-overlay { opacity: 1; }

.tile-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    display: flex; flex-direction: column;
    justify-content: flex-end; padding: 16px;
    opacity: 0; transition: opacity 0.32s;
}

/* ── LIST ── */
#view-list {
    width: 100%; height: 100%;
    overflow-y: auto;
    padding: 0 0 60px;
    display: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
    position: relative;
}
#view-list::-webkit-scrollbar { width: 2px; }
#view-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); }

/* Dim project image shown behind the list on row hover */
#list-bg {
    position: fixed;
    inset: 100px 0 0 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.55s ease, background-image 0.1s;
    z-index: 0;
}
#list-bg.visible { opacity: 0.06; }
/* Dark scrim sits between the image and list content */
#list-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.82);
    pointer-events: none;
}
#view-list .list-header,
#view-list #list-rows { position: relative; z-index: 1; }

.list-header {
    display: grid;
    grid-template-columns: 52px 1fr 72px 40px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0;
    background: rgba(0,0,0,0.94);
    backdrop-filter: blur(8px);
    z-index: 5;
}
.list-header span { font-size: 0.44rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.40); }

.list-row {
    display: grid;
    grid-template-columns: 52px 1fr 72px 40px;
    padding: 13px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: none; align-items: center;
    transition: background 0.22s;
}
.list-row:hover { background: rgba(255,255,255,0.04); }
.list-row:hover .list-arrow { opacity: 1; transform: translateX(0); }

.list-num   { font-size: 0.50rem; letter-spacing: 2px; color: rgba(255,255,255,0.42); }
.list-name  { font-size: 0.9rem; letter-spacing: -0.3px; color: rgba(255,255,255,0.92); text-transform: none; }
.list-type  { font-size: 0.50rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.60); }
.list-year  { font-size: 0.50rem; letter-spacing: 2px; color: rgba(255,255,255,0.55); }
.list-arrow { font-size: 0.58rem; color: rgba(255,255,255,0.55); opacity: 0; transform: translateX(-5px); transition: opacity 0.22s, transform 0.22s; text-align: right; }

/* Mobile */
@media (max-width: 768px) {
    body.page-projects { overflow: auto; height: auto; }
    .proj-filter-bar { padding: 0 12px; }
    #project-wrap { position: relative; top: 0; left: 0; width: 100%; height: auto; overflow: visible; }
    .proj-topbar { padding: 0 12px; }
    .proj-topbar-guard { flex: 0 0 56px; }
    #view-tile { padding: 16px 10px 80px; }
    .tile-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
    .list-header { grid-template-columns: 36px 1fr 40px; padding: 10px 14px; }
    .list-row    { grid-template-columns: 36px 1fr 40px; padding: 10px 14px; }
    .list-year, .list-arrow { display: none; }
    #view-roulette { min-height: 85vh; }
    .roulette-track { width: 320px; height: 480px; }
    .roulette-card  { width: 290px; height: 420px; }
}

/* ═══════════════════════════════════════════
   PROJECT DETAIL PAGES  (project1–15.html)
   ═══════════════════════════════════════════ */

body.page-project-detail {
    overflow: hidden;
    height: 100vh;
    background: var(--bg);
}

/* Detail topbar */
.pd-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(18px);
    z-index: 500;
}

.pd-back {
    position: fixed;
    top: 68px; right: 24px;
    font-size: 0.56rem;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    cursor: none;
    font-family: var(--font-nav);
    font-weight: 200;
    transition: color 0.22s;
    display: flex; align-items: center; gap: 5px;
    z-index: 490;
}
.pd-back:hover { color: rgba(255,255,255,0.95); }

.pd-topbar-center { flex: 1; }

.pd-proj-nav {
    display: flex;
    gap: 14px;
    align-items: center;
}
.pd-nav-btn {
    font-size: 0.56rem;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    cursor: none;
    font-family: var(--font-nav);
    font-weight: 200;
    transition: color 0.22s;
}
.pd-nav-btn:hover { color: rgba(255,255,255,0.95); }
.pd-nav-sep { color: rgba(255,255,255,0.5); font-size: 0.50rem; }

/* ── Category badge (project detail hero) ── */
.pd-cat-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.pd-cat-badges .pd-cat-badge { margin-bottom: 0; }

.pd-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.52rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-family: var(--font-nav);
    font-weight: 200;
    margin-bottom: 20px;
    padding: 6px 12px;
    border: 1px solid currentColor;
    opacity: 0.92;
}
.pd-cat-badge::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.cat-business   { color: var(--cat-business); }
.cat-creativity { color: var(--cat-creativity); }
.cat-computing  { color: var(--cat-computing); }
.cat-technology { color: var(--cat-technology); }
.cat-society    { color: var(--cat-society); }

/* Scrollable content */
.pd-content {
    position: fixed;
    top: 56px; left: 0; right: 0; bottom: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.07) transparent;
}
.pd-content::-webkit-scrollbar { width: 2px; }
.pd-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.07); }

/* Hero */
.pd-hero {
    padding: 72px 10% 56px;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: end;
}

.pd-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}
.pd-year, .pd-type {
    font-size: 0.58rem;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.90);
    text-transform: uppercase;
}
.pd-meta-sep { color: rgba(255,255,255,0.3); }

.pd-title {
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    letter-spacing: -4px;
    line-height: 0.88;
    font-weight: normal;
    text-transform: capitalize;
}

.pd-tags {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    flex-shrink: 0;
    padding-bottom: 6px;
}

/* Full-width image */
.pd-image-full {
    width: 100%;
    aspect-ratio: 2/1;
    max-height: 58vh;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
}
/* Placeholder state — dashed outline when no image */
.pd-image-full::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px dashed rgba(255,255,255,0.1);
    pointer-events: none;
    transition: opacity 0.3s;
}
.pd-image-full::after {
    content: attr(data-label);
    position: relative; z-index: 1;
    font-size: 0.3rem;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.18);
    text-transform: uppercase;
    font-family: var(--font-nav);
    font-weight: 200;
}
/* Hide placeholder chrome when image is loaded */
.pd-image-full.has-image::before { display: none; }
.pd-image-full.has-image::after  { display: none; }

/* Body two-column */
.pd-body-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
}
.pd-body-cell {
    padding: 52px 10%;
    border-right: 1px solid var(--line);
}
.pd-body-cell:last-child { border-right: none; }

.pd-body-label {
    font-size: 0.50rem;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.88);
    text-transform: uppercase;
    margin-bottom: 18px;
}
.pd-body-text {
    font-size: 0.82rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.90);
    letter-spacing: 0.25px;
}

/* Half-width image grid */
.pd-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
}
.pd-image-half {
    aspect-ratio: 4/3;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-right: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
}
.pd-image-half:last-child { border-right: none; }
.pd-image-half::before {
    content: '';
    position: absolute;
    inset: 16px;
    border: 1px dashed rgba(255,255,255,0.1);
    pointer-events: none;
}
.pd-image-half::after {
    content: attr(data-label);
    font-size: 0.28rem;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.18);
    text-transform: uppercase;
    font-family: var(--font-nav);
    font-weight: 200;
}
.pd-image-half.has-image::before { display: none; }
.pd-image-half.has-image::after  { display: none; }

/* Full-width video block */
.pd-video-full {
    width: 100%;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background: #000;
    display: flex;
}
.pd-video-full video {
    width: 100%;
    display: block;
    max-height: 70vh;
    object-fit: cover;
}

/* Deliverables */
.pd-deliverables {
    padding: 44px 10%;
    border-bottom: 1px solid var(--line);
}
/* Tag used on project detail pages */
.pd-tag {
    font-size: 0.54rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.60);
    padding: 5px 11px;
    color: rgba(255,255,255,0.95);
    font-family: var(--font);
}

/* Alias used by project detail footer */
.pd-footer-direction {
    font-size: 0.52rem;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.82);
    text-transform: uppercase;
    font-family: var(--font-nav);
    font-weight: 200;
}

.pd-deliverables-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
}

/* Footer prev/next */
.pd-footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.pd-footer-btn {
    padding: 36px 10%;
    text-decoration: none;
    cursor: none;
    display: flex; flex-direction: column; gap: 8px;
    border-right: 1px solid var(--line);
    transition: background 0.28s;
}
.pd-footer-btn:last-child { border-right: none; align-items: flex-end; text-align: right; }
.pd-footer-btn:hover { background: rgba(255,255,255,0.025); }

.pd-footer-dir {
    font-size: 0.52rem;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.80);
    text-transform: uppercase;
    font-family: var(--font-nav);
    font-weight: 200;
}
.pd-footer-title {
    font-size: clamp(0.9rem, 2.2vw, 1.6rem);
    letter-spacing: -0.4px;
    color: rgba(255,255,255,0.92);
}

/* Mobile detail */
@media (max-width: 768px) {
    body.page-project-detail { overflow: auto; height: auto; }
    .pd-content { position: relative; top: 0; }
    .pd-hero { grid-template-columns: 1fr; padding: 56px 6% 36px; }
    .pd-tags { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
    .pd-body-section { grid-template-columns: 1fr; }
    .pd-body-cell { border-right: none; border-bottom: 1px solid var(--line); padding: 36px 6%; }
    .pd-image-grid { grid-template-columns: 1fr; }
    .pd-image-half { border-right: none; border-bottom: 1px solid var(--line); }
    .pd-footer-nav { grid-template-columns: 1fr; }
    .pd-footer-btn { border-right: none; border-bottom: 1px solid var(--line); }
    .pd-footer-btn:last-child { align-items: flex-start; text-align: left; }
}

/* ═══════════════════════════════════════════
   PROCESS PAGE  (pprocess.html)
   ═══════════════════════════════════════════ */

/* ── Orange flow line canvas ── */
#flow-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

/* ── Approach panel ── */
.panel-approach {
    justify-content: center;
    padding: 0 12%;
}

.approach-inner {
    max-width: 620px;
}

.approach-eyebrow {
    font-size: 0.42rem;
    letter-spacing: 6px;
    color: rgba(255,255,255,0.2);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.approach-title {
    font-size: clamp(2.2rem, 4.5vw, 4.2rem);
    letter-spacing: -3px;
    line-height: 0.9;
    font-weight: normal;
    margin-bottom: 48px;
    text-transform: capitalize;
}

.approach-list {
    display: flex;
    flex-direction: column;
}

.approach-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.approach-item:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.approach-num {
    font-size: 0.36rem;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.18);
    min-width: 24px;
    padding-top: 2px;
    flex-shrink: 0;
}

.approach-item-title {
    font-size: 0.65rem;
    letter-spacing: 0.3px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 7px;
    text-transform: lowercase;
}

.approach-item-body {
    font-size: 0.57rem;
    line-height: 1.85;
    color: rgba(255,255,255,1);
    letter-spacing: 0.2px;
    max-width: 460px;
}

body.page-process {
    overflow: hidden;
    height: 100vh;
}

/* Horizontal scroll wrapper */
#h-scroll-root {
    position: fixed; inset: 0;
    overflow: hidden;
}

#h-track {
    display: flex;
    height: 100vh;
    will-change: transform;
    transition: none;
}

/* Each panel */
.h-panel {
    flex-shrink: 0;
    width: 100vw; height: 100vh;
    position: relative;
    display: flex; align-items: center;
    overflow: hidden;
}

/* ── Intro panel ── */
.panel-intro {
    justify-content: center;
    flex-direction: column;
    padding: 0 12%;
}

.process-eyebrow {
    font-size: 0.42rem; letter-spacing: 6px;
    color: rgba(255,255,255,0.82); margin-bottom: 24px;
    text-transform: uppercase;
}

.process-headline {
    font-size: clamp(3rem, 8vw, 8rem);
    letter-spacing: -5px; line-height: 0.88;
    font-weight: normal;
}

.scroll-hint {
    position: absolute; bottom: 48px; right: 60px;
    font-size: 0.4rem; letter-spacing: 4px;
    color: rgba(255,255,255,0.82); text-transform: uppercase;
    display: flex; align-items: center; gap: 10px;
}

.scroll-hint-line {
    width: 40px; height: 1px;
    background: rgba(255,255,255,0.15);
    position: relative; overflow: hidden;
}

.scroll-hint-line::after {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.5);
    animation: slideRight 1.8s ease-in-out infinite;
}

@keyframes slideRight {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ── Phase panels ── */
.panel-phase {
    justify-content: center;
    padding: 0 10%;
}

.phase-3d-wrap {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.phase-number-bg {
    font-size: clamp(8rem, 18vw, 18rem);
    letter-spacing: -10px;
    line-height: 1;
    color: rgba(255,255,255,0.03);
    position: absolute;
    top: 50%; right: 8%;
    transform: translateY(-50%);
    pointer-events: none;
    user-select: none;
}

.phase-content { position: relative; z-index: 2; }

.phase-idx {
    font-size: 0.42rem; letter-spacing: 5px;
    color: rgba(255,255,255,0.2); margin-bottom: 20px;
    text-transform: uppercase;
}

.phase-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -2px; line-height: 1;
    font-weight: normal; margin-bottom: 24px;
}

.phase-body-text {
    font-size: 0.68rem; line-height: 1.85;
    color: rgba(255,255,255,0.5); letter-spacing: 0.3px;
    max-width: 420px; margin-bottom: 28px;
}

.phase-deliverables {
    display: flex; flex-wrap: wrap; gap: 5px;
}

.phase-visual {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: center;
}

.phase-geo {
    width: clamp(160px, 25vw, 280px);
    height: clamp(160px, 25vw, 280px);
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    display: flex; align-items: center; justify-content: center;
    transform: rotate(0deg);
    transition: transform 1s var(--ease);
}

.phase-geo::before {
    content: '';
    position: absolute; inset: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    animation: spinSlow 12s linear infinite;
}

.phase-geo::after {
    content: '';
    position: absolute; inset: 32px;
    border: 1px solid rgba(255,255,255,0.04);
    animation: spinSlow 18s linear infinite reverse;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.geo-inner {
    width: 30%; height: 30%;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    animation: pulse3d 3s ease-in-out infinite;
}

@keyframes pulse3d {
    0%,100% { transform: scale(1); opacity: 0.6; }
    50%      { transform: scale(1.3); opacity: 1; }
}

/* ── Scroll sentence overlay ── */
.scroll-sentence {
    position: absolute;
    bottom: 80px; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: clamp(0.55rem, 1.5vw, 0.8rem);
    letter-spacing: 3px;
    color: rgba(255,255,255,0.35);
    opacity: 0;
    transition: opacity 0.8s var(--ease);
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}
.scroll-sentence.in-view { opacity: 1; }
.scroll-sentence.passed  { opacity: 0; }

/* ── Vision panel ── */
.panel-vision {
    padding: 0 10%;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    overflow-y: auto;
}

.vision-inner {
    padding-top: 18vh;
    padding-bottom: 80px;
    max-width: 700px;
    width: 100%;
}

.vision-eyebrow {
    font-size: 0.42rem; letter-spacing: 6px;
    color: rgba(255,255,255,0.2); margin-bottom: 28px;
    text-transform: uppercase;
}

.vision-title {
    font-size: clamp(2.8rem, 6vw, 6rem);
    letter-spacing: -3px; line-height: 0.9;
    margin-bottom: 56px; font-weight: normal;
}

.vision-body p {
    font-size: 0.75rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.3px;
    margin-bottom: 28px;
}

.vision-body p.drop-cap::first-letter {
    font-size: 2.8em;
    line-height: 0.7;
    float: left;
    margin-right: 6px;
    margin-top: 4px;
    color: rgba(255,255,255,0.7);
    letter-spacing: -2px;
}

.vision-section-label {
    font-size: 0.42rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 20px;
}

.duchamp-quote {
    font-style: italic;
    color: #ff6c20;
    text-transform: none;
}

.vision-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 32px 0 8px;
    border-radius: 4px;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 0.5s ease, opacity 0.5s ease;
    cursor: default;
}

.vision-img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.vision-img-caption {
    font-size: 0.38rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 28px;
}

.vision-img-caption a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.vision-img-caption a:hover {
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.4);
}

/* Progress bar */
#h-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    background: rgba(255,255,255,0.45);
    z-index: 10000;
    transition: width 0.08s linear;
    width: 0%;
}

/* Vision panel scrollable override */
.h-panel.panel-vision {
    overflow-y: auto;
    overflow-x: hidden;
    align-items: flex-start;
    flex-direction: column;
}

/* Mobile process */
@media (max-width: 768px) {
    body.page-process { overflow: auto; height: auto; }
    #h-scroll-root { position: static; overflow: visible; }
    #h-track { flex-direction: column; height: auto; transform: none !important; }
    .h-panel { width: 100%; height: auto; min-height: 100vh; }
    .panel-approach { padding: 80px 8%; }
    .panel-vision { padding: 60px 8% 80px; }
    .vision-inner { padding-top: 0; }
    #h-progress { display: none; }
    #flow-canvas { display: none; }
    .scroll-sentence { display: none; }
}

/* ═══════════════════════════════════════════
   CONTACT PAGE  (pcontact.html)
   ═══════════════════════════════════════════ */

body.page-contact {
    overflow: hidden;
    height: 100vh;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
}

/* LEFT */
.contact-left {
    display: flex; flex-direction: column;
    justify-content: space-between;
    padding: 100px 56px 52px;
    border-right: 1px solid var(--line);
    overflow-y: auto;
}
.contact-left::-webkit-scrollbar { width: 2px; }

.contact-title {
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: -4px; line-height: 0.88;
    font-weight: normal; margin-bottom: 44px;
}

.avail-label { font-size: 0.52rem; letter-spacing: 5px; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 14px; }

.avail-status {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.88rem; color: rgba(255,255,255,0.90);
    margin-bottom: 8px;
}

.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%; background: #4fffb0;
    box-shadow: 0 0 10px #4fffb0;
    animation: dotPulse 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes dotPulse {
    0%,100% { opacity: 1; box-shadow: 0 0 10px #4fffb0; }
    50%      { opacity: 0.5; box-shadow: 0 0 3px #4fffb0; }
}

.avail-note { font-size: 0.65rem; color: rgba(255,255,255,0.72); line-height: 1.7; margin-bottom: 48px; }

.contact-link-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none; color: var(--fg);
    transition: padding-left 0.3s;
    cursor: none;
}
.contact-link-row:hover { padding-left: 8px; }
.contact-link-row:hover .link-arrow { opacity: 1; transform: translateX(0); }

.link-type  { font-size: 0.52rem; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.65); width: 96px; }
.link-value { font-size: 0.88rem; letter-spacing: -0.2px; color: rgba(255,255,255,0.92); flex: 1; }
.link-arrow { font-size: 0.7rem; color: var(--dim); opacity: 0; transform: translateX(-6px); transition: opacity 0.3s, transform 0.3s; }

.location-block {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1px; background: var(--line);
    margin-top: 40px;
}
.loc-cell { background: var(--bg); padding: 18px 0; }
.loc-cell.pad-l { padding-left: 20px; }
.loc-label { font-size: 0.50rem; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.62); margin-bottom: 7px; }
.loc-value { font-size: 0.82rem; color: rgba(255,255,255,0.88); line-height: 1.5; }

/* RIGHT */
.contact-right {
    display: flex; flex-direction: column;
    padding: 0;
    overflow: hidden;
    position: relative;
}
.contact-right::-webkit-scrollbar { width: 2px; }

/* Three.js blob */
#blob-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
#blob-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.form-label-top { font-size: 0.38rem; letter-spacing: 5px; text-transform: uppercase; color: rgba(255,255,255,0.2); margin-bottom: 30px; }

.field-group { border-bottom: 1px solid var(--line); }
.field-group:first-of-type { border-top: 1px solid var(--line); }

.field-inner {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 0;
}

.field-label { font-size: 0.36rem; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.2); padding-top: 4px; width: 76px; flex-shrink: 0; }

.field-inner input,
.field-inner textarea,
.field-inner select {
    flex: 1;
    background: none; border: none; outline: none;
    color: rgba(255,255,255,0.85);
    font-family: var(--font);
    font-size: 0.75rem; letter-spacing: -0.2px;
    text-transform: lowercase; resize: none;
    line-height: 1.6;
}
.field-inner select option { background: #111; }
.field-inner input::placeholder,
.field-inner textarea::placeholder { color: rgba(255,255,255,0.15); }
.field-inner textarea { min-height: 72px; }

.services-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4px; padding: 12px 0 16px;
    flex: 1;
}

.service-check { display: flex; align-items: center; gap: 7px; cursor: none; }
.service-check input[type="checkbox"] {
    appearance: none; width: 9px; height: 9px;
    border: 1px solid rgba(255,255,255,0.22);
    cursor: none; position: relative; flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
}
.service-check input[type="checkbox"]:checked { background: var(--fg); border-color: var(--fg); }
.service-check label { font-size: 0.42rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.38); cursor: none; transition: color 0.2s; }
.service-check:hover label { color: rgba(255,255,255,0.75); }
.service-check input:checked + label { color: rgba(255,255,255,0.85); }

.submit-row { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; }
.submit-note { font-size: 0.42rem; letter-spacing: 0.5px; color: rgba(255,255,255,0.2); max-width: 220px; line-height: 1.7; }

#submit-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.65);
    font-family: var(--font); font-size: 0.52rem;
    letter-spacing: 4px; text-transform: lowercase;
    padding: 13px 28px; cursor: none;
    transition: all 0.35s; overflow: hidden; position: relative;
}
#submit-btn::before { content: ''; position: absolute; left: -100%; top: 0; bottom: 0; width: 100%; background: var(--accent); transition: left 0.35s; }
#submit-btn:hover { border-color: rgba(255,255,255,0.75); color: var(--fg); }
#submit-btn:hover::before { left: 0; }

#form-success { display: none; flex-direction: column; gap: 14px; padding-top: 36px; }
.success-title { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -2px; font-weight: normal; line-height: 1; }
.success-text { font-size: 0.62rem; line-height: 1.8; color: rgba(255,255,255,0.42); }

.colophon { font-size: 0.36rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.1); padding-top: 36px; text-align: right; }

/* Mobile contact */
@media (max-width: 900px) {
    body.page-contact { overflow: auto; height: auto; }
    .contact-split { grid-template-columns: 1fr; height: auto; }
    .contact-left { border-right: none; border-bottom: 1px solid var(--line); padding: 95px 28px 44px; }
    .contact-right { padding: 44px 28px 80px; }
}

@media (max-width: 500px) {
    .contact-title { font-size: 3rem; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE OVERHAUL — comprehensive rewrite for ≤ 768 px
   Everything below this line takes priority over earlier rules
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* ── Prevent iOS font inflation ── */
    html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

    /* ── Kill the desktop custom cursor ── */
    #cursor { display: none !important; }
    * { cursor: auto; }
    a, button, [role="button"], label, input, textarea, select { cursor: pointer; }

    /* ════ GLOBAL NAV CHROME ════ */

    /* Keep G-nav centred at top — don't fight site-logo (top-left) */
    #g-nav-trigger {
        top: 14px;
        left: 50%;
        transform: translateX(-50%);
        width: 52px; height: 52px;
    }
    #g-canvas { width: 52px !important; height: 52px !important; }

    #nav-menu-lines { display: none; }

    /* Site logo stays top-left, slightly smaller */
    #site-logo { top: 10px; left: 10px; }
    #site-logo img { height: 52px; }

    /* Breadcrumb — move to bottom-right so it doesn't fight the logo */
    #breadcrumb {
        top: auto;
        bottom: 20px;
        right: 16px;
        left: auto;
        font-size: 0.72rem;
        letter-spacing: 2px;
    }

    /* Dropdown — cover logo when open, centred links */
    #g-dropdown.open { z-index: 10001; }

    #g-dropdown {
        align-items: center;
        justify-content: center;
    }

    .dropdown-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
    }
    .dropdown-links a {
        font-size: clamp(1.9rem, 9vw, 3.2rem);
        padding: 8px 0;
        letter-spacing: -0.5px;
    }
    .dropdown-close {
        font-size: 0.75rem;
        padding: 18px 44px;
        bottom: 32px;
        min-height: 56px;
    }

    /* ════ HOME / INDEX ════ */

    body.page-index { overflow: hidden; height: 100svh; }

    /* Hide injected site-logo on home — home-logo handles it */
    body.page-index #site-logo { display: none; }

    #home-logo { top: 14px; }
    #home-logo svg, #home-logo img { height: 84px; }

    .tl { top: 22%; left: 7%; }
    .tr { top: 22%; right: 7%; }
    .bl { bottom: 16%; left: 7%; }
    .br { bottom: 16%; right: 7%; }

    .nav-item { font-size: clamp(1.2rem, 5.5vw, 1.7rem); letter-spacing: 0; }

    /* Center label: white so it's visible against the dark canvas,
       larger so OnlyTrue renders cleanly */
    .center-label {
        color: rgba(255, 255, 255, 0.82);
        font-size: clamp(1.1rem, 5.5vw, 1.6rem);
        letter-spacing: 4px;
    }

    #audio-init {
        font-size: 0.72rem;
        padding: 15px 34px;
        letter-spacing: 2.5px;
        bottom: 9%;
    }

    /* ════ ABOUT ════ */

    /* Drop the heavy morph canvas entirely on mobile */
    #goo-wrap { display: none !important; }

    .about-content {
        width: 100% !important;
        padding: 92px 7% 80px !important;
        min-height: auto;
    }
    .about-title {
        font-size: clamp(2.2rem, 8vw, 3rem);
        letter-spacing: -1px;
        margin-bottom: 28px;
    }
    .bio-grid { max-width: 100%; margin-bottom: 32px; }
    .fade-paragraph {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        line-height: 1.8;
    }

    /* ════ PROJECTS LIST ════ */

    body.page-projects { overflow: auto; height: auto; }

    .proj-topbar { height: 52px; padding: 0 12px; }
    .proj-topbar-guard { flex: 0 0 64px; }

    /* Hide roulette entirely on mobile — tile is the mobile view */
    #view-roulette { display: none !important; }
    #btn-roulette  { display: none !important; }

    .view-btn { width: 36px; height: 36px; }
    .view-btn svg { width: 14px; height: 14px; }

    /* Filter chips — horizontal scroll, no wrap */
    .proj-filter-bar {
        top: 52px;
        height: 40px;
        padding: 0 8px;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0;
    }
    .filter-chip {
        font-size: 0.5rem;
        letter-spacing: 0.12em;
        height: 40px;
        flex: 0 0 auto;
        padding: 0 12px;
    }

    /* Project wrap: relative so it flows after fixed bars */
    #project-wrap {
        position: relative;
        top: 0; left: 0;
        width: 100%;
        height: auto;
        overflow: visible;
        margin-top: 92px; /* topbar(52) + filter(40) */
    }

    #view-tile {
        display: block; /* JS will show/hide, CSS makes it scrollable */
        height: auto;
        overflow-y: visible;
        padding: 12px 8px 80px;
    }
    .tile-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3px;
    }
    .tile-card { aspect-ratio: 2/3; min-height: 190px; }
    .tile-overlay { opacity: 1; } /* always show title on mobile */
    .tile-name { font-size: 0.72rem; letter-spacing: -0.2px; }

    #view-list {
        height: auto;
        overflow-y: visible;
        padding-bottom: 80px;
    }
    .list-header { grid-template-columns: 36px 1fr 36px; padding: 10px 12px; }
    .list-row    { grid-template-columns: 36px 1fr 36px; padding: 13px 12px; min-height: 48px; }
    .list-num  { font-size: 0.58rem; }
    .list-name { font-size: 0.82rem; }
    .list-year, .list-arrow { display: none; }

    .proj-path { display: none; }
    .no-results { position: static; transform: none; padding: 40px; text-align: center; }

    /* ════ PROJECT DETAIL ════ */

    body.page-project-detail { overflow: auto; height: auto; }

    .pd-topbar { height: 52px; padding: 0 12px; }
    .pd-nav-btn { font-size: 0.62rem; letter-spacing: 0.12em; }
    .pd-nav-sep { font-size: 0.58rem; }

    .pd-back {
        position: fixed;
        top: 60px; right: 14px;
        font-size: 0.62rem;
        letter-spacing: 0.12em;
    }

    .pd-content { position: relative; top: 0; overflow: visible; }

    .pd-hero {
        padding: 32px 7% 28px;
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .pd-meta { margin-bottom: 12px; }
    .pd-year { font-size: 0.6rem; letter-spacing: 3px; }

    .pd-title {
        font-size: clamp(2rem, 9vw, 3.5rem);
        letter-spacing: -2px;
        line-height: 0.9;
    }

    .pd-cat-badge { font-size: 0.56rem; padding: 6px 12px; }

    .pd-body-section { grid-template-columns: 1fr; }
    .pd-body-cell {
        padding: 28px 7%;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
    .pd-body-label { font-size: 0.58rem; letter-spacing: 2.5px; margin-bottom: 14px; }
    .pd-body-text {
        font-size: clamp(0.85rem, 3.4vw, 0.97rem);
        line-height: 1.8;
    }

    .pd-image-full { aspect-ratio: 4/3; max-height: 55vw; }
    .pd-image-grid { grid-template-columns: 1fr; }
    .pd-image-half { border-right: none; border-bottom: 1px solid var(--line); }

    .pd-footer-nav { grid-template-columns: 1fr; }
    .pd-footer-btn {
        padding: 22px 7%;
        border-right: none;
        border-bottom: 1px solid var(--line);
        min-height: 76px;
    }
    .pd-footer-btn:last-child { align-items: flex-start; text-align: left; }
    .pd-footer-dir   { font-size: 0.6rem; }
    .pd-footer-title { font-size: clamp(0.95rem, 4vw, 1.4rem); }

    /* ════ PROCESS ════ */

    body.page-process { overflow: auto; height: auto; }
    #h-scroll-root { position: static; overflow: visible; }
    #h-track {
        flex-direction: column;
        height: auto;
        transform: none !important;
    }
    .h-panel {
        width: 100%;
        height: auto;
        min-height: 100svh;
        overflow: visible;
        flex-shrink: initial;
    }

    #h-progress { display: none; }
    #flow-canvas { display: none; }
    .scroll-hint { display: none; }
    .scroll-sentence { display: none; }

    .panel-intro {
        flex-direction: column;
        justify-content: center;
        padding: 100px 8% 60px;
    }
    .process-eyebrow { font-size: 0.6rem; }
    .process-headline {
        font-size: clamp(3rem, 14vw, 6rem);
        letter-spacing: -4px;
    }

    .panel-approach {
        padding: 60px 8% 60px;
        justify-content: flex-start;
        align-items: flex-start;
    }
    .approach-inner { max-width: 100%; }
    .approach-title {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
        letter-spacing: -2px;
        margin-bottom: 32px;
    }
    .approach-item { gap: 14px; padding: 20px 0; }
    .approach-num { font-size: 0.6rem; }
    .approach-item-title { font-size: 0.72rem; }
    .approach-item-body  { font-size: 0.68rem; line-height: 1.8; }

    .panel-vision { padding: 60px 8% 80px; overflow: auto; }
    .vision-inner { padding-top: 0; max-width: 100%; }
    .vision-eyebrow { font-size: 0.6rem; }
    .vision-title {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
        letter-spacing: -2px;
        margin-bottom: 32px;
    }
    .vision-body p {
        font-size: clamp(0.8rem, 3.2vw, 0.9rem);
        line-height: 1.85;
        margin-bottom: 22px;
    }
    .vision-section-label { font-size: 0.52rem; }
    .vision-img { max-width: 100%; }

    /* ════ CONTACT ════ */

    body.page-contact { overflow: auto; height: auto; }
    .contact-split { grid-template-columns: 1fr; height: auto; }

    /* Hide the heavy Three.js blob on mobile */
    .contact-right { display: none !important; }

    .contact-left {
        padding: 92px 7% 60px;
        border-right: none;
        border-bottom: none;
    }
    .contact-title {
        font-size: clamp(2.4rem, 11vw, 3.5rem);
        letter-spacing: -2px;
        margin-bottom: 28px;
    }
    .avail-label  { font-size: 0.62rem; }
    .avail-status { font-size: clamp(0.82rem, 3.5vw, 0.95rem); }
    .avail-note   { font-size: 0.7rem; }

    .contact-link-row { padding: 18px 0; min-height: 56px; }
    .contact-link-row:hover { padding-left: 0; } /* disable slide on touch */
    .link-type  { font-size: 0.56rem; width: 72px; }
    .link-value { font-size: clamp(0.78rem, 3.2vw, 0.9rem); }

    .loc-label { font-size: 0.56rem; }
    .loc-value { font-size: clamp(0.76rem, 3vw, 0.88rem); line-height: 1.5; }
    .loc-cell  { padding: 14px 0; }
    .location-block { margin-top: 28px; }

}

/* ═══════════════════════════════════════════
   SMALL PHONE — extra scaling ≤ 430 px
   ═══════════════════════════════════════════ */

@media (max-width: 430px) {

    .nav-item { font-size: 1.1rem; }
    .tl { top: 20%; left: 5%; }
    .tr { top: 20%; right: 5%; }
    .bl { bottom: 14%; left: 5%; }
    .br { bottom: 14%; right: 5%; }

    .tile-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
    .tile-card { min-height: 160px; }

    .pd-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }

    .process-headline { font-size: clamp(2.6rem, 14vw, 4.5rem); }

    .contact-title { font-size: clamp(2.2rem, 10vw, 3rem); }

}

/* ═══════════════════════════════════════════
   PRINT STYLESHEET
   File → Print → Save as PDF in any browser.
   Strips all WebGL/canvas/nav; lays content
   out cleanly for paper.
   ═══════════════════════════════════════════ */

@media print {

    /* ── Page setup ── */
    @page { margin: 15mm 18mm; size: A4; }

    /* ── STEP 1: Completely unlock ALL layout constraints ── */
    /* Every element that could clip or scroll must be freed */
    html,
    body,
    body.page-index,
    body.page-projects,
    body.page-process,
    body.page-contact,
    body.page-project-detail,
    #h-scroll-root,
    #h-track,
    .h-panel,
    .panel-vision,
    #project-wrap,
    #view-tile,
    #view-roulette,
    #view-list,
    .pd-content,
    .contact-split,
    .contact-left,
    .about-content,
    .vision-inner,
    .approach-inner {
        position: static !important;
        overflow: visible !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        width: auto !important;
        max-width: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        flex-shrink: initial !important;
    }

    /* ── STEP 2: Hide decorative / interactive / nav chrome ── */
    #cursor,
    #g-nav-trigger,
    #nav-menu-lines,
    #g-dropdown,
    canvas,
    #flow-canvas,
    #goo-wrap,
    #morph-canvas,
    #blob-container,
    .contact-right,
    .roulette-nav,
    .drag-hint,
    .scroll-hint,
    #view-roulette,
    #view-list,
    #h-progress,
    .proj-topbar,
    .pd-topbar,
    .proj-filter-bar,
    .pd-back,
    #audio-init,
    .x-nav,
    #home-logo,
    #site-logo,
    #breadcrumb,
    #page-transition,
    .dropdown-close,
    .scroll-sentence,
    .list-bg,
    #list-bg { display: none !important; }

    /* ── STEP 3: Base colours and fonts ── */
    html, body {
        background: #fff !important;
        color: #111 !important;
        font-size: 11pt;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* ── HOME ── */
    .ui-layer { padding: 40px; }
    .center-label {
        font-size: 28pt;
        color: #111 !important;
        margin-bottom: 20px;
        display: block;
    }
    .sequence-container { display: none; }

    /* ── PROJECTS ── */
    #view-tile { display: block !important; padding: 0; }
    .tile-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .tile-overlay { opacity: 1 !important; }
    .tile-card { aspect-ratio: 3/4; border: 1px solid #ccc !important; }
    .tile-name { color: #fff !important; }

    /* ── PROJECT DETAIL ── */
    .pd-hero { padding: 24px 5% 20px; grid-template-columns: 1fr; }
    .pd-title { font-size: 28pt; color: #111 !important; }
    .pd-year  { color: #555 !important; }
    .pd-body-section { grid-template-columns: 1fr; }
    .pd-body-cell { border-right: none !important; padding: 16px 5%; }
    .pd-body-label { color: #555 !important; }
    .pd-body-text  { color: #111 !important; font-size: 10pt; }
    .pd-image-full { max-height: none; }
    .pd-image-grid { grid-template-columns: 1fr 1fr; }
    .pd-footer-nav { grid-template-columns: 1fr 1fr; }
    .pd-footer-dir, .pd-footer-title { color: #111 !important; }
    .pd-cat-badge { border-color: #999 !important; color: #333 !important; }

    /* ── ABOUT ── */
    .about-content { padding: 24px 5% !important; }
    .about-title { color: #111 !important; font-size: 28pt; }
    .fade-paragraph {
        opacity: 1 !important;
        color: #111 !important;
        font-size: 10.5pt;
        line-height: 1.75;
    }
    .bio-image { filter: none !important; opacity: 1 !important; }

    /* ── PROCESS ── */
    #h-track { display: block !important; }
    .panel-intro    { padding: 32px 8%; }
    .panel-approach { padding: 32px 8%; }
    .panel-vision   { padding: 32px 8%; }

    .process-headline    { color: #111 !important; font-size: 36pt; letter-spacing: -2px; }
    .process-eyebrow     { color: #666 !important; }
    .approach-title      { color: #111 !important; font-size: 22pt; }
    .approach-item-title { color: #555 !important; }
    .approach-item-body  { color: #111 !important; font-size: 10pt; }
    .approach-item       { border-color: #ddd !important; }
    .approach-num        { color: #aaa !important; }
    .vision-inner        { padding-top: 0; }
    .vision-title        { color: #111 !important; font-size: 28pt; }
    .vision-eyebrow      { color: #888 !important; }
    .vision-body p       { color: #111 !important; font-size: 10pt; }
    .vision-section-label { color: #888 !important; }
    .duchamp-quote       { color: #c04800 !important; }
    .vision-img          { filter: none !important; opacity: 1 !important; max-width: 280px; }

    /* ── CONTACT ── */
    .contact-split  { grid-template-columns: 1fr; }
    .contact-left   { padding: 24px 5%; border-right: none !important; }
    .contact-title  { color: #111 !important; font-size: 28pt; }
    .avail-label, .avail-status { color: #111 !important; }
    .status-dot     { display: none; }
    .contact-link-row { border-color: #ddd !important; padding: 10px 0; }
    .link-type      { color: #777 !important; }
    .link-value     { color: #111 !important; }
    .link-arrow     { opacity: 1 !important; transform: none !important; }
    .loc-label      { color: #777 !important; }
    .loc-value      { color: #111 !important; }
    .location-block { background: #f5f5f5 !important; }

    /* ── Show full link URLs ── */
    a[href^="http"]::after,
    a[href^="mailto"]::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #666;
        word-break: break-all;
    }

}
