/* ============================================================
   jordanhalsey.com — redesign scaffold v1
   Typography-first system: one grotesque family, huge scale
   contrast, near-black ground, thin rules, editorial grid.
   ============================================================ */

:root {
  --bg: #0b0b0c;
  --ink: #f2f2f0;
  --meta: #8a8a8a;
  --rule: #232324;
  --accent: #ff9600; /* AOD orange — per-project accent can override on a page */
  --pad: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1500px; /* centered content column; wide screens get large side gutters */
  --gutter: max(var(--pad), calc((100% - var(--maxw)) / 2)); /* horizontal inset for all top-level blocks */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.body-copy a, .credits a {
  border-bottom: 1px solid var(--meta);
  transition: border-color 0.2s, color 0.2s;
}
.body-copy a:hover, .credits a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- type scale ---------- */

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--meta);
}

.display {
  font-weight: 800;
  font-stretch: 110%;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.015em;
}

.display .dash { color: var(--meta); font-weight: 300; }

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

h1.display { font-size: clamp(2.75rem, 9vw, 8rem); }
h2.display { font-size: clamp(2rem, 5.5vw, 4.5rem); }

.body-copy {
  color: #c9c9c6;
  max-width: 34em;
}
.body-copy + .body-copy { margin-top: 1em; }
.body-copy strong { color: var(--ink); font-weight: 600; }

.meta { color: var(--meta); font-size: 0.8125rem; }

/* ---------- structure ---------- */

.rule { border: 0; border-top: 1px solid var(--rule); }

section { padding: clamp(4rem, 10vw, 8rem) var(--gutter); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- nav ---------- */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem var(--gutter);
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
}

.site-nav .wordmark {
  font-weight: 800;
  font-stretch: 110%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9375rem;
}

.site-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.site-nav ul a {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--meta);
  transition: color 0.2s;
}
.site-nav ul a:hover { color: var(--ink); }
.site-nav ul a[aria-current] { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.25rem 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.site-nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .site-nav { align-items: center; }
  .site-nav ul { display: none; }
  .nav-toggle { display: block; }
  .site-nav.open ul {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1.25rem var(--gutter) 1.5rem;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad) var(--gutter) clamp(2rem, 6vh, 4rem);
  overflow: hidden;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 6%, rgba(11, 11, 12, 0.72) 30%, rgba(11, 11, 12, 0.18) 60%, transparent 85%);
}

.hero > * { position: relative; z-index: 1; }

.hero .eyebrow { margin-bottom: 1.25rem; color: var(--accent); }

.hero .hero-meta .meta { color: var(--accent); }

.hero .hero-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2.5rem;
}

/* ---------- discipline index ---------- */

.index-list { list-style: none; }

.index-list li { border-top: 1px solid var(--rule); }
.index-list li:last-child { border-bottom: 1px solid var(--rule); }

.index-list a {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.6rem 0;
  transition: padding-left 0.25s ease;
}
.index-list a:hover { padding-left: 1rem; }

.index-list .num {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--meta);
  font-variant-numeric: tabular-nums;
}

.index-list .title {
  font-weight: 800;
  font-stretch: 110%;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  line-height: 1;
}

.index-list .tags {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--meta);
  text-align: right;
}
@media (max-width: 760px) { .index-list .tags { display: none; } }

/* ---------- work grid ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 3rem;
}
@media (max-width: 1000px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }

.card { display: block; }

.card figure {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #141416;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(12%);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.card:hover img { transform: scale(1.03); filter: grayscale(0%); }

.card .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.9rem;
}

.card h3 {
  font-weight: 800;
  font-stretch: 110%;
  text-transform: uppercase;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

/* ---------- photo series strips ---------- */

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (max-width: 760px) { .photo-strip { grid-template-columns: 1fr; } }

.photo-strip img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(8%);
  transition: filter 0.4s ease;
}
.photo-strip img:hover { filter: grayscale(0%); }

/* ---------- case sections (discipline pages) ---------- */

.case {
  border-top: 1px solid var(--rule);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.case .case-num {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px #75757e;
  margin-bottom: 1.5rem;
}

.case h3 {
  font-weight: 800;
  font-stretch: 110%;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.case .case-media { margin-top: 2.5rem; }
.case .case-media + .case-media { margin-top: 1rem; }
.case .case-media video { width: 100%; background: #141416; }

.case .media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.case .media-row figure { width: 100%; }
.case .media-row img { width: 100%; }
@media (max-width: 760px) { .case .media-row { grid-template-columns: 1fr; } }

.pull-quote {
  font-weight: 800;
  font-stretch: 110%;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 5vw, 4rem);
  line-height: 1.02;
  max-width: 18em;
}
.pull-quote .dash { color: var(--meta); font-weight: 300; }

/* ---------- photo series page ---------- */

.photo-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 2rem);
}

.photo-gallery img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  cursor: zoom-in;
}

.photo-gallery figure { margin: 0; }
.photo-gallery figcaption {
  font-size: 0.75rem;
  color: var(--muted, #6b6b70);
  margin-top: 0.4rem;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.photo-gallery .chapter {
  border-top: 1px solid var(--rule, #e3e3e0);
  padding-top: 0.6rem;
  margin-top: clamp(1rem, 3vw, 2.5rem);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted, #6b6b70);
}

.photo-gallery .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
}
@media (max-width: 760px) { .photo-gallery .pair { grid-template-columns: 1fr; } }

/* ---------- single-image pager (photo series) ---------- */
.pager-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: #fff;
  display: none;
  flex-direction: column;
}
.pager-overlay.open { display: flex; }
.pager-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 3.5rem 3rem 4.5rem; min-height: 0; position: relative; }
.pager-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pager-zone { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; }
.pager-zone.prev { left: 0; cursor: w-resize; }
.pager-zone.next { right: 0; cursor: e-resize; }
.pager-caption {
  position: absolute; left: 1.25rem; bottom: 1.1rem; z-index: 3;
  font-size: 0.75rem; color: #6b6b70; font-variant-numeric: tabular-nums;
}
.pager-index {
  position: absolute; right: 1.25rem; top: 1.1rem; z-index: 3;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: #1a1a1c; text-decoration: none; cursor: pointer;
  background: none; border: 0; padding: 0.3rem 0; font-family: inherit;
}
.pager-index:hover { color: #ff9600; }

/* ---------- prototype B: uniform typology grid ---------- */
.typology-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}
.typology-grid figure { margin: 0; }
.typology-grid figcaption {
  font-size: 0.75rem;
  color: var(--muted, #6b6b70);
  margin-top: 0.4rem;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.typology-grid img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; cursor: zoom-in;
  max-height: none;
}
@media (max-width: 760px) { .typology-grid { grid-template-columns: repeat(2, 1fr); } }

.series-head {
  padding: calc(4.5rem + clamp(4rem, 10vw, 8rem)) var(--gutter) 0;
}
.series-head .hero-meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem 2.5rem; }
.series-head .hero-meta .meta { color: var(--accent); }

/* ---------- project page ---------- */

.credits { display: grid; gap: 0.4rem; }

.credits .row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
}
.credits .row:last-child { border-bottom: 1px solid var(--rule); }
.credits .k { color: var(--meta); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.6875rem; padding-top: 0.1em; }

/* interior images stay within the contained column (hero tops handle true bleed) */
.full-bleed { margin: 0; }
.full-bleed img, .full-bleed video { width: 100%; }

.deliverables { list-style: none; counter-reset: d; }
.deliverables li {
  counter-increment: d;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.deliverables li:last-child { border-bottom: 1px solid var(--rule); }
.deliverables li::before {
  content: counter(d, decimal-leading-zero);
  color: var(--meta);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

figcaption {
  color: var(--meta);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding-top: 0.6rem;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--rule);
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

footer .big-link {
  font-weight: 800;
  font-stretch: 110%;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  line-height: 1;
}

footer ul { list-style: none; }
footer ul a {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--meta);
  line-height: 2.4;
}
footer ul a:hover { color: var(--ink); }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }
