/* =============================================================================
   redesign-mobile.css — the web redesign carried over to phones

   css/redesign.css restyles the homepage from 992px up. This file brings the
   same visual language to the phone layout (everything under 992px) for
   index-mobile-redesign.html.

   It is a skin, not a new layout. The phone structure — stacking order, the
   credentials reel, the tool marquees, the contact dial, the reveal-on-scroll
   — still comes from css/index-mobile.css and js/index-mobile.js. This file
   is linked after both redesign.css and index-mobile.css, so at equal
   specificity it wins; the !important flags answer the ones in index.html's
   inline mobile block.

   Kept exactly as the phone design already has them, to match the choices
   made for the web version:
     · the About photo (gradient ring, rounded frame, bobbing tool chips);
     · "What I Do" as calm, equal cards — the index-v3 treatment — rather
       than anything numbered or bento.

   01 Tokens + atmosphere     07 Experience
   02 Section heads           08 Credentials
   03 Buttons                 09 Portfolio
   04 Hero                    10 Blog
   05 Stats tape              11 Contact
   06 About + skills          12 Footer + reduced motion
   ============================================================================= */

@media (max-width: 991.98px) {

/* -----------------------------------------------------------------
   01 · Tokens + atmosphere
   ----------------------------------------------------------------- */
:root {
    --rm-green: #28e98c;
    --rm-ink: #0a0b0b;
    --rm-surface: rgba(255, 255, 255, 0.035);
    --rm-line: rgba(255, 255, 255, 0.08);
    --rm-line-2: rgba(255, 255, 255, 0.15);
    --rm-muted: rgba(255, 255, 255, 0.62);
    --rm-radius: 20px;
    --rm-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body { background-color: var(--rm-ink); }

/* The same film grain as the web version, a touch lighter on a small screen. */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--rm-green); color: #0a0a0a; }

/* ── Phone performance ───────────────────────────────────────────────
   Three effects that a phone pays for on every frame and that are
   barely visible at this size. Dropping them is what takes the home
   page back to a steady 60fps; the rest of the motion is unchanged,
   and js/enhancements.js §12 parks it while it is off screen. */

/* An 80px blur on a 300px circle is a full-screen raster on a phone. */
.hero-blob { display: none !important; }

/* The navbar's specular sweep animates background-position on a bar
   that is on screen the whole time — a repaint per frame, forever. */
.navbar .container::before { animation: none !important; }

/* Four stacked backdrop-filters behind the tool chips; a solid panel
   reads the same against the photo underneath. */
.about-photo-icons span {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(12, 12, 12, 0.94);
}

.lp-section { border-top: 0; position: relative; }
.lp-section::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 86%;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    pointer-events: none;
}
.section-padding { padding-top: 68px !important; padding-bottom: 68px !important; }
.resume.section-padding { padding-top: 0 !important; }


/* -----------------------------------------------------------------
   02 · Section heads — numbered eyebrow, bigger title
   ----------------------------------------------------------------- */
main { counter-reset: rm-sec; }
main .sub-title-icon { counter-increment: rm-sec; }

.sub-title-icon {
    gap: 12px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: none;
    margin-bottom: 14px !important;
}
.sub-title-icon .icon { display: none; }
.sub-title-icon .sub-label {
    font-family: 'Lexend', 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--rm-green);
}
.sub-title-icon .sub-label::before {
    content: counter(rm-sec, decimal-leading-zero);
    display: inline-block;
    margin-right: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(40, 233, 140, 0.35);
    background: rgba(40, 233, 140, 0.07);
    font-size: 10.5px;
    letter-spacing: 1px;
    color: var(--rm-green);
}
/* Every head is centred on a phone, so every eyebrow gets both rules. */
.sub-title-icon::before,
.sub-title-icon::after {
    content: '';
    width: 28px;
    height: 1px;
    flex-shrink: 0;
}
.sub-title-icon::before { background: linear-gradient(270deg, rgba(40, 233, 140, 0.6), transparent); }
.sub-title-icon::after  { background: linear-gradient(90deg, rgba(40, 233, 140, 0.6), transparent); }

.sec-head h3 {
    font-size: 36px !important;
    line-height: 1.08;
    letter-spacing: -0.3px;
}


/* -----------------------------------------------------------------
   03 · Buttons — pills, the primary one glows and carries an arrow
   ----------------------------------------------------------------- */
.butn,
.butn.butn-md,
.butn.radius-5 { border-radius: 999px !important; min-height: 54px; }
.butn.butn-bg {
    color: #0a0a0a;
    box-shadow: 0 10px 30px -10px rgba(40, 233, 140, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.butn.butn-bg span::after {
    content: '→';
    display: inline-block;
    margin-left: 9px;
}
.butn.butn-bord {
    border-color: var(--rm-line-2);
    background: rgba(255, 255, 255, 0.03);
}


/* -----------------------------------------------------------------
   04 · Hero
   ----------------------------------------------------------------- */
/* The tilted tape below runs past both screen edges; clip only sideways so
   nothing vertical (and no sticky behaviour) is affected. Needs to outrank
   the `#home { overflow: visible !important }` in index.html. */
#home.header-crev { overflow-x: clip !important; }

/* Blueprint dot grid behind the portrait, fading out towards the edges. */
.header-crev::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.2px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 80% 45% at 50% 55%, #000 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 45% at 50% 55%, #000 10%, transparent 75%);
}
.header-crev > .container { position: relative; z-index: 1; }

.roles-ticker {
    font-family: 'Lexend', 'Poppins', sans-serif;
    font-size: 15px !important;
    color: var(--rm-muted);
}
.header-crev .content h1 {
    font-size: 42px !important;
    line-height: 1.06;
    letter-spacing: -0.5px;
}
.gradient-name {
    background: linear-gradient(100deg, #28e98c 0%, #7af5c0 22%, #5b6af0 50%, #28e98c 78%, #7af5c0 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: rmShimmer 9s ease-in-out infinite;
}
@keyframes rmShimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.header-crev .content p {
    font-size: 15px;
    line-height: 1.72;
    color: var(--rm-muted);
}

.dark-signal-item {
    border-radius: 999px;
    background: var(--rm-surface);
    border-color: var(--rm-line);
}


/* -----------------------------------------------------------------
   05 · Stats tape — the two crossing bands from the web version
   ----------------------------------------------------------------- */
.stats-strip {
    position: relative;
    z-index: 3;
    margin: 46px calc(50% - 50vw - 40px) 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible;
    transform: rotate(-3deg);
}
.stats-strip::before {
    content: '';
    position: absolute;
    inset: 3px 0;
    z-index: -1;
    background: #121414;
    border-top: 1px solid var(--rm-line);
    border-bottom: 1px solid var(--rm-line);
    transform: rotate(5deg);
}
/* The tape runs off the screen, so the edge fade index-mobile.css gives the
   marquee would only make its ends look worn. */
.stats-marquee {
    background: var(--rm-green);
    padding: 14px 0;
    border: 0;
    -webkit-mask-image: none;
    mask-image: none;
    box-shadow: 0 16px 44px -16px rgba(40, 233, 140, 0.6);
}
.stats-track > * { margin-right: 26px; }
.stat-num { font-size: 22px; color: #0a0a0a; }
.stat-label {
    font-family: 'Lexend', 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #0a0a0a;
    opacity: 0.72;
}
.stat-sep { color: #0a0a0a; opacity: 0.5; }

.dark-signals { margin-top: 48px !important; }


/* -----------------------------------------------------------------
   06 · About + What I Do
   ----------------------------------------------------------------- */
/* The photo cluster is intentionally left as css/index-mobile.css draws it. */
.about-bio-title { font-size: 31px; line-height: 1.12; }
.about-bio-roles {
    font-family: 'Lexend', 'Poppins', sans-serif;
    font-size: 11.5px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* Stats become one segmented panel, as on the web, instead of four tiles. */
.about-stats-row {
    gap: 0;
    border: 1px solid var(--rm-line);
    border-radius: var(--rm-radius);
    background: var(--rm-surface);
    overflow: hidden;
}
.about-stat-item {
    border: 0;
    border-radius: 0;
    background: none;
}
.about-stat-item:nth-child(odd) { border-right: 1px solid var(--rm-line); }
.about-stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--rm-line); }
.about-stat-num,
.about-stat-plus { font-size: 30px; }
.about-stat-label {
    font-family: 'Lexend', 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 10.5px;
}

.about-chip { border-radius: 999px; }

/* What I Do — equal cards, icon on top, no accent bar. */
.skills-grid { gap: 14px; }
.skill-card {
    padding: 26px 20px 24px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--rm-line);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 14px 32px -20px rgba(0, 0, 0, 0.8);
}
.skill-card::before { display: none; }
.skill-card-icon-wrap {
    width: 54px; height: 54px;
    border-radius: 15px;
    background: rgba(40, 233, 140, 0.07);
    border: 1px solid rgba(40, 233, 140, 0.18);
}
.skill-card-title { font-family: 'Righteous', sans-serif; font-size: 20px; font-weight: 400; }
.skill-tool {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.7);
}
.skill-anchor-note { font-style: normal; font-size: 12.5px; color: var(--rm-green); }


/* -----------------------------------------------------------------
   07 · Experience
   ----------------------------------------------------------------- */
.exp-right {
    padding: 18px 16px;
    border-radius: 18px;
    border-color: var(--rm-line);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012) 70%);
}
.exp-item.active .exp-right {
    border-color: rgba(40, 233, 140, 0.32);
    box-shadow: inset 3px 0 0 var(--rm-green);
}
/* The date reads as a small pill on the card's first line. */
.exp-date-badge {
    align-self: flex-start;
    font-family: 'Lexend', 'Poppins', sans-serif;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--rm-line);
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 255, 255, 0.6) !important;
}
/* index-mobile.css pads this line to clear the pinned "Most Recent" badge;
   as a pill that would stretch it, so the room is kept outside instead. */
.exp-right:has(.exp-badge) .exp-date-badge { padding-right: 11px; margin-right: 96px; }
.exp-badge { border-radius: 999px; }
.exp-tags span { border-radius: 999px; }


/* -----------------------------------------------------------------
   08 · Credentials
   ----------------------------------------------------------------- */
/* The filter chips sit in one pill-shaped bar, as on the web. It still
   scrolls sideways when the chips do not fit. */
.edu-section .edu-filters,
.pf-section .edu-filters {
    width: -moz-max-content;
    width: max-content;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 5px;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
    border: 1px solid var(--rm-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
}
.pf-section .edu-filters::-webkit-scrollbar { display: none; }
.edu-filter-btn,
.pf-filter-btn {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 999px;
    font-family: 'Lexend', 'Poppins', sans-serif;
    font-size: 11px !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.edu-filter-btn.active,
.pf-filter-btn.active {
    background: var(--rm-green);
    color: #0a0a0a;
    box-shadow: 0 6px 18px -6px rgba(40, 233, 140, 0.7);
}

.edu-card {
    border-radius: 22px;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012) 60%);
}
/* Each certificate sits in a framed white mat, as on the web. */
.edu-card-img {
    /* width:auto, not 100%: with the side margins a full-width box ran 16px
       past the card and the certificate was cut off on the right. */
    width: auto;
    margin: 8px 8px 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.edu-verify-btn { border-radius: 999px; }


/* -----------------------------------------------------------------
   09 · Portfolio — title and tag laid over the cover
   ----------------------------------------------------------------- */
.pf-grid:not(.is-list) { gap: 16px; }
.pf-grid:not(.is-list) .pf-card {
    position: relative;
    aspect-ratio: 14 / 9;
    border-radius: var(--rm-radius);
    border-color: var(--rm-line);
    background: #111;
    overflow: hidden;
}
.pf-grid:not(.is-list) .pf-card-featured { aspect-ratio: 14 / 9; }
.pf-grid:not(.is-list) .pf-card-img,
.pf-grid:not(.is-list) .pf-card-featured .pf-card-img {
    position: absolute;
    inset: 0;
    height: 100%;
}
.pf-grid:not(.is-list) .pf-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 7, 7, 0.95) 0%, rgba(6, 7, 7, 0.55) 30%, transparent 58%);
    pointer-events: none;
}
.pf-grid:not(.is-list) .pf-card-info {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    align-items: flex-end;
    padding: 16px;
}
.pf-grid:not(.is-list) .pf-card-title { font-size: 17px; }
.pf-grid:not(.is-list) .pf-card-featured .pf-card-title { font-size: 23px; }
/* No backdrop blur here: forty blurred chips on one scroll is a lot to ask
   of a phone. A denser tint does the same job. */
/* The markup puts the arrow before the word; row-reverse reads "View →". */
.pf-view-pill { flex-direction: row-reverse; }
.pf-grid:not(.is-list) .pf-view-pill { background: rgba(10, 10, 10, 0.6); }

.pf-hint-text {
    background: transparent;
    border-style: dashed;
    border-color: var(--rm-line-2);
}


/* -----------------------------------------------------------------
   10 · Blog
   ----------------------------------------------------------------- */
.blog-featured-card,
.blog-side-card {
    border-radius: 22px;
    border-color: var(--rm-line);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012) 60%);
}
/* The cover sits inside the card on a small inset, as on the web. */
.blog-featured-img { margin: 8px 8px 0; border-radius: 16px; overflow: hidden; }
.blog-featured-label { border-radius: 999px; box-shadow: 0 6px 18px -6px rgba(40, 233, 140, 0.8); }
.blog-featured-title { font-family: 'Righteous', sans-serif; font-size: 21px; font-weight: 400; line-height: 1.25; }

.blog-side-card { grid-template-columns: 108px 1fr; gap: 12px; padding: 8px; }
.blog-side-img { border-radius: 14px; }
.blog-side-body { padding: 8px 8px 6px 0; }
.blog-side-title { font-family: 'Righteous', sans-serif; font-size: 16px; font-weight: 400; line-height: 1.3; }

.blog-tag {
    border-radius: 999px;
    background: rgba(40, 233, 140, 0.08);
    border-color: rgba(40, 233, 140, 0.2);
    color: var(--rm-green);
}
.blog-arrow {
    width: 30px; height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(40, 233, 140, 0.35);
    font-size: 13px;
}


/* -----------------------------------------------------------------
   11 · Contact
   ----------------------------------------------------------------- */
.contact-heading { font-size: 34px !important; line-height: 1.1; }

.contact-channel { border-radius: 18px; border-color: var(--rm-line); }
.contact-channel-icon,
.contact-channel-icon.contact-channel-icon-wa { border-radius: 14px; }
.contact-channel-arrow {
    width: 32px; height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(40, 233, 140, 0.25);
    font-size: 14px;
}
.contact-social-btn { border-radius: 50%; }

/* The form card's slowly rotating gradient border, as on the web.
   --rd-ang is registered in css/redesign.css, which this page also loads. */
.contact-cta-card {
    border: 1px solid transparent;
    border-radius: 24px;
    background:
        linear-gradient(165deg, #141716, #0e100f 60%) padding-box,
        conic-gradient(from var(--rd-ang, 0deg), rgba(40, 233, 140, 0.75), rgba(91, 106, 240, 0.45), rgba(255, 255, 255, 0.06) 35%, rgba(255, 255, 255, 0.06) 65%, rgba(40, 233, 140, 0.75)) border-box;
    box-shadow: 0 30px 80px -40px rgba(40, 233, 140, 0.3);
    animation: rmSpin 10s linear infinite;
}
@keyframes rmSpin { to { --rd-ang: 360deg; } }

.cform-input,
.cselect-trigger { border-radius: 14px; }
/* "Select a service" matches the other fields: the empty state reads like a
   placeholder (14px, as the inputs' placeholders), a chosen service like
   typed text (16px, regular weight — index.html sets it bold). */
.cselect:not(.has-value) .cselect-value { font-size: 14px; }
.cselect.has-value .cselect-value { font-size: 16px; font-weight: 400; }
.cform-submit,
.cform-next {
    border-radius: 999px !important;
    box-shadow: 0 12px 32px -12px rgba(40, 233, 140, 0.7);
}


/* -----------------------------------------------------------------
   12 · Footer — the oversized sign-off
   ----------------------------------------------------------------- */
footer.lp-footer { position: relative; overflow: hidden; border-top: 0; }
footer.lp-footer::before {
    content: 'Let\2019s create';
    display: block;
    margin: 0 0 26px;
    font-family: 'Righteous', sans-serif;
    font-size: 12.5vw;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -1px;
    text-align: center;
    color: transparent;
    background: linear-gradient(180deg, rgba(40, 233, 140, 0.28), rgba(40, 233, 140, 0.06) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    pointer-events: none;
}
footer.lp-footer .social li a {
    width: 42px; height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--rm-line-2);
    margin: 0 4px;
}

.im-dial-btn { box-shadow: 0 12px 34px -8px rgba(40, 233, 140, 0.75); }
/* The progress ring is an <svg> with no width/height attributes, and an
   absolutely positioned replaced element does not stretch between its
   insets — so `inset: -5px` alone left it at a default size, off-centre.
   An explicit box, 5px larger than the 60px button on every side, centres it. */
.im-dial-ring {
    top: -5px; left: -5px;
    right: auto; bottom: auto;
    width: 70px; height: 70px;
    transform-origin: 50% 50%;
}

} /* end @media (max-width: 991.98px) */


@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
    .gradient-name,
    .contact-cta-card { animation: none; }
}
