/* ============================================================
   BHUPSA PRELOADER — NEWSPAPER FLICKER
============================================================ */
#bhupsa-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0e0e0e;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: all;
    font-family: 'Anton', sans-serif;
    color: #f2f1ec;
}

/* Exit: entire page fades + slides up */
#bhupsa-preloader.pl-exit {
    animation: preloaderExit 0.7s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes preloaderExit {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-3%); }
}
#bhupsa-preloader.pl-done { display: none; }

/* ── Halftone dot texture ── */
#bhupsa-preloader::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(242,241,236,0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* ── CRT scanlines ── */
.pl-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0,0,0,0.18) 2px,
        rgba(0,0,0,0.18) 4px
    );
    pointer-events: none;
    z-index: 1;
    animation: scanlineFlicker 0.08s steps(1) infinite;
}
@keyframes scanlineFlicker {
    0%  { opacity: 0.8; }
    50% { opacity: 1;   }
}

/* ── Film grain ── */
.pl-grain {
    position: absolute;
    inset: -50%;
    width: 200%; height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.07'/%3E%3C/svg%3E");
    opacity: 0.12;
    pointer-events: none;
    z-index: 2;
    animation: grainDrift 0.15s steps(2) infinite;
}
@keyframes grainDrift {
    0%   { transform: translate(0,0); }
    25%  { transform: translate(-3px, 2px); }
    50%  { transform: translate(2px, -3px); }
    75%  { transform: translate(-2px, 3px); }
    100% { transform: translate(0, 0); }
}

/* ── All content above overlays ── */
.pl-masthead,
.pl-headlines,
.pl-columns,
.pl-ticker,
.pl-progress-wrap { position: relative; z-index: 10; }

/* ── MASTHEAD ── */
.pl-masthead {
    padding: 14px 28px 0;
    flex-shrink: 0;
}
.pl-mast-rule {
    height: 1px;
    background: rgba(242,241,236,0.2);
    margin-bottom: 8px;
}
.pl-mast-rule--thick {
    height: 3px;
    background: #f2f1ec;
    margin-top: 8px;
    margin-bottom: 0;
}
.pl-mast-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.pl-mast-date {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 3px;
    color: rgba(242,241,236,0.35);
    text-transform: uppercase;
}
.pl-mast-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(1rem, 3vw, 1.8rem);
    letter-spacing: 6px;
    color: #f2f1ec;
    text-align: center;
    flex: 1;
}

/* ── HEADLINES ── */
.pl-headlines {
    padding: 16px 28px 0;
    flex-shrink: 0;
}
.pl-hl-kicker {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: rgba(212,175,55,0.85);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.pl-hl-main {
    font-family: 'Anton', sans-serif;
    font-size: clamp(3.8rem, 14vw, 9.5rem);
    line-height: 0.84;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin: 0;
    /* Flicker glow animation on the whole headline */
    animation: inkFlicker 4s ease-in-out infinite;
}
@keyframes inkFlicker {
    0%, 97%, 100% { text-shadow: none; }
    98%            { text-shadow: 2px 0 rgba(255,0,0,0.4), -2px 0 rgba(0,255,200,0.3); }
    99%            { text-shadow: -3px 0 rgba(255,0,0,0.3), 3px 0 rgba(0,255,200,0.2); }
}

.pl-hl-word { display: inline; }
.pl-hl-word--outline {
    -webkit-text-stroke: 2px rgba(242,241,236,0.5);
    color: transparent;
}
.pl-hl-word--gold { color: rgba(212,175,55,0.9); }

.pl-hl-rule {
    height: 2px;
    background: rgba(242,241,236,0.15);
    margin: 10px 0 8px;
}
.pl-hl-deck {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.72rem, 1.5vw, 0.9rem);
    letter-spacing: 2px;
    color: rgba(242,241,236,0.4);
    text-transform: uppercase;
}

/* ── THREE COLUMNS ── */
.pl-columns {
    display: grid;
    grid-template-columns: 1fr 160px 1fr;
    gap: 0;
    flex: 1;
    border-top: 2px solid rgba(242,241,236,0.12);
    margin: 10px 0 0;
    overflow: hidden;
}
.pl-col {
    padding: 14px 28px;
    border-right: 1px solid rgba(242,241,236,0.1);
}
.pl-col:last-child { border-right: none; }

.pl-col-head {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(212,175,55,0.7);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(242,241,236,0.12);
    padding-bottom: 6px;
    margin-bottom: 10px;
}
.pl-col-body {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    line-height: 1.75;
    color: rgba(242,241,236,0.28);
    /* Simulate newspaper justified text */
    text-align: justify;
    hyphens: auto;
}

/* Center column (logo column) */
.pl-col--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-right: 1px solid rgba(242,241,236,0.1);
    padding: 14px 16px;
}
.pl-col-logo {
    width: clamp(42px, 7vw, 64px);
    filter: invert(1) brightness(1.1);
    animation: logoFloat 2.8s ease-in-out infinite alternate;
}
@keyframes logoFloat {
    from { transform: translateY(0); }
    to   { transform: translateY(-5px); }
}
.pl-col-brand {
    font-family: 'Anton', sans-serif;
    font-size: clamp(1rem, 3vw, 1.6rem);
    letter-spacing: 5px;
    color: #f2f1ec;
}
.pl-col-url {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.56rem;
    letter-spacing: 2px;
    color: rgba(212,175,55,0.5);
    text-transform: uppercase;
}

/* ── BOTTOM TICKER ── */
.pl-ticker {
    display: flex;
    align-items: center;
    gap: 0;
    border-top: 2px solid #f2f1ec;
    border-bottom: 1px solid rgba(242,241,236,0.1);
    height: 32px;
    overflow: hidden;
    flex-shrink: 0;
}
.pl-ticker-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 0 12px;
    background: #f2f1ec;
    color: #0e0e0e;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}
.pl-ticker-track {
    overflow: hidden;
    flex: 1;
}
.pl-ticker-text {
    display: inline-block;
    white-space: nowrap;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(242,241,236,0.5);
    animation: tickerRoll 14s linear infinite;
    padding-left: 24px;
}
@keyframes tickerRoll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── PROGRESS ── */
.pl-progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 28px;
    border-top: 1px solid rgba(242,241,236,0.08);
    flex-shrink: 0;
}
.pl-progress-track {
    flex: 1;
    height: 2px;
    background: rgba(242,241,236,0.1);
    position: relative;
}
.pl-progress-fill {
    height: 2px;
    width: 0%;
    background: #f2f1ec;
    transition: width 0.12s linear;
    position: relative;
}
.pl-progress-fill::after {
    content: '';
    position: absolute;
    right: -4px; top: -4px;
    width: 10px; height: 10px;
    background: rgba(212,175,55,0.9);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.pl-progress-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: rgba(242,241,236,0.3);
    white-space: nowrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .pl-columns {
        grid-template-columns: 1fr;
    }
    .pl-col--center { display: none; }
    .pl-hl-main { font-size: clamp(3rem, 18vw, 5rem); }
    .pl-masthead, .pl-headlines, .pl-col { padding-left: 16px; padding-right: 16px; }
    .pl-progress-wrap { padding: 8px 16px; }
}


/* ============================================
   BHUPSA — BRUTALIST ZINE STYLESHEET
   Global Design Tokens
   ============================================ */





/* ============================================
   BHUPSA — BRUTALIST ZINE STYLESHEET
   Global Design Tokens
   ============================================ */
:root {
    /* ── Core Palette ── */
    --color-ink:        #0e0e0e;
    --color-paper:      #f2f1ec;
    --color-ink-mid:    #444444;
    --color-bg-outer:   #d8d7d1;
    --color-gold:       #d4af37;
    --color-gold-dim:   rgba(212,175,55,0.18);
    --color-gold-glow:  rgba(212,175,55,0.55);
    --color-red-glitch: rgba(220,38,38,0.7);

    /* ── Aliases (back-compat) ── */
    --bg-paper: var(--color-paper);
    --ink:      var(--color-ink);
    --ink-mid:  var(--color-ink-mid);

    /* ── Borders ── */
    --border:    3px solid var(--color-ink);
    --border-sm: 2px solid var(--color-ink);
    --border-xs: 1px solid var(--color-ink);

    /* ── Spacing scale ── */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 28px;
    --space-lg: 48px;
    --space-xl: 72px;

    /* ── Typography ── */
    --font-display: 'Anton', sans-serif;
    --font-serif:   'Cormorant Garamond', serif;
    --font-body:    'Space Grotesk', sans-serif;
    --font-hand:    'Caveat', cursive;

    /* ── Motion ── */
    --ease-spring:     cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out:     cubic-bezier(0.37, 0, 0.63, 1);
    --transition-fast: 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-med:  0.28s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: 0.5s  cubic-bezier(0.22, 1, 0.36, 1);

    /* ── Z-index layers ── */
    --z-header: 100;
    --z-modal:  9000;
    --z-loader: 99999;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: #d8d7d1;
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.5;
    padding: 16px;
}

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

a:hover {
    text-decoration: underline;
}

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

/* ===== ZINE CONTAINER ===== */
.zine-container {
    max-width: 1060px;
    margin: 0 auto;
    background: var(--bg-paper);
    border: var(--border);
    box-shadow: 8px 8px 0 var(--ink);
    /* Paper noise texture */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ===== GRID SYSTEM ===== */
.zine-grid {
    display: grid;
    gap: var(--border);
    background: var(--ink);
    border-bottom: var(--border);
}

.grid-box {
    background: var(--bg-paper);
    padding: 22px;
    position: relative;
}

.inverted {
    background: var(--ink);
    color: var(--bg-paper);
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-display);
    font-weight: normal;
    text-transform: uppercase;
    line-height: 1;
}

.serif-huge {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 6rem);
    text-transform: none;
    line-height: 1;
    letter-spacing: -2px;
}

.handwritten {
    font-family: var(--font-hand);
    font-size: clamp(2rem, 5vw, 3.5rem);
    transform: rotate(-4deg);
    display: inline-block;
}

.meta-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ===== HEADER ===== */
.zine-header {
    display: grid;
    grid-template-columns: 110px 1fr 110px;
    border-bottom: var(--border);
}

.header-box {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.badge-box h2 {
    font-size: 1.6rem;
    line-height: 1;
}

.title-box {
    border-left: var(--border);
    border-right: var(--border);
    gap: 4px;
}

.title-box h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    letter-spacing: 3px;
}

.doodle-logo {
    width: 65px;
    height: auto;
    filter: grayscale(100%) contrast(150%);
}

/* ===== SERVICES STRIP ===== */
.services-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 8px 28px;
    border-bottom: var(--border);
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 1px;
    gap: 8px;
}

.strip-dot {
    font-size: 0.6rem;
}

/* ===== HERO GRID ===== */
.hero-grid {
    grid-template-columns: 2.2fr 1fr;
    grid-template-rows: 1fr auto;
    position: relative;
    min-height: 500px;
}

.hi-box {
    grid-row: 1 / 3;
    overflow: hidden;
    /* Optical stripe lines */
    background: repeating-linear-gradient(90deg,
            transparent 0px,
            transparent 11px,
            rgba(14, 14, 14, 0.07) 11px,
            rgba(14, 14, 14, 0.07) 12px);
}

.massive-text {
    font-size: clamp(8rem, 22vw, 18rem);
    line-height: 0.78;
    letter-spacing: -6px;
    margin-left: -8px;
    text-shadow: 5px 5px 0 var(--bg-paper), 7px 7px 0 var(--ink);
    position: relative;
    z-index: 2;
}

.name-tag {
    position: absolute;
    bottom: 36px;
    left: 32px;
    background: var(--bg-paper);
    padding: 10px 18px;
    border: var(--border);
    transform: rotate(-3deg);
    z-index: 3;
    box-shadow: 3px 3px 0 var(--ink);
}

.name-tag h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-style: italic;
    text-transform: none;
    font-weight: 700;
    line-height: 1.1;
}

.doodle-arrow {
    position: absolute;
    right: -32px;
    bottom: -22px;
    font-size: 1.8rem;
    transform: rotate(40deg);
}

.role-box {
    background: var(--ink);
    color: var(--bg-paper);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
}

.role-label {
    font-family: var(--font-hand);
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: rgba(242, 241, 236, 0.7);
}

.role-title {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    text-transform: none;
    font-style: italic;
    font-weight: 700;
    line-height: 1.2;
}

.contact-box {
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 16px;
}

.jagged-circle {
    background: var(--bg-paper);
    width: 210px;
    height: 210px;
    clip-path: polygon(50% 0%, 55% 5%, 60% 0%, 65% 5%, 70% 0%, 75% 5%, 80% 0%, 85% 5%, 90% 0%, 95% 5%, 100% 0%, 95% 10%, 100% 20%, 95% 30%, 100% 40%, 95% 50%, 100% 60%, 95% 70%, 100% 80%, 95% 90%, 100% 100%, 90% 95%, 80% 100%, 70% 95%, 60% 100%, 50% 95%, 40% 100%, 30% 95%, 20% 100%, 10% 95%, 0% 100%, 5% 90%, 0% 80%, 5% 70%, 0% 60%, 5% 50%, 0% 40%, 5% 30%, 0% 20%, 5% 10%, 0% 0%, 10% 5%, 20% 0%, 30% 5%, 40% 0%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 28px;
    color: var(--ink);
}

.jc-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.jagged-circle a {
    font-size: 0.72rem;
    color: var(--ink);
    display: block;
    margin-bottom: 4px;
}

.jagged-circle a:hover {
    font-weight: 700;
}

.social-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: center;
}

.social-row a {
    font-size: 1.1rem;
    color: var(--ink);
    transition: transform 0.15s;
}

.social-row a:hover {
    transform: scale(1.25);
    text-decoration: none;
}

/* Portrait */
.portrait-container {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}

.cutout-img {
    height: 370px;
    width: auto;
    filter: grayscale(100%) contrast(130%);
}

/* ===== ABOUT / STATS ===== */
.about-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
}

.about-text-box {
    grid-row: 1 / 3;
}

.about-text {
    font-size: 0.95rem;
    color: var(--ink-mid);
    line-height: 1.8;
}

.about-text strong {
    color: var(--ink);
}

.about-text em {
    font-style: italic;
}

.mt-8 {
    margin-top: 16px;
}

.section-title-sm {
    font-family: var(--font-display);
    font-size: 1.6rem;
    border-bottom: var(--border-sm);
    padding-bottom: 6px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 22px 10px;
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
    font-weight: 700;
}

.inverted .stat-num {
    color: var(--bg-paper);
}

.inverted .stat-label {
    color: rgba(242, 241, 236, 0.7);
}

/* ===== PHILOSOPHY ===== */
.philosophy-grid {
    grid-template-columns: 1.5fr 1fr;
}

.philosophy-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px;
}

.philosophy-label {
    font-family: var(--font-hand);
    font-size: 2rem;
    line-height: 1;
    color: var(--ink-mid);
}

.philosophy-sub {
    font-size: 0.9rem;
    color: var(--ink-mid);
    margin: 6px 0 12px;
}

.philosophy-words {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.ampersand {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    color: #bbb;
}

.display-text {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 3rem);
}

.process-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.process-label {
    font-family: var(--font-display);
    font-size: 2rem;
    border-bottom: var(--border-sm);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.proc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    gap: 4px;
}

.proc-dot {
    font-size: 0.5rem;
}

.proc-arrow {
    font-size: 1.2rem;
    color: #aaa;
}

/* ===== CUT DIVIDER ===== */
.cut-divider {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    border-bottom: var(--border);
    font-size: 1rem;
    gap: 8px;
}

.dashed-line {
    flex-grow: 1;
    border-bottom: 2px dashed var(--ink);
}

.pacman {
    letter-spacing: 4px;
}

/* ===== SKILLS ===== */
.skills-grid-outer {
    grid-template-columns: 52px 1fr;
    grid-template-rows: repeat(3, auto);
}

.skills-title-box {
    grid-row: 1 / 4;
    grid-column: 1 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    padding: 16px 8px;
}

.vertical-display-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 4px;
    color: var(--bg-paper);
    white-space: nowrap;
}

.skill-cat-box {
    padding: 18px 22px;
}

.skill-cat-title {
    font-family: var(--font-display);
    font-size: 1rem;
    border-bottom: var(--border-sm);
    padding-bottom: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.icon-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--ink);
    color: var(--bg-paper);
    padding: 5px 12px;
    border: var(--border-sm);
    border-radius: 0;
    transition: transform 0.1s, box-shadow 0.1s;
    cursor: default;
}

.tag:hover {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.tag i {
    font-size: 1rem;
}

/* Softwares icon column inside skills */
.softwares-col {
    grid-column: 2 / 3;
    display: flex;
    padding: 18px 22px;
    align-items: flex-start;
    gap: 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    border-bottom: var(--border-sm);
    padding-bottom: 6px;
    margin-bottom: 14px;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    margin: 0;
    border-bottom: none;
    border-left: var(--border-sm);
    padding: 0 0 0 8px;
    margin-right: 16px;
    white-space: nowrap;
    font-size: 1.4rem;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    align-content: start;
    flex: 1;
}

.soft-icon {
    width: 44px;
    height: 44px;
    border: var(--border-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 2px 2px 0 var(--ink);
    background: var(--bg-paper);
    transition: transform 0.1s, box-shadow 0.1s;
    cursor: default;
}

.soft-icon:hover {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0;
}

.soft-icon:nth-child(1) {
    color: #306998;
}

.soft-icon:nth-child(2) {
    color: #f0db4f;
}

.soft-icon:nth-child(3) {
    color: #e34c26;
}

.soft-icon:nth-child(4) {
    color: #264de4;
}

.soft-icon:nth-child(5) {
    color: #31A8FF;
}

.soft-icon:nth-child(6) {
    color: #F24E1E;
}

.soft-icon:nth-child(7) {
    color: #F5792A;
}

.soft-icon:nth-child(8) {
    color: #21759b;
}

.soft-icon:nth-child(9) {
    color: #4285F4;
}

.soft-icon:nth-child(10) {
    color: #43B02A;
}

.soft-icon:nth-child(11) {
    color: #FF9A00;
}

.soft-icon:nth-child(12) {
    color: #00C4CC;
}

/* ===== PROJECTS ===== */
.projects-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
}

.projects-header-box {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.projects-header-box h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.project-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.proj-cat {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ink-mid);
    display: block;
}

.project-card h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    text-transform: none;
    font-weight: 700;
    line-height: 1.2;
}

.project-card p {
    font-size: 0.85rem;
    color: var(--ink-mid);
    line-height: 1.6;
}

.inverted .proj-cat {
    color: rgba(242, 241, 236, 0.6);
}

.inverted .project-card p {
    color: rgba(242, 241, 236, 0.7);
}

.proj-icon {
    margin-top: auto;
    font-size: 1.8rem;
    opacity: 0.15;
    align-self: flex-end;
}

.inverted .proj-icon {
    opacity: 0.2;
}

/* ===== SERVICES ===== */
.services-section-grid {
    grid-template-columns: 160px repeat(4, 1fr);
}

.services-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-badge {
    text-align: center;
}

.star-badge h4 {
    font-size: 1.4rem;
    line-height: 1.1;
}

.service-card {
    padding: 22px;
}

.service-icon-wrap {
    width: 50px;
    height: 50px;
    border: var(--border-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 12px;
    box-shadow: 2px 2px 0 var(--ink);
}

.inverted .service-icon-wrap {
    box-shadow: 2px 2px 0 rgba(255, 255, 255, 0.3);
}

.service-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.82rem;
    line-height: 1.7;
}

.inverted .service-card p {
    color: rgba(242, 241, 236, 0.75);
}

/* ===== CONTACT ===== */
.contact-grid {
    grid-template-columns: 1fr 1.2fr;
}

.contact-info-box {
    padding: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.contact-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.contact-item a:hover {
    text-decoration: underline;
    font-weight: 700;
}

.social-icons-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-btn {
    width: 42px;
    height: 42px;
    border: var(--border-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 2px 2px 0 var(--ink);
    transition: transform 0.1s, box-shadow 0.1s, background 0.1s, color 0.1s;
    text-decoration: none !important;
    color: var(--ink);
}

.social-btn:hover {
    background: var(--ink);
    color: var(--bg-paper);
    transform: translate(2px, 2px);
    box-shadow: 0 0 0;
}

/* Contact Form */
.contact-form-box {
    padding: 30px;
    background: var(--ink);
    color: var(--bg-paper);
}

.contact-form-box .section-title {
    color: var(--bg-paper);
    border-bottom-color: rgba(242, 241, 236, 0.3);
}

.zine-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(242, 241, 236, 0.7);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(242, 241, 236, 0.25);
    color: var(--bg-paper);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 10px 14px;
    width: 100%;
    transition: border-color 0.2s;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(242, 241, 236, 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(242, 241, 236, 0.7);
}

.zine-btn {
    background: var(--bg-paper);
    color: var(--ink);
    border: var(--border-sm);
    border-color: var(--bg-paper);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 12px 28px;
    cursor: pointer;
    box-shadow: 3px 3px 0 rgba(242, 241, 236, 0.3);
    transition: transform 0.1s, box-shadow 0.1s;
    align-self: flex-start;
}

.zine-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0;
}

.form-success-msg {
    font-size: 0.9rem;
    color: rgba(242, 241, 236, 0.8);
    margin-top: 4px;
}

.form-error-msg {
    font-size: 0.9rem;
    color: #ef4444;
    margin-top: 4px;
    font-weight: 700;
}

/* Select inputs in the contact form */
.zine-form select {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(242, 241, 236, 0.25);
    color: var(--bg-paper);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 10px 32px 10px 14px;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(242,241,236,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    transition: border-color 0.2s;
}
.zine-form select option {
    background: var(--color-ink);
    color: var(--bg-paper);
}
.zine-form select:focus {
    outline: none;
    border-color: rgba(242, 241, 236, 0.7);
}

/* Math Captcha Row */
.form-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid rgba(242, 241, 236, 0.2);
    border-left: 4px solid var(--bg-paper);
    background: rgba(255,255,255,0.03);
}
.captcha-label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(242, 241, 236, 0.5);
    text-transform: uppercase;
    flex-shrink: 0;
}
.captcha-question {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--bg-paper);
    letter-spacing: 1px;
    flex-shrink: 0;
}
.captcha-equals {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: rgba(242, 241, 236, 0.4);
    flex-shrink: 0;
}
.captcha-input {
    width: 70px !important;
    padding: 6px 10px !important;
    font-family: var(--font-display) !important;
    font-size: 1rem !important;
    text-align: center;
    border: 2px solid rgba(242, 241, 236, 0.35) !important;
    flex-shrink: 0;
    -moz-appearance: textfield;
}
.captcha-input::-webkit-inner-spin-button,
.captcha-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.captcha-input:focus {
    border-color: var(--bg-paper) !important;
    outline: none;
}

/* ===== FOOTER ===== */
.zine-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    height: 30px;
    width: auto;
    filter: grayscale(100%) contrast(150%);
}

.footer-center {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ===================================================
   HERO 3D IMMERSIVE SECTION
   =================================================== */

.hero-3d-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--ink);
    overflow: hidden;
    min-height: 600px;
    border-bottom: var(--border);
}

/* ---- Floating Particles ---- */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.p {
    position: absolute;
    font-size: 1rem;
    color: rgba(242, 241, 236, 0.12);
    animation: floatUp 8s linear infinite;
}

.p1 {
    left: 5%;
    top: 80%;
    font-size: 1.4rem;
    animation-delay: 0s;
    animation-duration: 9s;
}

.p2 {
    left: 15%;
    top: 70%;
    font-size: 0.7rem;
    animation-delay: 1.2s;
    animation-duration: 7s;
    color: rgba(212, 175, 55, 0.25);
}

.p3 {
    left: 28%;
    top: 90%;
    font-size: 1.1rem;
    animation-delay: 2s;
    animation-duration: 11s;
}

.p4 {
    left: 42%;
    top: 60%;
    font-size: 0.6rem;
    animation-delay: 0.5s;
    animation-duration: 8s;
}

.p5 {
    left: 55%;
    top: 85%;
    font-size: 1.8rem;
    animation-delay: 3s;
    animation-duration: 13s;
    color: rgba(212, 175, 55, 0.2);
}

.p6 {
    left: 68%;
    top: 75%;
    font-size: 0.8rem;
    animation-delay: 1.8s;
    animation-duration: 10s;
}

.p7 {
    left: 78%;
    top: 55%;
    font-size: 1.2rem;
    animation-delay: 4s;
    animation-duration: 9s;
}

.p8 {
    left: 88%;
    top: 95%;
    font-size: 0.9rem;
    animation-delay: 2.5s;
    animation-duration: 7.5s;
    color: rgba(212, 175, 55, 0.3);
}

.p9 {
    left: 20%;
    top: 40%;
    font-size: 0.5rem;
    animation-delay: 5s;
    animation-duration: 12s;
}

.p10 {
    left: 60%;
    top: 30%;
    font-size: 1.5rem;
    animation-delay: 0.8s;
    animation-duration: 8s;
    color: rgba(212, 175, 55, 0.15);
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}

/* ---- Left Column ---- */
.hero-left {
    position: relative;
    z-index: 2;
    padding: clamp(36px, 5vw, 70px) clamp(28px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    color: var(--bg-paper);
    border-right: var(--border);
}

/* Eyebrow */
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eyebrow-badge {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 3px;
    padding: 5px 14px;
    border: 2px solid var(--bg-paper);
    color: var(--bg-paper);
    white-space: nowrap;
}

.eyebrow-line {
    flex: 1;
    height: 1px;
    background: rgba(242, 241, 236, 0.25);
}

.eyebrow-tag {
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: rgba(242, 241, 236, 0.5);
    white-space: nowrap;
}

/* Big Name + Glitch */
.hero-name-block {
    line-height: 1;
}

.glitch-wrapper {
    position: relative;
    display: inline-block;
}

.hero-big-name {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 12vw, 10rem);
    line-height: 0.85;
    letter-spacing: -4px;
    color: var(--bg-paper);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

/* Glitch layers */
.hero-big-name::before,
.hero-big-name::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.hero-big-name::before {
    color: rgba(212, 175, 55, 0.85);
    clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
    animation: glitch1 4s infinite step-start;
    transform: translate(-3px, 0);
}

.hero-big-name::after {
    color: rgba(242, 241, 236, 0.5);
    clip-path: polygon(0 55%, 100% 55%, 100% 75%, 0 75%);
    animation: glitch2 4s infinite step-start;
    transform: translate(3px, 0);
}

@keyframes glitch1 {

    0%,
    90%,
    100% {
        transform: translate(0);
        opacity: 0;
    }

    91% {
        transform: translate(-4px, 1px);
        opacity: 1;
    }

    93% {
        transform: translate(4px, -1px);
        opacity: 1;
    }

    95% {
        transform: translate(-2px, 0);
        opacity: 1;
    }

    97% {
        opacity: 0;
    }
}

@keyframes glitch2 {

    0%,
    85%,
    100% {
        transform: translate(0);
        opacity: 0;
    }

    86% {
        transform: translate(4px, 2px);
        opacity: 1;
    }

    88% {
        transform: translate(-4px, -2px);
        opacity: 1;
    }

    90% {
        transform: translate(0);
        opacity: 0;
    }
}

.hero-sub-name {
    font-family: var(--font-hand);
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: rgba(212, 175, 55, 0.9);
    margin-top: 4px;
    transform: rotate(-2deg);
    display: inline-block;
}

/* Role chips */
.hero-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.role-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 14px;
    border: 1.5px solid rgba(242, 241, 236, 0.35);
    color: rgba(242, 241, 236, 0.75);
    text-transform: uppercase;
    transition: all 0.2s;
    cursor: default;
}

.role-chip:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.6);
    color: rgb(212, 175, 55);
}

.role-chip i {
    font-size: 0.9rem;
}

/* Tagline */
.hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-style: italic;
    color: rgba(242, 241, 236, 0.65);
    border-left: 3px solid rgba(212, 175, 55, 0.7);
    padding-left: 14px;
    line-height: 1.4;
}

.hero-tagline em {
    color: rgba(212, 175, 55, 0.9);
    font-style: italic;
}

/* CTA Row */
.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 3px;
    padding: 14px 32px;
    background: var(--bg-paper);
    color: var(--ink);
    border: none;
    text-decoration: none;
    box-shadow: 4px 4px 0 rgba(212, 175, 55, 0.8);
    transition: transform 0.15s, box-shadow 0.15s;
}

.hero-cta-btn:hover {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0;
    text-decoration: none;
}

.hero-social-mini {
    display: flex;
    gap: 12px;
}

.hero-social-mini a {
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(242, 241, 236, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: rgba(242, 241, 236, 0.6);
    transition: all 0.2s;
    text-decoration: none;
}

.hero-social-mini a:hover {
    border-color: rgba(212, 175, 55, 0.7);
    color: rgb(212, 175, 55);
    background: rgba(212, 175, 55, 0.1);
}

/* ---- Right Column (3D Card) ---- */
.hero-right {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    gap: 24px;
    background: rgba(242, 241, 236, 0.03);
}

/* 3D Scene */
.hero-card-scene {
    perspective: 1000px;
    width: min(340px, 90%);
    position: relative;
}

.hero-card {
    position: relative;
    width: 100%;
    border: 2px solid rgba(212, 175, 55, 0.5);
    background: #f5f4ee;
    transition: transform 0.1s ease-out;
    transform: perspective(900px) rotateY(-8deg) rotateX(4deg);
    box-shadow:
        -12px 12px 0 rgba(212, 175, 55, 0.15),
        -24px 24px 0 rgba(0, 0, 0, 0.4);
    overflow: hidden;
    cursor: pointer;
}

/* Corner bracket decorations */
.card-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    z-index: 5;
    pointer-events: none;
}

.card-corner.tl {
    top: 8px;
    left: 8px;
    border-top: 2px solid rgb(212, 175, 55);
    border-left: 2px solid rgb(212, 175, 55);
}

.card-corner.tr {
    top: 8px;
    right: 8px;
    border-top: 2px solid rgb(212, 175, 55);
    border-right: 2px solid rgb(212, 175, 55);
}

.card-corner.bl {
    bottom: 8px;
    left: 8px;
    border-bottom: 2px solid rgb(212, 175, 55);
    border-left: 2px solid rgb(212, 175, 55);
}

.card-corner.br {
    bottom: 8px;
    right: 8px;
    border-bottom: 2px solid rgb(212, 175, 55);
    border-right: 2px solid rgb(212, 175, 55);
}

/* Portrait image */
.hero-portrait-img {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.05) saturate(0.9);
}

/* Card bottom label */
.card-overlay-label {
    background: var(--ink);
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.col-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--bg-paper);
    letter-spacing: 2px;
}

.col-url {
    font-size: 0.7rem;
    color: rgba(242, 241, 236, 0.5);
    letter-spacing: 1px;
}

/* Floating stars on card */
.card-star {
    position: absolute;
    font-size: 1.4rem;
    color: rgb(212, 175, 55);
    z-index: 4;
    pointer-events: none;
    animation: starPulse 2.5s ease-in-out infinite alternate;
}

.card-star.s1 {
    top: 12%;
    left: 8%;
    font-size: 1.6rem;
    animation-delay: 0s;
}

.card-star.s2 {
    top: 8%;
    right: 10%;
    font-size: 1.1rem;
    animation-delay: 0.8s;
}

.card-star.s3 {
    top: 38%;
    right: 6%;
    font-size: 0.9rem;
    animation-delay: 1.5s;
}

@keyframes starPulse {
    from {
        transform: scale(1) rotate(0deg);
        opacity: 0.7;
    }

    to {
        transform: scale(1.3) rotate(25deg);
        opacity: 1;
    }
}

/* Card glow shadow */
.hero-card-shadow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 30px;
    background: rgba(212, 175, 55, 0.2);
    filter: blur(18px);
    border-radius: 50%;
}

/* ---- Floating Stats ---- */
.hero-float-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.float-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    border: 1.5px solid rgba(242, 241, 236, 0.2);
    background: rgba(242, 241, 236, 0.05);
    backdrop-filter: blur(4px);
    gap: 2px;
    transition: border-color 0.2s, background 0.2s;
}

.float-stat:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.08);
}

.fs-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: rgb(212, 175, 55);
    line-height: 1;
}

.fs-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(242, 241, 236, 0.5);
    font-weight: 700;
}

/* ===================================================
   SOFTWARE MARQUEE STRIP
   =================================================== */
.marquee-strip {
    overflow: hidden;
    border-bottom: var(--border);
    background: var(--ink);
    padding: 0;
    position: relative;
}

/* Fade edges */
.marquee-strip::before,
.marquee-strip::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.marquee-strip::before {
    left: 0;
    background: linear-gradient(to right, var(--ink), transparent);
}

.marquee-strip::after {
    right: 0;
    background: linear-gradient(to left, var(--ink), transparent);
}

.marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: marqueeScroll 32s linear infinite;
    padding: 14px 0;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.mq-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: rgba(242, 241, 236, 0.75);
    border-right: 1px solid rgba(242, 241, 236, 0.12);
    white-space: nowrap;
    transition: color 0.2s;
}

.mq-item:hover {
    color: var(--bg-paper);
}

.mq-item i {
    font-size: 1.1rem;
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ===================================================
   SKILLS 3D INTERACTIVE SECTION
   =================================================== */

.skills-3d-section {
    position: relative;
    background: var(--ink);
    overflow: hidden;
    padding: 0;
    border-bottom: var(--border);
}

/* ---- Particles ---- */
.skills-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sp {
    position: absolute;
    animation: floatUp 10s linear infinite;
    color: rgba(242, 241, 236, 0.08);
    font-size: 1rem;
}

.sp1 {
    left: 3%;
    top: 85%;
    font-size: 1.5rem;
    animation-delay: 0s;
    animation-duration: 9s;
    color: rgba(212, 175, 55, 0.15);
}

.sp2 {
    left: 18%;
    top: 75%;
    font-size: 0.7rem;
    animation-delay: 1.5s;
    animation-duration: 8s;
}

.sp3 {
    left: 35%;
    top: 90%;
    font-size: 1.2rem;
    animation-delay: 3s;
    animation-duration: 12s;
    color: rgba(212, 175, 55, 0.12);
}

.sp4 {
    left: 52%;
    top: 80%;
    font-size: 0.8rem;
    animation-delay: 0.8s;
    animation-duration: 7s;
}

.sp5 {
    left: 68%;
    top: 70%;
    font-size: 1.8rem;
    animation-delay: 2s;
    animation-duration: 11s;
    color: rgba(212, 175, 55, 0.1);
}

.sp6 {
    left: 82%;
    top: 92%;
    font-size: 0.6rem;
    animation-delay: 4s;
    animation-duration: 9s;
}

.sp7 {
    left: 92%;
    top: 60%;
    font-size: 1.1rem;
    animation-delay: 1s;
    animation-duration: 10s;
    color: rgba(212, 175, 55, 0.2);
}

.sp8 {
    left: 45%;
    top: 30%;
    font-size: 0.9rem;
    animation-delay: 5s;
    animation-duration: 13s;
}

/* ---- Section Header ---- */
.skills-3d-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 64px) 0;
    border-bottom: 1px solid rgba(242, 241, 236, 0.1);
    gap: 20px;
    flex-wrap: wrap;
}

.skills-head-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.skills-eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 4px;
    color: rgba(212, 175, 55, 0.8);
    font-weight: 700;
}

.skills-big-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.85;
    letter-spacing: -3px;
    color: var(--bg-paper);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

/* Glitch on the SKILLS title */
.skills-big-title::before,
.skills-big-title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.skills-big-title::before {
    color: rgba(212, 175, 55, 0.7);
    clip-path: polygon(0 25%, 100% 25%, 100% 45%, 0 45%);
    animation: glitch1 5s infinite step-start;
}

.skills-big-title::after {
    color: rgba(242, 241, 236, 0.4);
    clip-path: polygon(0 60%, 100% 60%, 100% 78%, 0 78%);
    animation: glitch2 5s infinite step-start;
    animation-delay: 0.5s;
}

.skills-head-right {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-style: italic;
    color: rgba(242, 241, 236, 0.45);
    text-align: right;
    line-height: 1.6;
    border-right: 2px solid rgba(212, 175, 55, 0.4);
    padding-right: 16px;
    margin-bottom: 8px;
}

/* ---- Filter Tabs ---- */
.skills-filter-tabs {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px clamp(28px, 5vw, 64px);
    border-bottom: 1px solid rgba(242, 241, 236, 0.1);
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 2px;
    padding: 8px 20px;
    border: 1.5px solid rgba(242, 241, 236, 0.2);
    background: transparent;
    color: rgba(242, 241, 236, 0.55);
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.filter-tab:hover {
    border-color: rgba(212, 175, 55, 0.5);
    color: rgba(212, 175, 55, 0.9);
    background: rgba(212, 175, 55, 0.06);
}

.filter-tab.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgb(212, 175, 55);
    color: rgb(212, 175, 55);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

/* ---- Skills Card Grid ---- */
.skills-3d-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1px;
    background: rgba(242, 241, 236, 0.08);
    padding: 1px;
    margin: 24px clamp(28px, 5vw, 64px) clamp(36px, 5vw, 64px);
    border: 1px solid rgba(242, 241, 236, 0.1);
}

/* ---- Slider Mode ---- */
.skills-3d-grid.slider-mode {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: auto;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    margin-bottom: 24px;
    /* Less margin when button is below */
}

.skills-3d-grid.slider-mode::-webkit-scrollbar {
    display: none;
}

.skills-3d-grid.slider-mode .skill-3d-card {
    flex: 0 0 auto;
    width: 220px;
}

/* ---- Expand Button ---- */
.skills-expand-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-bottom: clamp(36px, 5vw, 64px);
    display: flex;
    justify-content: center;
}

.skills-expand-wrapper.hidden {
    display: none;
}

/* ---- Individual Skill Card ---- */
.skill-3d-card {
    background: rgba(242, 241, 236, 0.03);
    padding: 22px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    cursor: default;
    transition: background 0.2s, transform 0.12s ease-out, box-shadow 0.12s;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    overflow: hidden;
}

.skill-3d-card::before {
    /* Bottom gold line that grows on hover */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: rgb(212, 175, 55);
    transition: width 0.3s ease;
}

.skill-3d-card:hover::before {
    width: 100%;
}

.skill-3d-card:hover {
    background: rgba(242, 241, 236, 0.07);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.08);
}

/* Category badge */
.skill-cat-badge {
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 0;
}

.skill-cat-badge.web {
    background: rgba(38, 77, 228, 0.25);
    color: #6fa3ff;
    border: 1px solid rgba(38, 77, 228, 0.4);
}

.skill-cat-badge.design {
    background: rgba(242, 78, 30, 0.2);
    color: #FF8B6A;
    border: 1px solid rgba(242, 78, 30, 0.4);
}

.skill-cat-badge.automation {
    background: rgba(212, 175, 55, 0.15);
    color: rgb(212, 175, 55);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.skill-cat-badge.marketing {
    background: rgba(8, 102, 255, 0.2);
    color: #66AAFF;
    border: 1px solid rgba(8, 102, 255, 0.35);
}

.skill-cat-badge.td {
    background: rgba(245, 121, 42, 0.2);
    color: #FF9A6C;
    border: 1px solid rgba(245, 121, 42, 0.4);
}

/* Skill icon */
.skill-icon-wrap {
    font-size: 2.4rem;
    line-height: 1;
    transition: transform 0.2s;
}

.skill-3d-card:hover .skill-icon-wrap {
    transform: scale(1.15) translateY(-2px);
}

/* Skill name */
.skill-name {
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    color: rgba(242, 241, 236, 0.85);
    text-transform: uppercase;
    line-height: 1.2;
}

/* Animated skill bar */
.skill-bar-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.skill-bar-fill {
    flex: 1;
    height: 3px;
    background: rgba(242, 241, 236, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    /* starts at 0, animated via JS */
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.6), rgb(212, 175, 55));
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-bar-fill.animated::after {
    width: var(--fill);
}

.skill-pct {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(212, 175, 55, 0.7);
    white-space: nowrap;
    min-width: 28px;
    text-align: right;
}

/* Card hide/show for filtering */
.skill-3d-card.hidden {
    display: none;
}

.skill-3d-card.fade-in {
    animation: cardIn 0.3s ease forwards;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .zine-header {
        grid-template-columns: 80px 1fr 80px;
    }

    /* New 3D Hero */
    .hero-3d-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-left {
        border-right: none;
        border-bottom: var(--border);
        padding: 36px 28px;
    }

    .hero-right {
        padding: 32px 24px;
    }

    .hero-card-scene {
        width: min(280px, 80%);
    }

    /* Remaining legacy sections */
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-text-box {
        grid-column: 1 / 3;
    }

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

    .skills-grid-outer {
        grid-template-columns: 1fr;
    }

    .skills-title-box {
        grid-row: auto;
        width: 100%;
        height: 50px;
        padding: 8px;
    }

    .vertical-display-text {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 1.4rem;
    }

    .softwares-col {
        grid-column: auto;
    }

    .software-grid {
        grid-template-columns: repeat(6, 1fr);
    }

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

    .projects-header-box {
        grid-column: 1 / 3;
    }

    .services-section-grid {
        grid-template-columns: 1fr 1fr;
    }

    .services-badge {
        grid-column: 1 / 3;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body {
        padding: 8px;
    }

    /* ─── Mobile Header: sticky 2-col ─── */
    .zine-header {
        position: sticky;
        top: 0;
        z-index: var(--z-header);
        grid-template-columns: 1fr auto;
        background: var(--bg-paper);
        /* Re-apply border-bottom so it stays visible when sticky */
        border-bottom: var(--border);
        /* Subtle shadow when scrolled (added via JS class .scrolled, optional) */
        box-shadow: 0 2px 12px rgba(14,14,14,0.08);
    }

    /* Hide the LET'S CREATE badge on mobile */
    .header-box.badge-box {
        display: none;
    }

    /* Title box: left-aligned BHUPSA + tagline */
    .title-box {
        border: none;
        align-items: flex-start;
        text-align: left;
        padding: 12px 16px;
        grid-column: 1;
    }

    .title-box h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        letter-spacing: 2px;
    }

    /* Tagline visible but smaller */
    .title-box .meta-text {
        font-size: 0.55rem;
        letter-spacing: 2px;
        opacity: 0.6;
    }

    /* Logo box: right side, compact */
    .location-box {
        border: none;
        border-left: var(--border);
        padding: 10px 14px;
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .doodle-logo {
        width: 44px;
        height: auto;
    }

    /* ─── Services Strip: horizontal scroll on mobile ─── */
    .services-strip {
        font-size: 0.8rem;
        padding: 8px 14px;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* hide scrollbar Firefox */
    }
    .services-strip::-webkit-scrollbar { display: none; } /* hide scrollbar Chrome */

    /* New 3D Hero mobile */
    .hero-left {
        padding: 28px 20px;
        gap: 20px;
    }

    .hero-big-name {
        font-size: clamp(3.5rem, 16vw, 7rem);
        letter-spacing: -2px;
    }

    .hero-float-stats {
        gap: 8px;
    }

    .float-stat {
        padding: 10px 14px;
    }

    .eyebrow-tag {
        display: none;
    }

    /* Legacy */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-header-box {
        grid-column: auto;
    }

    .services-section-grid {
        grid-template-columns: 1fr;
    }

    .services-badge {
        grid-column: auto;
    }

    .software-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .zine-footer {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .philosophy-words {
        flex-direction: column;
        gap: 4px;
    }
}

/* ==========================================================
   PIXEL GAME DIVIDER
   ========================================================== */

.pixel-divider {
    position: relative;
    height: 64px;
    border-top: var(--border);
    border-bottom: var(--border);
    background: var(--bg-paper);
    overflow: hidden;
}

.pixel-divider canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.18;
    image-rendering: pixelated;
}

.pixel-divider-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--ink);
}

.pixel-label {
    font-size: 1rem;
    letter-spacing: 4px;
    animation: pixelPulse 1.5s ease-in-out infinite alternate;
}

@keyframes pixelPulse {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.5;
    }
}

.pixel-lives {
    display: flex;
    gap: 6px;
    font-size: 0.65rem;
    color: var(--ink);
    letter-spacing: 3px;
}

.pixel-score {
    font-size: 0.72rem;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

/* ==========================================================
   SERVICES MAGIC SECTION
   ========================================================== */

.services-magic-section {
    background: var(--ink);
    color: var(--bg-paper);
    border-bottom: var(--border);
    overflow: hidden;
    position: relative;
}

/* Subtle top-right grain texture */
.services-magic-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(242, 241, 236, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.services-magic-section::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(242, 241, 236, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

/* ---- Header ---- */
.services-magic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px) 0;
    border-bottom: 1px solid rgba(242, 241, 236, 0.1);
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.services-magic-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.services-eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 4px;
    color: rgba(212, 175, 55, 0.8);
    font-weight: 700;
}

.services-big-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    line-height: 0.85;
    letter-spacing: -3px;
    color: var(--bg-paper);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

/* Glitch on services title */
.services-big-title::before,
.services-big-title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.services-big-title::before {
    color: rgba(212, 175, 55, 0.55);
    clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
    animation: glitch1 6s infinite step-start;
    animation-delay: 1s;
}

.services-big-title::after {
    color: rgba(242, 241, 236, 0.3);
    clip-path: polygon(0 62%, 100% 62%, 100% 80%, 0 80%);
    animation: glitch2 6s infinite step-start;
    animation-delay: 2s;
}

.services-magic-right {
    position: relative;
    padding-bottom: 12px;
}

.services-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-style: italic;
    color: rgba(242, 241, 236, 0.4);
    line-height: 1.6;
    text-align: right;
    border-right: 2px solid rgba(212, 175, 55, 0.35);
    padding-right: 16px;
}

.services-tagline em {
    color: rgba(212, 175, 55, 0.9);
}

/* ---- Service Cards Grid ---- */
.services-magic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(242, 241, 236, 0.08);
    padding: 1px;
    margin: 32px clamp(28px, 5vw, 64px);
    position: relative;
    z-index: 2;
}

.service-magic-card {
    background: rgba(242, 241, 236, 0.02);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: background 0.3s;
}

.service-magic-card:hover {
    background: rgba(242, 241, 236, 0.06);
}

.service-magic-card.featured {
    background: rgba(212, 175, 55, 0.06);
}

.service-magic-card.featured:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Animated glow blob */
.smc-glow {
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.5s ease, opacity 0.5s;
    opacity: 0;
}

.service-magic-card:hover .smc-glow {
    opacity: 1;
    transform: translate(-20px, -20px);
}

/* Number */
.smc-number {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: rgba(212, 175, 55, 0.5);
    padding: 3px 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: inline-block;
    width: fit-content;
}

/* Icon */
.smc-icon {
    font-size: 2rem;
    color: var(--bg-paper);
    opacity: 0.8;
    transition: transform 0.3s, opacity 0.3s;
    line-height: 1;
}

.service-magic-card:hover .smc-icon {
    transform: scale(1.1) translateY(-2px);
    opacity: 1;
    color: rgb(212, 175, 55);
}

/* Title */
.smc-title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--bg-paper);
    letter-spacing: 1px;
}

/* Description */
.smc-desc {
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.7;
    color: rgba(242, 241, 236, 0.5);
    flex: 1;
}

/* Tech tags */
.smc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.smc-tags span {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 2px 8px;
    border: 1px solid rgba(242, 241, 236, 0.15);
    color: rgba(242, 241, 236, 0.45);
}

/* Animated bottom arrow */
.smc-arrow {
    font-size: 1.2rem;
    color: rgba(212, 175, 55, 0.0);
    align-self: flex-end;
    transition: color 0.3s, transform 0.3s;
}

.service-magic-card:hover .smc-arrow {
    color: rgba(212, 175, 55, 0.8);
    transform: translate(4px, -4px);
}

/* Bottom border that grows on hover */
.service-magic-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: rgb(212, 175, 55);
    transition: width 0.4s ease;
}

.service-magic-card:hover::after {
    width: 100%;
}

.service-magic-card.featured::after {
    background: rgb(212, 175, 55);
}

/* CTA */
.services-magic-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 clamp(28px, 5vw, 64px) clamp(40px, 6vw, 72px);
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.services-cta-note {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: rgba(242, 241, 236, 0.35);
    letter-spacing: 1px;
}

/* ==========================================================
   CONTACT MAGIC SECTION
   ========================================================== */

/* ==========================================================
   CONTACT ZINE SECTION — Redesign
   ========================================================== */

.contact-zine-section {
    overflow: hidden;
    border-bottom: var(--border);
}

/* ── Header ── */
.czs-header {
    background: var(--color-ink);
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 8vw, 100px) clamp(28px, 5vw, 72px) clamp(48px, 6vw, 80px);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 32px;
    border-bottom: 3px solid var(--bg-paper);
}

/* Halftone dot noise background */
.czs-header-noise {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(242,241,236,0.07) 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
}

.czs-header-inner {
    position: relative;
    z-index: 1;
}

.czs-eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: rgba(212, 175, 55, 0.85);
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.czs-title {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 13vw, 11rem);
    line-height: 0.82;
    color: var(--bg-paper);
    text-transform: uppercase;
    letter-spacing: -3px;
    margin-bottom: 24px;
}

.czs-title-em {
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(212, 175, 55, 0.9);
    text-transform: none;
    letter-spacing: -2px;
}

.czs-title-last {
    -webkit-text-stroke: 2px rgba(242, 241, 236, 0.4);
    color: transparent;
    display: block;
}

.czs-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    color: rgba(242, 241, 236, 0.4);
    max-width: 360px;
    line-height: 1.7;
}

/* Right deco */
.czs-header-deco {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.25;
    position: relative;
    z-index: 1;
}
.czs-deco-num {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--bg-paper);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}
.czs-deco-line {
    width: 1px;
    height: 80px;
    background: rgba(242,241,236,0.4);
}

/* ── Body ── */
.czs-body {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
}

/* ── LEFT: Socials Panel ── */
.czs-socials-panel {
    background: var(--bg-paper);
    padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 44px);
    border-right: var(--border);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.czs-panel-tag {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 4px;
    color: var(--ink-mid);
    border-left: 3px solid var(--color-ink);
    padding-left: 10px;
}

/* Social Cards (email, WA, IG) */
.czs-social-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.czs-social-card {
    position: relative;
    overflow: hidden;
    border: var(--border-sm);
    box-shadow: 3px 3px 0 var(--color-ink);
    text-decoration: none !important;
    display: block;
    transition: transform 0.12s, box-shadow 0.12s;
    background: var(--bg-paper);
}
.czs-social-card:hover {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0;
}

/* Ghost big background letter */
.czs-card-bg-text {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 900;
    color: rgba(14,14,14,0.05);
    pointer-events: none;
    line-height: 1;
    letter-spacing: -2px;
    transition: color 0.2s;
}

.czs-social-card:hover .czs-card-bg-text {
    color: rgba(255,255,255,0.08);
}

.czs-card-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    position: relative;
    z-index: 1;
    transition: color 0.15s;
}

.czs-card-icon {
    font-size: 1.4rem;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.15s, transform 0.15s;
}
.czs-social-card:hover .czs-card-icon {
    transform: scale(1.15) rotate(-5deg);
}

.czs-card-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}
.czs-card-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-mid);
    transition: color 0.15s;
}
.czs-card-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-ink);
    transition: color 0.15s;
}

.czs-card-arrow {
    font-size: 1rem;
    opacity: 0.3;
    transition: opacity 0.15s, transform 0.15s;
}
.czs-social-card:hover .czs-card-arrow {
    opacity: 1;
    transform: translate(3px, -3px);
}

/* Card colour themes */
.czs-card-email:hover { background: var(--color-ink); }
.czs-card-email:hover .czs-card-label,
.czs-card-email:hover .czs-card-val,
.czs-card-email:hover .czs-card-icon,
.czs-card-email:hover .czs-card-arrow { color: var(--bg-paper); }

.czs-card-wa:hover { background: #25D366; }
.czs-card-wa .czs-card-icon { color: #25D366; }
.czs-card-wa:hover .czs-card-label,
.czs-card-wa:hover .czs-card-val,
.czs-card-wa:hover .czs-card-icon,
.czs-card-wa:hover .czs-card-arrow { color: #fff; }

.czs-card-ig:hover { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.czs-card-ig .czs-card-icon { color: #dc2743; }
.czs-card-ig:hover .czs-card-label,
.czs-card-ig:hover .czs-card-val,
.czs-card-ig:hover .czs-card-icon,
.czs-card-ig:hover .czs-card-arrow { color: #fff; }

/* Pill row (LI, FB, X) */
.czs-social-row-2 {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.czs-social-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: var(--border-sm);
    box-shadow: 2px 2px 0 var(--color-ink);
    text-decoration: none !important;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: var(--color-ink);
    background: var(--bg-paper);
    transition: transform 0.1s, box-shadow 0.1s, background 0.15s, color 0.15s;
    flex: 1;
    justify-content: center;
}
.czs-social-pill:hover {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0;
}
.czs-pill-li:hover { background: #0A66C2; color: #fff; }
.czs-pill-fb:hover { background: #1877F2; color: #fff; }
.czs-pill-x:hover  { background: var(--color-ink); color: var(--bg-paper); }

/* Status block */
.czs-status-block {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid var(--color-ink);
    border-left: 5px solid #22c55e;
    background: rgba(34, 197, 94, 0.06);
    margin-top: auto;
}
.czs-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: statusBlink 1.8s ease-in-out infinite;
}
.czs-status-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.czs-status-headline {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--color-ink);
}
.czs-status-sub {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--ink-mid);
    letter-spacing: 0.5px;
}

/* Tagline */
.czs-tagline {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: rgba(14, 14, 14, 0.3);
    transform: rotate(-2deg);
    display: inline-block;
    line-height: 1.3;
    margin-top: 4px;
}

/* ── RIGHT: Form Panel ── */
.czs-form-panel {
    background: var(--color-ink);
    padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 44px);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.czs-form-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(242,241,236,0.12);
}

.czs-form-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.9;
    color: var(--bg-paper);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.czs-form-star {
    color: rgba(212, 175, 55, 0.8);
    animation: starPulse 2s ease-in-out infinite alternate;
    font-size: 0.7em;
    vertical-align: middle;
}

/* Fields */
.czs-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.czs-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.czs-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.czs-field label {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(242, 241, 236, 0.38);
}

.czs-field input,
.czs-field select,
.czs-field textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(242,241,236,0.12);
    border-bottom: 2px solid rgba(242,241,236,0.35);
    color: var(--bg-paper);
    font-family: var(--font-body);
    font-size: 0.88rem;
    padding: 10px 12px;
    width: 100%;
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s, background 0.2s;
}

.czs-field input::placeholder,
.czs-field textarea::placeholder {
    color: rgba(242,241,236,0.18);
}

.czs-field input:focus,
.czs-field select:focus,
.czs-field textarea:focus {
    background: rgba(255,255,255,0.07);
    border-color: rgba(242,241,236,0.2);
    border-bottom-color: var(--bg-paper);
}

.czs-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(242,241,236,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 32px;
}
.czs-field select option { background: var(--color-ink); color: var(--bg-paper); }

.czs-field textarea { resize: none; }

/* Captcha row */
.czs-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(242,241,236,0.12);
    border-left: 3px solid rgba(212,175,55,0.6);
}
.czs-captcha-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(212,175,55,0.8);
    flex-shrink: 0;
}
.czs-captcha-q {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--bg-paper);
    letter-spacing: 1px;
    flex-shrink: 0;
}
.czs-captcha-eq {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: rgba(242,241,236,0.3);
    flex-shrink: 0;
}
.czs-captcha-input {
    width: 68px !important;
    padding: 6px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(242,241,236,0.25) !important;
    color: var(--bg-paper);
    font-family: var(--font-display);
    font-size: 1rem;
    text-align: center;
    outline: none;
    flex-shrink: 0;
    -moz-appearance: textfield;
}
.czs-captcha-input::-webkit-inner-spin-button,
.czs-captcha-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.czs-captcha-input:focus { border-color: rgba(212,175,55,0.6) !important; }

/* Submit button */
.czs-submit-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    background: var(--bg-paper);
    color: var(--color-ink);
    border: none;
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.12s, box-shadow 0.12s;
    box-shadow: 4px 4px 0 rgba(242,241,236,0.3);
    margin-top: 4px;
}

.czs-submit-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(212,175,55,0.15);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.czs-submit-btn:hover::after { transform: translateX(0); }
.czs-submit-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(242,241,236,0.2);
}
.czs-submit-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0;
}

.czs-btn-icon {
    font-size: 1rem;
    position: relative;
    z-index: 1;
    transition: transform 0.2s;
}
.czs-submit-btn:hover .czs-btn-icon { transform: translateX(4px) rotate(-30deg); }
.czs-btn-text { position: relative; z-index: 1; }

/* Messages */
.czs-success-msg {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #4ade80;
    padding: 10px 14px;
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-left: 3px solid #4ade80;
    background: rgba(74, 222, 128, 0.06);
    letter-spacing: 0.5px;
}
.czs-error-msg {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #f87171;
    padding: 10px 14px;
    border: 1px solid rgba(248, 113, 113, 0.25);
    border-left: 3px solid #f87171;
    background: rgba(248, 113, 113, 0.06);
    letter-spacing: 0.5px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .czs-body {
        grid-template-columns: 1fr;
    }
    .czs-socials-panel {
        border-right: none;
        border-bottom: var(--border);
    }
    .czs-header {
        grid-template-columns: 1fr;
    }
    .czs-header-deco { display: none; }
}

@media (max-width: 600px) {
    .czs-field-row {
        grid-template-columns: 1fr;
    }
    .czs-title {
        letter-spacing: -1px;
    }
}

/* ==========================================================
   FOOTER MAGIC
   ========================================================== */

.zine-footer-magic {
    background: var(--ink);
    color: var(--bg-paper);
    border-top: var(--border);
}

/* Top section */
.footer-magic-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px clamp(20px, 4vw, 48px);
    border-bottom: 1px solid rgba(242, 241, 236, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.fmt-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    height: 36px;
    width: auto;
    filter: grayscale(100%) contrast(150%) invert(1);
}

.fmt-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fmt-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--bg-paper);
}

.fmt-tagline {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: rgba(242, 241, 236, 0.35);
    text-transform: uppercase;
}

/* Nav */
.footer-magic-nav {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-magic-nav a {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(242, 241, 236, 0.5);
    transition: color 0.2s;
    text-decoration: none;
}

.footer-magic-nav a:hover {
    color: var(--bg-paper);
    text-decoration: none;
}

/* Socials in footer */
.footer-magic-socials {
    display: flex;
    gap: 8px;
}

.footer-magic-socials .social-btn {
    border-color: rgba(242, 241, 236, 0.2);
    color: rgba(242, 241, 236, 0.5);
    background: transparent;
    box-shadow: 2px 2px 0 rgba(242, 241, 236, 0.15);
}

.footer-magic-socials .social-btn:hover {
    background: var(--bg-paper);
    color: var(--ink);
    border-color: var(--bg-paper);
}

/* Marquee-style divider */
.footer-magic-divider {
    overflow: hidden;
    border-top: 1px solid rgba(242, 241, 236, 0.1);
    border-bottom: 1px solid rgba(242, 241, 236, 0.1);
    background: rgba(242, 241, 236, 0.03);
    padding: 10px 0;
    white-space: nowrap;
}

.fmd-text {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: rgba(242, 241, 236, 0.18);
    animation: marqueeScroll 18s linear infinite;
    padding-right: 60px;
}

/* Bottom bar */
.footer-magic-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px clamp(20px, 4vw, 48px);
    flex-wrap: wrap;
    gap: 10px;
}

.fmb-copy {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: rgba(242, 241, 236, 0.3);
    letter-spacing: 1px;
}

.fmb-lang {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(242, 241, 236, 0.25);
}

.fmb-thanks {
    color: rgba(212, 175, 55, 0.7);
}

/* ==========================================================
   RESPONSIVE — new sections
   ========================================================== */

@media (max-width: 900px) {
    .services-magic-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-magic-body {
        grid-template-columns: 1fr;
    }

    .contact-info-magic {
        border-right: none;
        border-bottom: var(--border);
    }

    .footer-magic-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-magic-nav {
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .services-magic-grid {
        grid-template-columns: 1fr;
    }

    .services-magic-header {
        flex-direction: column;
        gap: 12px;
    }

    .services-tagline {
        text-align: left;
        border-right: none;
        border-left: 2px solid rgba(212, 175, 55, 0.35);
        padding-right: 0;
        padding-left: 12px;
    }

    .contact-big-title {
        font-size: clamp(3rem, 16vw, 7rem);
        letter-spacing: -2px;
    }

    .pixel-divider-overlay {
        padding: 0 14px;
    }

    .pixel-label {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .footer-magic-nav {
        display: none;
    }

    .footer-magic-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================
   ABOUT MAGIC SECTION
   ========================================================== */

.about-magic-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--ink);
    border-bottom: var(--border);
    border-top: var(--border);
    position: relative;
    overflow: hidden;
}

/* subtle decorative circle */
.about-magic-section::before {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(242, 241, 236, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

/* Left: text block */
.about-magic-left {
    padding: clamp(36px, 6vw, 72px) clamp(28px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: var(--border);
    position: relative;
    z-index: 2;
    color: var(--bg-paper);
}

.about-eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 4px;
    color: rgba(212, 175, 55, 0.8);
    font-weight: 700;
    margin-bottom: 12px;
}

.about-big-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.85;
    letter-spacing: -3px;
    color: var(--bg-paper);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.about-big-title em {
    font-family: var(--font-serif);
    font-style: italic;
    text-transform: none;
    letter-spacing: -2px;
    color: rgba(212, 175, 55, 0.9);
}

.about-magic-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.85;
    color: rgba(242, 241, 236, 0.55);
}

.about-magic-text strong {
    color: rgba(242, 241, 236, 0.85);
}

.about-magic-text em {
    color: rgba(212, 175, 55, 0.8);
    font-style: italic;
}

/* Right: stat cards (2x2 grid) */
.about-magic-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(242, 241, 236, 0.08);
    padding: 1px;
}

.about-stat-card {
    background: var(--ink);
    padding: clamp(24px, 4vw, 40px) clamp(20px, 3vw, 32px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: background 0.3s;
}

.about-stat-card:hover {
    background: rgba(242, 241, 236, 0.04);
}

.about-stat-card.inverted {
    background: rgba(212, 175, 55, 0.07);
}

.about-stat-card.inverted:hover {
    background: rgba(212, 175, 55, 0.12);
}

/* Animated shimmer bar at bottom */
.asc-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: rgb(212, 175, 55);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-stat-card:hover .asc-bar {
    width: 100%;
}

.about-stat-card.inverted .asc-bar {
    background: rgba(242, 241, 236, 0.5);
}

.asc-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.asc-num {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    color: var(--bg-paper);
    transition: color 0.3s;
}

.about-stat-card.inverted .asc-num {
    color: rgb(212, 175, 55);
}

.asc-suffix {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: rgba(212, 175, 55, 0.7);
    display: inline;
}

.about-stat-card.inverted .asc-suffix {
    color: rgba(212, 175, 55, 0.8);
}

.asc-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(242, 241, 236, 0.35);
    margin-top: 6px;
}

/* ========================================================== 
   PHILOSOPHY MAGIC SECTION
   ========================================================== */

.philosophy-magic-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--ink);
    gap: 0;
    border-bottom: var(--border);
}

/* Left: Philosophy panel */
.philosophy-magic-left {
    padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    border-right: var(--border);
    position: relative;
    overflow: hidden;
    color: var(--bg-paper);
}

/* Decorative noise lines in bg */
.philosophy-magic-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg,
            transparent 0px,
            transparent 18px,
            rgba(242, 241, 236, 0.025) 18px,
            rgba(242, 241, 236, 0.025) 19px);
    pointer-events: none;
}

.pml-eyebrow {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 5px;
    color: rgba(212, 175, 55, 0.7);
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.pml-heading {
    position: relative;
    z-index: 2;
}

.pml-sub {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(242, 241, 236, 0.35);
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.pml-words {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.pml-amp {
    font-family: var(--font-display);
    font-size: 2rem;
    color: rgba(242, 241, 236, 0.2);
}

.pml-display {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    line-height: 1;
    color: var(--bg-paper);
    letter-spacing: 1px;
}

.pml-quote {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(242, 241, 236, 0.1);
    position: relative;
    z-index: 2;
}

/* ========================================================== 
   PROCESS TIMELINE (Right panel)
   ========================================================== */

.process-magic-right {
    padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 52px);
    display: flex;
    flex-direction: column;
    gap: 32px;
    background: var(--bg-paper);
    color: var(--ink);
}

.pmr-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 20px;
    border-bottom: var(--border-sm);
}

.pmr-eyebrow {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--ink-mid);
    font-weight: 700;
}

.pmr-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-style: italic;
    text-transform: none;
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
}

/* Timeline list */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ptl-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.ptl-item.ptl-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Connector: dot + vertical line */
.ptl-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding-top: 4px;
}

.ptl-dot {
    width: 14px;
    height: 14px;
    border: 2px solid var(--ink);
    background: var(--bg-paper);
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.3s, border-color 0.3s;
    position: relative;
}

/* Inner pulse dot */
.ptl-dot::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--ink);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.ptl-item:hover .ptl-dot::after {
    transform: scale(1);
}

.ptl-dot.active {
    background: rgb(212, 175, 55);
    border-color: rgb(212, 175, 55);
}

.ptl-dot.active::after {
    background: var(--bg-paper);
    transform: scale(1);
}

.ptl-line {
    width: 2px;
    flex: 1;
    min-height: 36px;
    background: rgba(14, 14, 14, 0.12);
    margin: 4px 0;
}

.ptl-item.last .ptl-line {
    display: none;
}

/* Content */
.ptl-content {
    padding: 0 0 28px 0;
    flex: 1;
}

.ptl-num {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: rgba(212, 175, 55, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 2px 7px;
    display: inline-block;
    margin-bottom: 6px;
}

.ptl-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 6px;
    line-height: 1;
    transition: color 0.2s;
}

.ptl-item:hover .ptl-name {
    color: rgba(14, 14, 14, 0.7);
}

.ptl-desc {
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--ink-mid);
}

/* ========================================================== 
   CONTACT CTA BANNER (replaces social strip)
   ========================================================== */

.contact-cta-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 20px;
    background: var(--ink);
    color: var(--bg-paper);
    border: var(--border-sm);
    border-color: var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: default;
}

.contact-cta-banner:hover {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0;
}

.ccb-star {
    font-size: 1.4rem;
    color: rgb(212, 175, 55);
    animation: starPulse 2s ease-in-out infinite alternate;
    flex-shrink: 0;
}

.ccb-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.ccb-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(242, 241, 236, 0.6);
}

.ccb-sub {
    color: var(--bg-paper);
}

.ccb-arrow {
    font-size: 1.4rem;
    color: rgba(242, 241, 236, 0.3);
    transition: color 0.2s, transform 0.2s;
}

.contact-cta-banner:hover .ccb-arrow {
    color: rgba(212, 175, 55, 0.9);
    transform: translate(4px, 0);
}

/* ==========================================================
   RESPONSIVE — about/philosophy/process
   ========================================================== */

@media (max-width: 900px) {
    .about-magic-section {
        grid-template-columns: 1fr;
    }

    .about-magic-left {
        border-right: none;
        border-bottom: var(--border);
    }

    .philosophy-magic-section {
        grid-template-columns: 1fr;
    }

    .philosophy-magic-left {
        border-right: none;
        border-bottom: var(--border);
    }

    .process-magic-right {
        border-top: none;
    }
}

@media (max-width: 600px) {
    .about-magic-right {
        grid-template-columns: 1fr 1fr;
    }

    .about-big-title {
        font-size: clamp(2.5rem, 12vw, 5rem);
        letter-spacing: -2px;
    }

    .ptl-item {
        gap: 14px;
    }
}

/* ============================================================
   BHUPSA — PROJECTS SECTION v2
   LIGHT theme — mirrors Skills dark header pattern
   ============================================================ */

/* ---- Section Wrapper: clearly LIGHT background ---- */
.projects-new-section {
    background: var(--bg-paper);
    border-bottom: var(--border);
    position: relative;
    /* overflow must be visible so card hover transform+shadow show outside grid */
    overflow: visible;
}

/* ── Light-mode floating particles (ink, very faint) ── */
.projects-new-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 80%, rgba(14,14,14,0.03) 0%, transparent 60%),
        radial-gradient(circle at 90% 20%, rgba(212,175,55,0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Section Header: matches skills-3d-header layout ---- */
.projects-new-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 64px) 0;
    border-bottom: 1px solid rgba(14,14,14,0.1);
}

.proj-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Eyebrow — ink gold accent (inverse of skills gold eyebrow) */
.proj-eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-gold);
}

/* Title — ink text on light bg (mirror of skills: light text on dark bg) */
.proj-big-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.85;
    letter-spacing: -3px;
    color: var(--ink);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

/* Right quote block — ink mid, border-left (mirror of skills border-right) */
.proj-header-right {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-style: italic;
    color: var(--ink-mid);
    text-align: right;
    line-height: 1.6;
    border-right: 2px solid rgba(14,14,14,0.2);
    padding-right: 16px;
    margin-bottom: 8px;
}

/* ---- Filter Tabs: same pill style as skills, but on light bg ---- */
.proj-filter-tabs {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px clamp(28px, 5vw, 64px);
    border-bottom: 1px solid rgba(14,14,14,0.1);
}

.proj-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 2px;
    padding: 8px 20px;
    border: 1.5px solid rgba(14,14,14,0.2);
    background: transparent;
    color: rgba(14,14,14,0.55);
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    position: relative;
}

.proj-filter-tab:hover {
    border-color: rgba(212,175,55,0.6);
    color: rgba(212,175,55,0.9);
    background: rgba(212,175,55,0.06);
}

.proj-filter-tab.active {
    background: rgba(212,175,55,0.12);
    border-color: var(--color-gold);
    color: var(--color-gold);
    box-shadow: 0 0 12px rgba(212,175,55,0.15);
}

.proj-tab-count {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    background: rgba(14,14,14,0.08);
    color: inherit;
    padding: 1px 6px;
    border-radius: 20px;
    letter-spacing: 0;
    min-width: 18px;
    text-align: center;
}
.proj-filter-tab.active .proj-tab-count { background: rgba(212,175,55,0.2); }

/* ============================================================
   CARD GRID — padded, with gap for breathing room
   ============================================================ */
.proj-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 32px clamp(28px, 5vw, 64px) 60px;
    background: var(--bg-paper);
    position: relative;
    z-index: 2;
    /* overflow visible so hovered cards can cast shadow outside the grid */
    overflow: visible;
}

/* ============================================================
   PROJECT CARD — magazine card style
   Image-dominant, title on overlay, info strip below
   ============================================================ */
.proj-card-new {
    background: var(--bg-paper);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    outline: none;
    text-align: left;
    overflow: hidden;
    transition:
        transform var(--transition-med),
        box-shadow var(--transition-med);
    position: relative;
}

.proj-card-new:hover {
    transform: translateY(-6px) translateX(-2px);
    box-shadow: 6px 10px 0 var(--ink), 0 20px 40px rgba(14,14,14,0.18);
    z-index: 10;
    position: relative; /* ensure z-index stacks above siblings */
}

.proj-card-new:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* ─── Thumbnail — full-bleed preview image ─── */
.proj-card-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #0e0e0e;
    flex-shrink: 0;
}

/* Preview fills the thumb absolutely */
.proj-card-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #111;
}

/* Gradient mask (bottom dark, so overlay text is readable) */
.proj-card-preview-mask {
    display: none; /* overlay handles gradient now */
}

/* URL iframe — white bg so desktop site renders naturally */
.proj-card-preview--url {
    background: #fff;
    overflow: hidden; /* clip the scaled 1280px iframe to card bounds */
}
.proj-iframe-scale-wrap {
    position: absolute;
    top: 0; left: 0;
    width: 1280px;   /* fixed desktop viewport width */
    height: 960px;   /* tall enough for scroll headroom */
    transform-origin: top left;
    pointer-events: none;
    will-change: transform;
    /* scale is applied by JS after container size is measured */
}
.proj-iframe-scale-wrap iframe {
    width: 100%; height: 100%;
    border: none; display: block;
    background: #fff;
}

/* Image / GIF */
.proj-card-preview--img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

/* Video */
.proj-card-preview--video video {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

/* Gallery auto-scroll */
.proj-card-preview--gallery { position: relative; }
.proj-gallery-card-slide {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: block;
}
.proj-gallery-card-slide.active { opacity: 1; }

/* Empty placeholder */
.proj-card-preview--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14,14,14,0.06), rgba(14,14,14,0.14));
    position: absolute; inset: 0;
}
.proj-card-preview--empty i {
    font-size: 3rem;
    color: rgba(14,14,14,0.12);
}

/* ─── Dark gradient overlay — title lives here ─── */
.proj-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(
        to top,
        rgba(10,10,10,0.93) 0%,
        rgba(10,10,10,0.55) 55%,
        transparent 100%
    );
    padding: 14px 14px 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

/* Sub-category pill */
.proj-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(212,175,55,0.18);
    border: 1px solid rgba(212,175,55,0.45);
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 8px;
    align-self: flex-start;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.proj-card-badge i { font-size: 0.65rem; }

/* Title on image */
.proj-card-title {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-style: italic;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* Location below title */
.proj-card-loc {
    font-family: var(--font-body);
    font-size: 0.58rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.proj-card-loc i { font-size: 0.55rem; }

/* Year chip — top right corner */
.proj-card-year-chip {
    position: absolute;
    top: 10px; right: 10px;
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.9);
    background: rgba(10,10,10,0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 3px 9px;
    z-index: 5;
    pointer-events: none;
}

/* Logo chip — top left (when project has a logo) */
.proj-card-thumb-logo {
    position: absolute;
    top: 10px; left: 10px;
    width: 32px; height: 32px;
    object-fit: contain;
    background: rgba(255,255,255,0.92);
    border: 1.5px solid rgba(255,255,255,0.3);
    padding: 3px;
    z-index: 5;
    pointer-events: none;
}

/* ─── Info strip (paper background, below image) ─── */
.proj-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 12px;
    background: var(--bg-paper);
    border-top: 2px solid rgba(14,14,14,0.08);
    position: relative;
}

/* Left gold accent line on hover */
.proj-card-info::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: var(--color-gold);
    transition: width var(--transition-fast);
}
.proj-card-new:hover .proj-card-info::before {
    width: 2px;
}

/* Description — 2-line clamp */
.proj-card-desc {
    font-family: var(--font-body);
    font-size: 0.76rem;
    line-height: 1.65;
    color: var(--ink-mid);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex: 1;
}

/* Footer row: rating | skills + arrow */
.proj-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(14,14,14,0.08);
    flex-wrap: wrap;
}

.proj-card-footer-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* ─── Star Rating ─── */
.proj-card-rating-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Stack two layers: empty grey stars + filled gold stars clipped to width */
.proj-stars {
    position: relative;
    display: inline-block;
    font-size: 0.88rem;
    line-height: 1;
    letter-spacing: 2px;
}

.proj-stars-empty {
    color: rgba(14,14,14,0.15);
    display: block;
    white-space: nowrap;
}

.proj-stars-fill {
    position: absolute;
    top: 0; left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--color-gold);
    /* width is set inline via JS e.g. style="width:92%" */
}

.proj-rating-num {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ink-mid);
    line-height: 1;
}

/* ─── Skill icons ─── */
.proj-card-skill-icons {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
}

.proj-skill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border: 1px solid rgba(14,14,14,0.1);
    font-size: 0.85rem;
    background: rgba(255,255,255,0.7);
    transition: transform 0.15s, border-color 0.15s;
    position: relative;
    cursor: default;
}
.proj-skill-icon:hover {
    transform: translateY(-2px) scale(1.18);
    border-color: rgba(14,14,14,0.25);
    background: #fff;
    z-index: 10;
}

/* Tooltip */
.proj-skill-icon::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--bg-paper);
    font-family: var(--font-body);
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 7px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 100;
}
.proj-skill-icon:hover::after { opacity: 1; }

.proj-skill-text {
    font-size: 0.45rem;
    font-weight: 700;
    color: var(--ink);
    background: rgba(14,14,14,0.06);
    letter-spacing: 0;
    padding: 0 3px;
}

/* ─── Arrow ─── */
.proj-card-arrow {
    font-size: 1.1rem;
    color: var(--ink-mid);
    transition: transform var(--transition-fast), color var(--transition-fast);
    line-height: 1;
    flex-shrink: 0;
}
.proj-card-new:hover .proj-card-arrow {
    transform: translate(3px, -3px);
    color: var(--color-gold);
}

/* ---- No Results ---- */
.proj-no-results {
    grid-column: 1 / -1;
    padding: 80px 40px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--ink-mid);
    letter-spacing: 3px;
    text-transform: uppercase;
    background: var(--bg-paper);
}

/* ============================================================
   PROJECT MODAL (unchanged from v1, keep working)
   ============================================================ */
.proj-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(14,14,14,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.22,1,0.36,1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.proj-modal-overlay.modal-open { opacity: 1; pointer-events: all; }

.proj-modal-box {
    background: var(--bg-paper);
    border: 3px solid var(--ink);
    box-shadow: 10px 10px 0 var(--ink);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.proj-modal-overlay.modal-open .proj-modal-box { transform: translateY(0) scale(1); }

.proj-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 3px solid var(--ink);
    flex-shrink: 0;
    gap: 16px;
    flex-wrap: wrap;
}
.proj-modal-header-left { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.proj-modal-icon-wrap {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid var(--ink);
    font-size: 1.5rem; flex-shrink: 0;
    background: var(--ink); color: rgba(212,175,55,1);
}
.proj-modal-logo-img { width: 52px; height: 52px; object-fit: contain; border: 3px solid var(--ink); padding: 6px; }
.proj-modal-title-block { min-width: 0; flex: 1; }
.proj-modal-title {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-style: italic; font-weight: 700;
    text-transform: none; line-height: 1.2; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proj-modal-breadcrumb {
    font-family: var(--font-body);
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--ink-mid); margin-top: 4px;
}
.proj-modal-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.proj-modal-visit-btn {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-display); font-size: 0.7rem;
    letter-spacing: 2px; text-transform: uppercase;
    padding: 10px 18px;
    background: var(--ink); color: var(--bg-paper);
    border: 2px solid var(--ink); cursor: pointer;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
}
.proj-modal-visit-btn:hover {
    background: rgba(212,175,55,1);
    border-color: rgba(212,175,55,1);
    color: var(--ink); text-decoration: none;
}
.proj-modal-close {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: 2px solid var(--ink);
    cursor: pointer; font-size: 1rem; color: var(--ink);
    transition: background 0.18s, color 0.18s; flex-shrink: 0;
}
.proj-modal-close:hover { background: var(--ink); color: var(--bg-paper); }

.proj-modal-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }

.proj-modal-preview {
    background: #fff;
    border-bottom: 3px solid var(--ink);
    flex-shrink: 0;
    position: relative;
    height: 480px;     /* tall enough to show the site properly */
    overflow: hidden;  /* clip content to the preview box */
}
/* The iframe fills the preview box and IS scrollable */
.proj-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #fff;
    /* Allow user to scroll inside the iframe */
    overflow: auto;
}
.proj-preview-img { max-width: 100%; max-height: 380px; object-fit: contain; display: block; }
.proj-preview-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    color: rgba(242,241,236,0.25);
    font-family: var(--font-display); font-size: 0.75rem;
    letter-spacing: 3px; text-transform: uppercase;
}
.proj-preview-placeholder i { font-size: 2.5rem; }

.proj-preview-gallery { display: flex; width: 100%; height: 100%; position: relative; min-height: 280px; }
.proj-gallery-track { display: flex; transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); height: 100%; width: 100%; }
.proj-gallery-slide { flex-shrink: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.proj-gallery-slide img { max-width: 100%; max-height: 380px; object-fit: contain; }
.proj-gallery-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    background: var(--ink); color: var(--bg-paper); border: none;
    width: 40px; height: 40px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; transition: background 0.15s;
}
.proj-gallery-btn:hover { background: rgba(212,175,55,1); color: var(--ink); }
.proj-gallery-prev { left: 12px; }
.proj-gallery-next { right: 12px; }
.proj-gallery-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.proj-gallery-dot {
    width: 6px; height: 6px; background: rgba(242,241,236,0.3);
    border-radius: 50%; cursor: pointer; border: none;
    transition: background 0.15s, transform 0.15s;
}
.proj-gallery-dot.active { background: rgba(212,175,55,1); transform: scale(1.3); }

.proj-modal-content { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.proj-modal-desc { font-size: 0.92rem; line-height: 1.8; color: var(--ink-mid); }
.proj-modal-skills-row { display: flex; flex-direction: column; gap: 10px; }
.proj-modal-skills-label {
    font-family: var(--font-display); font-size: 0.65rem;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--ink-mid);
    border-bottom: 1.5px solid rgba(14,14,14,0.12); padding-bottom: 8px;
}
.proj-modal-skills-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.proj-modal-skill-pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-body); font-size: 0.65rem;
    font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    padding: 5px 12px;
    border: 2px solid var(--ink); color: var(--ink); background: transparent;
}

/* ============================================================
   RESPONSIVE — PROJECTS GRID & MODAL
   ============================================================ */
@media (max-width: 860px) {
    .proj-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .proj-filter-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .proj-filter-tabs::-webkit-scrollbar { display: none; }
    .proj-filter-tab { flex-shrink: 0; }
}

@media (max-width: 580px) {
    .proj-cards-grid { grid-template-columns: 1fr; }
    .proj-card-preview { height: 190px; }
    .proj-modal-header { padding: 16px 18px; flex-direction: column; align-items: flex-start; }
    .proj-modal-title { white-space: normal; }
    .proj-modal-actions { align-self: flex-end; }
    .proj-modal-content { padding: 20px 18px; }
}

/* ============================================================
   PROJECTS TITLE — GLITCH EFFECT
   Mirrors skills-big-title glitch but on light background
   ============================================================ */
.proj-glitch-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

/* proj-big-title base is set above in the header block */

/* Glitch pseudo-elements (same technique as .skills-big-title) */
.proj-big-title::before,
.proj-big-title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

/* Gold slice — mirrors skills gold glitch */
.proj-big-title::before {
    color: rgba(212,175,55,0.65);
    clip-path: polygon(0 25%, 100% 25%, 100% 45%, 0 45%);
    animation: glitch1 5s infinite step-start;
}

/* Ink-mid slice — mirrors skills paper glitch, flipped to ink */
.proj-big-title::after {
    color: rgba(14,14,14,0.25);
    clip-path: polygon(0 60%, 100% 60%, 100% 78%, 0 78%);
    animation: glitch2 5s infinite step-start;
    animation-delay: 0.5s;
}

/* Second line offset */
.proj-big-title--sub::before { animation-delay: 0.3s; }
.proj-big-title--sub::after  { animation-delay: 0.8s; }

/* ---- Card Description ---- */
.proj-card-desc {
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--ink-mid);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    padding-top: 6px;
    border-top: 1px solid rgba(14,14,14,0.08);
}

/* ============================================================
   BHUPSA — SPACING, MOBILE & POLISH FIXES
   ============================================================ */

/* ── Filter tabs: fade-right scroll hint on mobile ── */
@media (max-width: 860px) {
    .proj-filter-tabs {
        position: relative;
    }
    .proj-filter-tabs::after {
        content: '';
        position: absolute;
        top: 0; right: 0; bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, var(--bg-paper));
        pointer-events: none;
        z-index: 2;
    }
    .skills-filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .skills-filter-tabs::-webkit-scrollbar { display: none; }
    .filter-tab { flex-shrink: 0; }
}

/* ── Projects header: responsive (mirror of skills responsive) ── */
@media (max-width: 900px) {
    .projects-new-header {
        padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 40px) 0;
    }
    .proj-header-right {
        text-align: right;
    }
}

@media (max-width: 600px) {
    .projects-new-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 28px 20px 0;
    }
    .proj-big-title {
        font-size: clamp(3rem, 14vw, 5.5rem);
        letter-spacing: -2px;
    }
    .proj-eyebrow {
        font-size: 0.62rem;
    }
    .proj-header-right {
        text-align: left;
        border-right: none;
        border-left: 2px solid rgba(14,14,14,0.15);
        padding-right: 0;
        padding-left: 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .proj-big-title {
        font-size: clamp(2.5rem, 16vw, 4rem);
    }
    .proj-header-right {
        display: none;
    }
    /* Filter tabs: smaller text */
    .proj-filter-tab {
        padding: 6px 14px;
        font-size: 0.68rem;
        letter-spacing: 1.5px;
    }
}

/* ── Modal: full-screen on very small screens ── */
@media (max-width: 480px) {
    .proj-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .proj-modal-box {
        max-height: 95vh;
        border-left: none;
        border-right: none;
        border-bottom: none;
        box-shadow: none;
        transform: translateY(40px);
    }
    .proj-modal-overlay.modal-open .proj-modal-box {
        transform: translateY(0);
    }
    .proj-modal-title {
        white-space: normal;
        font-size: 1.1rem;
    }
    .proj-modal-icon-wrap,
    .proj-modal-logo-img {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* ── Card preview iframe: better aspect on mobile ── */
@media (max-width: 580px) {
    .proj-card-preview {
        height: 160px;
    }
    /* Skill icon tooltips: appear above on mobile */
    .proj-skill-icon::after {
        bottom: auto;
        top: calc(100% + 6px);
    }
}

/* ── Hero portrait: limit height on tablet ── */
@media (max-width: 900px) {
    .hero-portrait-img {
        max-height: 340px;
        object-fit: cover;
    }
}

/* ── Ensure logo img has no layout shift ── */
.doodle-logo { width: 65px; height: 65px; object-fit: contain; }

/* ─── Visit Site chip (on card overlay, when show_url_preview: true) ─── */
.proj-card-overlay-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.proj-card-visit-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 4px 10px;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    flex-shrink: 0;
    pointer-events: all; /* re-enable pointer events (overlay is normally pointer-events:none) */
    cursor: pointer;
}
.proj-card-visit-chip:hover {
    background: rgba(212,175,55,0.25);
    border-color: rgba(212,175,55,0.55);
    color: var(--color-gold);
}
.proj-card-visit-chip i { font-size: 0.6rem; }

/* Allow the overlay itself to pass pointer events through (except the chip) */
.proj-card-overlay {
    pointer-events: none;
}
.proj-card-overlay .proj-card-visit-chip {
    pointer-events: all;
}

/* ============================================================
   WHATSAPP BOOKING POPUP & FLOATING BUTTON
   ============================================================ */

/* ── Floating WhatsApp Button (Brutalist) ── */
.wa-float-brutalist {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9500;
    background: #25D366;
    color: var(--color-ink);
    border: var(--border);
    box-shadow: 4px 4px 0 var(--color-ink);
    font-family: var(--font-display);
    font-size: 1.2rem;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
    transition: transform 0.1s, box-shadow 0.1s;
    animation: waFloatEntry 0.6s var(--ease-spring) both;
    animation-delay: 3.5s;
}

@keyframes waFloatEntry {
    from { opacity: 0; transform: translateY(40px) scale(0.7); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

.wa-float-brutalist:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--color-ink);
}
.wa-float-brutalist:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--color-ink);
}

/* ── Popup Overlay ── */
.wa-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(14, 14, 14, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
}

.wa-popup-overlay.wa-open {
    opacity: 1;
    visibility: visible;
}

/* ── Popup Box ── */
.wa-popup-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--bg-paper);
    border: var(--border);
    box-shadow: 8px 8px 0 var(--color-ink);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s var(--ease-spring), opacity 0.3s;
    padding: 24px;
}

.wa-popup-overlay.wa-open .wa-popup-box {
    transform: translateY(0);
    opacity: 1;
}

/* ── Close Button ── */
.wa-popup-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    background: var(--color-ink);
    color: var(--bg-paper);
    border: none;
    font-family: var(--font-display);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
    line-height: 1;
}
.wa-popup-close:hover {
    transform: scale(1.1);
}

/* ── Popup Header ── */
.wa-popup-header {
    border-bottom: var(--border-sm);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.wa-popup-header h3 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--color-ink);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wa-popup-header h3 i {
    color: #25D366;
}

.wa-popup-subtitle {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--ink-mid);
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
}

/* ── Popup Form ── */
.wa-popup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wa-form-row {
    display: flex;
    gap: 12px;
}

.wa-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.wa-form-group label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-ink);
}

.wa-form-group input,
.wa-form-group select,
.wa-form-group textarea {
    width: 100%;
    padding: 8px 10px;
    background: #fff;
    border: 2px solid var(--color-ink);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 2px 2px 0 rgba(14, 14, 14, 0.1);
}
.wa-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e0e0e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    padding-right: 28px;
}

.wa-form-group input:focus,
.wa-form-group select:focus,
.wa-form-group textarea:focus {
    box-shadow: 2px 2px 0 var(--color-ink);
}

.wa-form-group textarea {
    resize: none;
}

.wa-optional {
    font-weight: 400;
    color: var(--ink-mid);
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}

/* ── Submit Button ── */
.wa-submit-btn {
    margin-top: 4px;
    background: #25D366;
    color: var(--color-ink);
    border: var(--border-sm);
    box-shadow: 4px 4px 0 var(--color-ink);
    font-family: var(--font-display);
    font-size: 1.2rem;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    letter-spacing: 1.5px;
    transition: transform 0.1s, box-shadow 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.wa-submit-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--color-ink);
}
.wa-submit-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--color-ink);
}

/* ── Header "LET'S CREATE" hover hint ── */
.badge-box.inverted {
    cursor: pointer;
    transition: background var(--transition-fast),
                color var(--transition-fast);
}
.badge-box.inverted:hover {
    background: #25D366;
    color: var(--color-ink);
}

/* ── Body scroll lock when popup open ── */
body.wa-popup-active {
    overflow: hidden;
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .wa-form-row {
        flex-direction: column;
        gap: 12px;
    }
}
