/* The site, as his frames set it (11-22): "an ultra minimal clean homepage … clean clean clean precision minimal
   refined spacious … a clean bar, some micro shit … a brand style landing". One work to a screen, the whole
   picture; one bar; a line and a count. Everything else of round 5 is set aside in ../v5r. This file holds only the
   page's shell: the kernel draws the rest (src/kernel/kernel.css). No accent. */

@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: block;
  font-weight: 100 900;
  src: url('../../../src/assets/geist-latin-wght.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: block;
  font-weight: 100 900;
  src: url('../../../src/assets/inter-symbols-wght.woff2') format('woff2');
  unicode-range: U+02B2, U+0394, U+0398, U+039B, U+03A0, U+03A3, U+03A6, U+03A9, U+03B1-03B5, U+03B8, U+03BB-03BC, U+03C0, U+03C3-03C4, U+03C6, U+2190-2199, U+21A9-21AA, U+2713, U+2717, U+25A0-25A1, U+25B2-25B3, U+25CB, U+25CF;
}

:root {
  color-scheme: light;
  --vh: 100vh;
}
html {
  background: #0a0a0a;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

/* ── the landing: one picture, held; his bar over it; his black bar block comes up over its foot ── */
.lp {
  position: sticky;
  top: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--g, #e7e4e0);
  color: var(--hm-c1);
}
.lp picture,
.lp__go {
  position: absolute;
  inset: 0;
}
.lp img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* held a little large so it can drift without showing an edge; it comes to rest as the page opens */
  transform: translate3d(0, calc(var(--y, 0) * -2.5%), 0) scale(1.06);
  opacity: 0;
  transition:
    opacity 700ms var(--hm-ease),
    transform 1200ms var(--hm-ease);
}
.lp.is-in img {
  opacity: 1;
  transform: translate3d(0, calc(var(--y, 0) * -2.5%), 0) scale(1.03);
  transition:
    opacity 700ms var(--hm-ease),
    transform 120ms linear;
}
.lp__bar,
.lp__foot {
  position: relative;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms var(--hm-ease) 250ms;
}
.lp.is-in .lp__bar,
.lp.is-in .lp__foot {
  opacity: 1;
}
.lp__bar a,
.lp__foot a {
  pointer-events: auto;
}
.lp__foot {
  height: var(--hm-nav);
  align-items: center;
  font-size: var(--hm-micro);
  line-height: var(--hm-lh-micro);
}
.lp__foot i {
  font-style: normal;
}
.lp__r {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--hm-s5);
}
.lp__tc {
  color: var(--hm-c2);
}
.lp__tc > span {
  margin-left: var(--hm-s1);
}
/* on the picture the dots at rest need the meta rung to be seen (the live pager's grey) */
.lp__dots > a {
  background: var(--hm-c3);
}
.lp__dots > a.on {
  background: var(--hm-c1);
}
.lp__open {
  display: inline-flex;
  justify-self: end;
  transition: transform var(--hm-fast) var(--hm-ease);
}
.lp:has(.lp__go:hover) .lp__open,
.lp__open:hover {
  transform: translateX(4px);
}
/* a phone: the bar as the brand stands everywhere, the mark and its name at the left (his notes of 11-23: "on
   landing this should be hanson method"; never a vertical name: "this layout also makes 0 sense"); the work is
   named by its picture and the dots */
@media (prefers-reduced-motion: reduce) {
  .lp img,
  .lp.is-in img {
    transform: none;
    transition: none;
  }
}

/* ── about: his frame, and his notes of 11-23. The bar; two rows held in the middle of the page, each label level
   with the first line of its words ("top aligned, mid centre"); the thin strip at the foot; a picture off the right
   edge, standing on the strip ── */
.ab {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #e7e4e0;
}
.ab__bar,
.ab__body,
#strip {
  position: relative;
  z-index: 1;
}
.ab__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--hm-s7);
  padding-block: var(--hm-s7);
  font-size: var(--hm-micro);
  line-height: var(--hm-lh-micro);
}
.ab__row {
  align-items: start;
}
.ab__label {
  display: inline-flex;
  align-items: center;
  gap: var(--hm-s3);
  white-space: nowrap;
}
/* the mark sits on the first line's cap height, not below it */
.ab__label .hm-mark {
  height: 9px;
}
.ab__label i {
  font-style: normal;
  color: var(--hm-c2);
}
.ab__text {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: var(--hm-s5);
}
.ab__text p {
  margin: 0;
  max-width: 34ch;
}
.ab__text p a {
  color: var(--hm-c2);
}
/* his service line, at the measure his frame breaks it */
.ab__text p.ab__line {
  max-width: 50ch;
}
/* the services: words at the meta rung, split by small dots */
.ab__text p.ab__list {
  max-width: none;
  color: var(--hm-c3);
}
.ab__text p.ab__list a {
  white-space: nowrap;
  color: inherit;
  transition: color var(--hm-fast) var(--hm-ease);
}
.ab__text p.ab__list a:hover {
  color: var(--hm-c1);
}
/* the two texts in one place: the row is as tall as the taller, so nothing moves when they change */
.ab__swap {
  display: grid;
}
.ab__state {
  grid-area: 1 / 1;
  align-self: start;
  visibility: hidden;
}
.ab__text .ab__state {
  display: flex;
  flex-direction: column;
  gap: var(--hm-s4);
}
/* the services' words follow their line at the same step as any line follows another (his note, 11-23: "why is
   there more space here? doesnt make sense") */
.ab__state.is-on,
.ab__state.is-out {
  visibility: visible;
}
/* in: each line rises into place after the last has gone; out: it lifts away */
.ab__state.is-on > *,
.ab__label.ab__state.is-on,
.ab__word.ab__state.is-on {
  animation: ab-in 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(180ms + var(--i, 0) * 50ms);
}
.ab__state.is-out > *,
.ab__label.ab__state.is-out,
.ab__word.ab__state.is-out {
  animation: ab-out 180ms var(--hm-ease) both;
}
.ab__label.ab__state.is-on > *,
.ab__label.ab__state.is-out > * {
  animation: none;
}
.is-still .ab__state.is-on > *,
.is-still .ab__label.ab__state.is-on,
.is-still .ab__word.ab__state.is-on {
  animation: none;
}
@keyframes ab-in {
  from {
    opacity: 0;
    transform: translateY(0.9em);
  }
}
@keyframes ab-out {
  to {
    opacity: 0;
    transform: translateY(-0.5em);
  }
}
/* About · Services: the one on show at full ink, the other at the meta rung */
.ab__tabs {
  display: inline-flex;
  align-items: center;
  color: var(--hm-c3);
  transform: translateY(calc(var(--lift, 0px) * -1));
  transition: transform 560ms cubic-bezier(0.16, 1, 0.3, 1) 120ms;
}
.is-still .ab__tabs {
  transition: none;
}
.ab__tabs a {
  transition: color var(--hm-fast) var(--hm-ease);
}
.ab__tabs a:hover,
.ab__tabs a[aria-current] {
  color: var(--hm-c1);
}
@media (prefers-reduced-motion: reduce) {
  .ab__state.is-on > *,
  .ab__state.is-out > *,
  .ab__label.ab__state.is-on,
  .ab__label.ab__state.is-out,
  .ab__word.ab__state.is-on,
  .ab__word.ab__state.is-out {
    animation: none;
  }
}
.ab__pic {
  position: absolute;
  top: 0;
  right: 0;
  bottom: var(--hm-nav);
  display: block;
  transform: translateX(50%);
}
.ab__pic img {
  display: block;
  height: 100%;
  width: auto;
}
#strip {
  background: #e7e4e0;
}
@container hm (max-width: 699px) {
  /* a phone: each label over its words, the rows from the top, the picture after them, the strip at the foot */
  .ab__body {
    justify-content: start;
    gap: var(--hm-s7);
    padding-block: var(--hm-s7) var(--hm-s5);
  }
  /* the brand has gone up into the bar, so the labels' column is not set on a phone: the text is the first thing
     under the bar in both states, and nothing under it moves when they change (his note, 11-23: "services/about
     glitches w the image") */
  .ab__row > .ab__swap:first-child {
    display: none;
  }
  .ab__text p,
  .ab__text p.ab__line {
    max-width: none;
  }
  .ab__swap {
    width: 100%;
  }
  .ab__pic {
    position: relative;
    bottom: auto;
    order: 2;
    transform: none;
  }
  .ab__pic img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 0;
    /* the photo's wall meets the page's ground without an edge */
    -webkit-mask-image: linear-gradient(transparent, #000 24px);
    mask-image: linear-gradient(transparent, #000 24px);
  }
  #strip {
    order: 3;
  }
}

/* ── what stays on the screen: the index, a small sheet behind one word of the nav ── */
#layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}
#over {
  position: absolute;
  inset: 0;
}
.veil {
  position: absolute;
  inset: 0;
}
.veil.on {
  pointer-events: auto;
}
/* the sheet's words at the site's one size (11-23: "fix the type sizing on the project pages and index") */
.index {
  font-size: var(--hm-micro);
  line-height: var(--hm-lh-micro);
  pointer-events: auto;
  overflow: auto;
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  transition:
    transform var(--hm-base) var(--hm-ease),
    visibility 0s linear var(--hm-base);
}
.index.on {
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}
.index__top {
  justify-content: space-between;
  padding-inline: var(--hm-s5);
  box-shadow: inset 0 -1px 0 var(--hm-rule);
}
.index__top button {
  cursor: pointer;
}
.index__h {
  padding: var(--hm-s6) var(--hm-s5) var(--hm-s2);
  font-size: var(--hm-micro);
  line-height: var(--hm-lh-micro);
  color: var(--hm-c3);
}
.index__row {
  display: grid;
  grid-template-columns: 2.4em 1fr auto;
  column-gap: var(--hm-s2);
  align-items: baseline;
  padding: 11px var(--hm-s5);
  box-shadow: inset 0 1px 0 var(--hm-rule);
}
.index__row:hover {
  background: var(--hm-field);
}
.index__row > i,
.index__row > em {
  font-style: normal;
  font-size: var(--hm-micro);
  line-height: var(--hm-lh-micro);
  color: var(--hm-c3);
  font-variant-numeric: tabular-nums;
}
.index__row > em {
  display: inline-flex;
  align-items: center;
  color: var(--hm-c2);
}
.index__row > span > small {
  display: block;
  font-size: var(--hm-micro);
  line-height: var(--hm-lh-micro);
  color: var(--hm-c2);
}
.index__foot {
  margin-top: auto;
  padding: var(--hm-s6) var(--hm-s5) var(--hm-s5);
}

@media (prefers-reduced-motion: reduce) {
  .index {
    transition: none;
  }
}
.index > * {
  flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
  .ab__tabs {
    transition: none;
  }
}
