/* ═══════════════════════════════════════════════════════════════
   ELOUAN PLOQUIN — Personal Portfolio
   Aesthetic: Cinematic · Minimal · Luxury · Editorial  
   Light theme with teal accents
   ═══════════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  font-family: 'Articulat', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body), 'Articulat', system-ui, sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ─── CSS VARIABLES ────────────────────────────────────────── */
:root {
  /* Colors - Light Theme */
  --bg-primary:      #F5F5F5;
  --bg-secondary:    #ffffff;
  --bg-card:         #ffffff;
  --bg-card-hover:   #fafafa;
  --text-primary:    #111422;
  --text-secondary:  #4a5568;
  --text-muted:      #718096;
  --accent:          #037E8E;
  --accent-subtle:   rgba(3,126,142,.08);
  --accent-light:    rgba(3,126,142,.15);
  --border:          rgba(17,20,34,.08);
  --border-hover:    rgba(3,126,142,.35);

  /* Typography */
  --font-display: 'Articulat', Georgia, serif;
  --font-body:    'Articulat', system-ui, sans-serif;

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

  /* Transitions */
  --ease:      cubic-bezier(.25,.46,.45,.94);
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --trans-base: .35s var(--ease);
}

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

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

/* ─── CUSTOM CURSOR (updated with motion) ──────────────────── */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease-out), height .25s var(--ease-out);
  will-change: transform;
  background: var(--accent);
  opacity: .6;
  mix-blend-mode: multiply;
}

.cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .12s var(--ease-out);
  will-change: transform;
}

/* Cursor grows and pulses on hover */
body.cursor-hover .cursor {
  width: 50px;
  height: 50px;
  opacity: .3;
  animation: cursorPulse 1.2s ease-in-out infinite;
}

@keyframes cursorPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.15); }
}

body.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(1.5);
}

/* ─── NAVIGATION ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 3rem;
  transition: background .4s ease, padding .4s ease;
}

.nav.scrolled {
  background: rgba(245,245,245,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: .15em;
  color: var(--text-primary);
}

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

.nav__lang {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-left: 1rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
}

.nav__lang-btn {
  background: none;
  border: none;
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: none;
  padding: .3rem .6rem;
  border-radius: 3px;
  transition: color .3s ease, background .3s ease;
}

.nav__lang-btn.active {
  color: var(--accent);
  background: var(--accent-subtle);
}

.nav__lang-btn:hover {
  color: var(--text-primary);
}

.nav__links a {
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--trans-base);
}

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

.nav__links a:hover {
  color: var(--text-primary);
}
.nav__links a:hover::after {
  width: 100%;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: .5rem;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-primary);
  transition: transform .3s ease, opacity .3s ease;
}

/* ─── MOBILE MENU ──────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__close {
  position: absolute;
  top: 1.75rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: none;
}

.mobile-menu__links {
  list-style: none;
  text-align: center;
}

.mobile-menu__links li {
  margin-bottom: 1.5rem;
}

.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: .05em;
  color: var(--text-primary);
  transition: color var(--trans-base);
}

.mobile-menu__links a:hover {
  color: var(--accent);
}

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background with animated curves */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #111;
}

.hero__bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .96;
  z-index: 1;
}

.hero__embed {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.hero__embed iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 110%;
  transform: translate(-50%, -50%);
  border: 0;
  object-fit: cover;
}

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(165deg,
    rgba(3,126,142,.18) 0%,
    rgba(17,20,34,.35) 30%,
    rgba(17,20,34,.16) 70%,
    rgba(3,126,142,.18) 100%
  );
}

.hero__bg-grain {
  z-index: 3;
}

.hero__curves,
.hero__orb {
  z-index: 4;
}

/* Visible thin animated curves */
.hero__curves {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__curve {
  position: absolute;
  border: 1px solid rgba(3,126,142,.2);
  border-radius: 50%;
  pointer-events: none;
}

.hero__curve--1 {
  width: 800px;
  height: 800px;
  top: -400px;
  right: -200px;
  border-width: 1.5px;
  animation: floatCurve1 25s ease-in-out infinite;
}

.hero__curve--2 {
  width: 600px;
  height: 600px;
  bottom: -250px;
  left: -150px;
  border-width: 1px;
  animation: floatCurve2 18s ease-in-out infinite;
}

.hero__curve--3 {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-width: 1px;
  border-color: rgba(3,126,142,.15);
  animation: floatCurve3 32s ease-in-out infinite;
}

.hero__curve--4 {
  width: 300px;
  height: 300px;
  top: 20%;
  left: 15%;
  border-width: 0.8px;
  border-color: rgba(3,126,142,.12);
  animation: floatCurve4 22s ease-in-out infinite;
}

@keyframes floatCurve1 {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg) scale(1); 
  }
  50% { 
    transform: translate(-60px, 80px) rotate(180deg) scale(1.1); 
  }
}

@keyframes floatCurve2 {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg); 
  }
  50% { 
    transform: translate(70px, -60px) rotate(-180deg); 
  }
}

@keyframes floatCurve3 {
  0%, 100% { 
    transform: translate(-50%, -50%) rotate(0deg) scale(1); 
  }
  33% { 
    transform: translate(-40%, -60%) rotate(120deg) scale(0.95); 
  }
  66% { 
    transform: translate(-60%, -40%) rotate(240deg) scale(1.05); 
  }
}

@keyframes floatCurve4 {
  0%, 100% { 
    transform: translate(0, 0) scale(1); 
  }
  50% { 
    transform: translate(-40px, 50px) scale(1.15); 
  }
}

/* Film-grain */
.hero__bg-grain {
  position: absolute;
  inset: 0;
  opacity: .08;
  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)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Soft ambient orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: rgba(3,126,142,.12);
  top: -120px;
  right: -100px;
  animation: floatOrb 12s ease-in-out infinite;
}

.hero__orb--2 {
  width: 350px;
  height: 350px;
  background: rgba(3,126,142,.08);
  bottom: 10%;
  left: -80px;
  animation: floatOrb 15s ease-in-out infinite reverse;
}

.hero__orb--3 {
  width: 200px;
  height: 200px;
  background: rgba(3,126,142,.06);
  top: 50%;
  left: 45%;
  animation: floatOrb 10s ease-in-out infinite 2s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(30px, -40px) scale(1.08); }
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 5;
  text-align: center;
}

.hero__eyebrow {
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.8rem;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  letter-spacing: .04em;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 1rem 2rem;
  border: 1px solid rgba(17,20,34,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: var(--text-primary);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.hero__cta:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.showreel-info {
  padding: 6rem 3rem;
  background: var(--bg-primary);
}

.showreel-info__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.showreel-info__text {
  margin: 1.5rem 0 2.5rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.showreel__button {
  display: inline-flex;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%      { transform: scaleY(.5); opacity: .4; }
}

.hero__scroll-label {
  font-size: .62rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Marquee - infinite seamless */
.hero__marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  z-index: 2;
}

.hero__marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marqueeScroll 40s linear infinite;
  width: max-content;
}

.hero__marquee-track span {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 .8rem;
}

.hero__marquee-dot {
  color: var(--accent) !important;
  padding: 0 .2rem !important;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── REVEAL ANIMATION ─────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SECTION SHARED ───────────────────────────────────────── */
.section-label {
  display: block;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

/* ─── PROJECTS ─────────────────────────────────────────────── */
.projects {
  padding: var(--space-2xl) 0 var(--space-xl);
}

.projects__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* Grid - more harmonious layout */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 1.5rem;
  padding: 0 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Project Card */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: none;
  transition: border-color .4s ease, transform .5s var(--ease-out), box-shadow .5s ease;
  grid-column: span 4;
  grid-row: span 2;
}


/* Card 1 - large horizontal */
.project-card:nth-child(1) {
  grid-column: span 8;
  grid-row: span 3;
}

/* Card 2 - vertical tall */
.project-card:nth-child(2) {
  grid-column: span 4;
  grid-row: span 3;
}

/* Card 3 - medium */
.project-card:nth-child(3) {
  grid-column: span 4;
  grid-row: span 2;
}

/* Card 4 - medium */
.project-card:nth-child(4) {
  grid-column: span 4;
  grid-row: span 2;
}

/* Card 5 - medium */
.project-card:nth-child(5) {
  grid-column: span 4;
  grid-row: span 2;
}

/* Card 6 - large horizontal */
.project-card:nth-child(6) {
  grid-column: span 12;
  grid-row: span 2;
}

.project-card--wide {
  grid-column: span 8;
  grid-row: span 3;
}

.project-card--tall {
  grid-column: span 4;
  grid-row: span 3;
}

/* Media */
.project-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Placeholder */
.project-card__placeholder {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      hsl(var(--hue), 45%, 88%) 0%,
      hsl(var(--hue), 50%, 92%) 40%,
      hsl(var(--hue), 35%, 85%) 100%
    );
  opacity: .35;
}

.project-card__illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}


/* Overlay */
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(255,255,255,.85) 0%,
    rgba(255,255,255,.28) 45%,
    transparent 75%
  );
  z-index: 1;
  pointer-events: none;
}

.project-card__tag,
.project-card__desc {
  display: none;
}

/* Video */
.project-card__video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.project-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}

.project-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0;
  transition: opacity .4s ease, transform .3s ease;
}


/* Info */
.project-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 2rem;
}

.project-card__tag {
  display: inline-block;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: .4rem;
  transition: color .3s ease;
}


.project-card__desc {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 380px;
  opacity: 1;
  transform: translateY(0);
}


/* ─── MODAL ────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,20,34,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 780px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transform: translateY(30px) scale(.97);
  transition: transform .45s var(--ease-out);
}

.modal.open .modal__panel {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  z-index: 2;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: none;
  transition: color .3s ease;
}

.modal__close:hover { color: var(--text-primary); }

.modal__media {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.modal__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__software {
  font-size: .8rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.modal__software-label {
  font-weight: 600;
  color: var(--text-primary);
}

.modal__body {
  padding: 2.2rem;
}

.modal__tag {
  display: block;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .7rem;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.modal__desc {
  font-size: .9rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
}

.modal__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.modal__link {
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-subtle);
  padding-bottom: .2rem;
  transition: border-color .3s ease;
}

.modal__link:hover {
  border-color: var(--accent);
}

/* ─── GALLERY (new section for photos) ────────────────────── */
.gallery {
  padding: var(--space-xl) 0;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.gallery__grid {
  column-count: 4;
  column-gap: 1.2rem;
  padding: 0 3rem;
}

.gallery__item {
  display: inline-block;
  width: 100%;
  margin: 0 0 1.2rem;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  min-height: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: none;
  cursor: default;
  will-change: auto;
  break-inside: avoid;
}

.gallery__item--tall {
  aspect-ratio: 3 / 5;
}

.gallery__item--landscape {
  aspect-ratio: 4 / 3;
  min-height: 280px;
}


.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}


.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
  opacity: .2;
  pointer-events: none;
}


@media (max-width: 1200px) {
  .gallery__grid {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .gallery__grid {
    column-count: 2;
  }
}

@media (max-width: 700px) {
  .gallery__grid {
    column-count: 1;
    padding: 0 1.5rem;
  }
}

/* ─── ABOUT ────────────────────────────────────────────────── */
.about {
  padding: var(--space-xl) 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-lg);
  align-items: start;
}

/* Left visual */
.about__visual {
  position: relative;
  padding-top: 2rem;
}

.about__visual-frame {
  width: 280px;
  height: 280px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

/* Profile photo */
.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.about__year {
  display: block;
  margin-top: 1.8rem;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Right text */
.about__title {
  margin-bottom: var(--space-md);
}

.about__body p {
  font-size: .92rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

/* Skills */
.about__skills {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: var(--space-md);
}

.about__skill {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .45rem 1rem;
  transition: border-color .3s ease, color .3s ease;
}

.about__skill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── CONTACT ──────────────────────────────────────────────── */
.contact {
  padding: var(--space-xl) 3rem var(--space-lg);
  text-align: center;
}

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

.contact__title {
  margin-bottom: var(--space-md);
}

/* CTA */
.contact__cta {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: 1.1rem 2.2rem;
  border: 1px solid var(--border-hover);
  border-radius: 40px;
  color: var(--text-primary);
  font-size: .82rem;
  letter-spacing: .12em;
  transition: background .35s ease, border-color .35s ease, transform .3s var(--ease-out);
  margin-bottom: var(--space-md);
}

.contact__cta:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  transform: scale(1.04);
}

.contact__cta-arrow {
  transition: transform .3s ease;
}
.contact__cta:hover .contact__cta-arrow {
  transform: translate(4px, -4px);
}

/* Socials */
.contact__socials {
  display: flex;
  justify-content: center;
  gap: 2.4rem;
}

.contact__social {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  transition: color .3s ease;
}

.contact__social::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .35s var(--ease-out);
}

.contact__social:hover {
  color: var(--accent);
}
.contact__social:hover::after {
  width: 100%;
}

/* ─── FOOTER ───────────────────────────────────────────────── */
.footer {
  padding: 3rem 3rem 2rem;
  background: #111422;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(245,245,245,.9);
}

.footer__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer__col {
  min-width: 220px;
  flex: 1 1 220px;
}

.footer__brand .footer__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .18em;
  color: #fff;
  margin-bottom: .75rem;
}

.footer__notice {
  max-width: 20rem;
  line-height: 1.8;
  color: rgba(245,245,245,.7);
  font-size: .95rem;
}

.footer__label {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(245,245,245,.6);
}

.footer__links,
.footer__socials {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.footer__link {
  color: rgba(245,245,245,.85);
  text-decoration: none;
  font-size: .95rem;
  transition: color .25s var(--ease);
}

.footer__link:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer__copy,
.footer__note {
  font-size: .8rem;
  color: rgba(245,245,245,.55);
}

@media (max-width: 768px) {
  .footer {
    padding: 2.5rem 1.5rem 2rem;
  }

  .footer__main {
    flex-direction: column;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .projects__grid {
    padding: 0 2rem;
  }

  .project-card--wide {
    grid-column: span 8;
  }

  .project-card--tall {
    grid-column: span 4;
  }

  .project-card {
    grid-column: span 6;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .about__visual {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .about__visual-frame {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
  }

  .gallery__grid {
    padding: 0 2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Nav */
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav { padding: 1.4rem 1.6rem; }
  .nav.scrolled { padding: 1rem 1.6rem; }

  /* Disable cursor on touch */
  .cursor, .cursor-dot { display: none; }
  body { cursor: auto; }

  /* Hero */
  .hero__name-line {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .hero__scroll { bottom: 5.5rem; }

  /* Projects */
  .projects { padding: var(--space-xl) 0 var(--space-lg); }

  .projects__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 320px;
    padding: 0 1.2rem;
    gap: 1rem;
  }

  .project-card,
  .project-card--wide,
  .project-card--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Gallery */
  .gallery__grid {
    grid-template-columns: 1fr;
    padding: 0 1.2rem;
  }

  /* About */
  .about { padding: var(--space-lg) 1.6rem; }

  .about__visual-frame {
    width: 110px;
    height: 110px;
  }

  /* Contact */
  .contact { padding: var(--space-lg) 1.6rem var(--space-md); }

  .contact__socials { gap: 1.4rem; }

  /* Modal */
  .modal__panel { width: 95%; }
  .modal__body { padding: 1.5rem; }

  /* Footer */
  .footer { padding: 1.5rem; }
}

/* Small mobile */
@media (max-width: 400px) {
  .hero__eyebrow { font-size: .68rem; letter-spacing: .15em; }
  .hero__tagline { font-size: .9rem; }
  .contact__cta { padding: .9rem 1.6rem; font-size: .76rem; }
}
