/* ─────────────────────────────────────────────────────────────────
   AKUIRA — File Book Portfolio
   Editorial × maximalist motion · paper / ink / signal-red
   ───────────────────────────────────────────────────────────── */

:root {
  --paper: #EFE9DA;
  --paper-2: #E6DFCC;
  --ink: #0F0E0C;
  --ink-60: rgba(15, 14, 12, 0.62);
  --ink-40: rgba(15, 14, 12, 0.40);
  --ink-20: rgba(15, 14, 12, 0.18);
  --ink-10: rgba(15, 14, 12, 0.10);
  --red: #D5301E;

  --f-display: 'Anton', 'Archivo Black', Impact, sans-serif;
  --f-editorial: 'Instrument Serif', 'Newsreader', Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --f-body: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 2.4vw, 32px);
  --hair: 0.5px solid var(--ink);
  --hair-soft: 0.5px solid var(--ink-20);

  --grid-cols: 12;

  --motion-fast: 120ms cubic-bezier(.2,.7,.2,1);
  --motion-base: 320ms cubic-bezier(.2,.7,.2,1);
  --motion-slow: 720ms cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  min-height: 100vh;
  cursor: none; /* custom crosshair */
  background-image:
    radial-gradient(rgba(15,14,12,.045) 1px, transparent 1px);
  background-size: 4px 4px;
  background-position: 0 0;
}

/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .25 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: var(--red); color: var(--paper); }

/* ── Typography utility ─────────────────────────────────────── */
.t-display { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.01em; line-height: .82; text-transform: uppercase; }
.t-editorial { font-family: var(--f-editorial); font-style: italic; font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }
.t-mono { font-family: var(--f-mono); font-weight: 400; }
.t-mono-cap { font-family: var(--f-mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: 10.5px; }
.t-num { font-variant-numeric: tabular-nums; }

/* ── Cross (registration) mark ──────────────────────────────── */
.reg {
  width: 14px; height: 14px;
  flex: none;
  display: inline-block;
  position: relative;
}
.reg::before, .reg::after {
  content: ""; position: absolute; background: currentColor;
}
.reg::before { left: 6px; top: 0; width: 1px; height: 14px; }
.reg::after  { top: 6px; left: 0; height: 1px; width: 14px; }
.reg.red { color: var(--red); }

/* ── Layout shell ───────────────────────────────────────────── */
.shell {
  position: relative;
  padding: calc(var(--gutter) + 14px) var(--gutter) calc(var(--gutter) + 48px);
  min-height: 100vh;
}

.frame {
  position: fixed;
  inset: calc(var(--gutter) - 2px);
  pointer-events: none;
  z-index: 4;
}
.frame .reg-corner {
  position: absolute;
  width: 18px; height: 18px;
  color: var(--red);
}
.frame .reg-corner::before, .frame .reg-corner::after {
  content: ""; position: absolute; background: currentColor;
}
.frame .reg-corner::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.frame .reg-corner::after  { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.frame .reg-corner.tl { top: -9px; left: -9px; }
.frame .reg-corner.tr { top: -9px; right: -9px; }
.frame .reg-corner.bl { bottom: -9px; left: -9px; }
.frame .reg-corner.br { bottom: -9px; right: -9px; }

/* ── BOTTOM BAR (folio live counter) ────────────────────── */
.bottombar {
  position: fixed;
  left: var(--gutter); right: var(--gutter);
  bottom: var(--gutter);
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 8px 14px;
  background: var(--paper);
  border-top: var(--hair);
  border-left: var(--hair);
  border-right: var(--hair);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.bottombar .center { text-align: center; }
.bottombar .right { text-align: right; }
.bottombar .red { color: var(--red); }
.bottombar .progress {
  display: inline-block;
  width: 80px; height: 4px;
  background: var(--ink-10);
  position: relative;
  vertical-align: middle;
  margin: 0 8px;
}
.bottombar .progress i {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--red);
  width: var(--p, 0%);
  transition: width 120ms linear;
}

/* ── Top bar ─────────────────────────────────────────────── */
.topbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 0 18px;
  border-bottom: var(--hair);
  gap: 16px;
}
.topbar > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar > div.right { justify-content: flex-end; }
.topbar > div.center { justify-content: center; flex-wrap: nowrap; }
.topbar .reg { color: var(--red); }
.topbar .pill {
  border: var(--hair-soft);
  padding: 4px 8px;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
  transition: background var(--motion-fast), color var(--motion-fast);
}
.topbar .pill:hover { background: var(--ink); color: var(--paper); }
.topbar .pill.red { color: var(--red); border-color: var(--red); }
.topbar .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  display: inline-block;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 32px 0 0;
  border-bottom: var(--hair);
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: var(--hair-soft);
}
.hero-meta .cell .label {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 6px;
}
.hero-meta .cell .val {
  font-family: var(--f-mono); font-size: 13px;
}

.hero-mast {
  position: relative;
  padding: 8px 0 0;
}
.hero-mast .row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 8px 0;
}
.hero-mast .ak {
  font-family: var(--f-display);
  font-size: clamp(120px, 22vw, 340px);
  line-height: .82;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-mast .ak .it {
  font-family: var(--f-editorial);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--red);
}
.hero-mast .ak .glyph {
  display: inline-block;
  transition: transform 250ms cubic-bezier(.2,.7,.2,1), color 200ms;
  will-change: transform;
}
.hero-mast .ak .glyph:hover {
  color: var(--red);
  transform: translateY(-6px) rotate(-3deg);
}

.tagline {
  font-family: var(--f-editorial);
  font-style: italic;
  font-size: clamp(28px, 3.8vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 14ch;
}

.hero-sub {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: var(--hair-soft);
  border-bottom: var(--hair);
}
.hero-sub .col p { margin: 0; }
.hero-sub .col .label {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 6px;
}

/* ── Marquee ────────────────────────────────────────────── */
.marquee {
  position: relative;
  overflow: hidden;
  border-bottom: var(--hair);
  padding: 12px 0;
  font-family: var(--f-display);
  font-size: clamp(54px, 8vw, 120px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 36px;
  animation: scroll var(--mq-dur, 36s) linear infinite;
  animation-direction: var(--mq-dir, normal);
  will-change: transform;
}
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee-track span { display: inline-flex; align-items: center; gap: 36px; }
.marquee-track .star { color: var(--red); }
.marquee-track .it { font-family: var(--f-editorial); font-style: italic; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Section primitives ─────────────────────────────────── */
.section {
  position: relative;
  padding: 56px 0;
  border-bottom: var(--hair);
}
.section-head {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 24px;
  border-bottom: var(--hair-soft);
  margin-bottom: 24px;
}
.section-head .num {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
}
.section-head .title {
  font-family: var(--f-display);
  font-size: clamp(42px, 6.4vw, 96px);
  line-height: .85;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.section-head .title .it {
  font-family: var(--f-editorial);
  font-style: italic;
  letter-spacing: -0.01em;
}
.section-head .meta {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-60);
  text-align: right;
}

/* ── INDEX table (works list) ───────────────────────────── */
.index-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-mono);
  font-size: 14px;
}
.index-table th, .index-table td {
  padding: 14px 8px;
  border-bottom: var(--hair-soft);
  text-align: left;
  vertical-align: baseline;
}
.index-table thead th {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 500;
  padding: 10px 8px;
}
.index-table tbody tr {
  transition: background var(--motion-fast);
  cursor: none;
}
.index-table tbody tr:hover {
  background: var(--ink);
  color: var(--paper);
}
.index-table tbody tr:hover .row-title {
  color: var(--paper);
}
.index-table tbody tr:hover .row-cat {
  color: var(--red);
}
.index-table tbody tr td:first-child { color: var(--ink-60); width: 60px; }
.index-table tbody tr:hover td:first-child { color: var(--paper); opacity: .8; }
.row-title {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1;
}
.row-title .it {
  font-family: var(--f-editorial);
  font-style: italic;
  font-weight: 400;
}
.row-cat {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.row-arrow {
  width: 18px; height: 18px; display: inline-block;
  transition: transform var(--motion-base);
  opacity: 0;
}
.index-table tbody tr:hover .row-arrow { opacity: 1; transform: translateX(4px); }

/* ── Selected works (cards) ─────────────────────────────── */
.works-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols, 12), 1fr);
  gap: 24px;
  row-gap: 64px;
}
.work {
  position: relative;
}
.work .ph {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  overflow: hidden;
  border: var(--hair);
}
.work.tall .ph { aspect-ratio: 3 / 4; }
.work.wide .ph { aspect-ratio: 16 / 9; }
.work .ph .stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    var(--ink) 0 1px,
    transparent 1px 12px
  );
  opacity: .35;
  transition: opacity var(--motion-base), transform var(--motion-base);
}
.work .ph .glyph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: clamp(72px, 12vw, 160px);
  color: var(--ink);
  opacity: .9;
  transition: transform var(--motion-base), color var(--motion-base);
  will-change: transform;
}
.work .ph .label-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  background: var(--paper);
  border-top: var(--hair);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
}
.work .ph .crop {
  position: absolute;
  width: 12px; height: 12px;
  pointer-events: none;
}
.work .ph .crop.tl { top: 6px; left: 6px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.work .ph .crop.tr { top: 6px; right: 6px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.work .ph .crop.bl { bottom: 30px; left: 6px; border-bottom: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.work .ph .crop.br { bottom: 30px; right: 6px; border-bottom: 1px solid var(--ink); border-right: 1px solid var(--ink); }

.work .ph:hover .glyph {
  transform: scale(1.08) rotate(-2deg);
  color: var(--red);
}
.work .ph:hover .stripes {
  opacity: .9;
  transform: scale(1.05) rotate(1deg);
}

/* ── ASCII thumb canvas ─────────────────────────────────── */
.ascii-thumb {
  position: absolute;
  inset: 0;
  bottom: 28px;          /* leave room for label-bar */
  margin: 0;
  padding: 18px 20px 14px;
  font-family: var(--f-mono);
  font-size: clamp(9px, 1.05vw, 14px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--paper-2);
  white-space: pre;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background var(--motion-base), filter var(--motion-base);
}
.ascii-thumb .ah-grid {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: pre;
}
.work.tall .ascii-thumb { font-size: clamp(8px, 0.85vw, 12px); }
.work.wide .ascii-thumb { font-size: clamp(9px, 1vw, 13px); }
.work .ph:hover .ascii-thumb { background: var(--paper); filter: contrast(1.08); }
.ascii-thumb .ah-head,
.ascii-thumb .ah-foot {
  display: block;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .88em;
}
.ascii-thumb .ah-head { color: var(--red); }
.ascii-thumb .ah-foot { color: var(--ink-60); }
.ascii-thumb .ah-foot.r { color: var(--red); }

/* Label-bar mid-cell: truncate long client strings instead of overflowing */
.work .ph .label-bar .lb-mid {
  flex: 1; min-width: 0;
  margin: 0 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work .caption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding-top: 12px;
  align-items: baseline;
}
.work .caption .t {
  font-family: var(--f-display);
  font-size: 28px;
  line-height: .9;
  text-transform: uppercase;
}
.work .caption .t .it {
  font-family: var(--f-editorial); font-style: italic; font-weight: 400;
}
.work .caption .sub {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-60);
}
.work .caption .yr {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-60);
  align-self: start;
}

/* ── ABOUT / Colophon ───────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-grid .lede {
  font-family: var(--f-editorial);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.about-grid .body {
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.6;
  max-width: 56ch;
}
.about-grid .body p { margin: 0 0 14px; }
.about-grid .body strong { background: var(--ink); color: var(--paper); padding: 0 4px; font-weight: 400; }

.about-stats {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: var(--hair);
  padding-top: 18px;
}
.about-stats .stat .v {
  font-family: var(--f-display);
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1;
}
.about-stats .stat .l {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-60);
  margin-top: 6px;
}

/* ── Off the clock — character, taste ───────────────────── */
.off-clock {
  margin-top: 56px;
  padding-top: 28px;
  border-top: var(--hair);
}
.off-clock .oc-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 22px;
}
.off-clock .oc-head .num {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-60);
}
.off-clock .oc-title {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1; text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 0;
}
.off-clock .oc-title .it {
  font-family: var(--f-editorial); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  color: var(--ink-60);
}
.off-clock .oc-head .meta {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-60);
  justify-self: end;
}
.oc-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 24px;
}
.oc-card {
  border: var(--hair);
  background: var(--paper-2);
  padding: 22px 22px 18px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.oc-card .oc-k,
.oc-card .oc-k-2 {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
}
.oc-card .oc-k-2 { margin-top: 12px; }
.oc-card .oc-lede {
  font-family: var(--f-editorial);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.25;
  color: var(--ink);
}
.oc-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.oc-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  font-family: var(--f-mono); font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
  border-bottom: 1px dashed rgba(15,14,12,0.12);
  padding-bottom: 5px;
}
.oc-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.oc-list .t-num {
  color: var(--ink-60); letter-spacing: .1em;
}
.oc-list em {
  font-family: var(--f-editorial); font-style: italic;
  font-size: 13.5px;
}
.oc-foot {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-60);
  margin-top: auto; padding-top: 8px;
  border-top: var(--hair);
}
.oc-foot a {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--ink);
}
.oc-foot a:hover { color: var(--red); border-color: var(--red); }
.oc-card-quote { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.oc-card-quote .oc-k { color: var(--paper); opacity: .6; }
.oc-quote {
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--f-editorial);
}
.oc-quote .it {
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.oc-quote .oc-q-sub {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(239,233,218,0.62);
}
.oc-card-quote .oc-p {
  font-family: var(--f-editorial);
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
  color: rgba(239,233,218,0.82);
}
.oc-card-quote .oc-p em {
  font-style: italic;
  color: var(--paper);
}
.oc-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto; padding-top: 8px;
}
.oc-tags span {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid rgba(239,233,218,0.28);
  color: rgba(239,233,218,0.82);
  border-radius: 999px;
}

@media (max-width: 1100px) {
  .oc-grid { grid-template-columns: 1fr 1fr; }
  .oc-card-quote { grid-column: span 2; }
}
@media (max-width: 720px) {
  .oc-grid { grid-template-columns: 1fr; }
  .oc-card-quote { grid-column: auto; }
}

/* ── Capabilities list ──────────────────────────────────── */
.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cap {
  border-top: var(--hair);
  padding-top: 16px;
}
.cap h4 {
  font-family: var(--f-display);
  font-size: 28px;
  line-height: .9;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-weight: 400;
}
.cap ul { list-style: none; padding: 0; margin: 0; font-family: var(--f-mono); font-size: 13px; }
.cap ul li { padding: 6px 0; border-bottom: var(--hair-soft); display: flex; justify-content: space-between; gap: 12px; }
.cap ul li .y { color: var(--ink-60); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* ── Now block ─────────────────────────────────────────── */
.now {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.now .big {
  font-family: var(--f-display);
  font-size: clamp(48px, 7vw, 120px);
  line-height: .88;
  text-transform: uppercase;
}
.now .big .it { font-family: var(--f-editorial); font-style: italic; color: var(--red); }
.now ul { list-style: none; margin: 0; padding: 0; font-family: var(--f-mono); font-size: 14px; }
.now ul li { padding: 10px 0; border-bottom: var(--hair-soft); display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: baseline; }
.now ul li .k { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-60); }

/* ── Contact / Footer / Colophon ────────────────────────── */
.contact {
  padding: 80px 0 24px;
}
.contact .talk {
  font-family: var(--f-display);
  font-size: clamp(80px, 18vw, 280px);
  line-height: .82;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.contact .talk .it {
  font-family: var(--f-editorial);
  font-style: italic;
  color: var(--red);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.contact .email-row {
  display: flex; align-items: center; justify-content: space-between;
  border-top: var(--hair); border-bottom: var(--hair);
  padding: 14px 0;
  margin-top: 24px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact .email-row a {
  color: inherit; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color var(--motion-fast);
}
.contact .email-row a:hover { color: var(--red); }

.colophon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 18px 0 8px;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-60);
}

/* ── Cursor crosshair ─────────────────────────────────── */
.cursor {
  position: fixed;
  width: 32px; height: 32px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  color: var(--paper);
}
.cursor::before, .cursor::after {
  content: ""; position: absolute; background: currentColor;
}
.cursor::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.cursor::after  { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.cursor .ring {
  position: absolute; inset: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.cursor .lbl {
  position: absolute;
  left: 36px; top: 8px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--ink);
  color: var(--paper);
  padding: 3px 6px;
  opacity: 0;
  transition: opacity var(--motion-fast);
}
.cursor.show-lbl .lbl { opacity: 1; }

/* dot cursor variant */
.cursor.dot::before, .cursor.dot::after { display: none; }
.cursor.dot .ring { inset: 0; border: 2px solid var(--ink); background: var(--red); border-radius: 50%; }

/* none variant — show OS cursor */
body.cursor-default { cursor: auto; }
body.cursor-default .cursor { display: none; }

/* ── Anchors / hover storm utilities ────────────────────── */
.hov-flip {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hov-flip .h, .hov-flip .h2 {
  display: block;
  transition: transform 300ms cubic-bezier(.65,0,.35,1);
}
.hov-flip .h2 {
  position: absolute; top: 100%; left: 0;
  color: var(--red);
}
.hov-flip:hover .h { transform: translateY(-100%); }
.hov-flip:hover .h2 { transform: translateY(-100%); }

a, button { color: inherit; }

/* ── Scramble text ─────────────────────────────────────── */
.scramble { display: inline-block; }

/* ── Print niceties ────────────────────────────────────── */
@media print {
  body { cursor: auto; }
  body::before, .cursor, .frame { display: none !important; }
  .marquee-track { animation: none !important; }
}

/* ── small screens ─────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-sub { grid-template-columns: 1fr; }
  .about-grid, .now { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .colophon { grid-template-columns: 1fr 1fr; }
  .index-table th:nth-child(3), .index-table td:nth-child(3) { display: none; }
}

/* ── touch devices: kill the custom cursor + hover micro-FX ── */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .frame { display: none !important; }
  .hero-mast .ak .glyph:hover { transform: none; color: inherit; }
  .work .ph:hover .glyph,
  .work .ph:hover .stripes,
  .work .ph:hover .ascii-thumb { transform: none; filter: none; background: var(--paper-2); }
  .index-table tbody tr:hover { background: transparent; color: inherit; }
  .index-table tbody tr:hover .row-title { color: inherit; }
  .index-table tbody tr:hover .row-cat { color: inherit; }
  .index-table tbody tr:hover td:first-child { color: var(--ink-60); opacity: 1; }
  .index-table tbody tr:hover .row-arrow { opacity: 1; transform: none; }
  .hov-flip { overflow: visible; }
  .hov-flip .h2 { display: none; }
  .topbar .pill:hover { background: transparent; color: inherit; }
}

/* ── tablet / large phone (≤ 720px) ───────────────────── */
@media (max-width: 720px) {
  :root { --gutter: 14px; }

  html { font-size: 13px; }

  .shell {
    padding: 16px 14px 96px;
  }

  /* Topbar — stack, scroll horizontally if needed */
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 14px;
  }
  .topbar > div { flex-wrap: wrap; gap: 6px; }
  .topbar > div.right { justify-content: flex-start; }
  .topbar > div.center { justify-content: flex-start; }
  .topbar .pill { font-size: 9.5px; padding: 4px 7px; }

  /* Bottom bar — keep tiny, no shrink */
  .bottombar {
    grid-template-columns: 1fr auto;
    padding: 6px 10px;
    font-size: 9px;
  }
  .bottombar .center { display: none; }
  .bottombar .right { text-align: right; }
  .bottombar .progress { width: 56px; margin: 0 6px; }

  /* Hero */
  .hero { padding-top: 18px; }
  .hero-meta {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 12px 0;
  }
  .hero-meta .cell .val { font-size: 11.5px; }
  .hero-mast .row { padding: 4px 0; }
  .hero-mast .ak {
    font-size: clamp(64px, 20vw, 140px);
    letter-spacing: -0.03em;
  }
  .tagline { font-size: clamp(22px, 6.5vw, 34px); max-width: none; }
  .hero-sub { padding: 14px 0; gap: 14px; }

  /* Marquee — smaller so phones don't feel screamed at */
  .marquee {
    font-size: clamp(34px, 11vw, 64px);
    padding: 8px 0;
  }
  .marquee-track { gap: 22px; }
  .marquee-track span { gap: 22px; }

  /* Section heads — stack vertically */
  .section { padding: 36px 0; }
  .section-head {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
  .section-head .title { font-size: clamp(36px, 11vw, 60px); }
  .section-head .meta { text-align: left; }

  /* Index table — drop two columns, simplify rows */
  .index-table { font-size: 12px; }
  .index-table th, .index-table td { padding: 10px 6px; }
  .index-table th:nth-child(3),
  .index-table td:nth-child(3),
  .index-table th:nth-child(4),
  .index-table td:nth-child(4),
  .index-table th:nth-child(6),
  .index-table td:nth-child(6) { display: none; }
  .row-title { font-size: 18px; }
  .index-table tbody tr td:first-child { width: 40px; }

  /* Works — force single column regardless of inline span */
  .works-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
    row-gap: 36px;
  }
  .works-grid > .work { grid-column: 1 / -1 !important; }
  .work .ph, .work.tall .ph, .work.wide .ph { aspect-ratio: 4 / 3; }
  .work .caption .t { font-size: 22px; }
  .work .caption .sub { font-size: 9.5px; }
  .work .ph .label-bar { font-size: 9px; padding: 6px 8px; }
  .work .ph .crop.bl, .work .ph .crop.br { bottom: 26px; }

  /* ASCII thumbs — bump font so it's still readable */
  .ascii-thumb,
  .work.tall .ascii-thumb,
  .work.wide .ascii-thumb {
    font-size: clamp(8.5px, 2.4vw, 12px);
    padding: 12px 12px 10px;
    bottom: 24px;
  }
  .ascii-thumb .ah-head,
  .ascii-thumb .ah-foot { font-size: .82em; }

  /* About */
  .about-grid { gap: 24px; }
  .about-grid .lede { font-size: clamp(22px, 7vw, 34px); }
  .about-grid .body { font-size: 12.5px; max-width: none; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .about-stats .stat .v { font-size: clamp(30px, 9vw, 44px); }

  /* Off-clock card layout already collapses at 720, just tighten */
  .off-clock { margin-top: 32px; padding-top: 18px; }
  .off-clock .oc-head { grid-template-columns: 1fr; gap: 6px; }
  .off-clock .oc-head .meta { justify-self: start; }
  .oc-card { padding: 16px 16px 14px; gap: 12px; }
  .oc-card .oc-lede { font-size: 16px; }
  .oc-list li { font-size: 11.5px; grid-template-columns: 18px 1fr; gap: 8px; }
  .oc-list em { font-size: 12.5px; }
  .oc-quote .it { font-size: clamp(24px, 8vw, 34px); }
  .oc-card-quote .oc-p { font-size: 13.5px; }

  /* Capabilities */
  .caps { gap: 14px; }
  .cap h4 { font-size: 22px; }
  .cap ul { font-size: 12px; }
  .cap ul li { padding: 5px 0; gap: 8px; }
  .cap ul li .y { font-size: 10px; }

  /* Now block */
  .now { gap: 22px; }
  .now .big { font-size: clamp(32px, 12vw, 64px); }
  .now ul { font-size: 12.5px; }
  .now ul li {
    grid-template-columns: 76px 1fr;
    gap: 10px;
    padding: 8px 0;
  }

  /* Contact */
  .contact { padding: 40px 0 24px; }
  .contact .talk { font-size: clamp(56px, 22vw, 120px); }
  .contact .email-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 0;
    font-size: 12px;
  }
  .colophon {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .colophon > div { text-align: left !important; }
}

/* ── small phones (≤ 480px) — final squeeze ─────────────── */
@media (max-width: 480px) {
  .hero-meta { grid-template-columns: 1fr; }
  .hero-mast .ak { font-size: clamp(56px, 22vw, 100px); }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .topbar .pill { font-size: 9px; }
  .marquee { font-size: clamp(28px, 12vw, 48px); }
  .section-head .title { font-size: clamp(28px, 12vw, 48px); }
  .contact .talk { font-size: clamp(44px, 22vw, 96px); line-height: .88; }
  .ascii-thumb .ah-head,
  .ascii-thumb .ah-foot { letter-spacing: .04em; }
}
