/* =====================================================================
   Omar Shawqi — Portfolio  |  refresh.css
   Redesign layer for About, Projects and Contact.
   Loaded after style.css; every new component is namespaced
   (o-, ab-, xp-, vol-, cert-, cv-modal, pj-, ofd-) so it never
   collides with the Home page rules.
   Palette = the original portfolio palette.
   ===================================================================== */

:root {
    --o-bg:        #020617;
    --o-navy:      #071e3d;
    --o-navy-2:    #0d3a6e;
    --o-cyan:      #38bdf8;
    --o-sky:       #0ea5e9;
    --o-deep:      #0284c7;
    --o-ink:       #e8f4ff;
    --o-ink-2:     #cbd5e1;
    --o-ink-3:     #94a3b8;
    --o-green:     #4ade80;
    --o-orange:    #f97316;
    --o-red:       #ef4444;

    --o-line:      rgba(56, 189, 248, 0.14);
    --o-line-2:    rgba(56, 189, 248, 0.32);
    --o-glass:     rgba(7, 30, 61, 0.42);
    --o-glass-2:   rgba(7, 30, 61, 0.68);

    --o-ease:      cubic-bezier(0.22, 1, 0.36, 1);
    --o-display:   'Space Grotesk', 'Inter', Arial, sans-serif;
}

/* ---------- shared: nav state, progress, focus ---------- */
nav ul li a.active { color: var(--o-cyan); }
nav ul li a.active::after { width: 100%; }

.o-progress {
    position: absolute;
    left: 0; bottom: -1px;
    height: 2px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(var(--p, 0));
    background: linear-gradient(90deg, var(--o-deep), var(--o-cyan));
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
    pointer-events: none;
}

#o-stars {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
}
#o-stars.is-on { opacity: 1; }

:where(.page-about, .page-projects, .page-contact) :focus-visible {
    outline: 2px solid var(--o-cyan);
    outline-offset: 3px;
    border-radius: 8px;
}

/* ---------- shared: layout + type ---------- */
.o-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(72px, 10vw, 128px) clamp(16px, 5vw, 40px) 0;
    scroll-margin-top: 80px;
}

.o-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }

.o-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--o-cyan);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
}
.o-kicker::before {
    content: "";
    width: 28px; height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--o-cyan));
}

.o-head h2 {
    font-family: var(--o-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--o-ink);
}
.o-sub {
    margin-top: 14px;
    color: var(--o-ink-3);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ---------- shared: buttons + links ---------- */
.o-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font: 600 0.98rem/1 'Inter', Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s var(--o-ease), box-shadow 0.35s var(--o-ease), background-color 0.35s, border-color 0.35s, color 0.35s;
}
.o-btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }

.o-btn--primary {
    color: #021024;
    background: linear-gradient(135deg, var(--o-cyan), var(--o-sky));
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4), 0 10px 30px -10px rgba(56, 189, 248, 0.7);
}
.o-btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.8s var(--o-ease);
}
.o-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6), 0 16px 40px -10px rgba(56, 189, 248, 0.9); }
.o-btn--primary:hover::after { transform: translateX(120%); }

.o-btn--ghost {
    color: var(--o-ink);
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid var(--o-line-2);
}
.o-btn--ghost:hover {
    transform: translateY(-2px);
    color: #fff;
    border-color: var(--o-cyan);
    background: rgba(56, 189, 248, 0.14);
    box-shadow: 0 10px 30px -14px rgba(56, 189, 248, 0.9);
}
.o-btn:active { transform: translateY(0) scale(0.98); }

.o-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--o-cyan);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}
.o-link i { transition: transform 0.3s var(--o-ease); font-size: 0.85em; }
.o-link:hover i { transform: translateX(3px); }
.o-link:hover { color: #7dd3fc; }

/* ---------- shared: glass panel with cursor spotlight ---------- */
.o-spot {
    position: relative;
    isolation: isolate;
    background: var(--o-glass);
    border: 1px solid var(--o-line);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: border-color 0.4s, transform 0.5s var(--o-ease), box-shadow 0.5s var(--o-ease), background-color 0.4s;
}
.o-spot::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, 0.13), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}
.o-spot:hover { border-color: var(--o-line-2); }
.o-spot:hover::before { opacity: 1; }

/* ---------- card surface: experience, volunteering, projects, certificates, contact ----------
   A lifted navy taken from the original palette (#071e3d → #0d3a6e) so cards
   separate clearly from the #020617 page without introducing a new hue. */
:root {
    --o-card:      linear-gradient(180deg, #0e1a33 0%, #0a1428 55%, #08101f 100%);
    --o-card-edge: rgba(148, 163, 184, 0.14);
    --o-card-lift: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 40px rgba(56, 189, 248, 0.04), 0 26px 54px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(2, 6, 23, 0.5);
    --o-card-glow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 30px 70px -30px rgba(56, 189, 248, 0.45), 0 0 0 1px rgba(56, 189, 248, 0.2);
}
.xp-body, .vol-card, .pj-card, .cert-card {
    background: var(--o-card);
    border-color: var(--o-card-edge);
    box-shadow: var(--o-card-lift);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.xp-body::after, .vol-card::after, .pj-card::after, .cert-card::after {
    content: "";
    position: absolute;
    top: 0; left: 18px; right: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.75), transparent);
    opacity: 0.5;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 2;
}
.xp-body:hover, .vol-card:hover, .pj-card:hover, .cert-card:hover {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: var(--o-card-glow);
}
.xp-body:hover::after, .vol-card:hover::after, .pj-card:hover::after, .cert-card:hover::after { opacity: 1; }

/* ---------- shared: filter tabs with sliding pill ---------- */
.o-filters {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 5px;
    margin-bottom: 36px;
    border-radius: 999px;
    border: 1px solid var(--o-line);
    background: rgba(7, 30, 61, 0.5);
    max-width: 100%;
}
.o-filters-pill {
    position: absolute;
    top: var(--pt, 5px);
    left: var(--pl, 5px);
    width: var(--pw, 0);
    height: var(--ph, 38px);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--o-cyan), var(--o-sky));
    box-shadow: 0 6px 20px -6px rgba(56, 189, 248, 0.8);
    transition: left 0.45s var(--o-ease), top 0.45s var(--o-ease), width 0.45s var(--o-ease);
}
.o-filter {
    position: relative;
    z-index: 1;
    border: 0;
    background: none;
    color: var(--o-ink-2);
    font: 600 0.92rem/1 'Inter', Arial, sans-serif;
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.3s;
}
.o-filter:hover { color: #fff; }
.o-filter.is-active { color: #021024; }

/* ---------- reveal system (enabled by motion.js) ---------- */
.motion-ready [data-reveal],
.motion-ready [data-reveal-group] > * {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--o-ease), transform 0.9s var(--o-ease);
    transition-delay: var(--d, 0s);
}
.motion-ready [data-reveal].is-in,
.motion-ready [data-reveal-group].is-in > * {
    opacity: 1;
    transform: none;
}

/* =====================================================================
   ABOUT — intro with animated portrait
   ===================================================================== */
.ab-intro {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--nav-h) + 48px) clamp(16px, 5vw, 40px) 48px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(40px, 7vw, 96px);
    overflow-x: clip;
}

.ab-portrait {
    position: relative;
    width: min(440px, 100%);
    aspect-ratio: 1;
    justify-self: center;
}

/* orbit rings */
.ab-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(56, 189, 248, 0.22);
    pointer-events: none;
}
.ab-orbit--outer { inset: -14%; animation: abSpin 48s linear infinite; }
.ab-orbit--inner { inset: -5%; border-style: solid; border-color: rgba(56, 189, 248, 0.1); animation: abSpin 30s linear infinite reverse; }
.ab-orbit span {
    position: absolute;
    top: 50%; left: -5px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--o-cyan);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15), 0 0 18px var(--o-cyan);
}
.ab-orbit--inner span { top: -4px; left: 50%; width: 7px; height: 7px; background: #7dd3fc; }
@keyframes abSpin { to { transform: rotate(360deg); } }

/* frame */
.ab-frame {
    position: absolute;
    inset: 0;
    border-radius: 34px;
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.6s var(--o-ease);
    animation: abFloat 7s ease-in-out infinite;
}
@keyframes abFloat {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -12px; }
}

.ab-frame-glow {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.55), rgba(2, 132, 199, 0.25) 45%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: abGlow 5s ease-in-out infinite alternate;
}
@keyframes abGlow {
    from { opacity: 0.55; transform: scale(0.95); }
    to   { opacity: 0.95; transform: scale(1.08); }
}

.ab-photo {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 30px 80px -30px rgba(2, 132, 199, 0.8), 0 0 0 8px rgba(2, 6, 23, 0.6);
}

@property --o-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
.ab-frame-border {
    position: absolute;
    inset: -3px;
    border-radius: 37px;
    padding: 3px;
    background: conic-gradient(from var(--o-angle), transparent 0 50%, rgba(56, 189, 248, 0.15) 60%, var(--o-cyan) 78%, #e8f4ff 82%, var(--o-sky) 86%, transparent 96%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: abBorder 5s linear infinite;
    z-index: 2;
    pointer-events: none;
}
@keyframes abBorder { to { --o-angle: 360deg; } }

.ab-frame-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.ab-frame-shine::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 45%;
    left: -60%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: skewX(-12deg);
    transition: left 1.1s var(--o-ease);
}
.ab-portrait:hover .ab-frame-shine::before { left: 120%; }

/* floating chips */
.ab-chip {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--o-ink);
    white-space: nowrap;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid var(--o-line-2);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.8);
    translate: var(--tx, 0) var(--ty, 0);
    transition: translate 0.6s var(--o-ease);
    animation: abChip 6s ease-in-out infinite;
}
.ab-chip i { color: var(--o-cyan); }
.ab-chip--a { top: 9%;  left: -9%; }
.ab-chip--b { top: 50%; right: -12%; animation-delay: -2s; }
.ab-chip--c { bottom: 6%; left: 2%; animation-delay: -4s; }
@keyframes abChip {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* text */
.ab-intro-text h1 {
    font-family: var(--o-display);
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 22px;
    text-wrap: balance;
}
.ab-lede {
    color: var(--o-ink-2);
    font-size: clamp(1.02rem, 1.3vw, 1.15rem);
    line-height: 1.8;
    max-width: 60ch;
}

.ab-facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 26px 0 32px;
    color: var(--o-ink-3);
    font-size: 0.93rem;
}
.ab-facts li { display: inline-flex; align-items: center; gap: 9px; }
.ab-facts i { color: var(--o-cyan); }

.ab-live-dot {
    position: relative;
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--o-green);
    box-shadow: 0 0 10px var(--o-green);
}
.ab-live-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--o-green);
    animation: abPing 2s ease-out infinite;
}
@keyframes abPing {
    from { transform: scale(0.6); opacity: 1; }
    to   { transform: scale(2); opacity: 0; }
}

.ab-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* =====================================================================
   ABOUT — profile
   ===================================================================== */
.ab-profile-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 20px;
}
.ab-panel { padding: clamp(24px, 3vw, 34px); }
.ab-panel h3 {
    font-family: var(--o-display);
    font-size: 1.25rem;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 14px;
}
.ab-panel p { color: var(--o-ink-2); line-height: 1.75; margin-bottom: 18px; }
.ab-panel--lead {
    background: linear-gradient(160deg, rgba(13, 58, 110, 0.55), rgba(7, 30, 61, 0.35));
}
.ab-panel--lead h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }

.ab-values { list-style: none; display: grid; gap: 11px; }
.ab-values li { display: flex; align-items: baseline; gap: 12px; color: var(--o-ink-2); }
.ab-values i {
    flex: none;
    font-size: 0.7rem;
    color: var(--o-cyan);
    width: 20px; height: 20px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.12);
    transform: translateY(2px);
}

.ab-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 28px;
    border-top: 1px solid var(--o-line);
    border-bottom: 1px solid var(--o-line);
}
.ab-stat {
    display: flex;
    flex-direction: column;
    padding: 26px clamp(14px, 2vw, 28px);
}
.ab-stat + .ab-stat { border-left: 1px solid var(--o-line); }
.ab-stat dt { order: 2; color: #fff; font-weight: 600; font-size: 0.98rem; margin-top: 6px; }
.ab-stat dd {
    order: 1;
    font-family: var(--o-display);
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(180deg, #e8f4ff, var(--o-cyan));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}
.ab-stat span { order: 3; color: var(--o-ink-3); font-size: 0.86rem; margin-top: 4px; line-height: 1.5; }

/* =====================================================================
   ABOUT — experience timeline
   ===================================================================== */
.xp-wrap { position: relative; --logo: 112px; }
.xp-rail {
    position: absolute;
    top: 10px; bottom: 10px;
    left: calc(var(--logo) / 2 - 1px);
    width: 2px;
    border-radius: 2px;
    background: rgba(56, 189, 248, 0.12);
    overflow: hidden;
}
.xp-rail-fill {
    position: absolute;
    inset: 0;
    transform-origin: 50% 0;
    transform: scaleY(var(--fill, 0));
    background: linear-gradient(180deg, var(--o-cyan), var(--o-deep));
    box-shadow: 0 0 12px var(--o-cyan);
}

.xp-timeline { list-style: none; display: grid; gap: 26px; }

.xp-item {
    display: grid;
    grid-template-columns: var(--logo) minmax(0, 1fr);
    gap: clamp(18px, 3vw, 32px);
    align-items: start;
}

.xp-logo {
    position: relative;
    z-index: 1;
    width: var(--logo);
    height: var(--logo);
    border-radius: 24px;
    background: #fff;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px var(--o-bg), 0 0 0 7px var(--o-line-2), 0 18px 40px -18px rgba(56, 189, 248, 0.6);
    transition: transform 0.5s var(--o-ease), box-shadow 0.5s var(--o-ease);
}
.xp-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.xp-logo--dark { background: #020a18; padding: 4px; }
.xp-logo--full { background: transparent; padding: 0; overflow: hidden; }
.xp-item:hover .xp-logo {
    transform: scale(1.06) rotate(-2deg);
    box-shadow: 0 0 0 6px var(--o-bg), 0 0 0 7px var(--o-cyan), 0 18px 46px -14px rgba(56, 189, 248, 0.9);
}
.xp-item--current .xp-logo { animation: xpPulse 2.8s ease-in-out infinite; }
@keyframes xpPulse {
    0%, 100% { box-shadow: 0 0 0 6px var(--o-bg), 0 0 0 7px var(--o-line-2), 0 0 0 7px rgba(56, 189, 248, 0); }
    50%      { box-shadow: 0 0 0 6px var(--o-bg), 0 0 0 7px var(--o-cyan), 0 0 0 16px rgba(56, 189, 248, 0.08); }
}

.xp-body { padding: clamp(22px, 3vw, 30px); }
.xp-item:hover .xp-body { transform: translateX(4px); }

.xp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 10px; }
.xp-meta time { color: var(--o-cyan); font-weight: 600; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.xp-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2b1d03;
    background: linear-gradient(135deg, #f7e08c 0%, #e2b850 45%, #c9962e 100%);
    border: 1px solid rgba(255, 226, 140, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 16px -8px rgba(212, 168, 58, 0.8);
}
.xp-badge--live { color: #bbf7d0; background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.35); }

.xp-body h3 { font-family: var(--o-display); font-size: clamp(1.3rem, 2.2vw, 1.6rem); color: #fff; line-height: 1.2; }
.xp-role { color: var(--o-ink-2); font-weight: 600; margin: 4px 0 12px; }
.xp-body > p:not(.xp-role) { color: var(--o-ink-3); line-height: 1.75; max-width: 70ch; }

.xp-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.xp-tags li {
    font-size: 0.8rem;
    color: var(--o-ink-2);
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--o-line);
    background: rgba(56, 189, 248, 0.05);
}

/* =====================================================================
   ABOUT — volunteering
   ===================================================================== */
.vol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.vol-card { padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column; gap: 20px; }
.vol-card:hover { transform: translateY(-4px); }

.vol-logo {
    width: 132px;
    height: 76px;
    border-radius: 16px;
    background: #fff;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px var(--o-line-2);
}
.vol-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vol-logo--icon {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(2, 132, 199, 0.08));
    color: var(--o-cyan);
    font-size: 1.9rem;
}
.vol-logo--icon i { transition: transform 0.5s var(--o-ease); }
.vol-card:hover .vol-logo--icon i { transform: scale(1.15) rotate(-6deg); }

.vol-text time { color: var(--o-cyan); font-weight: 600; font-size: 0.9rem; }
.vol-text h3 { font-family: var(--o-display); color: #fff; font-size: 1.3rem; margin: 6px 0 4px; }
.vol-role { color: var(--o-ink-2); font-weight: 600; margin-bottom: 12px; font-size: 0.95rem; }
.vol-text p:last-child { color: var(--o-ink-3); line-height: 1.75; }

/* =====================================================================
   ABOUT — certificates
   ===================================================================== */
.cert-grid-x {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 20px;
}

.cert-card {
    display: flex;
    flex-direction: column;
    padding: 24px 24px 22px;
    opacity: 0;
    transform: translateY(18px);
}
.cert-grid-x.is-in .cert-card {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s var(--o-ease) calc(var(--i) * 50ms), transform 0.6s var(--o-ease) calc(var(--i) * 50ms), border-color 0.4s, box-shadow 0.5s;
}
.cert-grid-x.is-in .cert-card:hover { transform: translateY(-5px); transition-delay: 0s; }

.cert-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cert-card-icon {
    flex: none;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    color: var(--o-cyan);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid var(--o-line-2);
    transition: transform 0.5s var(--o-ease), background-color 0.4s;
}
.cert-card:hover .cert-card-icon { transform: rotate(-8deg) scale(1.06); background: rgba(56, 189, 248, 0.22); }
.cert-card-cat { color: var(--o-cyan); font-size: 0.82rem; font-weight: 600; }
.cert-card-year {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 999px;
    color: var(--o-ink-2);
    background: rgba(2, 6, 23, 0.45);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}
.cert-card h3 { font-family: var(--o-display); color: #fff; font-size: 1.12rem; line-height: 1.35; margin-bottom: 6px; }
.cert-card-org { color: var(--o-ink-2); font-size: 0.9rem; font-weight: 500; margin-bottom: 12px; }
.cert-card-desc { color: var(--o-ink-3); font-size: 0.93rem; line-height: 1.65; margin-bottom: 20px; }

.cert-card-foot {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--o-line);
}
.cert-card-skill {
    font-size: 0.78rem;
    color: var(--o-ink-2);
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--o-line);
    background: rgba(2, 6, 23, 0.3);
}
.cert-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--o-line-2);
    background: rgba(56, 189, 248, 0.1);
    color: #e0f2fe;
    font: 600 0.86rem/1 'Inter', Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--o-ease);
}
.cert-card-btn i { font-size: 0.75em; transition: transform 0.3s var(--o-ease); }
.cert-card-btn:hover {
    color: #021024;
    border-color: transparent;
    background: linear-gradient(135deg, var(--o-cyan), var(--o-sky));
    box-shadow: 0 8px 22px -8px rgba(56, 189, 248, 0.8);
}
.cert-card-btn:hover i { transform: translateX(3px); }
.cert-card-btn:active { transform: scale(0.97); }

/* drawn certificate face (viewer, for credentials verified on the issuer's site) */
.cert-face {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.18), transparent 60%),
        linear-gradient(160deg, #0d3a6e, #071e3d 60%, #04102a);
    border: 1px solid rgba(56, 189, 248, 0.35);
}
.cert-face-seal { color: var(--o-cyan); filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.7)); }
.cert-face-seal svg { width: 100%; height: 100%; }
.cert-face-of { color: var(--o-ink-3); letter-spacing: 0.06em; }
.cert-face-name { color: #fff; font-family: var(--o-display); line-height: 1.3; }
.cert-face-org { color: var(--o-ink-2); }

.cert-face--lg {
    width: min(760px, 100%);
    aspect-ratio: 1.414;
    gap: 14px;
    padding: clamp(20px, 5vw, 60px);
    box-shadow: inset 0 0 0 10px rgba(2, 6, 23, 0.55), inset 0 0 0 11px rgba(56, 189, 248, 0.25);
}
.cert-face--lg .cert-face-seal { width: clamp(44px, 8vw, 64px); height: clamp(44px, 8vw, 64px); }
.cert-face--lg .cert-face-of { font-size: clamp(0.75rem, 1.4vw, 0.95rem); }
.cert-face--lg .cert-face-name { font-size: clamp(1.2rem, 3.4vw, 2.1rem); max-width: 24ch; }
.cert-face--lg .cert-face-org { font-size: clamp(0.85rem, 1.6vw, 1.05rem); }

/* viewer */
.cv-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 16px;
}
.cv-modal[hidden] { display: none; }
.cv-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.32s ease;
}
.cv-modal-panel {
    position: relative;
    width: min(1040px, 100%);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    background: linear-gradient(180deg, #071631, #020617);
    border: 1px solid var(--o-line-2);
    box-shadow: 0 40px 120px -30px rgba(56, 189, 248, 0.45);
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px) scale(0.94);
    transition: opacity 0.32s ease, transform 0.45s var(--o-ease);
}
.cv-modal.is-open .cv-modal-backdrop { opacity: 1; }
.cv-modal.is-open .cv-modal-panel { opacity: 1; transform: none; }

.cv-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--o-line);
}
.cv-modal-head h3 { font-family: var(--o-display); color: #fff; font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.3; }
.cv-modal-head p { color: var(--o-ink-3); font-size: 0.88rem; margin-top: 4px; }
.cv-modal-close,
.cv-nav {
    flex: none;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--o-line-2);
    background: rgba(56, 189, 248, 0.08);
    color: var(--o-ink);
    font-size: 1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background-color 0.3s, transform 0.3s var(--o-ease), border-color 0.3s;
}
.cv-modal-close:hover { background: rgba(239, 68, 68, 0.18); border-color: rgba(239, 68, 68, 0.6); transform: rotate(90deg); }
.cv-nav:hover { background: rgba(56, 189, 248, 0.2); border-color: var(--o-cyan); }
.cv-nav[hidden] { visibility: hidden; display: grid; }

.cv-modal-stage {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vw, 28px);
    background: radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.08), transparent 70%);
    overscroll-behavior: contain;
}
.cv-modal-stage.is-swap > * { animation: cvSwap 0.45s var(--o-ease); }
@keyframes cvSwap {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: none; }
}
.cv-modal-img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 200px);
    max-height: calc(100dvh - 200px);
    border-radius: 8px;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.9);
    cursor: zoom-in;
    background: #fff;
}
.cv-modal-stage.is-zoomed { align-items: flex-start; justify-content: flex-start; }
.cv-modal-stage.is-zoomed .cv-modal-img { max-width: none; max-height: none; width: 180%; cursor: zoom-out; }

.cv-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--o-line);
}
.cv-modal-foot #cert-modal-count { color: var(--o-ink-3); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.cv-modal-foot .o-btn { margin-left: auto; }
.cv-modal-foot #cert-next { order: 5; }

/* =====================================================================
   ABOUT — CV
   ===================================================================== */
.ab-cv { padding-bottom: clamp(72px, 10vw, 120px); }
.ab-cv-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(28px, 4vw, 44px);
    background: linear-gradient(120deg, rgba(13, 58, 110, 0.6), rgba(7, 30, 61, 0.3));
}
.ab-cv-card h2 { font-family: var(--o-display); color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.ab-cv-card p { color: var(--o-ink-3); margin-top: 6px; }
.ab-cv-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* =====================================================================
   PROJECTS
   ===================================================================== */
.pj-hero {
    overflow-x: clip;
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 64px) clamp(16px, 5vw, 40px) 0;
}
.pj-hero h1 {
    font-family: var(--o-display);
    font-size: clamp(3rem, 9vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #fff;
    background: linear-gradient(180deg, #fff 30%, rgba(56, 189, 248, 0.75));
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pj-hero-sub {
    margin: 22px 0 36px;
    max-width: 58ch;
    color: var(--o-ink-2);
    font-size: clamp(1.02rem, 1.4vw, 1.15rem);
    line-height: 1.75;
}
.pj-hero .o-filters { margin-bottom: 0; }
.pj { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(72px, 10vw, 120px); }

.pj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pj-tag {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--o-ink-2);
    border: 1px solid var(--o-line);
    background: rgba(56, 189, 248, 0.05);
}
.pj-tag--academic { color: #bae6fd; border-color: rgba(56, 189, 248, 0.45); background: rgba(56, 189, 248, 0.12); }
.pj-tag--biz      { color: #bae6fd; border-color: rgba(14, 165, 233, 0.35); background: rgba(14, 165, 233, 0.08); }
.pj-tag--founder  {
    position: relative;
    overflow: hidden;
    color: #2b1d03;
    font-weight: 700;
    border-color: rgba(255, 226, 140, 0.7);
    background: linear-gradient(135deg, #f7e08c 0%, #e2b850 45%, #c9962e 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 18px -8px rgba(212, 168, 58, 0.85);
}
.pj-tag--founder i { color: #6b4a07; }
.pj-tag--founder::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 40%;
    left: -60%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    transform: skewX(-15deg);
    transition: left 0.9s var(--o-ease);
}
.pj-card:hover .pj-tag--founder::after { left: 130%; }
.pj-tag--personal { color: #bbf7d0; border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.08); }

.pj-links { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

/* featured */
.pj-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(28px, 5vw, 64px);
    margin-bottom: clamp(64px, 9vw, 112px);
}
.pj-feature--flip .pj-feature-media { order: 2; }

.pj-feature-media {
    position: relative;
    display: flex;
    align-items: center;
    padding: clamp(12px, 2vw, 22px);
    border-radius: 26px;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(56, 189, 248, 0.16), transparent 60%),
        var(--o-card);
    border: 1px solid var(--o-card-edge);
    box-shadow: var(--o-card-lift);
    perspective: 1200px;
    text-decoration: none;
    transition: border-color 0.4s, box-shadow 0.5s var(--o-ease);
}
.pj-feature-media:hover { border-color: rgba(56, 189, 248, 0.55); box-shadow: var(--o-card-glow); }
.pj-feature-media > .pj-window { width: 100%; }
.pj-window {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--o-line-2);
    background: #04102a;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(2, 6, 23, 0.8);
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.6s var(--o-ease), box-shadow 0.6s var(--o-ease);
}
.pj-window::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.pj-feature-media:hover .pj-window { box-shadow: 0 40px 80px -30px rgba(56, 189, 248, 0.7), 0 0 0 1px rgba(56, 189, 248, 0.6); }
.pj-feature-media:hover .pj-window::after { opacity: 1; }

.pj-window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 14px;
    background: rgba(7, 30, 61, 0.95);
    border-bottom: 1px solid var(--o-line);
}
.pj-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(148, 163, 184, 0.35); }
.pj-window-bar i:nth-child(1) { background: #ef4444; }
.pj-window-bar i:nth-child(2) { background: #f97316; }
.pj-window-bar i:nth-child(3) { background: #4ade80; }
.pj-window-bar span {
    margin-left: 10px;
    padding: 3px 12px;
    border-radius: 6px;
    background: rgba(2, 6, 23, 0.6);
    color: var(--o-ink-3);
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pj-window img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--o-ease); }
.pj-feature-media:hover .pj-window img { transform: scale(1.03); }

.pj-feature-body {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(26px, 3.6vw, 44px);
    border-radius: 26px;
    background:
        radial-gradient(90% 70% at 100% 0%, rgba(56, 189, 248, 0.14), transparent 60%),
        var(--o-card);
    border: 1px solid var(--o-card-edge);
    box-shadow: var(--o-card-lift);
    transition: border-color 0.4s, box-shadow 0.5s var(--o-ease);
}
.pj-feature-body::after {
    content: "";
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.8), transparent);
    opacity: 0.6;
}
.pj-feature:hover .pj-feature-body { border-color: rgba(56, 189, 248, 0.45); }
.pj-feature-body .pj-links { margin-top: 4px; }

.pj-feature-body h2 {
    font-family: var(--o-display);
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 18px;
}
.pj-feature-body p { color: var(--o-ink-2); line-height: 1.8; margin-bottom: 28px; max-width: 54ch; }

/* 3ZERO Club association */
.pj-club {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 7px 16px 7px 7px;
    margin-bottom: 18px;
    border-radius: 14px;
    border: 1px solid var(--o-line-2);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(2, 6, 23, 0.4));
}
.pj-club-logo { height: 56px; width: auto; max-width: 132px; object-fit: contain; border-radius: 10px; background: #fff; padding: 5px 8px; }
.pj-club-logo + .pj-club-mark { display: none; }
.pj-club-mark {
    display: grid;
    place-items: center;
    height: 40px;
    padding: 0 10px;
    border-radius: 9px;
    background: #fff;
    color: #021024;
    font: 700 1.05rem/1 var(--o-display);
    letter-spacing: -0.02em;
}
.pj-club-mark b { font-weight: 700; color: var(--o-deep); }
.pj-club-mark { display: inline-flex; gap: 1px; }
.pj-club-text { color: var(--o-ink-2); font-size: 0.92rem; }
.pj-club-text strong { color: #fff; }

/* grid cards */
.pj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    gap: 22px;
}
.pj-card { display: flex; flex-direction: column; overflow: hidden; }
.pj-card:hover { transform: translateY(-6px); }

.pj-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #04102a;
    border-bottom: 1px solid var(--o-line);
}
.pj-card-media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--o-ease), filter 0.5s; filter: saturate(0.92); }
.pj-card:hover .pj-card-media > img { transform: scale(1.06); filter: none; }
.pj-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(2, 6, 23, 0.65));
    pointer-events: none;
}

.pj-card-logo {
    position: absolute;
    left: 14px; bottom: 14px;
    z-index: 1;
    width: 54px; height: 54px;
    border-radius: 14px;
    background: #fff;
    padding: 5px;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(56, 189, 248, 0.4);
    transition: transform 0.5s var(--o-ease);
}
.pj-card-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pj-card:hover .pj-card-logo { transform: translateY(-4px) rotate(-4deg); }

.pj-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.pj-card-body h3 { font-family: var(--o-display); font-size: 1.35rem; line-height: 1.25; color: #fff; margin-bottom: 10px; }
.pj-card-body > p { color: var(--o-ink-3); line-height: 1.7; font-size: 0.97rem; margin-bottom: 14px; }
.pj-card-body .pj-stack { color: var(--o-ink-2); font-size: 0.85rem; margin-bottom: 16px; }
.pj-card-body .pj-links { margin-top: auto; }

/* filtering */
.pj .is-filtered { display: none !important; }
.pj .is-entering { animation: pjIn 0.55s var(--o-ease) both; }
@keyframes pjIn {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}
.pj-empty { color: var(--o-ink-3); text-align: center; padding: 40px 0; }

/* ---------- Orafdev — in development ---------- */
.ofd {
    position: relative;
    isolation: isolate;
    margin-top: clamp(64px, 9vw, 112px);
    padding: clamp(28px, 5vw, 56px);
    border-radius: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    background:
        radial-gradient(45% 70% at 22% 50%, rgba(14, 165, 233, 0.12) 0%, transparent 65%),
        linear-gradient(160deg, #050b18 0%, #03070f 60%, #02050b 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 50px 120px -50px rgba(56, 189, 248, 0.6), 0 0 0 1px rgba(2, 6, 23, 0.6);
    overflow: hidden;
}

/* light travelling around the edge */
@property --ofd-a {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
.ofd-ring {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    padding: 2px;
    pointer-events: none;
    background: conic-gradient(from var(--ofd-a), rgba(56, 189, 248, 0.22) 0deg, rgba(56, 189, 248, 0.22) 210deg, var(--o-cyan) 265deg, #e0f2fe 290deg, var(--o-sky) 315deg, rgba(56, 189, 248, 0.18) 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: ofdRing 7s linear infinite;
}
@keyframes ofdRing { to { --ofd-a: 360deg; } }

/* slow-moving light behind the content */
.ofd-aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.ofd-aurora i {
    position: absolute;
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.16;
    animation: ofdDrift 16s ease-in-out infinite alternate;
}
.ofd-aurora i:nth-child(1) { background: var(--o-sky);  left: -8%;  top: -20%; }
.ofd-aurora i:nth-child(2) { background: var(--o-deep); right: -10%; bottom: -30%; animation-duration: 20s; animation-delay: -6s; }
.ofd-aurora i:nth-child(3) { background: var(--o-cyan); left: 30%;  top: 40%; width: 30%; opacity: 0.22; animation-duration: 24s; animation-delay: -12s; }
@keyframes ofdDrift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(8%, 10%) scale(1.15); }
}

.ofd-grid-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse at 25% 50%, #000 15%, transparent 70%);
            mask-image: radial-gradient(ellipse at 25% 50%, #000 15%, transparent 70%);
    animation: ofdGrid 18s linear infinite;
}
@keyframes ofdGrid { to { background-position: 32px 32px, 32px 32px; } }

/* sparks rising through the card */
.ofd-sparks { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ofd-sparks i {
    position: absolute;
    left: var(--x);
    bottom: -10px;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: #7dd3fc;
    box-shadow: 0 0 8px var(--o-cyan);
    opacity: 0;
    animation: ofdRise var(--t) linear infinite;
    animation-delay: var(--d);
}
@keyframes ofdRise {
    0%   { transform: translateY(0); opacity: 0; }
    12%  { opacity: 0.9; }
    80%  { opacity: 0.4; }
    100% { transform: translateY(-560px); opacity: 0; }
}

/* logo stage */
.ofd-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1.2; }
.ofd-halo {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.42), rgba(2, 132, 199, 0.14) 45%, transparent 70%);
    filter: blur(30px);
    animation: ofdHalo 5s ease-in-out infinite alternate;
}
@keyframes ofdHalo {
    from { opacity: 0.6; transform: scale(0.92); }
    to   { opacity: 1;   transform: scale(1.06); }
}
.ofd-orbit {
    position: absolute;
    inset: 2% 6%;
    border-radius: 50%;
    border: 1px dashed rgba(56, 189, 248, 0.25);
    animation: abSpin 40s linear infinite;
}
.ofd-orbit span {
    position: absolute;
    top: 50%; right: -4px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--o-cyan);
    box-shadow: 0 0 14px var(--o-cyan);
}
.ofd-logo-wrap {
    position: relative;
    width: 84%;
    animation: ofdFloat 6s ease-in-out infinite;
}
@keyframes ofdFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.ofd-logo {
    display: block;
    width: 100%;
    height: auto;
    animation: ofdPulse 5s ease-in-out infinite alternate;
}
@keyframes ofdPulse {
    from { filter: brightness(0.95) drop-shadow(0 0 0 rgba(56, 189, 248, 0)); }
    to   { filter: brightness(1.08) drop-shadow(0 0 22px rgba(56, 189, 248, 0.45)); }
}

/* text side */
.ofd-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.ofd-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.45);
}
.ofd-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--o-orange);
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
    animation: ofdStatus 1.8s ease-out infinite;
}
@keyframes ofdStatus { to { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); } }
.ofd-soon {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--o-cyan);
    border: 1px solid var(--o-line-2);
    background: rgba(56, 189, 248, 0.08);
}

.ofd-title {
    font-family: var(--o-display);
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: #fff;
    background: linear-gradient(100deg, #fff 0%, #fff 40%, #7dd3fc 50%, #fff 60%, #fff 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ofdShine 7s ease-in-out infinite;
    text-wrap: balance;
}
@keyframes ofdShine {
    0%, 45%   { background-position: 100% 0; }
    85%, 100% { background-position: 0% 0; }
}
.ofd-lede { color: var(--o-ink-2); font-size: clamp(1.02rem, 1.4vw, 1.12rem); line-height: 1.75; max-width: 50ch; }
.ofd-lede strong { color: #fff; }

.ofd-plan { list-style: none; display: grid; margin-top: 24px; }
.ofd-plan li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px dashed rgba(56, 189, 248, 0.22);
}
.ofd-plan li:first-child { border-top: 1px dashed rgba(56, 189, 248, 0.22); }
.ofd-plan i {
    flex: none;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    color: var(--o-cyan);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--o-line-2);
    transition: transform 0.4s var(--o-ease), background-color 0.4s;
}
.ofd-plan li:hover i { transform: rotate(-8deg) scale(1.08); background: rgba(56, 189, 248, 0.2); }
.ofd-plan strong { display: block; color: #fff; font-size: 1rem; }
.ofd-plan span { color: var(--o-ink-3); font-size: 0.88rem; }

.ofd-build {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    color: var(--o-ink-2);
    font-size: 0.88rem;
    font-weight: 600;
}
.ofd-build-bar {
    position: relative;
    flex: 1;
    min-width: 80px;
    height: 4px;
    border-radius: 4px;
    background: rgba(2, 6, 23, 0.45);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.18);
    overflow: hidden;
}
.ofd-build-bar i {
    position: absolute;
    top: 0; bottom: 0;
    width: 35%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, var(--o-cyan), #e0f2fe);
    animation: ofdLoad 2.4s ease-in-out infinite;
}
@keyframes ofdLoad {
    from { left: -35%; }
    to   { left: 100%; }
}
.ofd-build-note { color: var(--o-ink-3); font-weight: 500; }

/* ---------- pipeline ---------- */
.pj-pipe { margin-top: clamp(64px, 9vw, 104px); }
.pj-pipe-title { font-family: var(--o-display); color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 18px; }
.pj-pipe-list { list-style: none; border-top: 1px solid var(--o-line); }
.pj-pipe-list li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 20px 8px;
    border-bottom: 1px solid var(--o-line);
    transition: background-color 0.3s, padding 0.4s var(--o-ease);
}
.pj-pipe-list li:hover { background: rgba(56, 189, 248, 0.05); padding-left: 16px; }
.pj-pipe-list i { color: var(--o-cyan); font-size: 1.15rem; text-align: center; }
.pj-pipe-list strong { display: block; color: #fff; font-size: 1.02rem; margin-bottom: 3px; }
.pj-pipe-list span { color: var(--o-ink-3); font-size: 0.92rem; line-height: 1.6; }
.pj-pipe-list time {
    color: var(--o-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--o-line-2);
    white-space: nowrap;
}

.pj-more { margin-top: 48px; text-align: center; }

/* ---------- wave buttons: Live (sky blue) / Source (emerald) ----------
   A wave layer rolls along the bottom of each button; on hover it rises
   and fills the button. Colours come from the original palette. */
.wbtn {
    --wb-bg:   linear-gradient(135deg, #0284c7, #0369a1);
    --wb-wave: #38bdf8;
    --wb-fill: #7dd3fc;
    --wb-ink:  #021024;
    --wb-edge: rgba(125, 211, 252, 0.55);
    --wb-glow: rgba(56, 189, 248, 0.75);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 14px;
    border: 1px solid var(--wb-edge);
    background: var(--wb-bg);
    color: #fff;
    font: 600 0.96rem/1 'Inter', Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 28px -14px var(--wb-glow);
    transition: color 0.45s var(--o-ease), transform 0.35s var(--o-ease), box-shadow 0.35s var(--o-ease);
}
.wbtn::before,
.wbtn::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 160%;
    z-index: -1;
    background: var(--wb-wave);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cpath d='M0 8 Q15 0 30 8 T60 8 T90 8 T120 8 V40 H0Z'/%3E%3C/svg%3E") repeat-x;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cpath d='M0 8 Q15 0 30 8 T60 8 T90 8 T120 8 V40 H0Z'/%3E%3C/svg%3E") repeat-x;
    -webkit-mask-size: 90px 100%;
            mask-size: 90px 100%;
    transform: translateY(78%);
    animation: wbWave 3.2s linear infinite;
    transition: transform 0.6s var(--o-ease), background-color 0.4s;
}
.wbtn::before { opacity: 0.35; animation-duration: 4.6s; animation-direction: reverse; transform: translateY(72%); }
.wbtn::after  { opacity: 0.55; }
@keyframes wbWave {
    from { -webkit-mask-position: 0 0;    mask-position: 0 0; }
    to   { -webkit-mask-position: 90px 0; mask-position: 90px 0; }
}
.wbtn i { font-size: 0.9em; transition: transform 0.35s var(--o-ease); }

.wbtn:hover {
    color: var(--wb-ink);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 18px 36px -14px var(--wb-glow);
}
.wbtn:hover::before { transform: translateY(-4%); }
.wbtn:hover::after  { transform: translateY(0); background: var(--wb-fill); opacity: 1; }
.wbtn:hover i { transform: translateY(-1px) scale(1.1); }
.wbtn:active { transform: translateY(0) scale(0.98); }
.wbtn:focus-visible { outline: 2px solid var(--wb-fill); outline-offset: 3px; }

.wbtn--src {
    --wb-bg:   linear-gradient(135deg, #047857, #065f46);
    --wb-wave: #34d399;
    --wb-fill: #4ade80;
    --wb-ink:  #022c1a;
    --wb-edge: rgba(74, 222, 128, 0.5);
    --wb-glow: rgba(52, 211, 153, 0.6);
}

.wbtn--sm { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: 0.86rem; gap: 8px; }

/* =====================================================================
   CONTACT — light refresh (markup unchanged)
   ===================================================================== */
.page-contact .contact-info a { color: inherit; text-decoration: none; transition: color 0.3s; }

.page-contact .contact-card,
.page-contact .form-wrapper {
    background: var(--o-card);
    border: 1px solid var(--o-card-edge);
    box-shadow: var(--o-card-lift);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.page-contact .contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: var(--o-card-glow);
}
.page-contact .contact-card::after {
    content: "";
    position: absolute;
    top: 0; left: 18px; right: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.75), transparent);
    opacity: 0.5;
    transition: opacity 0.4s;
}
.page-contact .contact-card:hover::after { opacity: 1; }
.page-contact .contact-card::before { opacity: 0; transition: top 0.8s, left 0.8s, opacity 0.3s; }
.page-contact .contact-card:hover::before { opacity: 1; }
.page-contact .contact-info a:hover { color: var(--o-cyan); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
    .ab-profile-grid { grid-template-columns: 1fr 1fr; }
    .ab-panel--lead { grid-column: 1 / -1; }
    .ab-stats { grid-template-columns: repeat(2, 1fr); }
    .ab-stat:nth-child(3) { border-left: 0; }
    .ab-stat:nth-child(n + 3) { border-top: 1px solid var(--o-line); }
    .ab-chip--b { right: -4%; }
    .ab-chip--a { left: -4%; }
}

@media (max-width: 900px) {
    .ab-intro {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: calc(var(--nav-h) + 56px);
        gap: 56px;
    }
    .ab-portrait { width: min(360px, 74vw); }
    .ab-intro-text { text-align: left; }

    .pj-feature,
    .ofd { grid-template-columns: 1fr; }
    .pj-feature--flip .pj-feature-media { order: 0; }
}

@media (max-width: 768px) {
    .vol-grid { grid-template-columns: 1fr; }
    .xp-wrap { --logo: 64px; }
    .xp-logo { border-radius: 16px; padding: 7px; box-shadow: 0 0 0 4px var(--o-bg), 0 0 0 5px var(--o-line-2); }
    .xp-logo--dark { padding: 3px; }
    .xp-item:hover .xp-body { transform: none; }
}

@media (max-width: 600px) {
    .ab-profile-grid { grid-template-columns: 1fr; }
    .ab-chip { font-size: 0.78rem; padding: 8px 12px; }
    .ab-chip--a { left: -6%; top: 4%; }
    .ab-chip--b { right: -6%; }
    .ab-chip--c { left: -2%; bottom: 2%; }
    .ab-orbit--outer { inset: -9%; }
    .ab-actions .o-btn { flex: 1 1 calc(50% - 6px); padding: 0 14px; }
    .ab-actions .o-btn--primary { flex-basis: 100%; }

    .ab-stat { padding: 20px 14px; }

    .xp-wrap { --logo: 52px; }
    .xp-item { gap: 14px; }
    .xp-logo { border-radius: 14px; padding: 5px; }
    .xp-body { padding: 20px 18px; }

    .vol-logo { width: 116px; height: 66px; }

    .o-filters { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 16px; }
    .o-filters::-webkit-scrollbar { display: none; }
    .o-filter { flex: none; padding: 11px 15px; }

    .cert-grid-x { gap: 14px; }
    .cert-card { padding: 20px 18px 18px; }
    .cert-card-foot { flex-direction: column; align-items: stretch; }
    .cert-card-skill { align-self: flex-start; }
    .cert-card-btn { justify-content: center; min-height: 46px; }

    .ofd-build { flex-wrap: wrap; }
    .ofd-build-bar { flex-basis: 100%; order: 3; }

    .cv-modal { padding: 8px; }
    .cv-modal-panel { max-height: calc(100dvh - 16px); border-radius: 18px; }
    .cv-modal-head { padding: 14px 14px; }
    .cv-modal-foot { padding: 12px 14px; flex-wrap: wrap; }
    .cv-modal-foot .o-btn { order: 6; flex-basis: 100%; margin-left: 0; }
    .cv-modal-foot #cert-modal-count { margin: 0 auto; }

    .pj-card-body { padding: 20px 18px 22px; }
    .pj-club { padding-right: 12px; }
    .pj-pipe-list li { grid-template-columns: 32px minmax(0, 1fr); }
    .pj-pipe-list time { grid-column: 2; justify-self: start; }

    .ab-cv-actions, .ab-cv-actions .o-btn { width: 100%; }
}

/* touch devices: no hover lifts that stick */
@media (hover: none) {
    .o-spot:hover, .pj-card:hover, .vol-card:hover, .cert-grid-x.is-in .cert-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .motion-ready [data-reveal],
    .motion-ready [data-reveal-group] > *,
    .cert-card { opacity: 1 !important; transform: none !important; }
    #o-stars { display: none; }
}

/* =====================================================================
   THEME — panels share the card surface
   ===================================================================== */
/* panels share the card surface so the page reads as one system */
.ab-panel, .ab-cv-card { background: var(--o-card); border-color: var(--o-card-edge); }
.ab-panel--lead,
.ab-cv-card {
    background:
        radial-gradient(80% 90% at 0% 0%, rgba(14, 165, 233, 0.14), transparent 60%),
        var(--o-card);
}
