/* ============================================================
   theme.css — contrast + tonal overrides for Portify
   The template paints everything with three RGB triplets:
     --primary (page color), --black (text/lines), --white.
   We keep that system and add --accent, then give cards real
   surfaces so sections stop blending into each other.
   Switch direction with <html data-site-theme="paper"> or "ink".
   ============================================================ */

/* ---------- shared ---------- */
html[data-site-theme] { --accent: 255, 219, 103; --accent-ink: 20, 20, 22; }
html[data-site-theme] body { -webkit-font-smoothing: antialiased; }

/* hardcoded #000 strokes in the template */
html[data-site-theme] .about .experience-card .numbers .number-outline-one,
html[data-site-theme] .about .experience-card .numbers .number-outline-two,
html[data-site-theme] .fun_facts .fun-fact .numbers .number-outline-one,
html[data-site-theme] .fun_facts .fun-fact .numbers .number-outline-two { -webkit-text-stroke: 1px rgb(var(--black)); }
html[data-site-theme] .modal-content .modal-body ul.list-plus li::before { color: rgb(var(--accent)); }
html[data-site-theme] .services .service-card .service-list li i { color: rgb(var(--black)); opacity: .7; }

/* accent touches that apply in both directions */
html[data-site-theme] .section-title::before { width: 4px; background-color: rgb(var(--accent)); }
html[data-site-theme] .services .service-card .number-circle { background-color: rgb(var(--accent)); border-color: rgba(var(--black), .25); }
html[data-site-theme] .services .service-card .number-circle h2 { color: rgb(var(--accent-ink)); }
html[data-site-theme] .services .service-card h4 { border-bottom: 3px solid rgb(var(--accent)); }
html[data-site-theme] .fun_facts .fun-fact .numbers { border-bottom: 3px solid rgb(var(--accent)); }
html[data-site-theme] .projects .project-card .card-arrow .arrow-inner { background: rgb(var(--accent)); color: rgb(var(--accent-ink)); }
html[data-site-theme] .attainments .skill .progress { background-color: rgba(var(--black), .12); }
html[data-site-theme] .attainments .skill .progress .progress-bar { background-color: rgb(var(--accent)); }
html[data-site-theme] .next-chapter:hover .next { text-decoration: underline; text-decoration-color: rgb(var(--accent)); text-decoration-thickness: 2px; text-underline-offset: 4px; }
html[data-site-theme] .navigation ul li > a.active span { color: rgb(var(--black)); }
html[data-site-theme] .navigation ul li > a::before, html[data-site-theme] .navigation ul li > a.active::before { background: rgb(var(--accent)); }
html[data-site-theme] .navigation ul li > a::after, html[data-site-theme] .navigation ul li > a.active::after { background: rgb(var(--accent)); }
html[data-site-theme] .contact .contact-form input:focus, html[data-site-theme] .contact .contact-form textarea:focus { outline: none; border-bottom-color: rgb(var(--accent)); border-bottom-width: 2px; }
html[data-site-theme] .contact .contact-form .submit-btn:hover { background-color: rgb(var(--accent)); color: rgb(var(--accent-ink)); }

/* buttons */
html[data-site-theme] .btn-secondary { background-color: rgb(var(--black)); border-color: rgb(var(--black)); color: rgb(var(--primary)); }
html[data-site-theme] .btn-secondary:hover { background-color: rgb(var(--accent)); border-color: rgb(var(--accent)); color: rgb(var(--accent-ink)); }
html[data-site-theme] .btn-outline-secondary { border-color: rgb(var(--black)); color: rgb(var(--black)); }
html[data-site-theme] .btn-outline-secondary:hover { background-color: rgb(var(--black)); color: rgb(var(--primary)); }

/* card surfaces: lift cards off the page */
html[data-site-theme] .services .service-card,
html[data-site-theme] .about .experience-card { border-color: rgba(var(--black), .18); }
html[data-site-theme] .services .service-card .card-inner,
html[data-site-theme] .about .experience-card .card-inner,
html[data-site-theme] .projects .project-card .card-inner { background-color: rgb(var(--surface)); }
html[data-site-theme] .about .experience-card { background: rgb(var(--surface)); }
html[data-site-theme] .about .experience-card::before, html[data-site-theme] .about .experience-card::after,
html[data-site-theme] .services .service-card::before, html[data-site-theme] .services .service-card::after,
html[data-site-theme] .projects .project-card::before, html[data-site-theme] .projects .project-card::after { border-color: rgba(var(--black), .35); }
html[data-site-theme] .modal-content { background-color: rgba(var(--accent-ink), .82); }
html[data-site-theme] .modal-content .modal-body { background-color: rgb(var(--surface)); }
html[data-site-theme] footer { background-color: rgba(var(--black), .05); border-top: 1px solid rgba(var(--black), .12); }

/* ---------- direction A: PAPER — yellow hero, warm paper body, ink text ---------- */
html[data-site-theme="paper"] {
  --primary: 247, 245, 240;   /* page */
  --black: 20, 20, 22;        /* text + lines */
  --white: 255, 255, 255;
  --surface: 255, 255, 255;   /* cards */
}
html[data-site-theme="paper"] .hero { position: relative; }
html[data-site-theme="paper"] .hero::before { content: ""; position: absolute; top: -100px; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background-color: rgb(var(--accent)); z-index: -1; }
html[data-site-theme] .header { top: 0; }
html[data-site-theme="paper"] .hero .next-chapter .page, html[data-site-theme="paper"] .next-chapter .page { color: rgba(var(--black), .55); }
html[data-site-theme="paper"] .header { background-color: rgb(var(--accent)); }
html[data-site-theme="paper"] .header .nav-icon span { background: rgb(var(--black)); }
html[data-site-theme="paper"] .header .logo, html[data-site-theme="paper"] .header a { color: rgb(var(--black)); }
html[data-site-theme="paper"] .hero .row .img-wrapper .hero-img { border: 3px solid rgb(var(--black)); }
html[data-site-theme="paper"] .section-title-overlay-text { opacity: .06; }

/* ---------- direction B: INK — ink page, off-white text, yellow accent ---------- */
html[data-site-theme="ink"] {
  --primary: 17, 17, 19;      /* page */
  --black: 240, 238, 232;     /* text + lines */
  --white: 17, 17, 19;
  --surface: 26, 26, 29;      /* cards */
}
html[data-site-theme="ink"] .hero .row .developer, html[data-site-theme="ink"] .hero .row .developer * { color: rgb(var(--accent)); }
html[data-site-theme="ink"] .header .logo img { filter: invert(1) brightness(1.4); }
html[data-site-theme="ink"] .hero .row .img-wrapper .hero-img { border: 3px solid rgb(var(--accent)); }
html[data-site-theme="ink"] .hero .row .img-wrapper .waves-top span, html[data-site-theme="ink"] .hero .row .img-wrapper .waves-bottom span { border-color: rgba(var(--accent), .6); }
html[data-site-theme="ink"] .section-title-overlay-text { color: rgb(var(--accent)); opacity: .07; }
html[data-site-theme="ink"] .btn-secondary { background-color: rgb(var(--accent)); border-color: rgb(var(--accent)); color: rgb(var(--accent-ink)); }
html[data-site-theme="ink"] .btn-secondary:hover { background-color: rgb(var(--black)); border-color: rgb(var(--black)); color: rgb(var(--primary)); }
html[data-site-theme="ink"] .next-chapter .page { color: rgba(var(--black), .5); }
html[data-site-theme="ink"] .header { background-color: rgba(17, 17, 19, .9); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(var(--black), .08); }
html[data-site-theme="ink"] .about .experience-card .numbers span:first-child { color: rgb(var(--accent)); }
html[data-site-theme="ink"] .fun_facts .fun-fact .numbers span:first-child { color: rgb(var(--accent)); }

/* ---------- site additions (content-specific) ---------- */
.color-switcher { display: none !important; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.2px; }
.logo-mark { width: 34px; height: 34px; border-radius: 6px; background: rgb(var(--accent)); color: rgb(var(--accent-ink)); display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .5px; }
html[data-site-theme="paper"] .header .header-mail { color: rgb(var(--black)); }
.header .header-mail { font-size: 14px; text-decoration: none; }
@media (max-width: 575px) { .header .header-mail { display: none !important; } }

.hero .row .description { max-width: 34ch; }
.services .service-card .service-for { font-size: 15px; line-height: 1.5; margin-bottom: 18px; color: rgba(var(--black), .8); }
.services .service-card .service-list li { font-size: 15px; }

.attainments .skill .skill-tag { font-size: 13px; color: rgba(var(--black), .65); text-align: right; white-space: nowrap; }
@media (max-width: 575px) { .attainments .skill .skill-tag { white-space: normal; max-width: 50%; } }
.attainments .skill .progress .progress-bar { transition-duration: 1.6s; }

.experience .cv-note { margin-top: 10px; font-size: 14px; color: rgba(var(--black), .65); }
.how-i-work .system-intro { max-width: 68ch; font-size: 17px; line-height: 1.6; margin-bottom: 40px; color: rgba(var(--black), .85); }
.how-i-work .process-list .process p:last-child { text-transform: capitalize; }
.built-with { margin-bottom: 40px; }
.built-with .built-label { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(var(--black), .6); margin-right: 8px; }
.chip { display: inline-block; font-size: 13px; padding: 5px 12px; border: 1px solid rgba(var(--black), .3); border-radius: 999px; background: rgb(var(--surface)); }

.projects .project-info .tags { font-size: 13px; }
.form-slot-note { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(var(--black), .7); border: 1.5px dashed rgba(var(--black), .4); border-radius: 8px; padding: 12px 16px; margin-bottom: 28px; }
.form-slot-note .pill { font-size: 11px; letter-spacing: 1.5px; font-weight: 600; background: rgb(var(--accent)); color: rgb(var(--accent-ink)); padding: 3px 9px; border-radius: 999px; }
.form-status { margin-top: 16px; font-size: 15px; color: rgb(var(--black)); }
.contact .contact-item p a { color: inherit; text-decoration: none; word-break: break-all; }
.contact .contact-item p a:hover { text-decoration: underline; text-decoration-color: rgb(var(--accent)); }

.modal-content .modal-body .modal-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 24px; }
.modal-content .modal-body .modal-cta h3 { width: 100%; }
.modal-content .modal-body .right-bar { display: flex; flex-direction: column; gap: 18px; border: 1px solid rgba(var(--black), .15); border-radius: 12px; padding: 20px; background: rgb(var(--surface)); }
.modal-content .modal-body .right-bar p { font-size: 13px; color: rgba(var(--black), .6); }

/* sentence case for long section titles (template forces capitalize) */
.section-title h4, .section-title h2 { text-transform: none; }

/* ---------- dots background + sticky menu ---------- */
.hero { position: relative; }
.hero #background-canvas { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100vw; height: 100%; z-index: 0; pointer-events: none; display: block; }
.hero > .row { position: relative; z-index: 1; }
.header, main, footer { position: relative; z-index: 1; }
html[data-site-theme="paper"] .hero::before { top: 0; }
html[data-site-theme="paper"] .header { position: relative; top: auto; }
html[data-site-theme] .navigation .logo-text { color: rgb(var(--black)); font-size: 16px; }
@media (min-width: 1200px) {
  html[data-site-theme] .navigation { position: sticky; top: 0; z-index: 50; background-color: rgba(var(--primary), .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(var(--black), .12); margin-bottom: 20px; }
  html[data-site-theme] .navigation ul { gap: 2px; flex-wrap: wrap; }
  html[data-site-theme] .navigation ul li > a { font-size: 13px; padding: 8px 10px; letter-spacing: .4px; }
  html[data-site-theme] .navigation ul li > a span { font-size: 13px; }
  /* no logo in the bar any more, so center the links */
  html[data-site-theme] .navigation { justify-content: center; }
}
@media (max-width: 1199.98px) {
  html[data-site-theme] .navigation { background-color: rgb(var(--primary)); z-index: 100; }
  html[data-site-theme] .navigation.opened { background-color: rgb(var(--primary)); }
  html[data-site-theme] .navigation ul li > a span { color: rgb(var(--black)); }
}

/* ---------- nav highlight: text sits ON TOP of the yellow ---------- */
/* the template's highlight is an absolutely positioned ::after that painted over the label */
html[data-site-theme] .navigation ul li > a::after { z-index: 0; }
html[data-site-theme] .navigation ul li > a::before { z-index: 1; } /* underline stays visible on the solid yellow */
html[data-site-theme] .navigation ul li > a span { position: relative; z-index: 1; display: inline-grid; color: rgb(var(--black)); }
/* invisible bold copy of the label reserves the bold width, so links don't shift when one turns bold */
html[data-site-theme] .navigation ul li > a span::after { content: attr(data-text); font-weight: 700; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; user-select: none; }
/* hover: light yellow wash */
html[data-site-theme] .navigation ul li > a::after { background: rgb(var(--accent)); opacity: .45; }
html[data-site-theme] .navigation ul li > a::before { background: rgb(var(--black)); }
/* section you're in: solid yellow, bold black label, black underline */
html[data-site-theme] .navigation ul li > a.active::after { background: rgb(var(--accent)); opacity: 1; }
html[data-site-theme] .navigation ul li > a.active::before { background: rgb(var(--black)); }
html[data-site-theme] .navigation ul li > a.active span { font-weight: 700; color: rgb(var(--black)); }

/* ---------- JG logo ---------- */
.logo-img { height: 28px; width: auto; display: block; }
@media (max-width: 575px) { .logo-img { height: 24px; } }
html[data-site-theme="paper"] .header { padding-top: 18px; padding-bottom: 18px; }

/* ---------- typed title: always reserve two lines so nothing below or beside it moves ---------- */
.hero .row .developer { line-height: 1.2; min-height: 2.4em; }
/* tablets: the column is narrow, so size the words to fit instead of clipping them */
@media (min-width: 768px) and (max-width: 991.98px) { .hero .row .developer { font-size: 44px; } }

/* ---------- hero greeting ---------- */
.hero-greeting { margin: 0 0 12px; font-size: clamp(18px, 1.55vw, 24px); line-height: 1.45; font-weight: 400; color: rgb(var(--black)); max-width: 44ch; }
.hero-greeting .hg-line { display: block; }
.hero-greeting .hg-sub { font-size: .82em; margin-top: 6px; color: rgba(var(--black), .72); letter-spacing: .2px; }
.hero-greeting .hg-name { font-weight: 700; position: relative; }
.hero-greeting .hg-name::after { content: ""; position: absolute; left: 0; right: .2em; bottom: -1px; height: 3px; background: rgb(var(--black)); transform-origin: left center; transform: scaleX(0); animation: hgUnderline .6s 2.4s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero-greeting .hg-word { display: inline-block; opacity: 0; transform: translateY(14px); animation: hgRise .55s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero-greeting .hg-line:first-child .hg-word:nth-child(1) { animation-delay: 1.30s; }
.hero-greeting .hg-line:first-child .hg-word:nth-child(2) { animation-delay: 1.42s; }
.hero-greeting .hg-line:first-child .hg-word:nth-child(3) { animation-delay: 1.54s; }
.hero-greeting .hg-line:first-child .hg-word:nth-child(4) { animation-delay: 1.70s; }
.hero-greeting .hg-line:first-child .hg-word:nth-child(5) { animation-delay: 1.80s; }
.hero-greeting .hg-line:first-child .hg-word:nth-child(6) { animation-delay: 1.90s; }
.hero-greeting .hg-sub .hg-word { animation-delay: 2.15s; }
@keyframes hgRise { to { opacity: 1; transform: none; } }
@keyframes hgUnderline { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero-greeting .hg-word { opacity: 1; transform: none; animation: none; }
  .hero-greeting .hg-name::after { transform: none; animation: none; }
}

/* ---------- typed specialties: largest size that keeps every phrase on two lines ---------- */
@media (min-width: 1400px) { .hero .row .developer { font-size: 88px; } }
@media (min-width: 1200px) and (max-width: 1399.98px) { .hero .row .developer { font-size: 72px; } }
@media (min-width: 992px) and (max-width: 1199.98px) { .hero .row .developer { font-size: 60px; } }

/* ---------- hero without subtitle: title sits directly above the buttons ---------- */
.hero .row .developer { margin-bottom: 36px; }
@media (max-width: 767.98px) { .hero .row .developer { margin-bottom: 28px; } }

/* ================= mobile sweep ================= */
/* 44px tap targets everywhere */
html[data-site-theme="paper"] .header { padding-top: 8px; padding-bottom: 8px; }
.header .logo { padding: 8px 0; }
.header button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.header .header-mail { min-height: 44px; }
.next-chapter { min-height: 44px; }
.more-info a.fs-5 { min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 575.98px) {
  /* wider side margins than the template's 12px */
  main.container, .header .container, footer .container { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 767.98px) {
  /* hero: drop the tall empty band, smaller centered headshot */
  .hero { min-height: 0; padding-top: 8px; }
  .hero .row .hero-content { padding-top: 32px; padding-bottom: 36px; }
  .hero .row .img-wrapper { max-width: 250px; max-height: 250px; margin-left: auto; margin-right: auto; }
  .hero .next-chapter { padding-top: 36px; }

  /* section titles: the big faded watermark collides with the heading on small screens */
  .section-title { margin-bottom: 28px; }
  .next-chapter { padding-top: 40px !important; margin-top: 0 !important; }

  /* About */
  .about .experience-card { padding: 28px 20px; }
  .about .experience-card .numbers span { font-size: 140px; }
  .about .row.contact > [class*="col-"] { margin-bottom: 14px; }

  /* Work with me: all three offers visible, stacked (no hidden carousel) */
  .service-swiper .swiper-wrapper { flex-direction: column; transform: none !important; gap: 8px; }
  .service-swiper .swiper-slide { width: 100% !important; margin-right: 0 !important; padding: 6px 2px !important; }
  .service-swiper .swiper-pagination { display: none; }

  /* Capabilities: tighter groups, tag sits under its label */
  .attainments .pb-120 { padding-bottom: 44px; }
  .attainments .skill > .d-flex { flex-direction: column; align-items: flex-start !important; gap: 2px !important; }
  .attainments .skill .skill-tag { text-align: left; white-space: normal; max-width: none; }

  /* Numbers: even rhythm */
  .fun_facts .pb-60 { padding-bottom: 0; }
  .fun_facts .fun-fact { margin-bottom: 36px; }
  .fun_facts .fun-fact .numbers span { font-size: 64px; }

  /* Case studies: landscape covers instead of screen-tall cards */
  .projects .project-card .card-img { aspect-ratio: 16 / 11; object-fit: cover; object-position: var(--focus-x, 80%) 50%; height: auto !important; }

  /* The System: two circles per row instead of six stacked */
  .how-i-work .system-intro { font-size: 16px; margin-bottom: 8px; }
  .how-i-work .process-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; padding-left: 6px !important; padding-right: 0 !important; justify-items: center; margin-top: 24px; margin-bottom: 32px; }
  .how-i-work .process-list .process { width: 100%; max-width: 156px; height: auto; aspect-ratio: 1; flex: none; }
  .how-i-work .process-list .process p { font-size: 14px; }

  /* circular arrow CTAs */
  .more-info { margin-bottom: 24px; }
  .more-info p { font-size: 18px; }
  .more-info .arrow-down { width: 104px; height: 104px; }
  .more-info .line { width: 64px; }
  .experience .download-cv { margin-top: 28px; }

  /* Insights */
  .blog-card .meta-sep { display: none; }
  .blog-card .fs-5 { font-size: 15px !important; }
  .blog-card h4 { font-size: 19px; }

  /* Contact */
  .contact .pb-120 { padding-bottom: 36px; }
  .contact .contact-item p { word-break: break-word; }
  .contact .contact-form .submit-btn { width: 120px; height: 120px; }
}
@media (max-width: 767.98px) {
  .how-i-work .process-list { margin-left: 0 !important; margin-right: 0 !important; padding-left: 6px !important; padding-right: 6px !important; }
  .how-i-work .process-list .process { padding-left: 0; padding-right: 0; }
}
.about .row.contact a { display: inline-block; padding: 9px 0; margin: -9px 0; }
/* "14" card: center the outlined echoes on the number at every width */
.about .experience-card .numbers .number-outline-one,
.about .experience-card .numbers .number-outline-two { left: 0; right: 0; justify-content: center; }
@media (max-width: 767.98px) {
  /* one rhythm between sections: every section ends on its Next Chapter link, then a 64px gap */
  main section.section { padding-top: 0 !important; padding-bottom: 0 !important; }
  main section.section > .col-12:last-child > .next-chapter,
  main section.section > .col-12 > a.next-chapter:last-child { margin-bottom: 64px !important; }
  .hero .next-chapter { margin-bottom: 56px; }
}

/* ---------- hero: availability pill + proof line ---------- */
.hero-status { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(var(--white), .55); border: 1px solid rgba(var(--black), .14); font-size: 13.5px; font-weight: 500; line-height: 1.3; color: rgb(var(--black)); }
.status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #1E9E5A; flex: none; }
.status-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(30, 158, 90, .45); animation: statusPulse 2s ease-out infinite; }
@keyframes statusPulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.hero-proof { margin: 22px 0 0; font-size: 14.5px; line-height: 1.55; color: rgba(var(--black), .78); max-width: 46ch; }
.hero-proof .proof-sep { margin: 0 4px; }
.hero .btn.work-btn, .hero .btn.contact-btn { text-transform: none; }
@media (max-width: 575.98px) {
  .hero-status { font-size: 12.5px; padding: 6px 12px 6px 10px; margin-bottom: 14px; }
  .hero-proof { font-size: 13.5px; margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { .status-dot::after { animation: none; opacity: 0; } }

.hero-proof > span { display: block; }
.hero-proof .proof-role { font-weight: 500; color: rgb(var(--black)); }
@media (max-width: 399.98px) { .hero-status { font-size: 12px; padding: 6px 11px 6px 10px; gap: 8px; } }

/* ---------- top bar: email + phone ---------- */
.header .header-mail i { font-size: 16px; }
.header .header-call { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 24px; color: rgb(var(--black)); text-decoration: none; }
@media (min-width: 576px) { .header .header-call { display: none !important; } }

/* ---------- section rhythm (chapter markers removed) ---------- */
main section.section { padding-top: 140px !important; padding-bottom: 0 !important; }
main section.section > :last-child { margin-bottom: 0 !important; padding-bottom: 0 !important; }
main { padding-bottom: 120px; }
@media (max-width: 1199.98px) { main section.section { padding-top: 110px !important; } main { padding-bottom: 96px; } }
@media (max-width: 767.98px) { main section.section { padding-top: 72px !important; } main { padding-bottom: 72px; } .hero { padding-bottom: 64px; } }
#services.section { margin-top: 0 !important; }
.services .section-title { padding-top: 24px; }
@media (min-width: 1200px) { .services .section-title { padding-top: 36px; } }
/* sections after a ringed arrow button: add back the space the decorative rings take */
#blogs.section, #contact.section { padding-top: 165px !important; }
@media (max-width: 1199.98px) { #blogs.section, #contact.section { padding-top: 135px !important; } }
@media (max-width: 767.98px) { #blogs.section, #contact.section { padding-top: 96px !important; } }

/* ---------- header LinkedIn icon (opens in a new tab) ---------- */
.header .header-social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 24px; color: rgb(var(--black)); text-decoration: none; border-radius: 50%; transition: background-color .2s ease, color .2s ease; }
html[data-site-theme] .header .header-social:hover, html[data-site-theme] .header .header-social:focus-visible { background-color: rgb(var(--black)); color: rgb(var(--accent)); }

/* ---------- back to top button (bottom right) ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--black)); color: rgb(var(--accent)); font-size: 22px; cursor: pointer; box-shadow: 0 10px 28px rgba(0, 0, 0, .18); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease, visibility .3s ease; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }
.to-top:hover i { animation: toTopNudge .6s ease-in-out infinite alternate; }
.to-top:focus-visible { outline: 3px solid rgb(var(--black)); outline-offset: 3px; }
.to-top i { position: relative; z-index: 1; }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.to-top-ring circle { fill: none; stroke: rgb(var(--accent)); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .15s linear; }
@keyframes toTopNudge { from { transform: translateY(2px); } to { transform: translateY(-3px); } }
@media (max-width: 767.98px) { .to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top-ring circle { transition: none; } .to-top:hover i { animation: none; } }

/* ---------- phones + tablets: sticky top bar ---------- */
@media (max-width: 1199.98px) {
  html[data-site-theme] .header { position: sticky; top: 0; z-index: 30; transition: background-color .3s ease, box-shadow .3s ease; }
  /* past the yellow hero the bar turns paper, matching the desktop menu bar */
  html[data-site-theme="paper"] .header.is-stuck { background-color: rgba(var(--primary), .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(var(--black), .12); }
  /* the slide-out menu and its shade open below the bar, so the close button stays visible */
  html[data-site-theme] .navigation { top: var(--header-h, 60px); height: calc(100% - var(--header-h, 60px)); }
  html[data-site-theme] .nav-overlay { top: var(--header-h, 60px); }
  /* menu jumps land below the bar instead of under it */
  main section[id] { scroll-margin-top: var(--header-h, 60px); }
}
/* hide the back-to-top button while the slide-out menu is open */
body:has(.navigation.opened) .to-top { opacity: 0; visibility: hidden; }

/* ---------- recommendations (LinkedIn quotes) ---------- */
.rec-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.rec-card { position: relative; margin: 0; padding: 48px 48px 36px; background: rgb(var(--surface)); border: 1px solid rgba(var(--black), .18); border-radius: 24px; display: flex; flex-direction: column; gap: 28px; }
.rec-mark { position: absolute; top: -8px; left: 36px; font-family: Georgia, "Times New Roman", serif; font-size: 120px; line-height: 1; color: rgb(var(--accent)); -webkit-text-stroke: 2px rgb(var(--black)); }
.rec-quote { margin: 0; }
.rec-quote p { margin: 0; font-size: 18px; line-height: 1.65; color: rgb(var(--black)); }
/* a single quote reads as a large pull quote; with two or more they sit side by side */
.rec-card:only-child .rec-quote p { font-size: 22px; line-height: 1.6; max-width: 62ch; }
.rec-quote mark { background: linear-gradient(transparent 55%, rgba(var(--accent), .9) 55%); color: inherit; padding: 0 2px; font-weight: 600; }
.rec-person { display: flex; align-items: center; gap: 16px; margin-top: auto; }
.rec-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--accent)); border: 1px solid rgba(var(--black), .25); font-weight: 700; font-size: 18px; letter-spacing: .5px; color: rgb(var(--black)); }
.rec-who { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.4; color: rgba(var(--black), .75); }
.rec-who strong { font-size: 17px; color: rgb(var(--black)); }
.rec-who .rec-now { font-size: 14px; color: rgba(var(--black), .6); }
.rec-source { margin: 0; padding-top: 18px; border-top: 1px solid rgba(var(--black), .12); font-size: 14px; color: rgba(var(--black), .6); display: flex; align-items: center; gap: 8px; }
.rec-source i { font-size: 18px; color: rgb(var(--black)); }
.rec-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; color: rgb(var(--black)); text-decoration: none; border-bottom: 2px solid rgb(var(--accent)); }
.rec-more:hover { border-bottom-color: rgb(var(--black)); }
@media (max-width: 767.98px) {
  .rec-card { padding: 40px 22px 26px; gap: 22px; border-radius: 20px; }
  .rec-mark { font-size: 96px; left: 18px; top: -4px; }
  .rec-quote p, .rec-card:only-child .rec-quote p { font-size: 17px; line-height: 1.65; }
}
/* the long background word would run off tablet screens: size it to fit */

/* template bug: its phone-menu rules (max-width: 1200px) also hit at exactly 1200px wide and hide the desktop menu bar */
@media (min-width: 1200px) and (max-width: 1200.98px) {
  html[data-site-theme] .navigation, html[data-site-theme] .navigation:dir(ltr) { position: sticky; top: 0; bottom: auto; left: auto; width: auto; max-width: none; height: auto; padding: 12px 0; overflow: visible; transform: none; transition: none; }
}

/* ================= case studies: one full-width template project card per company ================= */
.projects .project-list .single-project { outline: none; }
.projects .project-card .card-img { aspect-ratio: 12 / 5; object-fit: cover; height: auto !important; border-radius: 6px; }
/* the template tilts two outlines on hover; on a full-width card a small tilt reads better */
.projects .project-card:hover::before { transform: rotate(1deg); }
.projects .project-card:hover::after { transform: rotate(-1deg); }
.projects .single-project:hover .project-card { transform: scale(.985); }
.projects .single-project:focus-visible .project-card { outline: 3px solid rgb(var(--black)); outline-offset: 6px; }
.projects .single-project:focus-visible .card-arrow { scale: 1; opacity: 1; }
/* name, role and tags on the left; the three headline numbers on the right */
.projects .project-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-top: 28px; }
.projects .project-info-main { min-width: 0; }
.projects .project-info h2 { font-size: 40px; }
.projects .project-info p { font-size: 17px; color: rgba(var(--black), .75); }
.project-stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; flex: none; }
.project-stats li { padding: 4px 28px; border-left: 1px solid rgba(var(--black), .15); max-width: 210px; }
.project-stats li:first-child { border-left: 0; padding-left: 0; }
.project-stats b { display: block; font-size: 34px; font-weight: 700; line-height: 1.1; color: rgb(var(--black)); white-space: nowrap; }
.project-stats span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; color: rgba(var(--black), .65); }
.projects .project-list > .col-12 + .col-12 { margin-top: 48px; }
@media (max-width: 1199.98px) {
  .projects .project-info { flex-direction: column; gap: 20px; }
  .project-stats li { padding: 0 20px; }
}
@media (max-width: 767.98px) {
  .projects .project-info h2 { font-size: 30px; }
  .projects .project-info p { font-size: 15px; }
  .project-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .project-stats li { padding: 0 10px; max-width: none; }
  .project-stats b { font-size: 21px; white-space: normal; }
  .project-stats span { font-size: 13px; }
  .projects .project-list > .col-12 + .col-12 { margin-top: 24px; }
}

/* pop-up: old-portfolio structure inside the template's lightbox */
.modal-content .modal-body .case-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(var(--black), .6); margin-bottom: 8px; }
.modal-content .modal-body .case-media-title { font-size: 15px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.case-gallery { display: grid; gap: 16px; margin-bottom: 40px; }
.case-gallery img { width: 100%; height: auto; display: block; border: 1px solid rgba(var(--black), .1); }
.case-gallery--two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.case-gallery--wall { display: block; columns: 3; column-gap: 16px; }
.case-gallery--wall img { margin-bottom: 16px; break-inside: avoid; }
.case-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.case-stats b { display: block; font-size: 40px; font-weight: 700; line-height: 1.1; }
.case-stats span { display: block; margin-top: 6px; font-size: 15px; color: rgba(var(--black), .7); }
.modal-content .modal-body .outcome { margin-bottom: 48px; }
.case-cta { padding-top: 32px; border-top: 1px solid rgba(var(--black), .15); }
@media (max-width: 767.98px) {
  .case-gallery--two { grid-template-columns: 1fr; }
  .case-gallery--wall { columns: 2; column-gap: 12px; }
  .case-gallery--wall img { margin-bottom: 12px; }
  .case-stats { grid-template-columns: 1fr; gap: 16px; }
  .case-stats b { font-size: 32px; }
}
@media (max-width: 767.98px) { .projects .project-card .card-img { aspect-ratio: 16 / 11; object-position: var(--focus-x, 80%) 50%; } }
@media (min-width: 1200px) { .case-gallery--wall { columns: 4; } }
/* hide the back-to-top button while a case study is open */
body.modal-open .to-top { opacity: 0; visibility: hidden; }
/* outcome numbers sit in a row (the template's pop-up list rule stacks every ul) */
.modal-content .modal-body ul.case-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 0; padding: 0; }
.modal-content .modal-body ul.case-stats li { padding-right: 16px; border-right: 1px solid rgba(var(--black), .12); }
.modal-content .modal-body ul.case-stats li:last-child { border-right: 0; }
@media (max-width: 767.98px) {
  .modal-content .modal-body ul.case-stats { grid-template-columns: 1fr; gap: 16px; }
  .modal-content .modal-body ul.case-stats li { border-right: 0; padding-right: 0; }
}

/* About: two full-width paragraphs, a tighter gap between them */
.about .about-desc p.desc:has(+ p.desc) { margin-bottom: 24px; }

/* About Me: the name line is the section title; no eyebrow, no contact row */
.about .section-title.about-title h2 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.18; font-weight: 600; margin-bottom: 0; text-wrap: balance; }
.about .section-title.about-title { margin-bottom: 40px; }
@media (max-width: 767.98px) { .about .section-title.about-title { margin-bottom: 24px; } }

/* ================= My Work: visual overview (rows keep each clip's exact shape) ================= */
.work-wall { display: flex; flex-direction: column; gap: 16px; }
.work-row { display: flex; gap: 16px; align-items: flex-start; }
/* width grows with the clip's ratio, so every tile in a row ends up the same height */
.work-tile { flex: var(--r) 1 0; min-width: 0; aspect-ratio: var(--r); margin: 0; border-radius: 14px; overflow: hidden; position: relative; background: rgb(var(--surface)); }
.work-tile img, .work-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-tile--placeholder { border: 1.5px dashed rgba(var(--black), .35); background: rgb(var(--surface)) repeating-linear-gradient(135deg, rgba(var(--black), .035) 0 12px, transparent 12px 24px); }
.work-slot { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 12px; color: rgb(var(--black)); }
.work-slot .work-num { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; background: rgb(var(--accent)); color: rgb(var(--accent-ink)); padding: 4px 10px; border-radius: 999px; margin-bottom: 6px; }
.work-slot strong { font-size: 18px; font-weight: 700; line-height: 1.2; }
.work-slot span:not(.work-num) { font-size: 15px; color: rgba(var(--black), .75); }
.work-slot small { font-size: 13px; color: rgba(var(--black), .55); }
/* tablets and phones: a column collage instead of rows (rows get too small to read) */
@media (max-width: 991.98px) {
  .work-wall { display: block; columns: 3; column-gap: 14px; }
  .work-row { display: contents; }
  .work-tile { display: block; width: 100%; margin-bottom: 14px; break-inside: avoid; }
}
@media (max-width: 767.98px) {
  .work-wall { display: block; columns: 2; column-gap: 10px; }
  .work-row { display: contents; }
  .work-tile { display: block; width: 100%; margin-bottom: 10px; break-inside: avoid; border-radius: 10px; }
  .work-slot strong { font-size: 15px; }
  .work-slot span:not(.work-num) { font-size: 13px; }
}
/* small tiles (landscape clips on phones): compact label so nothing is cut off */
.work-tile--placeholder { container-type: size; }
@container (max-height: 140px) {
  .work-slot { gap: 2px; padding: 6px; }
  .work-slot .work-num { font-size: 12px; padding: 2px 8px; margin-bottom: 2px; }
  .work-slot strong { font-size: 13px; }
  .work-slot span:not(.work-num) { font-size: 13px; }
  .work-slot small { display: none; }
}

/* ================= My Work lightbox ================= */
.work-tile { cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease; }
.work-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .12); }
.work-tile:focus-visible { outline: 3px solid rgb(var(--black)); outline-offset: 3px; }
.work-lightbox { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px 72px; background: rgba(10, 10, 12, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.work-lightbox[hidden] { display: none; }
.work-lightbox.is-open { opacity: 1; }
.wl-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; transform: scale(.96); transition: transform .25s ease; }
.work-lightbox.is-open .wl-stage { transform: scale(1); }
/* the enlarged tile keeps its exact shape and fits the screen */
.wl-frame { aspect-ratio: var(--r, 1); width: min(calc(100vw - 176px), calc(78vh * var(--r, 1))); border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); position: relative; }
.wl-frame img, .wl-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wl-frame--placeholder { background: rgb(var(--surface)) repeating-linear-gradient(135deg, rgba(var(--black), .04) 0 14px, transparent 14px 28px); border: 1.5px dashed rgba(255, 255, 255, .5); }
.wl-frame--placeholder .work-slot { position: absolute; inset: 0; }
.wl-frame--placeholder .work-slot strong { font-size: 26px; }
.wl-frame--placeholder .work-slot span:not(.work-num) { font-size: 18px; }
.wl-frame--placeholder .work-slot small { font-size: 15px; display: block; }
.wl-caption { color: rgba(255, 255, 255, .85); font-size: 14px; letter-spacing: .3px; text-align: center; }
.wl-btn { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; font-size: 24px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.wl-btn:hover, .wl-btn:focus-visible { background: rgb(var(--accent)); color: rgb(var(--accent-ink)); border-color: rgb(var(--accent)); outline: none; }
.wl-close { position: absolute; top: 20px; right: 20px; }
body.lightbox-open { overflow: hidden; }
body.lightbox-open .to-top { opacity: 0; visibility: hidden; }
@media (max-width: 767.98px) {
  .work-lightbox { padding: 72px 12px 24px; flex-wrap: wrap; align-content: center; }
  .wl-stage { order: 1; width: 100%; }
  .wl-frame { width: min(calc(100vw - 24px), calc(66vh * var(--r, 1))); }
  .wl-prev, .wl-next { order: 2; width: 48px; height: 48px; }
  .wl-close { top: 14px; right: 14px; width: 48px; height: 48px; }
  .wl-frame--placeholder .work-slot strong { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .work-lightbox, .wl-stage, .work-tile { transition: none; } }

/* Work History cards: one-line company description under the name, then role and years */
.projects .project-info p.project-desc { font-size: 18px; line-height: 1.5; color: rgba(var(--black), .85); margin-bottom: 6px; max-width: 60ch; }
.projects .project-info p.project-role { font-size: 15px; color: rgba(var(--black), .6); margin-bottom: 14px; }
@media (max-width: 767.98px) {
  .projects .project-info p.project-desc { font-size: 16px; }
  .projects .project-info p.project-role { font-size: 14px; }
}

/* company jumps land below the sticky menu / top bar */
.work-anchor, #work-history { scroll-margin-top: 84px; }
@media (max-width: 1199.98px) { .work-anchor { scroll-margin-top: calc(var(--header-h, 60px) + 16px); } }

/* ================= case study pop-up: easy exit ================= */
/* the X stays fixed at the card's top-right corner while you scroll, at full strength */
.modal-content .modal-body .btn-close { position: fixed; z-index: 20; top: 46px; right: calc((100vw - min(1296px, 100vw - 48px)) / 2 + 18px); width: 48px; height: 48px; opacity: 1; border: 2px solid rgb(var(--white)); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.modal-content .modal-body .btn-close:hover, .modal-content .modal-body .btn-close:focus-visible { opacity: 1; background-color: rgb(var(--accent)); color: rgb(var(--accent-ink)); }
@media (min-width: 768px) { .modal-content .modal-body { max-width: min(1296px, calc(100vw - 48px)); } }
@media (max-width: 767.98px) {
  .modal-content .modal-body .btn-close { top: 30px; right: 22px; width: 44px; height: 44px; }
}
/* the dark area around the card closes it */
#project-details .modal-content { cursor: pointer; }
#project-details .modal-body { cursor: auto; }
@media (max-width: 767.98px) { .modal-content .modal-body { margin: 20px 12px; max-width: none; } }

/* breathing room between Recommendations and the next section's big background word */
.recommendations .rec-more { margin-bottom: 56px; }
@media (max-width: 767.98px) { .recommendations .rec-more { margin-bottom: 32px; } }

/* ================= menu: Work History dropdown (companies) ================= */
.navigation .has-sub { position: relative; }
.navigation .nav-caret { position: relative; z-index: 1; font-size: 12px; margin-left: 5px; vertical-align: 1px; transition: transform .2s ease; }
.nav-sub a { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; padding: 10px 14px; border-radius: 10px; color: rgb(var(--black)); text-decoration: none; transition: background-color .15s ease; }
.nav-sub a strong { font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-sub a small { font-size: 13px; color: rgba(var(--black), .55); white-space: nowrap; }
.nav-sub a:hover, .nav-sub a:focus-visible { background: rgba(var(--accent), .5); outline: none; }
.nav-sub a.active, .nav-sub a.is-current { background: rgb(var(--accent)); }
.nav-sub a.active strong, .nav-sub a.is-current strong { font-weight: 700; }
html[data-site-theme] .navigation ul li > a.is-parent-active::after { width: 100%; opacity: 1; background: rgb(var(--accent)); }
html[data-site-theme] .navigation ul li > a.is-parent-active::before { width: 100%; background: rgb(var(--black)); }
html[data-site-theme] .navigation ul li > a.is-parent-active span { font-weight: 700; }
@media (min-width: 1200px) {
  .nav-sub { position: absolute; top: calc(100% + 10px); left: 50%; z-index: 60; min-width: 270px; padding: 8px; background: rgb(var(--surface)); border: 1px solid rgba(var(--black), .15); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .14); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
  .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .navigation .has-sub:hover .nav-sub, .navigation .has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .navigation .has-sub:hover .nav-caret, .navigation .has-sub:focus-within .nav-caret { transform: rotate(180deg); }
}
@media (max-width: 1199.98px) {
  .navigation .nav-caret { display: none; }
  .nav-sub { margin: 2px 0 8px 12px; padding-left: 12px; border-left: 2px solid rgb(var(--accent)); }
  .nav-sub a { padding: 8px 12px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
  .nav-sub a strong { font-size: 16px; font-weight: 500; white-space: normal; }
}

/* ================= Tech Stack ================= */
.stack-wrap { display: grid; gap: 40px; }
.stack-title { font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(var(--black), .65); margin-bottom: 16px; }
.stack-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.stack-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 132px; padding: 18px 12px; text-align: center; background: rgb(var(--surface)); border: 1px solid rgba(var(--black), .12); border-radius: 16px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.stack-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, .08); border-color: rgba(var(--black), .3); }
.stack-icon { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--accent)); color: rgb(var(--accent-ink)); font-size: 26px; transition: background-color .2s ease, color .2s ease; }
.stack-tile:hover .stack-icon { background: rgb(var(--black)); color: rgb(var(--accent)); }
.stack-name { font-size: 15px; font-weight: 600; line-height: 1.3; color: rgb(var(--black)); }
@media (max-width: 767.98px) {
  .stack-wrap { gap: 28px; }
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stack-tile { min-height: 112px; padding: 14px 10px; gap: 10px; }
  .stack-icon { width: 44px; height: 44px; font-size: 22px; }
  .stack-name { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .stack-tile { transition: none; } }
#tech_stack .section-title-overlay-text { white-space: nowrap; }

/* ================= Contact row: equal columns, labels that wrap cleanly ================= */
.contact .contact-items .contact-item { display: flex; align-items: center; gap: 16px; min-width: 0; color: inherit; text-decoration: none; }
.contact .contact-items .contact-item .icon-box { flex: none; }
.contact .contact-items .contact-item p { min-width: 0; margin: 0; overflow-wrap: anywhere; line-height: 1.35; }
.contact .contact-items .contact-item p small { display: block; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: rgba(var(--black), .55); margin-bottom: 2px; }
.contact .contact-items a.contact-item:hover p { text-decoration: underline; text-decoration-color: rgb(var(--accent)); text-underline-offset: 4px; }
/* phones: compact tool rows (icon beside the name) so the section stays short */
@media (max-width: 767.98px) {
  .stack-tile { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 60px; padding: 10px 12px; gap: 10px; border-radius: 12px; }
  .stack-icon { width: 36px; height: 36px; font-size: 18px; flex: none; }
  .stack-name { font-size: 14px; }
}

/* Contact: based in Miami (sun over the water) and Medellín (coffee) */
.contact .contact-item .icon-box--duo { gap: 2px; }
.contact .contact-item .icon-box--duo i { font-size: 1.3rem; }
.contact .contact-item .icon-box--duo i + i { margin-top: 18px; }
.contact .contact-item p .city { white-space: nowrap; }
.contact .contact-item p .city i { font-size: 1.05em; vertical-align: -2px; margin-right: 2px; }
.contact .contact-item p .amp { color: rgba(var(--black), .55); }

/* ================= Contact: icons only ================= */
.contact .contact-icons { display: flex; flex-wrap: wrap; gap: 20px; padding-bottom: 24px; }
.contact .contact-icon { width: 88px; height: 88px; border-radius: 50%; border: 1px solid rgb(var(--black)); display: inline-flex; align-items: center; justify-content: center; color: rgb(var(--black)); font-size: 2rem; text-decoration: none; background: transparent; transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease; }
a.contact-icon:hover, a.contact-icon:focus-visible { background: rgb(var(--black)); color: rgb(var(--accent)); transform: translateY(-3px); outline: none; }
.contact .contact-icon--duo { gap: 2px; font-size: 1.45rem; cursor: default; }
.contact .contact-icon--duo i + i { margin-top: 20px; }
@media (max-width: 767.98px) {
  .contact .contact-icons { gap: 14px; }
  .contact .contact-icon { width: 72px; height: 72px; font-size: 1.7rem; }
  .contact .contact-icon--duo { font-size: 1.25rem; }
}

/* ================= Footer credit ================= */
footer .made-with i { color: #e5484d; display: inline-block; vertical-align: -2px; margin-left: 2px; animation: heartBeat 1.6s ease-in-out infinite; }
@keyframes heartBeat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1); } 45% { transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) { footer .made-with i { animation: none; } }
/* room between Articles' "More on LinkedIn" circle and the Contact title */
.blogs .more-info { margin-bottom: 96px; }
@media (max-width: 767.98px) { .blogs .more-info { margin-bottom: 40px; } }
/* back-to-top button rises above the footer instead of covering it */
.to-top { bottom: calc(24px + var(--lift, 0px)); }
@media (max-width: 767.98px) { .to-top { bottom: calc(16px + var(--lift, 0px)); } }
main section.section.blogs > .more-info:last-child { margin-bottom: 96px !important; }
@media (max-width: 767.98px) { main section.section.blogs > .more-info:last-child { margin-bottom: 40px !important; } }
main section.section.recommendations > .rec-more:last-child { margin-bottom: 56px !important; }
@media (max-width: 767.98px) { main section.section.recommendations > .rec-more:last-child { margin-bottom: 32px !important; } }

/* ================= Work History: always-visible, pulsing "open" button on each thumbnail ================= */
.projects .project-card .card-arrow { scale: 1; opacity: 1; background: rgba(255, 255, 255, .92); border: 1px solid rgba(var(--black), .25); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.projects .project-card .card-arrow::before,
.projects .project-card .card-arrow::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid rgb(var(--accent)); opacity: 0; animation: cardPulse 2.4s ease-out infinite; pointer-events: none; }
.projects .project-card .card-arrow::after { animation-delay: 1.2s; }
.projects .project-card .card-arrow .arrow-inner { animation: cardBreathe 2.4s ease-in-out infinite; }
.projects .single-project:hover .card-arrow, .projects .single-project:focus-visible .card-arrow { scale: 1.08; }
.projects .single-project:hover .card-arrow .arrow-inner { background: rgb(var(--black)); color: rgb(var(--accent)); animation-play-state: paused; }
@keyframes cardPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes cardBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (max-width: 767.98px) {
  .projects .project-card .card-arrow { width: 68px; height: 68px; }
  .projects .project-card .card-arrow .arrow-inner { width: 54px; height: 54px; }
  .projects .project-card .card-arrow .arrow-inner i { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .projects .project-card .card-arrow::before, .projects .project-card .card-arrow::after, .projects .project-card .card-arrow .arrow-inner { animation: none; }
}

/* ================= phone polish: centered where the layout is centered, leftovers removed ================= */
@media (max-width: 767.98px) {
  /* hero text and buttons centered to match the centered headshot */
  .hero .hero-content { text-align: center; }
  .hero .hero-greeting { margin-left: auto; margin-right: auto; }
  .hero .hero-content > .d-flex { justify-content: center; }
  /* Work History headline numbers fit their columns */
  .project-stats b { font-size: 18px; letter-spacing: -.2px; }
  /* Tech Stack: an odd last tool sits centered instead of hugging the left */
  .stack-grid .stack-tile:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }
  /* Articles: simple centered "More on LinkedIn" link instead of the big arrow circle */
  .blogs .more-info { justify-content: center; }
  .blogs .more-info .line, .blogs .more-info .arrow-down { display: none !important; }
  .blogs .more-info .more-li-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border-bottom: 2px solid rgb(var(--accent)); }
  /* Get In Touch icons and footer centered */
  .contact .contact-icons { justify-content: center; }
  footer, footer .right, footer p { text-align: center !important; }
}

/* Hero: content centered in the space between the top bar and the bottom of the screen */
@media (min-width: 768px) {
  .hero { min-height: min(calc(100vh - var(--header-h, 60px)), 900px); padding-top: 40px !important; padding-bottom: 40px; display: flex; flex-direction: column; justify-content: center; }
  .hero > .row { height: auto; }
}

/* ================= case study pop-up: text on top, visuals below ================= */
/* the Outcome box's own line separates the story (text) from the work (galleries, links to more) */
.modal-content .modal-body .case-visuals { padding-top: 8px; }
.modal-content .modal-body .case-links { padding-top: 0; }

/* ================= case study pop-up: placeholder visuals (exact shapes, sized like My Work) ================= */
.case-tiles { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.case-row { display: flex; gap: 16px; align-items: flex-start; }
.case-tile { flex: var(--r) 1 0; min-width: 0; aspect-ratio: var(--r); margin: 0; border-radius: 12px; overflow: hidden; position: relative; background: rgb(var(--surface)); }
.case-tile img, .case-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-tile--placeholder { container-type: size; border: 1.5px dashed rgba(var(--black), .35); background: rgb(var(--surface)) repeating-linear-gradient(135deg, rgba(var(--black), .035) 0 12px, transparent 12px 24px); }
@media (max-width: 991.98px) {
  .case-tiles { display: block; columns: 3; column-gap: 14px; }
  .case-row { display: contents; }
  .case-tile { display: block; width: 100%; margin-bottom: 14px; break-inside: avoid; }
}
@media (max-width: 767.98px) {
  .case-tiles { columns: 2; column-gap: 10px; }
  .case-tile { margin-bottom: 10px; border-radius: 10px; }
}

/* ================= Tech Stack: logo slots (placeholders until the official logos arrive) ================= */
.stack-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 28px; font-size: 15px; color: rgba(var(--black), .7); }
.stack-legend b { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; background: rgb(var(--accent)); color: rgb(var(--accent-ink)); padding: 4px 12px; border-radius: 999px; }
.stack-wrap--placeholders .stack-icon,
.stack-wrap--placeholders .stack-tile:hover .stack-icon { background: rgb(var(--surface)) repeating-linear-gradient(135deg, rgba(var(--black), .05) 0 5px, transparent 5px 10px); border: 1.5px dashed rgba(var(--black), .4); color: rgba(var(--black), .6); }
.stack-wrap--placeholders .stack-icon i { display: none; }
.stack-wrap--placeholders .stack-icon::after { content: "LOGO"; font-size: 10px; font-weight: 700; letter-spacing: .5px; }
@media (max-width: 767.98px) { .stack-wrap--placeholders .stack-icon::after { font-size: 8px; letter-spacing: 0; } }

/* ================= phones: hero order is greeting + animated title → headshot → buttons ================= */
@media (max-width: 767.98px) {
  /* the text column steps aside so its two parts (title, buttons) can sit around the headshot */
  .hero .row .hero-content { display: contents; }
  .hero .row .hero-content > * { flex: 0 0 100%; max-width: 100%; padding-left: calc(var(--bs-gutter-x) * .5); padding-right: calc(var(--bs-gutter-x) * .5); }
  .hero .row .hero-content > :first-child { order: 1; padding-top: 32px; }
  .hero .row > .col-12:not(.hero-content) { order: 2; }
  .hero .row .hero-content > .d-flex { order: 3; margin-top: 48px; }
  .hero .row .developer { margin-bottom: 40px; }
}

/* ================= Articles: image keeps its 360 x 282 slot (the files are 2x for sharp screens) ================= */
@media (min-width: 768px) {
  .blogs .blog-card .img-wrapper { flex: 0 0 360px; max-width: 360px; }
  .blogs .blog-card .img-wrapper img { width: 100%; height: auto; display: block; }
}

/* ================= Work History cards: a long number ($600→$85) widens its column instead of running into the next one ================= */
.project-stats li { min-width: min-content; }

/* ================= section titles: a faded word + the same word in bold, same size and spacing in every section ================= */
/* The faded word lives inside its title box, so its overlap with the bold word is identical everywhere.
   One size per screen width for every section, chosen so the longest word (RECOMMENDATIONS) fits. */
main .section-title .section-title-overlay-text {
  position: absolute; left: 0; top: calc(var(--wm-top, 24px) - var(--wm-rise, .62em));
  transform: none !important; /* the template's scroll drift would change the spacing from section to section */
  white-space: nowrap; line-height: 1; pointer-events: none; user-select: none;
  font-size: min(35px, calc((100vw - 40px) / 10.6));
}
main .section-title h2 { position: relative; }
@media (min-width: 576px) { main .section-title .section-title-overlay-text { font-size: 48px; } }
@media (min-width: 768px) { main .section-title .section-title-overlay-text { font-size: 65px; } }
@media (min-width: 992px) { main .section-title .section-title-overlay-text { font-size: 88px; } }
@media (min-width: 1200px) { main .section-title .section-title-overlay-text { font-size: 100px; --wm-top: 36px; } }
@media (min-width: 1400px) { main .section-title .section-title-overlay-text { font-size: 120px; } }

/* ================= My Work + pop-up tiles: symmetric on every screen ================= */
/* tablets: the same even rows as desktop (each row: Landscape + Reel + Square, all the same height) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .work-wall, .case-tiles { display: flex; flex-direction: column; columns: auto; gap: 14px; }
  .work-row, .case-row { display: flex; gap: 14px; }
  .work-tile, .case-tile { width: auto; margin-bottom: 0; }
}
/* phones: two-column grid. A Landscape spans both columns; Reels and Squares sit in matching pairs.
   The order (set by phoneOrder() in index.html) is: Landscape, Reel + Reel, Landscape, Square + Square, repeat. */
@media (max-width: 767.98px) {
  .work-wall, .case-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; columns: auto; align-items: start; }
  .work-row, .case-row { display: contents; }
  .work-tile, .case-tile { width: auto; margin-bottom: 0; }
  .work-tile.is-l, .case-tile.is-l { grid-column: 1 / -1; }
}
/* tablets + desktop: tiles keep the written row order (the phone regrouping above must not leak in, so rows stay mirrored) */
@media (min-width: 768px) {
  .work-tile, .case-tile { order: 0 !important; }
}

/* ================= case study pop-up: company details as a small line under the name (no side box) ================= */
.modal-content .modal-body .case-meta { font-size: 15px; line-height: 1.55; color: rgba(var(--black), .7); margin-bottom: 4px; }
.modal-content .modal-body .case-meta span + span::before { content: "·"; margin: 0 10px; color: rgba(var(--black), .4); }
.modal-content .modal-body .case-meta--list { margin-bottom: 28px; }
.modal-content .modal-body .case-meta--list b { font-weight: 600; color: rgb(var(--black)); }
.modal-content .modal-body .case-intro > p:not(.case-meta):not(.case-eyebrow) { max-width: 78ch; }
@media (max-width: 767.98px) {
  .modal-content .modal-body .case-meta { font-size: 13px; }
  .modal-content .modal-body .case-meta span { display: block; }
  .modal-content .modal-body .case-meta span + span::before { content: none; }
  .modal-content .modal-body .case-meta--list { margin-bottom: 22px; }
}
@media (max-width: 767.98px) { .modal-content .modal-body #case-body h1 { padding-right: 56px; } }

/* ================= phones: the greeting reads as one paragraph ("…to my portfolio. I specialize in…") ================= */
@media (max-width: 767.98px) {
  .hero-greeting .hg-line { display: inline; }
  .hero-greeting .hg-sub { font-size: 1em; margin-top: 0; color: inherit; letter-spacing: normal; }
}

/* ================= Work History numbers: steady digits while they count ================= */
.project-stats b { font-variant-numeric: tabular-nums; }

/* ================= "Copied — talk soon!" note for email links ================= */
.copy-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 1200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 22px; border-radius: 999px;
  background: rgb(20, 20, 22); color: rgb(var(--accent)); box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  transition: opacity .25s ease, transform .25s ease; text-align: center;
}
.copy-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.copy-toast b { font-size: 15px; font-weight: 700; }
.copy-toast span { font-size: 13px; color: rgba(255, 255, 255, .8); }
@media (prefers-reduced-motion: reduce) { .copy-toast { transition: none; } }

/* ================= FNDRS landing pages: browser-window cards in the pop-up + a scrollable viewer ================= */
/* cards: the top of each page in a simple browser frame; on hover the page glides down to its end */
.modal-content .modal-body .lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.modal-content .modal-body .lp-card { display: flex; flex-direction: column; padding: 0; text-align: left; background: rgb(var(--surface)); border: 1px solid rgba(var(--black), .14); border-radius: 12px; overflow: hidden; cursor: pointer; color: rgb(var(--black)); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.modal-content .modal-body .lp-card:hover, .modal-content .modal-body .lp-card:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, .12); border-color: rgba(var(--black), .3); outline: none; }
.lp-bar { display: flex; gap: 6px; align-items: center; height: 26px; padding: 0 12px; background: rgba(var(--black), .05); border-bottom: 1px solid rgba(var(--black), .1); }
.lp-bar i, .lp-dots i { display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--black), .22); }
.modal-content .modal-body .lp-shot { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; container-type: size; background: rgba(var(--black), .04); }
.modal-content .modal-body .lp-shot img { position: absolute; top: 0; left: 0; width: 100%; height: auto; max-width: none; border-radius: 0; transition: transform .9s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .modal-content .modal-body .lp-card:hover .lp-shot img { transform: translateY(calc(-100% + 100cqh)); transition: transform 9s cubic-bezier(.45, 0, .55, 1); }
}
.lp-cap { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.lp-cap b { font-size: 16px; font-weight: 600; line-height: 1.3; }
.lp-cap small { font-size: 13px; line-height: 1.4; color: rgba(var(--black), .62); }
/* viewer: a browser window over a dark background; the page scrolls inside it */
.lp-viewer { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 32px 24px; background: rgba(12, 12, 14, .86); }
.lp-viewer[hidden] { display: none; }
.lp-window { display: flex; flex-direction: column; width: min(1080px, 100%); height: 100%; background: rgb(var(--surface)); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lp-top { flex: none; display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 16px; background: rgb(var(--primary)); border-bottom: 1px solid rgba(var(--black), .12); }
.lp-dots { flex: none; display: flex; gap: 6px; }
.lp-tabs { position: relative; flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.lp-tabs::-webkit-scrollbar { display: none; }
.lp-tab { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(var(--black), .18); background: transparent; color: rgb(var(--black)); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease; }
.lp-tab:hover { border-color: rgba(var(--black), .45); }
.lp-tab:focus-visible { outline: 2px solid rgb(var(--black)); outline-offset: 2px; }
.lp-tab[aria-selected="true"] { background: rgb(var(--accent)); border-color: rgb(var(--accent)); color: rgb(var(--accent-ink)); font-weight: 600; }
.lp-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(var(--black), .2); background: rgb(var(--surface)); color: rgb(var(--black)); font-size: 20px; display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s ease, color .15s ease; }
.lp-close:hover, .lp-close:focus-visible { background: rgb(var(--black)); color: rgb(var(--surface)); outline: none; }
.lp-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: rgba(var(--black), .04); }
.lp-scroll:focus-visible { outline: none; }
.lp-scroll img { display: block; width: 100%; height: auto; }
@media (max-width: 767.98px) {
  .modal-content .modal-body .lp-grid { grid-template-columns: 1fr; gap: 14px; }
  .modal-content .modal-body .lp-shot { aspect-ratio: 16 / 10; }
  .lp-viewer { padding: 12px 10px; }
  .lp-top { gap: 10px; padding: 8px 8px 8px 12px; }
  .lp-dots { display: none; }
}
/* page viewer: zoom controls (magnifier − / % / +). Zoomed pages pan in both directions. */
.lp-zoom { flex: none; display: flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid rgba(var(--black), .18); border-radius: 999px; background: rgb(var(--surface)); }
.lp-zbtn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: rgb(var(--black)); font-size: 19px; display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s ease; }
.lp-zbtn:hover:not(:disabled), .lp-zbtn:focus-visible { background: rgb(var(--accent)); color: rgb(var(--accent-ink)); outline: none; }
.lp-zbtn:disabled { opacity: .3; cursor: default; }
.lp-zval { min-width: 44px; text-align: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-scroll { overflow: auto; }
.lp-scroll img { max-width: none; }
/* two cards (PracticePanther articles): two columns, a wider crop */
.modal-content .modal-body .lp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.modal-content .modal-body .lp-grid--2 .lp-shot { aspect-ratio: 16 / 10; }
@media (max-width: 767.98px) {
  .modal-content .modal-body .lp-grid--2 { grid-template-columns: 1fr; }
  .lp-zval { display: none; }
  .lp-zbtn { width: 34px; height: 34px; font-size: 18px; }
}
/* pop-up Outcome on phones: the three numbers stay in one row with dividers, like the Work History cards
   (Jules: stacked one per line looked off). "$600→$85" may wrap after the arrow (<wbr> from cases_build). */
@media (max-width: 767.98px) {
  .modal-content .modal-body ul.case-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .modal-content .modal-body ul.case-stats li { min-width: 0; padding: 0 10px; border-right: 0; border-left: 1px solid rgba(var(--black), .15); }
  .modal-content .modal-body ul.case-stats li:first-child { padding-left: 0; border-left: 0; }
  .modal-content .modal-body ul.case-stats li:last-child { padding-right: 0; }
  .modal-content .modal-body .case-stats b { font-size: clamp(18px, 5.4vw, 24px); letter-spacing: -.2px; }
  .modal-content .modal-body .case-stats span { font-size: 13px; line-height: 1.35; }
}
/* page viewer on phones and tablets: pinch to zoom (two fingers), with a short "Pinch to zoom" hint the first times it opens.
   The magnifier buttons are desktop only. */
.lp-window { position: relative; }
.lp-scroll { touch-action: pan-x pan-y; }
.lp-hint { position: absolute; left: 50%; bottom: 28px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; background: rgba(20, 20, 22, .88); color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); pointer-events: none; opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .3s ease, transform .3s ease, visibility .3s; }
.lp-hint.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.lp-hint-ic { flex: none; color: rgb(var(--accent)); }
.lp-hint-ic .lp-f1, .lp-hint-ic .lp-f2 { transform-box: fill-box; transform-origin: center; }
.lp-hint.is-on .lp-f1 { animation: lpSpread1 1.4s ease-in-out infinite; }
.lp-hint.is-on .lp-f2 { animation: lpSpread2 1.4s ease-in-out infinite; }
@keyframes lpSpread1 { 0%, 100% { transform: translate(2px, -2px); } 50% { transform: translate(-3px, 3px); } }
@keyframes lpSpread2 { 0%, 100% { transform: translate(-2px, 2px); } 50% { transform: translate(3px, -3px); } }
@media (prefers-reduced-motion: reduce) { .lp-hint.is-on .lp-f1, .lp-hint.is-on .lp-f2 { animation: none; } }
@media (hover: none) and (pointer: coarse) { .lp-zoom { display: none; } }
/* Work History open button: see-through so the cover (e.g. the FNDRS logo) shows behind it; white ring and white waves (Jules).
   A light dark tint keeps the white arrow readable when it sits over white lettering. Hover fills it yellow. */
html[data-site-theme] .projects .project-card .card-arrow { background: transparent; border: 1.5px solid rgba(255, 255, 255, .8); box-shadow: none; }
html[data-site-theme] .projects .project-card .card-arrow::before,
html[data-site-theme] .projects .project-card .card-arrow::after { border-color: rgba(255, 255, 255, .95); }
html[data-site-theme] .projects .project-card .card-arrow .arrow-inner { background: rgba(20, 20, 22, .28); border: 2px solid #fff; color: #fff; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
html[data-site-theme] .projects .project-card .card-arrow .arrow-inner i { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
html[data-site-theme] .projects .single-project:hover .card-arrow .arrow-inner,
html[data-site-theme] .projects .single-project:focus-visible .card-arrow .arrow-inner { background: rgb(var(--accent)); border-color: rgb(var(--accent)); color: rgb(var(--accent-ink)); }
html[data-site-theme] .projects .single-project:hover .card-arrow .arrow-inner i { filter: none; }
/* open button on light covers (PracticePanther): a faint dark edge keeps the white rings visible; still white on dark covers */
html[data-site-theme] .projects .project-card .card-arrow { box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), inset 0 0 0 1px rgba(0, 0, 0, .1); }
html[data-site-theme] .projects .project-card .card-arrow::before,
html[data-site-theme] .projects .project-card .card-arrow::after { box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
html[data-site-theme] .projects .project-card .card-arrow .arrow-inner { box-shadow: 0 2px 12px rgba(0, 0, 0, .2); }
/* Work History numbers: "$600→$85" style values count down from a wider "$600→$600"; the script reserves that width (--hold) on desktop so nothing overlaps or jumps */
@media (min-width: 768px) { .project-stats li { min-width: var(--hold, min-content); } }
/* award badges (IPFone GD USA 2019, PracticePanther Gold Stevie 2017): top-left of the Work History cover, and under the company details in the pop-up */
.award-badge { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; background: rgba(255, 255, 255, .95); border: 1px solid rgba(var(--black), .12); border-radius: 12px; color: rgb(var(--black)); text-align: left; }
.award-badge .award-img { display: block; width: auto; height: 48px; border-radius: 3px; }
.award-badge .award-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(145deg, #F6DC7E, #C8952B); color: #fff; font-size: 22px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.award-badge b { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; }
.award-badge small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; color: rgba(var(--black), .65); }
.award-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.projects .project-card .award-badges--card { position: absolute; top: 18px; left: 18px; z-index: 5; max-width: calc(100% - 36px); pointer-events: none; }
.projects .project-card .award-badges--card .award-badge { box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.modal-content .modal-body .award-badges--pop { gap: 12px; margin: -10px 0 28px; }
@media (max-width: 767.98px) {
  .projects .project-card .award-badges--card { top: 10px; left: 10px; gap: 6px; max-width: calc(100% - 20px); }
  .projects .project-card .award-badges--card .award-badge { gap: 8px; padding: 5px 12px 5px 5px; border-radius: 10px; }
  .projects .project-card .award-badges--card .award-img { height: 32px; }
  .projects .project-card .award-badges--card .award-ic { width: 30px; height: 30px; font-size: 16px; }
  .projects .project-card .award-badges--card b { font-size: 13px; }
  .projects .project-card .award-badges--card small { display: none; }
}
/* phones: the card cover has room for one badge without covering the logo; the rest show in the pop-up */
@media (max-width: 767.98px) { .projects .project-card .award-badges--card .award-badge + .award-badge { display: none; } }
/* pop-ups: no divider line under Outcome when nothing follows it (Jules: odd to end the pop-up on a line).
   It stays as a divider before Landing pages (FNDRS) and Articles (PracticePanther). */
.modal-content .modal-body .outcome.outcome--end { border-bottom: 0; padding-bottom: 0; }
/* Tech Stack: tiles that have their official logo (white circle, logo inside). The rest keep the dashed LOGO slot until their files arrive. */
.stack-wrap .stack-tile.has-logo .stack-icon,
.stack-wrap .stack-tile.has-logo:hover .stack-icon { background: #fff; border: 1px solid rgba(var(--black), .14); }
.stack-wrap .stack-tile.has-logo .stack-icon::after { content: none; }
.stack-tile.has-logo .stack-icon img { display: block; width: 64%; height: 64%; object-fit: contain; }
/* four landing pages (FNDRS): a 2 x 2 grid with the wider crop, like the two articles */
.modal-content .modal-body .lp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.modal-content .modal-body .lp-grid--4 .lp-shot { aspect-ratio: 16 / 10; }
@media (max-width: 767.98px) { .modal-content .modal-body .lp-grid--4 { grid-template-columns: 1fr; } }
/* Tech Stack brand logos (from the open Simple Icons / Iconify sets), one colour like the old icons: ink on the yellow circle, yellow on hover.
   Tools without a logo in those sets keep their simple icon. */
.stack-icon .stack-logo { display: block; width: 50%; height: 50%; }
