/* nozim.here, in heatunit's barebones style: black, white and greys, square corners, no shadows,
   nothing fades; DM Sans for text, DM Mono for names, figures and labels; everything lowercase;
   a 4pt grid. The only colour on the site is the intro's chromatic aberration. */

@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: block; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: block; }
@font-face { font-family: "DM Mono"; src: url("/fonts/DMMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: block; }
@font-face { font-family: "DM Mono"; src: url("/fonts/DMMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: block; }

:root {
  --canvas: #ffffff;
  --ink: #000000;
  --ink-2: #666666;
  --ink-faint: rgba(0, 0, 0, 0.25);
  --fill-held: rgba(0, 0, 0, 0.04);
  --fill-tapped: rgba(0, 0, 0, 0.10);
  --media-ground: #f0f0f0;
  --page: 16px;
  --gap: 8px;
  --head: 48px;
  --row: 60px;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

@media (min-width: 768px) {
  :root { --page: 48px; --gap: 16px; --head: 64px; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }

html {
  background: var(--canvas);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  /* The gutter stays when scrolling is locked, so the page doesn't shift under the intro. */
  scrollbar-gutter: stable;
}
html.is-loading, html.is-locked { overflow: hidden; }

body {
  font-family: var(--sans);
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button {
  font: inherit;
  color: inherit;
  text-transform: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
img, video { display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* Type: heatunit's menu size for text, DM Mono 15/20 for labels, 12/16 for tags. */
.large { font-size: 27px; line-height: 36px; letter-spacing: -0.02em; }
.mono { font-family: var(--mono); font-size: 15px; line-height: 20px; letter-spacing: 0; }
.small { font-family: var(--mono); font-size: 12px; line-height: 16px; letter-spacing: 0; }
.faint { color: var(--ink-2); }

/* A row the height of the top bar: the loader's, the page's and the lightbox's. */
.bar-row {
  height: var(--head);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.name-small { font-weight: 500; }

/* ---- top bar ---- */

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 var(--page);
  background: var(--canvas);
}
.top a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
}
.top .name-small { margin-left: -12px; }
.top nav { display: flex; margin-right: -12px; }
@media (hover: hover) { .top a:hover { background: var(--fill-held); } }
.top a:active { background: var(--fill-tapped); }

/* ---- first screen ---- */

.hero {
  min-height: 100svh;
  padding: calc(var(--head) + 16px) var(--page) var(--page);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
/* heatunit's wordmark treatment (DM Mono medium, -10% tracking), sized by app.js to fill the
   width. The span's right padding holds the last letter's negative tracking inside its box. */
.hero-name {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 22vw;
  line-height: 0.8;
  letter-spacing: -0.1em;
  white-space: nowrap;
  margin-left: -0.05em;
}
.hero-name span { padding-right: 0.1em; }
.hero-role { margin-top: 24px; max-width: 22em; }
.hero-meta {
  margin-top: 32px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hero-meta .hint { display: none; }
@media (min-width: 768px) {
  .hero-meta { grid-template-columns: repeat(3, 1fr); }
  .hero-meta .hint { display: block; text-align: right; }
}

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

.section { padding-left: var(--page); padding-right: var(--page); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 24px;
}

/* ---- work ---- */

.work { padding-top: 96px; }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 40px;
}
.item { grid-column: span 12; min-width: 0; }
@media (min-width: 768px) { .item { grid-column: span var(--span, 12); } }

.item-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio, 16/9);
  background: var(--media-ground);
  overflow: hidden;
}
.item-media img, .item-media video { width: 100%; height: 100%; object-fit: cover; }
.item-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 4px 8px;
  background: var(--canvas);
  color: var(--ink);
}
.item-cap {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  gap: 16px;
  margin-top: 12px;
}
.item-cap .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) {
  .item:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
}

/* ---- places: a horizontal timeline that vertical scrolling moves through ---- */

.places { position: relative; margin-top: 160px; }
.places-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: calc(var(--head) + 16px) 0 var(--page);
}
.places-pin > .section-head { margin: 0 var(--page); }
.places-view { position: relative; flex: 1; overflow: hidden; }
.places-track { position: absolute; left: 0; top: 0; height: 100%; will-change: transform; }
.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--ink);
}
.axis { position: absolute; left: 0; height: 1px; background: var(--ink); }
.tick { position: absolute; width: 1px; height: 12px; background: var(--ink); }
.tick.minor { height: 4px; background: var(--ink-faint); }
.tick-label { position: absolute; white-space: nowrap; }

/* An entry is a bar as long as the time there, outlined; filled while the playhead is on it.
   The state switches at once, like heatunit's rows: no fade. */
.entry { position: absolute; color: var(--ink-2); }
.entry .bar { height: 12px; border: 1px solid var(--ink); }
.entry .label { width: max-content; }
.entry .name { margin-top: 12px; white-space: nowrap; }
.entry .meta { white-space: nowrap; }
.entry.on { color: var(--ink); }
.entry.on .bar { background: var(--ink); }

.places-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 var(--page);
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}
.readout {
  font-family: var(--mono);
  font-size: 27px;
  line-height: 36px;
  font-variant-numeric: tabular-nums;
}

/* ---- instagram: each account a large outlined box ---- */

.insta { padding-top: 160px; }
.insta-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 768px) { .insta-list { grid-template-columns: 1fr 1fr; } }
.insta-list a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  height: 100%;
  min-height: 200px;
  padding: 16px;
  border: 1px solid var(--ink);
}
.insta-handle {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.25;
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
}
.insta-foot { display: flex; justify-content: space-between; gap: 16px; }
@media (hover: hover) { .insta-list a:hover { background: var(--fill-held); } }
.insta-list a:active { background: var(--fill-tapped); }

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

.contact { padding-top: 160px; padding-bottom: 96px; }
.links { list-style: none; border: 1px solid var(--ink); }
.links li + li { border-top: 1px solid var(--ink); }
.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--row);
  padding: 0 16px;
}
.links a > span { position: relative; top: -2px; } /* optical, as on heatunit.app */
@media (hover: hover) { .links a:hover { background: var(--fill-held); } }
.links a:active { background: var(--fill-tapped); }

.foot {
  display: flex;
  justify-content: space-between;
  padding: 16px var(--page) calc(16px + env(safe-area-inset-bottom));
}
.foot a { display: inline-flex; align-items: center; height: 44px; margin: -12px -12px -12px 0; padding: 0 12px; }

/* ---- loader ---- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 var(--page) var(--page);
}
.loader-label { margin-bottom: 16px; }
.loader-count {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(96px, 20vw, 280px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  margin-left: -0.05em;
}
.loader-track { margin-top: 24px; height: 2px; background: var(--fill-tapped); }
.loader-bar { height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

.intro-gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  pointer-events: none;
}

/* ---- lightbox: drawn dark, like heatunit's black screens ---- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000000;
  color: #ffffff;
  display: grid;
  grid-template-rows: var(--head) minmax(0, 1fr) auto auto;
  padding: 0 var(--page) calc(var(--page) + env(safe-area-inset-bottom));
}
.lightbox[hidden] { display: none; }
.lightbox :focus-visible { outline-color: #ffffff; }
.lightbox .bar-row { margin: 0 -12px 0 0; }
.lb-stage { position: relative; min-height: 0; }
.lb-stage img, .lb-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lb-stage video { cursor: pointer; }
.lb-btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
}
@media (hover: hover) { .lb-btn:hover { background: rgba(255, 255, 255, 0.08); } }
.lb-btn:active { background: rgba(255, 255, 255, 0.16); }
.lb-controls {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 8px -12px 0;
}
.lb-controls[hidden] { display: none; }
.lb-time { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.6); }
.lb-scrub { position: relative; height: 44px; cursor: pointer; touch-action: none; }
.lb-scrub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 21px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
}
.lb-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 21px;
  height: 2px;
  background: #ffffff;
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.lb-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #ffffff;
}
.lb-dim { color: rgba(255, 255, 255, 0.6); }
.lb-note { margin-top: 8px; max-width: 40em; }
.lb-nav { display: flex; margin: -12px -12px 0 0; }
