/* ============================================================
   AB IMAGERY — style.css
   Fresh redesign · vanilla CSS · no frameworks
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --bg-3: #17171a;
  --ink: #ece8df;
  --ink-dim: #b5b0a6;
  --muted: #8b867c;
  --line: rgba(236, 232, 223, 0.12);
  --line-soft: rgba(236, 232, 223, 0.07);
  --accent: #d4a853;
  --accent-soft: rgba(212, 168, 83, 0.14);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #131313; }

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

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

.container {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- grain overlay ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.5;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)" opacity="0.05"/></svg>');
}

/* ---------- typography helpers ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-top: 18px;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.25s ease;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-solid {
  background: var(--ink);
  color: #121212;
  border-color: var(--ink);
}
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1405;
}
.btn-accent:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 130;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 10, 11, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 380;
  padding: 8px 0;
  color: var(--ink);
  transition: color 0.25s ease;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .menu-contact {
  margin-top: 28px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -8% 0;
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: center 60%;
  will-change: transform;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.1) 35%, rgba(10,10,11,0.55) 72%, var(--bg) 100%),
    radial-gradient(70% 50% at 50% 40%, rgba(212,168,83,0.07), transparent 65%);
}
.hero-inner {
  padding-bottom: clamp(60px, 10vh, 120px);
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 22px;
}
.hero-kicker .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(52px, 9.5vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 11ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  margin-top: 26px;
  max-width: 46ch;
  color: var(--ink-dim);
  font-size: clamp(15px, 1.6vw, 18px);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.scroll-hint {
  position: absolute;
  right: 40px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- sections ---------- */
section { position: relative; }
.section-pad { padding: clamp(80px, 12vh, 150px) 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(40px, 6vh, 70px);
}
.section-head .lede {
  max-width: 38ch;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- selected work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.work-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-3);
  display: block;
}
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 1s ease;
  filter: saturate(0.92);
}
.work-card:hover img { transform: scale(1.045); filter: saturate(1.05); }
.work-card .card-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 46px 20px 18px;
  background: linear-gradient(to top, rgba(10,10,11,0.78), transparent);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s var(--ease);
}
.work-card:hover .card-cap { opacity: 1; transform: none; }

/* editorial arrangement */
.work-card:nth-child(1) { grid-column: span 7; aspect-ratio: 3 / 2; }
.work-card:nth-child(2) { grid-column: span 5; aspect-ratio: 4 / 5; }
.work-card:nth-child(3) { grid-column: span 4; aspect-ratio: 3 / 4; }
.work-card:nth-child(4) { grid-column: span 4; aspect-ratio: 3 / 4; }
.work-card:nth-child(5) { grid-column: span 4; aspect-ratio: 3 / 4; }
.work-card:nth-child(6) { grid-column: span 12; aspect-ratio: 21 / 9; }

.work-more {
  margin-top: 44px;
  text-align: center;
}

/* ---------- categories ---------- */
.cats {
  background: var(--bg-2);
  border-block: 1px solid var(--line-soft);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cat-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: block;
  background: var(--bg-3);
}
.cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.8s ease;
  filter: saturate(0.85) brightness(0.85);
}
.cat-card:hover img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.85) 0%, transparent 55%);
}
.cat-info {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 26px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.cat-info h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.cat-info .count {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.cat-arrow {
  width: 42px; height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.45s var(--ease);
}
.cat-card:hover .cat-arrow {
  background: var(--accent);
  color: #1a1405;
  border-color: var(--accent);
  transform: rotate(-45deg);
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.about-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}
.about-copy p {
  color: var(--ink-dim);
  margin-top: 22px;
  max-width: 54ch;
}
.about-copy p strong { color: var(--ink); font-weight: 600; }
.about-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* ---------- process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.process-card {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 34px 28px;
  background: var(--bg-2);
  transition: border-color 0.35s ease, transform 0.35s var(--ease);
}
.process-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.process-card::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.process-card h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 22px;
  margin-bottom: 10px;
}
.process-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- contact ---------- */
.contact {
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% 20%, rgba(212, 168, 83, 0.08), transparent 65%),
    var(--bg);
}
.contact .kicker { justify-content: center; }
.contact .kicker::before { display: none; }
.contact h2 {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-top: 20px;
}
.contact h2 em { font-style: italic; color: var(--accent); }
.contact .lede {
  color: var(--muted);
  max-width: 44ch;
  margin: 24px auto 0;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 44px;
}
.contact-line {
  margin-top: 34px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.06em;
}
.contact-line a { color: var(--ink-dim); border-bottom: 1px solid var(--line); transition: color .25s ease, border-color .25s ease; }
.contact-line a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner .brand { font-size: 16px; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: var(--muted); transition: color 0.25s ease; font-size: 13px; }
.footer-links a:hover { color: var(--accent); }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint::after { animation: none; }
}

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + clamp(50px, 9vh, 110px)) 0 clamp(30px, 5vh, 60px);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin-top: 18px;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero .lede { color: var(--muted); margin-top: 20px; max-width: 50ch; }

.filters {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: rgba(10, 10, 11, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-block: 1px solid var(--line-soft);
  padding: 14px 0;
}
.filters-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1405;
}
.chip .n { opacity: 0.6; font-weight: 600; margin-left: 5px; }

.gallery-wrap { padding: clamp(30px, 5vh, 60px) 0 clamp(70px, 10vh, 120px); }
.gallery {
  columns: 3 320px;
  column-gap: 20px;
}
.g-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: var(--bg-3);
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
  opacity: 0;
  transform: translateY(22px);
  animation: gin 0.7s var(--ease) forwards;
}
@keyframes gin { to { opacity: 1; transform: none; } }
.g-item img {
  width: 100%;
  transition: transform 0.9s var(--ease), filter 0.7s ease;
  filter: saturate(0.92);
}
.g-item:hover img { transform: scale(1.035); filter: saturate(1.06); }
.g-item .g-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(10,10,11,0.8), transparent);
  text-align: left;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}
.g-item:hover .g-cap { opacity: 1; transform: none; }
.g-empty {
  text-align: center;
  color: var(--muted);
  padding: 80px 0;
  font-family: var(--font-display);
  font-size: 22px;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 6, 7, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage {
  max-width: min(92vw, 1500px);
  max-height: 84vh;
  position: relative;
}
.lb-stage img {
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lb-cap {
  position: absolute;
  left: 0;
  bottom: -44px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
}
.lb-count {
  position: absolute;
  right: 0;
  bottom: -44px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.lb-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.5);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, border-color 0.25s ease;
  z-index: 2;
}
.lb-btn:hover { background: var(--accent); color: #1a1405; border-color: var(--accent); }
.lb-prev { left: 26px; }
.lb-next { right: 26px; }
.lb-close {
  position: fixed;
  top: 24px; right: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.5);
  color: var(--ink);
  font-size: 17px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, transform 0.3s ease;
  z-index: 2;
}
.lb-close:hover { background: var(--accent); color: #1a1405; border-color: var(--accent); transform: rotate(90deg); }

/* back-to-top mini footer nav on portfolio */
.page-cta {
  text-align: center;
  padding: 0 0 clamp(70px, 10vh, 110px);
}
.page-cta p {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 36px);
  margin-bottom: 24px;
}
.page-cta p em { font-style: italic; color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .work-card:nth-child(1) { grid-column: span 12; }
  .work-card:nth-child(2) { grid-column: span 6; }
  .work-card:nth-child(3) { grid-column: span 6; }
  .work-card:nth-child(4) { grid-column: span 6; }
  .work-card:nth-child(5) { grid-column: span 6; aspect-ratio: 3 / 2; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 480px; }
  .process-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .scroll-hint { display: none; }
  .work-grid { gap: 14px; }
  .work-card:nth-child(2),
  .work-card:nth-child(3),
  .work-card:nth-child(4),
  .work-card:nth-child(5) { grid-column: span 12; aspect-ratio: 3 / 2; }
  .work-card:nth-child(6) { aspect-ratio: 3 / 2; }
  .cat-grid { grid-template-columns: 1fr; }
    .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-btn { width: 44px; height: 44px; }
  .lb-cap { font-size: 14px; gap: 10px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
