:root {
  color-scheme: dark;
  --ink: #000000;
  --ink-soft: #121211;
  --paper: #f3f0e9;
  --paper-dim: #d7d3ca;
  --rule-dark: rgba(243, 240, 233, 0.43);
  --rule-light: rgba(9, 9, 8, 0.42);
  --sans: "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --serif: "Bodoni 72", Didot, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 5;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
.hero,
.about,
.contact {
  padding-inline: clamp(1.25rem, 3.1vw, 4.7rem);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.25rem;
  border-bottom: 1px solid var(--rule-dark);
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  width: clamp(8.5rem, 12vw, 11.5rem);
  min-height: 2.75rem;
  line-height: 0;
}

.brand picture,
.brand img { display: block; width: 100%; height: auto; }

.social-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(0.85rem, 1.75vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-nav a,
.section-label,
.location,
.site-footer {
  font-size: clamp(0.62rem, 0.75vw, 0.74rem);
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.social-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  text-decoration: none;
  transition: color 180ms ease;
}

.social-nav a:hover,
.social-nav a:focus-visible { color: var(--paper-dim); }

.hero {
  padding-top: clamp(3.5rem, 7vw, 7.5rem);
  padding-bottom: clamp(4rem, 7vw, 7.5rem);
}

.hero-copy {
  display: block;
}

h1,
h2,
p { margin: 0; }

h1 {
  font-family: var(--display);
  font-size: clamp(4.5rem, 9.4vw, 10.5rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

h1 span { display: block; }
h1 span::after { content: " |"; }

.location {
  display: block;
  margin-top: clamp(2.5rem, 5vw, 5rem);
  color: var(--paper-dim);
}

.hero-art {
  display: flex;
  align-items: end;
  justify-content: center;
  width: min(100%, 41rem);
  margin: clamp(2.5rem, 5vw, 5rem) auto 0;
  aspect-ratio: 1;
}

.hero-art picture,
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

.about {
  color: var(--ink);
  background: var(--paper);
  padding-block: clamp(4.75rem, 10vw, 10rem);
}

.section-rule {
  height: 1px;
  margin-block: 1.4rem clamp(2.5rem, 5vw, 4.25rem);
  background: var(--rule-light);
}

h2.section-label {
  font-family: var(--sans);
  font-size: clamp(0.62rem, 0.75vw, 0.74rem);
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.17em;
}

.about-intro {
  max-width: 33ch;
  font-size: clamp(2rem, 4.3vw, 4.6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.credentials {
  display: grid;
  grid-template-columns: minmax(12rem, 0.48fr) minmax(18rem, 1.52fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
  margin-top: clamp(4.25rem, 10vw, 9rem);
}

.experience {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.8;
  text-transform: uppercase;
}

.experience span {
  font-size: clamp(6rem, 12vw, 13rem);
  letter-spacing: -0.065em;
}

.experience strong {
  padding-left: 0.15em;
  font-family: var(--sans);
  font-size: clamp(1.5rem, 2.7vw, 3.7rem);
  letter-spacing: 0.3em;
}

.credits {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-left: 1px solid var(--rule-light);
  padding-left: clamp(1.5rem, 4vw, 4rem);
}

.credits .section-label { margin-bottom: clamp(1.75rem, 4vw, 3.3rem); }

.credits p:last-child {
  max-width: 18ch;
  font-size: clamp(1.65rem, 3.1vw, 3.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.credits span { display: inline-block; padding-inline: 0.08em; font-weight: 400; }

.contact {
  min-height: 43rem;
  padding-top: clamp(4.75rem, 10vw, 9rem);
  padding-bottom: clamp(2rem, 3vw, 3.25rem);
  display: flex;
  flex-direction: column;
}

.contact .section-rule { background: var(--rule-dark); }

h2 {
  font-family: var(--display);
  font-size: clamp(4.5rem, 11.5vw, 14rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

h2 em {
  display: inline-block;
  padding-bottom: 0.08em;
  font-family: var(--serif);
  font-size: 1.06em;
  font-weight: 400;
  letter-spacing: -0.09em;
  line-height: 1.05;
  text-transform: none;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.site-footer a:hover,
.site-footer a:focus-visible { color: var(--paper); }

.contact-details {
  display: grid;
  gap: 0.35rem;
  width: fit-content;
  margin-top: clamp(2.8rem, 6vw, 6.5rem);
}

.contact-details a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: clamp(1.45rem, 3vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.contact-details a:hover,
.contact-details a:focus-visible { color: var(--paper-dim); }

.site-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-dark);
  color: var(--paper-dim);
  letter-spacing: 0.09em;
  text-transform: none;
}

.site-footer small {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}

.site-footer small:has(> [hidden]) { display: none; }

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    min-height: 0;
    padding-block: 1.15rem;
    gap: 1.2rem;
  }

  .brand { width: 8rem; margin-top: 0.25rem; flex: 0 0 auto; }

  .social-nav { gap: 0 0.9rem; justify-content: flex-end; }

  .social-nav a { font-size: 0.55rem; letter-spacing: 0.13em; }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-copy { min-height: 0; }

  h1 { font-size: clamp(3.65rem, 18.5vw, 7.5rem); }

  h1 span::after { content: ""; }

  .hero-art {
    width: min(100%, 31rem);
    margin: 0 auto;
  }

  .credentials { grid-template-columns: 1fr; gap: 2.75rem; }

  .experience { grid-template-columns: auto 1fr; align-items: end; }

  .experience strong { padding: 0 0 0.25em 0.45em; }

  .credits {
    border-top: 1px solid var(--rule-light);
    border-left: 0;
    padding: 2.25rem 0 0;
  }

  .contact { min-height: 38rem; }

  h2 { font-size: clamp(4rem, 18vw, 7rem); }

  .site-footer { align-items: flex-start; flex-direction: column; gap: 0; font-size: 0.6rem; }
}

/* ---------------------------------------------------------------------------
   Cookie consent banner
   Only ever rendered when a GA4 ID is set in consent.js.
--------------------------------------------------------------------------- */

.consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 20;
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--ink);
  animation: consent-rise 260ms ease both;
}

@keyframes consent-rise {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

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

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

.consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1.25rem, 3.1vw, 4.7rem);
}

.consent-copy { max-width: 62ch; }

.consent-copy strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: clamp(0.62rem, 0.75vw, 0.74rem);
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.consent-copy p {
  margin: 0;
  font-size: clamp(0.82rem, 1vw, 0.94rem);
  line-height: 1.45;
  text-wrap: pretty;
}

.consent-copy a { color: inherit; text-underline-offset: 0.2em; }

.consent-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.6rem;
}

.consent-btn {
  padding: 0.72em 1.5em;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: clamp(0.62rem, 0.75vw, 0.74rem);
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.consent-no { background: transparent; color: var(--ink); }
.consent-no:hover { background: rgba(9, 9, 8, 0.08); }

.consent-yes { background: var(--ink); color: var(--paper); }
.consent-yes:hover { background: var(--ink-soft); }

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

@media (max-width: 46rem) {
  .consent-inner { flex-direction: column; align-items: stretch; }
  .consent-actions { justify-content: flex-start; }
}

/* ---------------------------------------------------------------------------
   Legal pages (privacy)
--------------------------------------------------------------------------- */

.legal {
  width: min(100%, 46rem);
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1.25rem, 3.1vw, 4.7rem) clamp(4rem, 8vw, 8rem);
}

.legal h1 {
  margin: 0 0 0.35em;
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.legal .updated {
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  color: var(--paper-dim);
  font-size: clamp(0.62rem, 0.75vw, 0.74rem);
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.legal > h1,
.legal > .updated,
.legal > .lead { text-align: center; }

.legal > .lead {
  max-width: 58ch;
  margin-inline: auto;
}

.legal h2 {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule-dark);
  font-family: var(--sans);
  font-size: clamp(0.72rem, 0.9vw, 0.84rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.legal h3 {
  margin: 1.9rem 0 0.5rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  font-size: clamp(0.94rem, 1.1vw, 1.04rem);
  line-height: 1.62;
  color: var(--paper-dim);
  text-wrap: pretty;
}

.legal li { margin-bottom: 0.5rem; }
.legal ul { padding-left: 1.1rem; }
.legal a { color: var(--paper); text-underline-offset: 0.2em; }

.legal .lead {
  color: var(--paper);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.45;
}

.legal table {
  width: 100%;
  margin: 1.2rem 0;
  border-collapse: collapse;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  table-layout: fixed;
}

.legal th,
.legal td {
  padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: 1px solid var(--rule-dark);
  text-align: left;
  vertical-align: top;
  color: var(--paper-dim);
  overflow-wrap: anywhere;
}

.legal th {
  color: var(--paper);
  font-size: clamp(0.6rem, 0.72vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Unresolved facts. Deliberately loud so they cannot ship unnoticed. */
.todo {
  background: #ffe14d;
  color: #000;
  padding: 0.1em 0.4em;
  font-weight: 700;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100%, 46rem);
  margin-inline: auto;
  padding: 1.75rem clamp(1.25rem, 3.1vw, 4.7rem);
  border-bottom: 1px solid var(--rule-dark);
  font-size: clamp(0.62rem, 0.75vw, 0.74rem);
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  color: var(--paper-dim);
  transition: color 180ms ease;
}
.legal-nav a:hover,
.legal-nav a:focus-visible { color: var(--paper); }

.consent-reopen {
  min-height: 2.75rem;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

/* The "nothing to review" note disappears once analytics is actually configured. */
.consent-reopen:not([hidden]) + .no-analytics-note { display: none; }
