/* itscinnamonron.com
   Paper, ink, one brush in whatever color you pick. Grid lines stay crisp, paint stays loose. */

:root {
  --paper: #fbfaf5;
  --ink: #151311;
  --muted: #6c665e;
  --paint: #f7e94b;        /* the brush color; the picker changes it */
  --accent: #8c4523;       /* darker, readable take on the paint: notes, arrows, signature */
  --on-paint: #8c4523;     /* signature color sitting on paint */
  --ink-on-paint: #151311; /* text sitting on paint */
  --red: #a52d27;
  --pen: #2d3b8e;
  --tape: rgba(222, 210, 180, 0.78);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --script: "Great Vibes", "Snell Roundhand", cursive;
  --hand: "Nanum Pen Script", "Bradley Hand", cursive;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gut: clamp(16px, 4vw, 56px);
  --line: 1px solid var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  /* paper grain */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .2 0 0 0 0 .15 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.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: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 8px 12px; text-decoration: none;
}
.skip:focus { top: 12px; }

.hand { font-family: var(--hand); font-weight: 400; line-height: 1; }

.frame {
  max-width: 1440px;
  margin: 0 auto;
  border-inline: var(--line);
  overflow: clip;
}

/* ---------- header ---------- */

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  height: 68px;
  padding: 0 var(--gut);
  border-bottom: var(--line);
  background: var(--paper);
}

.brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
  margin-right: auto;
}
.brand span {
  font-family: var(--script);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--accent);
  transform: translateY(3px);
}
.roll { width: 26px; height: 26px; }
.roll path { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }

.nav { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav a {
  font-size: 0.875rem;
  text-decoration: none;
  padding: 4px 0;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 1px;
  transition: background-size 0.25s;
}
.nav a:hover { background-size: 100% 1px; }

.top-icons { display: flex; align-items: center; gap: 16px; margin-left: clamp(8px, 2vw, 28px); }
.icon-link { display: grid; place-items: center; width: 28px; height: 28px; }
.icon-link svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.3; }
.icon-link svg .fill { fill: var(--ink); stroke: none; }
.icon-link:hover svg { transform: rotate(-6deg); }

.menu-btn {
  display: none;
  width: 32px; height: 28px;
  padding: 0; border: 0; background: none; cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute; left: 5px; right: 5px; height: 1.5px; background: var(--ink);
  transition: transform 0.2s;
}
.menu-btn span:first-child { top: 10px; }
.menu-btn span:last-child { top: 16px; }
.top.open .menu-btn span:first-child { transform: translateY(3px) rotate(45deg); }
.top.open .menu-btn span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- paint color picker ---------- */

.color-dot {
  position: relative;
  width: 28px; height: 28px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}
.dot-fill {
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: var(--paint);
}
.color-dot[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--ink); }

.paint-hint {
  position: absolute; top: 14px; right: calc(var(--gut) + 6px);
  display: flex; align-items: flex-start; gap: 4px;
  font-size: 1.45rem;
  color: var(--accent);
  transform: rotate(-3deg);
  pointer-events: none;
}
.paint-hint svg { width: 34px; height: 34px; margin-top: -18px; overflow: visible; }
.paint-hint path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.paint-hint[hidden] { display: none; }

.picker {
  position: absolute; top: calc(100% + 10px); right: var(--gut); z-index: 30;
  width: 284px;
  padding: 14px;
  border-radius: 16px;
  background: #222120;
  color: #ecebe7;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 24px 48px -16px rgba(0, 0, 0, 0.45);
}
.picker[hidden] { display: none; }
.picker::before {
  content: "";
  position: absolute; top: -7px; right: var(--pk-tip, 46px);
  width: 14px; height: 14px;
  background: #222120;
  transform: rotate(45deg);
  border-radius: 2px;
}
.pk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pk-title { font-size: 0.875rem; font-weight: 500; }
.pk-now { display: flex; width: 44px; height: 22px; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.pk-now span { flex: 1; }

.pk-sv {
  position: relative;
  aspect-ratio: 1 / 0.86;
  border-radius: 10px;
  background:
    linear-gradient(to top, #000, rgba(0, 0, 0, 0)),
    linear-gradient(to right, #fff, hsl(var(--pk-h, 55) 100% 50%));
  cursor: crosshair;
  touch-action: none;
}
.pk-sv:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pk-sv-knob {
  position: absolute;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.pk-hue {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%; height: 16px;
  margin: 14px 0 0;
  border-radius: 999px;
  background: linear-gradient(to right, #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%);
  cursor: pointer;
}
.pk-hue::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: hsl(var(--pk-h, 55) 100% 50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.4);
}
.pk-hue::-moz-range-thumb {
  width: 16px; height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: hsl(var(--pk-h, 55) 100% 50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.pk-hue:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.pk-row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.pk-label { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: #a19e97; }
.pk-reset { padding: 2px 0; border: 0; background: none; color: #ecebe7; font-size: 0.75rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.pk-swatches { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 8px; }
.pk-swatches button {
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.pk-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px #222120, 0 0 0 3.5px #fff; }
.pk-swatches button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.pk-hex { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 0.75rem; color: #a19e97; }
.pk-hex input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid #45433f;
  border-radius: 8px;
  background: #2c2b29;
  color: #ecebe7;
  font: 0.875rem var(--mono);
  text-transform: uppercase;
}
.pk-hex input:focus { outline: none; border-color: #ecebe7; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(56px, 7vw, 104px) var(--gut) clamp(64px, 8vw, 112px);
}

.hero h1 {
  font-size: clamp(3.2rem, 8.1vw, 8.4rem);
  font-weight: 500;
  font-stretch: 82%;
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.cursor { letter-spacing: 0; }

.hero-intro {
  margin-top: clamp(28px, 3.6vw, 48px);
  max-width: 38ch;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  color: var(--muted);
}

.hero-art { position: relative; aspect-ratio: 680 / 270; }
.hero-paint { position: absolute; inset: 0; }
.swash { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sig-knock {
  position: absolute; inset: 0;
  -webkit-mask: url("assets/swash-solid.svg") 0 0 / 100% 100% no-repeat;
  mask: url("assets/swash-solid.svg") 0 0 / 100% 100% no-repeat;
}
.sig-knock .sig { color: var(--on-paint); }

.sig {
  position: absolute; left: 14%; top: 24%;
  font-family: var(--script);
  font-size: clamp(3.4rem, 7.2vw, 7.2rem);
  line-height: 1;
  color: var(--accent);
  transform: rotate(-7deg);
  white-space: nowrap;
}

.note {
  position: absolute; right: 4%; bottom: -26%;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  color: var(--accent);
  transform: rotate(-3deg);
  white-space: nowrap;
}
.note .arrow {
  position: absolute; left: -64px; top: -62px;
  width: 70px; height: 54px;
  overflow: visible;
}
.arrow path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* paint-on reveal: strokes get painted left to right once they scroll into view */
.js .paint { clip-path: inset(0 100% 0 0); }
.js .paint.in { clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(0.55, 0.05, 0.25, 1); }
@media (prefers-reduced-motion: reduce) {
  .js .paint { clip-path: none; }
}
@keyframes paint-on {
  from { clip-path: inset(-15% 100% -15% -15%); }
  to { clip-path: inset(-15% -15% -15% -15%); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-paint { animation: paint-on 1.1s 0.15s cubic-bezier(0.55, 0.05, 0.25, 1) both; }
}

/* ---------- section heads ---------- */

.sec-head {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px 24px;
  padding: clamp(40px, 5vw, 72px) var(--gut) clamp(20px, 2.4vw, 28px);
  border-top: var(--line);
}
.idx {
  align-self: start;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}
.sec-title { position: relative; display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.sec-head h2 {
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  font-weight: 500;
  font-stretch: 84%;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
}
.scribble {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--accent);
  transform: rotate(-4deg) translateY(-0.6em);
}
.aside {
  max-width: 34ch;
  font-size: 0.9375rem;
  color: var(--muted);
  text-align: right;
}
.aside a { color: var(--ink); }
.aside-sub { display: block; margin-top: 4px; font-size: 0.8125rem; }

/* ---------- art grid ---------- */

.art-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: var(--line);
}
.design-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 1px 0 0 var(--ink), 0 1px 0 var(--ink);
}

.card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0; border: 0; background: none;
  cursor: zoom-in;
}
.card-media.is-static { cursor: default; }
.media-box {
  position: absolute;
  inset: 13% 13% 9%;
  display: flex; align-items: center; justify-content: center;
  container-type: size;
}

.print {
  position: relative;
  isolation: isolate;
  width: min(100cqw, calc(100cqh * var(--ar, 0.8)));
  aspect-ratio: var(--ar, 0.8);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.print img {
  width: 100%; height: 100%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 1px 1px rgba(21, 19, 17, 0.1), 0 16px 26px -16px rgba(21, 19, 17, 0.45);
}
.print.stack::before,
.print.stack::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: #fff var(--under, none) center / cover;
  box-shadow: 0 1px 1px rgba(21, 19, 17, 0.1), 0 10px 20px -14px rgba(21, 19, 17, 0.4);
}
.print.stack::before { transform: rotate(4deg) translate(7px, 3px); }
.print.stack::after { transform: rotate(-3deg) translate(-6px, 5px); background: #fff; }

.tape {
  position: absolute; left: 50%; top: -10px; z-index: 2;
  width: clamp(44px, 36%, 96px); height: 20px;
  background: var(--tape);
  transform: translateX(-50%) rotate(var(--tape-rot, -3deg));
  clip-path: polygon(0 8%, 4% 0, 50% 4%, 96% 0, 100% 10%, 97% 28%, 100% 48%, 96% 68%, 100% 88%, 97% 100%, 50% 96%, 3% 100%, 0 84%, 3% 64%, 0 44%, 4% 26%);
  mix-blend-mode: multiply;
}

.card-media:not(.is-static):hover .print,
.card-media:focus-visible .print {
  transform: rotate(calc(var(--rot, 0deg) * -0.6)) translateY(-5px);
}

.card-foot {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 0 clamp(18px, 2vw, 28px);
}
.meta { min-width: 0; }
.card-title {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.card-date {
  margin-top: 6px;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.card-note {
  margin-top: auto;
  padding: 18px clamp(18px, 2vw, 28px) 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--muted);
  min-height: 1.4em;
}

.actions { display: flex; gap: 6px; flex: none; }
.ico {
  position: relative;
  display: grid; place-items: center;
  width: 27px; height: 27px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.ico svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ico:hover, .ico:focus-visible { background: var(--ink); color: var(--paper); }
.ico::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  padding: 2px 7px 3px;
  background: var(--ink); color: var(--paper);
  font-size: 11px; line-height: 1.4; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.12s;
}
.ico::before {
  content: "";
  position: absolute; bottom: calc(100% + 3px); left: 50%;
  border: 5px solid transparent; border-top-color: var(--ink); border-bottom: 0;
  transform: translateX(-50%);
  opacity: 0; transition: opacity 0.12s;
}
.ico:last-child::after { left: auto; right: -2px; transform: none; }
.ico:hover::after, .ico:hover::before,
.ico:focus-visible::after, .ico:focus-visible::before { opacity: 1; }

.sketch { width: 82%; height: auto; overflow: visible; }

/* design cards: two phones standing on the paper instead of a taped print */
.design-card .media-box { inset: 8% 9% 6%; }
.devices {
  position: relative;
  height: min(100cqh, calc(100cqw / 0.86));
  aspect-ratio: 0.86;
  transform: rotate(var(--rot, 0deg));
}
.device {
  position: absolute; bottom: 0;
  height: 100%; width: auto; max-width: none;
  aspect-ratio: 1520 / 2960;
  filter: drop-shadow(0 16px 18px rgba(21, 19, 17, 0.2));
  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.device.front { left: 0; transform: rotate(-3deg); }
.device.back { right: 0; height: 90%; bottom: 6%; transform: rotate(6deg); }
.card-media:hover .device.front, .card-media:focus-visible .device.front { transform: rotate(-1deg) translateY(-6px); }
.card-media:hover .device.back, .card-media:focus-visible .device.back { transform: rotate(9deg) translateX(6px); }

/* spare cards that keep rows even */
.spare .media-box { display: grid; place-items: center; }
.spare .media-box > * { grid-area: 1 / 1; }
.spare-note { font-size: 1.6rem; color: var(--muted); transform: rotate(-4deg); }

.status {
  grid-column: 1 / -1;
  padding: clamp(48px, 8vw, 110px) var(--gut);
  text-align: center;
  box-shadow: 0 1px 0 var(--ink);
}
.status .hand { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--muted); }
.status p + p { margin-top: 14px; }
.status a { color: var(--ink); }

.more { display: flex; justify-content: center; padding: 32px var(--gut); }
.more[hidden] { display: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border: var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
}
.pill:hover { background: var(--ink); color: var(--paper); }
.pill[disabled] { opacity: 0.5; cursor: progress; }
.pill[hidden] { display: none; }

.noscript { padding: 32px var(--gut); }

/* ---------- studio ---------- */

.brushes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: var(--line);
}
.brush {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  padding: clamp(22px, 2.4vw, 32px) clamp(18px, 2vw, 28px);
  min-height: 230px;
  box-shadow: 1px 0 0 var(--ink), 0 1px 0 var(--ink);
}
.b-app { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.b-name { margin-top: 10px; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.b-use { margin-top: 2px; font-family: var(--serif); font-style: italic; color: var(--muted); }
.b-prev { align-self: end; width: 100%; height: auto; margin-top: 22px; overflow: visible; }
.b-code {
  align-self: end;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.b-code .k { color: var(--accent); }
.b-code .s { color: var(--pen); }

.p-link svg, .links svg {
  color: var(--accent);
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- code ---------- */

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--line);
}
.project {
  display: flex; flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px) clamp(18px, 2vw, 28px);
  box-shadow: 1px 0 0 var(--ink), 0 1px 0 var(--ink);
}
.p-no { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--muted); }
.project h3 { margin-top: 28px; font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; overflow-wrap: anywhere; }
.project h3 + p { margin-top: 12px; max-width: 40ch; color: var(--muted); }
.p-stack { margin-top: 20px; font-family: var(--mono); font-size: 0.75rem; }
.p-link {
  margin-top: auto;
  padding-top: 28px;
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  font-size: 0.875rem;
  text-decoration: none;
}
.p-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.is-soon h3, .is-soon .p-stack { color: var(--muted); }
.p-soon {
  margin-top: auto;
  padding-top: 24px;
  font-size: 1.6rem;
  color: var(--accent);
  transform: rotate(-3deg);
  transform-origin: left;
}

/* ---------- about ---------- */

.about-body {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px) var(--gut) clamp(56px, 7vw, 104px);
  border-top: var(--line);
}
.portrait-wrap { position: relative; max-width: 440px; }
.portrait { width: 100%; height: auto; overflow: visible; }
.portrait-wrap figcaption {
  position: absolute; right: 0; bottom: -9%;
  font-size: 1.6rem; color: var(--accent);
  transform: rotate(-5deg);
}

.about-lead {
  font-size: clamp(1.9rem, 3.6vw, 3.25rem);
  font-weight: 500;
  font-stretch: 90%;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.about-text > p:not(.about-lead) { margin-top: 24px; max-width: 54ch; font-size: 1.0625rem; }

.hl {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 0 0.12em;
  margin: 0 -0.06em;
}
/* Same box as the word; mask sized and placed to match the paint in ::before
   (114% x 110% of the box, starting 7% left and 6% down). */
.hl::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  padding: 0 0.12em;
  color: var(--ink-on-paint);
  -webkit-mask: url("assets/mark-solid.svg") 50% -60% / 114% 110% no-repeat;
  mask: url("assets/mark-solid.svg") 50% -60% / 114% 110% no-repeat;
}
.hl::before {
  content: "";
  position: absolute; inset: 6% -7% -16%;
  z-index: -1;
  background: var(--paint);
  -webkit-mask: url("assets/mark.svg") center / 100% 100% no-repeat;
  mask: url("assets/mark.svg") center / 100% 100% no-repeat;
}

.facts {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--line);
}
.facts div { padding: 14px 0; border-bottom: var(--line); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 2px; }

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

.contact { border-top: var(--line); }
.contact-inner {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0 24px;
  padding: clamp(48px, 6vw, 96px) var(--gut) clamp(56px, 7vw, 104px);
}
.contact-inner > :not(.idx) { grid-column: 2; }
.say {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.22em;
  font-size: clamp(4rem, 15vw, 14rem);
  font-weight: 500;
  font-stretch: 80%;
  letter-spacing: -0.05em;
  line-height: 0.82;
  text-transform: uppercase;
}
.say-hi { position: relative; display: inline-block; padding: 0 0.08em; }
/* The paint hangs 12% past each side of the word. */
.say-paint { position: absolute; top: 0; left: -12%; width: 124%; height: 100%; }
.say-band {
  position: absolute; inset: 0;
  background: var(--paint);
  -webkit-mask: url("assets/band.svg") 0 0 / 100% 100% no-repeat;
  mask: url("assets/band.svg") 0 0 / 100% 100% no-repeat;
}
/* Same box as the word underneath (12 / 124 and 100 / 124), same mask lined up with the band. */
.say-knock {
  position: absolute; top: 0; left: 9.6774%; width: 80.6452%; height: 100%;
  padding: 0 0.08em;
  white-space: nowrap;
  color: var(--ink-on-paint);
  -webkit-mask: url("assets/band-solid.svg") 50% 0 / 124% 100% no-repeat;
  mask: url("assets/band-solid.svg") 50% 0 / 124% 100% no-repeat;
}
.contact-note { margin-top: clamp(24px, 3vw, 40px); max-width: 42ch; color: var(--muted); font-size: 1.0625rem; }

.links { margin-top: 32px; border-top: var(--line); max-width: 860px; }
.links a {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: var(--line);
  text-decoration: none;
}
.l-k { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.l-v { font-size: clamp(1.15rem, 2.2vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.links a:hover .l-v { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* ---------- footer ---------- */

.foot { border-top: var(--line); }
.foot-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 20px var(--gut);
  font-size: 0.8125rem;
}
.foot-row a { text-decoration: none; }
.foot-row a:hover { text-decoration: underline; }
.foot-sig {
  font-family: var(--script);
  font-size: clamp(4.5rem, 14vw, 12rem);
  line-height: 1.1;
  color: var(--accent);
  text-align: center;
  padding: 0.05em var(--gut) 0.12em;
  user-select: none;
}

/* ---------- viewer (lightbox) ---------- */

.viewer {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--paper);
  color: var(--ink);
}
.viewer::backdrop { background: rgba(21, 19, 17, 0.4); }
.viewer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  height: 100%;
}
.viewer-stage {
  position: relative;
  display: grid; place-items: center;
  padding: clamp(20px, 4vw, 56px) clamp(56px, 6vw, 88px);
  min-height: 0;
  touch-action: pan-y;
}
.viewer-img {
  max-width: 100%;
  max-height: calc(100dvh - 2 * clamp(20px, 4vw, 56px));
  width: auto; height: auto;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 1px 1px rgba(21, 19, 17, 0.1), 0 24px 40px -24px rgba(21, 19, 17, 0.5);
}
.viewer-img.cutout {
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 22px 28px rgba(21, 19, 17, 0.22));
}
.v-nav {
  position: absolute; top: 50%;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: var(--line); border-radius: 50%;
  background: var(--paper);
  transform: translateY(-50%);
  cursor: pointer;
}
.v-nav:hover { background: var(--ink); color: var(--paper); }
.v-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.v-prev { left: clamp(8px, 1.4vw, 20px); }
.v-next { right: clamp(8px, 1.4vw, 20px); }

.viewer-side {
  display: flex; flex-direction: column;
  border-left: var(--line);
  padding: 20px clamp(20px, 2.4vw, 32px) 28px;
  overflow-y: auto;
}
.v-top { display: flex; justify-content: space-between; align-items: center; }
.v-count { font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.v-close {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  font-size: 0.875rem;
}
.v-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.v-date { margin-top: 40px; font-size: 0.8125rem; color: var(--muted); }
.v-title { margin-top: 8px; font-size: 1.75rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.v-text { margin-top: 14px; white-space: pre-line; color: var(--muted); }
.v-text:empty { display: none; }
.v-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.v-thumbs:empty { display: none; }
.v-thumbs button {
  width: 58px; height: 58px; padding: 0;
  border: 1px solid transparent;
  background: #fff;
  cursor: pointer;
  opacity: 0.55;
}
.v-thumbs button[aria-current="true"] { border-color: var(--ink); opacity: 1; }
.v-thumbs button:hover { opacity: 1; }
.v-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.v-thumbs img.cutout { object-fit: contain; padding: 3px; }
.v-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 22px; font-size: 0.8125rem; color: var(--muted); }
.v-tags:empty { display: none; }
.v-foot { margin-top: auto; padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.v-stats { font-size: 0.8125rem; color: var(--muted); }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: var(--line);
    display: none;
  }
  .top.open .nav { display: flex; }
  .nav a {
    padding: 14px var(--gut);
    font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em;
    border-top: var(--line);
    background: none;
  }
  .menu-btn { display: block; }
  .paint-hint { right: calc(var(--gut) + 44px); }

  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 640px; width: 100%; margin: 8px 0 36px auto; }

  .brushes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer-inner { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .viewer-side { border-left: 0; border-top: var(--line); max-height: 42dvh; }
  .viewer-img { max-height: calc(58dvh - 40px); }
  .v-date { margin-top: 16px; }
}

@media (max-width: 860px) {
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-head { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .sec-head .aside { grid-column: 2; text-align: left; }
  .contact-inner { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .about-body { grid-template-columns: 1fr; }
  .portrait-wrap { max-width: 380px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .frame { border-inline: 0; }
  .top { height: 60px; }
  .brand span { font-size: 1.85rem; }
  .top-icons { gap: 10px; }
  .picker { right: 12px; left: 12px; width: auto; }
  .paint-hint { top: 10px; font-size: 1.3rem; }

  .hero { padding-top: 40px; padding-bottom: 56px; }
  .hero h1 { font-size: 15.4vw; }
  .hero-art { margin: 12px 0 44px; }
  .sig { font-size: 17vw; left: 10%; }
  .note { font-size: 1.45rem; right: 2%; bottom: -30%; }
  .note .arrow { left: -46px; top: -46px; width: 50px; height: 40px; }

  .sec-head { grid-template-columns: 1fr; gap: 6px; }
  .sec-head .aside { grid-column: 1; }
  .idx { padding-top: 0; }

  .art-grid { grid-template-columns: 1fr; }
  .media-box { inset: 10% 12% 8%; }
  .brushes, .projects { grid-template-columns: 1fr; }
  .brush { min-height: 0; }

  .contact-inner { grid-template-columns: 1fr; }
  .contact-inner > :not(.idx) { grid-column: 1; }
  .contact-inner .idx { margin-bottom: 12px; }
  .say { font-size: 24vw; }
  .links a { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .l-k { grid-column: 1 / -1; }

  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { padding-right: 0; }


  .foot-row { flex-direction: column; }
  .viewer-stage { padding: 16px 12px; }
  .v-nav { width: 38px; height: 38px; top: auto; bottom: 12px; transform: none; }
  .v-prev { left: 12px; }
  .v-next { right: 12px; }
  .viewer-img { max-height: calc(58dvh - 80px); margin-bottom: 44px; }
}
