/* ---------------------------------------------------------------
   Luke Scholes — Curatorial Consultancy

   The hero stays dark and photographic — the installation shot is
   real exhibition lighting and shouldn't be forced onto a light
   ground. Everything below it now quotes the *inside pages* of the
   "Tjungunutja" catalogue rather than its black cover: paper, ink,
   the same gold/ochre and italic serif titling, carried into a
   daylit register instead of a gallery-at-night one.
----------------------------------------------------------------*/

:root {
  --bg: #e9e5db;
  --bg-raised: #f5f2e9;
  --ink: #17130e;
  --ink-soft: #423c31;
  --muted: #6e6656;
  --ochre: #8b4e19;
  --ochre-deep: #7a430e;
  --rule: #d9d3c4;

  --font-display: "Fraunces", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --gap: clamp(1.5rem, 4vw, 4rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* faint paper grain — the one tactile signature carried across every section */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ochre);
  color: var(--bg-raised);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-family: var(--font-mono);
  text-decoration: none;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

a { color: inherit; }

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 1.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 2.5rem;
  color: var(--ink);
  max-width: 20ch;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
}

.section-title-inline {
  max-width: none;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .section-title-inline {
    white-space: normal;
  }
}

/* ---------------- header ---------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--rule);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.95rem, 2.6vw, 1.35rem);
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
}

.primary-nav {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

.primary-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
  padding-bottom: 3px;
}
.primary-nav a span {
  position: relative;
}
.primary-nav a span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.primary-nav a:hover span::after,
.primary-nav a:focus-visible span::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--ink);
  display: block;
}

/* ---------------- hero ---------------- */
/* The hero's background matches the portrait's own light backdrop,
   so the photo reads as part of the page rather than a framed
   object sitting on a jarring dark ground. */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-raised);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-portrait {
  position: relative;
  flex-shrink: 0;
  width: min(300px, 42vw);
  margin: 0;
}
.hero-portrait img {
  width: 100%;
  display: block;
}

.hero-text {
  flex: 1 1 320px;
  min-width: 0;
}

.hero .eyebrow {
  color: var(--ochre);
}

.hero-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 0.98;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0;
}

@media (max-width: 700px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-portrait {
    width: min(220px, 60vw);
  }
}

.scroll-cue {
  position: absolute;
  right: clamp(1.5rem, 5vw, 3rem);
  bottom: 2.5rem;
  width: 1px;
  height: 60px;
}
.scroll-cue-line {
  display: block;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--ochre) 60%, var(--ochre));
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.6; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-line { animation: none; }
}

/* ---------------- sections ---------------- */

.section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  border-top: 1px solid var(--rule);
}

.section-alt {
  background: var(--bg-raised);
}

/* ---------------- about ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.portrait {
  margin: 0;
}
.portrait img {
  width: 100%;
  display: block;
  filter: grayscale(0.15) contrast(1.02);
  border: 1px solid var(--rule);
}
.portrait figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 0.9rem;
  line-height: 1.5;
}

.prose p {
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 1.25rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose em {
  color: var(--ink);
  font-style: italic;
}

.prose-more {
  margin-top: 2rem;
}
.prose-more .prose {
  margin-top: 1.75rem;
}

.prose-figure {
  margin: 2rem 0;
}
.prose-figure img {
  width: 100%;
  max-width: 480px;
  display: block;
  border: 1px solid var(--rule);
}
.prose-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.5;
}

/* ---------------- press quote ---------------- */
/* Hardcoded (not themed): the Momentum installation photo returns
   here as a dark, spotlit band — the one other place the gallery-
   at-night mood surfaces outside the hero. */

.press-quote-section {
  position: relative;
  background-size: cover;
  background-position: center 35%;
  padding: clamp(5rem, 12vw, 9rem) 0;
  border-top: none;
  overflow: hidden;
}

.press-scrim {
  position: absolute;
  inset: 0;
  background: rgba(10,9,8,0.58);
}

.press-quote-section .wrap {
  position: relative;
  max-width: 900px;
}

.press-quote-section .eyebrow {
  color: #d9a24b;
  text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}

.press-quote {
  margin: 0;
  padding-left: clamp(1.25rem, 3vw, 2rem);
  border-left: 2px solid #d9a24b;
}

.press-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  line-height: 1.5;
  color: #f5f1e8;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}
.press-quote p strong {
  color: #d9a24b;
  font-weight: 600;
}

.press-quote-cite {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.78rem;
  color: #d8d2c4;
  margin-top: 1.5rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}
.press-quote-cite::before {
  content: "\2014  ";
}
.press-quote-cite em {
  font-style: italic;
}

/* ---------------- services ---------------- */

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

.service {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 0.5rem 2.5rem;
  padding: clamp(1.75rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--rule);
}

.service h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0;
  color: var(--ochre-deep);
}

.service p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 56ch;
}

@media (max-width: 700px) {
  .service {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

/* ---------------- CV ---------------- */

.cv-block {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.cv-block:last-child { margin-bottom: 0; }

.cv-heading {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  cursor: default;
}

.cv-details > summary.cv-heading {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cv-details > summary.cv-heading::-webkit-details-marker { display: none; }
.cv-details > summary.cv-heading::after {
  content: "+";
  color: var(--ochre);
  font-family: var(--font-body);
  font-size: 1rem;
}
.cv-details[open] > summary.cv-heading::after {
  content: "\2212";
}

.cv-figure {
  float: right;
  width: 140px;
  margin: 0 0 1.5rem 1.5rem;
}
.cv-figure img {
  width: 100%;
  display: block;
  border: 1px solid var(--rule);
}
.cv-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 0.6rem;
}

.cv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  clear: right;
}

.cv-sublabel {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.75rem 0 0.5rem;
}
.cv-list + .cv-sublabel {
  margin-top: 1.75rem;
}

.cv-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0.5rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.cv-list li:last-child { border-bottom: 0; }

.cv-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ochre);
  letter-spacing: 0.02em;
  padding-top: 0.15rem;
}

.cv-role {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  grid-column: 2;
  line-height: 1.4;
}
.cv-role em { font-style: italic; }

.cv-org {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.cv-org em { font-style: italic; }

/* ---------------- contact ---------------- */

.section-contact {
  background: var(--bg-raised);
}

.contact-inner {
  text-align: left;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
}
.contact-link .arrow {
  color: var(--ochre);
  transition: transform 0.2s ease;
  font-style: normal;
}
.contact-link:hover .arrow,
.contact-link:focus-visible .arrow {
  transform: translateX(6px);
}

.contact-phone {
  margin-top: 1.5rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.contact-phone a {
  text-decoration: none;
  color: inherit;
}
.contact-phone a:hover {
  color: var(--ochre);
}

.contact-location {
  margin-top: 0.5rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-row a {
  text-decoration: none;
  color: var(--muted);
}
.footer-row a:hover { color: var(--ochre); }

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

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .portrait {
    max-width: 220px;
  }
}

@media (max-width: 640px) {
  .cv-list li {
    grid-template-columns: 1fr;
  }
  .cv-role, .cv-org { grid-column: 1; }
  .cv-date { padding-top: 0; margin-bottom: 0.15rem; }

  .cv-figure {
    float: none;
    width: 120px;
    margin: 0 0 1.5rem;
  }

  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    top: 84px; left: 0; right: 0;
    background: var(--bg-raised);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    padding: 1.5rem clamp(1.5rem, 5vw, 3rem);
    gap: 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .primary-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}
