/* ---------- Theme: change these to restyle the whole site ---------- */
:root {
  --bg: #0b0b0d;
  --bg-2: #141418;
  --text: #f4f2ee;
  --muted: #9a98a0;
  --accent: #ff3d8b;          /* pull this from your own photos */
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-display: "Syne", "Space Grotesk", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.02em; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--gutter);
  mix-blend-mode: difference;   /* stays readable over any photo */
  color: #fff;
}
.nav__logo { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.08em; font-size: 15px; }
.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; }
.nav__links a { position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; display: flex; align-items: flex-end; }
.hero__slides, .hero__shade { position: absolute; inset: 0; }
.hero__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 8s ease-out;
}
.hero__slides img.is-active { opacity: 1; transform: scale(1); }
.hero__shade { background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 55%); }
.hero__text { position: relative; padding: 0 var(--gutter) clamp(48px, 9vh, 96px); max-width: 900px; }
.hero__text h1 { font-size: clamp(40px, 8vw, 104px); font-weight: 800; }
.hero__text p { margin: 16px 0 28px; color: #e8e6e2; font-size: clamp(15px, 1.6vw, 19px); }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 32px; font-size: 12px; letter-spacing: .3em;
  text-transform: uppercase; writing-mode: vertical-rl; color: #ddd; animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(8px); } }

.btn {
  display: inline-block; padding: 14px 28px; border: 1px solid var(--text); border-radius: 999px;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 32px color-mix(in srgb, var(--accent) 60%, transparent); }

/* ---------- Work grid ---------- */
.work { padding: clamp(64px, 10vw, 140px) var(--gutter); }
.work__head { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: end; margin-bottom: 40px; }
.work__head h2 { font-size: clamp(32px, 5vw, 64px); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  padding: 8px 18px; border: 1px solid #333; border-radius: 999px; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: all .25s;
}
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Masonry: photos keep their real shape, so creative angles are never cropped */
.grid { column-count: 3; column-gap: 14px; }
@media (max-width: 900px) { .grid { column-count: 2; } }
@media (max-width: 520px) { .grid { column-gap: 8px; } }

.tile {
  position: relative; display: block; width: 100%; margin: 0 0 14px; break-inside: avoid;
  overflow: hidden; border-radius: 4px; background: var(--bg-2); cursor: zoom-in;
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1), box-shadow .4s;
}
.tile.is-in { opacity: 1; transform: none; }
.tile.is-hidden { display: none; }
.tile img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; }
.tile:hover img { transform: scale(1.06); }
.tile::after {   /* accent glow on hover */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 4px;
  box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .3s;
}
.tile:hover::after { box-shadow: inset 0 0 0 2px var(--accent); }
.tile__label {
  position: absolute; left: 14px; bottom: 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: all .35s; text-shadow: 0 1px 12px rgba(0,0,0,.7);
}
.tile:hover .tile__label { opacity: 1; transform: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 40px 0; border-block: 1px solid #222; }
.marquee__track { display: flex; width: max-content; animation: scroll 28s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 7vw, 96px); white-space: nowrap; padding-right: 2rem; color: transparent; -webkit-text-stroke: 1px var(--text); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 96px); padding: clamp(64px, 10vw, 140px) var(--gutter); align-items: center; }
.about__img img { width: 100%; height: auto; border-radius: 4px; }
.about__text h2 { font-size: clamp(32px, 5vw, 64px); margin-bottom: 24px; }
.about__text p { color: #cfcdd2; margin-bottom: 16px; max-width: 52ch; }
.about__text h3 { margin: 32px 0 12px; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.about__text ul { list-style: none; color: #cfcdd2; }
.about__text li { padding: 6px 0; border-bottom: 1px solid #222; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { padding: clamp(64px, 10vw, 140px) var(--gutter); text-align: center; background: var(--bg-2); }
.contact h2 { font-size: clamp(36px, 7vw, 96px); }
.contact__mail { display: inline-block; margin: 24px 0 8px; font-size: clamp(18px, 3vw, 32px); border-bottom: 2px solid var(--accent); }
.contact__mail:hover { color: var(--accent); }
.contact__links { margin-bottom: 40px; color: var(--muted); }
.contact__links a:hover { color: var(--accent); }
.contact__form { display: grid; gap: 12px; max-width: 520px; margin: 0 auto; text-align: left; }
.contact__form input, .contact__form textarea {
  width: 100%; padding: 14px 16px; background: var(--bg); color: var(--text); border: 1px solid #2a2a30; border-radius: 6px; font: inherit;
}
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--accent); }
.contact__form .btn { justify-self: start; }

.footer { padding: 28px var(--gutter); font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,7,.96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 92vw; max-height: 86vh; object-fit: contain; animation: pop .35s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.lightbox__close { position: absolute; top: 16px; right: 24px; font-size: 44px; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 56px; padding: 16px; color: var(--muted); }
.lightbox__nav:hover, .lightbox__close:hover { color: var(--accent); }
.lightbox__prev { left: 8px; } .lightbox__next { right: 8px; }
.lightbox__cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Custom cursor (desktop only) ---------- */
.cursor { position: fixed; z-index: 200; width: 14px; height: 14px; border-radius: 50%; pointer-events: none; background: var(--accent); mix-blend-mode: screen; transform: translate(-50%, -50%); transition: width .25s, height .25s, opacity .25s; opacity: 0; }
.cursor.is-on { opacity: .9; }
.cursor.is-big { width: 56px; height: 56px; opacity: .35; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: .01ms !important; }
  .tile { opacity: 1; transform: none; }
  .hero__slides img { transform: none; }
}
/* ---------- Light theme (delete this block to go back to dark) ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #f4f2ef;
  --text: #111111;
  --muted: #6b6970;
}
.about__text p, .about__text ul { color: #444; }
.about__text li { border-bottom-color: #ddd; }
.filter { border-color: #ccc; }
.marquee { border-color: #ddd; }
.contact__form input, .contact__form textarea { border-color: #ccc; }
.cursor { mix-blend-mode: normal; }
.hero .btn { border-color: #fff; color: #fff; }
.hero .btn:hover { border-color: var(--accent); }
.lightbox { color: #fff; }

.hero__text h1 { color: #fff; }
