/* ==========================================================================
   Homline Noa SLM — Theme Styles v1.0.0
   Author: Sami SELLAMI - La Homline
   ========================================================================== */

/* -- CSS Custom Properties ------------------------------------------------- */
:root {
  --color-bg:         #0A0A0A;
  --color-bg-alt:     #111111;
  --color-surface:    #161616;
  --color-surface-2:  #1C1C1C;
  --color-gold:       #C9A84C;
  --color-gold-light: #DFC06A;
  --color-gold-dim:   #8B7633;
  --color-text:       #F0EDE6;
  --color-text-muted: #8A8578;
  --color-border:     #2A2826;
  --color-overlay:    rgba(10, 10, 10, 0.75);

  --font-display: 'Cormorant', Georgia, serif;
  --font-body:    'Sora', system-ui, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --nav-height: 72px;
  --section-py: clamp(80px, 10vw, 140px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--color-gold-light); }

::selection {
  background: var(--color-gold);
  color: var(--color-bg);
}

/* -- Typography ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 24px;
}

.section-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-gold);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 540px;
  font-weight: 300;
}

/* -- Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1440px;
}

section {
  padding: var(--section-py) 0;
  position: relative;
}

/* -- Navigation ------------------------------------------------------------ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-nav.is-scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-text);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.nav-brand span {
  color: var(--color-gold);
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--color-gold);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

/* Prevent nav link styles from bleeding into switcher */
.lang-switcher .lang-switcher-btn::after {
  display: none;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 24px;
  border: 2px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0.4;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 0;
}

.lang-switcher-btn svg {
  width: 100%;
  height: 100%;
}

.lang-switcher-btn.is-active {
  opacity: 1;
  border-color: var(--color-gold);
}

.lang-switcher-btn:hover:not(.is-active) {
  opacity: 0.8;
}

/* Override nav-links styles when switcher is inside nav */
.nav-links .lang-switcher-btn {
  font-size: 0;
  letter-spacing: 0;
  text-transform: none;
  padding: 0;
  width: 32px;
  height: 24px;
  opacity: 0.4;
  border: 2px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.nav-links .lang-switcher-btn::after {
  display: none;
}

.nav-links .lang-switcher-btn.is-active {
  opacity: 1;
  border-color: var(--color-gold);
  color: transparent;
}

.nav-links .lang-switcher-btn:hover:not(.is-active) {
  opacity: 0.8;
  color: transparent;
}

.nav-lang {
  margin-left: 12px;
  flex-shrink: 0;
}

.nav-lang-mobile {
  display: none;
}

/* -- Hero Section ---------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 20%;
  filter: brightness(0.45) contrast(1.05);
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

/* Responsive hero images */
.hero-img-mobile {
  display: none;
}

.hero-img-desktop,
.hero-img-mobile {
  position: absolute;
  inset: 0;
}

.hero-img-mobile {
  object-position: center 20%;
}

@keyframes heroZoom {
  0%   { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--color-bg) 0%,
    rgba(10, 10, 10, 0.6) 40%,
    rgba(10, 10, 10, 0.2) 70%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px 80px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: var(--color-text);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-name em {
  font-style: italic;
  color: var(--color-gold);
  font-weight: 400;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid var(--color-gold-dim);
  padding: 14px 32px;
  transition: all 0.4s ease;
}

.hero-cta:hover {
  background: var(--color-gold);
  color: var(--color-bg);
  border-color: var(--color-gold);
}

.hero-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* -- Bio Section ----------------------------------------------------------- */
.bio {
  background: var(--color-bg-alt);
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.bio-photo {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
  transition: transform 0.8s var(--ease-out-expo);
}

.bio-photo:hover img {
  transform: scale(1.03);
}

.bio-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-gold-dim);
  opacity: 0.3;
  pointer-events: none;
}

.bio-text p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
  font-weight: 300;
}

/* Measurements grid */
.measurements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  margin-top: 12px;
}

.measure-item {
  padding: 20px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.measure-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.measure-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-gold);
  font-weight: 400;
}

/* -- Portfolio Section ----------------------------------------------------- */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: none;
  border: 1px solid transparent;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  color: var(--color-gold);
  border-color: var(--color-gold-dim);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portfolio-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo), filter 0.5s ease;
}

.portfolio-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.8) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 24px;
}

.portfolio-item-cat {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Placeholder for items without image */
.portfolio-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  color: var(--color-text-muted);
  opacity: 0.3;
}

.portfolio-item.no-thumb {
  border: 1px solid var(--color-border);
}

/* With image: info appears on hover */
.portfolio-item:not(.no-thumb) .portfolio-item-info {
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s var(--ease-out-expo);
}

.portfolio-item:not(.no-thumb):hover .portfolio-item-info {
  transform: translateY(0);
  opacity: 1;
}

/* 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 0.4s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transform: scale(0.95);
  transition: transform 0.4s var(--ease-out-expo);
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-text);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--color-text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* -- Showreel Section ------------------------------------------------------ */
.showreel {
  background: var(--color-bg-alt);
}

.showreel-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 48px auto 0;
  aspect-ratio: 16/9;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.showreel-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.showreel-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-text-muted);
  gap: 16px;
}

.showreel-placeholder svg {
  width: 64px;
  height: 64px;
  color: var(--color-gold-dim);
}

/* -- Contact Section ------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info-block {
  margin-bottom: 36px;
}

.contact-info-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.contact-info-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-text);
}

.contact-info-value a {
  color: var(--color-text);
  transition: color 0.3s ease;
}

.contact-info-value a:hover {
  color: var(--color-gold);
}

.contact-social {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

.contact-social a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.contact-social a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.contact-social a svg {
  width: 18px;
  height: 18px;
}

/* Contact Form */
.contact-form .form-group {
  margin-bottom: 24px;
}

.contact-form label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 14px 16px;
  transition: border-color 0.3s ease;
  outline: none;
  -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--color-gold);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A8578' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-gold);
  border: none;
  padding: 16px 40px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn-submit:hover {
  background: var(--color-gold-light);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #81C784;
}

.form-message.error {
  display: block;
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #E57373;
}

/* -- Instagram Feed -------------------------------------------------------- */
.instagram {
  padding: var(--section-py) 0;
  background: var(--color-bg);
}

.insta-title-link {
  color: var(--color-text);
  transition: color 0.3s ease;
}

.insta-title-link:hover {
  color: var(--color-gold);
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 48px;
}

.insta-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.insta-item:hover img {
  transform: scale(1.06);
}

.insta-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.insta-item:hover .insta-item-overlay {
  opacity: 1;
}

.insta-video-badge,
.insta-carousel-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
  }
}

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

/* -- 404 Page -------------------------------------------------------------- */
.error-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
}

.error-404-content {
  max-width: 500px;
  margin: 0 auto;
}

.error-404-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--color-surface-2);
  line-height: 1;
  margin-bottom: -20px;
}

.error-404 .section-title {
  position: relative;
  z-index: 1;
}

.error-404 .hero-cta svg {
  transform: rotate(0);
}

/* -- Blur-up Lazy Loading -------------------------------------------------- */
.portfolio-item img,
.bio-photo img {
  transition: filter 0.6s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.portfolio-item img.is-lazy {
  filter: blur(20px);
  transform: scale(1.05);
}

.portfolio-item img.is-loaded {
  filter: blur(0);
  transform: scale(1);
}

/* -- Footer ---------------------------------------------------------------- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-text {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

.footer-text a {
  color: var(--color-gold-dim);
}

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

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* -- Responsive ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .bio-grid {
    gap: 40px;
  }

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

  .contact-grid {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --section-py: clamp(60px, 8vw, 100px);
  }

  /* Mobile nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 24px;
    transition: right 0.5s var(--ease-out-expo);
    border-left: 1px solid var(--color-border);
  }

  .nav-links.is-open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-lang { display: none; }
  .nav-lang-mobile { display: block; }

  .nav-toggle.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
  }

  .nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* Bio */
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bio-photo {
    max-height: 500px;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .portfolio-filters {
    gap: 4px;
    margin-bottom: 32px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 10px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero-img-desktop {
    display: none;
  }

  .hero-img-mobile {
    display: block;
  }

  .hero-bg img {
    object-position: center 20%;
  }

  .hero-content {
    padding-bottom: 100px;
  }

  .hero-scroll {
    display: none;
  }
}

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

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

  .hero-name {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
}

/* -- Grain overlay (subtle texture) ---------------------------------------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}
