/* Ashly Abaggue — portfolio. Colors and type follow the Canva portfolio:
   pink page, rose selection frames with corner handles, script capitals,
   serif words with a pink-to-blue gradient, maroon "Portfolio" pill. */
:root {
  --pink: #f9b6c5;
  --pink-light: #fcd5de;
  --paper: #fff6f8;
  --rose: #e6497f;
  --rose-dark: #c7336a;
  --maroon: #4a2b2d;
  --ink: #2b1a1c;
  --muted: #6e4f55;
  --blue: #1f6f8e;
  --shadow: 0 18px 40px rgba(122, 33, 66, 0.18);
  --script: 'Pinyon Script', cursive;
  --serif: 'Playfair Display', Georgia, serif;
  --body: 'Lora', Georgia, serif;
  --pixel: 'Pixelify Sans', monospace;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--pink); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--maroon); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 3px; }

/* ── Selection frame (the signature: corner handles like a selected element) */
.frame { position: relative; border: 2px solid var(--rose); }
.frame > .h { position: absolute; width: 12px; height: 12px; background: #fff; border: 2px solid var(--rose); pointer-events: none; z-index: 2; }
.frame > .h.tl { left: -7px; top: -7px; } .frame > .h.tr { right: -7px; top: -7px; }
.frame > .h.bl { left: -7px; bottom: -7px; } .frame > .h.br { right: -7px; bottom: -7px; }
.frame[data-label]::before { content: attr(data-label); position: absolute; left: -2px; top: -30px; background: var(--rose); color: #fff; font: 600 12px/1 var(--body); padding: 6px 9px; border-radius: 6px 6px 6px 0; white-space: nowrap; }

/* ── Type */
.cap { font-family: var(--script); font-weight: 400; font-size: 1.55em; line-height: 0.6; margin-right: -0.04em; color: var(--ink); }
.grad { background: linear-gradient(90deg, var(--rose) 0%, #9a4d8c 45%, var(--blue) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; margin: 0 0 22px; }
.title.center, .center { text-align: center; }
.amp { font-family: var(--serif); font-style: italic; font-size: .8em; color: var(--rose); }
.sub { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 14px; }
.intro { max-width: 640px; margin: 0 auto 26px; color: var(--muted); }
.lead { font-size: 1.12rem; }

/* ── Nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 4vw, 48px); background: rgba(249, 182, 197, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(230, 73, 127, 0.25); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid var(--rose); font: 400 30px/1 var(--script); background: var(--paper); }
.brand-name { font: 600 1.05rem var(--serif); }
.nav-links { display: flex; gap: 6px; }
.nav-links a { text-decoration: none; padding: 7px 13px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { background: var(--paper); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s; }

/* ── Buttons */
.btn { display: inline-block; text-decoration: none; font: 700 1rem var(--body); padding: 12px 24px; border-radius: 12px; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-dark { background: var(--maroon); color: #fff; }
.btn-light { background: var(--paper); color: var(--maroon); border: 2px solid var(--maroon); }

/* ── Hero */
.hero { position: relative; min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 80px 20px 120px; overflow: hidden; }
.guide { position: absolute; border: 0 dashed var(--rose); opacity: .45; }
.guide-h { left: 0; right: 0; top: 44%; border-top-width: 1px; }
.guide-v { top: 0; bottom: 0; left: 50%; border-left-width: 1px; }
.blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .7; animation: float 9s ease-in-out infinite; }
.b1 { width: 320px; height: 320px; background: #ff7fae; left: -80px; bottom: 6%; }
.b2 { width: 260px; height: 260px; background: #ff9fc0; right: -60px; top: 8%; animation-delay: -3s; }
.b3 { width: 180px; height: 180px; background: #8fb6ff; right: 20%; bottom: 14%; animation-delay: -6s; opacity: .5; }
.star { position: absolute; color: #fff; text-shadow: 0 0 14px #fff; animation: twinkle 3.5s ease-in-out infinite; }
.s1 { left: 16%; top: 26%; font-size: 30px; } .s2 { right: 18%; top: 60%; font-size: 22px; animation-delay: -1.2s; } .s3 { left: 30%; bottom: 20%; font-size: 26px; animation-delay: -2.4s; }
@keyframes float { 50% { transform: translateY(-24px) scale(1.05); } }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.8); } }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-frame { display: inline-block; padding: clamp(24px, 4vw, 44px) clamp(28px, 6vw, 70px) clamp(40px, 6vw, 64px); background: rgba(255, 246, 248, 0.35); }
.hero-title { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 10vw, 7.2rem); line-height: 1.05; margin: 0; text-align: left; }
.hero-title .cap { font-size: 1.7em; }
.hero-title .cap-2 { margin-left: .6em; }
.pill { position: absolute; left: 50%; bottom: -28px; transform: translateX(-50%); background: var(--maroon); color: #fff; font: 500 clamp(1.6rem, 4vw, 2.6rem)/1 var(--serif); padding: 10px 30px 14px; border-radius: 14px; box-shadow: 4px 4px 0 var(--rose-dark); white-space: nowrap; }
.hero-sub { margin: 56px 0 22px; font-size: 1.15rem; color: var(--muted); font-style: italic; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.walker { position: absolute; bottom: 18px; image-rendering: pixelated; animation: walk 22s linear infinite; z-index: 1; }
@keyframes walk { 0% { left: -90px; } 100% { left: calc(100% + 20px); } }

/* ── Sections */
.section { position: relative; padding: clamp(70px, 9vw, 120px) clamp(16px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.title-frame { display: table; margin: 0 auto 30px; padding: 14px 34px 6px; background: rgba(255, 246, 248, .3); }
.title-frame .title { margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.avatar-frame { background: radial-gradient(circle at 50% 45%, #ff8db5 0%, #ffc1d3 45%, var(--pink-light) 75%); aspect-ratio: 4 / 5; display: grid; place-items: center; }
.avatar-frame img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.15); transform-origin: 50% 55%; }
.sparkle { position: absolute; color: #fff; text-shadow: 0 0 12px #fff; font-size: 26px; animation: twinkle 3s ease-in-out infinite; z-index: 1; }
.k1 { left: 14%; top: 18%; } .k2 { right: 16%; top: 34%; animation-delay: -1s; } .k3 { left: 22%; bottom: 22%; animation-delay: -2s; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.facts li { background: var(--paper); border-left: 4px solid var(--rose); padding: 8px 14px; border-radius: 0 10px 10px 0; }
.facts span { display: inline-block; min-width: 76px; font-weight: 600; color: var(--rose-dark); }

/* What I do & tools */
.services-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.do-list { margin: 0; padding: 26px 30px 26px 46px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); columns: 2; column-gap: 34px; }
.do-list li { break-inside: avoid; margin-bottom: 8px; }
.do-list li::marker { color: var(--rose); }
.tools { display: grid; gap: 14px; }
.tool { display: flex; align-items: center; gap: 14px; background: var(--paper); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); }
.tool small { display: block; color: var(--muted); line-height: 1.3; }
.tool-icon { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff; font: 700 1.05rem var(--body); }
.t-canva { background: linear-gradient(135deg, #00c4cc, #7d2ae8); font-style: italic; }
.t-figma { background: #1e1e1e; }
.t-ibis { background: linear-gradient(135deg, #2b8fd9, #1fb38f); }
.t-libre { background: #3b2a4a; font-family: var(--pixel); }

/* Featured carousel */
.carousel { position: relative; }
.car-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 34px 6px 30px; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-item { flex: 0 0 clamp(230px, 30vw, 330px); scroll-snap-align: center; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; border: 0; cursor: zoom-in; text-align: left; font: inherit; color: inherit; transition: transform .25s; }
.car-item:hover { transform: translateY(-6px) rotate(-1deg); }
.car-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--pink-light); }
.car-item span { display: block; padding: 10px 6px 4px; font-weight: 600; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--maroon); background: var(--paper); color: var(--maroon); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.car-btn.prev { left: -10px; } .car-btn.next { right: -10px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-bottom: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { border: 2px solid var(--maroon); background: transparent; color: var(--maroon); border-radius: 999px; padding: 6px 14px; font: 600 .92rem var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--maroon); color: #fff; }
.chip small { opacity: .7; margin-left: 4px; }
.toggle { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--rose); }

/* Work cards: hovering shows the selection frame, like picking an element */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; }
.card { position: relative; background: var(--paper); border: 2px solid transparent; border-radius: 4px; padding: 10px; cursor: zoom-in; text-align: left; font: inherit; color: inherit; transition: border-color .15s, transform .2s; }
.card .h { opacity: 0; transition: opacity .15s; }
.card:hover, .card:focus-visible { border-color: var(--rose); transform: translateY(-3px); outline: none; }
.card:hover .h, .card:focus-visible .h { opacity: 1; }
.card .size { position: absolute; left: 50%; top: -14px; transform: translate(-50%, 6px); background: var(--rose); color: #fff; font: 600 11px/1 var(--body); padding: 5px 8px; border-radius: 6px; opacity: 0; transition: opacity .15s, transform .15s; white-space: nowrap; pointer-events: none; }
.card:hover .size, .card:focus-visible .size { opacity: 1; transform: translate(-50%, 0); }
.card .thumb { aspect-ratio: 1; display: grid; place-items: center; background: var(--pink-light); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.card.pixel .thumb img, .pixelated { image-rendering: pixelated; }
.card.pixel .thumb img { width: 82%; height: 82%; object-fit: contain; }
.card .info { padding: 10px 2px 2px; }
.card .info strong { display: block; line-height: 1.3; }
.card .info small { color: var(--muted); }
.badge { display: inline-block; margin-left: 6px; font: 700 10px/1 var(--body); letter-spacing: .04em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #00c4cc, #7d2ae8); padding: 4px 7px; border-radius: 999px; vertical-align: 2px; }
.empty { text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* Timeline */
.timeline { margin: 70px auto 0; max-width: 820px; background: var(--paper); border-radius: var(--radius); padding: 30px clamp(20px, 4vw, 40px); box-shadow: var(--shadow); }
.timeline ol { margin: 0; padding-left: 22px; display: grid; gap: 14px; }
.timeline li::marker { color: var(--rose); font-weight: 700; }
.timeline span { color: var(--muted); }

/* Art & pixels */
.pixel-word { font-family: var(--pixel); color: var(--maroon); letter-spacing: .02em; }
.team { margin: 0 auto 34px; width: min(560px, 100%); height: auto; image-rendering: pixelated; }

/* Contact */
.contact { text-align: center; padding-bottom: 160px; }
.thanks-frame { display: inline-block; padding: 30px clamp(26px, 6vw, 90px) 34px; background: rgba(255, 246, 248, .35); margin-top: 20px; }
.thanks { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 9vw, 6rem); line-height: 1.05; margin: 0 0 10px; }
.thanks .cap { font-size: 1.6em; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.walker-end { position: absolute; left: 50%; bottom: 20px; animation: none; transform: translateX(-50%); }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px clamp(16px, 5vw, 64px); background: var(--maroon); color: #f9dfe6; font-size: .92rem; }
.footer a { color: #fff; }

/* Lightbox */
.lightbox { width: min(1100px, 96vw); max-height: 94vh; border: 0; border-radius: 20px; padding: 0; background: var(--paper); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; }
.lightbox::backdrop { background: rgba(43, 26, 28, .78); }
.lightbox figure { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; max-height: 94vh; }
.lb-img-wrap { background: var(--pink-light); display: grid; place-items: center; overflow: auto; max-height: 76vh; }
.lb-img-wrap img { max-height: 76vh; width: auto; object-fit: contain; }
.lb-img-wrap img.tall { max-height: none; width: min(100%, 720px); }
.lb-img-wrap img.pixelated { min-width: 40%; min-height: 160px; object-fit: contain; }
figcaption { padding: 16px 70px 20px 24px; }
figcaption h3 { margin: 0 0 4px; font: 600 1.3rem var(--serif); }
figcaption p { margin: 0; color: var(--muted); font-size: .95rem; }
.lb-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--maroon); color: #fff; font-size: 18px; cursor: pointer; }
.lb-nav { position: absolute; top: 40%; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 246, 248, .92); color: var(--maroon); font-size: 28px; cursor: pointer; box-shadow: var(--shadow); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Phones and tablets */
@media (max-width: 860px) {
  .about-grid, .services-grid { grid-template-columns: 1fr; }
  .avatar-frame { max-width: 360px; margin: 0 auto; width: 100%; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 10px 16px 16px; background: var(--pink); border-bottom: 1px solid rgba(230, 73, 127, .25); display: none; }
  .nav-links.open { display: flex; }
  .car-btn { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .do-list { columns: 1; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card { padding: 6px; }
  .card .info strong { font-size: .9rem; }
  .hero-title .cap-2 { margin-left: .3em; }
  .frame[data-label]::before { font-size: 11px; }
  figcaption { padding-right: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
