:root {
  --bg: #060816;
  --bg-2: #0a0d20;
  --panel: #0d1128;
  --ink: #f5eedc;
  --muted: #a8aec2;
  --line: rgba(255,255,255,.11);
  --cyan: #19d7ef;
  --magenta: #f02aa7;
  --gold: #ffc34d;
  --violet: #8d63ff;
  --green: #75d552;
  --max: 1240px;
  --radius: 24px;
  --hero-shift: 0px;
  --mud-shift: 0px;
  --bridge-shift: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(25,215,239,.26); color: white; }

.skip-link { position: fixed; left: 16px; top: -70px; z-index: 999; padding: 10px 14px; background: white; color: #111; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 36px), var(--max));
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 11px 8px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(7,9,22,.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 50px rgba(0,0,0,.25);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: Georgia, serif; font-weight: 600; letter-spacing: -.02em; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-word { font-size: 1.05rem; white-space: nowrap; }
.brand-inkand { color: var(--ink); }
.brand-a { color: var(--magenta); }
.brand-n { color: var(--gold); }
.brand-s { color: var(--green); }
.brand-i { color: var(--cyan); }
.brand-underscore { color: var(--ink); font-family: ui-monospace, monospace; }
.brand-a, .brand-n, .brand-s, .brand-i { text-shadow: 0 0 18px rgba(255,255,255,.06); }
.cursor { color: var(--cyan); font-family: ui-monospace, monospace; animation: blink 1s steps(1,end) infinite; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.site-header nav a { text-decoration: none; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: #c4c7d3; transition: color .2s ease; }
.site-header nav a:hover { color: white; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  padding: 130px max(24px, calc((100vw - var(--max))/2)) 80px;
  overflow: hidden;
}
.hero-image { position: absolute; inset: -8%; background: url('assets/inkandansi-banner.png') center calc(50% + var(--hero-shift)) / cover no-repeat; opacity: .24; filter: saturate(1.1) contrast(1.05); }
.hero-vignette { position: absolute; inset: 0; background: radial-gradient(circle at 78% 44%, transparent 0 18%, rgba(6,8,22,.32) 48%, rgba(6,8,22,.93) 78%), linear-gradient(90deg, rgba(6,8,22,.96) 0%, rgba(6,8,22,.72) 45%, rgba(6,8,22,.28) 100%), linear-gradient(180deg, rgba(6,8,22,.28), rgba(6,8,22,.9)); }
.hero-copy, .hero-mark { position: relative; z-index: 2; }
.hero-copy { max-width: 760px; }
.eyebrow, .section-kicker, .card-tag, .terminal-label { font: 700 .72rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { color: var(--cyan); margin-bottom: 18px; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; }
h1 { font-size: clamp(4.2rem, 8.5vw, 8.8rem); line-height: .87; }
h2 { font-size: clamp(3rem, 6vw, 6.4rem); line-height: .94; }
h3 { font-size: clamp(1.7rem, 2.8vw, 2.7rem); line-height: 1; }
em { font-style: italic; color: #ddd0ff; }
.gradient-text { background: linear-gradient(90deg, var(--cyan), #7485ff 34%, var(--magenta) 64%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy > p:not(.eyebrow) { max-width: 700px; font-size: clamp(1.04rem, 1.5vw, 1.22rem); color: #c2c6d5; margin: 26px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 750; font-size: .9rem; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #051018; background: linear-gradient(90deg, #7feaf4, #ef98d1 68%, #ffd778); border-color: transparent; }
.button.secondary { background: rgba(255,255,255,.035); }
.hero-mark { display: grid; place-items: center; }
.hero-mark img { width: min(46vw, 590px); filter: drop-shadow(0 28px 80px rgba(0,0,0,.5)); }

.ticker { overflow: hidden; border-block: 1px solid var(--line); background: #080b1c; }
.ticker-track { width: max-content; display: flex; gap: 28px; align-items: center; padding: 17px 0; animation: ticker 34s linear infinite; font: 800 clamp(1rem, 2vw, 1.55rem) ui-monospace, monospace; letter-spacing: .11em; }
.ticker-track span:nth-of-type(3n+1) { color: var(--cyan); }
.ticker-track span:nth-of-type(3n+2) { color: var(--magenta); }
.ticker-track span:nth-of-type(3n) { color: var(--gold); }
.ticker-track i { font-style: normal; color: #485069; }

.section { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; padding: clamp(90px, 11vw, 155px) 0; }
.section-kicker { color: #737b94; margin-bottom: clamp(36px, 6vw, 72px); }
.section-kicker.light { color: #b3b8ca; }
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(50px, 8vw, 120px); align-items: center; }
.align-top { align-items: start; }
.kicker { color: var(--cyan); font: 700 .8rem/1.6 ui-monospace, monospace; letter-spacing: .06em; max-width: 510px; }
.body-copy { border-left: 1px solid var(--line); padding-left: clamp(28px, 4vw, 58px); color: #c2c6d4; font-size: clamp(1.03rem, 1.35vw, 1.18rem); }
.body-copy p:first-child { margin-top: 0; }
.body-copy p:last-of-type { margin-bottom: 0; }
.source-row { margin-top: 28px; display: flex; gap: 10px 18px; flex-wrap: wrap; }
.source-row a, .small-link { color: #8893ad; text-decoration: none; font: 650 .72rem/1.4 ui-monospace, monospace; letter-spacing: .04em; border-bottom: 1px solid transparent; }
.source-row a:hover, .small-link:hover { color: var(--cyan); border-color: currentColor; }

.mud-story { min-height: 980px; position: relative; display: flex; align-items: center; overflow: hidden; border-block: 1px solid var(--line); }
.mud-bg { position: absolute; inset: -12%; background: url('assets/inkandansi-banner.png') center calc(50% + var(--mud-shift)) / cover no-repeat; filter: saturate(1.15) brightness(.72); }
.mud-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,6,16,.98) 0%, rgba(4,6,16,.88) 48%, rgba(4,6,16,.28) 100%), linear-gradient(180deg, rgba(6,8,22,.42), rgba(6,8,22,.8)); }
.mud-inner { position: relative; z-index: 2; }
.mud-copy { max-width: 820px; }
.mud-copy h2 { margin-bottom: 30px; }
.mud-copy p { color: #d2d5df; font-size: clamp(1.03rem, 1.45vw, 1.2rem); }
.mud-copy strong { color: white; }
.terminal-label { color: var(--cyan); margin-bottom: 20px; }

.text-medium { padding-top: clamp(100px, 13vw, 180px); padding-bottom: clamp(100px, 13vw, 180px); }

.work { border-top: 1px solid var(--line); }
.work-head { max-width: 930px; margin-bottom: 50px; }
.work-head p { color: var(--muted); max-width: 610px; font-size: 1.08rem; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.work-card { min-height: 360px; padding: clamp(28px, 4vw, 46px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(15,19,44,.9), rgba(8,10,25,.92)); position: relative; overflow: hidden; }
.work-card::after { content:""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -110px; top: -110px; background: currentColor; filter: blur(85px); opacity: .07; }
.work-index { display: block; color: #555e78; font: 700 .72rem ui-monospace, monospace; margin-bottom: 70px; }
.card-tag { margin-bottom: 12px; }
.work-card h3 { margin-bottom: 18px; }
.work-card p:not(.card-tag) { color: #b8bdcd; max-width: 580px; }
.small-link { display: inline-block; margin-top: 9px; }
.cyan { color: var(--cyan); }.magenta { color: var(--magenta); }.gold { color: var(--gold); }.violet { color: #aa8cff; }

.bridge { position: relative; min-height: 840px; display: grid; place-items: center; overflow: hidden; border-block: 1px solid var(--line); }
.bridge-art { position: absolute; inset: -10%; background: url('assets/inkandansi-banner.png') center calc(50% + var(--bridge-shift)) / cover no-repeat; filter: saturate(.95) brightness(.66); }
.bridge-shade { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(5,7,18,.18), rgba(5,7,18,.86) 76%), linear-gradient(180deg, rgba(5,7,18,.78), rgba(5,7,18,.25) 45%, rgba(5,7,18,.86)); }
.bridge-copy { width: min(calc(100% - 48px), 1000px); position: relative; z-index: 2; text-align: center; }
.bridge-copy h2 { font-size: clamp(4rem, 8vw, 8.8rem); text-shadow: 0 10px 50px rgba(0,0,0,.5); }
.bridge-copy p:not(.eyebrow) { max-width: 780px; margin: 30px auto 0; color: #d1d4de; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

.eras-head { max-width: 980px; margin-bottom: 64px; }
.era-list { border-top: 1px solid var(--line); }
.era { display: grid; grid-template-columns: 70px 180px 1fr; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.era > span { color: #596079; font: 700 .7rem ui-monospace, monospace; }
.era strong { font: 800 1rem ui-monospace, monospace; letter-spacing: .08em; }
.era p { margin: 0; color: #adb2c3; }
.era:nth-child(1) strong { color: var(--cyan); }.era:nth-child(2) strong { color: var(--magenta); }.era:nth-child(3) strong { color: var(--gold); }.era:nth-child(4) strong { color: #a888ff; }.era:nth-child(5) strong { color: var(--green); }

.twitch { width: min(calc(100% - 48px), var(--max)); margin: 0 auto clamp(60px, 8vw, 100px); padding: clamp(40px, 7vw, 80px); border: 1px solid var(--line); border-radius: 32px; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(44px, 8vw, 100px); align-items: center; background: radial-gradient(circle at 85% 12%, rgba(125,74,255,.16), transparent 35%), linear-gradient(145deg, #0e132d, #080a19); }
.twitch-copy p:not(.eyebrow) { color: #bec3d2; max-width: 650px; }
.twitch-copy .button { margin-top: 18px; }
.terminal-card { overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: #050712; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.terminal-bar { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 13px; background: #12162c; border-bottom: 1px solid rgba(255,255,255,.08); }
.terminal-bar span { width: 8px; height: 8px; border-radius: 50%; background: #596077; }
.terminal-bar b { margin-left: auto; color: #757d96; font: 500 .65rem ui-monospace, monospace; }
.terminal-body { padding: 26px 28px 30px; min-height: 300px; font: clamp(.86rem, 1.3vw, 1rem)/1.85 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background-image: linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px); background-size: 100% 4px; }
.terminal-body p { margin: 0 0 4px; }
.terminal-body b { color: var(--gold); }.muted { color: #5f6881; }.cursor-block { color: var(--cyan); animation: blink .85s steps(1,end) infinite; }

footer { width: min(calc(100% - 48px), var(--max)); min-height: 170px; margin: 0 auto; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; color: #7f879e; font-size: .82rem; }
footer > p { text-align: right; }
footer a { color: #b8bdcb; text-decoration: none; }
footer a:hover { color: var(--cyan); }
.footer-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 22px; padding-bottom: 34px; border-top: 1px solid rgba(255,255,255,.06); padding-top: 22px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.footer-word { font-family: Georgia, "Times New Roman", serif; font-size: 1rem; letter-spacing: -.02em; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; }
.footer-brand strong { display: block; color: var(--ink); }
.footer-brand small { display: block; color: #707891; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 920px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 115px; }
  .hero-mark { order: -1; }
  .hero-mark img { width: min(70vw, 480px); }
  .hero-copy { margin-inline: auto; }
  .hero-copy > p:not(.eyebrow) { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-image { opacity: .16; }
  .split, .twitch { grid-template-columns: 1fr; }
  .body-copy { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 0; }
  .work-index { margin-bottom: 42px; }
  .mud-story { min-height: 900px; }
  .mud-shade { background: rgba(4,6,16,.84); }
  .era { grid-template-columns: 52px 130px 1fr; }
  footer { grid-template-columns: 1fr; padding: 46px 0 0; gap: 12px; }
  footer > p { text-align: left; }
  .footer-links { grid-column: 1; margin-top: 20px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .site-header { width: calc(100% - 22px); top: 10px; }
  .brand-word { font-size: .95rem; }
  .hero { padding-inline: 20px; }
  h1 { font-size: clamp(3.55rem, 18vw, 5.6rem); }
  .section, .twitch, .bridge-copy { width: min(calc(100% - 32px), var(--max)); }
  .era { grid-template-columns: 40px 1fr; gap: 8px 16px; }
  .era p { grid-column: 2; }
  .mud-story { min-height: 940px; }
  .source-row { flex-direction: column; align-items: flex-start; }
  .twitch { padding: 30px 24px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-image, .mud-bg, .bridge-art { background-position: center !important; }
  .reveal { opacity: 1; transform: none; }
}

.reveal {opacity:1;transform:none;}
@media(max-width:760px){.site-header nav a[href="/blog"]{display:inline-block;} .site-header nav{display:flex;flex-wrap:wrap;gap:2px;} .site-header nav a{font-size:.875rem;padding:4px;} .site-header nav a[href="#work"],.site-header nav a[href="#twitch"]{display:none;}}

/* Keep the directory link and brand inside the navigation on small screens. */
@media(max-width:640px){
  .site-header.blog-nav,.site-header#top{height:auto;min-height:64px;flex-wrap:wrap;gap:8px;padding:12px;}
  .site-header.blog-nav nav,.site-header#top nav{width:100%;justify-content:center;gap:8px;}
  .site-header.blog-nav nav a,.site-header#top nav a{font-size:.875rem;letter-spacing:0;text-transform:none;}
}
