@font-face {
  font-family: "Chuangkit Jingang";
  src: url("./assets/fonts/chuangkit-jingang.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 400 900;
}

@font-face {
  font-family: "Source Han Sans CN Local";
  src: url("./assets/fonts/source-han-sans-cn-regular.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Source Han Sans CN Bold Local";
  src: url("./assets/fonts/source-han-sans-cn-bold.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Avenir Black Local";
  src: url("./assets/fonts/avenir-black.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 900;
}

:root {
  --bg: #f4efe4;
  --ink: #171512;
  --paper: #fffaf0;
  --paper-2: #f8edd9;
  --muted: #625c50;
  --line: rgba(23, 21, 18, 0.16);
  --lime: #a7f432;
  --orange: #ff6a2a;
  --pink: #ef4b7a;
  --cyan: #1db7c9;
  --yellow: #ffe166;
  --blue: #315cff;
  --accent: var(--lime);
  --accent-2: var(--pink);
  --shadow: 0 18px 50px rgba(23, 21, 18, 0.16);
  --display:
    "Chuangkit Jingang", "Source Han Sans CN Local", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --heading-sans:
    "Source Han Sans CN Bold Local", "Source Han Sans CN Local",
    "PingFang SC", "Microsoft YaHei",
    sans-serif;
  --sans:
    "Source Han Sans CN Local", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  --label:
    "Avenir Black Local", "Source Han Sans CN Bold Local", ui-sans-serif,
    system-ui, sans-serif;
  --mono:
    ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono",
    "Menlo", "Consolas", monospace;
  --serif: var(--display);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

main,
section {
  scroll-margin-top: 7.5rem;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(
      -10deg,
      rgba(23, 21, 18, 0.035) 0 2px,
      transparent 2px 24px
    ),
    linear-gradient(90deg, rgba(167, 244, 50, 0.22), transparent 30% 70%, rgba(239, 75, 122, 0.2)),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
}

::selection {
  color: var(--ink);
  background: var(--yellow);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-noise {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(90deg, rgba(23, 21, 18, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(23, 21, 18, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) auto auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1.5px solid var(--line);
  background: rgba(255, 250, 240, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 5px 5px 0 var(--accent);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.nav-links a {
  display: inline-flex;
  min-height: 2.4rem;
  align-items: center;
  padding: 0 0.85rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(23, 21, 18, 0.08);
}

.palette {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.swatch {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.swatch span {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--swatch);
}

.swatch.active {
  border-color: var(--ink);
  background: var(--paper);
}

.section-band {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: 7.5rem;
}

.hero {
  display: grid;
  min-height: 84svh;
  grid-template-columns: minmax(0, 0.92fr) minmax(18rem, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy::before {
  position: absolute;
  left: -0.15rem;
  top: -3.4rem;
  z-index: -1;
  color: rgba(23, 21, 18, 0.065);
  content: "PORTFOLIO";
  font-family: var(--display);
  font-size: 5.8rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-context {
  max-width: 48rem;
  margin-bottom: 0.55rem;
  font-family: var(--heading-sans);
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  font-weight: 950;
  line-height: 1.35;
  text-transform: none;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.nowrap {
  white-space: nowrap;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-family: var(--display);
  font-size: 7.2rem;
  line-height: 0.88;
  font-weight: 900;
  text-shadow:
    0.026em 0.026em 0 rgba(126, 215, 82, 0.58),
    -0.014em 0.042em 0 rgba(214, 80, 134, 0.48);
}

.hero-name-lockup {
  display: flex;
  max-width: 48rem;
  align-items: flex-end;
  gap: clamp(0.65rem, 2vw, 1rem);
}

.hero-title-wordmark {
  flex: 1 1 27rem;
  max-width: min(100%, 34rem);
  font-size: 0;
  line-height: 0;
  text-shadow: none;
}

.name-wordmark {
  display: block;
  width: 100%;
  height: auto;
}

.avatar-id {
  position: relative;
  flex: 0 0 clamp(4.4rem, 8vw, 6.1rem);
  width: clamp(4.4rem, 8vw, 6.1rem);
  margin-bottom: clamp(0.1rem, 1vw, 0.45rem);
  transform: rotate(2deg);
}

.hero-avatar-sticker {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow:
    5px 5px 0 var(--pink),
    -3px -3px 0 rgba(167, 244, 50, 0.72);
  object-fit: cover;
}

.avatar-tag {
  position: absolute;
  right: -0.45rem;
  bottom: -0.7rem;
  display: inline-flex;
  min-height: 1.45rem;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  color: var(--paper);
  background: var(--ink);
  box-shadow:
    2px 2px 0 var(--pink),
    -2px -2px 0 rgba(167, 244, 50, 0.72);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
}

.hero-line {
  max-width: 48rem;
  margin: 1.45rem 0 0;
  font-size: 1.18rem;
  font-weight: 760;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  padding: 0.78rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  font-weight: 950;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn.primary {
  color: var(--ink);
  background: var(--accent);
}

.btn.ghost {
  background: var(--paper);
}

.btn.mini {
  min-height: 2.5rem;
  padding: 0.58rem 0.85rem;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.9rem;
}

.btn-icon {
  display: inline-grid;
  width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  font-size: 0.9rem;
  line-height: 1;
}

.quick-stats {
  display: grid;
  max-width: 48rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 2rem;
}

.quick-stats div {
  grid-column: span 2;
  min-height: 5.2rem;
  padding: 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.82);
}

.quick-stats div:nth-child(4),
.quick-stats div:nth-child(5) {
  grid-column: span 3;
}

.quick-stats strong,
.quick-stats span {
  display: block;
}

.quick-stats strong {
  font-family: var(--heading-sans);
  font-size: 1.9rem;
  font-weight: 1000;
  line-height: 1;
}

.quick-stats span {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 850;
}

.hero-visual {
  position: relative;
  min-height: min(34rem, 76svh);
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(167, 244, 50, 0.48), transparent 44%),
    linear-gradient(315deg, rgba(239, 75, 122, 0.26), transparent 46%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.94), rgba(248, 237, 217, 0.88));
  box-shadow: 12px 12px 0 var(--ink);
  isolation: isolate;
  overflow: hidden;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  z-index: -1;
  content: "";
}

.hero-visual::before {
  inset: 1.1rem;
  border: 2px dashed rgba(23, 21, 18, 0.2);
  border-radius: 8px;
}

.hero-visual::after {
  right: 1.1rem;
  top: 1.1rem;
  width: 5.4rem;
  height: 1.25rem;
  border: 2px solid var(--ink);
  background: rgba(239, 75, 122, 0.72);
  box-shadow: 4px 4px 0 var(--ink);
}

.ink-field {
  position: absolute;
  inset: 1.5rem 0 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 20px 30px rgba(23, 21, 18, 0.18));
  animation: floatIn 5s ease-in-out infinite alternate;
}

.case-ticket {
  position: absolute;
  right: 1rem;
  bottom: 3.2rem;
  width: min(21rem, 72%);
  padding: 1rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--pink);
}

.case-ticket strong,
.case-ticket span,
.case-ticket p {
  display: block;
}

.case-ticket strong {
  margin-top: 0.3rem;
  font-size: 1.24rem;
  line-height: 1.15;
}

.case-ticket p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.ticket-kicker {
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 950;
}

.floating-badge {
  position: absolute;
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--accent);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 0.86rem;
  font-weight: 1000;
}

.badge-a {
  top: 11%;
  right: 16%;
  animation: bob 3.8s ease-in-out infinite;
}

.badge-b {
  left: 7%;
  top: 43%;
  background: var(--orange);
  animation: bob 4.6s ease-in-out infinite reverse;
}

.badge-c {
  left: 20%;
  bottom: 8%;
  background: var(--cyan);
  animation: bob 5.1s ease-in-out infinite;
}

.ticker {
  display: flex;
  width: 100%;
  gap: 0.65rem;
  overflow: hidden;
  padding: 0.75rem clamp(1rem, 3vw, 2.5rem);
  border-block: 2px solid var(--ink);
  background: var(--ink);
}

.ticker span {
  flex: 0 0 auto;
  padding: 0.36rem 0.68rem;
  border: 2px solid rgba(255, 250, 240, 0.7);
  border-radius: 999px;
  color: var(--paper);
  font-size: 0.86rem;
  font-weight: 900;
}

.race-divider {
  position: relative;
  width: 100%;
  height: 2.35rem;
  margin: 0 0 clamp(1rem, 2.2vw, 1.7rem);
  overflow: hidden;
  border-block: 2px solid var(--ink);
  background:
    repeating-linear-gradient(
      112deg,
      var(--ink) 0 1.85rem,
      #fff 1.85rem 3.7rem
    );
}

.race-divider::before,
.race-divider::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.race-divider::before {
  display: none;
}

.race-divider::after {
  inset: auto 0 0;
  height: 0.18rem;
  background: var(--ink);
}

.proof-strip {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2.3rem) 0 0;
}

.proof-card {
  position: relative;
  min-height: 12rem;
  padding: 1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
}

.proof-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 0.42rem;
  background: linear-gradient(90deg, var(--accent), var(--yellow), var(--pink), var(--cyan));
  content: "";
}

.proof-card-main {
  color: var(--paper);
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 10px,
      rgba(255, 250, 240, 0.07) 10px 11px
    ),
    var(--ink);
}

.proof-kicker,
.proof-card > span:not(.proof-kicker) {
  display: inline-grid;
  min-height: 2rem;
  align-items: center;
  padding: 0 0.55rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 950;
}

.proof-card h2,
.proof-card h3 {
  margin: 1rem 0 0;
  line-height: 1.05;
}

.proof-card h2 {
  font-family: var(--display);
  font-size: 2.25rem;
}

.proof-card h3 {
  font-family: var(--heading-sans);
  font-size: 1.18rem;
  font-weight: 1000;
}

.proof-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-weight: 760;
}

.proof-card-main p {
  color: rgba(255, 250, 240, 0.76);
}

.bridge,
.projects,
.reports,
.profile,
.contact {
  padding: clamp(3rem, 7vw, 5.25rem) 0;
}

.section-head {
  display: grid;
  max-width: 48rem;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.section-head.compact {
  margin-bottom: 1rem;
}

.section-head h2,
.contact h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 3.35rem;
  line-height: 1.02;
}

.contact h2 {
  margin-bottom: 0.55rem;
}

.section-head p:not(.eyebrow),
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 700;
}

.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.6rem 0 1.2rem;
}

.filter {
  min-height: 2.55rem;
  padding: 0 0.95rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
  font-weight: 950;
}

.filter.active {
  color: var(--ink);
  background: var(--accent);
}

.bridge {
  display: grid;
  grid-template-columns: minmax(16rem, 0.42fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.bridge .section-head {
  position: sticky;
  top: 6rem;
}

.bridge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.bridge-card {
  display: grid;
  min-height: 7.35rem;
  grid-template-columns: 3.7rem minmax(0, 1fr);
  column-gap: 0.9rem;
  row-gap: 0.35rem;
  align-items: center;
  padding: 0.82rem 1.05rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(167, 244, 50, 0.26), transparent 0.7rem),
    var(--paper);
  box-shadow: 7px 7px 0 var(--ink);
}

.bridge-card.hot {
  background:
    linear-gradient(90deg, rgba(255, 106, 42, 0.28), transparent 0.7rem),
    var(--paper);
}

.bridge-card.cool {
  background:
    linear-gradient(90deg, rgba(29, 183, 201, 0.28), transparent 0.7rem),
    var(--paper);
}

.bridge-card span {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 1000;
}

.bridge-copy {
  display: grid;
  grid-column: 2;
  align-self: center;
  gap: 0.42rem;
}

.bridge-card h3 {
  margin: 0;
  font-family: var(--heading-sans);
  font-size: 1.45rem;
  font-weight: 1000;
  line-height: 1.08;
}

.bridge-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.42;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.project-group-label {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.25rem;
  color: var(--ink);
}

.project-group-label + .project-card {
  margin-top: 0;
}

.project-group-label[data-group="research"] {
  margin-top: 0.65rem;
}

.project-group-label::after {
  flex: 1 1 auto;
  height: 2px;
  background: rgba(23, 21, 18, 0.18);
  content: "";
}

.project-group-label span {
  display: inline-flex;
  min-height: 2.1rem;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--heading-sans);
  font-size: 0.96rem;
  font-weight: 1000;
  line-height: 1;
}

.project-group-label small {
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.project-group-label.hidden {
  display: none;
}

.project-card {
  position: relative;
  grid-column: span 2;
  min-height: 20rem;
  padding: 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--ink);
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease;
}

.project-card:nth-of-type(1),
.project-card:nth-of-type(2) {
  grid-column: span 3;
}

.project-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 0.55rem;
  background: var(--accent);
  content: "";
}

.project-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 4px 4px 0 var(--ink);
}

.project-card.hidden {
  display: none;
}

.project-card.accent-orange {
  background: var(--paper);
}

.project-card.accent-orange::before {
  background: var(--orange);
}

.project-card.accent-cyan {
  background: var(--paper);
}

.project-card.accent-cyan::before {
  background: var(--cyan);
}

.project-card.accent-pink {
  background: var(--paper);
}

.project-card.accent-pink::before {
  background: var(--pink);
}

.project-card.accent-lime {
  background: var(--paper);
}

.project-card.accent-lime::before {
  background: var(--lime);
}

.project-card.accent-yellow {
  background: var(--paper);
}

.project-card.accent-yellow::before {
  background: var(--yellow);
}

.project-card.accent-blue {
  background: var(--paper);
}

.project-card.accent-blue::before {
  background: var(--blue);
}

.card-index {
  position: absolute;
  right: 0.85rem;
  bottom: 0.25rem;
  color: rgba(23, 21, 18, 0.08);
  font-size: 5.3rem;
  line-height: 1;
  font-weight: 1000;
}

.card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.project-card h3,
.featured-report h3,
.report-item h3,
.profile-block h3 {
  position: relative;
  z-index: 1;
  margin: 1.5rem 0 0;
  font-family: var(--heading-sans);
  font-size: 1.28rem;
  font-weight: 1000;
  line-height: 1.12;
}

.project-card p,
.featured-report p,
.report-item p,
.profile-block p {
  position: relative;
  z-index: 1;
  margin: 0.82rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.chip-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.chip-row span {
  padding: 0.28rem 0.5rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.78);
  font-size: 0.76rem;
  font-weight: 900;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: 1rem;
  align-items: stretch;
}

.reports {
  width: 100%;
  max-width: none;
  padding-right: max(1rem, calc((100% - 1220px) / 2));
  padding-left: max(1rem, calc((100% - 1220px) / 2));
  border-block: 2px solid var(--ink);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 250, 240, 0.055) 0 1px,
      transparent 1px 22px
    ),
    var(--ink);
  color: var(--paper);
}

.reports .section-head p:not(.eyebrow),
.reports .eyebrow {
  color: rgba(255, 250, 240, 0.74);
}

.featured-report {
  position: relative;
  min-height: 25rem;
  overflow: hidden;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--accent);
}

.featured-report::after {
  position: absolute;
  right: 1.1rem;
  top: 1rem;
  width: clamp(5.6rem, 11vw, 7.8rem);
  height: clamp(5.6rem, 11vw, 7.8rem);
  background: url("./assets/featured-squid.svg") center / contain no-repeat;
  content: "";
  opacity: 0.96;
  transform: none;
}

.featured-report .eyebrow,
.featured-report p {
  color: var(--muted);
}

.featured-report h3 {
  max-width: 13ch;
  margin-top: 1rem;
  font-family: var(--display);
  font-size: 3.05rem;
}

.report-meter {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  display: flex;
  height: 8rem;
  align-items: end;
  gap: 0.38rem;
  z-index: 1;
}

.report-meter span {
  display: block;
  width: 1.1rem;
  height: var(--height);
  border: 2px solid var(--ink);
  border-radius: 999px 999px 0 0;
  background: var(--accent);
}

.report-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.report-list {
  display: grid;
  gap: 1rem;
}

.report-item {
  display: block;
  min-height: 8rem;
  padding: 1rem;
  border: 2px solid rgba(255, 250, 240, 0.35);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
  box-shadow: 5px 5px 0 rgba(255, 250, 240, 0.16);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.report-item:hover {
  transform: translate(2px, 2px);
  background: rgba(255, 250, 240, 0.12);
  box-shadow: 3px 3px 0 rgba(255, 250, 240, 0.16);
}

.report-item h3 {
  margin-top: 0.62rem;
}

.reports .report-item h3 {
  color: var(--paper);
}

.reports .report-item p {
  color: rgba(255, 250, 240, 0.72);
}

.report-tag {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  padding: 0 0.55rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--paper);
  background: var(--accent);
  font-size: 0.75rem;
  font-weight: 950;
  paint-order: stroke fill;
  -webkit-text-stroke: 1.4px var(--ink);
  text-shadow:
    1px 0 0 var(--ink),
    -1px 0 0 var(--ink),
    0 1px 0 var(--ink),
    0 -1px 0 var(--ink);
}

.report-tag.orange {
  background: var(--orange);
}

.report-tag.cyan {
  background: var(--cyan);
}

.report-tag.pink {
  background: var(--pink);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.profile-block {
  min-height: 15rem;
  padding: 1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
}

.profile-block span {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-weight: 1000;
}

.profile-block.ink-black {
  color: var(--paper);
  background: var(--ink);
}

.profile-block.ink-black p {
  color: rgba(255, 250, 240, 0.76);
}

.profile-block.ink-green {
  background: var(--lime);
}

.profile-block.ink-orange {
  background: var(--orange);
}

.profile-block.ink-cyan {
  background: var(--cyan);
}

.profile-block:not(.ink-black) p {
  color: rgba(23, 21, 18, 0.7);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  padding-inline: clamp(1rem, 3vw, 2rem);
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 225, 102, 0.7), transparent 38%),
    repeating-linear-gradient(
      0deg,
      rgba(23, 21, 18, 0.055) 0 1px,
      transparent 1px 18px
    ),
    var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}

.contact-panel {
  display: grid;
  gap: 0.65rem;
}

.contact-panel a {
  display: flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.78rem 0.95rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.9);
  font-weight: 950;
}

.contact-panel a > span {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.contact-panel small {
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.64rem;
  line-height: 1;
  text-transform: uppercase;
}

.contact-panel strong {
  color: var(--ink);
  font-family: var(--heading-sans);
  font-size: 0.98rem;
  line-height: 1.12;
}

.contact-panel a::after {
  flex: 0 0 auto;
  content: ">";
  font-weight: 1000;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 50;
  width: min(28rem, calc(100% - 2rem));
  padding: 0.9rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--ink);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.7rem);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 520ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes floatIn {
  from {
    transform: translateY(-0.35rem);
  }
  to {
    transform: translateY(0.55rem);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.65rem);
  }
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .hero,
  .report-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero-visual {
    min-height: 28rem;
  }

  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-card-main {
    grid-column: 1 / -1;
  }

  .bridge {
    grid-template-columns: 1fr;
  }

  .bridge .section-head {
    position: static;
  }

  .bridge-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card,
  .project-card:nth-child(1),
  .project-card:nth-child(2) {
    grid-column: auto;
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar {
    gap: 0.7rem;
    padding-inline: 0.85rem;
  }

  .brand small {
    display: none;
  }

  .palette {
    gap: 0.1rem;
  }

  h1 {
    font-size: 4.6rem;
  }

  .hero-title-wordmark {
    max-width: min(100%, 25rem);
  }

  .hero-name-lockup {
    gap: 0.55rem;
  }

  .avatar-id {
    width: 4.3rem;
  }

  .avatar-tag {
    right: -0.35rem;
    bottom: -0.6rem;
    font-size: 0.58rem;
  }

  .hero-copy::before {
    font-size: 3.2rem;
    top: -2.2rem;
  }

  .section-head h2,
  .contact h2 {
    font-size: 2.2rem;
  }

  section[id] {
    scroll-margin-top: 9rem;
  }

  .proof-card h2 {
    font-size: 1.85rem;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .hero-line {
    font-size: 1rem;
  }

  .quick-stats,
  .bridge-grid,
  .project-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .quick-stats div,
  .quick-stats div:nth-child(4),
  .quick-stats div:nth-child(5) {
    grid-column: auto;
  }

  .hero-visual {
    min-height: 23rem;
  }

  .case-ticket {
    right: 0;
    bottom: 2rem;
    width: min(19rem, 86%);
  }

  .floating-badge {
    width: 3.6rem;
    height: 3.6rem;
  }

  .featured-report {
    min-height: 28rem;
  }

  .report-meter {
    height: 5rem;
  }
}

@media (max-width: 760px) {
  .section-band {
    width: min(100% - 1.25rem, 1220px);
  }

  .topbar {
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
  }

  .brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    box-shadow: 4px 4px 0 var(--accent);
  }

  .nav-links {
    gap: 0.2rem;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
    padding: 0 0.75rem 0.1rem;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 2.15rem;
    padding: 0 0.68rem;
    font-size: 0.84rem;
  }

  .hero {
    gap: 1.35rem;
    padding: 2rem 0 1.5rem;
  }

  .hero-context {
    font-size: 0.82rem;
  }

  .hero-name-lockup {
    align-items: flex-end;
    gap: 0.5rem;
  }

  .hero-title-wordmark {
    flex-basis: 0;
    min-width: 0;
    max-width: none;
  }

  .avatar-id {
    flex-basis: clamp(3.8rem, 17vw, 4.9rem);
    width: clamp(3.8rem, 17vw, 4.9rem);
  }

  .hero-line {
    margin-top: 1rem;
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 1.2rem;
  }

  .btn {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.68rem 0.9rem;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .quick-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1.25rem;
  }

  .quick-stats div {
    grid-column: auto;
    min-height: auto;
    padding: 0.7rem;
  }

  .quick-stats div:nth-child(4),
  .quick-stats div:nth-child(5) {
    grid-column: 1 / -1;
  }

  .quick-stats strong {
    font-size: clamp(1.28rem, 8vw, 1.68rem);
  }

  .quick-stats span {
    font-size: 0.78rem;
    line-height: 1.36;
  }

  .hero-visual {
    min-height: 20.5rem;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .hero-visual::before {
    inset: 0.8rem;
  }

  .ink-field {
    inset: 0.75rem -0.9rem 0;
    width: calc(100% + 1.8rem);
    height: calc(100% - 0.75rem);
  }

  .case-ticket {
    right: 0.85rem;
    bottom: 1rem;
    left: 0.85rem;
    width: auto;
    padding: 0.78rem;
    box-shadow: 5px 5px 0 var(--pink);
  }

  .case-ticket strong {
    font-size: 1.02rem;
  }

  .case-ticket p {
    font-size: 0.78rem;
  }

  .floating-badge {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 0.74rem;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .badge-a {
    top: 9%;
    right: 12%;
  }

  .badge-b {
    left: 5%;
    top: 38%;
  }

  .badge-c {
    left: 18%;
    bottom: 12%;
  }

  .race-divider {
    height: 1.45rem;
    background:
      repeating-linear-gradient(
        112deg,
        var(--ink) 0 1.25rem,
        #fff 1.25rem 2.5rem
      );
  }

  .proof-strip {
    gap: 0.75rem;
    padding-top: 0.8rem;
  }

  .proof-card {
    min-height: auto;
    padding: 0.9rem;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .proof-card h2 {
    font-size: clamp(1.45rem, 8.5vw, 1.85rem);
  }

  .proof-card h3 {
    font-size: 1.12rem;
  }

  .proof-card p {
    font-size: 0.9rem;
  }

  .bridge,
  .projects,
  .reports,
  .profile,
  .contact {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

  .section-head {
    gap: 0.45rem;
    margin-bottom: 1rem;
  }

  .section-head h2,
  .contact h2 {
    font-size: clamp(2.05rem, 13vw, 2.6rem);
    line-height: 1.05;
  }

  .section-head p:not(.eyebrow),
  .contact p {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .filterbar {
    flex-wrap: nowrap;
    gap: 0.45rem;
    margin: 1.1rem -0.65rem 1rem;
    overflow-x: auto;
    padding: 0 0.65rem 0.12rem;
    scrollbar-width: none;
  }

  .filterbar::-webkit-scrollbar {
    display: none;
  }

  .filter {
    flex: 0 0 auto;
    min-height: 2.35rem;
    padding: 0 0.8rem;
    font-size: 0.92rem;
  }

  .bridge-card {
    min-height: auto;
    grid-template-columns: 2.8rem minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.78rem 0.82rem;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .bridge-card span {
    width: 2.45rem;
    height: 2.45rem;
    font-size: 0.9rem;
  }

  .bridge-card h3 {
    font-size: 1.18rem;
  }

  .bridge-card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .project-grid {
    gap: 0.8rem;
  }

  .project-group-label {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.42rem;
  }

  .project-group-label::after {
    display: none;
  }

  .project-group-label small {
    flex-basis: 100%;
    padding-left: 0.15rem;
  }

  .project-card,
  .project-card:nth-of-type(1),
  .project-card:nth-of-type(2) {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 0.95rem;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .card-index {
    right: 0.65rem;
    bottom: 0.2rem;
    font-size: 3.6rem;
  }

  .card-topline {
    font-size: 0.72rem;
  }

  .project-card h3,
  .featured-report h3,
  .report-item h3,
  .profile-block h3 {
    margin-top: 1rem;
    font-size: 1.14rem;
    line-height: 1.18;
  }

  .project-card p,
  .featured-report p,
  .report-item p,
  .profile-block p {
    margin-top: 0.62rem;
    font-size: 0.9rem;
    line-height: 1.58;
  }

  .chip-row {
    gap: 0.35rem;
    margin-top: 0.85rem;
  }

  .chip-row span {
    padding: 0.22rem 0.43rem;
    font-size: 0.7rem;
  }

  .reports {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .report-layout,
  .report-list {
    gap: 0.8rem;
  }

  .featured-report {
    min-height: auto;
    padding: 1rem;
    box-shadow: 6px 6px 0 var(--accent);
  }

  .featured-report::after {
    top: 0.75rem;
    right: 0.75rem;
    width: 4.35rem;
    height: 4.35rem;
  }

  .featured-report h3 {
    max-width: none;
    padding-right: 4.5rem;
    font-size: clamp(2rem, 11vw, 2.55rem);
    line-height: 1.02;
  }

  .featured-report p {
    max-width: 30rem;
  }

  .report-meter {
    display: none;
  }

  .report-actions {
    display: grid;
    gap: 0.6rem;
    margin-top: 1rem;
  }

  .report-item {
    min-height: auto;
    padding: 0.9rem;
    box-shadow: 4px 4px 0 rgba(255, 250, 240, 0.16);
  }

  .report-tag {
    min-height: 1.62rem;
    font-size: 0.68rem;
    -webkit-text-stroke: 0.7px var(--ink);
    text-shadow:
      0.55px 0 0 var(--ink),
      -0.55px 0 0 var(--ink),
      0 0.55px 0 var(--ink),
      0 -0.55px 0 var(--ink);
  }

  .profile-block {
    min-height: auto;
    padding: 0.9rem;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .profile-block span {
    width: 2.6rem;
    height: 2.6rem;
  }

  .contact {
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.25rem 0.9rem;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .contact h2 {
    margin-bottom: 0.85rem;
  }

  .contact-panel a {
    min-height: 3rem;
    padding: 0.72rem 0.78rem;
  }
}

@media (max-width: 420px) {
  .brand strong {
    font-size: 0.9rem;
  }

  .hero-copy::before {
    font-size: 2.65rem;
    top: -1.75rem;
  }

  .hero-name-lockup {
    align-items: center;
  }

  .avatar-id {
    flex-basis: 3.7rem;
    width: 3.7rem;
  }

  .avatar-tag {
    right: -0.25rem;
    bottom: -0.48rem;
    min-height: 1.15rem;
    padding: 0.08rem 0.32rem;
    font-size: 0.5rem;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .quick-stats div:nth-child(4),
  .quick-stats div:nth-child(5) {
    grid-column: auto;
  }

  .hero-visual {
    min-height: 18.75rem;
  }

  .case-ticket {
    padding: 0.68rem;
  }

  .floating-badge {
    width: 2.9rem;
    height: 2.9rem;
  }

  .section-head h2,
  .contact h2 {
    font-size: clamp(1.85rem, 12vw, 2.25rem);
  }

  .featured-report h3 {
    padding-right: 0;
    font-size: clamp(1.78rem, 10vw, 2.15rem);
  }

  .featured-report::after {
    top: 0.65rem;
    right: 0.65rem;
    width: 3.5rem;
    height: 3.5rem;
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
