/* Matches the look of santiwari07.qzz.io: near-black, white type, red accent, square edges. */
:root {
  --bg: #030303;
  --bg-alt: #080808;
  --surface: #0b0b0b;
  --line: #1c1c1c;
  --line-strong: #2a2a2a;
  --text: #f5f5f5;
  --muted: #888888;
  --red: #e32636;
  --red-soft: rgb(227 38 54 / 12%);
  --red-line: rgb(227 38 54 / 40%);
  --gold: #e0b43a;
  --silver: #b9b9b9;
  --bronze: #d08a4e;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration-color: var(--red); text-underline-offset: 4px; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -0.04em; margin: 0; }
p { margin: 0 0 1rem; }
::selection { background: var(--red); color: #fff; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 780px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--text); color: var(--bg); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: rgb(3 3 3 / 82%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { font: 600 0.95rem/1 var(--display); letter-spacing: -0.02em; color: var(--text); text-decoration: none; white-space: nowrap; }
.topbar nav { display: flex; gap: 2px; }
.topbar nav a {
  position: relative; color: var(--muted); text-decoration: none; font-size: 0.875rem; font-weight: 500; padding: 8px 10px;
}
.topbar nav a:hover { color: var(--text); }
.topbar nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transition: transform .2s ease;
}
.topbar nav a:hover::after { transform: scaleX(1); }
@media (max-width: 480px) { .topbar nav a { padding: 8px 6px; font-size: 0.8rem; } .topbar nav a::after { left: 6px; right: 6px; } }

/* shared bits */
.eyebrow { font-size: 0.875rem; color: var(--red); margin: 0 0 18px; }
.label { font-size: 0.78rem; color: var(--muted); margin: 0 0 14px; }
.label span { color: var(--red); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 0;
  border: 1px solid var(--red-line); background: rgb(24 24 24 / 85%); color: var(--text);
  font: 500 0.875rem/1.4 var(--sans); text-decoration: none; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { border-color: var(--red); color: var(--text); background: var(--red-soft); }
.btn.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.primary:hover { background: var(--red); border-color: var(--red); color: #fff; }
.text-link {
  display: inline-flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 500; text-decoration: none; padding: 12px 4px;
}
.text-link::after { content: ""; width: 48px; height: 1px; background: var(--red); transform: rotate(-8deg); transition: width .2s; }
.text-link:hover::after { width: 64px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 28px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; padding: 0; margin: 0; }
.chips li { font: 400 0.72rem/1.6 var(--mono); color: var(--muted); }
.chips li + li::before { content: "·"; margin: 0 14px 0 -8px; color: var(--line-strong); }
.chips li + li { margin-left: -6px; }
.chips.big li { font-size: 0.82rem; padding: 7px 12px; border: 1px solid var(--line-strong); color: var(--text); margin: 0; }
.chips.big { gap: 8px; }
.chips.big li::before { display: none; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.hero-ghost {
  position: absolute; top: 70px; left: 24%; white-space: nowrap; pointer-events: none;
  font: 700 clamp(5rem, 14vw, 12rem)/1 var(--display); letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / 7%);
}
.hero-streaks { position: absolute; inset: 0; pointer-events: none; }
.hero-streaks i {
  position: absolute; height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent);
  transform: rotate(-16deg); opacity: .55;
}
.hero-streaks i:nth-child(1) { width: 220px; right: 6%; top: 34%; }
.hero-streaks i:nth-child(2) { width: 140px; right: 22%; top: 58%; opacity: .35; }
.hero-streaks i:nth-child(3) { width: 260px; right: 30%; top: 82%; }
.hero-streaks i:nth-child(4) { width: 120px; right: 2%; top: 70%; opacity: .3; }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(3.2rem, 9vw, 6.5rem); font-weight: 600; line-height: 0.98; }
.hero h1 span { display: block; }
.aka { color: var(--muted); margin: 18px 0 18px; font-size: 0.85rem; }
.aka strong { color: var(--text); font-weight: 500; }
.lede { font-size: clamp(1rem, 2vw, 1.12rem); max-width: 56ch; color: #b5b5b5; }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; margin: 56px 0 0; padding-top: 28px;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { min-width: 0; }
.stats dt { font: 600 1.6rem/1.1 var(--display); letter-spacing: -0.03em; color: var(--text); }
.stats dd { margin: 6px 0 0; color: var(--muted); font: 400 0.72rem/1.4 var(--mono); }
.stats dt.mono { font-family: var(--display); }

/* sections */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--bg-alt); }
.section-h { margin-bottom: 48px; }
.section-h h2 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 18ch; }

/* featured cards */
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--red-line); transform: translateY(-3px); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-img { aspect-ratio: 16 / 9; background: #111; border-bottom: 1px solid var(--line); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(.9); transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body .eyebrow { font-size: 0.7rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.card h3 { font-size: 1.45rem; margin-bottom: 10px; }
.card-body > p:not(.eyebrow) { color: var(--muted); font-size: 0.92rem; flex: 1; }

/* project index rows */
.groups { display: grid; gap: 48px; }
@media (min-width: 900px) { .groups { grid-template-columns: repeat(2, 1fr); column-gap: 64px; } }
.group-h {
  font: 400 0.75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted);
  padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); margin: 0;
}
.count { color: var(--red); margin-left: 6px; }
.rows { list-style: none; padding: 0; margin: 0; }
.row a {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0;
  border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; position: relative;
}
.row a::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--red); transition: width .3s ease;
}
.row a:hover::before { width: 100%; }
.row a:hover .row-name { color: var(--red); }
.row-name { font: 600 1.15rem/1.2 var(--display); letter-spacing: -0.02em; }
.row-meta { grid-row: 1; grid-column: 2; font-size: 0.7rem; color: var(--muted); align-self: center; text-align: right; }
.row-tag { grid-column: 1 / -1; color: var(--muted); font-size: 0.9rem; }
.more-h { margin-top: 64px; }
.more { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 64px; }
@media (min-width: 720px) { .more { grid-template-columns: repeat(2, 1fr); } }
.more a {
  display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; font-size: 0.92rem;
}
.more a:hover strong { color: var(--red); }
.more a:hover { color: var(--text); }

/* awards */
.awards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .awards { grid-template-columns: repeat(2, 1fr); } }
.awards li {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.awards li div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.awards strong { font: 600 1.08rem/1.3 var(--display); letter-spacing: -0.02em; }
.awards strong a { text-decoration: none; }
.awards .muted { font-size: 0.88rem; }
.badge {
  flex: none; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 8px;
  border: 1px solid currentColor; color: var(--red); min-width: 86px; text-align: center;
}
.badge[data-kind="1st"] { color: var(--gold); }
.badge[data-kind="runner-up"] { color: var(--silver); }
.badge[data-kind="top"] { color: var(--bronze); }

/* about */
.about { display: grid; gap: 48px; }
@media (min-width: 900px) { .about { grid-template-columns: 3fr 2fr; gap: 80px; } }
.about p { max-width: 60ch; color: #b5b5b5; }
.about p a { color: var(--text); }
.elsewhere { list-style: none; padding: 0; margin: 0; }
.elsewhere a {
  display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}

/* project page */
.project { padding: 48px 0 96px; }
.crumbs { font-size: 0.75rem; color: var(--muted); margin-bottom: 36px; overflow-wrap: anywhere; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.project .eyebrow { font-size: 0.8rem; }
.project h1 { font-size: clamp(2.5rem, 7vw, 4.4rem); }
.tagline { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: #b5b5b5; margin: 18px 0 10px; }
.byline { font-size: 0.9rem; color: var(--muted); }
.byline a { text-decoration-color: var(--red); }
.shot { margin: 44px 0 40px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #0d0d0d; }
.shot img { width: 100%; height: auto; max-height: 540px; object-fit: contain; }
.project .wrap + .wrap > :first-child:not(.shot) { margin-top: 44px; }
.lead { font-size: 1.18rem; line-height: 1.6; }
.project .wrap p:not(.lead):not(.muted):not(.small) { color: #b5b5b5; }
.project h2 { font-size: 1.6rem; margin: 52px 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: #cfcfcf; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 14px; height: 1px; background: var(--red); }
.author {
  display: flex; gap: 18px; align-items: flex-start; margin: 64px 0 8px; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.author p { margin: 0 0 6px; }
.logo-mark {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--red-line);
  color: var(--red); font: 600 0.95rem/1 var(--display); letter-spacing: -0.02em;
}
.small-h { font: 400 0.75rem/1.4 var(--mono) !important; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-top: 56px !important; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; }
.pager a {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line);
  text-decoration: none; font: 600 1rem/1.25 var(--display); letter-spacing: -0.02em; min-width: 0;
}
.pager a span { font: 400 0.7rem/1 var(--mono); }
.pager a:hover { border-color: var(--red-line); color: var(--text); }
.pager .next { text-align: right; }

.thanks {
  margin: 0; padding: 18px 22px; border-left: 2px solid var(--red); background: var(--surface);
  color: #cfcfcf; font-size: 1.02rem; line-height: 1.7;
}

/* footer */
.foot { padding: 56px 0 64px; }
.foot-name { font: 600 1.25rem/1.2 var(--display); letter-spacing: -0.03em; }
.foot-name .mono { font-size: 0.8rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.875rem; margin: 18px 0; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
