:root {
  color-scheme: dark;
  --paper: #0c090b;
  --ink: #f5eff0;
  --muted: #c0b4b7;
  --line: #382a2f;
  --accent: #e31b36;
  --mono: "DM Mono", monospace;
  --sans: "Space Grotesk", sans-serif;
  --serif: "Space Grotesk", sans-serif;
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.ambient {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.ambient span {
  position: absolute;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 8, 28, 0.12), transparent 68%);
  filter: blur(34px);
  animation: ambient-drift 28s ease-in-out infinite alternate;
}
.ambient span:first-child {
  top: -24vw;
  left: -24vw;
}
.ambient span:last-child {
  right: -27vw;
  bottom: -28vw;
  animation-delay: -14s;
}
.corner-caution {
  position: fixed;
  z-index: 2;
  display: grid;
  width: 240px;
  height: 32px;
  place-items: center;
  overflow: hidden;
  border: 2px solid #0c090b;
  background: repeating-linear-gradient(
    135deg,
    #0c090b 0 10px,
    #e31b36 10px 20px
  );
  color: #0c090b;
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.08em;
  white-space: nowrap;
  pointer-events: none;
}
.corner-caution span {
  width: 82%;
  padding: 6px 0;
  border-block: 1px solid #0c090b;
  background: #e31b36;
  text-align: center;
}
.corner-caution--top {
  top: 26px;
  right: -72px;
  transform: rotate(45deg);
}
.corner-caution--bottom {
  bottom: 26px;
  left: -72px;
  transform: rotate(45deg);
}
@keyframes ambient-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(0.92); opacity: 0.6; }
  to { transform: translate3d(5%, 4%, 0) scale(1.08); opacity: 1; }
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection {
  background: var(--accent);
  color: var(--paper);
}
.shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 80px));
  margin: auto;
}
.topbar {
  position: relative;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  animation: settle-in 0.55s both;
}
.brand {
  font: 500 14px var(--mono);
  letter-spacing: 0.04em;
}
.brand span {
  color: var(--accent) !important;
}
.brand b {
  font-weight: 400;
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font: 11px var(--mono);
  color: var(--muted);
  text-transform: uppercase;
}
.nav a span {
  color: var(--accent);
}
.nav a:not(.nav-contact) {
  padding: 9px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav a:not(.nav-contact):hover {
  border-color: var(--accent);
}
.nav-contact {
  border: 1px solid var(--accent);
  padding: 8px 13px;
  border-radius: 2px;
  color: var(--accent);
}
.nav-toggle {
  display: none;
}
.hero {
  min-height: 625px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 30px;
  padding: 60px 0 84px !important;
  border: 0 !important;
}
.hero-copy > * {
  animation: rise-in 0.65s both;
}
.hero-copy > *:nth-child(2) {
  animation-delay: 0.08s;
}
.hero-copy > *:nth-child(3) {
  animation-delay: 0.16s;
}
.hero-copy > *:nth-child(4) {
  animation-delay: 0.24s;
}
.hero-copy > *:nth-child(5) {
  animation-delay: 0.32s;
}
.art {
  animation: portrait-in 0.9s 0.15s both;
}
.eyebrow,
.section-kicker {
  font: 11px var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  font: 600 clamp(76px, 11vw, 142px)/0.86 var(--serif);
  letter-spacing: -0.075em;
  margin: 19px 0 23px;
}
.hero h2 {
  font: 500 clamp(24px, 3.4vw, 38px)/1.2 var(--sans);
  letter-spacing: -0.055em;
  color: #ff4058;
  margin: 0 0 21px;
}
.hero p {
  max-width: 500px;
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}
.hero p strong {
  color: var(--ink);
  font-weight: 600;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 29px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 11px 15px;
  color: var(--paper);
  background: var(--accent);
  font: 11px var(--mono);
  text-transform: uppercase;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.button:hover {
  background: #ff304b;
  color: #0c090b;
  transform: translateY(-2px);
}
.button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.button.secondary:hover {
  background: #241116;
  border-color: var(--accent);
  color: var(--accent);
}
.art {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
  cursor: crosshair;
  outline: none;
  isolation: isolate;
}
.art pre {
  position: relative;
  margin: 0;
  color: var(--accent);
  font: clamp(11px, 1.35vw, 15px)/0.9 var(--mono);
  white-space: pre;
  letter-spacing: 0.01em;
  text-shadow: 0 0 18px rgba(227, 27, 54, 0.3);
  user-select: none;
  transition: color 0.3s;
}
.art pre.ascii-fallback {
  max-width: 18ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  text-shadow: none;
  white-space: normal;
}
.ascii-row {
  display: block;
  height: 0.9em;
  white-space: pre;
}
.ascii-glyph {
  display: inline-block;
  width: 1ch;
  transform-origin: 50% 75%;
}
.ascii-glyph--accent {
  color: #ff304b;
  text-shadow: 0 0 12px rgba(227, 27, 54, 0.5);
}
.art:hover pre,
.art:focus-visible pre {
  color: #ff4058;
  text-shadow: 0 0 20px rgba(227, 27, 54, 0.55);
}
.art:focus-visible {
  outline: 1px dashed var(--accent);
  outline-offset: 10px;
}
section {
  padding: 58px 0 78px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 29px;
}
.section-head h2 {
  font: 600 31px var(--serif);
  letter-spacing: -0.04em;
  margin: 0;
}
.section-head .rule {
  height: 1px;
  max-width: 300px;
  flex: 1;
  background: var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 70px;
}
.about-copy {
  color: var(--muted);
  max-width: 660px;
}
.about-copy p {
  margin: 0 0 16px;
}
.about-copy strong {
  color: var(--ink);
  font-weight: 600;
}
.stack-title {
  font: 10px var(--mono);
  color: var(--accent);
  text-transform: uppercase;
  margin: 5px 0 13px;
}
.stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 15px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font: 11px/1.5 var(--mono);
}
.stack li:before {
  content: "↳ ";
  color: var(--accent);
}
.section-intro {
  max-width: 600px;
  margin: -11px 0 28px;
  color: var(--muted);
  font-size: 14px;
}
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.focus-card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(227, 27, 54, 0.055), transparent 65%), #100d0f;
}
.focus-index {
  color: var(--accent);
  font: 9px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.focus-card h3 {
  max-width: 270px;
  margin: 18px 0 15px;
  font: 500 20px/1.3 var(--sans);
  letter-spacing: -0.035em;
}
.focus-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font: 10px/1.5 var(--mono);
  list-style: none;
}
.focus-card li::before {
  content: "+ ";
  color: var(--accent);
}
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 17px;
}
.project-featured {
  max-width: none;
}
.project-group-title {
  margin: 0 0 15px;
  color: var(--ink);
  font: 500 18px var(--sans);
  letter-spacing: -0.025em;
}
.project-group-secondary {
  margin-top: 44px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}
.brand-section .section-head {
  margin-bottom: 18px;
}
.brand-section {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding-bottom: 28px;
}
.brand-viewport {
  display: flex;
  min-height: 94px;
  margin: auto 0;
  align-items: center;
  overflow: hidden;
  padding: 16px 0;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brand-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: brand-scroll 36s linear infinite;
  will-change: transform;
}
.brand-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(34px, 5vw, 68px);
  padding-right: clamp(34px, 5vw, 68px);
}
.brand-group img {
  display: block;
  width: auto;
  max-width: 170px;
  height: 44px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.72;
  transition: opacity 0.2s ease;
}
.brand-section:hover .brand-track {
  animation-play-state: paused;
}
.brand-section:hover .brand-group img {
  opacity: 1;
}
@keyframes brand-scroll {
  to { transform: translateX(-50%); }
}
.art-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px;
  align-items: start;
}
.art-piece {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #100d0f;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.art-piece:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 27, 54, 0.7);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}
.art-piece.is-loading::before {
  position: absolute;
  z-index: 1;
  inset: 0 0 40px;
  content: "";
  background:
    radial-gradient(ellipse at 28% 24%, rgba(227, 27, 54, 0.32), transparent 48%),
    radial-gradient(ellipse at 72% 75%, rgba(120, 70, 80, 0.28), transparent 52%),
    linear-gradient(135deg, #21171b, #100d0f 55%, #2b171d);
  filter: blur(14px);
  animation: art-placeholder-pulse 1.8s ease-in-out infinite alternate;
  pointer-events: none;
}
.art-image-link {
  display: block;
}
.art-image-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
@keyframes art-placeholder-pulse {
  from { opacity: 0.65; }
  to { opacity: 1; }
}
.art-piece img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  padding: 10px;
  background: radial-gradient(ellipse at 50% 45%, #20171a, #0c090b 74%);
  transition: filter 0.5s ease, transform 0.5s ease, opacity 0.35s ease;
}
.art-piece.is-loading img {
  opacity: 0;
  filter: blur(14px);
}
.art-piece:hover img {
  background: radial-gradient(ellipse at 50% 45%, #29191e, #0c090b 74%);
}
.art-piece.is-error::before {
  animation: none;
}
.art-piece figcaption {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  color: var(--muted);
}
.art-number {
  color: var(--accent);
  font: 9px var(--mono);
}
.art-piece figcaption strong {
  flex: 1;
  color: var(--ink);
  font: 500 11px/1.35 var(--sans);
}
.art-arrow {
  color: var(--muted);
  font: 12px var(--mono);
  opacity: 0.55;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.art-piece:hover .art-arrow {
  color: var(--accent);
  opacity: 1;
  transform: translate(2px, -2px);
}
.art-source {
  margin-top: 18px;
  color: var(--accent);
  font: 10px var(--mono);
}
.art-source a:hover {
  color: var(--ink);
}
.web-projects {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.project-card {
  min-width: 0;
  min-height: 305px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #120e10;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: #181114;
}
.project-card-featured {
  grid-column: auto;
  border-color: rgba(227, 27, 54, 0.58);
  background: linear-gradient(125deg, rgba(227, 27, 54, 0.075), transparent 65%), #120e10;
}
.project-card-meta {
  min-height: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 19px;
}
.project-type,
.project-status {
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.project-type { color: var(--accent); }
.project-status { text-align: right; }
.project-card h3 {
  margin: 0 0 10px;
  font: 600 22px/1.2 var(--sans);
  letter-spacing: -0.04em;
}
.project-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.project-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 2px 0 14px;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--ink);
  font: 10px/1.5 var(--mono);
}
.project-highlights li::before {
  content: "↳ ";
  color: var(--accent);
}
.project-card .project-caveat {
  margin-top: auto;
  padding: 9px 10px;
  border-left: 2px solid var(--accent);
  color: #d0c3c6;
  background: rgba(227, 27, 54, 0.055);
  font-size: 11px;
}
.project-card-featured .project-caveat { margin-top: 0; }
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font: 9px var(--mono);
  text-transform: uppercase;
}
.project-card-featured .project-actions { margin-top: 14px; }
.project-actions a { color: var(--ink); }
.project-actions a::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin-top: 4px;
  background: var(--accent);
  transition: width 0.2s ease;
}
.project-actions a:hover { color: var(--accent); }
.project-actions a:hover::after { width: 100%; }
.card {
  min-height: 320px;
  background: #120e10;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 2px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(190px, 0.85fr);
  gap: 26px;
  align-items: stretch;
  transition:
    transform 0.22s,
    border-color 0.22s,
    background 0.22s;
}
.card:hover {
  transform: translateY(-5px);
  background: #181114;
  border-color: var(--accent);
}
.project-preview {
  grid-column: 1 / -1;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid #202631;
  border-radius: 8px;
  color: #f5f7fa;
  background:
    radial-gradient(circle at 80% 10%, rgba(50, 120, 255, 0.12), transparent 36%),
    #07090d;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.preview-brand { font-weight: 800; }
.preview-brand i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #4d9dff;
  box-shadow: 0 0 12px rgba(77, 157, 255, 0.8);
}
.preview-status,
.preview-kicker,
.preview-label,
.preview-note {
  color: #788494;
  font: 9px var(--mono);
  letter-spacing: 0.12em;
}
.preview-status b,
.preview-kicker { color: #4d9dff; }
.preview-content {
  width: min(610px, calc(100% - 48px));
  margin: 35px auto;
}
.preview-content h3 {
  margin: 0;
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.preview-content > p {
  margin: 12px 0 24px;
  color: #9ba6b5;
  font-size: 12px;
}
.preview-label { display: block; margin-bottom: 8px; }
.preview-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 5px 5px 5px 14px;
  border: 1px solid #202631;
  border-radius: 7px;
  color: #c6d0df;
  background: #0d1118;
  font: 11px var(--mono);
}
.preview-scan {
  padding: 10px 14px;
  border-radius: 5px;
  color: white;
  background: #256fe8;
  font-weight: 600;
}
.preview-note { display: block; margin-top: 9px; font-size: 8px; letter-spacing: 0.02em; }
.card-links a,
.stack li,
.project-flow li {
  transition:
    color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.stack li:hover,
.project-flow li:hover {
  color: var(--ink);
  transform: translateX(4px);
}
.reveal-ready {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes settle-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes portrait-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.project-copy {
  display: flex;
  flex-direction: column;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}
.project-index,
.detail-label {
  font: 9px var(--mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.card-links {
  display: flex;
  gap: 14px;
  font: 13px var(--mono);
  color: var(--accent);
}
.card-links a {
  font-size: 10px;
  text-transform: uppercase;
}
.card h3 {
  font: 600 20px/1.28 var(--serif);
  margin: 0 0 11px;
  letter-spacing: -0.03em;
}
.card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
}
.project-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.project-flow {
  list-style: none;
  display: grid;
  gap: 0;
  padding: 0;
  margin: 13px 0 0;
}
.project-flow li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: 11px var(--mono);
}
.project-flow li span {
  color: var(--accent);
  font-size: 9px;
}
.project-note {
  margin: auto 0 0 !important;
  padding-top: 20px;
  color: var(--muted);
  font: 9px/1.6 var(--mono) !important;
}
.tags {
  margin-top: auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font: 9px var(--mono);
  color: #c0adb1;
  text-transform: uppercase;
}
.ctf-copy {
  margin: -11px 0 22px;
  color: var(--muted);
  font-size: 13px;
}
/* UMER{the_answer_is_in_the_style} */
.ctf-form {
  position: relative;
  max-width: 560px;
}
.ctf-label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ctf-entry {
  display: flex;
  gap: 10px;
}
.ctf-entry input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 11px 13px;
  background: #100d0f;
  color: var(--ink);
  font: 12px var(--mono);
}
.ctf-entry input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.ctf-entry input::placeholder {
  color: #887b7f;
}
.ctf-feedback {
  min-height: 1.7em;
  margin: 10px 0 0;
  color: var(--muted);
  font: 11px/1.6 var(--mono);
}
.ctf-feedback[data-state="success"] {
  color: #ff4058;
  animation: ctf-win 0.45s ease-out both;
}
.ctf-form.is-solved .ctf-entry input {
  border-color: var(--accent);
  box-shadow: 0 0 22px rgba(227, 27, 54, 0.18);
}
.ctf-confetti {
  position: absolute;
  top: 67%;
  left: 50%;
  pointer-events: none;
}
.ctf-confetti-piece {
  position: absolute;
  width: 7px;
  height: 11px;
  border-radius: 1px;
  background: var(--accent);
  animation: ctf-burst 1s cubic-bezier(0.16, 0.72, 0.26, 1) forwards;
}
.ctf-confetti-piece:nth-child(3n) {
  background: #f5eff0;
}
.ctf-confetti-piece:nth-child(3n + 1) {
  background: #a80f28;
}
@keyframes ctf-burst {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0);
  }
  to {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0.45) rotate(var(--turn));
  }
}
@keyframes ctf-win {
  0% { transform: scale(0.94); }
  70% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.contact {
  text-align: center;
  padding: 82px 0 100px;
}
.contact .section-kicker {
  display: block;
  margin-bottom: 13px;
}
.contact h2 {
  font: 600 clamp(45px, 7vw, 72px)/1.1 var(--serif);
  letter-spacing: -0.06em;
  margin: 0 0 14px;
}
.contact p {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 27px;
}
.contact .button {
  margin: auto;
}
.contact .contact-email {
  margin: 12px auto 0;
  font: 11px var(--mono);
  color: var(--muted);
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 24px;
  font: 10px var(--mono);
  text-transform: uppercase;
}
.social-links a {
  color: var(--muted);
  transition: color 0.2s;
}
.social-links a:hover {
  color: var(--accent);
}
.social-links span {
  color: var(--accent);
}
.footer {
  border-top: 1px solid var(--line);
  padding: 19px 0 27px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 10px var(--mono);
  text-transform: uppercase;
}
.footer a {
  color: var(--accent);
}
@media (max-width: 980px) {
  .shell {
    width: calc(100% - 56px);
  }
  .hero {
    min-height: 560px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 20px;
  }
  .hero h1 {
    font-size: clamp(76px, 10vw, 112px);
  }
  .art {
    min-height: 440px;
    min-width: 0;
  }
  .art pre {
    font-size: clamp(9px, 1.25vw, 13px);
  }
  .about-grid {
    gap: 38px;
  }
  .focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .focus-card:last-child {
    grid-column: 1 / -1;
  }
  .art-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .project-details,
  .project-copy {
    min-width: 0;
  }
}
@media (max-width: 760px) {
  .corner-caution {
    width: 200px;
    height: 28px;
    font-size: 8px;
  }
  .corner-caution--top {
    top: 21px;
    right: -62px;
  }
  .corner-caution--bottom {
    bottom: 21px;
    left: -62px;
  }
  .shell {
    width: min(100% - 38px, 560px);
  }
  .topbar {
    height: 68px;
    z-index: 5;
  }
  .nav-toggle {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 17px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.2s;
  }
  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 10;
    display: flex;
    width: min(270px, calc(100vw - 38px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 15px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 14px 35px rgba(28, 37, 36, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
      opacity 0.18s,
      transform 0.18s,
      visibility 0.18s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav a {
    padding: 12px 3px;
    border-bottom: 1px solid var(--line);
  }
  .nav .nav-contact {
    border: 0;
    padding: 13px 3px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 34px 0 50px !important;
    min-height: auto;
  }
  .hero-copy {
    order: 0;
  }
  .art {
    order: 1;
    min-height: 340px;
    overflow: hidden;
  }
  .art pre {
    font-size: clamp(9px, 2.5vw, 12px);
  }
  .hero h1 {
    font-size: 90px;
    margin: 10px 0 20px;
  }
  .hero h2 {
    font-size: 27px;
  }
  .hero p {
    font-size: 14px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .focus-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .focus-card {
    min-height: 0;
    padding: 19px;
  }
  .projects {
    grid-template-columns: 1fr;
  }
  .web-projects {
    grid-template-columns: 1fr;
  }
  .brand-group img {
    height: 36px;
    max-width: 145px;
  }
  .brand-group {
    gap: 32px;
    padding-right: 32px;
  }
  .art-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .card {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .project-preview { min-height: 310px; }
  .preview-topbar { padding: 16px; }
  .preview-content { width: calc(100% - 32px); margin: 30px auto; }
  .preview-content h3 { font-size: clamp(24px, 8vw, 36px); }
  .project-details {
    min-height: 230px;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .project-card-meta {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  .project-status {
    text-align: left;
  }
  .preview-input-row {
    flex-wrap: wrap;
    padding: 9px 10px;
    font-size: 10px;
  }
  .preview-scan {
    padding: 9px 11px;
  }
  .project-card-featured { grid-column: auto; }
  .project-highlights { grid-template-columns: 1fr; gap: 6px; }
  .project-group-secondary { margin-top: 35px; }
  .section-head h2 {
    font-size: 25px;
  }
  section {
    padding: 43px 0 56px;
  }
  .contact {
    padding: 60px 0 72px;
  }
  .ctf-entry {
    flex-wrap: wrap;
  }
  .ctf-entry input,
  .ctf-entry .button {
    min-height: 44px;
  }
}
@media (max-width: 420px) {
  .brand-group img {
    height: 32px;
    max-width: 120px;
  }
  .brand-group {
    gap: 26px;
    padding-right: 26px;
  }
  .art-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .art-piece:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 5px);
    justify-self: center;
  }
  .art-piece figcaption {
    padding: 8px;
    gap: 6px;
  }
  .art-piece figcaption strong {
    font-size: 10px;
  }
  .shell {
    width: calc(100% - 32px);
  }
  .hero h1 {
    font-size: clamp(68px, 23vw, 86px);
  }
  .hero h2 {
    font-size: 25px;
  }
  .actions {
    gap: 9px;
  }
  .button {
    padding: 11px 12px;
  }
  .preview-status {
    font-size: 8px;
  }
  .project-preview {
    min-height: 295px;
  }
  .project-details {
    min-height: 210px;
  }
  .footer {
    gap: 14px;
    font-size: 8px;
  }
  .contact .contact-email {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 360px) {
  .hero h1 {
    font-size: 64px;
  }
  .section-head {
    gap: 9px;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .project-card,
  .card {
    padding: 17px;
  }
  .footer {
    flex-direction: column;
    gap: 7px;
  }
  .social-links {
    gap: 15px;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ambient span {
    animation: none;
  }
  .ctf-confetti {
    display: none;
  }
  .brand-viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .brand-track {
    animation: none;
  }
  .brand-group[aria-hidden="true"] {
    display: none;
  }
}
