/* Penyo — portfolio. One world: warm grey-white paper, near-black ink,
   mono captions, the art as the only colour. */

:root {
  --paper: #efeee7;
  --paper-2: #e4e2d9;
  --ink: #0b0e10;
  --ink-2: #57534c;
  --tick: #b3ada3;
  --line: rgb(11 14 16 / 0.14);
  --mono: "Victor Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Sofia Sans", system-ui, sans-serif;
  --cond: "Sofia Sans Extra Condensed", "Sofia Sans", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(16px, 2.3vw, 32px);
  --measure: 62ch;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--tick) var(--paper);
  hanging-punctuation: first;
}
body {
  margin: 0;
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
::selection { background: var(--ink); color: var(--paper); }
input, textarea { caret-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--tick); border-radius: 10px; border: 3px solid var(--paper); }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.dim { color: var(--ink-2); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--pad); top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.social { display: flex; gap: 4px; margin: 14px 0 0 -6px; }
.social a, .social .soon-ic {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  color: var(--ink);
  transition: color 0.3s, transform 0.5s var(--ease);
}
.social svg { width: 20px; height: 20px; }
.social a:hover { color: var(--ink-2); transform: translateY(-2px); }
.social .soon-ic { color: var(--tick); cursor: help; }
.arrow { display: inline-block; width: 0.95em; height: 0.95em; vertical-align: -0.08em; margin-left: 0.3em; transition: transform 0.5s var(--ease); }
a:hover > .arrow, button:hover > .arrow { transform: translateX(4px); }

/* ───────── Header ───────── */
.top {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 16px;
  padding: var(--pad) var(--pad) 0;
  view-transition-name: top;
}
.page .top {
  position: sticky;
  top: 0;
  padding-bottom: 14px;
  background: var(--paper);
  transition: box-shadow 0.4s var(--ease);
}
.page .top.scrolled { box-shadow: 0 1px 0 var(--line); }
.mark {
  justify-self: start;
  font: 800 30px/0.86 var(--cond);
  letter-spacing: 0.012em;
  text-decoration: none;
  text-transform: uppercase;
  padding-top: 1px;
}
.views {
  display: inline-flex;
  background: var(--paper-2);
  border-radius: 999px;
  padding: 3px;
}
.views a {
  position: relative;
  isolation: isolate;
  padding: 7px 15px 6px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.3s;
}
.views a:hover { color: var(--ink); }
.views a[aria-current="page"] { color: var(--paper); background: var(--ink); view-transition-name: pill; }
.views a span { position: relative; }
.nav {
  justify-self: end;
  display: flex;
  gap: 22px;
  align-items: baseline;
}
.nav a { text-decoration: none; position: relative; padding: 4px 0; }
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .lang { color: var(--ink-2); }
.menu-btn { display: none; justify-self: end; padding: 6px 0; }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--paper);
  display: flex; flex-direction: column;
  padding: var(--pad);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
}
.menu.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.7s var(--ease), visibility 0s; }
.menu-head { display: flex; justify-content: space-between; align-items: start; }
.menu ul { margin-top: auto; margin-bottom: auto; display: grid; gap: 4px; }
.menu li { overflow: hidden; }
.menu li a {
  display: inline-block;
  font: 800 clamp(56px, 17vw, 96px)/0.92 var(--cond);
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(105%);
  transition: transform 0.8s var(--ease);
}
.menu.open li a { transform: none; }
.menu.open li:nth-child(2) a { transition-delay: 0.05s; }
.menu.open li:nth-child(3) a { transition-delay: 0.1s; }
.menu-foot { display: flex; justify-content: space-between; }

/* ───────── Home: the archive strip ───────── */
.home {
  position: relative;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  display: block;
}
.home .top { position: absolute; inset: 0 0 auto; }
.offer {
  position: absolute;
  z-index: 15;
  left: var(--pad);
  top: calc(var(--pad) + 40px);
  max-width: 25ch;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}
.offer p a {
  display: inline-block;
  margin-top: 8px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.archive {
  position: absolute;
  inset: 0;
  z-index: 10;
  outline: none;
}
.track { margin: 0; }
.item {
  display: block;
  text-decoration: none;
}
.item img, .work img, .v-img, .compare img { background: var(--c, var(--paper-2)); }
.item picture, .item img { width: 100%; height: 100%; }
.item img { object-fit: cover; }

/* Without JS the strip is a plain horizontal scroller. */
.no-js .archive { overflow-x: auto; display: flex; align-items: center; padding: 0 var(--pad); scroll-snap-type: x mandatory; }
.no-js .track { display: flex; gap: 14px; align-items: center; }
.no-js .item { flex: none; height: 52svh; aspect-ratio: var(--a); scroll-snap-align: start; }
.no-js .cap, .no-js .ctrl { display: none; }

.js .archive { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.js .archive.dragging { cursor: grabbing; }
.js .track { position: absolute; inset: 0; }
.js .item {
  position: absolute;
  left: 0; top: 0;
  transform-origin: 0 0;
  will-change: transform;
  -webkit-user-drag: none;
}
.js .item img { -webkit-user-drag: none; pointer-events: none; }
.js .item:focus-visible { outline-offset: 6px; }
.js .item .tip { display: none; }

.js .archive:not(.ready) .track { visibility: hidden; }
.js .track {
  --fade-r: clamp(16px, 7vw, 120px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--pad), #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--pad), #000 calc(100% - var(--fade-r)), transparent 100%);
}

.cap {
  position: absolute;
  z-index: 12;
  left: var(--ax, 20vw);
  bottom: calc(100% - var(--atop, 30vh) + 14px);
  display: grid;
  gap: 2px;
  pointer-events: none;
}
.cap .line { display: block; overflow: hidden; height: 1.45em; position: relative; }
.cap .line span { display: block; white-space: nowrap; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
.cap .line span.out { position: absolute; left: 0; top: 0; transform: translateY(-100%); opacity: 0; }
.cap .line span.in { transform: translateY(100%); opacity: 0; }
.cap .n { color: var(--ink-2); margin-bottom: 10px; }
.cap .k { color: var(--ink-2); }

.ctrl {
  position: absolute;
  z-index: 15;
  left: var(--pad);
  right: var(--pad);
  bottom: var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.ctrl .prev { justify-self: start; }
.ctrl .next { justify-self: end; }
.ctrl button { padding: 10px 0; transition: color 0.3s; }
.ctrl button:hover { color: var(--ink-2); }
.ctrl button:disabled { color: var(--tick); cursor: default; }
.ruler {
  display: flex;
  align-items: flex-end;
  height: 32px;
  padding: 0 4px;
  cursor: pointer;
  touch-action: none;
}
.ruler i {
  width: 11px;
  height: 100%;
  position: relative;
  pointer-events: none;
}
.ruler i::before {
  content: "";
  position: absolute; left: 5px; bottom: 6px;
  width: 1px; height: 8px;
  background: var(--tick);
  transition: height 0.5s var(--ease), background-color 0.5s var(--ease);
}
.ruler i.on::before { height: 22px; background: var(--ink); }
.ruler:hover i::before { background: var(--ink-2); }
.ruler:hover i.on::before { background: var(--ink); }

/* ───────── Viewer ───────── */
.viewer {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}
.viewer::backdrop { background: transparent; }
.viewer .v-bg {
  position: absolute; inset: 0;
  background: var(--paper);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.viewer.on .v-bg { opacity: 1; }
.v-top, .v-bot {
  position: absolute; z-index: 3;
  left: var(--pad); right: var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.5s var(--ease) 0.15s;
}
.viewer.on .v-top, .viewer.on .v-bot { opacity: 1; }
.v-top { top: var(--pad); align-items: start; }
.v-bot { bottom: var(--pad); }
.v-cap { display: grid; gap: 2px; }
.v-cap .k, .v-cap .n { color: var(--ink-2); }
.v-prev { justify-self: start; }
.v-close, .v-next { justify-self: end; }
.v-top button, .v-bot button { padding: 8px 0; transition: color 0.3s; }
.v-top button:hover, .v-bot button:hover { color: var(--ink-2); }
.v-vars { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 3px; }
.v-vars[hidden] { display: none; }
.v-vars button { padding: 7px 14px 6px; border-radius: 999px; color: var(--ink-2); transition: color 0.3s, background-color 0.3s; }
.v-vars button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.v-vars button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.v-stage {
  position: absolute; z-index: 2;
  inset: 0;
  overflow: hidden;
  touch-action: none;
}
.v-frame {
  position: absolute;
  left: 0; top: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.v-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.v-frame img.v-next-img { transition: opacity 0.45s var(--ease); }
.v-frame img.v-next-img.pending { opacity: 0; }
.v-stage { cursor: zoom-in; }
.viewer.zoomed .v-stage { cursor: grab; }
.viewer.zoomed .v-stage.dragging { cursor: grabbing; }
.viewer.zoomed .v-top, .viewer.zoomed .v-bot { opacity: 0; pointer-events: none; }
.viewer.zoomed .v-zoom-out { opacity: 1; pointer-events: auto; }
.v-zoom-out {
  position: absolute; z-index: 4; right: var(--pad); bottom: var(--pad);
  opacity: 0; pointer-events: none;
  padding: 8px 12px; background: var(--paper); border-radius: 999px;
  transition: opacity 0.4s var(--ease);
}
.v-hint { position: absolute; z-index: 3; left: 50%; bottom: calc(var(--pad) + 44px); transform: translateX(-50%); color: var(--ink-2); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
html.viewer-open { overflow: hidden; }

/* ───────── Content pages ───────── */
.wrap { padding: 0 var(--pad); }
.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: clamp(48px, 9vw, 120px) var(--pad) clamp(28px, 4vw, 48px);
}
.display {
  font: 800 clamp(3.4rem, 9vw, 6rem)/0.9 var(--cond);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.display .count { font: 500 12px/1 var(--mono); letter-spacing: 0.035em; vertical-align: top; margin-left: 0.6em; color: var(--ink-2); position: relative; top: 0.5em; }

/* Works: justified rows, no crops */
.filters {
  display: inline-flex;
  flex-wrap: wrap;
  justify-self: end;
  max-width: 100%;
  background: var(--paper-2);
  border-radius: 21px;
  padding: 3px;
}
.filters button {
  padding: 8px 14px 7px;
  border-radius: 999px;
  color: var(--ink-2);
  transition: color 0.3s, background-color 0.3s;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.grid {
  --rh: clamp(170px, 24vw, 340px);
  display: flex;
  flex-wrap: wrap;
  gap: 40px clamp(12px, 1.4vw, 20px);
  padding: 0 var(--pad);
}
.grid::after { content: ""; flex-grow: 999; }
.work {
  flex: var(--a) 1 calc(var(--a) * var(--rh));
  min-width: 0;
  text-decoration: none;
}
.work[hidden] { display: none; }
.work .frame { position: relative; overflow: hidden; }
.work img { width: 100%; height: auto; aspect-ratio: var(--a); transition: transform 1.1s var(--ease); }
.work:hover img { transform: scale(1.025); }
.work .meta { display: grid; gap: 1px; margin-top: 10px; }
.work .meta .k { color: var(--ink-2); }
.work .meta .arrow { opacity: 0; transform: translateX(-4px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.work:hover .meta .arrow { opacity: 1; transform: none; }
.js .work.reveal { opacity: 0; transform: translateY(24px); }
.js .work.reveal.in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }

/* Closing band */
.closer {
  margin-top: clamp(72px, 12vw, 160px);
  padding: clamp(40px, 6vw, 72px) var(--pad) clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.closer .line {
  max-width: 34ch;
  font: 800 clamp(28px, 3.1vw, 44px)/1.02 var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.closer .line a { text-decoration: none; transition: color 0.3s; }
.closer .line a .arrow { width: 0.72em; height: 0.72em; vertical-align: -0.02em; margin-left: 0.2em; stroke-width: 1.4; }
.closer .line a:hover { color: var(--ink-2); }

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 22px var(--pad) calc(var(--pad) + 4px);
  color: var(--ink-2);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot ul { display: flex; gap: 20px; }
.foot.ruled { border-top: 1px solid var(--line); }

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 88px);
  padding: 0 var(--pad);
  align-items: start;
}
.portrait {
  position: sticky;
  top: 96px;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  color: var(--ink-2);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .ph { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 24px; }
.portrait .ph svg { width: 40px; height: 40px; margin-bottom: 6px; }
.prose { max-width: var(--measure); }
.prose .lead { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.38; font-weight: 500; text-wrap: pretty; color: var(--ink); }
.prose p + p { margin-top: 1em; }
.prose p { text-wrap: pretty; }
.pending {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px dashed var(--tick);
  color: var(--ink-2);
}
.offers { margin-top: clamp(56px, 7vw, 96px); }
.offers h2, .sec-h { margin-bottom: 18px; color: var(--ink-2); }
.offers ol { border-top: 1px solid var(--line); }
.offers li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.offers li img { width: 72px; height: 90px; object-fit: cover; }
.offers h3 { font: 800 clamp(28px, 2.6vw, 36px)/1 var(--cond); text-transform: uppercase; letter-spacing: 0.005em; }
.offers p { margin-top: 6px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }

.compare-sec { margin-top: clamp(72px, 10vw, 140px); padding: 0 var(--pad); }
.compare-box { width: min(720px, 100%, calc(84svh * var(--a))); margin: 0 auto; }
.compare-sec .sec-row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 14px; }
.compare {
  position: relative;
  width: 100%;
  aspect-ratio: var(--a);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.compare .top-img { clip-path: inset(0 0 0 var(--p, 50%)); }
.compare .bar {
  position: absolute; top: 0; bottom: 0;
  left: var(--p, 50%);
  width: 1px; background: var(--ink);
  pointer-events: none;
}
.compare .knob {
  position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
  display: grid; place-items: center;
}
.compare .knob svg { width: 22px; height: 22px; }
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
}
.compare:has(input:focus-visible) .knob { outline: 2px solid var(--ink); outline-offset: 3px; }
.compare-labels { display: flex; justify-content: space-between; margin-top: 12px; color: var(--ink-2); }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 6vw, 112px);
  padding: 0 var(--pad) clamp(72px, 12vw, 160px);
  align-items: start;
}
.contact .lead { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.4; font-weight: 500; max-width: 40ch; text-wrap: pretty; }
.form { margin-top: clamp(36px, 4vw, 56px); display: grid; gap: 30px; max-width: 760px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { color: var(--ink); }
.field .opt { color: var(--ink-2); }
.field input, .field textarea {
  font: 400 18px/1.45 var(--sans);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-2);
  border-radius: 0;
  padding: 8px 0 10px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s var(--ease);
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6c675f; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field.bad input, .field.bad textarea { border-bottom-color: #a3261b; box-shadow: 0 1px 0 #a3261b; }
.field .err { color: #a3261b; display: none; }
.field.bad .err { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 10px; }
.chips { display: inline-flex; flex-wrap: wrap; justify-self: start; background: var(--paper-2); border-radius: 21px; padding: 3px; max-width: 100%; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block;
  padding: 9px 14px 8px;
  border-radius: 999px;
  color: var(--ink-2);
  transition: background-color 0.3s, color 0.3s;
  font: 500 12px/1.45 var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.chips label:hover span { color: var(--ink); }
.chips input:checked + span { background: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.send {
  display: inline-flex; align-items: center;
  padding: 18px 24px 17px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background-color 0.3s, transform 0.4s var(--ease);
}
.send .arrow { margin: 0 0.15em 0 0.5em; }
.send:hover { background: #262a2e; }
.send:active { transform: scale(0.98); }
.send:disabled { background: var(--ink-2); cursor: progress; }
.status { color: var(--ink-2); min-height: 1.45em; }
.status.ok { color: #1f6b3a; }
.status.err { color: #a3261b; }
.form.sent .field, .form.sent .send-row .send { opacity: 0.45; pointer-events: none; }
.direct { border-top: 1px solid var(--ink); padding-top: 16px; position: sticky; top: 110px; }
.direct dl { display: grid; gap: 0; }
.direct .item-c { padding: 14px 0 16px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.direct dt { color: var(--ink-2); }
.direct dd { font-size: 19px; font-weight: 500; }
.direct dd a { text-decoration: none; }
.direct dd a:hover { text-decoration: underline; }
.direct .soon { color: var(--ink-2); font: 500 12px/1.45 var(--mono); letter-spacing: 0.035em; text-transform: uppercase; }
.copy { margin-left: 10px; color: var(--ink-2); padding: 2px 0; }
.copy:hover { color: var(--ink); }

/* 404 */
.lost { padding: clamp(80px, 14vw, 200px) var(--pad); display: grid; gap: 20px; }

/* ───────── Responsive ───────── */
@media (max-width: 760px) {
  .top { grid-template-columns: auto 1fr auto; align-items: center; }
  .nav, .top > .ph { display: none; }
  .views { justify-self: center; }
  .views a { padding: 7px 11px 6px; }
  .menu-btn { display: block; grid-column: 3; }
  .filters { justify-self: start; }
  /* Phones: segmented tracks become parenthesised text toggles, so no rounded shape grows past one row */
  .filters, .chips { background: none; border-radius: 0; padding: 0; gap: 2px 18px; }
  .filters button, .chips span { padding: 9px 0 5px; border-radius: 0; background: none; color: var(--ink-2); border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s; }
  .chips span::before { content: "("; }
  .chips span::after { content: ")"; }
  .filters button[aria-pressed="true"], .chips input:checked + span { background: none; color: var(--ink); border-bottom-color: var(--ink); }
  .offer { top: calc(var(--pad) + 44px); font-size: 14px; max-width: 30ch; }
  .mark { font-size: 28px; }
  .page-head { grid-template-columns: 1fr; padding-top: 40px; }
  .about, .contact { grid-template-columns: 1fr; }
  .portrait { position: relative; top: 0; max-width: 420px; }
  .row2 { grid-template-columns: 1fr; }
  .direct { position: static; }
  .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 12px; align-items: start; }
  .grid::after { display: none; }
  .work { display: block; }
  .work .meta { margin-top: 8px; }
  .work .meta .arrow { display: none; }
  .v-top { grid-template-columns: 1fr auto; }
  .v-top .v-vars { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .ruler i { width: 9px; }
  .ruler i::before { left: 4px; }
}
@media (max-width: 380px) {
  .ruler i { width: 7px; }
  .ruler i::before { left: 3px; }
}

/* ───────── Motion: cross-document transitions ───────── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.6s var(--ease) both; }
::view-transition-group(pill) { animation-duration: 0.6s; animation-timing-function: var(--ease); }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; transition-delay: 0s !important; }
  .menu { transition: none; }
  .js .work.reveal { opacity: 1; transform: none; }
}
