

/* ═══════════════════════════════════════
   VARIABLES
   ═══════════════════════════════════════ */

:root {
  --white: #FFFFFF;
  --main-color: #b8463a;
  --background-section-2: #e8e8e8;
  --background-body: #E5E5E5;
  --shadow-color: #c5c5c5;
  --title-font: "Vollkorn";
  --text-font: "Open Sans";
  --text-color: #25283B;
  --font-size-text: 1em;
  --font-size-title: 5.35em;
  --font-size-categories: 2em;
  --border-r: 0.5em;

  /* Easing */
  --ease-reveal: cubic-bezier(0.22, 0.61, 0.36, 1);
  --reveal-duration: 0.9s;

  /* Dot nav */
  --dot-size: 10px;
  --dot-active-width: 32px;
  --dot-color: var(--shadow-color);
  --dot-active-color: var(--main-color);
  --dot-gap: 4px;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.35);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: 18px;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

  /* SVG Ondulaciones*/
  --footer-h: calc(0.8rem + 1.5em);
}


/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */

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

body {
  font-family: var(--text-font), sans-serif;
  font-weight: 300;
  background: var(--background-body);
  color: var(--text-color);
  overflow-x: hidden;
}


/* ═══════════════════════════════════════
   CONTAINER — replaces Tailwind max-w-7xl
   ═══════════════════════════════════════ */

.container-main {
  width: 100%;
  max-width: 80rem;       /* 1280px — same as Tailwind max-w-7xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;     /* px-4 */
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-main {
    padding-left: 1.5rem;  /* sm:px-6 */
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-main {
    padding-left: 2rem;    /* lg:px-8 */
    padding-right: 2rem;
  }
}


/* ═══════════════════════════════════════
   SVG ICONS — base styling
   ═══════════════════════════════════════ */

.icon {
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════
   SCROLL SNAP
   ═══════════════════════════════════════ */

main {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

section {
  width: 100%;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}



/* ═══════════════════════════════════════
   DOT NAVIGATION
   ═══════════════════════════════════════ */

.dot-nav {
  position: fixed;
  right: calc(2rem + env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--dot-gap);
}

.dot-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 0;
  outline: none;
  min-height: 44px;    /* Apple/Google recommended touch target */
  min-width: 44px;
  justify-content: flex-end;
}

/* Icon: hidden on desktop, shown on mobile tab bar */
.dot-nav__icon {
  display: none;
}

.dot-nav__label {
  font-family: var(--text-font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-color);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.dot-nav__item:hover .dot-nav__label,
.dot-nav__item.active .dot-nav__label {
  opacity: 1;
  transform: translateX(0);
}

.dot-nav__dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 999px;
  background: var(--dot-color);
  transition:
    width 0.5s cubic-bezier(0.34, 1.8, 0.64, 1),
    background 0.3s ease,
    box-shadow 0.3s ease;
  flex-shrink: 0;
}

.dot-nav__item:hover .dot-nav__dot {
  background: var(--main-color);
  opacity: 0.6;
  width: calc(var(--dot-size) + 4px);
}

.dot-nav__item.active .dot-nav__dot {
  width: var(--dot-active-width);
  background: var(--dot-active-color);
  box-shadow: 0 0 12px rgba(184, 70, 58, 0.35);
}


/* ─── Radial blur halo behind dot-nav (desktop/tablet) ─── */

.dot-nav::before {
  content: '';
  position: absolute;
  inset: -3rem -4rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 10%, transparent 65%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 10%, transparent 65%);
  border-radius: 3rem;
  z-index: -1;
  pointer-events: none;
}


/* ─── macOS Dock magnification (pointer devices only) ─── */

@media (hover: hover) and (pointer: fine) {

  .dot-nav__item {
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: right center;
  }

  /* Hovered item — largest */
  .dot-nav__item:hover {
    transform: scale(1.45);
  }

  /* Direct neighbor (next) */
  .dot-nav__item:hover + .dot-nav__item {
    transform: scale(1.2);
  }

  /* Direct neighbor (previous) via :has() */
  .dot-nav__item:has(+ .dot-nav__item:hover) {
    transform: scale(1.2);
  }

  /* Two items away (next) */
  .dot-nav__item:hover + .dot-nav__item + .dot-nav__item {
    transform: scale(1.08);
  }

  /* Two items away (previous) via :has() */
  .dot-nav__item:has(+ .dot-nav__item + .dot-nav__item:hover) {
    transform: scale(1.08);
  }

}


/* ─── Adaptive nav theme — dark background mode ─── */

.dot-nav--on-dark .dot-nav__label {
  color: var(--white);
}

.dot-nav--on-dark .dot-nav__dot {
  background: rgba(255, 255, 255, 0.5);
}

.dot-nav--on-dark .dot-nav__item:hover .dot-nav__dot {
  background: var(--white);
  opacity: 0.8;
}

.dot-nav--on-dark .dot-nav__item.active .dot-nav__dot {
  background: var(--white);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

/* Smooth transition between themes */
.dot-nav .dot-nav__label,
.dot-nav .dot-nav__dot {
  transition-property: color, background, box-shadow, opacity, width, transform;
  transition-duration: 0.4s;
  transition-timing-function: ease;
}


/* ═══════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════ */

.main-title {
  font-size: var(--font-size-title);
}

h1, h3, h5, .main-title {
  font-family: var(--title-font);
}

h2, h4, h6 {
  font-family: var(--text-font);
}

.highlight {
  font-weight: bold;
  background-image: url("../images/peach-brush.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

p {
  font-size: var(--font-size-text);
  color: var(--text-color);
}

a {
  color: var(--main-color);
  font-size: var(--font-size-text);
}

img {
  border-radius: var(--border-r);
}

/* Neumorphic shadow — apply explicitly */
.img-neumorphic {
  box-shadow: 8px 8px 13px var(--shadow-color), -8px -8px 13px var(--white);
}


/* ═══════════════════════════════════════
   BUTTONS — Glassmorphism
   ═══════════════════════════════════════ */

.button {
  padding: 0.7em 1.7em;
  border-radius: var(--border-r);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid var(--glass-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.3s ease;
}

.button > a {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--main-color);
  filter: brightness(95%);
  text-align: center;
}

.button:hover {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  cursor: pointer;
}

.button:hover > a,
.button:active > a {
  color: var(--main-color);
  filter: brightness(75%);
}




/* ═══════════════════════════════════════
   SECTION: INTRODUCTION
   ═══════════════════════════════════════ */

#introduction-box {
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  align-content: center;
  height: 100vh;
  width: 100%;
  background: linear-gradient(to bottom, #eef5f7 60%, var(--background-section-2));
  color: var(--text-color);
  overflow: hidden;
}

#introduction {
  overflow: visible;
}



/* ─── Intro animations — slide from left, 3 lines staggered, fire once ─── */

@keyframes slideFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes imageReveal {
  0% {
    opacity: 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }
  100% {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

#introduction .title {
  padding-left: 1em;
  grid-column: 1 / -1;
  grid-row: 1;
  font-family: var(--title-font);
  font-size: var(--font-size-title);
  line-height: 1.15;
  width: 100%;
  z-index: 2;
}

#introduction .intro-line {
  display: block;
  opacity: 0;
  animation-name: slideFromLeft;
  animation-duration: 1.1s;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
  animation-fill-mode: both;
}

#introduction .intro-line--1 { animation-delay: 0.3s; }
#introduction .intro-line--2 { animation-delay: 0.65s; }
#introduction .intro-line--3 { animation-delay: 1.0s; }
#introduction .intro-line--4 { animation-delay: 1.35s; }

/* ─── Intro CTA buttons ─── */

.intro-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-cv,
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.65em 1.5em;
  border-radius: var(--border-r);
  font-family: var(--text-font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-cv {
  background: var(--main-color);
  color: var(--white);
  border: 2px solid var(--main-color);
  box-shadow: 0 4px 16px rgba(184, 70, 58, 0.3);
}

.btn-cv:hover {
  background: transparent;
  color: var(--main-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(184, 70, 58, 0.35);
}

.btn-contact {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid var(--main-color);
  color: var(--main-color);
}

.btn-contact:hover {
  background: var(--main-color);
  color: var(--white);
  transform: translateY(-2px);
}

#introduction .introduction-img {
  grid-row: 1;
  grid-column: 2;
  opacity: 0;
  animation-name: imageReveal;
  animation-duration: 1.2s;
  animation-timing-function: cubic-bezier(0.5, 0, 0.1, 1);
  animation-delay: 1.5s;
  animation-fill-mode: both;
}

#introduction .introduction-img img {
  display: block;
  width: 100%;
  height: auto;
}

.intro-bg-img {
  height: 100vh;
  width: 100%;
  object-fit: cover;
}

#introduction-box:active * {
  animation: none !important;
}


/* ═══════════════════════════════════════
/* ═══════════════════════════════════════
   INFINITE SCROLL — Shared base
   ═══════════════════════════════════════ */

.infinite-loop {
  display: flex;
  overflow-x: hidden;  /* fallback for Safari < 16 */
  overflow-x: clip;
  overflow-y: visible;
  position: relative;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    var(--white) 8%,
    var(--white) 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    var(--white) 8%,
    var(--white) 92%,
    transparent
  );
}

.infinite-loop__track {
  list-style: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: max-content;
  gap: var(--loop-gap, 20px);
  padding: 0;
  margin: 0;
  animation: infiniteScroll var(--loop-speed, 30s) linear infinite;
  animation-direction: var(--loop-direction, normal);
}

.infinite-loop:hover .infinite-loop__track {
  animation-play-state: paused;
}

@keyframes infiniteScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}


/* ═══════════════════════════════════════
   INSTANCE: Tools scroll
   ═══════════════════════════════════════ */

.loop-tools {
  --loop-speed: 28s;
  --loop-gap: 16px;
  --loop-direction: normal;
  width: 100%;
  padding: 2vh 0;
}

.loop-tools .loop-pill {
  padding: 8px 16px;
  white-space: nowrap;
  border-radius: var(--border-r);
  font-family: var(--text-font);
  font-size: 0.85em;
  background: var(--white);
  box-shadow: 8px 8px 13px var(--shadow-color), -8px -8px 13px var(--white);
  color: var(--text-color);
  opacity: 0.7;
}


/* ═══════════════════════════════════════
   SECTION: ABOUT
   ═══════════════════════════════════════ */

#about {
  background: var(--white);
  padding: 2rem 0 calc(var(--footer-h) + 2rem);
  height: auto;
  min-height: 100vh;
  overflow: visible;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* ─── Experience section — mirrors about layout ─── */

#experience {
  background: var(--white);
  padding: 2rem 0 calc(var(--footer-h) + 2rem);
  height: auto;
  min-height: 100vh;
  overflow: visible;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}


/* ─── Skills Grid ─── */

/* ─── Soft Skills — subtitle line ─── */

.soft-skills {
  font-family: var(--title-font);
  font-size: 1.05em;
  line-height: 1.8;
  color: var(--text-color);
  opacity: 0.7;
  text-align: center;
  padding: 1.5rem 0 1rem;
  letter-spacing: 0.3px;
}


/* ─── About content ─── */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0;
}

.about-content .main-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.about-content p {
  line-height: 1.8;
  margin-bottom: 0.6rem;
}

.about-content img {
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* ═══════════════════════════════════════
   SECTION: PROJECTS GRID — Scannable
   ═══════════════════════════════════════ */

#projects-grid {
  background: var(--white);
  padding: 3rem 0 calc(var(--footer-h) + 2rem);
  height: auto;
  min-height: 100vh;
  overflow: visible;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

#projects-grid::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184, 70, 58, 0.12) 0%, transparent 70%);
  top: -5%;
  right: -3%;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.grid-section-title {
  font-family: var(--title-font);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  color: var(--text-color);
  position: relative;
  z-index: 1;
}

.grid-section-title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--main-color);
  margin-top: 0.5rem;
  border-radius: 2px;
}

.projects-grid-wrap,  /* legacy — safe to keep */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

/*
  Bento layout — Desktop (3 cols, 4 cards):
  ┌──────────┬──────────┐
  │  1 hero  │  2       │
  │  (2×1)   ├──────────┤
  │          │  3       │
  ├──────────┴──────────┤
  │  4 wide             │
  └─────────────────────┘
*/

.bento--hero { grid-column: span 2; grid-row: span 2; }
.bento--wide { grid-column: span 3; }


/* ─── Bento Card ─── */

.bento-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--background-section-2);
  box-shadow: 4px 4px 12px var(--shadow-color), -4px -4px 10px var(--white);
  transition: transform 0.4s ease, box-shadow 0.35s ease, filter 0.4s ease;
  cursor: pointer;
}

/* When hovering a specific card, blur only the other cards (pointer devices only) */
@media (hover: hover) and (pointer: fine) {
  .bento-grid:has(.bento-card:hover) .bento-card:not(:hover) {
    filter: blur(6px);
    transform: scale(0.96);
  }

  /* The hovered card pops */
  .bento-grid .bento-card:hover {
    filter: blur(0);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 6px 12px 24px var(--shadow-color), -4px -4px 10px var(--white);
    z-index: 2;
  }
}

/* Thumbnail fills the entire card */
.bento-card__thumb {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bento-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.6s var(--ease-reveal);
}

.bento-card:hover .bento-card__thumb img {
  transform: scale(1.06);
}

/* Dark gradient overlay so text is readable */
.bento-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    transparent 100%
  );
  z-index: 1;
  transition: background 0.3s ease;
}

.bento-card:hover .bento-card__overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    transparent 100%
  );
}

/* Content at the bottom */
.bento-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bento-card__title {
  font-family: var(--title-font);
  font-size: 1.05em;
  color: var(--white);
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Hero card gets bigger title */
.bento--hero .bento-card__title {
  font-size: 1.5em;
}

.bento-card__desc {
  font-size: 0.78em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Only show challenge text on hero and wide */
.bento-card:not(.bento--hero):not(.bento--wide) .bento-card__challenge {
  display: none;
}

.bento-card__date {
  font-family: var(--text-font);
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

/* CTA arrow — appears on hover, below concept badge */
.bento-card__cta {
  position: absolute;
  top: 2.4rem;
  left: 1rem;
  z-index: 3;
  font-family: var(--text-font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--white);
  text-decoration: none;
  background: rgba(184, 70, 58, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.35em 0.8em;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.bento-card:hover .bento-card__cta {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════
   CATEGORY ICON — Circle badge
   ═══════════════════════════════════════ */

.bento-card__icon {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover .bento-card__icon {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* Icon color variants */
.bento-icon--ux       { background: rgba(184, 70, 58, 0.8); }
.bento-icon--ui       { background: rgba(80, 120, 200, 0.8); }
.bento-icon--web      { background: rgba(60, 160, 100, 0.8); }
.bento-icon--mobile   { background: rgba(140, 85, 190, 0.8); }
.bento-icon--research { background: rgba(230, 160, 50, 0.8); }
.bento-icon--ecommerce{ background: rgba(60, 160, 100, 0.8); }
.bento-icon--fintech  { background: rgba(45, 120, 180, 0.8); }
.bento-icon--service  { background: rgba(184, 70, 58, 0.8); }
.bento-icon--transport{ background: rgba(60, 130, 160, 0.8); }
.bento-icon--default  { background: rgba(100, 100, 100, 0.7); }


/* ═══════════════════════════════════════
   CONCEPT BADGE — on bento cards
   ═══════════════════════════════════════ */

.bento-card__type-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 3;
  font-family: var(--text-font);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.25em 0.65em;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}


/* ═══════════════════════════════════════
   BENTO CARD — Subtitle & Process tags
   ═══════════════════════════════════════ */

.bento-card__subtitle {
  font-family: var(--text-font);
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.bento-card__challenge {
  font-size: 0.78em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  margin: 0.15rem 0 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento-card__process-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.bento-card__process-tag {
  display: inline-block;
  font-family: var(--text-font);
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  padding: 0.15em 0.5em;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

/* Hide process tags on standard cards — show on hover */
.bento-card:not(.bento--hero):not(.bento--wide) .bento-card__process-tags {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.bento-card:not(.bento--hero):not(.bento--wide):hover .bento-card__process-tags {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════
   VIEW MORE BUTTON
   ═══════════════════════════════════════ */

.bento-more {
  text-align: center;
  padding: 2rem 0 1rem;
  position: relative;
  z-index: 1;
}

.btn-view-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 2em;
  border-radius: var(--border-r);
  font-family: var(--text-font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: var(--main-color);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid var(--main-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-view-more:hover {
  background: var(--main-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(184, 70, 58, 0.3);
}


/* ─── Grid subtitle ─── */

.grid-section-subtitle {
  font-size: 0.85em;
  color: var(--text-color);
  opacity: 0.55;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

/* ─── Thumbnail placeholder (no image) ─── */

.bento-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0dfe3 0%, #c5c5c5 50%, #b8b5bd 100%);
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL SKELETON SCREENS
   Absolute overlays per section — fade out on page load.
   Uses shimmer gradient animation for a polished loading feel.
   ═══════════════════════════════════════════════════════════ */

/* ─── Base skeleton overlay ─── */

.skeleton-screen {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Hide all skeleton screens once page loads */
html.page-loaded .skeleton-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ─── Shared skeleton primitives ─── */

.sk-line {
  border-radius: 6px;
  height: 1rem;
  margin-bottom: 0.7rem;
  background: linear-gradient(110deg, var(--shadow-color) 30%, var(--background-section-2) 50%, var(--shadow-color) 70%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s ease-in-out infinite;
}

.sk-line--xl   { width: 55%; height: 2rem; }
.sk-line--lg   { width: 45%; height: 1.3rem; }
.sk-line--md   { width: 60%; }
.sk-line--sm   { width: 30%; height: 0.8rem; }
.sk-line--full { width: 90%; }

.sk-btn-rect {
  width: 160px;
  height: 42px;
  border-radius: var(--border-r);
  margin-top: 0.5rem;
  background: linear-gradient(110deg, var(--shadow-color) 30%, var(--background-section-2) 50%, var(--shadow-color) 70%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s ease-in-out infinite;
}


/* ═══ 1. INTRODUCTION skeleton ═══ */

.skeleton-screen--intro {
  background: var(--white);
}

.sk-intro-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  padding: 0 8%;
  max-width: 50%;
}

.sk-intro-img {
  flex: 0 0 45%;
  height: 80%;
  border-radius: 1rem;
  background: linear-gradient(110deg, var(--shadow-color) 30%, var(--background-section-2) 50%, var(--shadow-color) 70%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s ease-in-out infinite;
}




/* ═══ 4. ABOUT skeleton ═══ */

.skeleton-screen--about {
  background: var(--white);
  align-items: flex-start;
  overflow-y: auto;
}

.sk-about-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Skills row */
.sk-skills-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.sk-skill-box {
  height: 100px;
  border-radius: 0.8rem;
  background: linear-gradient(110deg, var(--shadow-color) 30%, var(--background-section-2) 50%, var(--shadow-color) 70%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s ease-in-out infinite;
  box-shadow: 4px 4px 10px var(--shadow-color), -4px -4px 10px var(--white);
}

/* Tools marquee */
.sk-tools-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.sk-pill {
  width: 80px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--shadow-color) 30%, var(--background-section-2) 50%, var(--shadow-color) 70%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s ease-in-out infinite;
}

/* Timeline row */
.sk-timeline-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.sk-timeline-card {
  height: 120px;
  border-radius: 0.8rem;
  background: linear-gradient(110deg, var(--shadow-color) 30%, var(--background-section-2) 50%, var(--shadow-color) 70%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s ease-in-out infinite;
  box-shadow: 4px 4px 10px var(--shadow-color), -4px -4px 10px var(--white);
}

/* About bottom: text + image */
.sk-about-bottom {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.sk-about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sk-about-img-rect {
  flex: 0 0 35%;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  background: linear-gradient(110deg, var(--shadow-color) 30%, var(--background-section-2) 50%, var(--shadow-color) 70%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s ease-in-out infinite;
}


/* ─── Bento-specific loading skeletons ─── */

.bento-card--skeleton {
  pointer-events: none;
  background: var(--background-section-2);
}

.bento-card--skeleton .skeleton-pulse {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

@keyframes skeletonPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.7; }
}

.skeleton-pulse {
  animation: skeletonPulse 1.5s ease-in-out infinite;
  background: linear-gradient(110deg, var(--shadow-color) 30%, var(--background-section-2) 50%, var(--shadow-color) 70%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s ease-in-out infinite;
}

@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Error state ─── */

.grid-error {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-color);
  opacity: 0.7;
}

.grid-error p {
  font-size: 0.95em;
  margin-bottom: 0.8rem;
}

.grid-error__link {
  font-family: var(--text-font);
  font-weight: 700;
  font-size: 0.9em;
  color: var(--main-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  transition: gap 0.3s ease;
}

.grid-error__link:hover {
  gap: 0.6em;
}


/* ═══════════════════════════════════════
   EXPERIENCE TIMELINE
   ═══════════════════════════════════════ */

.timeline-wrap {
  padding: 1.5rem 0 1rem;
}

.timeline-wrap .main-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin-bottom: 1.2rem;
}

.timeline-wrap .main-title::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--main-color);
  margin-top: 0.4rem;
  border-radius: 2px;
}

.timeline {
  position: relative;
  padding-left: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

/* Vertical line behind the items (only visible on stacked layout) */
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--main-color) 0%, var(--shadow-color) 100%);
  border-radius: 2px;
  display: none;   /* hidden in horizontal grid, shown on mobile */
}

.timeline__item {
  position: relative;
  padding: 1rem 1.2rem;
  border-radius: 0.8rem;
  background: var(--white);
  box-shadow: 3px 3px 8px var(--shadow-color), -3px -3px 8px var(--white);
  border-left: 3px solid var(--main-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline__item:hover {
  transform: translateY(-2px);
  box-shadow: 4px 6px 14px var(--shadow-color), -3px -3px 8px var(--white);
}

.timeline__marker {
  display: none;   /* hidden in card grid, shown on stacked mobile */
}

.timeline__date {
  font-family: var(--text-font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--main-color);
}

.timeline__role {
  font-family: var(--title-font);
  font-size: 1.05em;
  color: var(--text-color);
  margin: 0.15rem 0 0;
}

.timeline__company {
  font-size: 0.85em;
  font-weight: 400;
  color: var(--text-color);
  opacity: 0.65;
  margin: 0;
}

.timeline__summary {
  font-size: 0.8em;
  line-height: 1.55;
  color: var(--text-color);
  opacity: 0.7;
  margin: 0.4rem 0 0;
}


/* ─── About content (updated) ─── */

.about-content .main-title::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--main-color);
  margin-top: 0.4rem;
  border-radius: 2px;
}


/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  border-top: 1px solid var(--background-section-2);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-color);
  padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom, 0px));
  font-size: var(--font-size-text);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.social-wrap {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.social-wrap .rrss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}


/* ═══════════════════════════════════════
   SECTION REVEAL — Scroll-driven entrance
   ═══════════════════════════════════════
   PROGRESSIVE ENHANCEMENT:
   Content is visible by default.
   JS adds .has-reveal to <html> to enable animations.
   If JS fails or observers don't fire, everything stays visible.
*/

/*  Hidden state — ONLY when JS has confirmed observers work  */
html.has-reveal .reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(4px);
  transition:
    opacity var(--reveal-duration) var(--ease-reveal),
    transform var(--reveal-duration) var(--ease-reveal),
    filter  var(--reveal-duration) var(--ease-reveal);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform, filter;
}

/*  Visible state — toggled by JS IntersectionObserver  */
html.has-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/*  Skill-group cards stagger automatically  */




/* ═══════════════════════════════════════
   PROJECT DETAIL — Smooth crossfade
   ═══════════════════════════════════════ */

/* ═══════════════════════════════════════
   MOTION TOGGLE BUTTON
   ═══════════════════════════════════════ */

.motion-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-user-select: none;
  user-select: none;
}

.motion-toggle__label {
  font-family: var(--text-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--main-color);
  transition: color 0.3s ease;
}

/* Track */
.motion-toggle__track {
  position: relative;
  width: 46px;
  height: 22px;
  border-radius: 11px;
  background: var(--main-color);
  transition: background 0.3s ease;
  overflow: hidden;
}

/* ON / OFF labels inside track */
.motion-toggle__on,
.motion-toggle__off {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  font-family: var(--text-font);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.motion-toggle__on {
  left: 6px;
  color: var(--white);
  opacity: 1;
}

.motion-toggle__off {
  right: 6px;
  color: var(--white);
  opacity: 0;
}

/* Thumb */
.motion-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 26px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: left 0.3s ease;
}

/* OFF state (reduce-motion active) */
html.reduce-motion .motion-toggle__label {
  color: var(--main-color);
}

html.reduce-motion .motion-toggle__track {
  background: var(--shadow-color);
}

html.reduce-motion .motion-toggle__thumb {
  left: 2px;
}

html.reduce-motion .motion-toggle__on {
  opacity: 0;
}

html.reduce-motion .motion-toggle__off {
  opacity: 1;
}


/* ═══════════════════════════════════════
   REDUCE MOTION — User toggle
   ═══════════════════════════════════════ */

html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
  animation-duration: 0.001s !important;
  animation-delay: 0s !important;
  transition-duration: 0.001s !important;
}

html.reduce-motion .infinite-loop__track {
  animation-play-state: paused !important;
}

html.reduce-motion .skeleton-screen {
  display: none !important;
}

/* Also respect OS-level preference */
/*  prefers-reduced-motion is now handled by the inline <script>
    in index.html, which adds html.reduce-motion when:
      – the user explicitly toggled motion OFF, OR
      – on first visit if the OS preference is "reduce".
    The html.reduce-motion rules above cover all cases.
    This keeps the toggle as the single source of truth and
    lets the user override the OS preference.               */


/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

/* ═══════════════════════════════════════
   RESPONSIVE — Tablet
   ═══════════════════════════════════════ */

@media (max-width: 1024px) {
  .projects-grid-wrap,
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .bento--hero { grid-column: span 2; grid-row: span 1; }
  .bento--wide { grid-column: span 2; }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* Dot-nav: compact on tablet to avoid content overlap */
  .dot-nav {
    right: calc(0.8rem + env(safe-area-inset-right, 0px));
  }

  .dot-nav__label {
    font-size: 0.7em;
  }

  /* Skeleton responsive — tablet */
  .sk-skills-row { grid-template-columns: repeat(2, 1fr); }
  .sk-timeline-row { grid-template-columns: repeat(2, 1fr); }
}


/* ═══════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  :root {
    --font-size-title: 2.6em;
    --font-size-categories: 1.2em;
    /* Original footer: calc(0.8rem + 1.5em) ≈ 37px
       Tab bar adds ~3rem — increase total for content clearance
       env(safe-area-inset-bottom) accounts for iPhone home bar */
    --footer-h-original: calc(0.8rem + 1.5em + env(safe-area-inset-bottom, 0px));
    --footer-h: calc(0.8rem + 1.5em + 3rem + env(safe-area-inset-bottom, 0px));
  }

  /* ─── Scroll snap: softer on mobile to avoid trapping ─── */
  main {
    scroll-snap-type: y proximity;
  }

  /* ─── Intro: image 90% centered, text overlaid ─── */
  #introduction-box {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    padding: 0;
    position: relative;
  }

  #introduction .introduction-img {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    padding: 5vh 5vw;
  }

  #introduction .introduction-img img {
    width: 90%;
    height: 90vh;
    object-fit: cover;
    border-radius: var(--border-r);
    opacity: 0;
    animation-name: imageReveal;
    animation-duration: 1.2s;
    animation-timing-function: cubic-bezier(0.5, 0, 0.1, 1);
    animation-delay: 1.5s;
    animation-fill-mode: both;
  }

  #introduction .title {
    grid-column: 1;
    grid-row: 1;
    z-index: 3;
    padding: 0 1.2em;
    align-self: center;
    font-size: var(--font-size-title);
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
  }

  /* ─── Bento Grid: 2 columns on mobile ─── */
  .grid-section-title {
    font-size: 1.6rem;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 0.7rem;
  }

  .bento--hero { grid-column: span 2; grid-row: span 1; }
  .bento--wide { grid-column: span 2; }

  .bento-card__title { font-size: 0.85em; }
  .bento--hero .bento-card__title { font-size: 1.1em; }
  .bento-card__icon { width: 30px; height: 30px; font-size: 0.7rem; }
  .bento-card__type-badge { font-size: 0.5rem; }
  .bento-card__process-tag { font-size: 0.5rem; }

  /* Show process tags always on mobile (no hover) */
  .bento-card:not(.bento--hero):not(.bento--wide) .bento-card__process-tags {
    opacity: 1;
    transform: none;
  }

  .btn-view-more { font-size: 0.8rem; padding: 0.65em 1.6em; }

  .soft-skills {
    font-size: 0.9em;
    padding: 1rem 0 0.5rem;
  }

  /* ─── Timeline: stacked vertical ─── */
  .timeline {
    grid-template-columns: 1fr;
    padding-left: 1.8rem;
    gap: 0;
  }

  .timeline::before {
    display: block;
  }

  .timeline__item {
    border-left: none;
    margin-bottom: 1rem;
    margin-left: 0.5rem;
  }

  .timeline__marker {
    display: block;
    position: absolute;
    left: -1.8rem;
    top: 1.2rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--main-color);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--main-color);
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  /* ─── Nav: bottom tab bar on mobile ─── */
  .dot-nav {
    position: fixed;
    top: auto;
    right: auto;
    bottom: var(--footer-h-original);
    left: 0;
    width: 100%;
    transform: none;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--background-section-2);
    padding: 0.45rem 0 0.35rem;
    z-index: 1001;
  }

  /* Tab bar has its own opaque bg — ignore dark theme */
  .dot-nav--on-dark .dot-nav__label,
  .dot-nav--on-dark .dot-nav__item.active .dot-nav__label {
    color: var(--shadow-color);
  }
  .dot-nav--on-dark .dot-nav__item.active .dot-nav__icon {
    color: var(--main-color);
  }
  .dot-nav--on-dark .dot-nav__item.active .dot-nav__label {
    color: var(--main-color);
  }

  /* Disable radial halo on mobile — tab bar has its own glass bg */
  .dot-nav::before {
    display: none;
  }

  .dot-nav__item {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0.15rem 0.5rem;
    min-width: 60px;
    /* Reset dock magnification */
    transform: none !important;
    transform-origin: center;
  }

  /* Hide the dot pill on mobile */
  .dot-nav__dot {
    display: none;
  }

  /* Show icon on mobile */
  .dot-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--shadow-color);
    transition: color 0.3s ease, transform 0.3s ease;
  }

  .dot-nav__item.active .dot-nav__icon {
    color: var(--main-color);
    transform: scale(1.15);
  }

  /* Show label under icon */
  .dot-nav__label {
    display: block;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--shadow-color);
    transition: color 0.3s ease;
  }

  .dot-nav__item.active .dot-nav__label {
    color: var(--main-color);
    opacity: 1;
    transform: none;
  }

  /* Hover states not needed on mobile but keep for tablets with keyboard */
  .dot-nav__item:hover .dot-nav__label {
    opacity: 1;
    transform: none;
  }

  /* ─── CTA buttons: stack on mobile ─── */
  .intro-cta {
    gap: 0.6rem;
  }

  .btn-cv,
  .btn-contact {
    font-size: 0.75rem;
    padding: 0.55em 1.2em;
  }

  /* On mobile with overlaid text on dark image, ensure buttons are visible */
  #introduction .btn-cv {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }

  #introduction .btn-contact {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--white);
    color: var(--white);
  }

  #introduction .btn-contact:hover {
    background: var(--white);
    color: var(--main-color);
  }

  /* ─── Footer: compact on mobile ─── */
  footer {
    border-top: none;  /* tab bar above already has border */
  }

  .footer-inner {
    font-size: 0.8rem;
    justify-content: center;
    gap: 0.3rem 1rem;
  }

  .motion-toggle__label {
    font-size: 0.65rem;
  }

  /* Skeleton responsive — mobile */
  .sk-intro-wrap { max-width: 80%; }
  .sk-intro-img { display: none; }
  .sk-skills-row { grid-template-columns: repeat(2, 1fr); }
  .sk-timeline-row { grid-template-columns: 1fr; }
  .sk-about-bottom { flex-direction: column; }
  .sk-about-img-rect { flex: none; width: 100%; }

}

/* ═══════════════════════════════════════
   RESPONSIVE — Small mobile
   ═══════════════════════════════════════ */

@media (max-width: 480px) {
  :root {
    --font-size-title: 2em;
    --font-size-categories: 1em;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .bento--hero,
  .bento--wide { grid-column: span 1; }

  .timeline__summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Skeleton responsive — small mobile */
  .sk-skills-row { grid-template-columns: 1fr; }
  .sk-skill-box { height: 70px; }
  .sk-line--xl { height: 1.4rem; }
  .sk-line--lg { height: 1rem; }

  /* Tab bar: tighter on small screens */
  .dot-nav__icon { font-size: 0.95rem; }
  .dot-nav__label { font-size: 0.55rem; }
  .dot-nav__item { min-width: 50px; padding: 0.15rem 0.3rem; }
}
