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

html {
   scroll-behavior: smooth;
   scroll-padding-top: 72px;
}

body {
   font-family: 'DM Sans', sans-serif;
   background: #08080f;
   color: #f0f0ff;
   line-height: 1.6;
   overflow-x: hidden;
}

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

ul {
   list-style: none;
}

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

button {
   font-family: inherit;
   cursor: pointer;
}


/* ── Variables ── */
:root {
   --bg: #08080f;
   --bg2: #0d0d18;
   --bg3: #12121f;
   --card: #161625;
   --cardh: #1c1c30;
   --p: #7c3aed;
   --pl: #9b5dff;
   --pdim: rgba(124, 58, 237, .12);
   --pglow: rgba(124, 58, 237, .3);
   --t: #f0f0ff;
   --t2: #8b8baa;
   --t3: #55556a;
   --bdr: rgba(255, 255, 255, .07);
   --bdrp: rgba(124, 58, 237, .3);
   --r: 10px;
   --rl: 16px;
   --rxl: 24px;
   --fh: 'Syne', sans-serif;
   --ease: cubic-bezier(.16, 1, .3, 1);
}


/* ── Shared helpers ── */
.section-wrap {
   max-width: 1240px;
   margin: 0 auto;
   padding: 100px 24px;
   padding-bottom: 160px;
}

.eyebrow {
   font-size: .7rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: .18em;
   color: var(--pl);
   margin-bottom: 55px;
}

.section-title {
   font-family: var(--fh);
   font-size: clamp(1.9rem, 3.5vw, 2.5rem);
   font-weight: 800;
   line-height: 1.05;
   letter-spacing: -.03em;
   color: var(--t);
   margin-bottom: 0;
}

.section-title em {
   font-style: normal;
   background: linear-gradient(135deg, var(--pl), #c084fc);
   -webkit-background-clip: text;
   font-size: clamp(1.9rem, 3.5vw, 3rem);
   -webkit-text-fill-color: transparent;
   background-clip: text;
}

.section-header {
   display: flex;
   align-items: flex-end;
   justify-content: space-between;
   flex-wrap: wrap;
   gap: 16px;
   margin-bottom: 70px;
}

.link-arrow {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   font-size: .875rem;
   color: var(--t2);
   border-bottom: 1px solid var(--bdr);
   padding-bottom: 3px;
   transition: color .2s, border-color .2s;
   white-space: nowrap;
}

.link-arrow:hover {
   color: var(--pl);
   border-color: var(--pl);
}

.link-arrow svg {
   width: 14px;
   height: 14px;
}

/* Buttons */
.btn-primary {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 12px 22px;
   background: var(--p);
   border-radius: 40px;
   color: #fff;
   font-size: .9rem;
   font-weight: 500;
   border: none;
   transition: all .25s var(--ease);
   white-space: nowrap;
}

.btn-primary:hover {
   background: var(--pl);
   transform: translateY(-2px);
   box-shadow: 0 12px 30px rgba(124, 58, 237, .4);
}

.btn-primary svg {
   width: 16px;
   height: 16px;
   flex-shrink: 0;
}

.btn-outline {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 12px 22px;
   border-radius: 40px;
   border: 1px solid var(--bdrp);
   color: var(--t2);
   font-size: .9rem;
   font-weight: 400;
   background: transparent;
   transition: all .2s;
}

.btn-outline:hover {
   background: var(--pdim);
   color: var(--t);
   border-color: var(--pl);
}

.btn-outline svg {
   width: 16px;
   height: 16px;
   flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.navbar {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   z-index: 900;
   padding: 0 24px;
   transition: background .3s, border .3s;
}

.navbar.scrolled {
   background: rgba(8, 8, 15, .95);
   backdrop-filter: blur(20px);
   border-bottom: 1px solid var(--bdr);
}

.nav-wrap {
   max-width: 1240px;
   margin: 0 auto;
   height: 68px;
   display: flex;
   align-items: center;
   gap: 410px;
}

.nav-logo {
   font-family: var(--fh);
   font-size: 1.4rem;
   font-weight: 800;
   letter-spacing: -1px;
   flex-shrink: 0;
}

.lr {
   color: var(--t);
}

.ls {
   color: var(--pl);
}

.nav-links {
   display: flex;
   gap: 2px;
   flex: 1;
   justify-content: center;
}

.nav-link {
   font-size: .875rem;
   color: var(--t2);
   padding: 6px 14px;
   border-radius: 20px;
   transition: color .2s, background .2s;
}

.nav-link:hover, .nav-link.active {
   color: var(--t);
   background: rgba(255, 255, 255, .06);
}

.nav-end {
   display: flex;
   align-items: center;
   gap: 10px;
   margin-left: auto;
}

.nav-cta {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   padding: 7px 18px;
   background: var(--p);
   border-radius: 20px;
   font-size: .85rem;
   color: #fff;
   transition: all .2s;
   white-space: nowrap;
}

.nav-cta:hover {
   background: var(--pl);
   transform: translateY(-1px);
   box-shadow: 0 6px 20px rgba(124, 58, 237, .4);
}

.nav-cta svg {
   width: 14px;
   height: 14px;
}


/* Hamburger */
.burger {
   display: none;
   flex-direction: column;
   justify-content: center;
   gap: 5px;
   width: 36px;
   height: 36px;
   background: none;
   border: none;
   padding: 5px;
}

.burger span {
   display: block;
   height: 2px;
   background: var(--t);
   border-radius: 2px;
   transition: transform .3s, opacity .3s, width .3s;
}

.burger span:nth-child(3) {
   width: 70%;
}

.burger.open span:nth-child(1) {
   transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
   opacity: 0;
}

.burger.open span:nth-child(3) {
   transform: rotate(-45deg) translate(5px, -5px);
   width: 100%;
}



/*HERO*/
.hero {
   min-height: 100svh;
   position: relative;
   display: flex;
   align-items: center;
   overflow: hidden;
   padding-top: 68px;
}

.hero-bg-grid {
   position: absolute;
   inset: 0;
   background-image: linear-gradient(rgba(124, 58, 237, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 58, 237, .05) 1px, transparent 1px);
   background-size: 56px 56px;
   mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 0%, transparent 70%);
   pointer-events: none;
}

.orb {
   position: absolute;
   border-radius: 50%;
   filter: blur(70px);
   pointer-events: none;
   animation: orb-drift 9s ease-in-out infinite;
}

.orb1 {
   width: 550px;
   height: 550px;
   background: radial-gradient(circle, rgba(124, 58, 237, .22) 0%, transparent 70%);
   top: -120px;
   right: -100px;
}

.orb2 {
   width: 380px;
   height: 380px;
   background: radial-gradient(circle, rgba(155, 93, 255, .15) 0%, transparent 70%);
   bottom: 0;
   left: -80px;
   animation-delay: -3s;
}

.orb3 {
   width: 280px;
   height: 280px;
   background: radial-gradient(circle, rgba(124, 58, 237, .1) 0%, transparent 70%);
   top: 50%;
   left: 40%;
   animation-delay: -6s;
}

@keyframes orb-drift {

   0%,
   100% {
      transform: translate(0, 0) scale(1);
   }

   33% {
      transform: translate(24px, -24px) scale(1.04);
   }

   66% {
      transform: translate(-16px, 16px) scale(.96);
   }
}

.hero-wrap {
   position: relative;
   z-index: 2;
   max-width: 1240px;
   margin: 0 auto;
   padding: 20px 14px 80px;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 72px;
   align-items: center;
   width: 100%;
}

@keyframes pulse-green {

   0%,
   100% {
      box-shadow: 0 0 8px rgba(34, 197, 94, .8);
   }

   50% {
      box-shadow: 0 0 16px rgba(34, 197, 94, 1);
   }
}

.hero-title {
   font-family: var(--fh);
   font-weight: 800;
   line-height: 1.05;
   letter-spacing: -.04em;
   margin-bottom: 20px;
}

.ht-line {
   display: block;
   opacity: 0;
   font-size: clamp(2.6rem, 5.5vw, 5rem);
   transform: translateY(32px);
   animation: slide-in .8s var(--ease) forwards;
}

.ht-line-hero {
   display: block;
   opacity: 0;
   font-size: clamp(2.6rem, 5.5vw, 3rem);
   transform: translateY(32px);
   animation: slide-in .8s var(--ease) forwards;
}

.ht-line:nth-child(1) {
   animation-delay: .1s;
}

.ht-line:nth-child(2) {
   animation-delay: .22s;
}

.ht-accent {
   background: linear-gradient(135deg, var(--pl), #c084fc);
   -webkit-background-clip: text;
   font-size: clamp(2.6rem, 5.5vw, 5rem);
   -webkit-text-fill-color: transparent;
   background-clip: text;
}

@keyframes slide-in {
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.hero-desc {
   font-size: 1rem;
   color: var(--t2);
   max-width: 420px;
   line-height: 1.75;
   margin-bottom: 46px;
}

.hero-desc strong {
   color: var(--t);
   font-weight: 500;
}

.hero-btns {
   display: flex;
   gap: 12px;
   flex-wrap: wrap;
   margin-bottom: 48px;
}

.hero-stats {
   display: flex;
   align-items: center;
   gap: 20px;
}

.hstat {
   display: flex;
   flex-direction: column;
   gap: 2px;
   padding-right: 28px;
}

.hstat:not(:first-child) {
   padding-left: 28px;
}

.hstat strong {
   font-family: var(--fh);
   font-size: 1.8rem;
   font-weight: 800;
   line-height: 1;
   color: var(--t);
   letter-spacing: -.04em;
}

.hstat small { 
  font-size: 1.2rem; 
  font-weight: 800; 
  color: var(--pl);
  margin-right: 5px; 
}

.hstat span {
   font-size: .82rem;
   color: var(--t3);
   
}

.hstat-sep {
   width: 1px;
   height: 36px;
   background: var(--bdr);
   flex-shrink: 0;
}

/* Hero photo frame */
.hero-visual {
   display: flex;
   justify-content: center;
   align-items: center;
   padding-left: 130px;
}

.hero-frame {
   position: relative;
   width: 300px;
}

.hf-ring {
   position: absolute;
   inset: -12px;
   border-radius: 50%;
   border: 2px solid transparent;
   background: conic-gradient(from 0deg, var(--p), #c084fc 30%, transparent 50%, transparent 80%, var(--p)) border-box;
   -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
   -webkit-mask-composite: destination-out;
   mask-composite: exclude;
   animation: spin-ring 8s linear infinite;
}

.hf-ring2 {
   inset: -22px;
   border-width: 1px;
   background: conic-gradient(from 180deg, transparent 0%, var(--p) 30%, #c084fc 60%, transparent 70%) border-box;
   animation-duration: 14s;
   animation-direction: reverse;
   opacity: .5;
}

@keyframes spin-ring {
   to {
      transform: rotate(360deg);
   }
}

.hf-photo {
   width: 300px;
   height: 360px;
   border-radius: var(--rxl);
   overflow: hidden;
   background: var(--card);
   position: relative;
   border: 1px solid var(--bdrp);
   box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 50px rgba(124, 58, 237, .15);
}

.hf-photo img {
   width: 1000%;
   height: 200%;
   margin-top: -200px;
   object-fit: cover;
   object-position: center top;
}

.hf-fallback {
   position: absolute;
   inset: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   font-family: var(--fh);
   font-size: 4rem;
   font-weight: 800;
   color: var(--pl);
   background: var(--card);
}

/* Float badges */
.fbadge {
   position: absolute;
   display: flex;
   align-items: center;
   gap: 7px;
   padding: 7px 13px;
   background: rgba(12, 12, 22, .96);
   border: 1px solid var(--bdrp);
   border-radius: 20px;
   font-size: .73rem;
   font-weight: 500;
   color: var(--t);
   backdrop-filter: blur(10px);
   white-space: nowrap;
   z-index: 3;
}

.fbadge svg {
   width: 13px;
   height: 13px;
   color: var(--pl);
}

.fb-top {
   top: 18px;
   left: -56px;
   animation: badge-bob 4s ease-in-out infinite;
}

.fb-bottom {
   bottom: 28px;
   right: -56px;
   animation: badge-bob 4s ease-in-out infinite 1.5s;
}

.fb-side {
   top: 50%;
   left: -60px;
   transform: translateY(-50%);
   animation: badge-side 5s ease-in-out infinite;
}

@keyframes badge-bob {

   0%,
   100% {
      transform: translateY(0);
   }

   50% {
      transform: translateY(-6px);
   }
}

@keyframes badge-side {

   0%,
   100% {
      transform: translateY(-50%) translateX(0);
   }

   50% {
      transform: translateY(-50%) translateX(-7px);
   }
}

.scroll-cue {
   position: absolute;
   bottom: 28px;
   left: 50%;
   transform: translateX(-50%);
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 6px;
   z-index: 2;
}

.scroll-line {
   width: 1px;
   height: 44px;
   background: linear-gradient(to bottom, transparent, var(--pl));
   animation: scroll-grow 2s ease-in-out infinite;
}

@keyframes scroll-grow {
   0% {
      height: 0;
      opacity: 0;
   }

   50% {
      height: 44px;
      opacity: 1;
   }

   100% {
      height: 44px;
      opacity: 0;
   }
}

.scroll-cue span {
   font-size: .65rem;
   letter-spacing: .15em;
   text-transform: uppercase;
   color: var(--t3);
}



/*ABOUT*/
.about {
   background: var(--bg2);
   position: relative;
   padding-bottom:0.1%;
   padding-top:1%;
}

.about::before,
.about::after {
   content: '';
   position: absolute;
   left: 0;
   right: 0;
   height: 1px;
   background: linear-gradient(90deg, transparent, var(--pdim), transparent);
}

.about::before {
   top: 0;
}

.about::after {
   bottom: 0;
}

.about-layout {
   display: grid;
   grid-template-columns: 1.4fr 1fr;
   gap: 72px;
   align-items: start;
}

/* Photo col */
.about-photo-col {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 38px;
   margin-top: 100px;
   margin-left: 30px;
}

.about-photo-ring {
   position: relative;
   width: 200px;
   height: 200px;
   cursor: pointer;
   flex-shrink: 0;
}

.apr-spin {
   position: absolute;
   inset: -3px;
   border-radius: 50%;
   background: conic-gradient(from 0deg, var(--p), #c084fc, var(--p));
   animation: spin-ring 5s linear infinite;
}

.apr-inner {
   position: relative;
   width: 200px;
   height: 200px;
   border-radius: 50%;
   overflow: hidden;
   background: var(--card);
   border: 3px solid var(--bg2);
   z-index: 1;
}

.apr-inner img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center top;
}

.apr-fallback {
   position: absolute;
   inset: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   font-family: var(--fh);
   font-size: 3rem;
   font-weight: 800;
   color: var(--pl);
   background: var(--card);
}

.apr-overlay {
   position: absolute;
   inset: 0;
   border-radius: 50%;
   background: rgba(124, 58, 237, .82);
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 5px;
   opacity: 0;
   transition: opacity .25s;
   z-index: 2;
   font-size: .76rem;
   font-weight: 600;
   color: #fff;
}

.apr-overlay svg {
   width: 20px;
   height: 20px;
}

.about-photo-ring:hover .apr-overlay,
.about-photo-ring:focus .apr-overlay {
   opacity: 1;
}

.about-photo-ring:focus {
   outline: 2px solid var(--pl);
   outline-offset: 4px;
   border-radius: 50%;
}

.soft-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 8px;
   width: 100%;
}

.soft-pill {
   display: flex;
   align-items: center;
   gap: 7px;
   padding: 9px 12px;
   background: var(--card);
   border: 1px solid var(--bdr);
   border-radius: var(--r);
   font-size: .76rem;
   color: var(--t2);
   transition: all .2s;
}

.soft-pill:hover {
   border-color: var(--bdrp);
   background: var(--cardh);
   color: var(--t);
}

.soft-pill svg {
   width: 14px;
   height: 14px;
   color: var(--pl);
   flex-shrink: 0;
}

/* Text col */
.about-text-col {
   display: flex;
   flex-direction: column;
   gap: 0;
}

.about-text-col .section-title {
   margin-bottom: 20px;
}

.about-p {
   font-size: .97rem;
   color: var(--t2);
   line-height: 1.8;
   margin-bottom: 14px;
}

.about-p strong {
   color: var(--t);
   font-weight: 500;
}

.about-info {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 10px;
   margin: 28px 0;
   padding-left: 40px;
}

.ai-item {
   display: flex;
   align-items: center;
   gap: 9px;
   font-size: .84rem;
   color: var(--t2);
}

.ai-item svg {
   width: 17px;
   height: 17px;
   color: var(--pl);
   flex-shrink: 0;
}

.about-socials {
   display: flex;
   gap: 28px;
   align-items: center;
   margin-top: 20px;
   flex-wrap: wrap;
   padding-left: 130px;
}

.social-btn {
   width: 62px;
   height: 52px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: var(--card);
   border: 1px solid var(--bdr);
   border-radius: var(--r);
   transition: all .2s;
}

.social-btn:hover {
   background: var(--pdim);
   border-color: var(--bdrp);
   transform: translateY(-2px);
}

.social-btn img {
   width: 25px;
   height: 25px;
   object-fit: contain;
   filter: brightness(.8);
   transition: filter .2s;
}

.social-btn:hover img {
   filter: brightness(1.1);
}



/*PROJECTS*/
.projects {
   background: var(--bg);
}

.proj-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 18px;
}

.proj-card {
   background: var(--card);
   border: 1px solid var(--bdr);
   border-radius: var(--rxl);
   overflow: hidden;
   display: flex;
   flex-direction: column;
   transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}

.proj-card:hover {
   transform: translateY(-5px);
   border-color: var(--bdrp);
   box-shadow: 0 18px 50px rgba(124, 58, 237, .18);
}

/* Hidden cards */
.proj-hidden {
   display: none;
   opacity: 0;
   transform: translateY(20px);
   transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.proj-hidden.show {
   display: flex;
   flex-direction: column;
}

.proj-hidden.animate {
   opacity: 1;
   transform: translateY(0);
}

/* Image area */
.proj-img {
   position: relative;
   height: 200px;
   overflow: hidden;
}

.pimg-starz {
   background: linear-gradient(135deg, #1a0d30, #0d0d1a);
}

.pimg-investx {
   background: linear-gradient(135deg, #0d1228, #080818);
}

.pimg-auth {
   background: linear-gradient(135deg, #0d1838, #080820);
}

.pimg-asm {
   background: linear-gradient(135deg, #1a1420, #0a0a14);
}

.proj-mockup {
   margin: 12px;
   border-radius: 8px;
   overflow: hidden;
   background: #0d0d18;
   border: 1px solid rgba(255, 255, 255, .09);
   box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
}

.mock-bar {
   display: flex;
   align-items: center;
   gap: 5px;
   padding: 6px 10px;
   background: rgba(255, 255, 255, .04);
   border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.md {
   width: 8px;
   height: 8px;
   border-radius: 50%;
}

.rd {
   background: #ff5f56;
}

.yd {
   background: #ffbd2e;
}

.gd {
   background: #27c93f;
}

.mock-url {
   flex: 1;
   text-align: center;
   font-size: .6rem;
   color: rgba(255, 255, 255, .3);
}

.proj-mockup img {
   width: 100%;
   height: 130px;
   object-fit: cover;
   display: block;
}

.proj-badge {
   position: absolute;
   top: 12px;
   left: 500px;
   padding: 4px 11px;
   background: var(--p);
   border-radius: 20px;
   font-size: .7rem;
   font-weight: 400;
   color: #fff;
}

/* Info */
.proj-body {
   padding: 20px;
   display: flex;
   flex-direction: column;
   flex: 1;
}

.proj-top {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 16px;
}

.proj-num {
   font-family: var(--fh);
   font-size: .98rem;
   font-weight: 800;
   color: var(--t3);
   letter-spacing: .1em;
}

.proj-tags {
   display: flex;
   gap: 5px;
   flex-wrap: wrap;
}

.proj-tags span {
   padding: 2px 8px;
   background: var(--bg2);
   border: 1px solid var(--bdr);
   border-radius: 5px;
   font-size: .65rem;
   color: var(--t2);
}

.proj-card h3 {
   font-family: var(--fh);
   font-size: 1.05rem;
   font-weight: 700;
   margin-bottom: 7px;
   color: var(--t);
}

.proj-card p {
   font-size: .84rem;
   color: var(--t2);
   line-height: 1.65;
   flex: 1;
   margin-bottom: 16px;
}

.proj-link {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 7px;
   padding: 9px;
   border: 1px solid var(--bdrp);
   border-radius: var(--r);
   font-size: .8rem;
   color: var(--t2);
   transition: all .2s;
   width: 100%;
}

.proj-link:hover {
   background: var(--pdim);
   color: var(--t);
   border-color: var(--pl)
}

.proj-link svg {
   width: 14px;
   height: 14px;
}

/* Ver mais button */
.proj-more-row {
   display: flex;
   justify-content: center;
   margin-top: 36px;
}

.btn-more {
   display: inline-flex;
   align-items: center;
   gap: 10px;
   padding: 12px 26px;
   background: var(--card);
   border: 1px solid var(--bdrp);
   border-radius: 40px;
   color: var(--t2);
   font-size: .875rem;
   font-weight: 500;
   transition: all .25s var(--ease);
}

.btn-more:hover {
   background: var(--pdim);
   color: var(--t);
   border-color: var(--pl);
   transform: translateY(-2px);
   box-shadow: 0 8px 22px rgba(124, 58, 237, .2);
}

.btn-more svg {
   width: 16px;
   height: 16px;
}

.chevron-icon {
   transition: transform .3s;
}

.btn-more.open .chevron-icon {
   transform: rotate(180deg);
}


/*SKILLS*/
.skills {
   background: var(--bg2);
   position: relative
}

.skills::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 1px;
   background: linear-gradient(90deg, transparent, var(--pdim), transparent)
}

.skills-layout {
   display: grid;
   grid-template-columns: 1fr 340px;
   gap: 200px;
   align-items: start
}

.skills-bars {
   display: flex;
   flex-direction: column;
   gap: 40px
}

.skill-group {}

.skill-group-title {
   display: flex;
   align-items: center;
   gap: 10px;
   font-family: var(--fh);
   font-size: .95rem;
   font-weight: 700;
   margin-bottom: 14px;
   color: var(--t)
}

.sg-bar {
   display: inline-block;
   width: 4px;
   height: 16px;
   background: var(--p);
   border-radius: 2px;
   flex-shrink: 0
}

.skill-list {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
   gap: 8px
}

.skill-row {
   display: flex;
   align-items: center;
   gap: 12px;
   padding: 12px 16px;
   background: var(--card);
   border: 1px solid var(--bdr);
   border-radius: var(--rl);
   transition: all .2s
}

.skill-row:hover {
   border-color: var(--bdrp);
   background: var(--cardh);
   transform: translateX(3px)
}

.sk-icon {
   width: 36px;
   height: 36px;
   border-radius: 9px;
   background: var(--pdim);
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--pl);
   flex-shrink: 0
}

.sk-icon svg {
   width: 16px;
   height: 16px
}

.sk-info {
   flex: 1;
   display: flex;
   flex-direction: column;
   gap: 4px
}

.sk-info span {
   font-size: .84rem;
   font-weight: 500;
   color: var(--t)
}

.sk-track {
   height: 3px;
   background: rgba(255, 255, 255, .08);
   border-radius: 2px;
   overflow: hidden
}

.sk-fill {
   height: 100%;
   width: var(--w, 0%);
   background: linear-gradient(90deg, var(--p), var(--pl));
   border-radius: 2px;
   transform-origin: left;
   transform: scaleX(0);
   transition: transform 1s var(--ease)
}

.sk-fill.on {
   transform: scaleX(1)
}

/* Flip card */
.card-col {
   position: sticky;
   top: 90px;
   display: flex;
   justify-content: center
}

.flip-wrap {
   width: 320px;
   transform: rotate(-6deg) translateY(8px);
   animation: wobble 5s ease-in-out infinite;
   transition: transform .55s cubic-bezier(.34, 1.56, .64, 1)
}

@keyframes wobble {

   0%,
   100% {
      transform: rotate(-6deg) translateY(8px) scale(1)
   }

   30% {
      transform: rotate(-7deg) translateY(3px) scale(1.004)
   }

   60% {
      transform: rotate(-5deg) translateY(13px) scale(.997)
   }
}

.flip-wrap:hover {
   transform: rotate(0deg) translateY(0) scale(1.02) !important;
   animation-play-state: paused
}

.flip-inner {
   width: 100%;
   height: 440px;
   position: relative;
   transform-style: preserve-3d;
   transition: transform .75s cubic-bezier(.4, .2, .2, 1) .15s;
   border-radius: 14px
}

.flip-wrap:hover .flip-inner {
   transform: rotateY(180deg)
}

.flip-front,
.flip-back {
   position: absolute;
   inset: 0;
   border-radius: 14px;
   backface-visibility: hidden;
   -webkit-backface-visibility: hidden;
   overflow: hidden
}

.flip-front {
   background: #1a1b26;
   border: 1px solid rgba(255, 255, 255, .09);
   box-shadow: 0 20px 52px rgba(0, 0, 0, .5), 0 6px 20px rgba(124, 58, 237, .12);
   display: flex;
   flex-direction: column
}

.ce-glow {
   position: absolute;
   top: -40px;
   right: -40px;
   width: 150px;
   height: 150px;
   border-radius: 50%;
   background: radial-gradient(circle, rgba(124, 58, 237, .3) 0%, transparent 70%);
   pointer-events: none;
   filter: blur(18px)
}

.ce-bar {
   display: flex;
   align-items: center;
   gap: 8px;
   padding: 10px 14px;
   background: #16171f;
   border-bottom: 1px solid rgba(255, 255, 255, .07)
}

.ce-dot {
   width: 11px;
   height: 11px;
   border-radius: 50%;
   flex-shrink: 0
}

.ced-r {
   background: #ff5f57
}

.ced-y {
   background: #febc2e
}

.ced-g {
   background: #28c840
}

.ce-file {
   margin-left: auto;
   font-size: .68rem;
   color: rgba(255, 255, 255, .32);
   font-family: 'Courier New', monospace
}

.ce-code {
   padding: 16px 18px;
   font-family: 'Courier New', 'Fira Code', monospace;
   font-size: .82rem;
   line-height: 1.8;
   white-space: pre;
   overflow-x: auto;
   user-select: text;
   flex: 1
}

.ce-code::after {
   content: '▋';
   color: var(--pl);
   animation: blink 1.1s step-end infinite
}

@keyframes blink {

   0%,
   100% {
      opacity: 1
   }

   50% {
      opacity: 0
   }
}

/* Code colors */
.ck {
   color: #bb9af7
}

.cv {
   color: #7dcfff
}

.co {
   color: #89ddff
}

.cp {
   color: #73daca
}

.cs {
   color: #9ece6a
}

.cbool {
   color: #ff9e64
}

.cb {
   color: #c0caf5
}

.cc {
   color: #c0caf5
}

.cfn {
   color: #7dcfff
}

.ccomment {
   color: #565f89;
   font-style: italic
}

.flip-hint {
   position: absolute;
   bottom: 10px;
   right: 12px;
   display: flex;
   align-items: center;
   gap: 4px;
   font-size: .62rem;
   color: rgba(255, 255, 255, .22);
   font-family: 'Courier New', monospace;
   transition: opacity .3s
}

.flip-hint svg {
   width: 10px;
   height: 10px
}

.flip-wrap:hover .flip-hint {
   opacity: 0
}

.flip-back {
   transform: rotateY(180deg);
   background: #0d0d18;
   border: 1px solid var(--bdrp)
}

.flip-photo {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center top
}

.flip-back-fallback {
   position: absolute;
   inset: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   font-family: var(--fh);
   font-size: 4rem;
   font-weight: 800;
   color: var(--pl);
   background: var(--card)
}

.flip-back-overlay {
   position: absolute;
   inset: 0;
   background: linear-gradient(to top, rgba(8, 8, 15, .9) 0%, rgba(8, 8, 15, .4) 40%, transparent 65%);
   display: flex;
   align-items: flex-end;
   padding: 22px 20px
}

.flip-back-overlay>div {
   display: flex;
   flex-direction: column;
   gap: 3px
}

.fbo-name {
   font-family: var(--fh);
   font-size: 1.15rem;
   font-weight: 800;
   color: #fff;
   letter-spacing: -.03em
}

.fbo-role {
   font-size: .78rem;
   color: var(--pl);
   font-weight: 500
}

.fbo-loc {
   font-size: .6rem;
   color: rgba(255, 255, 255, .52)
}



/*CONTACT*/
.contact {
   background: var(--bg);
   position: relative;
   overflow: hidden
}

.contact::before {
   content: '';
   position: absolute;
   top: -200px;
   right: -200px;
   width: 550px;
   height: 550px;
   border-radius: 50%;
   background: radial-gradient(circle, rgba(124, 58, 237, .12) 0%, transparent 70%);
   pointer-events: none
}

.contact::after {
   content: '';
   position: absolute;
   bottom: -150px;
   left: -150px;
   width: 380px;
   height: 380px;
   border-radius: 50%;
   background: radial-gradient(circle, rgba(124, 58, 237, .07) 0%, transparent 70%);
   pointer-events: none
}

.contact-banner {
   text-align: center;
   position: relative;
   z-index: 1;
   margin-bottom: 64px
}

.contact-eyebrow {
   display: inline-flex;
   align-items: center;
   gap: 7px;
   padding: 6px 16px;
   border: 1px solid var(--bdrp);
   border-radius: 20px;
   font-size: .7rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: .12em;
   color: var(--pl);
   background: var(--pdim);
   margin-bottom: 60px
}

.contact-eyebrow svg {
   width: 13px;
   height: 13px
}

.contact-title {
   font-family: var(--fh);
   font-size: clamp(2.2rem, 5vw, 4rem);
   font-weight: 800;
   line-height: 1.0;
   letter-spacing: -.04em;
   margin-bottom: 18px
}

.contact-title em {
   font-style: normal;
   background: linear-gradient(135deg, var(--pl), #c084fc, #e879f9);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text
}

.contact-sub {
   font-size: 1rem;
   color: var(--t2);
   max-width: 500px;
   margin: 0 auto 32px;
   line-height: 1.7
}

.contact-actions {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 12px;
   flex-wrap: wrap
}

.btn-copy-email {
   display: inline-flex;
   align-items: center;
   gap: 7px;
   padding: 12px 20px;
   border: 1px solid var(--bdrp);
   border-radius: 40px;
   background: transparent;
   color: var(--t2);
   font-size: .875rem;
   transition: all .2s
}

.btn-copy-email:hover {
   background: var(--pdim);
   color: var(--t);
   border-color: var(--pl)
}

.btn-copy-email svg {
   width: 15px;
   height: 15px
}

.copy-ok {
   display: inline-flex;
   align-items: center;
   gap: 5px;
   font-size: .8rem;
   color: #22c55e;
   opacity: 0;
   transition: opacity .3s;
   pointer-events: none
}

.copy-ok.visible {
   opacity: 1
}

.copy-ok svg {
   width: 13px;
   height: 13px
}

/* Channel cards */
.contact-channels {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 14px;
   position: relative;
   z-index: 1;
   margin-bottom: 36px
}

.ch-card {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 10px;
   padding: 28px 16px;
   background: var(--card);
   border: 1px solid var(--bdr);
   border-radius: var(--rxl);
   text-align: center;
   transition: all .25s var(--ease);
   position: relative;
   overflow: hidden
}

.ch-card::before {
   content: '';
   position: absolute;
   inset: 0;
   background: linear-gradient(135deg, rgba(124, 58, 237, .08) 0%, transparent 60%);
   opacity: 0;
   transition: opacity .25s
}

.ch-card:hover {
   border-color: var(--bdrp);
   transform: translateY(-5px);
   box-shadow: 0 18px 44px rgba(124, 58, 237, .18)
}

.ch-card:hover::before {
   opacity: 1
}

.ch-icon {
   width: 52px;
   height: 52px;
   border-radius: 13px;
   background: var(--pdim);
   border: 1px solid var(--bdrp);
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--pl);
   position: relative;
   z-index: 1;
   transition: transform .25s, box-shadow .25s
}

.ch-icon svg {
   width: 22px;
   height: 22px
}

.ch-card:hover .ch-icon {
   transform: scale(1.1);
   box-shadow: 0 6px 20px rgba(124, 58, 237, .35)
}

.ch-label {
   font-size: .65rem;
   text-transform: uppercase;
   letter-spacing: .1em;
   color: var(--t3);
   font-weight: 600;
   position: relative;
   z-index: 1
}

.ch-val {
   font-size: .84rem;
   font-weight: 500;
   color: var(--t);
   position: relative;
   z-index: 1;
   word-break: break-all
}

.ch-cta {
   display: inline-flex;
   align-items: center;
   gap: 4px;
   font-size: .72rem;
   color: var(--pl);
   font-weight: 500;
   position: relative;
   z-index: 1;
   opacity: 0;
   transform: translateY(4px);
   transition: opacity .2s, transform .2s
}

.ch-cta svg {
   width: 11px;
   height: 11px
}

.ch-card:hover .ch-cta {
   opacity: 1;
   transform: translateY(0)
}

/* Social links row */
.contact-socials {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
   position: relative;
   z-index: 1;
   flex-wrap: wrap
}

.cs-link {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 10px 18px;
   background: var(--card);
   border: 1px solid var(--bdr);
   border-radius: var(--rl);
   font-size: .82rem;
   font-weight: 500;
   color: var(--t2);
   transition: all .2s
}

.cs-link:hover {
   background: var(--pdim);
   border-color: var(--bdrp);
   color: var(--t);
   transform: translateY(-2px)
}

.cs-link svg {
   width: 15px;
   height: 15px
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
   background: #04040a;
   border-top: 1px solid var(--bdr);
   position: relative
}

.footer::before {
   content: '';
   position: absolute;
   top: 0;
   left: 50%;
   transform: translateX(-50%);
   width: 600px;
   height: 1px;
   background: linear-gradient(90deg, transparent, rgba(124, 58, 237, .5), transparent)
}

.footer-wrap {
   max-width: 1240px;
   margin: 0 auto;
   padding: 52px 24px 28px
}

.footer-grid {
   display: grid;
   grid-template-columns: 1.8fr 1fr 1fr;
   gap: 52px;
   margin-bottom: 40px
}

.fg-brand {
   margin-top: 50px;
}

.footer-logo {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   font-family: var(--fh);
   font-size: 1.35rem;
   font-weight: 800;
   margin-bottom: 12px
}

.fn-name {
   font-size: .9rem;
   font-weight: 400;
   color: var(--t2);
   margin-left: 2px
}

.fg-brand p {
   font-size: .84rem;
   color: var(--t3);
   line-height: 1.7;
   max-width: 270px;
   margin-bottom: 18px
}

.footer-socials {
   display: flex;
   gap: 7px;
   flex-wrap: wrap
}

.footer-socials a {
   width: 34px;
   height: 34px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: var(--card);
   border: 1px solid var(--bdr);
   border-radius: 8px;
   color: var(--t3);
   transition: all .2s
}

.footer-socials a:hover {
   background: var(--pdim);
   border-color: var(--bdrp);
   color: var(--pl);
   transform: translateY(-2px)
}

.footer-socials a svg {
   width: 14px;
   height: 14px
}

.fg-nav h4,
.fg-contact h4 {
   font-family: var(--fh);
   font-size: .84rem;
   font-weight: 700;
   color: var(--t);
   margin-bottom: 16px
}

.fg-nav ul {
   display: flex;
   flex-direction: column;
   gap: 9px
}

.fg-nav a {
   font-size: .84rem;
   color: var(--t3);
   transition: color .2s, padding-left .2s;
   display: inline-block
}

.fg-nav a:hover {
   color: var(--pl);
   padding-left: 5px
}

.fg-contact {
   display: flex;
   flex-direction: column;
   gap: 0
}

.fg-contact a,
.fg-contact span {
   display: flex;
   align-items: center;
   gap: 7px;
   font-size: .82rem;
   color: var(--t3);
   margin-bottom: 9px;
   transition: color .2s
}

.fg-contact a:hover {
   color: var(--t2)
}

.fg-contact svg {
   width: 13px;
   height: 13px;
   color: var(--pl);
   flex-shrink: 0
}

.footer-bar {
   display: flex;
   align-items: center;
   justify-content: space-between;
   flex-wrap: wrap;
   gap: 10px;
   border-top: 1px solid var(--bdr);
   padding-top: 20px;
   font-size: .77rem;
   color: var(--t3);
}

.footer-bar span{
   margin-left: 37%;
   margin-top: 5px;
}

/* ══════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════ */
.modal-overlay {
   position: fixed;
   inset: 0;
   z-index: 1000;
   background: rgba(4, 4, 10, .82);
   backdrop-filter: blur(14px);
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 16px;
   opacity: 0;
   pointer-events: none;
   transition: opacity .3s
}

.modal-overlay.open {
   opacity: 1;
   pointer-events: all
}

.modal-box {
   position: relative;
   background: #0e0e1c;
   border: 1px solid var(--bdrp);
   border-radius: var(--rxl);
   padding: 32px 28px 24px;
   width: 100%;
   max-width: 480px;
   max-height: 90dvh;
   overflow-y: auto;
   transform: translateY(22px) scale(.97);
   opacity: 0;
   transition: transform .4s var(--ease), opacity .3s;
   box-shadow: 0 28px 70px rgba(0, 0, 0, .7)
}

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

.modal-box::-webkit-scrollbar {
   width: 3px
}

.modal-box::-webkit-scrollbar-track {
   background: transparent
}

.modal-box::-webkit-scrollbar-thumb {
   background: var(--bdrp);
   border-radius: 3px
}

.modal-close {
   position: absolute;
   top: 14px;
   right: 14px;
   width: 28px;
   height: 28px;
   border-radius: 50%;
   background: rgba(255, 255, 255, .06);
   border: 1px solid var(--bdr);
   color: var(--t2);
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all .2s
}

.modal-close:hover {
   background: rgba(124, 58, 237, .2);
   color: #fff
}

.modal-close svg {
   width: 13px;
   height: 13px
}

.modal-head {
   display: flex;
   gap: 14px;
   align-items: flex-start;
   margin-bottom: 35px
}

.modal-avatar {
   position: relative;
   flex-shrink: 0;
   width: 64px;
   height: 64px
}

.modal-avatar img {
   width: 64px;
   height: 64px;
   border-radius: 50%;
   object-fit: cover;
   object-position: center top;
   border: 3px solid var(--bdrp)
}

.modal-info h2 {
   font-family: var(--fh);
   font-size: 1.15rem;
   font-weight: 700;
   letter-spacing: -.3px;
   margin-bottom: -5px;
}

.modal-info p {
   font-size: .76rem;
   color: var(--t2);
   margin-bottom: 10px
}

.modal-tags {
   display: flex;
   flex-wrap: wrap;
   gap: 5px
}

.mtag {
   display: inline-flex;
   align-items: center;
   gap: 4px;
   padding: 3px 8px;
   border-radius: 20px;
   background: rgba(255, 255, 255, .05);
   border: 1px solid var(--bdr);
   font-size: .65rem;
   color: var(--t2)
}

.mtag-green {
   background: rgba(34, 197, 94, .1);
   border-color: rgba(34, 197, 94, .3);
   color: #4ade80
}

.mtag-dot {
   width: 5px;
   height: 5px;
   border-radius: 50%;
   background: #22c55e;
   animation: pulse-green 2s ease-in-out infinite
}

.modal-section {
   margin-bottom: 27px;
}

.modal-label {
   display: block;
   font-size: .62rem;
   font-weight: 700;
   letter-spacing: .12em;
   text-transform: uppercase;
   color: var(--pl);
   margin-bottom: 8px
}

.modal-chips {
   display: flex;
   flex-wrap: wrap;
   gap: 5px
}

.mc {
   padding: 3px 9px;
   border-radius: 5px;
   font-size: .68rem;
   font-weight: 700;
   border: 1px solid transparent
}

.mc-y {
   background: rgba(234, 179, 8, .12);
   border-color: rgba(234, 179, 8, .3);
   color: #facc15
}

.mc-b {
   background: rgba(59, 130, 246, .12);
   border-color: rgba(59, 130, 246, .3);
   color: #60a5fa
}

.mc-o {
   background: rgba(234, 88, 12, .12);
   border-color: rgba(234, 88, 12, .3);
   color: #fb923c
}

.mc-t {
   background: rgba(20, 184, 166, .12);
   border-color: rgba(20, 184, 166, .3);
   color: #2dd4bf
}

.mc-c {
   background: rgba(6, 182, 212, .12);
   border-color: rgba(6, 182, 212, .3);
   color: #22d3ee
}

.mc-g {
   background: rgba(34, 197, 94, .12);
   border-color: rgba(34, 197, 94, .25);
   color: #4ade80
}

.mc-gr {
   background: rgba(148, 163, 184, .1);
   border-color: rgba(148, 163, 184, .25);
   color: #94a3b8
}

.mc-r {
   background: rgba(239, 68, 68, .1);
   border-color: rgba(239, 68, 68, .25);
   color: #f87171
}

.mc-f {
   background: rgba(251, 146, 60, .1);
   border-color: rgba(251, 146, 60, .25);
   color: #fb923c
}

.mc-w {
   background: rgba(255, 255, 255, .07);
   border-color: rgba(255, 255, 255, .15);
   color: #e2e8f0
}

.modal-bio {
   font-size: .84rem;
   color: var(--t2);
   line-height: 1.7
}

.modal-stats {
   display: flex;
   align-items: center;
   background: rgba(124, 58, 237, .07);
   border: 1px solid rgba(124, 58, 237, .2);
   border-radius: var(--rl);
   padding: 14px 0;
   margin-bottom: 16px;
}

.ms {
   flex: 1;
   text-align: center;
   display: flex;
   flex-direction: column;
   gap: 1px
}

.ms strong {
   font-family: var(--fh);
   font-size: 1.35rem;
   font-weight: 800;
   color: var(--pl);
   letter-spacing: -.05em
}

.ms span {
   font-size: .6rem;
   text-transform: uppercase;
   letter-spacing: .1em;
   color: var(--t3);
   font-weight: 600
}

.ms-div {
   width: 1px;
   height: 36px;
   background: rgba(124, 58, 237, .22);
   flex-shrink: 0
}

.modal-links {
   display: flex;
   flex-direction: column;
   gap: 7px;
   margin-bottom: 28px
}

.ml {
   display: flex;
   align-items: center;
   gap: 9px;
   padding: 9px 12px;
   border-radius: 9px;
   background: rgba(255, 255, 255, .03);
   border: 1px solid var(--bdr);
   color: var(--t2);
   font-size: .79rem;
   transition: all .2s
}

.ml:hover {
   background: var(--pdim);
   border-color: var(--bdrp);
   color: var(--t);
   transform: translateX(3px)
}

.ml img {
   width: 18px;
   height: 18px;
   object-fit: contain;
   filter: brightness(.85);
   flex-shrink: 0
}

.ml:hover img {
   filter: brightness(1.1)
}

.modal-actions {
   display: flex;
   gap: 9px
}

.modal-actions .btn-primary,
.modal-actions .btn-outline {
   flex: 1;
   justify-content: center;
   font-size: .84rem;
   padding: 11px 14px
}

/* ══════════════════════════════════════════════
   RESPONSIVE — 6 breakpoints
══════════════════════════════════════════════ */

/* 1100px — skills card col collapses */
@media(max-width:1100px) {
   .skills-layout {
      grid-template-columns: 1fr
   }

   .card-col {
      position: static;
      margin-top: 20px
   }

   .flip-wrap {
      max-width: 360px;
      transform: rotate(-4deg) translateY(6px)
   }

   @keyframes wobble {

      0%,
      100% {
         transform: rotate(-4deg) translateY(6px)
      }

      50% {
         transform: rotate(-3deg) translateY(10px)
      }
   }

   .flip-wrap:hover {
      transform: rotate(0deg) translateY(0) scale(1.01) !important
   }

   .flip-inner {
      height: 400px
   }

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

/* 900px — two-col → one-col */
@media(max-width:900px) {
   .hero-wrap {
      grid-template-columns: 1fr;
      gap: 40px;
      padding: 70px 20px 60px;
      text-align: center
   }

   .hero-visual {
      display: none
   }

   .hero-badge,
   .hero-btns,
   .hero-stats {
      justify-content: center
   }

   .hero-desc {
      margin-left: auto;
      margin-right: auto
   }

   .about-layout {
      grid-template-columns: 1fr;
      gap: 44px
   }

   .about-photo-col {
      align-items: center
   }

   .about-text-col {
      text-align: center
   }

   .about-info {
      justify-items: center
   }

   .about-socials {
      justify-content: center
   }

   .footer-grid {
      grid-template-columns: 1fr 1fr;
      gap: 36px
   }

   .fg-brand {
      grid-column: span 2
   }

   .section-header {
      flex-direction: column;
      align-items: flex-start
   }
}

/* 768px — mobile nav */
@media(max-width:768px) {

   /* Nav */
   .nav-links {
      display: none;
      position: fixed;
      top: 68px;
      left: 0;
      right: 0;
      flex-direction: column;
      gap: 2px;
      background: rgba(8, 8, 15, .98);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--bdr);
      padding: 10px 16px 18px;
      z-index: 899;
   }

   .nav-links.open {
      display: flex
   }

   .nav-link {
      padding: 11px 16px;
      border-radius: var(--r);
      display: block;
      font-size: .95rem
   }

   .burger {
      display: flex
   }

   /* Projects */
   .proj-grid {
      grid-template-columns: 1fr
   }

   /* Contact */
   .contact-channels {
      grid-template-columns: 1fr
   }

   .contact-title {
      font-size: clamp(1.8rem, 7vw, 2.8rem)
   }

   /* Footer */
   .footer-grid {
      grid-template-columns: 1fr;
      gap: 28px
   }

   .fg-brand {
      grid-column: auto
   }

   /* Skills */
   .skill-row {
      flex-wrap: nowrap
   }
}

/* 580px — small phones */
@media(max-width:580px) {
   .section-wrap {
      padding: 72px 16px
   }

   .hero-title {
      font-size: 2.5rem
   }

   .hero-stats {
      flex-direction: column;
      align-items: center;
      gap: 16px
   }

   .hstat-sep {
      width: 48px;
      height: 1px
   }

   .hstat {
      padding: 0;
      align-items: center
   }

   .about-info {
      grid-template-columns: 1fr
   }

   .soft-grid {
      grid-template-columns: 1fr;
      max-width: 260px
   }

   .contact-actions {
      flex-direction: column;
      align-items: center
   }

   .contact-banner {
      margin-bottom: 40px
   }

   .modal-head {
      flex-direction: column;
      align-items: center;
      text-align: center
   }

   .modal-tags {
      justify-content: center
   }

   .modal-actions {
      flex-direction: column
   }

   .flip-wrap {
      max-width: 100%
   }

   .flip-inner {
      height: 340px
   }

   .ce-code {
      font-size: .75rem
   }

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

/* 400px — tiny screens */
@media(max-width:400px) {
   .hero-title {
      font-size: 2rem
   }

   .proj-tags span {
      font-size: .6rem
   }

   .btn-primary,
   .btn-outline {
      padding: 10px 16px;
      font-size: .82rem
   }

   .ch-card {
      padding: 20px 12px
   }
}