:root,
[data-theme="dark"]{
  --bg: #0d0c16;
  --surface: #17151f;
  --accent-1: #acd7fa;
  --accent-2: #acd7fa;
  --accent-3: #acd7fa;
  --text: #f6f4fb;
  --text-muted: #8d87a6;
}

[data-theme="light"]{
  --bg: #f4f2fb;
  --surface: #ffffff;
  --accent-1: #acd7fa;
  --accent-2: #acd7fa;
  --accent-3: #acd7fa;
  --text: #17152a;
  --text-muted: #767089;
}

:root{
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.16,.84,.44,1);

  --accent-grad: linear-gradient(120deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));
  --glass-bg: color-mix(in srgb, var(--surface) 55%, transparent);
  --glass-bg-strong: color-mix(in srgb, var(--surface) 80%, transparent);
  --glass-border: color-mix(in srgb, var(--text) 12%, transparent);
  --glass-shadow: color-mix(in srgb, var(--bg) 70%, black 30%);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.mono{ font-family: var(--font-mono); letter-spacing: .02em; }
::selection{ background: var(--accent-1); color: #fff; }

a:focus-visible, button:focus-visible, .card:focus-visible{
  outline: 2px solid var(--accent-3);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.glass{
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 20px 60px -20px var(--glass-shadow);
}

/* nav */
.nav{
  position: fixed;
  top: 18px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}
.nav-inner{
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
}
.logo{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}
.logo-dot{ color: var(--accent-2); }

.nav-links{ display: flex; gap: 28px; }
.nav-links a{
  font-size: .92rem;
  color: var(--text-muted);
  transition: color .25s var(--ease);
}
.nav-links a:hover{ color: var(--text); }
.nav-links a.active{ color: var(--text); }

.nav-actions{ display: flex; align-items: center; gap: 8px; }

.theme-toggle-track{
  display: flex; align-items: center;
  width: 52px; height: 30px;
  padding: 3px;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
}
.theme-toggle-thumb{
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  transform: translateX(0);
  transition: transform .4s var(--ease);
}
[data-theme="light"] .theme-toggle-thumb{ transform: translateX(22px); }
.theme-toggle .icon{ width: 14px; height: 14px; color: #fff; }
.theme-toggle .icon-sun{ display: none; }
[data-theme="light"] .theme-toggle .icon-sun{ display: block; }
[data-theme="light"] .theme-toggle .icon-moon{ display: none; }

.nav-burger{
  display: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.nav-burger span{
  width: 16px; height: 2px; background: var(--text);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* hero */
.hero{
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 8vw 100px;
}
.hero-eyebrow{
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0 0 20px;
  opacity: 0;
  animation: rise .8s var(--ease) .1s forwards;
}
.hero-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.5vw, 6.2rem);
  line-height: .98;
  letter-spacing: -.03em;
  margin: 0 0 28px;
  max-width: 16ch;
  opacity: 0;
  animation: rise .9s var(--ease) .22s forwards;
}
.hero-highlight{
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.hero-sub{
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.6;
  margin: 0 0 40px;
  opacity: 0;
  animation: rise .9s var(--ease) .34s forwards;
}
.hero-actions{
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0;
  animation: rise .9s var(--ease) .46s forwards;
}
@keyframes rise{
  from{ opacity: 0; transform: translateY(22px); }
  to{ opacity: 1; transform: translateY(0); }
}

.btn{
  padding: 14px 26px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn-primary{ background: var(--accent-grad); color: #fff; }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 30px -10px var(--accent-1); }
.btn-ghost{
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
}
.btn-ghost:hover{ transform: translateY(-2px); background: var(--glass-bg-strong); }

/* section head */
.section-eyebrow{
  font-size: .78rem;
  color: var(--accent-1);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.section-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -.02em;
  margin: 0;
  line-height: 1.1;
}
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.page-header{ padding: 150px 8vw 20px; }

/* gallery */
.gallery{ padding: 60px 8vw 100px; }
.filters{ display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn{
  padding: 9px 18px;
  border-radius: 999px;
  font-size: .82rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  color: var(--text-muted);
  transition: all .3s var(--ease);
}
.filter-btn:hover{ color: var(--text); }
.filter-btn.active{ background: var(--accent-grad); color: #fff; border-color: transparent; }

.grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.card{
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
  transition: transform .5s var(--ease), opacity .5s var(--ease), box-shadow .4s var(--ease);
}
.card.in-view{ opacity: 1; transform: translateY(0); }
.card:hover{ box-shadow: 0 24px 50px -18px var(--glass-shadow); }

.card-art{
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius-md) - 8px);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.card-glyph{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: rgba(255,255,255,.55);
  mix-blend-mode: overlay;
  user-select: none;
}
.card-info{ padding: 0 4px 4px; }
.card-tag{ font-size: .72rem; text-transform: uppercase; color: var(--text-muted); margin: 0 0 4px; }
.card-title{ font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin: 0; }

/* about / contact */
.about, .contact{ padding: 150px 8vw 100px; }
.about-card, .contact-card{ border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 64px); }
.about-body{ color: var(--text-muted); max-width: 60ch; line-height: 1.7; margin: 20px 0 36px; }
.about-stats{ display: flex; gap: 40px; flex-wrap: wrap; }
.about-stats li{ display: flex; flex-direction: column; gap: 6px; }
.stat-num{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label{ font-size: .74rem; color: var(--text-muted); text-transform: uppercase; }

.contact-card{ text-align: center; }
.contact-sub{ color: var(--text-muted); margin: 14px auto 30px; max-width: 46ch; }
.contact-email{
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.6vw, 2.2rem);
  font-weight: 700;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent-1);
  margin-bottom: 30px;
  transition: color .3s var(--ease);
}
.contact-email:hover{ color: var(--accent-1); }
.social-links{ display: flex; gap: 26px; justify-content: center; }
.social-links a{ color: var(--text-muted); font-size: .88rem; transition: color .3s var(--ease); }
.social-links a:hover{ color: var(--text); }

/* footer */
.footer{ text-align: center; padding: 30px; color: var(--text-muted); font-size: .75rem; }

/* lightbox */
.lightbox{
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.lightbox.open{ opacity: 1; pointer-events: auto; }
.lightbox-backdrop{
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(6px);
}
.lightbox-panel{
  position: relative;
  z-index: 2;
  width: min(880px, 100%);
  max-height: 86vh;
  overflow: auto;
  border-radius: var(--radius-lg);
  transform: scale(.94) translateY(14px);
  transition: transform .4s var(--ease);
}
.lightbox.open .lightbox-panel{ transform: scale(1) translateY(0); }
.lightbox-media{
  height: 320px;
  margin: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.lightbox-close{
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
}
.lightbox-info{ padding: 10px clamp(20px, 4vw, 40px) 36px; }
.lightbox-tag{ color: var(--accent-1); font-size: .78rem; text-transform: uppercase; margin: 0 0 8px; }
.lightbox-info h3{ font-family: var(--font-display); font-size: 1.7rem; margin: 0 0 12px; }
.lightbox-info p:last-child{ color: var(--text-muted); line-height: 1.7; max-width: 60ch; }

/* responsive */
@media (max-width: 720px){
  .nav-links{
    position: fixed;
    top: 78px; right: 20px; left: 20px;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(22px);
    transform-origin: top right;
    transform: scale(.95);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav-links.open{ opacity: 1; transform: scale(1); pointer-events: auto; }
  .nav-links a{ padding: 10px 8px; }
  .nav-burger{ display: flex; }
  .nav-burger.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .nav-burger.open span:nth-child(2){ opacity: 0; }
  .nav-burger.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

  .hero{ padding: 120px 6vw 80px; }
  .grid{ grid-template-columns: 1fr; }
  .about-stats{ gap: 28px; }
  .lightbox-media{ height: 220px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .hero-eyebrow, .hero-title, .hero-sub, .hero-actions{ animation: none; opacity: 1; }
}
