/* ========================================
   ABIR ELSHIMY — PORTFOLIO
   Editorial Noir Aesthetic
   ======================================== */

/* --- Custom Properties --- */
:root {
  --bg: #f7f3ed;
  --bg-elevated: #eeead3;
  --bg-card: #fffdf8;
  --text: #2c2c2c;
  --text-muted: #7a756b;
  --accent: #b5872a;
  --accent-hover: #c99a3d;
  --border: rgba(44, 44, 44, 0.08);
  --border-light: rgba(44, 44, 44, 0.12);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --nav-height: 130px;
  --section-pad: clamp(80px, 12vw, 160px);
  --side-pad: clamp(20px, 5vw, 80px);
  --card-width: clamp(300px, 38vw, 480px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
  background: rgba(247, 243, 237, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--side-pad);
  max-width: 1440px;
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 120px;
  width: 120px;
  max-width: none;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.3s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__links a:hover {
  color: var(--text);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  transition: background 0.3s, transform 0.3s !important;
}

.nav__cta::after {
  display: none !important;
}

.nav__cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-height) var(--side-pad) 0;
  overflow: hidden;
  background: url('Images/Portfolio Cover 3.png') center center / cover no-repeat;
}

/* Soft overlay for text readability */
.hero__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(247, 243, 237, 0.92) 0%,
    rgba(247, 243, 237, 0.75) 50%,
    rgba(247, 243, 237, 0.3) 100%
  );
}

.hero__inner {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  padding: 6px 16px;
  border: 1px solid var(--accent);
  border-radius: 100px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 44px;
  line-height: 1.7;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 16px 36px;
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.hero__btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(181, 135, 42, 0.25);
}

.hero__btn svg {
  transition: transform 0.3s;
}

.hero__btn:hover svg {
  transform: translate(3px, -3px);
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-light);
}

.hero__btn--outline:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  box-shadow: none;
}

.hero__btn--outline:hover svg {
  transform: translateX(4px);
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  right: var(--side-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero__scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-lr;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: var(--border-light);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -40%; }
  100% { top: 100%; }
}

/* ========================================
   PROJECTS / CAROUSEL
   ======================================== */
.work {
  padding: var(--section-pad) 0;
}

.work__header {
  padding: 0 var(--side-pad);
  margin-bottom: 56px;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.work__label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.work__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.work__subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Marquee infinite scroll */
.marquee {
  width: 100%;
  overflow: hidden;
  margin-bottom: 24px;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee:last-child {
  margin-bottom: 0;
}

.marquee__track {
  display: flex;
  gap: 24px;
  width: max-content;
}

.marquee--left .marquee__track {
  animation: marqueeLeft 40s linear infinite;
}

.marquee--right .marquee__track {
  animation: marqueeRight 40s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Project Card */
.project-card {
  flex: 0 0 var(--card-width);
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card__img-wrap img {
  transform: scale(1.06);
}

.project-card__info {
  padding: 20px 24px;
}

.project-card__info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.project-card__type {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}


/* ========================================
   ABOUT
   ======================================== */
.about {
  padding: var(--section-pad) var(--side-pad);
  border-top: 1px solid var(--border);
}

.about__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}

.about__label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.about__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.about__title em {
  font-style: italic;
  color: var(--accent);
}

.about__desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 48px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ========================================
   SERVICES
   ======================================== */
.services {
  padding: var(--section-pad) var(--side-pad);
  border-top: 1px solid var(--border);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23b5872a' stroke-width='0.7'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}

.services__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.services__label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.services__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px 32px 36px 36px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 0;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: scale(1.02);
  box-shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.18);
}

.service-card:hover::before {
  width: 4px;
}

.service-card__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-muted);
  opacity: 0.6;
  margin-bottom: 20px;
  line-height: 1;
  transition: color 0.4s, opacity 0.4s;
}

.service-card:hover .service-card__num {
  color: var(--accent);
  opacity: 1;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0;
}

.service-card__desc-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card__desc-inner {
  overflow: hidden;
}

.service-card:hover .service-card__desc-wrap {
  grid-template-rows: 1fr;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-top: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s 0.1s, transform 0.4s 0.1s;
}

.service-card:hover p {
  opacity: 1;
  transform: translateY(0);
}

/* Touch devices have no hover — show descriptions by default */
@media (hover: none) {
  .service-card__desc-wrap { grid-template-rows: 1fr; }
  .service-card p { opacity: 1; transform: translateY(0); }
  .service-card::before { width: 4px; }
  .service-card__num { color: var(--accent); opacity: 1; }
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
  padding: var(--section-pad) var(--side-pad);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.contact::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -60px;
  width: 400px;
  height: 400px;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23b5872a' stroke-width='1.2'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23c99a3d' stroke-width='0.6'/%3E%3C/svg%3E");
  background-size: 70px 125px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.contact__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.contact__header {
  margin-bottom: 48px;
}

.contact__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.contact__title em {
  font-style: italic;
  color: var(--accent);
}

.contact__desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact__alt {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-self: stretch;
}

.contact__alt-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

.contact__alt-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: -12px 0 0;
}

.contact__details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.contact__detail:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(181, 135, 42, 0.08);
}

.contact__detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(181, 135, 42, 0.1);
  color: var(--accent);
}

.contact__detail-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact__detail-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact__detail-value {
  font-size: 0.98rem;
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
  transition: color 0.3s;
}

a.contact__detail-value:hover {
  color: var(--accent);
}


/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181, 135, 42, 0.1);
}

.contact__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 18px 40px;
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  align-self: flex-start;
}

.contact__submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(181, 135, 42, 0.25);
}

.contact__submit svg {
  transition: transform 0.3s;
}

.contact__submit:hover svg {
  transform: translateX(4px);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 32px var(--side-pad);
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
}

.footer__top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__inner {
    gap: 60px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 80px;
  }

  .nav__logo-img {
    height: 64px;
    width: 64px;
  }

  /* Mobile nav */
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(247, 243, 237, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }

  .nav__links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav__links a {
    font-size: 1.2rem;
  }

  /* Hero */
  .hero__scroll-hint {
    display: none;
  }

  /* About */
  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__stats {
    flex-direction: row;
    gap: 0;
    padding-top: 0;
    border-top: 1px solid var(--border);
    padding-top: 32px;
  }

  .stat {
    flex-direction: column;
    gap: 8px;
    flex: 1;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
    border-right: 1px solid var(--border);
    padding: 0 16px;
  }

  .stat:last-child {
    border-right: none;
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact__body {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Carousel: both rows are swipeable on mobile, with next-card peek */
  .marquee {
    mask-image: none;
    -webkit-mask-image: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-left: var(--side-pad);
    padding-right: 28vw; /* leaves room so the next card peeks at the end */
  }

  .marquee__track {
    width: max-content;
    animation: none !important;
  }

  .marquee .project-card {
    scroll-snap-align: start;
  }

  :root {
    --card-width: 72vw;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.2rem;
  }

  .about__stats {
    flex-direction: column;
    gap: 24px;
  }

  .stat {
    flex-direction: row;
    text-align: left;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0 0 24px 0;
  }

  .stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}
