/* fonts live in the site itself, so nothing swaps or jumps while a page opens */
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: block; src: url('fonts/Lato-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: block; src: url('fonts/Lato-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Londrina Solid'; font-style: normal; font-weight: 400; font-display: block; src: url('fonts/LondrinaSolid-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Londrina Solid'; font-style: normal; font-weight: 900; font-display: block; src: url('fonts/LondrinaSolid-900.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

*, *::before, *::after {
  box-sizing: border-box;
  /* nothing can be selected or dragged */
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
img, a { -webkit-user-drag: none; }


:root {
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --line: rgba(255, 255, 255, 0.22);
  --ink: 4px;
  --display: "Londrina Solid", Impact, "Arial Narrow Bold", sans-serif;
  --shade: #5a5a5a;
}

html {
  scroll-behavior: smooth;
  background: #000;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

main, footer { position: relative; }

/* top bar */
.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem var(--pad);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  z-index: 30;
}
.bar .burger { filter: drop-shadow(2px 2px 0 #000) drop-shadow(-1px -1px 0 #000); }

/* hero */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem var(--pad) 4rem;
  position: relative;
  background: #000;
  overflow: hidden;
}
/* the camera: a huge image moved and scaled by script.js */
.cam { position: absolute; inset: 0; overflow: hidden; }
.cam img {
  position: absolute;
  left: 0; top: 0;
  width: 4092px;
  height: 2800px;
  max-width: none;
  transform-origin: 0 0;
  will-change: transform;
}

/* landing: everything simply fades in where it already is */
.cam { opacity: 0; }
html.loaded .cam { opacity: 1; transition: opacity 1.6s ease; }
/* subtle dark layer over the artwork, a little deeper toward the bottom left for the title */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 60%),
    rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 1;
}

/* title, bottom left */
.title {
  position: absolute;
  left: var(--pad);
  bottom: clamp(1.25rem, 4vw, 3rem);
  z-index: 2;
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(5rem, 17vw, 15rem);
  line-height: 0.82;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: left;
  color: #fff;
  text-shadow: 6px 6px 0 rgba(0, 0, 0, 0.55);
  opacity: 0;
}
html.loaded .title { opacity: 1; transition: opacity 1.4s ease 0.8s; }

/* scroll cue, bottom right: a vertical word with a line that keeps drawing down */
.scroll {
  position: absolute;
  right: var(--pad);
  bottom: clamp(1.25rem, 4vw, 3rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
  opacity: 0;
}
.scroll span { writing-mode: vertical-rl; transform: rotate(180deg); }
.scroll::after {
  content: "";
  width: 3px;
  height: clamp(3rem, 9vh, 5.5rem);
  background: #fff;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
  transform-origin: top;
  animation: scrollLine 2.4s cubic-bezier(.6, 0, .3, 1) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
html.loaded .scroll { opacity: 1; transition: opacity 1.2s ease 1.6s; }
.scroll:hover { opacity: 0.7; }

html.home .bar { opacity: 0; }
html.home.loaded .bar { opacity: 1; transition: opacity 1.2s ease 1.2s; }

@media (prefers-reduced-motion: reduce) {
  .cam, .title, .scroll, html.home .bar { opacity: 1; transition: none !important; }
  .scroll::after { animation: none; }
}

/* sections */
section:not(.hero) {
  padding: 9rem var(--pad);
  max-width: 1500px;
  margin: 0 auto;
}
h2 {
  white-space: nowrap;
  margin: 0 0 3rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  text-shadow: 5px 5px 0 var(--shade);
  transform: rotate(-2deg);
  transform-origin: left bottom;
}

/* 12 column comic page. every row is one column wide, so tile shapes match the art:
   portraits 4x6, squares 6x6, landscapes 6x4, splash 12x8 */
/* edge to edge, flush against the landing artwork above and the page below */
#work {
  container-type: inline-size;
  padding: 0;
  max-width: none;
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: calc(100cqw / 12);
  gap: 0;
}
.t2 { grid-area: 1 / 1 / 7 / 7; }
.t3 { grid-area: 1 / 7 / 5 / 13; }
.t4 { grid-area: 5 / 7 / 11 / 13; }
.t5 { grid-area: 7 / 1 / 11 / 7; }
.t1 { grid-area: 11 / 1 / 19 / 13; }      /* splash, full width, in the middle */
.t6 { grid-area: 19 / 1 / 25 / 5; }
.t7 { grid-area: 19 / 5 / 25 / 9; }
.t8 { grid-area: 19 / 9 / 25 / 13; }
/* second block: looping gifs and detail crops */
.t9  { grid-area: 25 / 1 / 33 / 9; }
.t10 { grid-area: 25 / 9 / 29 / 13; }
.t11 { grid-area: 29 / 9 / 33 / 13; }
.t12 { grid-area: 33 / 1 / 39 / 5; }
.t13 { grid-area: 33 / 5 / 39 / 9; }
.t14 { grid-area: 33 / 9 / 39 / 13; }
.t15 { grid-area: 39 / 1 / 47 / 5; }
.t16 { grid-area: 39 / 5 / 43 / 13; }
.t17 { grid-area: 43 / 5 / 47 / 9; }
.t18 { grid-area: 43 / 9 / 47 / 13; }

.grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #000;
}
/* the tiles never move: each picture just fades in where it is */
.grid .reveal { opacity: 1; transform: none; transition: none; }
.frame {
  position: absolute;
  inset: 0;
  transition: opacity 1.1s ease var(--d, 0s);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grid figure:not(.in) .frame { opacity: 0; }

/* hover: a dark see-through layer with the title; the whole tile is a link */
.over {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  outline: 0;
}
.over:hover, .over:focus-visible { opacity: 1; }
.over-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #000;
}
.over-cta {
  padding: 0.1rem 0.8rem 0;
  background: #fff;
  color: #000;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .grid figure:not(.in) .frame { opacity: 1; }
  .frame, .over { transition: none; }
}

/* shared comic panels: connected, thick white lines between them */
.spread { display: grid; grid-template-columns: repeat(12, 1fr); }
.panel {
  position: relative;
  margin: 0;
  padding: 3.4rem clamp(1.2rem, 2.4vw, 2.2rem) clamp(1.2rem, 2.4vw, 2rem);
  box-shadow: inset 0 0 0 calc(var(--ink) / 2) #fff;
  background: #000;
}
.cap {
  position: absolute;
  left: calc(var(--ink) / 2);
  top: calc(var(--ink) / 2);
  padding: 0.15rem 0.7rem 0.1rem;
  background: #fff;
  color: #000;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}

/* about */
.about-spread .p-portrait { grid-column: 1 / 5; grid-row: 1 / 3; padding: 0; min-height: 320px; overflow: hidden; }
.p-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-spread .p-bio   { grid-column: 5 / 13; grid-row: 1; }
.about-spread .p-stats { grid-column: 5 / 13; grid-row: 2; }
.about-spread .p-draw  { grid-column: 1 / 13; grid-row: 3; }
.p-draw .draw { display: flex; flex-wrap: wrap; gap: 0.4rem 2.4rem; }

.p-bio .lead {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-transform: uppercase;
}
.p-bio p:not(.lead) {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  opacity: 0.85;
}
.power { margin: 0 0 1.4rem; font-weight: 400; font-size: 1rem; opacity: 0.85; }

/* stand panel: an ink drawn radar, resilience and endless creativity */
.stand-body { display: grid; grid-template-columns: minmax(260px, 1.1fr) 1fr; gap: clamp(1rem, 3vw, 2.4rem); align-items: center; }
.radar { width: 100%; height: auto; max-height: 520px; overflow: visible; }
.rd-ring, .rd-axis { fill: none; stroke: #fff; stroke-width: 1.2; opacity: 0.28; stroke-linejoin: round; }
.rd-outer { stroke-width: 2.4; opacity: 0.75; }
.rd-endless { stroke-dasharray: 4 7; opacity: 0.8; }
.rd-fill { fill: rgba(255, 255, 255, 0.3); }
.rd-shade { opacity: 0.75; }
.rd-edge { fill: none; stroke: #fff; stroke-width: 3.6; stroke-linejoin: round; stroke-linecap: round; }
.rd-dot { fill: #fff; stroke: #000; stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.rd-label { font-family: var(--display); font-weight: 900; fill: #fff; letter-spacing: 0.08em; text-transform: uppercase; }
.rd-name { font-size: 15px; opacity: 0.8; }
.rd-grade { font-size: 30px; paint-order: stroke; stroke: var(--shade); stroke-width: 0; }
.rd-big { font-size: 46px; }
.rd-inf { filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9)); }

.powers { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.power-card { display: grid; gap: 0.45rem; }
.tag {
  justify-self: start;
  padding: 0.1rem 0.6rem 0;
  background: #fff;
  color: #000;
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.power-card h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--shade);
}
.power-card p { margin: 0; max-width: 34ch; font-weight: 400; font-size: 1rem; opacity: 0.85; }
.scribble { width: min(260px, 70%); height: 14px; overflow: visible; }
.scribble path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.inf { width: min(220px, 70%); height: auto; overflow: visible; }
.inf path { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }
.inf-base { stroke-width: 3; opacity: 0.35; }
.inf-run { stroke-width: 6; filter: drop-shadow(0 0 6px #fff); }

/* load-in: everything draws itself in place, in order */
@keyframes draw   { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fadeUp { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn  { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes runInf { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes glow   { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
/* resilience: a hit squashes the whole shape and it springs straight back */
@keyframes springBack {
  0%, 84%  { transform: none; }
  87%      { transform: scale(0.7, 0.82) rotate(-3deg); }
  91%      { transform: scale(1.1, 1.06) rotate(1.5deg); }
  94%      { transform: scale(0.97, 0.98); }
  97%, 100% { transform: none; }
}

.p-stats:not(.in) .rd-ring, .p-stats:not(.in) .rd-axis:not(.rd-endless), .p-stats:not(.in) .rd-edge,
.p-stats:not(.in) .scribble path, .p-stats:not(.in) .inf-base { stroke-dasharray: 1; stroke-dashoffset: 1; }
.p-stats:not(.in) .rd-fill, .p-stats:not(.in) .rd-shade, .p-stats:not(.in) .rd-dot, .p-stats:not(.in) .rd-label,
.p-stats:not(.in) .inf-run, .p-stats:not(.in) .power, .p-stats:not(.in) .power-card, .p-stats:not(.in) .cap { opacity: 0; }

.p-stats.in .rd-ring, .p-stats.in .rd-axis:not(.rd-endless) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--d, 0s) ease-out forwards; }
.p-stats.in .rd-edge { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s 1.2s ease-in-out forwards; }
.p-stats.in .rd-fill, .p-stats.in .rd-shade { animation: fadeUp 1.2s 2.2s ease both; }
.p-stats.in .rd-dot { animation: popIn 0.5s var(--d, 0s) cubic-bezier(.3, 1.6, .5, 1) both; }
.p-stats.in .rd-label { animation: fadeUp 0.8s var(--d, 0s) ease both; }
.p-stats.in .rd-body { transform-origin: 220px 220px; animation: springBack 7s 4.5s infinite; }
.p-stats.in .rd-inf { animation: fadeUp 0.8s 2.6s ease both, glow 2.4s 3.4s ease-in-out infinite; }
.p-stats.in .cap, .p-stats.in .power { animation: fadeUp 0.9s ease both; }
.p-stats.in .power { animation-delay: 0.2s; }
.p-stats.in .power-card:nth-child(1) { animation: fadeUp 0.9s 0.6s ease both; }
.p-stats.in .power-card:nth-child(2) { animation: fadeUp 0.9s 1.1s ease both; }
.p-stats.in .scribble path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s 1.4s ease-out forwards; }
.p-stats.in .inf-base { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s 1.8s ease-in-out forwards; }
.p-stats.in .inf-run { stroke-dasharray: 0.16 0.84; animation: runInf 3.2s 4s linear infinite both; }

@media (prefers-reduced-motion: reduce) {
  .p-stats *, .p-stats { animation: none !important; transition: none !important; }
  .p-stats:not(.in) * { stroke-dashoffset: 0 !important; opacity: initial !important; }
  .inf-run { stroke-dasharray: none; opacity: 0.6; }
}
@media (max-width: 800px) { .stand-body { grid-template-columns: 1fr; } }

/* simple lists in panels */
.draw { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.2rem; }
.draw li {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.15;
}
.draw li::before { content: "\203A  "; color: var(--shade); }

/* contact */
.contact-spread .c-intro { grid-column: 1 / 7; display: flex; flex-direction: column; gap: 1.6rem; justify-content: space-between; }
.contact-spread .c-form  { grid-column: 7 / 13; display: grid; gap: 1.1rem; align-content: start; }
.c-line {
  margin: 0.6rem 0 0;
  max-width: 18ch;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 4rem);
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--shade);
}
.big {
  align-self: flex-start;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4.2vw, 3.6rem);
  letter-spacing: 0.04em;
  text-shadow: 3px 3px 0 var(--shade);
  border-bottom: var(--ink) solid #fff;
  transition: background 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}
.big:hover { background: #fff; color: #000; text-shadow: none; }

.c-form label, .c-form .field {
  display: grid;
  gap: 0.35rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* the form is the one place where text must be selectable and typeable */
.c-form input, .c-form textarea {
  -webkit-user-select: text;
  user-select: text;
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: #000;
  color: #fff;
  caret-color: #fff;
  border: 3px solid #fff;
  border-radius: 0;
  font: 700 1rem/1.4 'Lato', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.c-form textarea { resize: vertical; min-height: 8rem; }
.c-form input:focus, .c-form textarea:focus { outline: 0; }
.form-row { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.c-form button {
  padding: 0.5rem 1.8rem 0.35rem;
  background: #fff;
  color: #000;
  border: 3px solid #fff;
  border-radius: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.c-form button:hover, .c-form button:focus-visible { background: #000; color: #fff; outline: 0; }
.form-note { font-family: var(--display); font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 800px) {
  .about-spread .p-portrait,
  .about-spread .p-bio,
  .about-spread .p-stats,
  .about-spread .p-draw,
  .contact-spread .c-intro,
  .contact-spread .c-form { grid-column: 1 / -1; grid-row: auto; }
  .about-spread .p-portrait { min-height: 0; aspect-ratio: 1; }
}

/* footer: the closing page of the comic */
footer {
  max-width: 1500px;
  margin: 0 auto;
  padding: 3rem var(--pad) 2rem;
}
.foot-word {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.5rem;
  overflow: visible;
}
.foot-word text { font-family: var(--display); font-weight: 900; font-size: 340px; }
.foot-word .shade { fill: var(--shade); }
.foot-word .face { fill: #fff; }

.foot-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: var(--ink) solid #fff;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.foot-meta span:last-child { opacity: 0.6; }

/* scroll reveal: fade in place */
.reveal { opacity: 0; transition: opacity 1s ease; }
.reveal.in { opacity: 1; }

@media (max-width: 600px) {
  section:not(.hero) { padding: 6rem var(--pad); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transition: none; }
}

/* hamburger */
.burger {
  position: relative;
  width: 44px;
  height: 44px;
  margin: -10px -10px -10px auto;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 9px;
  width: 26px;
  height: 3px;
  background: #fff;
  transition: transform 0.45s cubic-bezier(.2, .7, .2, 1), opacity 0.2s ease, width 0.3s ease;
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 20.5px; }
.burger span:nth-child(3) { top: 28px; }
.burger:hover span:nth-child(2) { width: 14px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.burger:focus-visible { outline: 1px solid #fff; outline-offset: 2px; }

/* full-screen grid menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.menu.open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.menu a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5.5rem var(--pad) 2rem;
  overflow: hidden;
  background: #000;
  transform: translateY(2rem);
  opacity: 0;
  transition: background 0.3s ease, color 0.3s ease,
              transform 0.7s cubic-bezier(.2, .7, .2, 1), opacity 0.7s ease;
}
.menu.open a { transform: none; opacity: 1; }
.menu.open a:nth-child(2) { transition-delay: 0s, 0s, 0.07s, 0.07s; }
.menu.open a:nth-child(3) { transition-delay: 0s, 0s, 0.14s, 0.14s; }
.menu a span {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.4vw, 6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.m-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: brightness(0.5);
  transition: filter 0.5s ease;
}
.menu a span {
  position: relative;
  z-index: 1;
  text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}
.menu a:hover .m-img, .menu a:focus-visible .m-img { filter: brightness(0.95); }
.menu a:focus-visible { outline: 0; }

@media (max-width: 700px) {
  .menu { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); }
  .menu a span { font-size: clamp(3rem, 18vw, 6rem); }
  .menu a { padding-top: 1.5rem; }
  .menu a:first-child { padding-top: 5.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .menu, .menu a, .burger span { transition: none; }
}

/* artwork page: the picture on the left, a page of things to look at on the right */
section.art {
  padding: 0;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 29vw, 460px);
  height: 100vh;
  height: 100svh;
  min-height: 560px;
}
/* two rows: the picture on top, the buttons below. the picture is clipped to the middle row,
   so it can never slide under a button */
.art-main { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; padding-top: 4.2rem; }
.art-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 1.4rem 1rem; }
/* free roam: the stage fills the whole area, the picture is moved and scaled by script.js */
.art-stage { position: relative; min-height: 0; overflow: hidden; cursor: grab; touch-action: none; }
.art-stage.drag { cursor: grabbing; }
.art-img {
  position: absolute;
  left: 0; top: 0;
  max-width: none;
  max-height: none;
  transform-origin: 0 0;
  will-change: transform;
  opacity: 0;
  pointer-events: none;
}
.art-img.ready { opacity: 1; transition: opacity 0.5s ease; }
.art-img.ready.glide { transition: opacity 0.5s ease, transform 0.85s cubic-bezier(.2, .7, .2, 1); }
.art-hint {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.6s ease;
}
.art-hint.gone { opacity: 0; }
.art-zoom { display: flex; gap: 0.5rem; }
.art-zoom .art-btn { cursor: pointer; border: 0; min-width: 2.6rem; text-align: center; }
.art-btn {
  display: inline-block;
  padding: 0.2rem 0.9rem 0;
  background: #fff;
  color: #000;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.art-btn:hover, .art-btn:focus-visible { background: #000; color: #fff; outline: 2px solid #fff; }
.art-nav { display: flex; gap: 0.6rem; }

.art-side {
  position: relative;
  overflow-y: auto;
  padding: 3.6rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: inset calc(var(--ink) / 2) 0 0 #fff;
  scrollbar-width: none;
}
.art-side::-webkit-scrollbar { display: none; }
.art-side .cap { top: calc(var(--ink) / 2); }
.art-title {
  margin: 0.8rem 0 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--shade);
}
.art-desc { margin: 0; font-weight: 400; font-size: 0.95rem; opacity: 0.85; }
.art-side .tag { margin-top: 0.4rem; }
.art-details { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.thumb {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background-color: #111;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
}
.thumb::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px transparent; transition: box-shadow 0.2s ease; pointer-events: none; }
.thumb:hover::after, .thumb:focus-visible::after, .thumb.on::after { box-shadow: inset 0 0 0 3px #fff; }
.thumb:focus-visible { outline: 0; }
.detail { aspect-ratio: 4 / 3; background-repeat: no-repeat; }
.detail span {
  position: absolute;
  left: 0; bottom: 0;
  padding: 0.1rem 0.5rem 0;
  background: #fff;
  color: #000;
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 850px) {
  section.art { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .art-main { height: 72vh; height: 72svh; }
  .art-side { overflow: visible; box-shadow: inset 0 calc(var(--ink) / 2) 0 #fff; padding-top: 3.4rem; }
  .art-side .cap { top: 2.5px; }
  .art-title { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .art-img.ready, .art-img.ready.glide { transition: none; } }

/* page sweep: a white container comes in from off canvas, covers the screen, and leaves the other side */
.sweep {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  background: #fff;
  color: #000;
  pointer-events: none;
  will-change: transform;
  transform: translateX(100%);
}
.sweep span {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 11vw, 10rem);
  letter-spacing: 0.04em;
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
  padding: 0 var(--pad);
}

/* about fits on one desktop screen, no scrolling inside it:
   portrait | stand panel | bio in one row, the "what gets drawn" strip under them */
@media (min-width: 901px) and (min-height: 540px) {
  section.about {
    height: 100vh;
    height: 100svh;
    min-height: 540px;
    max-width: 1800px;
    padding: clamp(3.6rem, 8vh, 5rem) var(--pad) clamp(0.8rem, 2vh, 1.4rem);
    display: flex;
    flex-direction: column;
  }
  .about h2 { font-size: clamp(2.4rem, 7vh, 4.4rem); margin: 0 0 clamp(0.5rem, 1.4vh, 1rem); }
  .about-spread { flex: 1; min-height: 0; grid-template-rows: 1fr auto; }
  .about-spread .panel { min-height: 0; overflow: hidden; padding-top: 3rem; padding-bottom: 0.9rem; }
  .about-spread .p-portrait { grid-column: 1 / 4;   grid-row: 1; padding: 0; }
  .about-spread .p-stats    { grid-column: 4 / 10;  grid-row: 1; display: flex; flex-direction: column; justify-content: center; }
  .about-spread .p-bio      { grid-column: 10 / 13; grid-row: 1; }
  .about-spread .p-draw     { grid-column: 1 / 13;  grid-row: 2; padding: 0.7rem 1.4rem 0.7rem 12.5rem; display: flex; align-items: center; }

  .about-spread .p-bio { display: flex; flex-direction: column; justify-content: center; }
  .p-bio .lead { font-size: clamp(1.2rem, 1.9vw, 2.1rem); margin-bottom: 0.8rem; }
  .p-bio p:not(.lead) { font-size: clamp(0.88rem, 1.1vw, 1.1rem); }

  .stand-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(0.8rem, 1.6vw, 1.6rem); }
  .radar { width: min(100%, clamp(170px, 42vh, 420px)); height: auto; aspect-ratio: 1; max-height: none; justify-self: center; }
  .powers { grid-template-columns: 1fr; gap: clamp(0.5rem, 1.6vh, 1rem); }
  .power-card { gap: 0.25rem; }
  .power-card h3 { font-size: clamp(1.5rem, 2.6vw, 2.8rem); }
  .power-card p { font-size: clamp(0.85rem, 1vw, 1rem); max-width: 36ch; }
  .tag { font-size: 0.85rem; }
  .inf { width: min(clamp(100px, 11vw, 170px), 70%); }
  .scribble { width: min(220px, 80%); height: 12px; }
  .powers { gap: clamp(0.8rem, 2.6vh, 1.6rem); }

  .p-draw .cap { top: 50%; transform: translateY(-50%); }
  .p-draw .draw { flex-wrap: nowrap; gap: 0.3rem clamp(1rem, 2vw, 2.2rem); }
  .p-draw .draw li { font-size: clamp(1rem, 1.5vw, 1.4rem); white-space: nowrap; }
}

/* loading page: the word fills with ink as the pictures arrive */
html.loading { overflow: hidden; }
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
html:not(.loading) .loader { opacity: 0; visibility: hidden; pointer-events: none; }
.ld-cap { left: var(--pad); top: 1.4rem; }
.ld-word {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(6rem, 29vw, 27rem);
  line-height: 0.8;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.07em 0.04em 0.05em;
  color: transparent;
  -webkit-text-stroke: clamp(2px, 0.35vw, 5px) #fff;
  background: linear-gradient(to top, #fff calc(var(--p, 0) * 1%), rgba(255, 255, 255, 0) calc(var(--p, 0) * 1%));
  -webkit-background-clip: text;
  background-clip: text;
}
.ld-foot {
  position: absolute;
  left: var(--pad); right: var(--pad); bottom: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ld-foot > span:first-child { font-size: 1.2rem; opacity: 0.8; }
.ld-pct { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 0.85; letter-spacing: 0.04em; text-shadow: 4px 4px 0 var(--shade); }
@media (prefers-reduced-motion: reduce) { .loader { transition: none; } }

/* arriving from another page: a white cover (carrying the page name) is already in place before anything paints */
html.arriving::before {
  content: var(--sw);
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 0 var(--pad);
  background: #fff;
  color: #000;
  font-family: "Londrina Solid", Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 11vw, 10rem);
  letter-spacing: 0.04em;
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
}

/* each page on its own */
.page-contact .contact { min-height: 100vh; min-height: 100svh; }

/* about and contact fill the screen on desktop, so the footer is for mobile only there */
@media (min-width: 901px) {
  .page-about footer, .page-contact footer { display: none; }
}

/* custom dropdown for the topic: same look as the fields, no animation */
.dd { position: relative; }
.c-form .dd-btn,
.c-form .dd-btn:hover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: #000;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 0;
  font: 700 1rem/1.4 'Lato', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  transition: none;
}
.c-form .dd-btn:focus { outline: 0; background: #000; color: #fff; }
.c-form .dd-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.dd-arrow { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 9px solid #fff; }
.dd.open .dd-arrow { border-top: 0; border-bottom: 9px solid #fff; }
.dd-list {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  z-index: 10;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #000;
  border: 3px solid #fff;
  border-top: 0;
}
.dd.open .dd-list { display: block; }
.dd-list li {
  position: relative;
  padding: 0.7rem 0.9rem 0.7rem 2rem;
  font: 700 1rem/1.4 'Lato', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.dd-list li[aria-selected="true"]::before { content: "\203A"; position: absolute; left: 0.9rem; font-family: var(--display); font-weight: 900; font-size: 1.3rem; line-height: 1.1; }
.dd-list li:hover, .dd-list li:focus { background: #fff; color: #000; outline: 0; }

/* ================= mobile ================= */
@media (max-width: 700px) {
  /* the bento grid becomes a four column grid with bigger tiles, same connected look */
  .grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: calc(100cqw / 4); }
  .t2  { grid-area: 1 / 1 / 5 / 5; }
  .t3  { grid-area: 5 / 1 / 8 / 5; }
  .t4  { grid-area: 8 / 1 / 12 / 5; }
  .t5  { grid-area: 12 / 1 / 15 / 5; }
  .t1  { grid-area: 15 / 1 / 18 / 5; }
  .t6  { grid-area: 18 / 1 / 21 / 3; }
  .t7  { grid-area: 18 / 3 / 21 / 5; }
  .t8  { grid-area: 21 / 1 / 24 / 3; }
  .t12 { grid-area: 21 / 3 / 24 / 5; }
  .t13 { grid-area: 24 / 1 / 27 / 3; }
  .t14 { grid-area: 24 / 3 / 27 / 5; }
  .t9  { grid-area: 27 / 1 / 31 / 5; }
  .t10 { grid-area: 31 / 1 / 33 / 3; }
  .t11 { grid-area: 31 / 3 / 33 / 5; }
  .t15 { grid-area: 33 / 1 / 37 / 3; }
  .t17 { grid-area: 33 / 3 / 35 / 5; }
  .t18 { grid-area: 35 / 3 / 37 / 5; }
  .t16 { grid-area: 37 / 1 / 39 / 5; }
  .over-title { font-size: clamp(1.3rem, 5.5vw, 2rem); }

  /* top bar and hero */
  .bar { padding: 1rem var(--pad); font-size: 1.4rem; }
  .title { font-size: clamp(4.5rem, 26vw, 9rem); bottom: 1.4rem; }

  /* about and contact */
  section:not(.hero) { padding: 5.2rem var(--pad) 3rem; }
  h2 { font-size: clamp(2.2rem, 11vw, 3.4rem); margin-bottom: 1.4rem; }
  .panel { padding: 3rem 1.1rem 1.2rem; }
  .about-spread .p-portrait { aspect-ratio: 1; }
  .p-bio .lead { font-size: 1.5rem; }
  .p-draw .draw li { font-size: 1.35rem; }
  .stand-body { grid-template-columns: 1fr; }
  .radar { width: min(100%, 360px); margin: 0 auto; }
  .powers { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .power-card h3 { font-size: 1.7rem; }
  .power-card p { font-size: 0.85rem; }
  .c-line { font-size: 2.3rem; }
  .big { font-size: clamp(1.4rem, 8vw, 2.4rem); word-break: break-all; }
  .form-row { gap: 0.8rem; }

  /* footer */
  footer { padding: 2rem var(--pad) 1.4rem; }
  .foot-meta { flex-direction: column; gap: 0.4rem; font-size: 0.95rem; }

  /* loading page */
  .ld-word { font-size: clamp(5rem, 34vw, 12rem); }

  /* sweep label */
  .sweep span, html.arriving::before { font-size: clamp(2.6rem, 14vw, 5rem); }

  /* artwork page */
  .art-main { height: 72vh; height: 72svh; padding-top: 3.6rem; }
  .art-bottom { padding: 0.55rem 0.9rem 0.8rem; }
  .art-btn { font-size: 1.05rem; padding: 0.25rem 0.7rem 0.1rem; }
  .art-hint { display: none; }
  .art-side { padding: 3.6rem 1rem 1.6rem; }
  .art-details { grid-template-columns: 1fr 1fr; }

  /* the menu */
  .menu a { padding-left: 1.2rem; padding-right: 1.2rem; }
}

/* small phones */
@media (max-width: 380px) {
  .powers { grid-template-columns: 1fr; }
  .art-btn { font-size: 0.95rem; padding: 0.25rem 0.55rem 0.1rem; }
}
