/* =====================================================================
   JOHNGARANG.COM — THEME v4
   One family, many faces. Every page has its own layout; what ties them
   together is the type from the carousels (Anton + Open Sauce One), the
   blue, the "no signal" TV-static grey, and two support colours used only
   to stress something (red = don't, green = result).

   The global header is deliberately NOT styled here: it keeps the
   original design from styles.css (plus the "Let's talk" button).

   Fonts are self-hosted (OFL licences in /static/fonts/).
   ===================================================================== */

@font-face { font-family: 'Anton'; src: url('/static/fonts/anton.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Open Sauce One'; src: url('/static/fonts/open-sauce-400.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Open Sauce One'; src: url('/static/fonts/open-sauce-500.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Open Sauce One'; src: url('/static/fonts/open-sauce-700.woff') format('woff'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Open Sauce One'; src: url('/static/fonts/open-sauce-800.woff') format('woff'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Open Sauce One'; src: url('/static/fonts/open-sauce-900.woff') format('woff'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('/static/fonts/eb-garamond.woff') format('woff'); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('/static/fonts/eb-garamond-italic.woff') format('woff'); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Amatic SC'; src: url('/static/fonts/amatic-sc-700.woff') format('woff'); font-weight: 700; font-display: swap; }

:root {
    --ink: #0e0e10;
    --ink-2: #2c2c30;
    --muted: #66666c;
    --white: #ffffff;
    --grey: #dedede;
    --line: #e2e2e4;
    --blue: #16b2dc;
    --blue-deep: #0a7fae;
    --blue-ink: #08678f;
    --red: #ff3b30;
    --green: #1fbf62;
    --navy: #0b1d27;
    --night: #0b1622;
    --display: 'Anton', 'Archivo Black', Impact, sans-serif;
    --sans: 'Open Sauce One', 'Inter', system-ui, sans-serif;
    --serif: 'EB Garamond', Garamond, Georgia, serif;
    --note: 'Amatic SC', 'Caveat', cursive;
    --r: 18px;
    --static: url('/static/Pictures/texture-static-grey.png');
    --static-dark: url('/static/Pictures/texture-static-dark.png');
    --blob: 42% 58% 63% 37% / 41% 44% 56% 59%;
}

/* ---------- Base (everything except the header) ---------- */
html body { background: var(--white); color: var(--ink-2); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body p, body li, body span, body a, body button, body input, body textarea, body select, body label, body blockquote, body td, body th { font-family: var(--sans); }
body p { color: var(--ink-2); }
body h1, body h2, body h3, body h4, body h5, body h6 { font-family: var(--sans); color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
::selection { background: var(--blue); color: var(--ink); }

/* The header keeps its original look */
.navbar *:not(i) { font-family: 'Segoe UI', system-ui, sans-serif !important; letter-spacing: normal !important; }
.navbar .logo-name { font-family: 'Inter', sans-serif !important; }

.loading-bar-fill { background: var(--blue) !important; }

.blue { color: var(--blue) !important; }
.red { color: var(--red) !important; }
.green { color: var(--green) !important; }

/* Section titles: Anton, the carousel voice */
section > .container > h2,
.section-title {
    font-family: var(--display) !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    letter-spacing: 0.005em !important;
    line-height: 0.95 !important;
    font-size: clamp(2.4rem, 5vw, 4rem) !important;
    color: var(--ink) !important;
}
body h1 span:not(.sticker), body h2 span:not(.sticker), body h3 span:not(.sticker) { font-family: inherit !important; }
.section-subtitle, .skills-intro { color: var(--muted) !important; font-size: 1.1rem !important; font-style: normal !important; }

/* ---------- Shared pieces ---------- */
.eyebrow { display: flex; align-items: center; justify-content: center; gap: .7rem; font-size: .85rem; font-weight: 500; color: var(--ink-2); margin-bottom: 1.5rem; }
.eyebrow i { width: 1.5px; height: 1em; background: currentColor; display: inline-block; }
.eyebrow.left { justify-content: flex-start; }
.eyebrow.light, .on-dark .eyebrow { color: rgba(255,255,255,.8); }

.sticker { display: inline-flex; align-items: center; gap: .45rem; background: var(--white); color: var(--ink); font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1; padding: .7rem 1.05rem; border-radius: 12px; box-shadow: 0 14px 28px -10px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.08); transform: rotate(-4deg); white-space: nowrap; }
.sticker.r2 { transform: rotate(3deg); }
.sticker.r0 { transform: rotate(-1deg); }
.sticker.ink { background: var(--ink); color: var(--white); }
.sticker.blue { background: var(--blue); color: var(--ink) !important; }
.sticker.green { background: var(--green); color: #fff !important; }
.sticker-stack { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.sticker-stack .sticker:nth-child(2) { margin-right: -1.2rem; }

.grad-blue { background: linear-gradient(90deg, #1a9eee, #16b2dc 45%, #59d6f5); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.grad-red { background: linear-gradient(90deg, #d4145a, #ff3b30 55%, #ff7a1a); -webkit-background-clip: text; background-clip: text; color: transparent !important; }

/* "No signal" TV-static grey, light and dark */
.tex-grey, .tex-static { background-color: #dcdcdc !important; background-image: var(--static) !important; background-size: 512px !important; }
.tex-dark, .tex-static-dark { background-color: #0e0e10 !important; background-image: var(--static-dark) !important; background-size: 512px !important; color: #fff; }
.tex-dark h1, .tex-dark h2, .tex-dark h3 { color: #fff !important; }
.tex-dark p { color: rgba(255,255,255,.75) !important; }

.blob { position: absolute; background: var(--blue); border-radius: var(--blob); z-index: 0; }

.brush { position: relative; z-index: 0; white-space: nowrap; }
.brush::before { content: ''; position: absolute; z-index: -1; left: -.12em; right: -.55em; top: .2em; bottom: .02em; background: linear-gradient(100deg, rgba(22,178,220,0) 0%, rgba(22,178,220,.55) 4%, rgba(22,178,220,.5) 82%, rgba(22,178,220,.12) 93%, rgba(22,178,220,0) 100%); border-radius: .3em .6em .4em .7em / .6em .4em .7em .3em; transform: rotate(-1.2deg); }

.erode { background-image: linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.75) 55%, #fff 100%), var(--static); background-size: auto, 512px; background-blend-mode: multiply; -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.erode-soft { background-image: linear-gradient(180deg, rgba(255,255,255,.8), #fff), var(--static); background-size: auto, 512px; background-blend-mode: multiply; -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.fall { display: inline-block; }
.fall .ch { display: inline-block; transition: transform 1.4s cubic-bezier(.3,.7,.2,1), opacity 1.4s ease; }

/* ---------- Buttons ---------- */
.view-more-btn, .btn-ink, .quote-btn, .project-link, .return-btn,
.professional-contact-form button[type="submit"] {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--ink) !important; color: var(--white) !important; border: none !important;
    border-radius: 999px !important; box-shadow: none !important; font-family: var(--sans) !important; font-weight: 700 !important;
    text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
}
.view-more-btn, .btn-ink { padding: .95rem 1.7rem; }
.view-more-btn:hover, .btn-ink:hover, .quote-btn:hover, .project-link:hover, .return-btn:hover, .professional-contact-form button[type="submit"]:hover {
    background: var(--blue) !important; color: var(--ink) !important; transform: translateY(-2px) !important; box-shadow: 0 14px 26px -12px rgba(22,178,220,.8) !important;
}
.btn-blue { display: inline-flex; align-items: center; gap: .5rem; background: var(--blue); color: var(--ink) !important; border-radius: 999px; padding: .95rem 1.7rem; font-weight: 800; text-decoration: none; transition: all .2s ease; }
.btn-blue:hover { background: var(--white); transform: translateY(-2px); }
.btn-ghost { display: inline-flex; align-items: center; gap: .5rem; border: 1.5px solid currentColor; color: var(--ink) !important; border-radius: 999px; padding: .9rem 1.6rem; font-weight: 700; text-decoration: none; transition: all .2s ease; }
.btn-ghost:hover { background: var(--ink); color: var(--white) !important; border-color: var(--ink); }
.btn-ghost.light, .on-dark .btn-ghost { color: var(--white) !important; }
.btn-ghost.light:hover, .on-dark .btn-ghost:hover { background: var(--white); color: var(--ink) !important; border-color: var(--white); }
.btn-light { background: var(--white) !important; color: var(--ink) !important; border-radius: 999px !important; font-weight: 800; }
.btn-light:hover { background: var(--blue) !important; }
.back-link { color: var(--ink-2) !important; font-weight: 600; text-decoration: none; opacity: 1 !important; }
.on-dark .back-link { color: rgba(255,255,255,.75) !important; }

/* ---------- Cards (calm, consistent). Skill cards keep the original look. ---------- */
.category-card, .program-card, .service-detail, .article-card, .web-project-card, .service-card-page, .contact-method, .bio-card, .contact-card {
    background: var(--white) !important; border: 1px solid var(--line) !important; border-radius: var(--r) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.03) !important; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}
.category-card:hover, .program-card:hover, .service-detail:hover, .article-card:hover, .web-project-card:hover, .service-card-page:hover, .contact-method:hover, .bio-card:hover, .contact-card:hover {
    transform: translateY(-5px) !important; border-color: var(--ink) !important; box-shadow: 0 22px 40px -24px rgba(0,0,0,.45) !important;
}
.section-tag { background: var(--ink) !important; color: var(--white) !important; border-radius: 999px !important; font-family: var(--sans) !important; font-weight: 700 !important; letter-spacing: .08em !important; font-size: .72rem !important; box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); transform: rotate(-2deg); }
.on-dark .section-tag { background: var(--blue) !important; color: var(--ink) !important; }
.credential-badge, .prog-tag, .ab-tag, .project-tag, .pub-badge { background: var(--white) !important; border: 1px solid var(--line) !important; color: var(--ink) !important; border-radius: 999px !important; font-weight: 600 !important; box-shadow: 0 6px 14px -10px rgba(0,0,0,.4); }
.project-tag { display: inline-block !important; width: auto !important; }
.article-category { background: var(--ink) !important; color: var(--white) !important; border-radius: 999px !important; }
.read-more, .post-date, .read-time { color: var(--blue-ink) !important; }
.tab-btn { border-radius: 999px !important; border: 1.5px solid var(--ink) !important; background: var(--white) !important; color: var(--ink) !important; font-weight: 700 !important; box-shadow: none !important; }
.tab-btn.active, .tab-btn:hover { background: var(--ink) !important; color: var(--white) !important; }

/* Services cards: one card, image + content */
.service-detail { padding: 1.1rem !important; align-items: stretch !important; }
.service-detail .service-image { margin-bottom: .8rem !important; }
.service-detail .service-image img, .service-card-page .service-image img { border-radius: 12px !important; box-shadow: none !important; }
.service-detail .service-content, .service-card-page .service-content { background: transparent !important; box-shadow: none !important; transform: none !important; padding: .5rem .6rem .6rem !important; text-align: left !important; }
.service-content h3, .service-card-page h3 { font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; font-size: 1.8rem !important; letter-spacing: .01em !important; }

/* Forms */
.form-group input, .form-group select, .form-group textarea { border-radius: 12px !important; border: 1.5px solid var(--line) !important; background: var(--white) !important; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue) !important; box-shadow: 0 0 0 4px rgba(22,178,220,.18) !important; outline: none !important; }

/* =====================================================================
   HOME
   ===================================================================== */
/* Hero: name sits behind John, three aligned layers */
.hero.hero-layers { position: relative; height: 100vh; min-height: 640px; max-height: 1100px; padding: 0 15px 70px; display: flex; align-items: flex-end; background: #2b3a22 !important; overflow: hidden; text-align: left; color: #fff; }
.hero.hero-layers::before { content: none !important; }
.hl-bg, .hl-cut { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; pointer-events: none; }
.hl-bg { z-index: 0; }
.hl-name {
    position: absolute; z-index: 1; left: 0; right: 0; top: 40%; margin: 0 !important; text-align: center;
    font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: .01em !important;
    font-size: clamp(3.4rem, 11.5vw, 11.5rem) !important; line-height: .9 !important; color: #fff !important; white-space: nowrap;
    text-shadow: 0 18px 60px rgba(0,0,0,.35);
}
.hl-cut { z-index: 2; }
.hl-shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(4,20,28,.88) 100%), radial-gradient(60% 50% at 25% 100%, rgba(22,178,220,.4), transparent 70%); }
.hl-content { position: relative; z-index: 4; display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: end; width: 100%; }
.hero.hero-layers .hero-content { max-width: none; margin: 0; text-align: left; }
.hero.hero-layers .hero-subtitle { font-family: var(--sans) !important; font-weight: 800 !important; font-size: clamp(1.3rem, 2.4vw, 2rem) !important; color: #7fe0fa !important; margin: 0 0 .7rem !important; letter-spacing: -.02em; }
.hero.hero-layers .hero-value { font-size: clamp(1rem, 1.4vw, 1.2rem) !important; color: rgba(255,255,255,.9) !important; max-width: 38ch; margin: 0 0 1.5rem !important; font-weight: 500; }
.hero.hero-layers .hero-actions { justify-content: flex-start; margin-bottom: 1.4rem; }
.hero.hero-layers .hero-socials { justify-content: flex-start !important; flex-direction: row !important; gap: .5rem !important; margin: 0 !important; }
.hero.hero-layers .hero-socials .social-icon svg { width: 34px !important; height: 34px !important; }
.hero.hero-layers .hero-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 1.2rem; }
.hero.hero-layers .hero-quote { font-family: var(--serif) !important; font-style: italic; font-size: 1.2rem !important; line-height: 1.35 !important; color: rgba(255,255,255,.92) !important; max-width: 310px; margin: 0; text-align: right; border-right: 3px solid var(--blue); padding-right: 1rem; }

/* Welcome on the TV-static grey */
.welcome.tex-grey { padding: 100px 0 !important; position: relative; overflow: hidden; }
.welcome .section-header { text-align: left !important; }
.welcome .section-header .section-title { max-width: 13ch; color: var(--blue) !important; }
.welcome .welcome-hero { grid-template-columns: 1.2fr 1fr; }
.welcome-hero-image { position: relative; overflow: visible !important; box-shadow: none !important; border-radius: 0 !important; }
.welcome-hero-image::before { content: ''; position: absolute; z-index: 0; inset: 10% -8% 0 6%; background: var(--blue); border-radius: var(--blob); }
.welcome-hero-image img { position: relative; z-index: 1; border-radius: 20px !important; filter: grayscale(1) contrast(1.05); box-shadow: 0 30px 50px -30px rgba(0,0,0,.6) !important; }
.welcome-hero-image .image-overlay { position: absolute !important; z-index: 2; inset: auto auto -1rem -1.2rem !important; width: auto !important; height: auto !important; background: var(--ink) !important; border-radius: 12px !important; padding: .7rem 1.1rem !important; opacity: 1 !important; transform: rotate(-4deg) !important; box-shadow: 0 14px 28px -10px rgba(0,0,0,.45); display: block !important; }
.welcome-hero-image .overlay-text { display: flex; gap: .5rem; align-items: center; }
.welcome-hero-image .overlay-text p { color: #fff !important; margin: 0 !important; font-weight: 700; font-size: .95rem !important; }
.welcome-hero-image .overlay-text i { color: var(--blue) !important; }
.welcome-intro h3 { font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; font-size: clamp(1.9rem, 3vw, 2.6rem) !important; line-height: .95 !important; }

/* Stat cards: photo + number box (like the market-signal cards) */
.stats-row.stat-cards { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 1.5rem !important; margin: 0 0 4rem !important; }
.stat-card { background: #121214 !important; border: 0 !important; border-radius: 16px !important; overflow: hidden; padding: 0 !important; text-align: left !important; box-shadow: 0 24px 40px -26px rgba(0,0,0,.7) !important; display: flex; flex-direction: column; transition: transform .25s ease !important; }
.stat-card:hover { transform: translateY(-6px); }
.stat-media { position: relative; height: 190px; background-size: cover; background-position: center; }
.stat-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(18,18,20,.92) 100%); }
.stat-card .stat-number {
    position: absolute; z-index: 1; left: 1rem; bottom: -.2rem; display: inline-block;
    background: var(--blue) !important; color: #fff !important; -webkit-text-fill-color: #fff !important;
    font-family: var(--display) !important; font-weight: 400 !important; font-size: 3rem !important; line-height: 1 !important; padding: .25rem .7rem .35rem; border-radius: 8px;
    box-shadow: 0 10px 20px -8px rgba(22,178,220,.8);
}
.stat-body { padding: 1.4rem 1rem 1.2rem; display: flex; flex-direction: column; gap: .25rem; }
.stat-card .stat-label { color: #fff !important; font-weight: 800 !important; font-size: 1.15rem !important; text-transform: none !important; letter-spacing: -.01em !important; }
.stat-body small { color: rgba(255,255,255,.6); font-size: .85rem; font-style: italic; }

/* Case studies: photo header, result box, short problem → action */
.proof-section { background: var(--white) !important; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 1.5rem; }
.case-card { background: #121214 !important; border: 0 !important; border-radius: 16px !important; padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 24px 40px -26px rgba(0,0,0,.7) !important; transition: transform .25s ease !important; }
.case-card:hover { transform: translateY(-6px) !important; }
.case-card::after { display: none !important; }
.case-media { position: relative; height: 210px; background-size: cover; background-position: center; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; }
.case-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 55%, rgba(18,18,20,.95) 100%); }
.case-media > * { position: relative; z-index: 1; }
.case-card .case-org { color: #fff !important; font-size: .78rem !important; font-weight: 700 !important; letter-spacing: .06em !important; text-transform: uppercase; margin: 0 !important; }
.case-card .case-result { align-self: flex-start; background: var(--blue); color: #fff !important; font-family: var(--display) !important; font-weight: 400 !important; font-size: 2.6rem !important; line-height: 1 !important; padding: .25rem .7rem .35rem; border-radius: 8px; margin: 0 0 -1.9rem !important; white-space: nowrap; box-shadow: 0 10px 20px -8px rgba(22,178,220,.8); }
.case-body { padding: 2.4rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.case-card .case-result-label { color: #fff !important; font-weight: 800 !important; font-size: 1.05rem !important; line-height: 1.3 !important; margin: 0 0 1rem !important; padding: 0 !important; border: 0 !important; }
.case-flow { list-style: none; padding: 0 !important; margin: 0 0 1rem !important; display: grid; gap: .6rem; }
.case-flow li { color: rgba(255,255,255,.72) !important; font-size: .88rem !important; line-height: 1.45; padding: .6rem .75rem !important; border-radius: 10px; background: rgba(255,255,255,.06); border: 0 !important; }
.case-flow .case-step-label { display: block; color: var(--blue) !important; font-size: .68rem !important; font-weight: 800 !important; letter-spacing: .1em !important; text-transform: uppercase; margin-bottom: .15rem; font-family: var(--sans) !important; }
.case-flow li:first-child .case-step-label { color: #ff8a80 !important; }
.case-card .case-link { margin-top: auto; color: #fff !important; font-weight: 700; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Stats in other places keep a simple look */
.stats-row:not(.stat-cards) .stat-number { font-family: var(--display) !important; font-weight: 400 !important; color: var(--blue) !important; }

/* Transition slides (Ugly vs Viral) */
.vs-slide { background: var(--white); padding: 70px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vs-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
.vs-word { font-family: var(--sans) !important; font-weight: 900 !important; letter-spacing: -.045em !important; line-height: .86 !important; font-size: clamp(3.6rem, 10vw, 8.5rem) !important; text-transform: uppercase; margin: 0 !important; color: var(--ink) !important; }
.vs-word span { display: block; font-family: inherit !important; }
.vs-row img, .vs-single img { width: clamp(110px, 16vw, 220px); height: auto; filter: drop-shadow(0 24px 24px rgba(0,0,0,.18)); }
.vs-row.dim .vs-word { color: #c9c9cd !important; }
.vs-row.dim img.mute { filter: grayscale(1) opacity(.45); }
.vs-divider { display: flex; align-items: center; gap: 1rem; margin: 1.6rem 0; }
.vs-divider::before, .vs-divider::after { content: ''; height: 2px; flex: 1; background: linear-gradient(90deg, var(--red), var(--blue)); border-radius: 2px; }
.vs-single { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1rem, 3vw, 3rem); }
.vs-single .vs-word { font-size: clamp(3rem, 8vw, 6.6rem) !important; }

/* Breakdown: a project, piece by piece (Toki style) */
.breakdown { padding: 100px 0 90px; color: #fff; background-color: var(--night); background-image: linear-gradient(rgba(22,178,220,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(22,178,220,.09) 1px, transparent 1px); background-size: 56px 56px; }
.breakdown .bd-head { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; margin-bottom: 1.5rem; }
.breakdown .section-title { color: #fff !important; margin: 0 0 .6rem !important; font-size: clamp(2.2rem, 4.2vw, 3.6rem) !important; }
.breakdown .bd-sub { color: var(--blue) !important; font-weight: 700; font-size: 1.05rem; margin: 0; }
.bd-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.bd-tab { border: 1.5px solid rgba(255,255,255,.4); background: transparent; color: #fff; border-radius: 999px; padding: .65rem 1.2rem; font-family: var(--sans); font-weight: 700; cursor: pointer; font-size: .95rem; transition: all .2s ease; }
.bd-tab:hover { border-color: #fff; }
.bd-tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.bd-panel { display: none; grid-template-columns: 1fr; gap: 1.5rem; }
.bd-panel.active { display: grid; animation: bd-in .5s ease both; }
@keyframes bd-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bd-visual img { display: block; width: 100%; height: auto; }
.bd-panel.exploded .bd-visual img { animation: bd-pop .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes bd-pop { from { transform: scale(.94) translateX(-2%); opacity: .3; } to { transform: none; opacity: 1; } }
.bd-list { list-style: none; padding: 0; margin: 0; counter-reset: bd; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.bd-list li { counter-increment: bd; display: grid; grid-template-columns: 2.2rem 1fr; column-gap: .7rem; align-items: baseline; padding: .9rem; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.bd-list li::before { content: counter(bd); grid-row: span 2; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--blue); color: var(--ink); font-weight: 800; font-size: .95rem; display: flex; align-items: center; justify-content: center; align-self: center; }
.bd-list li:last-child::before { background: var(--green); color: #fff; }
.bd-list b { color: #fff; font-weight: 800; font-size: 1.02rem; }
.bd-list span { color: rgba(255,255,255,.62); font-size: .9rem; }
.bd-copy { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.5rem; }
.bd-copy h3 { font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: .95; color: #fff !important; margin: 0; min-width: 12ch; }
.bd-copy p { color: rgba(255,255,255,.75) !important; margin: 0 !important; max-width: 70ch; }

/* Visual storytelling: dark room, blue lens */
.lens-slide { position: relative; min-height: 760px; display: flex; align-items: center; padding: 110px 0 !important; overflow: hidden;
    background: #0d0d0e url('/static/Pictures/john-ngor-deng-garang-behind-the-lens.webp') right center / cover no-repeat !important; }
.lens-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,11,.9) 0%, rgba(10,10,11,.55) 38%, rgba(10,10,11,0) 62%); }
.lens-inner { position: relative; z-index: 1; }
.lens-copy { max-width: 520px; }
.lens-slide .lens-kicker { font-family: var(--serif) !important; font-style: italic; font-weight: 600 !important; color: #fff !important; font-size: clamp(1.5rem, 2.4vw, 2.1rem) !important; margin: 0 !important; }
.lens-slide h2 { font-family: var(--serif) !important; font-style: italic; font-weight: 700 !important; text-transform: none !important; color: var(--blue) !important; font-size: clamp(3.6rem, 7vw, 6.6rem) !important; line-height: .88 !important; letter-spacing: -.03em !important; margin: .2rem 0 .7rem !important; }
.lens-slide .lens-sub { font-family: var(--serif) !important; font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.7rem) !important; color: #fff !important; margin-bottom: 2.2rem !important; }
.lens-slide .lens-q { font-style: italic; color: rgba(255,255,255,.75) !important; font-size: 1.05rem !important; max-width: 30ch; }
.lens-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.lens-tags span { border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.85); border-radius: 999px; padding: .45rem .9rem; font-size: .85rem; font-weight: 600; background: rgba(0,0,0,.25); }
.lens-pill { position: absolute; z-index: 1; left: max(20px, calc((100vw - 1200px) / 2 + 20px)); bottom: 34px; display: flex; gap: .7rem; align-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .55rem 1.1rem; color: #fff; font-size: .85rem; font-weight: 600; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.lens-pill i { width: 1px; height: 1em; background: rgba(255,255,255,.35); }

/* CTA: the eye (bottom of every page) */
.cta-band.cta-eye { position: relative; overflow: hidden; text-align: left; padding: 0 !important; min-height: 560px; display: flex; align-items: center;
    background: #050506 url('/static/Pictures/john-ngor-deng-garang-eye.webp') 75% center / cover no-repeat !important; }
.cta-band.cta-eye::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,6,.92) 0%, rgba(5,5,6,.6) 35%, rgba(5,5,6,0) 55%); }
.cta-band.cta-eye .container { position: relative; z-index: 1; padding-top: 90px; padding-bottom: 90px; }
.cta-eye .cta-who { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.8rem; }
.cta-eye .cta-who img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--blue); object-fit: cover; background: #111; }
.cta-eye .cta-who strong { display: block; color: #fff; font-size: 1.1rem; font-weight: 700; }
.cta-eye .cta-who span { color: rgba(255,255,255,.6); font-size: .95rem; }
.cta-band.cta-eye .container > h2 { font-family: var(--sans) !important; font-style: italic; font-weight: 400 !important; text-transform: none !important; color: var(--blue) !important; font-size: clamp(2.4rem, 4.6vw, 3.8rem) !important; line-height: 1.02 !important; letter-spacing: -.02em !important; max-width: 14ch; margin-bottom: 1rem !important; }
.cta-eye h2 b { font-weight: 900; }
.cta-eye p { color: rgba(255,255,255,.8) !important; font-size: 1.1rem !important; max-width: 40ch; margin: 0 0 2rem !important; }
.cta-eye .cta-actions { justify-content: flex-start !important; }

/* =====================================================================
   INNER-PAGE HEROES
   ===================================================================== */
.hx { position: relative; overflow: hidden; padding: 130px 0 80px; }
.hx .container { position: relative; z-index: 2; }

/* Work Portfolio: "7 coolest" cover */
.hx-cover { background: radial-gradient(90% 90% at 80% 20%, #17384a 0%, var(--navy) 60%, #071218 100%); color: #fff; padding: 120px 0 0; min-height: 640px; }
.hx-cover .watermark { position: absolute; left: -5%; bottom: -16%; font-family: var(--display); font-size: 46vw; line-height: .8; color: rgba(255,255,255,.045); z-index: 0; pointer-events: none; }
.hx-cover .container { display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 1rem; }
.hx-cover h1 { font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; color: #fff !important; font-size: clamp(4rem, 10vw, 8.6rem) !important; line-height: .86 !important; margin: 0 0 1.25rem !important; }
.hx-cover h1 .blue { display: block; }
.hx-cover .hx-sub { color: rgba(255,255,255,.8) !important; font-size: 1.15rem !important; max-width: 36ch; }
.hx-cover .hx-copy { padding-bottom: 90px; }
.hx-cover .hx-person { position: relative; align-self: end; justify-self: end; width: min(100%, 470px); }
.hx-cover .hx-person img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.hx-cover .hx-person .sticker { position: absolute; z-index: 2; }
.hx-cover .hx-person .sticker.a { left: -10%; top: 30%; }
.hx-cover .hx-person .sticker.b { left: -2%; top: 40%; }

/* "Liked this?" style */
.liked { text-align: center; padding: 100px 0 60px; background: var(--white); }
.liked h2 { font-family: var(--sans) !important; font-weight: 900 !important; text-transform: uppercase; letter-spacing: -.045em !important; font-size: clamp(3rem, 8vw, 6.6rem) !important; line-height: .9 !important; margin: 0 0 .5rem !important; }
.hx-liked { background: var(--white); text-align: center; padding: 130px 0 40px; }
.hx-liked h1 { font-family: var(--sans) !important; font-weight: 900 !important; text-transform: uppercase; letter-spacing: -.045em !important; line-height: .88 !important; font-size: clamp(3.2rem, 8.6vw, 7.2rem) !important; margin: 0 0 .6rem !important; }
.hx-liked .hx-sub { font-family: var(--sans); font-weight: 900; text-transform: uppercase; font-size: clamp(1.05rem, 2.2vw, 1.7rem); color: var(--ink) !important; letter-spacing: -.02em; margin: 0 0 1.5rem; }
.hx-liked img.mock { display: block; width: min(100%, 1100px); margin: 1.2rem auto 0; height: auto; border-radius: 22px; box-shadow: 0 40px 70px -40px rgba(0,0,0,.6); }
.hx-liked .back-link { display: inline-block; margin-bottom: 1rem; }

/* Graphic Design: dark, phones */
.hx-dark { background-color: #0b0b0c; background-image: var(--static-dark); background-size: 512px; color: #fff; padding: 130px 0 70px; }
.hx-dark .container { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 2.5rem; }
.hx-dark h1 { font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; color: #fff !important; font-size: clamp(3.6rem, 8vw, 7rem) !important; line-height: .88 !important; margin: 0 0 1rem !important; }
.hx-dark h1 .blue { display: block; }
.hx-dark .hx-sub { font-family: var(--serif) !important; font-style: italic; font-size: clamp(1.3rem, 2vw, 1.7rem) !important; color: rgba(255,255,255,.85) !important; margin: 0 0 1.5rem; }
.hx-dark img.mock { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 40px 70px -30px rgba(0,0,0,.8); }

/* Japan type (Programs, Travels) */
.hx-japan { background: #000; color: #fff; padding: 150px 0 110px; }
.hx-japan .jp-lines { font-family: var(--sans) !important; font-weight: 800 !important; letter-spacing: -.035em !important; line-height: 1.02 !important; font-size: clamp(2.8rem, 6.4vw, 5.6rem) !important; margin: 0 !important; text-transform: none !important; color: #fff !important; }
.hx-japan .jp-lines > span { display: block; }
.hx-japan .jp-meta { margin-top: 2.2rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(2.2rem, 5vw, 4.4rem); color: #fff; }
.hx-japan .jp-meta span { font-family: inherit !important; }
.hx-japan .jp-foot { margin-top: 3.5rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; }
.hx-japan .jp-foot p { color: rgba(255,255,255,.7) !important; margin: 0; max-width: 52ch; font-size: .95rem; }
.hx-japan .jp-foot span { color: rgba(255,255,255,.5); font-size: .85rem; white-space: nowrap; }
.hx-japan .jp-mark { position: absolute; top: 96px; right: 0; width: 150px; height: 9px; background: var(--blue); transform: skewX(-35deg); }
.hx-japan .fall .ch { display: inline-block !important; }

/* Travels: Japan type + a hanging photo stack */
.hx-travel { padding-bottom: 90px; }
.travel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.travel-grid .jp-foot { margin-top: 2.5rem; }
.polaroids { position: relative; height: 520px; }
.polaroid { position: absolute; margin: 0; width: 210px; background: #f4f4f2; padding: 10px 10px 40px; box-shadow: 0 30px 40px -20px rgba(0,0,0,.8); transition: transform .4s ease; }
.polaroid img { display: block; width: 100%; height: 240px; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s ease; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-family: var(--note); font-weight: 700; font-size: 1.6rem; color: var(--ink); text-transform: uppercase; }
.polaroid::before { content: ''; position: absolute; top: -10px; left: 50%; width: 70px; height: 22px; margin-left: -35px; background: rgba(22,178,220,.65); transform: rotate(-3deg); }
.polaroid.p0 { left: 2%; top: 30px; transform: rotate(-8deg); }
.polaroid.p1 { left: 34%; top: 0; transform: rotate(5deg); }
.polaroid.p2 { left: 10%; top: 250px; transform: rotate(4deg); }
.polaroid.p3 { left: 46%; top: 230px; transform: rotate(-6deg); }
.polaroid:hover { transform: rotate(0) scale(1.06); z-index: 5; }
.polaroid:hover img { filter: none; }

/* Services: vs hero */
.hx-vs { background: var(--white); padding: 120px 0 60px; }
.hx-vs .eyebrow { justify-content: flex-start; }
.hx-vs .hx-label { font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 2rem) !important; letter-spacing: .02em !important; color: var(--ink) !important; margin: 0 0 .4rem !important; }
.hx-vs .hx-sub { color: var(--muted) !important; margin-bottom: 2rem; }

/* Serif minimal (Poems, Academia, Blog, articles) */
.hx-serif { background: var(--white); padding: 160px 0 80px; border-bottom: 1px solid var(--line); }
.hx-serif h1 { font-family: var(--serif) !important; font-weight: 500 !important; letter-spacing: -.035em !important; line-height: .95 !important; font-size: clamp(3.6rem, 9vw, 7.6rem) !important; color: var(--ink) !important; margin: 0 0 1.2rem !important; text-transform: none !important; max-width: 16ch; }
.hx-serif h1.long { font-size: clamp(2.8rem, 6vw, 5.2rem) !important; max-width: 18ch; }
.hx-serif p { font-family: var(--serif) !important; font-size: clamp(1.25rem, 2vw, 1.6rem) !important; color: var(--ink-2) !important; margin: 0 0 .4rem !important; }
.hx-serif p.sm { font-family: var(--sans) !important; font-size: .95rem !important; color: var(--muted) !important; margin-top: 1rem !important; }
.hx-serif .corner { position: absolute; right: 24px; bottom: 18px; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: .95rem; }

/* Grey carousel heroes (Experience, CV, My Shelf) — TV-static grey */
.hx-grey { background-color: #dcdcdc; background-image: var(--static); background-size: 512px; padding: 130px 0 80px; }
.hx-grey .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hx-grey h1 { font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; color: var(--blue) !important; font-size: clamp(3.4rem, 8vw, 6.8rem) !important; line-height: .88 !important; margin: 0 0 1rem !important; }
.hx-grey .hx-sub { color: var(--ink) !important; font-weight: 700 !important; font-size: clamp(1.1rem, 1.8vw, 1.45rem) !important; max-width: 30ch; line-height: 1.3 !important; }
.hx-grey .hx-art { position: relative; min-height: 380px; }
.hx-grey .hx-art .blob { inset: 8% 2% 0 12%; }
.hx-grey .hx-art img.photo { position: relative; z-index: 1; display: block; width: 100%; height: 380px; object-fit: cover; border-radius: 20px; filter: grayscale(1) contrast(1.08); box-shadow: 0 30px 50px -30px rgba(0,0,0,.6); transform: rotate(2deg); }
.hx-grey .hx-art .sticker { position: absolute; z-index: 2; }
.hx-grey .hx-art .sticker.a { left: -6%; bottom: 10%; }
.hx-grey .hx-art .sticker.b { right: -3%; top: 4%; }

/* About & Contact: photo heroes kept, dressed */
.about, .contact-hero { position: relative; }
.about::after, .contact-hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 55%; pointer-events: none; background: radial-gradient(70% 100% at 50% 100%, rgba(22,178,220,.45), transparent 70%); }
.about > *, .contact-hero > * { position: relative; z-index: 1; }
.about h1, .contact-hero h1 { font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; font-size: clamp(4rem, 11vw, 9rem) !important; line-height: .88 !important; color: #fff !important; letter-spacing: .005em !important; }
.contact-hero h1 .blue, .about h1 .blue { color: var(--blue) !important; }
.contact-hero p { color: rgba(255,255,255,.9) !important; font-weight: 600; }
.hero-stickers { position: absolute; z-index: 2; right: max(20px, calc((100vw - 1200px)/2 + 20px)); bottom: 16%; }
.about .favorite-quote blockquote { font-family: var(--serif) !important; font-style: italic; font-size: 1.35rem !important; }

/* =====================================================================
   EXPERIENCE PAGE — a timeline with numbers
   ===================================================================== */
.exp-profile { background-color: #dcdcdc !important; background-image: var(--static) !important; background-size: 512px !important; border-top: 1px solid rgba(0,0,0,.06); }
.exp-profile h2 { font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; font-size: clamp(2.2rem, 4vw, 3.4rem) !important; line-height: .95 !important; letter-spacing: .005em !important; }
.exp-profile .profile-grid img { border-radius: 20px !important; filter: grayscale(1) contrast(1.05); box-shadow: 0 30px 50px -30px rgba(0,0,0,.6) !important; }
.exp-profile .profile-grid > div:first-child > div { border-radius: 0 0 20px 20px; }
.exp-profile span[style*="f0f9fd"] { background: #fff !important; color: var(--ink) !important; border: 0 !important; border-radius: 999px !important; padding: .4rem .85rem !important; box-shadow: 0 8px 16px -10px rgba(0,0,0,.45); }

.anchor-nav-section { position: sticky; top: 70px; z-index: 50; background: rgba(14,14,16,.92) !important; backdrop-filter: blur(10px); border: 0 !important; }
.anchor-nav-btn { background: transparent !important; color: rgba(255,255,255,.8) !important; border: 1px solid rgba(255,255,255,.18) !important; border-radius: 999px !important; font-family: var(--sans) !important; font-weight: 600 !important; }
.anchor-nav-btn:hover { background: var(--blue) !important; color: var(--ink) !important; border-color: var(--blue) !important; }

.exp-stack-section { background-color: #dcdcdc !important; background-image: var(--static) !important; background-size: 512px !important; padding: 90px 0 !important; }
.exp-stack { position: relative; gap: 2rem !important; padding-left: 120px; }
.exp-stack::before { content: ''; position: absolute; left: 88px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--ink), rgba(14,14,16,.15)); }
.exp-block { position: relative; overflow: visible !important; border: 0 !important; border-radius: 22px !important; background: #fff !important; box-shadow: 0 24px 40px -30px rgba(0,0,0,.55) !important; }
.exp-block::before { content: attr(data-year); position: absolute; left: -120px; top: 2rem; width: 76px; text-align: right; font-family: var(--display); font-size: 1.7rem; line-height: 1; color: var(--ink); }
.exp-block::after { content: ''; position: absolute; left: -39px; top: 2.15rem; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); }
.exp-block.is-current::after { border-color: var(--green); box-shadow: 0 0 0 6px rgba(31,191,98,.18); }
.exp-block:hover { box-shadow: 0 34px 50px -30px rgba(0,0,0,.6) !important; }
.exp-block-inner { padding: 2rem 2.2rem !important; }
@media (min-width: 769px) { .exp-block-inner { grid-template-columns: 170px 1fr !important; } }
.exp-logo-frame { background: #fff !important; border: 1px solid var(--line) !important; border-radius: 16px !important; max-width: 170px !important; aspect-ratio: 4 / 3 !important; box-shadow: 0 10px 20px -16px rgba(0,0,0,.5); }
.exp-company-name { font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.2rem) !important; letter-spacing: .01em !important; line-height: 1 !important; }
.exp-role-title { font-family: var(--sans) !important; font-weight: 800 !important; color: var(--blue-ink) !important; font-size: 1.05rem !important; }
.exp-meta-row { font-family: var(--sans) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--muted) !important; }
.exp-meta-row span { background: #f1f1f2; border-radius: 999px; padding: .3rem .7rem; font-size: .8rem; }
.exp-header-group { border-bottom: 1px dashed var(--line) !important; }
.exp-now { align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; background: var(--green); color: #fff; font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; margin-bottom: .2rem; }
.exp-now::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.exp-metrics { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0 0 1.4rem; }
.exp-metric { display: flex; flex-direction: column; min-width: 120px; background: var(--ink); color: #fff; border-radius: 14px; padding: .8rem 1rem .75rem; }
.exp-metric b { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--blue); }
.exp-metric span { font-size: .78rem; color: rgba(255,255,255,.7); margin-top: .3rem; }
.exp-subhead { font-family: var(--sans) !important; font-size: .78rem !important; font-weight: 800 !important; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) !important; }
.exp-subhead i { color: var(--blue) !important; }
.exp-achievements-block li { border-bottom: 0 !important; padding: .45rem 0 .45rem 1.8rem !important; }
.exp-achievements-block li::before { content: '✓' !important; top: .5rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: rgba(22,178,220,.15); color: var(--blue-ink) !important; font-size: .7rem !important; font-weight: 900; display: flex; align-items: center; justify-content: center; }

/* =====================================================================
   PROGRAMS PAGE — each programme as a ticket
   ===================================================================== */
.anchor-nav-section + .prog-stack-section, .prog-stack-section { background-color: #0e0e10 !important; background-image: var(--static-dark) !important; background-size: 512px !important; padding: 90px 0 !important; }
.prog-stack { counter-reset: prog; gap: 3rem !important; }
.prog-block { counter-increment: prog; position: relative; background: #f4f4f2 !important; border: 0 !important; border-radius: 26px !important; overflow: hidden; box-shadow: 0 40px 60px -40px rgba(0,0,0,.9) !important; }
.prog-block::before { content: counter(prog, decimal-leading-zero); position: absolute; right: 1.6rem; top: .6rem; font-family: var(--display); font-size: 5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(14,14,16,.25); pointer-events: none; }
.prog-block-inner { position: relative; }
.prog-visual img { border-radius: 16px !important; box-shadow: 0 20px 30px -20px rgba(0,0,0,.6); }
.prog-visual figcaption { font-family: var(--sans) !important; font-style: italic; color: var(--muted) !important; }
.prog-org { display: inline-block; background: var(--ink); color: #fff !important; border-radius: 999px; padding: .35rem .8rem !important; font-family: var(--sans) !important; font-size: .72rem !important; font-weight: 800 !important; letter-spacing: .08em !important; }
.prog-title { font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; font-size: clamp(1.9rem, 3.2vw, 2.8rem) !important; line-height: .98 !important; letter-spacing: .005em !important; color: var(--ink) !important; padding-right: 4rem; }
.prog-meta span { display: inline-flex; align-items: center; gap: .4rem; border: 1.5px dashed rgba(14,14,16,.35); border-radius: 10px; padding: .35rem .7rem; font-family: var(--sans) !important; font-weight: 700; font-size: .82rem !important; color: var(--ink) !important; transform: rotate(-1.5deg); }
.prog-meta span:nth-child(2) { transform: rotate(1.5deg); border-color: var(--blue); color: var(--blue-ink) !important; }
.prog-meta i { color: var(--blue) !important; }
.prog-desc { font-size: .98rem !important; line-height: 1.7 !important; }
.prog-quote { font-family: var(--serif) !important; font-style: italic; font-size: 1.35rem !important; line-height: 1.35 !important; color: var(--ink) !important; border-left: 4px solid var(--blue) !important; background: #fff !important; border-radius: 0 14px 14px 0; padding: 1rem 1.2rem !important; }
.prog-gallery-cover { border-radius: 16px !important; overflow: hidden; }
.gallery-title { font-family: var(--sans) !important; font-weight: 800 !important; color: var(--ink) !important; }

/* =====================================================================
   OTHER PAGES
   ===================================================================== */
/* Work Portfolio / My Shelf / Academia / Blog / Poems lists */
.posts-section { background-color: #dcdcdc !important; background-image: var(--static) !important; background-size: 512px !important; }
.category-card h3, .article-card h3, .article-card h3 a { font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: .01em !important; font-size: 1.5rem !important; color: var(--ink) !important; }
.category-card .category-image img { filter: grayscale(1) contrast(1.05); transition: filter .4s ease, transform .4s ease; }
.category-card:hover .category-image img { filter: none; transform: scale(1.04); }

/* Poems */
.poet-bio { background: var(--white) !important; }
.poem-hero { background: #fff !important; color: var(--ink) !important; padding: 150px 0 60px !important; border-bottom: 1px solid var(--line); text-align: left !important; }
.poem-hero h1 { font-family: var(--serif) !important; font-weight: 500 !important; color: var(--ink) !important; font-size: clamp(2.8rem, 6vw, 5rem) !important; letter-spacing: -.03em !important; line-height: 1 !important; }
.poem-hero .hero-subtitle, .poem-hero .hero-subtitle a { color: var(--blue-ink) !important; font-family: var(--sans) !important; font-size: 1rem !important; }
.poem-content, .poem-stanza { font-family: var(--serif) !important; font-size: 1.25rem !important; line-height: 1.75 !important; color: var(--ink-2) !important; }
.poem-nav-link { border-radius: 999px !important; }

/* Articles */
.article-stack-section { background-color: #dcdcdc !important; background-image: var(--static) !important; background-size: 512px !important; }
.article-block { border-radius: 22px !important; border: 0 !important; overflow: hidden; box-shadow: 0 24px 40px -30px rgba(0,0,0,.55) !important; }
.ab-title { font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: .01em !important; font-size: clamp(1.6rem, 2.6vw, 2.2rem) !important; line-height: 1 !important; }
.ab-section-label { color: var(--blue-ink) !important; font-weight: 800 !important; }
.ab-visual img { border-radius: 14px; }

/* About body */
.about-content { background-color: #dcdcdc !important; background-image: var(--static) !important; background-size: 512px !important; }
.bio-card h3, .contact-info h2, .contact-info h3 { font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: .01em !important; font-size: 1.6rem !important; display: flex; align-items: center; gap: .6rem; }
.bio-icon, .contact-icon, .method-icon { background: var(--ink) !important; color: var(--blue) !important; border-radius: 12px !important; }
.detail-item { border-radius: 14px !important; background: #fff !important; }
.profile-picture { border-color: var(--blue) !important; }

/* Contact body */
.contact-main { background-color: #dcdcdc !important; background-image: var(--static) !important; background-size: 512px !important; }
.contact-info-section h2, .contact-form-section h2 { font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: .005em !important; line-height: .95 !important; font-size: clamp(2rem, 3.4vw, 2.6rem) !important; }
.professional-contact-form { background: #fff !important; border: 0 !important; border-radius: 22px !important; box-shadow: 0 24px 40px -30px rgba(0,0,0,.55) !important; padding: 2rem !important; }
.social-media-section { background: #fff !important; border: 0 !important; border-radius: 18px !important; }
.method-details a { color: var(--blue-ink) !important; font-weight: 700; }

/* CV page call-out as a dark slide */
.cv-page { background-color: #dcdcdc !important; background-image: var(--static) !important; background-size: 512px !important; }
.cv-cta { background: #0e0e10 url('/static/Pictures/texture-static-dark.png') !important; background-size: 512px !important; border-radius: 22px !important; box-shadow: 10px 10px 0 var(--blue) !important; }
.cv-cta h2 { font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; font-size: clamp(2.2rem, 4vw, 3.2rem) !important; color: #fff !important; }
.cv-cta p { color: rgba(255,255,255,.8) !important; }
.cv-cta .btn-cv { background: #fff !important; color: var(--ink) !important; border-radius: 999px !important; }
.cv-cta .btn-cv:hover { background: var(--blue) !important; }

/* Search results */
.search-results-section { background-color: #dcdcdc !important; background-image: var(--static) !important; background-size: 512px !important; padding-top: 130px !important; }
.search-results-section h1, .search-results-section h2 { font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: .01em !important; font-size: clamp(2.6rem, 6vw, 4.4rem) !important; color: var(--blue) !important; }
.search-results-section .result-item, .search-results-section [class*="result"] > a, .search-results-section .search-result { border-radius: 16px !important; }

/* Web design project cards */
.project-link { padding: .6rem 1.1rem; }

/* =====================================================================
   DECK GALLERY — click and each design flies away
   ===================================================================== */
.deck-overlay { position: fixed; inset: 0; z-index: 3000; background: #0b0b0c var(--static-dark); background-size: 512px; display: none; align-items: center; justify-content: center; flex-direction: column; }
.deck-overlay.open { display: flex; }
.deck-top { position: absolute; top: 22px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.deck-top h3 { color: #fff !important; font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; font-size: 1.6rem; margin: 0; letter-spacing: .01em; }
.deck-top .deck-count { font-weight: 700; color: rgba(255,255,255,.7); font-size: .95rem; }
.deck-close { background: #fff; color: var(--ink); border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.deck-stage { position: relative; width: min(78vw, 560px); height: min(66vh, 650px); }
.deck-card { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; background: #161618; cursor: pointer; box-shadow: 0 40px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .5s ease; will-change: transform; }
.deck-card img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.deck-hint { margin-top: 1.4rem; color: rgba(255,255,255,.65); font-weight: 600; font-size: .95rem; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.deck-hint button { background: transparent; border: 1.5px solid rgba(255,255,255,.4); color: #fff; border-radius: 999px; padding: .5rem 1rem; font-weight: 700; cursor: pointer; font-family: var(--sans); }
.deck-hint button:hover { background: #fff; color: var(--ink); }

.design-gallery-cover, .prog-gallery-cover { position: relative; overflow: visible !important; cursor: pointer; }
.design-gallery-cover > img, .prog-gallery-cover > img { border-radius: 16px; position: relative; z-index: 2; transition: transform .35s ease; }
.design-gallery-cover::before, .design-gallery-cover::after, .prog-gallery-cover::before, .prog-gallery-cover::after { content: ''; position: absolute; inset: 0; border-radius: 16px; z-index: 1; box-shadow: 0 20px 30px -20px rgba(0,0,0,.6); transition: transform .35s ease; }
.design-gallery-cover::before, .prog-gallery-cover::before { transform: rotate(-4deg) translate(-6px, 4px); background: var(--blue); }
.design-gallery-cover::after, .prog-gallery-cover::after { transform: rotate(3deg) translate(6px, 2px); background: var(--ink); }
.design-gallery-cover:hover::before, .prog-gallery-cover:hover::before { transform: rotate(-9deg) translate(-18px, 6px); }
.design-gallery-cover:hover::after, .prog-gallery-cover:hover::after { transform: rotate(8deg) translate(18px, 4px); }
.design-gallery-cover:hover > img, .prog-gallery-cover:hover > img { transform: translateY(-8px) rotate(-1deg); }
.design-cover-overlay, .prog-cover-overlay { z-index: 3 !important; border-radius: 16px; }
.prog-gallery-cover { overflow: visible !important; }
.prog-gallery-cover > div { z-index: 3; border-radius: 16px; }

/* ---------- Footer ---------- */
.footer { background: #0b0b0c var(--static-dark) !important; background-size: 512px !important; }
.footer-heading { color: var(--blue) !important; font-family: var(--sans) !important; font-weight: 800 !important; }
.footer .newsletter-form input { border-radius: 999px !important; }
.footer .newsletter-form button { background: var(--blue) !important; color: var(--ink) !important; border-radius: 999px !important; font-weight: 800 !important; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
    .bd-list { grid-template-columns: 1fr 1fr; }
    .bd-copy { grid-template-columns: 1fr; gap: .8rem; }
    .hx-cover .container, .hx-dark .container, .hx-grey .container, .travel-grid { grid-template-columns: 1fr; }
    .hx-cover .hx-copy { padding-bottom: 10px; }
    .hx-cover .hx-person { justify-self: center; width: min(80%, 420px); }
    .hl-content { grid-template-columns: 1fr; }
    .hero.hero-layers .hero-aside { align-items: flex-start; }
    .hero.hero-layers .hero-quote { text-align: left; border-right: 0; border-left: 3px solid var(--blue); padding: 0 0 0 1rem; }
    .stats-row.stat-cards { grid-template-columns: 1fr 1fr 1fr !important; gap: 1rem !important; }
    .welcome .welcome-hero { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hx { padding-top: 110px; }
    .hero.hero-layers { height: auto; min-height: 100svh; padding-bottom: 50px; }
    .hl-name { top: 30%; font-size: 17vw !important; }
    .hero.hero-layers .hero-aside { display: none; }
    .hero.hero-layers .hero-actions .btn-blue, .hero.hero-layers .hero-actions .btn-ghost { width: auto !important; padding: .85rem 1.3rem; }
    .stats-row.stat-cards { grid-template-columns: 1fr !important; }
    .stat-media { height: 160px; }
    .vs-row { gap: .75rem; }
    .vs-row img { width: 92px; }
    .vs-single { grid-template-columns: 1fr auto; }
    .vs-single > .sticker-stack { display: none; }
    .breakdown .bd-head { grid-template-columns: 1fr; }
    .bd-list { grid-template-columns: 1fr; gap: .5rem; }
    .bd-visual { margin: 0 -20px; }
    .lens-slide { min-height: 0; padding: 0 0 60px !important; display: block; background: #0d0d0e !important; }
    .lens-slide::before { display: none; }
    .lens-slide::after { content: ''; display: block; order: -1; }
    .lens-inner { padding-top: 62vw; background: url('/static/Pictures/john-ngor-deng-garang-behind-the-lens.webp') 70% 0 / auto 64vw no-repeat; }
    .lens-pill { display: none; }
    .cta-band.cta-eye { background-size: auto 300px !important; background-position: 72% 0 !important; align-items: flex-end; min-height: 680px; }
    .cta-band.cta-eye::before { background: linear-gradient(180deg, rgba(5,5,6,0) 0%, rgba(5,5,6,.3) 30%, rgba(5,5,6,1) 46%); }
    .cta-band.cta-eye .container { padding-top: 290px; padding-bottom: 60px; }
    .hero-stickers { display: none; }
    .hx-japan { padding: 120px 0 80px; }
    .hx-japan .jp-mark { top: 76px; width: 90px; }
    .hx-japan .jp-foot { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .polaroids { height: 420px; }
    .polaroid { width: 150px; }
    .polaroid img { height: 170px; }
    .polaroid.p2 { top: 200px; }
    .polaroid.p3 { top: 190px; left: 50%; }
    .hx-grey .hx-art .sticker.a, .hx-cover .hx-person .sticker.a { left: 0; }
    .exp-stack { padding-left: 0; }
    .exp-stack::before { display: none; }
    .exp-block::before { position: static; display: inline-block; width: auto; margin: 1.2rem 0 0 1.5rem; text-align: left; font-size: 1.3rem; }
    .exp-block::after { display: none; }
    .exp-block-inner { padding: 1.3rem !important; }
    .exp-logo-frame { margin: 0 !important; max-width: 140px !important; }
    .exp-metric { min-width: 0; flex: 1 1 40%; }
    .prog-block::before { font-size: 3.2rem; right: 1rem; }
    .anchor-nav-section { top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
    .deck-card, .fall .ch, .bd-panel.active, .bd-visual img { transition: none !important; animation: none !important; }
}
.prog-org { width: fit-content; align-self: flex-start; }
.prog-header-group { align-items: flex-start; }
.prog-block::before { top: 1rem; right: 1.4rem; font-size: 4rem; }
.prog-title { padding-right: 5rem; }

/* Error page (404 / 410): a "no signal" screen */
body:has(.error-container) { background: #0e0e10 var(--static-dark) !important; background-size: 512px !important; min-height: 100vh; }
.error-container { background: transparent !important; color: #fff; }
.error-code { font-family: var(--display) !important; font-weight: 400 !important; font-size: clamp(7rem, 22vw, 14rem) !important; line-height: .9 !important; background-image: linear-gradient(180deg, rgba(255,255,255,.42), #fff), var(--static); background-size: auto, 512px; background-blend-mode: multiply; -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent !important; }
.error-title { font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; color: var(--blue) !important; font-size: 2.2rem !important; letter-spacing: .01em; }
.error-message { color: rgba(255,255,255,.75) !important; }
.error-container .divider { background: var(--blue) !important; }
.error-container .btn-primary { background: var(--blue) !important; color: var(--ink) !important; border-radius: 999px !important; border: 0 !important; font-weight: 800 !important; }
.error-container .btn-secondary { background: transparent !important; color: #fff !important; border: 1.5px solid rgba(255,255,255,.5) !important; border-radius: 999px !important; }
.error-container .nav-links a { color: rgba(255,255,255,.65) !important; }
.erode, .erode-soft { display: inline-block; }
.hx-japan .jp-lines > .erode, .hx-japan .jp-lines > .erode-soft { display: block; }
@media (max-width: 768px) {
    .navbar:not(.scrolled) .logo-name { color: #1a1a1a !important; }
    .prog-block::before { display: none; }
    .prog-title { padding-right: 0; }
}

/* =====================================================================
   v4.1 — hero spacing + static-noise number boxes
   ===================================================================== */
/* Hero: the name sits at John's head height, the text block sits below it.
   A minimum height keeps the two apart on short windows. */
.hero.hero-layers { min-height: 780px; padding-bottom: 48px; }
.hl-name { top: 37%; font-size: clamp(3.2rem, 10.5vw, 10.5rem) !important; }
.hero.hero-layers .hero-subtitle { margin-bottom: .5rem !important; }
.hero.hero-layers .hero-value { margin-bottom: 1.2rem !important; }
.hero-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hero.hero-layers .hero-cta-row .hero-actions { margin: 0 !important; }
@media (max-width: 1024px) {
    .hero.hero-layers { min-height: 900px; }
    .hero.hero-layers .hero-aside .sticker-stack { display: none; }
}
@media (max-width: 768px) {
    .hero.hero-layers { min-height: max(100svh, 760px); }
    .hl-name { top: 38%; font-size: 17vw !important; }
    .hero.hero-layers .hero-aside { display: flex; }
    .hero.hero-layers .hero-quote { font-size: 1rem !important; }
}

/* Experience number boxes: TV-static grey instead of black */
.exp-metric {
    background: #dcdcdc var(--static) !important; background-size: 512px !important;
    color: var(--ink) !important; border: 0 !important;
    box-shadow: inset 0 0 0 1px rgba(14,14,16,.06), 0 10px 18px -14px rgba(0,0,0,.45);
}
.exp-metric b { color: var(--blue-deep) !important; }
.exp-metric span { color: var(--ink-2) !important; }
/* Darken the photo (both aligned layers) so the white text reads clearly; the name stays bright */
.hl-bg, .hl-cut { filter: brightness(.58) saturate(.9) contrast(1.05); }
.hl-shade { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 52%, rgba(4,14,20,.55) 70%, rgba(4,14,20,.92) 100%), radial-gradient(60% 50% at 25% 100%, rgba(22,178,220,.35), transparent 70%) !important; }
