/* ============================================
   HYPNOSCOPE — REDESIGN
   Light editorial layout
   ============================================ */

:root {
  --bg: #0d1210;
  --bg-alt: #121a16;
  --bg-elev: #1c2820;
  --fg: #e4ebe0;
  --fg-dim: #90a88a;
  --fg-mute: #527060;
  --accent: #c26148;
  --accent-soft: #d68a6f;
  --line: rgba(228, 235, 224, 0.1);
  --line-strong: rgba(228, 235, 224, 0.22);

  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1280px;
  --container-narrow: 780px;
  --gap: clamp(1rem, 2vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0px;
}

body {
  background: var(--bg);
  background-color: var(--bg);


  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

main {
  position: relative;
  z-index: 1;
}

.content-wrap {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem clamp(1.25rem, 3vw, 2.5rem);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
}

.nav.is-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.nav.is-scrolled {
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(13, 18, 16, 0.82);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--fg);
}

.brand__mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
}

.brand__wordmark {
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav.is-scrolled .brand__wordmark {
  opacity: 1;
  transform: translateX(0);
}

.nav__links {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.nav__links a {
  color: var(--fg-mute);
  transition: color 0.25s ease;
  position: relative;
}

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

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

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

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 201;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--fg);
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav__burger { display: flex; }

  .nav__links {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 85vw !important;
    max-width: 360px !important;
    height: 100vh !important;
    background-color: #0d1210 !important;
    border-left: 1px solid rgba(228, 235, 224, 0.12) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 2rem !important;
    padding: 4rem 2.5rem !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) !important;
    z-index: 200 !important;
  }

  .nav__links.is-open {
    transform: translateX(0) !important;
  }

  .nav__links a {
    color: #e4ebe0 !important;
    font-size: 1rem !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }
  .nav__links a:hover { color: var(--accent-soft) !important; }
  .nav__links a::after { display: none !important; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 10rem clamp(1.5rem, 5vw, 4rem) 5rem 0;
  overflow: hidden;
  background: #000;
}

.hero__bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.5;
  filter: brightness(0.75) saturate(0.85);
}

.hero__grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.94 0 0 0 0 0.91 0 0 0 0.13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent-soft);
  display: inline-block;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 8.5vw, 8rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  color: var(--fg);
}

.hero__line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: riseIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero__line:nth-child(1) { animation-delay: 0.08s; }
.hero__line:nth-child(2) { animation-delay: 0.22s; }
.hero__line:nth-child(3) { animation-delay: 0.36s; }
.hero__line:nth-child(4) { animation-delay: 0.50s; }

.hero__line--italic {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-soft);
  padding-left: clamp(1rem, 8vw, 6rem);
}

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero__sub {
  font-family: var(--sans);
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--fg-mute);
  opacity: 0;
  animation: riseIn 0.9s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1.8rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero__scroll {
  position: absolute;
  z-index: 1;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg-mute);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: floatY 2.8s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ============================================
   SECTION BASE
   ============================================ */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}

.section--narrow { max-width: 880px; }

.section__visual {
  margin-bottom: 3rem;
  border-radius: 6px;
  overflow: hidden;
}

.section__visual img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: center 25%;
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.section__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.015em;
  color: var(--fg);
}

/* Prose */
.prose p {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.8;
  color: var(--fg-dim);
  margin-bottom: 1.5rem;
}
.prose p:last-child { margin-bottom: 0; }

.prose__lead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem) !important;
  line-height: 1.4 !important;
  font-weight: 400;
  color: var(--fg) !important;
  margin-bottom: 2rem !important;
  letter-spacing: -0.01em;
}

.prose__pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem) !important;
  color: var(--accent) !important;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  margin-top: 2rem !important;
}

.prose strong { color: var(--fg); font-weight: 500; }

/* ============================================
   PROJECT
   ============================================ */
.project {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 5vw, 4rem);
  max-width: var(--container);
  margin: 0 auto;
}

.project--alt {
  background: var(--bg-alt) !important;
  max-width: none !important;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project--alt > * {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.project__marker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.project__kind {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--fg-dim);
  text-transform: none;
  letter-spacing: 0.02em;
}

.project__header {
  margin-bottom: 3.5rem;
}

.project__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.project__title em {
  color: var(--accent);
  font-weight: 300;
  display: inline-block;
  padding-left: clamp(0.5rem, 3vw, 2rem);
}

.project__body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin: clamp(3rem, 6vw, 5rem) 0;
}

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

.project__text p {
  margin-bottom: 1.5rem;
  color: var(--fg-dim);
  line-height: 1.85;
}

.project__meta {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  padding-top: 0.5rem;
}

.meta-block h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.meta-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.meta-block li {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--fg);
}
.meta-block li span { color: var(--fg-mute); font-size: 0.82rem; }

.dates li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--bg-elev);
  color: var(--fg-dim);
}

.dates time {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 0.85rem;
}

.meta-block--support p { color: var(--fg-dim); font-size: 0.9rem; }

.meta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--accent);
  border-bottom: 1px solid rgba(184, 90, 64, 0.3);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.meta-link:hover {
  color: var(--fg);
  border-color: var(--fg-dim);
}

/* ============================================
   GALLERIES
   ============================================ */
.gallery {
  display: grid;
  gap: clamp(0.5rem, 1vw, 1rem);
  margin: clamp(2rem, 4vw, 3.5rem) 0;
}

.gallery--tisseuse {
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: 240px 240px;
}
.gallery--tisseuse figure:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.gallery--tisseuse figure:nth-child(2) { grid-column: 2; grid-row: 1; }
.gallery--tisseuse figure:nth-child(3) { grid-column: 2; grid-row: 2; }
.gallery--tisseuse figure:nth-child(4) { grid-column: 3; grid-row: 1 / 3; }

.gallery--automate {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
}
.gallery--automate figure:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 2; }
.gallery--automate figure:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
.gallery--automate figure:nth-child(3) { grid-column: 3 / 5; grid-row: 1 / 2; }
.gallery--automate figure:nth-child(4) { grid-column: 1 / 5; grid-row: 2 / 3; }

.gallery figure {
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-elev);
  position: relative;
}

.gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
  transition: all 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery figure:hover img {
  filter: saturate(1.05);
  transform: scale(1.03);
}

.gallery--naufrage {
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
}
.gallery--naufrage figure:nth-child(1) { grid-column: 1 / 8; grid-row: 1 / 3; }
.gallery--naufrage figure:nth-child(2) { grid-column: 8 / 13; grid-row: 1 / 2; }
.gallery--naufrage figure:nth-child(3) { grid-column: 8 / 13; grid-row: 2 / 3; }

.gallery--naufrage-env {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
}

@media (max-width: 800px) {
  .gallery--tisseuse {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: unset;
    grid-auto-rows: 200px;
  }
  .gallery--automate,
  .gallery--naufrage,
  .gallery--naufrage-env {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .gallery--tisseuse figure,
  .gallery--automate figure,
  .gallery--naufrage figure,
  .gallery--naufrage-env figure {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* ============================================
   VIDEO EMBED
   ============================================ */
.project__video-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  margin: clamp(2rem, 4vw, 3.5rem) 0;
}

.project__video-row .project__text p {
  margin-bottom: 1.5rem;
  color: var(--fg-dim);
  line-height: 1.85;
}

@media (max-width: 900px) {
  .project__video-row { grid-template-columns: 1fr; }
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.project__meta--full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.2rem;
}

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

/* ============================================
   QUOTE
   ============================================ */
.quote {
  max-width: 720px;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  position: relative;
}

.quote::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.quote figcaption {
  font-size: 0.85rem;
  color: var(--fg-mute);
  letter-spacing: 0.05em;
}

.quote--inline {
  max-width: none;
  padding: 2rem 0 0;
  margin: 2rem 0 0;
  text-align: left;
  border-top: 1px solid var(--line);
}

.quote--inline::before { display: none; }

.quote--inline blockquote {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

/* ============================================
   MEMBERS
   ============================================ */
.members {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}

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

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

.member {
  display: flex;
  flex-direction: column;
}

.member__portrait {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-elev);
  margin-bottom: 1.5rem;
  filter: grayscale(0.1) saturate(0.95);
  transition: filter 0.5s ease;
}

.member:hover .member__portrait {
  filter: grayscale(0) saturate(1.05);
}

.member h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.member__role {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.member__bio {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--fg-dim);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(184, 90, 64, 0.08), transparent 55%),
    var(--bg-alt);
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.contact__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.contact__title-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact__logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 8px;
  flex-shrink: 0;
}

.contact__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.contact__lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--fg-dim);
  max-width: 56ch;
  margin-bottom: 3.5rem;
  line-height: 1.7;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.contact__card {
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.contact__card:hover {
  border-color: var(--accent);
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.contact__icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 0.5rem;
  transition: color 0.25s ease;
}

.contact__card:hover .contact__icon { color: var(--fg); }

.contact__label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.contact__value {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--fg);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--fg-mute);
}

.footer__links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.footer__links a {
  color: var(--fg-mute);
  transition: color 0.25s ease;
  display: flex;
}

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

.footer__links svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   LIGHTBOX
   ============================================ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity 0.18s ease;
}

.lightbox__close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
  z-index: 201;
}

.lightbox__close:hover { color: #fff; }

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 201;
}

.lightbox__nav:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Only fade inner elements, not the section backgrounds */
.section.reveal, .project.reveal, .contact.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.section.reveal > *, .project.reveal > *, .contact.reveal > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.section.is-visible > *, .project.is-visible > *, .contact.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 480px) {
  .hero {
    align-items: center;
    padding-top: 0;
  }
  .hero__inner {
    text-align: center;
  }
  .hero__sub {
    display: none;
  }
  .project__title {
    font-size: clamp(2rem, 10vw, 2.8rem);
    line-height: 1.05;
  }
  .hero__title {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
  }
  .contact__title {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }
  /* nav handled by hamburger on mobile */
  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
