/* ---------- About: spinning voxel head, quiet editorial layout ---------- */
.me {
  --paper: #f5f3ee;
  --rule: rgba(17, 19, 18, .14);
  position: relative;
  z-index: 3;
  height: 260vh;              /* scroll room while the head stays pinned */
  background: var(--paper);
  color: var(--ink);
}

.me__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.me__top,
.me__bottom {
  position: absolute;
  left: 4.5vw;
  right: 4.5vw;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}
.me__top {
  top: 96px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.me__bottom {
  bottom: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  align-items: flex-end;
}

.me__eyebrow,
.me__meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.me__eyebrow span { color: #23b97f; margin-right: 10px; }

/* hairline box around the head — grows and shrinks with scroll (head.js) */
.me__frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(50vh, 66vw);
  height: min(56vh, 74vw);
  transform: translate(-50%, -53%);
  border: 1px solid var(--rule);
  pointer-events: none;
}
/* small corner ticks */
.me__frame i {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 0 solid var(--ink);
}
.me__frame i:nth-child(1) { left: -1px;  top: -1px;    border-left-width: 1px;  border-top-width: 1px; }
.me__frame i:nth-child(2) { right: -1px; top: -1px;    border-right-width: 1px; border-top-width: 1px; }
.me__frame i:nth-child(3) { left: -1px;  bottom: -1px; border-left-width: 1px;  border-bottom-width: 1px; }
.me__frame i:nth-child(4) { right: -1px; bottom: -1px; border-right-width: 1px; border-bottom-width: 1px; }

.me__stage {
  position: relative;
  z-index: 2;
  width: min(62vh, 80vw);
  aspect-ratio: 1;
  will-change: transform;
}
.me__canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 30px 40px rgba(30, 30, 25, .14));
}

.me__caption {
  position: absolute;
  left: 50%;
  bottom: calc(40px + 120px);
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 17px;
  color: var(--muted);
  white-space: nowrap;
}
.me__caption em { font-style: italic; color: var(--ink); }

.me__copy {
  max-width: 340px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.3;
}

.me__facts {
  list-style: none;
  display: flex;
  gap: 36px;
  font-size: 12px;
  color: var(--muted);
}
.me__facts li { display: grid; gap: 4px; }
.me__facts b { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--ink); }

@media (max-width: 760px) {
  .me__top { top: 84px; }
  .me__meta { display: none; }
  .me__stage { width: 92vw; }
  .me__caption { bottom: 200px; }
  .me__bottom { flex-direction: column; align-items: flex-start; gap: 18px; }
  .me__facts { gap: 22px; }
}

/* ---------- Proof wall: columns that scroll at different speeds around the head ---------- */
.me { --me-stage: min(62vh, 80vw); }
.me__wall {
  position: absolute;
  left: 4.5vw; right: 4.5vw;               /* same margins as the top rule and the bottom bar */
  top: 128px; bottom: 176px;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr var(--me-stage) 1fr 1fr;
  pointer-events: none;
}
/* the cell behind the head stays empty: columns 1-2 on the left, 3-4 on the right */
.me__col:nth-child(1) { grid-column: 1; }
.me__col:nth-child(2) { grid-column: 2; }
.me__col:nth-child(3) { grid-column: 4; }
.me__col:nth-child(4) { grid-column: 5; }
.me__col {
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--rule);
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
.me__col:nth-child(4) { border-right: 1px solid var(--rule); }
.me__list { list-style: none; will-change: transform; }
.me__item { display: grid; place-items: center; padding: 26px 16px; min-height: 120px; text-align: center; pointer-events: auto; }

/* tool wordmarks: set like a logo wall, in a few different typefaces */
.me__mark { font-size: 24px; line-height: 1; color: #1a1d1b; letter-spacing: -.02em; transition: color .25s; white-space: nowrap; }
.me__mark--serif { font-family: var(--serif); font-size: 30px; }
.me__mark--ital { font-family: var(--serif); font-style: italic; font-size: 28px; }
.me__mark--mono { font-family: var(--mono); font-weight: 700; font-size: 20px; letter-spacing: 0; }
.me__mark--sans { font-family: var(--sans); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: -.04em; }
.me__mark--box { font-family: var(--mono); font-weight: 700; font-size: 15px; padding: 9px 12px; border: 2px solid currentColor; }
.me__item:hover .me__mark { color: #23b97f; }

/* live project: real thumbnail, grayscale until hovered */
.me__proj { display: grid; gap: 8px; width: 100%; max-width: 190px; }
.me__proj img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; filter: grayscale(1) contrast(1.05); border: 1px solid var(--rule); transition: filter .35s, transform .35s; }
.me__proj:hover img { filter: none; transform: translateY(-3px); }
.me__proj b { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.me__proj span { font: 500 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.me__proj span::after { content: " ↗"; }

/* promise: a plain statement with a green square */
.me__note { display: grid; gap: 10px; max-width: 170px; font-family: var(--serif); font-size: 21px; line-height: 1.08; }
.me__note::before { content: ""; justify-self: center; width: 9px; height: 9px; background: #23b97f; }

/* narrow screens: the wall becomes one slow marquee strip under the header */
.me__strip { display: none; }
@media (max-width: 1179px) and (min-width: 900px) {
  .me__wall { grid-template-columns: 1fr var(--me-stage) 1fr; }
  .me__col:nth-child(1), .me__col:nth-child(4) { display: none; }
  .me__col:nth-child(2) { grid-column: 1; }
  .me__col:nth-child(3) { grid-column: 3; }
  .me__col:nth-child(3) { border-right: 1px solid var(--rule); }
}
@media (max-width: 899px) {
  .me__wall { display: none; }
  .me__strip { top: 136px; }
  .me__strip {
    display: block; position: absolute; left: 0; right: 0; top: 142px; z-index: 1; overflow: hidden; height: 40px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }
  .me__strip-track { display: flex; gap: 10px; width: max-content; animation: me-marquee 38s linear infinite; }
  .me__strip-track span { padding: 8px 12px; border: 1px solid var(--rule); font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; background: rgba(255, 255, 255, .5); }
  .me__strip-track span.is-proj { border-color: #23b97f; }
}
@keyframes me-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .me__strip-track { animation: none; } }
