:root {
  color-scheme: dark;
  --paper: #ededeb;
  --muted: #858583;
  --line: #292929;
  --panel-slide: 680ms cubic-bezier(.45, 0, .32, 1);
  --rail: clamp(72px, 7.7vw, 132px);
}
* { box-sizing: border-box; }
html { background: #000; }
body { margin: 0; background: #000; color: var(--paper); font-family: Georgia, 'Times New Roman', serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible { outline: 1px solid var(--paper); outline-offset: -5px; }
button { border-radius: 0; }
.site-header { height: 128px; padding: 0 4.4%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 20px; color: inherit; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; }
.brand > span { font-size: 29px; letter-spacing: .29em; }
.header-note, .eyebrow, .intro-footer, .collection-link { font-family: 'Courier New', monospace; text-transform: uppercase; }
.header-note { font-size: 12px; letter-spacing: .24em; color: var(--muted); }
.layout { display: grid; grid-template-columns: 36% 64%; padding: 0 4.4%; min-height: max(680px, calc(100svh - 150px)); }
.intro { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 36px 62px 24px; }
.intro-copy { margin-bottom: clamp(72px, 12vh, 140px); }
.intro-heading { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; }
h1 { font-size: 26px; letter-spacing: .13em; margin: 0; font-weight: 600; }
.intro-heading > span { font-size: 18px; font-style: italic; color: #a6a6a4; }
.intro-lead { font-size: clamp(24px, 2.25vw, 38px); line-height: 1.45; margin: 36px 0 24px; }
.intro-description { font-size: 18px; line-height: 1.7; color: #999997; margin: 0; }
.intro-footer { font-size: 11px; letter-spacing: .23em; color: var(--muted); line-height: 1.8; margin: 0; }
.panels {
  display: flex;
  container-type: inline-size;
  min-width: 0;
  border-right: 1px solid var(--line);
}
.panel {
  position: relative;
  isolation: isolate;
  flex: 1 1 0px;
  min-width: var(--rail);
  border-left: 1px solid var(--line);
  overflow: hidden;
  background: #000;
  transition: flex-grow var(--panel-slide);
}
/* The three weights always add up to 3, so both borders follow the same easing. */
.panels.has-selection .panel { flex-grow: .4125; }
.panels.has-selection .panel.is-wide { flex-grow: 2.175; }
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(165deg, #111 0%, #090909 40%, #000 85%);
  opacity: 0;
  transition: opacity 280ms ease-out;
}
.panel.is-active::before { opacity: 1; transition-duration: 360ms; }
.panel-empty::before { display: none; }
.panel-art {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: min(72.5cqw, 100cqw - 2 * var(--rail));
  pointer-events: none;
  opacity: 0;
  filter: brightness(0);
  transition: opacity 420ms ease-out, filter 420ms ease-out;
}
.panel.is-active .panel-art {
  opacity: 1;
  filter: brightness(1);
  transition:
    opacity 700ms ease-in-out 1s,
    filter 1300ms cubic-bezier(.42, 0, .4, 1) 1s;
}
.art-loop {
  width: 100%;
  animation: panel-art-scroll var(--loop-time) linear infinite paused;
}
.panel.is-active .art-loop { animation-play-state: running; }
@keyframes panel-art-scroll {
  to { transform: translateY(-50%); }
}
.slide-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  overflow: hidden;
  background: #080808;
}
.slide-wall::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 75%, rgba(0, 0, 0, .88)),
    linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .44) 36%, #000 95%);
}
.slide-lane { --loop-time: 32s; container-type: inline-size; }
.slide-lane:nth-child(2) { --loop-time: 17s; }
.slide-lane:nth-child(3) { --loop-time: 39s; }
.slide-lane .art-loop { animation-delay: -5s; }
.slide-lane:nth-child(2) .art-loop { animation-direction: reverse; animation-delay: -11s; }
.slide-lane:nth-child(3) .art-loop { animation-delay: -17s; }
.slide-strip img {
  display: block;
  width: 100%;
  height: max(17svh, 72cqw, 104px);
  margin: 0;
  border-bottom: 5px solid #080808;
  object-fit: cover;
  object-position: var(--slide-focus, center);
  filter: grayscale(1) brightness(.84);
}
.slide-strip img:first-child { --slide-focus: 24%; }
.slide-lane:nth-child(even) img { --slide-focus: 74%; }

.terminal {
  --loop-time: 8s;
  background: #040704;
  color: #72cd60;
  font: clamp(8px, .78vw, 12px)/1.35 'Courier New', monospace;
  font-weight: 600;
  overflow: hidden;
}
.terminal-window {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 0 8px;
  mask-image: linear-gradient(90deg, #000 0%, #000 51%, rgba(0, 0, 0, .55) 77%, transparent);
}
.terminal::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .12), transparent 14% 88%, rgba(0, 0, 0, .32)),
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, .19) 2px 3px);
}
.terminal-feed {
  display: grid;
  grid-auto-rows: minmax(max(1.35em, 1.6svh), auto);
  white-space: nowrap;
}
.terminal-feed > span { text-shadow: 0 0 5px rgba(101, 220, 67, .45); }
.terminal-feed > span:nth-child(3n) { opacity: .52; }
.terminal-feed > span:nth-child(7n) { color: #afef86; }
.terminal-feed > span:nth-child(11n) { opacity: .34; }
.panel-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}
.panel-title { position: absolute; top: 18px; left: calc(100% - 22px); transform: rotate(90deg); transform-origin: 0 0; white-space: nowrap; font-size: clamp(36px, 4.4vw, 76px); line-height: 1; font-weight: 400; letter-spacing: -.04em; }
.panel-title-python { font-size: clamp(31px, 3.7vw, 64px); letter-spacing: -.045em; }
.panel-content {
  position: relative;
  /* Lay out the copy at its finished width while its parent slides over it. */
  width: calc(min(72.5cqw, 100cqw - 2 * var(--rail)) - var(--rail));
  padding: clamp(150px, 23vh, 290px) 22px 60px clamp(22px, 2.6vw, 48px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease-out, transform 200ms ease-out;
}
.panel.is-active .panel-content {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 460ms ease-out 80ms, transform 480ms ease-out 60ms;
}
.panel.is-active .collection-link { pointer-events: auto; }
.eyebrow { font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.short-line { width: 30px; height: 1px; background: #4a4a4a; margin: 28px 0; }
.panel-content h2 { font-weight: 400; font-size: clamp(26px, 2.7vw, 46px); line-height: 1.3; margin: 0; }
.panel-description { font-size: 17px; color: #a6a6a4; line-height: 1.6; margin: 24px 0 40px; }
.collection-link { display: inline-block; border: 0; border-bottom: 1px solid #b0b0ad; background: transparent; padding: 10px 0; font-size: 13px; letter-spacing: .12em; white-space: nowrap; cursor: pointer; transition: color 180ms, border-color 180ms; }
.collection-link:hover { color: #aaa; border-color: #555; }
.collection { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: #050505; color: var(--paper); }
.collection[open] { animation: collection-in 420ms ease both; }
.collection::backdrop { background: #000; }
.collection-header { display: flex; justify-content: space-between; align-items: center; padding: 38px 6%; border-bottom: 1px solid var(--line); }
.collection-brand { font-size: 25px; letter-spacing: .24em; }
.close-collection { background: none; border: 1px solid #3a3a3a; width: 44px; height: 44px; border-radius: 50%; font-family: Arial, sans-serif; font-size: 28px; cursor: pointer; }
.close-collection:hover { background: #181818; }
.collection-body { padding: 70px 9%; }
.collection-body h2 { font-size: clamp(38px, 6vw, 90px); font-weight: 400; margin: 24px 0 70px; }
.presentation-entry {
  display: grid;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
  padding: 24px 0;
  border-block: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  font-size: clamp(22px, 3vw, 32px);
}
.presentation-entry:hover .eyebrow,
.presentation-entry:focus-visible .eyebrow { color: var(--paper); }
body.collection-open { overflow: hidden; }
@keyframes collection-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1800px) { .site-header { height: 156px; } .layout { min-height: calc(100svh - 180px); } }
@media (max-width: 1050px) {
  :root { --rail: 68px; }
  .site-header { height: 108px; }
  .layout { grid-template-columns: 31% 69%; padding: 0 4%; }
  .intro { padding-left: 0; padding-right: 24px; }
  .intro-heading { gap: 12px; }
  .intro-heading > span { font-size: 16px; }
  .intro-description { font-size: 16px; }
  .panel-title { left: calc(100% - 15px); font-size: 44px; }
  .panel-title-python { font-size: 38px; }
  .panel-content { padding-left: 22px; }
}
@media (max-width: 700px) {
  :root { --rail: 48px; }
  .site-header { height: 94px; padding: 0 6%; }
  .brand { gap: 12px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand > span { font-size: 24px; }
  .header-note { display: none; }
  .layout { display: flex; flex-direction: column; padding: 0 6% 24px; min-height: 0; }
  .intro { padding: 24px 0 36px; }
  .intro-copy { margin: 0; }
  .intro-heading, .intro-description, .intro-footer { display: none; }
  .intro-lead { margin: 0; font-size: 27px; line-height: 1.35; }
  .panels { min-height: 590px; }
  .panel-title { top: 16px; left: calc(100% - 9px); font-size: 33px; }
  .panel-title-python { font-size: 29px; }
  .panel-content { min-width: 0; padding: 180px 10px 30px 16px; }
  .panel-content h2 { font-size: clamp(23px, 5.9vw, 36px); }
  .eyebrow { font-size: 10px; letter-spacing: .13em; }
  .short-line { margin: 22px 0; }
  .panel-description { font-size: 15px; margin: 22px 0 28px; }
  .panel-description br { display: none; }
  .collection-link { font-size: 12px; letter-spacing: .02em; white-space: normal; text-align: left; line-height: 1.6; }
  .collection-header { padding: 25px 6%; }
  .collection-body { padding: 50px 7%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
