/* ESSE split-register direction study v3 */
:root {
  --ink: #080808;
  --paper: #e9e7e0;
  --soft: #b6b3aa;
  --line-dark: rgba(233, 231, 224, .28);
  --line-light: rgba(8, 8, 8, .34);
  --bar: 44px;
  --pad: clamp(1rem, 1.5vw, 1.75rem);
  --sans: Arial, Helvetica, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 16px; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
img, video { display: block; max-width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  min-height: var(--bar);
  display: grid;
  grid-template-columns: 7fr 5fr;
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
  font: 700 .76rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .035em;
}
.header-id { min-width: 0; display: flex; align-items: center; border-right: 1px solid var(--line-dark); }
.header-id .brand { width: clamp(6.5rem, 14vw, 11rem); height: var(--bar); display: flex; align-items: center; padding: 0 .85rem; font: 700 1.15rem/1 var(--sans); text-transform: lowercase; letter-spacing: -.04em; border-right: 1px solid var(--line-dark); }
.header-id span { padding: 0 .85rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.primary-nav { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.primary-nav a { min-height: var(--bar); min-width: 0; display: flex; align-items: center; justify-content: center; padding: 0 .35rem; border-left: 1px solid var(--line-dark); }
.primary-nav a:first-child { border-left: 0; }
.primary-nav a.active, .primary-nav a:hover { background: var(--paper); color: var(--ink); text-decoration: none; }

.home-stage { min-height: calc(100svh - var(--bar)); display: grid; grid-template-columns: 7fr 5fr; }
.home-media { min-width: 0; min-height: calc(100svh - var(--bar)); position: relative; overflow: hidden; border-right: 1px solid var(--line-dark); background: var(--ink) url("assets/clips/esse-260411-hero-bg-dynamic.jpg") center/cover no-repeat; }
.home-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.1), transparent 48%, rgba(0,0,0,.78)); }
.home-media video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.media-index { position: absolute; z-index: 2; inset: 0 0 auto; display: flex; justify-content: space-between; padding: .65rem var(--pad); border-bottom: 1px solid rgba(233,231,224,.45); font: 700 .7rem/1 var(--mono); text-transform: uppercase; }
.home-identity { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: var(--pad); display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.home-identity h1 { width: min(74%, 46rem); margin: 0; }
.home-identity img { width: 100%; filter: brightness(0) invert(1); }
.home-identity p { margin: 0 0 .28em; font: 700 clamp(.8rem, 1vw, 1.05rem)/1.15 var(--mono); text-align: right; text-transform: uppercase; }
.home-event { min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) minmax(14rem, 36svh); background: var(--paper); color: var(--ink); }
.event-register { min-height: 0; display: flex; flex-direction: column; padding: var(--pad); }
.pane-label, .document-index { margin: 0; display: flex; justify-content: space-between; gap: 1rem; font: 700 .7rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.event-register h2 { margin: clamp(1.25rem, 3vh, 2.5rem) 0 1.25rem; font-size: clamp(3rem, 5.8vw, 7rem); line-height: .78; letter-spacing: -.075em; text-transform: uppercase; }
.event-meta { display: grid; grid-template-columns: 5rem 1fr; padding: .65rem 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); font: 700 .78rem/1.2 var(--mono); text-transform: uppercase; }
.lineup-register { list-style: none; padding: 0; margin: 0; }
.lineup-register li { display: grid; grid-template-columns: 5rem 1fr; gap: 0; padding: .7rem 0; border-bottom: 1px solid var(--line-light); }
.lineup-register time { font: 700 .78rem/1.3 var(--mono); }
.lineup-register strong { font-size: clamp(1.05rem, 1.45vw, 1.5rem); line-height: .95; text-transform: uppercase; letter-spacing: -.035em; }
.route-action { margin-top: auto; min-height: 44px; display: flex; justify-content: space-between; align-items: end; padding-top: 1rem; border-bottom: 1px solid var(--ink); font: 700 .82rem/1 var(--mono); text-transform: uppercase; }
.event-evidence { min-height: 0; position: relative; overflow: hidden; border-top: 1px solid var(--line-light); background: #111; color: var(--paper); }
.event-evidence img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; transition: transform .25s ease; }
.event-evidence:hover img { transform: scale(1.015); }
.event-evidence span { position: absolute; left: 0; right: 0; bottom: 0; padding: .45rem var(--pad); background: rgba(8,8,8,.82); font: 700 .65rem/1 var(--mono); text-transform: uppercase; }

.page-split { min-height: calc(100svh - var(--bar)); display: grid; grid-template-columns: 7fr 5fr; }
.info-copy-pane { min-width: 0; background: var(--paper); color: var(--ink); border-right: 1px solid var(--line-dark); padding: var(--pad); }
.document-index { padding-bottom: .75rem; border-bottom: 1px solid var(--line-light); }
.reading-column { width: min(100%, 42rem); margin: clamp(2.5rem, 7vh, 6rem) auto 0; }
.reading-column h1, .contact-context h1 { margin: 0 0 clamp(1.6rem, 4vh, 3.25rem); font-size: clamp(2.65rem, 5.4vw, 6.7rem); line-height: .86; letter-spacing: -.07em; text-transform: uppercase; }
.reading-column p { margin: 0 0 1.25em; font-size: clamp(1rem, 1.08vw, 1.17rem); line-height: 1.55; text-wrap: pretty; }
.reading-column .lead { margin-bottom: 1.4em; font-size: clamp(1.25rem, 1.55vw, 1.65rem); line-height: 1.4; letter-spacing: -.025em; }
.team-line { margin-top: clamp(2.5rem, 6vh, 5rem); display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); font: 700 .75rem/1.3 var(--mono); text-transform: uppercase; }
.info-register-pane { min-width: 0; display: grid; grid-template-rows: auto 1fr; background: var(--ink); color: var(--paper); }
.info-register-pane section > header { min-height: 5.5rem; display: grid; grid-template-columns: 4rem 1fr; align-items: end; padding: var(--pad); border-bottom: 1px solid var(--line-dark); }
.info-register-pane section > header span { font: 700 .7rem/1 var(--mono); }
.info-register-pane h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 4.4rem); line-height: .8; letter-spacing: -.06em; text-transform: uppercase; }
.rules-block ol { list-style: none; padding: 0; margin: 0; }
.rules-block li { min-height: 3.2rem; display: grid; grid-template-columns: 4rem 1fr; padding: .75rem var(--pad); border-bottom: 1px solid var(--line-dark); }
.rules-block li span { font: 700 .7rem/1.5 var(--mono); }
.rules-block li p { margin: 0; max-width: 31rem; font-size: .95rem; line-height: 1.35; }
.links-block nav a { min-height: 3.15rem; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: .65rem var(--pad); border-bottom: 1px solid var(--line-dark); font-size: .82rem; }
.links-block nav strong { font: 700 .72rem/1 var(--mono); text-transform: uppercase; }

.contact-page { grid-template-areas: "directory context"; }
.contact-context { grid-area: context; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: var(--pad); background: var(--ink); color: var(--paper); }
.contact-context .document-index { border-color: var(--line-dark); }
.contact-context > div:last-child { margin-bottom: clamp(2rem, 7vh, 5rem); }
.contact-context h1 { margin-bottom: 1rem; }
.contact-context p { max-width: 34rem; margin: 0; font-size: clamp(1.05rem, 1.35vw, 1.4rem); line-height: 1.45; text-wrap: pretty; }
.contact-directory { grid-area: directory; min-width: 0; display: grid; grid-template-rows: repeat(5, minmax(6.5rem, 1fr)); background: var(--paper); color: var(--ink); border-right: 1px solid var(--line-dark); }
.contact-directory a { min-width: 0; display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 2fr) 2rem; gap: 1rem; align-items: center; padding: var(--pad); border-bottom: 1px solid var(--line-light); }
.contact-directory a:last-child { border-bottom: 0; }
.contact-directory span { font: 700 .72rem/1.2 var(--mono); text-transform: uppercase; }
.contact-directory strong { min-width: 0; overflow-wrap: anywhere; font-size: clamp(1.05rem, 1.65vw, 1.7rem); line-height: 1.05; letter-spacing: -.035em; }
.contact-directory b { justify-self: end; font: 700 1rem/1 var(--mono); }
.contact-directory a:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

.site-footer { min-height: 92px; display: grid; grid-template-columns: 7fr 5fr; border-top: 1px solid var(--line-dark); background: var(--ink); color: var(--paper); font: 700 .7rem/1.25 var(--mono); text-transform: uppercase; }
.footer-left { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem var(--pad); border-right: 1px solid var(--line-dark); }
.footer-identity { display: flex; gap: .75rem; }
.footer-identity span { color: var(--soft); }
.footer-left nav { display: flex; gap: 1.25rem; }
.footer-left a.active { text-decoration: underline; text-underline-offset: .25em; }
.footer-social { display: grid; grid-template-columns: repeat(5, 1fr); }
.footer-social a { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--line-dark); }
.footer-social a:first-child { border-left: 0; }
.footer-social a:hover { background: var(--paper); color: var(--ink); text-decoration: none; }

@media (max-width: 900px) {
  :root { --bar: 44px; --pad: 1rem; }
  .site-header { position: sticky; grid-template-columns: 1fr; min-height: calc(var(--bar) * 2); }
  .header-id { height: var(--bar); border-right: 0; }
  .header-id .brand { width: 5.5rem; }
  .header-id span { margin-left: auto; font-size: .64rem; }
  .primary-nav { height: var(--bar); border-top: 1px solid var(--line-dark); }
  .primary-nav a { min-height: var(--bar); font-size: .68rem; }

  .home-stage { min-height: 0; display: block; }
  .home-media { min-height: calc(100svh - (var(--bar) * 2)); border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .media-index { font-size: .62rem; }
  .home-identity { display: block; }
  .home-identity h1 { width: 100%; }
  .home-identity p { margin-top: .65rem; text-align: left; font-size: .7rem; }
  .home-event { display: block; }
  .event-register { min-height: 38rem; }
  .event-register h2 { margin-top: 2.5rem; font-size: clamp(3.25rem, 19vw, 5.5rem); }
  .event-meta, .lineup-register li { grid-template-columns: 4.5rem 1fr; }
  .event-evidence { display: block; min-height: 22rem; aspect-ratio: 4 / 5; }

  .page-split { min-height: 0; display: block; }
  .info-copy-pane { border-right: 0; border-bottom: 1px solid var(--line-dark); padding-bottom: 2.25rem; }
  .reading-column { margin-top: 2.5rem; }
  .reading-column h1, .contact-context h1 { font-size: clamp(3rem, 16vw, 4.75rem); }
  .reading-column .lead { font-size: 1.27rem; line-height: 1.42; }
  .reading-column p { font-size: 1rem; line-height: 1.58; }
  .team-line { grid-template-columns: 1fr auto auto; margin-top: 2.5rem; }
  .info-register-pane { display: block; }
  .info-register-pane section > header { min-height: 5rem; grid-template-columns: 3rem 1fr; }
  .rules-block li { grid-template-columns: 3rem 1fr; }
  .links-block nav a { min-height: 3.5rem; }

  .contact-page { display: grid; grid-template-columns: 1fr; grid-template-areas: "context" "directory"; }
  .contact-context { min-height: 23rem; }
  .contact-context > div:last-child { margin: 4rem 0 1rem; }
  .contact-context p { font-size: 1.1rem; line-height: 1.48; }
  .contact-directory { grid-template-rows: none; border-right: 0; }
  .contact-directory a { min-height: 7.2rem; grid-template-columns: minmax(0, 1fr) 2rem; grid-template-rows: auto auto; gap: .55rem 1rem; }
  .contact-directory strong { grid-column: 1 / -1; grid-row: 2; font-size: clamp(1.18rem, 6vw, 1.55rem); }
  .contact-directory b { grid-column: 2; grid-row: 1; }

  .site-footer { min-height: 88px; grid-template-columns: minmax(0, 1fr) auto; }
  .footer-left { min-width: 0; display: block; padding: .6rem .7rem; }
  .footer-identity { display: block; }
  .footer-identity strong, .footer-identity span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .footer-left nav { margin-top: .55rem; gap: .75rem; font-size: .62rem; }
  .footer-social { grid-template-columns: repeat(5, 44px); }
  .footer-social a { width: 44px; min-height: 87px; }
}

@media (min-width: 600px) and (max-width: 900px) {
  .event-register { min-height: 32rem; }
  .event-evidence { min-height: 26rem; aspect-ratio: 16 / 9; }
}

/* Wide screens gain a third composition instead of stretching the laptop grid. */
@media (min-width: 2000px) {
  .reading-column {
    width: min(100%, 78rem);
    display: grid;
    grid-template-columns: minmax(22rem, .88fr) minmax(26rem, 1fr);
    grid-template-rows: auto auto auto;
    gap: 0 clamp(4rem, 5vw, 8rem);
    align-items: start;
  }
  .reading-column h1 { grid-column: 1; grid-row: 1; }
  .reading-column .lead { grid-column: 1; grid-row: 2; }
  .reading-column > p:nth-of-type(2) { grid-column: 2; grid-row: 1; }
  .reading-column > p:nth-of-type(3) { grid-column: 2; grid-row: 2; }
  .reading-column .team-line { grid-column: 1 / -1; grid-row: 3; }

  .contact-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(8rem, 1fr));
  }
  .contact-directory a { border-right: 1px solid var(--line-light); }
  .contact-directory a:first-child { grid-column: 1 / -1; border-right: 0; }
  .contact-directory a:nth-child(odd) { border-right: 0; }
  .contact-directory a:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 340px) {
  .footer-social { grid-template-columns: repeat(5, 42px); }
  .footer-social a { width: 42px; min-width: 42px; }
  .footer-left { padding-inline: .45rem; }
  .footer-left nav { gap: .45rem; font-size: .58rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .home-media video { display: none; }
}
