/* ============================================================
   SANIYA AMIN — Editorial B&W
   Canvas: white paper / black ink. Type: Archivo + Instrument Serif
   ============================================================ */

/* Self-hosted so first paint never waits on a third-party font host. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
}

:root {
  --paper: #ffffff;
  --ink: #0a0a0a;
  --muted: #6e6e6e;
  --faint: #9a9a9a;
  --line: #0a0a0a;
  --line-soft: #e4e4e0;
  --wash: #f4f4f2;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --pad: clamp(1.1rem, 3.5vw, 3.5rem);
  --z-nav: 50;
  --z-menu: 60;
  --z-lightbox: 70;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--paper); }

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

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

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Type utilities ---------- */

.micro {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.micro--mut { color: var(--muted); }

.ital {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.dot {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--ink);
  vertical-align: baseline;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad);
  background: var(--paper);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled { box-shadow: 0 1px 0 var(--line); }

.nav__brand {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__brand .ital {
  font-size: 1.05em;
  font-weight: 400;
  margin-left: 0.35em;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s ease;
}

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

.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu.open { opacity: 1; visibility: visible; }

.menu a {
  font-size: clamp(2.4rem, 10vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  transition: padding-left 0.25s ease;
}

.menu a:hover { padding-left: 0.8rem; }

.menu a small {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.menu__close {
  position: absolute;
  top: 1rem;
  right: var(--pad);
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 5.5rem var(--pad) 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero__name {
  font-weight: 900;
  font-size: clamp(4.2rem, 18.5vw, 18rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 1.5rem 0 0;
}

.hero__name .l1 { display: block; }

.hero__name .l2 {
  display: flex;
  align-items: baseline;
  gap: 0.18em;
  padding-left: clamp(0rem, 12vw, 12rem);
}

.hero__name .l2 .annot {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 2.6vw, 2.2rem);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  transform: translateY(-0.6em);
  white-space: nowrap;
}

.hero__body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding: clamp(2rem, 4vw, 3.5rem) 0 0;
}

.hero__intro { padding-bottom: 2.5rem; }

.hero__intro .tags {
  margin: 0 0 1.6rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55em;
}

.hero__intro p.lede {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 400;
  line-height: 1.55;
  max-width: 26em;
  margin-bottom: 2.2rem;
}

.hero__intro p.lede .ital { font-size: 1.15em; }

.hero__cta {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.btn-block {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 1.1rem 2.3rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}

.btn-block:hover { background: var(--paper); color: var(--ink); }

.btn-block svg { width: 13px; height: 13px; transition: transform 0.25s ease; }
.btn-block:hover svg { transform: translate(3px, -3px); }

.link-line {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.35rem;
  transition: opacity 0.2s ease;
}

.link-line:hover { opacity: 0.55; }

.hero__spacer {
  align-self: stretch;
  position: relative;
}

.hero__spacer::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3rem;
  width: 100%;
  height: 1px;
  background: var(--line-soft);
}

.hero__figure {
  position: relative;
  align-self: end;
}

.hero__figure img {
  width: 100%;
  height: auto;
}

.hero__figure figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0 0.9rem;
  border-top: 1px solid var(--line);
  margin-top: 0.7rem;
}

/* ============================================================
   MARQUEE — black band
   ============================================================ */

.band {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 0.95rem 0;
}

.band__track {
  display: flex;
  width: max-content;
  animation: band 38s linear infinite;
}

.band span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 2.4rem;
}

.band .ital {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

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

/* ============================================================
   CHAPTERS (portfolio)
   ============================================================ */

.chapter { padding: clamp(4rem, 8vw, 7rem) var(--pad) 0; }

.chapter__head {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
  margin-bottom: clamp(2.2rem, 5vw, 4rem);
}

.chapter__no {
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.chapter__no .ital {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--muted);
  margin-right: 0.2em;
}

.chapter__title {
  font-weight: 900;
  font-size: clamp(2.6rem, 8vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.chapter__title .ital {
  font-weight: 400;
  font-size: 0.62em;
  vertical-align: baseline;
}

.chapter__credit {
  text-align: right;
  max-width: 15rem;
  padding-top: 0.5rem;
}

.chapter__credit .ital {
  display: block;
  font-size: 1.05rem;
  color: var(--ink);
  margin-top: 0.3rem;
}

/* collage */
.collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.4vw, 2.2rem);
  align-items: start;
}

.f {
  position: relative;
  cursor: pointer;
  padding: 0;
  text-align: left;
  width: 100%;
  display: block;
  background: none;
}

.f img {
  width: 100%;
  height: auto;
  transition: opacity 0.35s ease;
  background: var(--wash);
}

.f:hover img,
.f:focus-visible img { opacity: 0.88; }

.f figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.55rem;
  margin-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.f .cap-t {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.f .cap-n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
}

/* spans */
.w3 { grid-column: span 3; }
.w4 { grid-column: span 4; }
.w5 { grid-column: span 5; }
.w6 { grid-column: span 6; }
.w7 { grid-column: span 7; }
.w8 { grid-column: span 8; }

/* stagger pushes */
.pu1 { margin-top: clamp(2rem, 5vw, 5rem); }
.pu2 { margin-top: clamp(3rem, 8vw, 8rem); }

/* offsets (explicit start + span so the shorthand isn't clobbered) */
.w4.o2 { grid-column: 3 / span 4; }
.w5.o2 { grid-column: 3 / span 5; }
.w7.o1 { grid-column: 2 / span 7; }

/* ============================================================
   MOTION — inverted band section
   ============================================================ */

.motion {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 8vw, 7rem) var(--pad);
  margin-top: clamp(4rem, 8vw, 7rem);
}

.motion .chapter__head {
  border-top-color: var(--paper);
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.motion .chapter__credit .ital { color: var(--paper); }

.motion .micro--mut { color: #9b9b9b; }

.reel-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(210px, 22vw, 300px);
  gap: clamp(1rem, 2vw, 1.8rem);
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--paper) #2a2a2a;
}

.reel-row::-webkit-scrollbar { height: 3px; }
.reel-row::-webkit-scrollbar-track { background: #2a2a2a; }
.reel-row::-webkit-scrollbar-thumb { background: var(--paper); }

.reel {
  scroll-snap-align: start;
  cursor: pointer;
  width: 100%;
  padding: 0;
  text-align: left;
  color: inherit;
}

.reel__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #1c1c1c;
}

.reel__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reel:hover .reel__frame img { transform: scale(1.04); }

.reel__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel__play span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.reel:hover .reel__play span { transform: scale(1.1); }

.reel__play svg { width: 16px; height: 16px; margin-left: 3px; }

.reel figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.55rem;
  margin-top: 0.6rem;
  border-top: 1px solid var(--paper);
}

.reel .cap-n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: #9b9b9b;
}

/* ============================================================
   INDEX — selected work
   ============================================================ */

.workx { padding: clamp(4rem, 8vw, 7rem) var(--pad) 0; }

.work-list { border-top: 1px solid var(--line); }

.work-row {
  display: grid;
  grid-template-columns: 3.6rem 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.4rem);
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.28s ease;
}

a.work-row:hover { padding-left: 1.1rem; }

.work-row .idx {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
}

.work-row .name {
  font-weight: 800;
  font-size: clamp(1.35rem, 3.4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.work-row .name .ital {
  font-weight: 400;
  font-size: 0.78em;
  letter-spacing: 0;
}

.work-row .kind { text-align: right; color: var(--muted); }

.work-row .arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s ease, color 0.22s ease, transform 0.3s ease;
}

.work-row .arrow svg { width: 14px; height: 14px; }

a.work-row:hover .arrow {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(45deg);
}

.work-row .arrow--off { opacity: 0.22; }

/* ============================================================
   ABOUT
   ============================================================ */

.about { padding: clamp(4rem, 8vw, 7rem) var(--pad) 0; }

.about__inner {
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about__media img {
  width: 100%;
  height: auto;
}

.about__media figcaption {
  display: flex;
  justify-content: space-between;
  padding-top: 0.55rem;
  margin-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.about__statement {
  font-size: clamp(1.5rem, 2.9vw, 2.5rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 1.4rem 0 2.6rem;
  max-width: 22em;
}

.about__statement .ital { font-size: 1.08em; }

.svc-list {
  list-style: none;
  border-top: 1px solid var(--line);
  margin-bottom: 3rem;
}

.svc-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.8rem 0.1rem;
  border-bottom: 1px solid var(--line-soft);
}

.svc-list .svc-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.svc-list .svc-no {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
}

.stats { width: 100%; border-collapse: collapse; }

.stats caption {
  text-align: left;
  padding-bottom: 1rem;
}

.stats tr { border-bottom: 1px solid var(--line-soft); }
.stats tr:first-child { border-top: 1px solid var(--line); }

.stats th {
  text-align: left;
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.8rem 0;
  width: 42%;
}

.stats td {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  padding: 0.8rem 0;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact { padding: clamp(4rem, 8vw, 7rem) var(--pad) clamp(4rem, 8vw, 6rem); }

.contact__rule { border-top: 1px solid var(--line); padding-top: 1rem; }

.contact__title {
  font-weight: 900;
  font-size: clamp(3rem, 11vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0.8rem 0 2.5rem;
}

.contact__title .ital {
  font-weight: 400;
  font-size: 0.82em;
  letter-spacing: 0;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact__blurb {
  color: var(--muted);
  max-width: 28em;
  margin-bottom: 2.6rem;
}

.channels { list-style: none; border-top: 1px solid var(--line); }

.channels li { border-bottom: 1px solid var(--line-soft); }

.channels a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0.1rem;
  transition: padding-left 0.24s ease;
}

.channels a:hover { padding-left: 0.8rem; }

.channels .ch-l { color: var(--muted); }

.channels .ch-v {
  font-size: 0.95rem;
  font-weight: 500;
}

.channels svg { width: 15px; height: 15px; flex: none; }

/* form */
.form { display: grid; gap: 1.7rem; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.7rem;
}

.field { display: grid; gap: 0.45rem; }

.field label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.65rem 0.1rem;
  border-radius: 0;
  width: 100%;
  transition: border-color 0.2s ease;
}

.field select { cursor: pointer; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-width: 2px;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.field textarea { resize: vertical; min-height: 7rem; }

.form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.4rem;
}

.form__submit[disabled] { opacity: 0.5; cursor: wait; }

.form__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

.form-status {
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  display: none;
  border: 1px solid var(--ink);
}

.form-status.ok { display: block; background: var(--wash); }

.form-status.err {
  display: block;
  background: #fdf0ee;
  border-color: #8e2b1c;
  color: #8e2b1c;
}

.hidden-field { display: none; }

/* ============================================================
   FOOTER — black band
   ============================================================ */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 6vw, 5rem) var(--pad) 2rem;
}

.footer__name {
  font-weight: 900;
  font-size: clamp(3rem, 12.5vw, 12rem);
  line-height: 0.85;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.footer__name .ital {
  font-weight: 400;
  font-size: 0.8em;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--paper);
  padding-top: 1.2rem;
}

.footer__row .micro--mut { color: #9b9b9b; }

.footer__social {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}

.footer__social a {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
  transition: border-color 0.2s ease;
}

.footer__social a:hover { border-color: var(--paper); }

.footer__credit {
  margin-top: 1.6rem;
  text-align: right;
  color: #555;
}

.footer__credit a {
  color: #8a8a8a;
  transition: color 0.2s ease;
}

.footer__credit a:hover { color: var(--paper); }

/* ============================================================
   LIGHTBOX — white
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(255, 255, 255, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox__stage {
  max-width: min(92vw, 1100px);
  max-height: 86svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__stage img,
.lightbox__stage video {
  max-width: min(92vw, 1100px);
  max-height: 86svh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.lightbox__btn {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lightbox__btn:hover { background: var(--ink); color: var(--paper); }

.lightbox__btn svg { width: 17px; height: 17px; }

.lightbox__close { top: 1.3rem; right: 1.3rem; }
.lightbox__prev { left: 1.1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.1rem; top: 50%; transform: translateY(-50%); }

.lightbox__counter {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
}

/* ============================================================
   REVEAL
   ============================================================ */

html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

html.js .reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero__body { grid-template-columns: 1fr 1fr; }
  .hero__spacer { display: none; }

  .collage { grid-template-columns: repeat(6, 1fr); }
  .w3, .w4, .w4.o2 { grid-column: span 3; }
  .w5, .w6, .w7, .w8, .w5.o2, .w7.o1 { grid-column: span 6; }
  .pu2 { margin-top: clamp(2rem, 5vw, 5rem); }

  .about__inner,
  .contact__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; }
}

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

  .hero { padding-top: 4.6rem; }

  .hero__name .l2 { padding-left: clamp(2rem, 14vw, 6rem); }
  .hero__name .l2 .annot { font-size: 1rem; }

  .hero__body { grid-template-columns: 1fr; }
  .hero__intro { padding-bottom: 0; }
  .hero__figure { max-width: 100%; margin-bottom: 1rem; }

  .collage { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .w3, .w4, .w5, .w4.o2, .w5.o2 { grid-column: span 1; }
  .w6, .w7, .w8, .w7.o1 { grid-column: span 2; }
  .pu1, .pu2 { margin-top: 0; }

  .chapter__head { grid-template-columns: auto 1fr; }
  .chapter__credit { display: none; }

  .work-row { grid-template-columns: 2.2rem 1fr auto; }
  .work-row .kind { display: none; }

  .form__row { grid-template-columns: 1fr; }

  .reel-row { grid-auto-columns: 60vw; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js .reveal { opacity: 1; transform: none; }
  .band__track { animation: none; }
}
