/* ============================================================
   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);
  --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(--pad); }

.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(--pad);
  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); }

@media (max-width: 760px) { .site-nav ul { display: none; } }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad);
  padding-bottom: 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;
}
@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; }

/* ---------- 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; }

.full-bleed { margin: 0 calc(-1 * var(--pad)); }
.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(--pad);
  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; }
