/* AN4RCH UK — shared styles for every page. */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
	--bg: #0b0b0b;
	--ink: #f4eee8;
	--muted: #9a918c;
	--line: #302a2a;
	--accent: #ff2a2a;
	--card: #151313;
	--max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: 'Space Grotesk', sans-serif; overflow-x: hidden; animation: page-in .5s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }
#reactive-background { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .8; }
header, main, footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: auto; }
.mono { font: 12px 'JetBrains Mono', monospace; letter-spacing: .04em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --- Header / nav --- */
header { border-bottom: 1px solid var(--line); }
nav { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; font-weight: 700; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 14px; }
.nav-links a { transition: color .2s ease; position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); }
.nav-links a:hover { color: var(--accent); }

/* --- Home hero --- */
.hero { min-height: 690px; padding: 118px 0 100px; position: relative; overflow: hidden; isolation: isolate; }
.hero:before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: linear-gradient(rgba(255,42,42,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,42,42,.08) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.eyebrow { color: var(--muted); margin-bottom: 25px; }
.eyebrow span { color: var(--ink); }
h1 { max-width: 900px; font-size: clamp(4rem, 10vw, 9.7rem); line-height: .88; letter-spacing: -.085em; margin: 0; font-weight: 600; }
h1 em { color: var(--accent); font-style: normal; }
.hero-bottom { display: flex; justify-content: space-between; align-items: end; margin-top: 62px; max-width: 850px; }
.intro { max-width: 380px; font-size: 17px; line-height: 1.5; }
.scroll { color: var(--muted); }
.selection { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 66px; max-width: 940px; }
.selection-link { min-height: 112px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); background: rgba(21,19,19,.78); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.selection-link:hover { transform: translateY(-5px); border-color: var(--accent); background: #1c1515; }
.selection-link strong { font-size: 22px; letter-spacing: -.04em; }
.selection-link span:last-child { color: var(--muted); align-self: end; }
.orb { position: absolute; width: 245px; height: 245px; right: 6%; top: 190px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 80px rgba(255,42,42,.35); transform: translate(var(--orb-x, 0), var(--orb-y, 0)); transition: transform .15s ease-out; animation: float 7s ease-in-out infinite; }
.orb:after { content: ''; position: absolute; width: 70px; height: 70px; right: 32px; top: 27px; border-radius: 50%; background: var(--bg); }
@keyframes float { 50% { margin-top: 22px; rotate: 12deg; } }

/* --- Inner page header (Work, About, Contact, case studies) --- */
.page-hero { padding: 100px 0 70px; position: relative; isolation: isolate; }
.page-hero:before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .3; background-image: linear-gradient(rgba(255,42,42,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,42,42,.08) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.page-hero h1 { font-size: clamp(3.2rem, 8vw, 7.5rem); }
.page-hero .intro { margin-top: 34px; color: var(--muted); }
.back { display: inline-block; color: var(--muted); margin-bottom: 30px; transition: color .2s; }
.back:hover { color: var(--accent); }

/* --- Sections --- */
section { border-top: 1px solid var(--line); padding: 105px 0; }
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; margin-bottom: 65px; }
.section-number { color: var(--muted); }
h2 { font-size: clamp(2.4rem, 5vw, 5.4rem); line-height: .95; letter-spacing: -.065em; margin: 0; font-weight: 500; }

/* --- Projects --- */
.projects { display: grid; gap: 18px; }
.project { display: grid; grid-template-columns: 1fr 1fr; min-height: 360px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, background .3s, border-color .3s; }
.project:hover { transform: translateY(-6px); background: #1c1515; border-color: var(--accent); }
.project-info { padding: 30px; display: flex; flex-direction: column; justify-content: space-between; }
.project-info h3 { font-size: 28px; letter-spacing: -.04em; margin: 14px 0 8px; }
.project-info p { color: var(--muted); max-width: 280px; line-height: 1.5; margin: 0; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { border: 1px solid #513232; border-radius: 100px; padding: 6px 10px; color: var(--muted); transition: color .2s, border-color .2s; }
.project:hover .tag { color: var(--accent); border-color: var(--accent); }
.visual { position: relative; display: grid; place-items: center; overflow: hidden; background: #252525; min-height: 260px; }
.visual.zero { background: #12131c; }
.visual.one { background: #5e1116; }
.visual.two { background: #a51f1f; }
.visual.three { background: #2d1616; }
.visual-art { width: 64%; aspect-ratio: 1.25; background: #090909; box-shadow: 18px 18px 0 rgba(0,0,0,.35); transform: rotate(-5deg); color: var(--accent); padding: 18px; font: 11px 'JetBrains Mono', monospace; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.project:hover .visual-art { transform: rotate(0) scale(1.06); }
.visual-art strong { display: block; color: white; font: 28px 'Space Grotesk', sans-serif; letter-spacing: -.08em; margin: 30px 0; }
.visual.zero .visual-art { color: #9d8cff; border: 1px solid #272a3d; }
.visual.two .visual-art { border-radius: 50%; background: #f04444; color: #210606; transform: rotate(9deg); }
.visual.two .visual-art strong { color: #210606; font-size: 36px; }
.visual.three .visual-art { background: #ff2a2a; border-radius: 12px; transform: rotate(4deg); color: #130606; }
.visual.three .visual-art strong { color: #130606; }
.more { display: inline-flex; gap: 10px; margin-top: 40px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: color .2s, border-color .2s; }
.more:hover { color: var(--accent); border-color: var(--accent); }

/* --- Case study pages --- */
.case-visual { min-height: 460px; border: 1px solid var(--line); }
.case-visual .visual-art { width: min(64%, 440px); }
.case-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
.case-meta { display: grid; gap: 22px; align-content: start; }
.case-meta div span { display: block; color: var(--muted); margin-bottom: 6px; }
.case-body { max-width: 680px; font-size: 18px; line-height: 1.6; }
.case-body h3 { font-size: 30px; letter-spacing: -.04em; margin: 48px 0 12px; }
.case-body h3:first-child { margin-top: 0; }
.case-body p { color: #d8d0ca; margin: 0 0 16px; }
.case-body ul { color: #d8d0ca; padding-left: 20px; }
.case-body a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.next-project { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.next-project a h2 { transition: color .2s; }
.next-project a:hover h2 { color: var(--accent); }

/* --- About --- */
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
.about-copy { max-width: 620px; font-size: clamp(1.5rem, 3vw, 2.7rem); line-height: 1.08; letter-spacing: -.05em; margin: 0; }
.about-copy span { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); margin-top: 65px; border: 1px solid var(--line); }
.fact { background: var(--bg); padding: 23px; min-height: 105px; transition: background .2s, color .2s; }
.fact:hover { background: var(--accent); color: #130606; }
.fact b { display: block; font-size: 22px; margin-top: 13px; }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.skill { border: 1px solid var(--line); background: rgba(21,19,19,.78); padding: 22px; }
.skill h3 { margin: 12px 0 8px; font-size: 22px; letter-spacing: -.03em; }
.skill p { margin: 0; color: var(--muted); line-height: 1.5; }

/* --- Contact --- */
.contact { background: var(--ink); color: var(--bg); border-top: 0; }
.contact .section-number, .contact .muted { color: #8e8d88; }
.contact h2 { max-width: 830px; }
.contact h2 a { color: var(--accent); border-bottom: 2px solid var(--accent); transition: color .2s, border-color .2s; }
.contact h2 a:hover { color: var(--bg); border-color: var(--bg); }
.contact-row { display: flex; justify-content: space-between; align-items: end; margin-top: 85px; color: #6d6c67; }
.socials { display: flex; gap: 25px; }
.socials a:hover { color: var(--accent); }
.contact-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 60px; }
.contact-option { border: 1px solid #d9d1c9; padding: 22px; transition: border-color .2s, transform .2s; }
.contact-option:hover { border-color: var(--accent); transform: translateY(-4px); }
.contact-option span { display: block; color: #8e8d88; margin-bottom: 10px; }
.contact-option b { font-size: 20px; letter-spacing: -.03em; }

/* --- Footer --- */
footer { background: var(--ink); color: #9e1200; padding: 22px 0; border-top: 1px solid #333; }
footer .wrap { display: flex; justify-content: space-between; }
footer a:hover { color: var(--bg); }

@media (max-width: 700px) {
	.wrap { width: min(100% - 32px, var(--max)); }
	nav { height: 65px; } .nav-links { gap: 16px; font-size: 13px; }
	.hero { min-height: 620px; padding-top: 82px; } .orb { width: 120px; height: 120px; right: -24px; top: 70px; opacity: .55; z-index: -1; } .orb:after { width: 36px; height: 36px; right: 16px; top: 14px; }
	.hero-bottom { display: block; margin-top: 65px; } .scroll { margin-top: 38px; }
	.selection, .skills, .contact-options { grid-template-columns: 1fr; }
	.selection { margin-top: 48px; }
	.page-hero { padding: 70px 0 50px; }
	section { padding: 72px 0; } .section-head, .about-grid, .case-grid { grid-template-columns: 1fr; gap: 22px; margin-bottom: 42px; }
	.project { grid-template-columns: 1fr; } .visual { min-height: 240px; order: -1; } .project-info { min-height: 300px; }
	.case-visual { min-height: 300px; }
	.next-project { display: block; }
	.contact-row { display: block; margin-top: 60px; } .socials { margin-top: 30px; }
	footer .wrap { display: block; } footer .wrap a { display: block; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* --- Project detail page extras --- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--bg); padding: 26px 22px; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.06em; color: var(--accent); }
.stat span { color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature { border: 1px solid var(--line); background: rgba(21,19,19,.78); padding: 24px; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--accent); transform: translateY(-4px); }
.feature h3 { margin: 12px 0 8px; font-size: 21px; letter-spacing: -.03em; }
.feature p { margin: 0; color: var(--muted); line-height: 1.5; }
.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.stack .tag { font-size: 13px; padding: 9px 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border: 1px solid var(--accent); color: var(--ink); transition: background .2s, color .2s; }
.button.primary { background: var(--accent); color: var(--bg); }
.button:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.timeline { display: grid; gap: 0; border-left: 1px solid var(--line); margin-left: 6px; }
.step { position: relative; padding: 0 0 34px 28px; }
.step::before { content: ''; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.step span { color: var(--muted); }
.step h3 { margin: 6px 0; font-size: 21px; letter-spacing: -.03em; }
.step p { margin: 0; color: #d8d0ca; line-height: 1.55; max-width: 620px; }
@media (max-width: 700px) {
	.stats { grid-template-columns: repeat(2, 1fr); }
	.features { grid-template-columns: 1fr; }
}
.feature code, .case-body code { font: 13px 'JetBrains Mono', monospace; color: var(--accent); }

/* --- The an4rch logo as artwork --- */
.brand img { width: 26px; height: auto; margin-right: 10px; filter: drop-shadow(0 0 6px rgba(255,42,42,.4)); }
.visual.zero { background: radial-gradient(circle at 50% 50%, #2a0c0c 0%, #120707 45%, #0b0b0b 100%); }
.visual-logo { width: min(52%, 260px); height: auto; transform: rotate(-6deg); filter: drop-shadow(0 0 22px rgba(255,42,42,.35)); transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .45s; }
.project:hover .visual-logo { transform: rotate(0) scale(1.06); filter: drop-shadow(0 0 34px rgba(255,42,42,.55)); }
.case-visual .visual-logo { width: min(38%, 340px); animation: logo-float 8s ease-in-out infinite; }
@keyframes logo-float { 50% { transform: rotate(3deg) translateY(-10px); } }
@media (max-width: 700px) { .case-visual .visual-logo { width: min(62%, 260px); } }


/* =====================================================================
   Hyprland rice.
   The site as a tiled Wayland desktop: a dark wallpaper, a floating
   waybar for navigation, and every block is a rounded, frosted window
   with a gaps-and-gradient border that lights up when it has focus.
   ===================================================================== */
:root {
	--wall: #0d0b10;
	--base: rgba(22, 18, 26, .72);
	--base-solid: #17131b;
	--surface: rgba(255, 255, 255, .04);
	--text: #ece6ef;
	--subtext: #a59cab;
	--red: #ff4d5e;
	--peach: #ff9e64;
	--mauve: #c49bff;
	--bg: var(--wall);
	--ink: var(--text);
	--muted: var(--subtext);
	--line: rgba(255, 255, 255, .08);
	--accent: var(--red);
	--card: var(--base);
	--radius: 14px;
	--gaps: 10px;
	--active-border: linear-gradient(135deg, var(--red), var(--peach) 45%, var(--mauve));
	--particle-a: 255, 77, 94;
	--particle-b: 196, 155, 255;
}

/* Wallpaper: soft colour blobs behind everything, like a blurred desktop background. */
body {
	background:
		radial-gradient(60vw 50vw at 85% 10%, rgba(255, 77, 94, .22), transparent 60%),
		radial-gradient(50vw 45vw at 5% 70%, rgba(196, 155, 255, .16), transparent 60%),
		radial-gradient(40vw 40vw at 60% 110%, rgba(255, 158, 100, .14), transparent 60%),
		var(--wall);
	background-attachment: fixed;
}
#reactive-background { opacity: .5; }
::selection { background: var(--red); color: var(--wall); }

/* --- Waybar: the header floats as a rounded bar with workspace pills --- */
header { border-bottom: 0; position: sticky; top: 0; z-index: 20; padding-top: var(--gaps); }
nav { height: 52px; padding: 0 10px 0 16px; border-radius: var(--radius); background: var(--base); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.brand { font-family: 'JetBrains Mono', monospace; font-size: 14px; }
.brand img { filter: drop-shadow(0 0 8px rgba(255, 77, 94, .5)); }
.brand::after { content: ''; width: 8px; height: 8px; margin-left: 12px; border-radius: 50%; background: #9ece6a; box-shadow: 0 0 8px #9ece6a; }
.nav-links { gap: 6px; font: 13px 'JetBrains Mono', monospace; }
.nav-links a { padding: 7px 12px; border-radius: 9px; background: var(--surface); transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(255, 77, 94, .14); color: var(--text); }
.nav-links a[aria-current="page"] { background: var(--red); color: var(--wall); }
.nav-links a[aria-current="page"]::after { display: none; }
.nav-links a::before { content: counter(ws) ' '; counter-increment: ws; opacity: .55; }
.nav-links { counter-reset: ws; }

/* --- Windows: every card, tile and panel is a tiled window --- */
.selection-link, .project, .skill, .feature, .contact-option, .case-visual, .stats, .facts {
	position: relative;
	border-radius: var(--radius);
	background: var(--base);
	border: 2px solid transparent;
	background-clip: padding-box;
	backdrop-filter: blur(16px) saturate(140%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	box-shadow: 0 12px 34px rgba(0, 0, 0, .38);
}
/* The window border: dim when idle, the gradient "active border" on focus. */
.selection-link::before, .project::before, .skill::before, .feature::before, .contact-option::before, .case-visual::before {
	content: ''; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 2;
	background: rgba(255, 255, 255, .09);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
	transition: opacity .25s;
}
.selection-link::after, .project::after, .skill::after, .feature::after, .contact-option::after {
	content: ''; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 2; opacity: 0;
	background: var(--active-border); background-size: 200% 200%;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
	transition: opacity .25s;
}
.selection-link:hover::after, .project:hover::after, .skill:hover::after, .feature:hover::after, .contact-option:hover::after { opacity: 1; animation: border-spin 3s linear infinite; }
@keyframes border-spin { 50% { background-position: 100% 100%; } }
.selection-link:hover, .project:hover, .feature:hover, .contact-option:hover { background: var(--base); border-color: transparent; box-shadow: 0 16px 44px rgba(255, 77, 94, .16), 0 12px 34px rgba(0, 0, 0, .38); }
.project, .case-visual { overflow: hidden; }

/* Hyprland's open animation: windows pop in slightly scaled. */
.selection-link, .project, .skill, .feature, .contact-option { animation: window-open .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.selection-link:nth-child(2), .skill:nth-child(2), .feature:nth-child(3n+2), .contact-option:nth-child(2) { animation-delay: .06s; }
.selection-link:nth-child(3), .skill:nth-child(3), .feature:nth-child(3n), .contact-option:nth-child(3) { animation-delay: .12s; }
@keyframes window-open { from { opacity: 0; transform: scale(.94); } }

/* Gaps instead of hairlines: sections float apart, no rules between them. */
section { border-top: 0; }
.selection, .skills, .features, .contact-options, .projects { gap: var(--gaps); }

/* --- Type: terminal labels, sans headlines with a soft glow --- */
h1, h2 { font-weight: 700; }
h1 em { background: var(--active-border); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow::before, .section-number::before { content: '❯ '; color: var(--red); }
.tag { border-color: var(--line); background: var(--surface); }
.project:hover .tag { color: var(--text); border-color: rgba(255, 77, 94, .5); background: rgba(255, 77, 94, .12); }

/* Hero: the grid becomes faint dotted desktop, the orb a glowing gradient sphere. */
.hero:before, .page-hero:before { opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.5px); background-size: 22px 22px; }
.orb { background: radial-gradient(circle at 35% 30%, #ffb3a1, var(--red) 45%, #6b1d5a 100%); box-shadow: 0 0 120px rgba(255, 77, 94, .45), inset -20px -30px 60px rgba(0, 0, 0, .35); }
.orb:after { background: var(--wall); box-shadow: inset 0 0 12px rgba(255, 77, 94, .5); }

/* Artwork panels: a mini wallpaper inside each window. */
.visual, .visual.zero { background: radial-gradient(circle at 70% 20%, rgba(255, 77, 94, .45), transparent 55%), radial-gradient(circle at 20% 90%, rgba(196, 155, 255, .35), transparent 55%), #120e15; }
.visual-logo { filter: drop-shadow(0 0 26px rgba(255, 77, 94, .5)); }
.project-info { position: relative; }
.project-info::before { content: 'kitty — ~/projects'; position: absolute; top: 12px; right: 16px; font: 11px 'JetBrains Mono', monospace; color: var(--subtext); opacity: .7; }

/* Stats and facts: tiled panes with gaps showing the wallpaper through. */
.stats, .facts { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; gap: var(--gaps); }
.stat, .fact { background: var(--base); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.stat b { background: var(--active-border); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact:hover { background: rgba(255, 77, 94, .85); color: var(--wall); }

/* Buttons: rounded pills, gradient when primary. */
.button { border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.button.primary { background: var(--active-border); border-color: transparent; color: var(--wall); font-weight: 700; }
.button:hover { background: var(--text); color: var(--wall); border-color: var(--text); }
.timeline { border-left-color: var(--line); }
.step::before { background: var(--active-border); box-shadow: 0 0 10px rgba(255, 77, 94, .6); }
.case-body a { color: var(--peach); border-bottom-color: rgba(255, 158, 100, .4); }
.feature code, .case-body code { color: var(--peach); background: var(--surface); padding: 1px 5px; border-radius: 5px; }

/* Contact: one big floating window with the gradient border always on. */
.contact { background: transparent; color: var(--text); }
.contact > .wrap { background: var(--base); border-radius: 20px; padding: 48px; position: relative; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.contact > .wrap::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--active-border); pointer-events: none; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.contact .section-number, .contact .muted, .contact-row { color: var(--subtext); }
.contact h2 a { color: var(--red); border-color: var(--red); }
.contact h2 a:hover { color: var(--text); border-color: var(--text); }
.contact-option { border-color: transparent; }
.contact-option span { color: var(--subtext); }

/* Footer: a second, smaller waybar at the bottom. */
footer { background: transparent; color: var(--subtext); border-top: 0; padding: 0 0 var(--gaps); }
footer .wrap { padding: 14px 18px; border-radius: var(--radius); background: var(--base); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); font-family: 'JetBrains Mono', monospace; }
footer a:hover { color: var(--red); }
.skip { color: var(--wall); border-radius: 8px; }

@media (max-width: 700px) {
	.contact > .wrap { padding: 28px 20px; }
	.nav-links a { padding: 6px 8px; }
	.nav-links a::before { display: none; }
	.brand::after { display: none; }
	.project-info::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .selection-link:hover::after, .project:hover::after { animation: none; } }

/* Hero avatar: the GitHub profile picture as a floating window. */
.orb { width: 240px; height: 240px; padding: 3px; border-radius: 26px; background: var(--active-border); box-shadow: 0 0 90px rgba(255, 77, 94, .35), 0 24px 60px rgba(0, 0, 0, .5); animation: avatar-float 7s ease-in-out infinite; }
.orb:after { display: none; }
.orb-avatar { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 23px; background: var(--base-solid); }
@keyframes avatar-float { 50% { margin-top: 18px; rotate: 3deg; } }
@media (max-width: 700px) { .orb { width: 120px; height: 120px; border-radius: 18px; } .orb-avatar { border-radius: 15px; } }

/* Header brand: name only, no logo or status dot. */
.brand::after { display: none; }

/* Red only: no rainbow gradients. Every accent is a shade of the brand red. */
:root {
	--peach: #ff7a85;
	--mauve: #b3122a;
	--active-border: var(--red);
	--particle-b: 179, 18, 42;
}
body {
	background:
		radial-gradient(60vw 50vw at 85% 10%, rgba(255, 77, 94, .2), transparent 60%),
		radial-gradient(50vw 45vw at 5% 70%, rgba(150, 12, 30, .22), transparent 60%),
		radial-gradient(40vw 40vw at 60% 110%, rgba(255, 77, 94, .1), transparent 60%),
		var(--wall);
	background-attachment: fixed;
}
h1 em, .stat b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--red); }
.button.primary { background: var(--red); color: var(--wall); }
.orb { background: var(--red); }
.visual, .visual.zero { background: radial-gradient(circle at 70% 20%, rgba(255, 77, 94, .45), transparent 55%), radial-gradient(circle at 20% 90%, rgba(120, 10, 25, .55), transparent 55%), #120e15; }
.selection-link:hover::after, .project:hover::after, .skill:hover::after, .feature:hover::after, .contact-option:hover::after { animation: none; }

/* Home: four boxes (Work, About, Contact, GitHub) across the full width. */
.selection { grid-template-columns: repeat(4, 1fr); max-width: none; }
.selection-link span:last-child { white-space: nowrap; }
@media (max-width: 1000px) { .selection { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .selection { grid-template-columns: 1fr; } }

/* Socials box on the home page: a row of small link pills. */
.social-links { display: flex; flex-wrap: wrap; gap: 6px; align-self: stretch !important; color: var(--text) !important; }
.social-links a { padding: 5px 9px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s; }
.social-links a:hover { background: var(--red); border-color: var(--red); color: var(--wall); }
.socials { flex-wrap: wrap; gap: 18px; }
.selection-link .social-links { white-space: normal; }
