/*
Theme Name: LevaPhoto
Theme URI: https://levatech.info
Author: LevaTech
Author URI: https://levatech.info
Description: A minimal, elegant portfolio theme for photographers, videographers, and designers. Clean white space, refined typography, and a focus on letting creative work speak for itself.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: levaphoto
*/

/* ============================================
   CSS RESET & VARIABLES
   ============================================ */

:root {
  /* Colors */
  --color-bg: #fafaf8;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #6b6b6b;
  --color-text-muted: #999999;
  --color-accent: #1a1a1a;
  --color-border: #e8e8e4;
  --color-border-light: #f0f0ec;
  --color-overlay: rgba(0, 0, 0, 0.65);

  /* Typography */
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "DM Sans", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  /* Layout */
  --container-width: 1400px;
  --container-narrow: 800px;
  --header-height: 92px;

  /* Transitions */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.4s var(--ease-out);
  --transition-slow: 0.7s var(--ease-out);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

/* Background lines removed — replaced by interactive canvas (#cursor-bg) */
body::before,
body::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Cursor-reactive line canvas — sits below all content */
#cursor-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Ensure all content sits above the background lines */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

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

ul,
ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}
h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}
h4 {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 500;
}

p {
  max-width: 65ch;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-xl) 0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  transition: transform var(--transition-base);
}

.site-header.header--hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.site-logo a:hover {
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list,
ul.nav-list {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 2.25rem;
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.nav-list li {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: inline-flex;
}

.nav-list li::marker,
.nav-list li::before {
  content: "" !important;
  display: none;
}

.nav-list a {
  position: relative;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-text);
  padding: 0.35rem 0.1rem;
  transition: color var(--transition-fast);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6b81, #ff9f43, #81c784, #4facfe, #a259ff, var(--color-text), var(--color-text));
  background-size: 300% 100%;
  background-position: 0% 0%;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1),
              background-position 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list .current-menu-item > a::after,
.nav-list .current_page_item > a::after,
.nav-list .current-menu-ancestor > a::after {
  transform: scaleX(1);
  background-position: 100% 0%;
}

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

/* Header scrolled state — slightly more solid background */
.site-header.header--scrolled {
  background: rgba(250, 250, 248, 0.96);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  margin: 6px 0;
  transition: var(--transition-base);
}

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

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION (HOMEPAGE)
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  position: relative;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 900px;
}

.hero__tagline {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  /* Compensate trailing letter-spacing so the text is visually centered */
  padding-left: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 auto var(--space-md);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero__title {
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 50ch;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

/* Gradient underline on hero title */
.hero__title em {
  font-style: normal;
  position: relative;
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.05em;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff6b81, #ff9f43, #81c784, #4facfe, #a259ff);
  border-radius: 2px;
  background-size: 200% 100%;
  animation: heroShimmer 3s ease-in-out infinite;
}

@keyframes heroShimmer {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

/* CTA button */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1.5px solid var(--color-text);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.3s;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero__cta:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.hero__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

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

/* Stats bar */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1s forwards;
}

.hero__stat {
  text-align: center;
}

.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.hero__stat span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ============================================
   HERO VARIANTS — POLAROIDS / FILMSTRIP
   ============================================ */

/* Two-column layout when a visual is enabled (desktop only) */
@media (min-width: 861px) {
  .hero--polaroids,
  .hero--filmstrip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align: left;
    gap: 1.5rem;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
  .hero--polaroids .hero__content,
  .hero--filmstrip .hero__content {
    justify-self: end;
    max-width: 560px;
    text-align: left;
  }
  .hero--polaroids .hero__tagline,
  .hero--filmstrip .hero__tagline,
  .hero--polaroids .hero__subtitle,
  .hero--filmstrip .hero__subtitle {
    margin-left: 0;
    margin-right: 0;
  }
  .hero--polaroids .hero__stats,
  .hero--filmstrip .hero__stats {
    justify-content: flex-start;
  }
  .hero__visual {
    position: relative;
    height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Hide visual entirely on mobile — text becomes centered fallback */
@media (max-width: 860px) {
  .hero__visual { display: none; }
}

/* ---- Polaroid stack ---- */
.polaroid-stack {
  position: relative;
  width: 320px;
  height: 380px;
}
.polaroid {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 270px;
  height: 320px;
  background: #fff;
  padding: 14px 14px 56px;
  border-radius: 2px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
  opacity: 0;
  animation: polaroidEnter 0.8s var(--ease-out) forwards;
}
.polaroid:nth-child(1) { animation-delay: 0.1s; }
.polaroid:nth-child(2) { animation-delay: 0.25s; }
.polaroid:nth-child(3) { animation-delay: 0.4s; }
.polaroid:nth-child(4) { animation-delay: 0.55s; }
@keyframes polaroidEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--color-border-light);
  display: block;
}
.polaroid__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-text);
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Film strip ---- */
.filmstrip-wrap {
  position: relative;
  width: 280px;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.filmstrip {
  position: relative;
  background: #1a1a1a;
  padding: 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  will-change: transform;
  animation: filmstripScroll 28s linear infinite;
}
@keyframes filmstripScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.filmstrip__sprocket {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16px;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 14px,
    var(--color-bg) 14px,
    var(--color-bg) 26px,
    transparent 26px,
    transparent 40px
  );
}
.filmstrip__sprocket--left  { left: 4px; }
.filmstrip__sprocket--right { right: 4px; }
.filmstrip__frame {
  width: 100%;
  height: 130px;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.filmstrip__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.filmstrip__meta {
  position: absolute;
  top: 16px;
  right: 14px;
  transform: rotate(90deg);
  transform-origin: right top;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}

/* ============================================
   PORTFOLIO GRID
   ============================================ */

.portfolio-section {
  padding: var(--space-xl) 0;
}

.portfolio-section--archive {
  padding-top: calc(var(--header-height) + var(--space-lg));
}

.portfolio-section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.portfolio-section__header h2 {
  margin-bottom: var(--space-sm);
}

/* Filter Buttons */
.portfolio-filters {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.portfolio-filters__btns {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  grid-column: 2;
}

.portfolio-filters__viewall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 0.5rem 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
  transition: all var(--transition-fast);
}

.portfolio-filters__viewall:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.portfolio-filters__viewall svg {
  transition: transform 0.3s;
}

.portfolio-filters__viewall:hover svg {
  transform: translateX(3px);
}

.filter-btn {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-light);
  padding: 0.5rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: 10px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

/* Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.portfolio-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
}

.portfolio-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 2.25rem;
  border: 1px solid var(--color-text);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
  background: transparent;
  transition: background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.portfolio-cta__link:hover {
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-2px);
}

.portfolio-cta__arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.portfolio-cta__link:hover .portfolio-cta__arrow {
  transform: translateX(4px);
}

/* ============================================
   PORTFOLIO CAROUSEL (Horizontal scroll)
   ============================================ */

.portfolio-carousel-wrap {
  overflow: hidden;
  padding-bottom: var(--space-sm);
}

.portfolio-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 max(24px, calc((100vw - 1200px) / 2 + 24px)) 20px;
  scrollbar-width: none;
}

.portfolio-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex: 0 0 360px;
  height: 480px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  scroll-snap-align: start;
  background: var(--color-border-light);
  transition: opacity 0.4s, transform 0.4s;
}

.carousel-card a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  -webkit-user-drag: none;
  user-select: none;
  color: #fff;
}

.carousel-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.carousel-card__image--pdf {
  object-fit: contain;
  object-position: center center;
}

.carousel-card:hover .carousel-card__image {
  transform: scale(1.04);
}

.carousel-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  pointer-events: none;
}

.carousel-card__category {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.carousel-card__title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

/* Filtered-out cards */
.carousel-card.hidden {
  display: none;
}

/* Carousel navigation arrows */
.portfolio-carousel-wrap {
  position: relative;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  color: var(--color-text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s, background 0.2s, transform 0.2s;
}

.portfolio-carousel-wrap:hover .carousel-nav {
  opacity: 1;
}

.carousel-nav:hover {
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav--prev {
  left: 12px;
}

.carousel-nav--next {
  right: 12px;
}

@media (max-width: 768px) {
  .carousel-nav { display: none; }
}

@media (max-width: 768px) {
  .carousel-card {
    flex: 0 0 300px;
    height: 400px;
  }

  .hero__stats {
    gap: 1.5rem;
  }

  .hero__stat strong {
    font-size: 1.5rem;
  }
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--color-border-light);
}

.portfolio-item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.portfolio-item--wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.portfolio-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-item:hover .portfolio-item__image {
  transform: scale(1.04);
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.portfolio-item:hover .portfolio-item__overlay {
  opacity: 1;
}

.portfolio-item__category {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-xs);
}

.portfolio-item__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: #ffffff;
  line-height: 1.3;
}

/* ============================================
   SINGLE PROJECT PAGE
   ============================================ */

.project-hero {
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-lg);
  text-align: center;
}

/* ============================================
   PROJECT SHOWCASE — side-by-side layout
   ============================================ */

.project-showcase {
  padding-top: calc(var(--header-height) + var(--space-lg));
  padding-bottom: var(--space-lg);
}

.project-showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: center;
}

/* LEFT: Info */
.project-showcase__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-showcase__info .label {
  margin-bottom: var(--space-sm);
}

.project-showcase__info h1 {
  margin-bottom: var(--space-md);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.1;
}

.project-showcase__desc {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: var(--space-lg);
}

.project-showcase__desc p {
  margin-bottom: var(--space-sm);
}

.project-showcase__info .project-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.project-showcase__video {
  margin-top: var(--space-lg);
}

/* RIGHT: Stack */
.project-showcase__stack {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .project-showcase__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  /* On mobile, show stack first (above info) */
  .project-showcase__stack {
    order: -1;
  }
}

.project-hero .label {
  margin-bottom: var(--space-sm);
}

.project-hero h1 {
  margin-bottom: var(--space-md);
}

.project-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.project-meta dt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.project-featured-image {
  width: 100%;
  max-height: 75vh;
  object-fit: cover;
  margin: var(--space-lg) 0;
}

.project-content {
  padding: var(--space-lg) 0;
}

.project-content .container--narrow p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  padding: var(--space-md) 0 var(--space-xl);
}

/* ============================================
   PHOTO STACK (Book-style gallery)
   ============================================ */

.photo-stack {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.photo-stack__layer {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 40px -12px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1),
              box-shadow 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Background layers — stacked behind with rotation */
.photo-stack__layer--1 {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: rotate(-2.5deg) translate(-12px, 8px) scale(0.97);
  box-shadow: 0 6px 30px -10px rgba(0, 0, 0, 0.25);
}

.photo-stack__layer--2 {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: rotate(3deg) translate(14px, 12px) scale(0.94);
  box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.2);
}

.photo-stack__layer--3 {
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: rotate(-4deg) translate(-18px, 18px) scale(0.91);
  box-shadow: 0 3px 18px -6px rgba(0, 0, 0, 0.15);
}

/* Top layer — the featured image */
.photo-stack__layer--top {
  position: relative;
  z-index: 5;
  transform: none;
}

.photo-stack__media {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Hover: fan out the stack */
.photo-stack:hover .photo-stack__layer--1 {
  transform: rotate(-4deg) translate(-24px, 14px) scale(0.97);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

.photo-stack:hover .photo-stack__layer--2 {
  transform: rotate(5deg) translate(26px, 18px) scale(0.94);
  box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.25);
}

.photo-stack:hover .photo-stack__layer--3 {
  transform: rotate(-6deg) translate(-30px, 24px) scale(0.91);
  box-shadow: 0 6px 24px -6px rgba(0, 0, 0, 0.2);
}

.photo-stack:hover .photo-stack__layer--top {
  transform: translateY(-4px);
  box-shadow: 0 16px 60px -16px rgba(0, 0, 0, 0.4);
}

/* Photo count badge */
.photo-stack__count {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .photo-stack {
    max-width: 100%;
    margin: var(--space-md) auto var(--space-lg);
  }

  .photo-stack__layer--1 {
    transform: rotate(-2deg) translate(-6px, 6px) scale(0.97);
  }
  .photo-stack__layer--2 {
    transform: rotate(2.5deg) translate(8px, 10px) scale(0.94);
  }
  .photo-stack__layer--3 {
    transform: rotate(-3deg) translate(-10px, 14px) scale(0.91);
  }
}

.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-gallery .reveal:has(.gallery-video) {
  position: relative;
  cursor: pointer;
}

.gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  background: #000;
  display: block;
}

.gallery-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  pointer-events: none;
  transition: background var(--transition-fast);
}

.project-gallery .reveal:hover .gallery-video-play {
  background: rgba(0, 0, 0, 0.85);
}

/* PDF placeholder fallback */
.photo-stack__pdf-placeholder {
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: #888;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 4px;
}

/* Video embed */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: var(--space-lg) 0;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed--native {
  padding-bottom: 0;
  height: auto;
  background: none;
}

.video-embed--native video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Project Navigation */
.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
}

.project-nav a {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

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

.project-nav__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-hero {
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-lg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-image-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.about-image-wrap::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--color-border);
  border-radius: 220px 220px 24px 24px;
  z-index: 0;
  pointer-events: none;
}

.about-image {
  position: relative;
  z-index: 1;
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  display: block;
  /* Modern arch shape — fully rounded top, softly rounded bottom */
  border-radius: 220px 220px 24px 24px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-slow);
}

.about-image:hover {
  transform: translateY(-4px);
}

.about-content .label {
  margin-bottom: var(--space-sm);
}

.about-content h1 {
  margin-bottom: var(--space-md);
}

.about-content p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  font-size: 1.05rem;
}

.about-services {
  padding: var(--space-xl) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.services-grid.services-grid--5 {
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

.service-item {
  position: relative;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-border-light);
  border-radius: 18px;
  padding: var(--space-lg) var(--space-md);
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04),
              0 20px 40px -24px rgba(26, 26, 26, 0.12);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.service-item::before {
  content: "";
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  width: 28px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  opacity: 0.85;
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(26, 26, 26, 0.05),
              0 30px 60px -28px rgba(26, 26, 26, 0.22);
  border-color: rgba(26, 26, 26, 0.15);
}

.service-item h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}

.service-item p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* ============================================
   ABOUT — SKILLS / SOFTWARE
   ============================================ */

.about-skills {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.skills-grid .skill {
  width: calc(33.333% - var(--space-md));
}

.skill {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-border-light);
  border-radius: 18px;
  padding: 1.15rem 1.25rem 1.3rem;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04),
              0 20px 40px -24px rgba(26, 26, 26, 0.12);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.skill:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(26, 26, 26, 0.05),
              0 30px 60px -28px rgba(26, 26, 26, 0.22);
  border-color: rgba(26, 26, 26, 0.15);
}

.skill__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.skill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  flex-shrink: 0;
}

.skill__name {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--color-text);
}

.skill__level {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.skill__track {
  position: relative;
  height: 4px;
  background: var(--color-border-light);
  border-radius: 999px;
  overflow: hidden;
}

.skill__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(
    90deg,
    var(--skill-color, var(--color-text)),
    color-mix(in srgb, var(--skill-color, var(--color-text)) 70%, #000)
  );
  border-radius: 999px;
  transition: width 1.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.skill.visible .skill__bar {
  width: var(--skill-level, 0%);
}

@media (max-width: 720px) {
  .skills-grid .skill {
    width: 100%;
  }
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-section {
  /* Fit header + content + footer in one viewport — no scroll just for footer */
  padding: calc(var(--header-height) + 1rem) 0 1rem;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  width: 100%;
}

.contact-info .label {
  margin-bottom: 0.5rem;
}

.contact-info h1 {
  margin-bottom: 0.85rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.contact-info > p {
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  max-width: 40ch;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.5rem;
}

.contact-details div {
  min-width: 0;
}

.contact-details dt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.contact-details dd {
  font-size: 1.05rem;
}

.contact-details a:hover {
  color: var(--color-text-secondary);
}

.contact-socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.15rem;
}

.contact-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: all var(--transition-fast);
}

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

.contact-social-icon:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
  transition: color var(--transition-fast);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  padding: 1.6rem 1.75rem 1.75rem;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04),
              0 30px 60px -30px rgba(26, 26, 26, 0.18);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-fast);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--color-text);
}

.form-group textarea {
  min-height: 80px;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid var(--color-text);
  background: var(--color-text);
  color: var(--color-bg);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn:hover {
  background: transparent;
  color: var(--color-text);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 1.25rem 0;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border-light);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  min-height: 0;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-left .site-logo {
  font-size: 1.2rem;
  line-height: 1;
}

.footer-left p {
  margin: 0 !important;
  line-height: 1;
}

.footer-left p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.social-links {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.social-links .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  background: transparent;
  transition: color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.social-links .social-link svg {
  width: 15px;
  height: 15px;
  display: block;
}

.social-links .social-link:hover {
  color: var(--color-bg);
  background: var(--color-text);
  border-color: var(--color-text);
  transform: translateY(-2px);
}

/* ============================================
   ARCHIVE / PORTFOLIO LISTING
   ============================================ */


/* Archive filters (simple centered row) */
.archive-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

/* Masonry Grid (Pinterest-style) */
.masonry-grid {
  columns: 3;
  column-gap: 16px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-border-light);
}

.masonry-item a {
  display: block;
  position: relative;
  text-decoration: none;
  color: #fff;
}

.masonry-item__image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.masonry-item:hover .masonry-item__image {
  transform: scale(1.04);
}

.masonry-item__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.masonry-item:hover .masonry-item__overlay {
  opacity: 1;
}

.masonry-item__category {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
  display: block;
}

.masonry-item__title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

/* Hidden by filter */
.masonry-item.hidden {
  display: none;
}

@media (max-width: 768px) {
  .masonry-grid {
    columns: 2;
    column-gap: 10px;
  }
  .masonry-item {
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .masonry-grid {
    columns: 1;
  }
}

/* Infinite scroll loader */
.infinite-scroll-loader {
  display: flex;
  justify-content: center;
  padding: var(--space-lg) 0;
}

.loader-spinner {
  width: 32px;
  height: 32px;
  border: 2.5px solid var(--color-border-light);
  border-top-color: var(--color-text);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.infinite-scroll-end {
  text-align: center;
  padding: var(--space-md) 0;
}

.infinite-scroll-end p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s, background 0.2s;
  z-index: 10;
  line-height: 1;
}

.lightbox__nav:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__nav--prev {
  left: var(--space-md);
}

.lightbox__nav--next {
  right: var(--space-md);
}

.lightbox__counter {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-item--tall {
    grid-row: span 1;
    aspect-ratio: 4/3;
  }

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

@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-2xl: 6rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    justify-content: center;
    align-items: center;
    transition: right var(--transition-base);
    z-index: 999;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-list,
  ul.nav-list {
    flex-direction: column !important;
    align-items: center;
    gap: 1.75rem;
  }

  .nav-list a {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 500;
    padding: 0.4rem 0.6rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item--wide {
    grid-column: span 1;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .portfolio-filters__btns {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0 var(--space-md);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .portfolio-filters__btns::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .portfolio-filters__viewall {
    justify-self: auto;
    background: none;
    border: none;
    padding: 0.3rem 0;
    font-size: 0.75rem;
    border-bottom: 1px solid var(--color-text-secondary);
    border-radius: 0;
  }

  .portfolio-filters__viewall:hover {
    background: none;
    color: var(--color-text);
    border-color: var(--color-text);
    border-bottom: 1px solid var(--color-text);
    border-radius: 0;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-meta {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}
