/* Look and feel shared with asn1click.com: dark night background, animated
   aurora blobs, a faint grid, gradient headings and glass cards. */
:root {
  color-scheme: dark;
  --bg: oklch(0.16 0.03 270);
  --fg: oklch(0.97 0.01 250);
  --muted: oklch(0.72 0.03 260);
  --card: oklch(0.22 0.035 270 / 35%);
  --line: oklch(1 0 0 / 12%);
  --brand-1: oklch(0.65 0.23 300);   /* electric violet */
  --brand-2: oklch(0.78 0.19 220);   /* cyan blue */
  --brand-3: oklch(0.72 0.21 160);   /* teal / mint */
  --brand-4: oklch(0.72 0.21 30);    /* warm amber */
  --accent: var(--brand-2);
  --gradient: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3));
  --radius: 1rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Aurora background */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora i {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}
.aurora i:nth-child(1) { top: -10rem; left: -10rem; width: 55vw; height: 55vw; background: color-mix(in oklab, var(--brand-1) 40%, transparent); animation: aurora1 22s ease-in-out infinite; }
.aurora i:nth-child(2) { top: 33%; right: -8rem; width: 50vw; height: 50vw; background: color-mix(in oklab, var(--brand-2) 35%, transparent); animation: aurora2 28s ease-in-out infinite; }
.aurora i:nth-child(3) { bottom: -10rem; left: 25%; width: 55vw; height: 55vw; background: color-mix(in oklab, var(--brand-3) 40%, transparent); filter: blur(140px); animation: aurora3 32s ease-in-out infinite; }
.aurora i:nth-child(4) { top: 50%; left: 50%; width: 40vw; height: 40vw; background: color-mix(in oklab, var(--brand-4) 25%, transparent); filter: blur(140px); transform: translate(-50%, -50%); animation: aurora4 36s ease-in-out infinite; }
.aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(var(--fg) 1px, transparent 1px),
    linear-gradient(90deg, var(--fg) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}
@keyframes aurora1 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.85; }
  25%  { transform: translate(18vw, 8vh) scale(1.2) rotate(20deg); opacity: 1; }
  50%  { transform: translate(10vw, 22vh) scale(0.95) rotate(-10deg); opacity: 0.7; }
  75%  { transform: translate(-8vw, 12vh) scale(1.15) rotate(15deg); opacity: 0.95; }
}
@keyframes aurora2 {
  0%, 100% { transform: translate(0, 0) scale(1.1) rotate(0deg); opacity: 0.8; }
  33%  { transform: translate(-16vw, 14vh) scale(0.9) rotate(-25deg); opacity: 1; }
  66%  { transform: translate(-6vw, -10vh) scale(1.25) rotate(18deg); opacity: 0.75; }
}
@keyframes aurora3 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.9; }
  30%  { transform: translate(14vw, -14vh) scale(1.25) rotate(22deg); opacity: 1; }
  60%  { transform: translate(-10vw, -6vh) scale(0.95) rotate(-18deg); opacity: 0.7; }
}
@keyframes aurora4 {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.7; }
  25%  { transform: translate(-35%, -60%) scale(1.3) rotate(30deg); opacity: 0.95; }
  50%  { transform: translate(-55%, -40%) scale(0.9) rotate(-20deg); opacity: 0.6; }
  75%  { transform: translate(-65%, -55%) scale(1.2) rotate(15deg); opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora i { animation: none; }
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand::before {
  content: "B";
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 10px 40px -10px color-mix(in oklab, var(--brand-2) 50%, transparent);
  color: var(--bg);
  font-weight: 700;
}
.site-header nav { display: flex; gap: 0.25rem; }
.site-header nav a {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}
.site-header nav a:hover { color: var(--fg); background: var(--card); }

main {
  flex: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

/* Hero */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--brand-2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }
h1 {
  margin: 1.5rem 0 0;
  max-width: 56rem;
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin: 1.5rem 0 0;
  max-width: 42rem;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--muted);
}

section { margin-top: 5rem; }
h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
ul { list-style: none; margin: 0; padding: 0; }
a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--accent) 60%, transparent);
  text-underline-offset: 0.2em;
}
a:hover { color: var(--accent); }

/* Glass card */
.card, .projects li {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: border-color 0.2s;
}
.card::before, .projects li::before {
  content: "";
  position: absolute;
  top: -2.5rem;
  right: -2.5rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, color-mix(in oklab, var(--brand-1) 30%, transparent), color-mix(in oklab, var(--brand-3) 30%, transparent));
  filter: blur(32px);
  transition: transform 0.4s;
  pointer-events: none;
}
.projects li:hover { border-color: color-mix(in oklab, var(--brand-2) 40%, transparent); }
.projects li:hover::before { transform: scale(1.5); }

/* Project list */
.projects { display: grid; gap: 1rem; }
.projects li {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 1.75rem;
  align-items: start;
  padding: 1.5rem;
}
.projects li > * { position: relative; }
.kicker {
  margin: 0 0 0.35rem !important;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
}
.cat {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  letter-spacing: 0.1em;
}
.cat.eng { color: var(--brand-3); }
.cat.ai { color: var(--brand-1); }
.cat.tools { color: var(--brand-4); }
.projects h3 { margin: 0 0 0.5rem; font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.projects h3 a { text-decoration: none; }
.projects p { margin: 0; color: var(--muted); }
.projects .featured h3 { font-size: 2rem; }
.more { display: inline-block; margin-top: 1rem; font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in oklab, var(--brand-1) 35%, transparent), transparent 60%),
    radial-gradient(circle at 80% 80%, color-mix(in oklab, var(--brand-3) 30%, transparent), transparent 60%),
    oklch(0.2 0.035 270 / 60%);
  text-decoration: none;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb span {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stack {
  margin-top: 0.9rem !important;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem !important;
  color: var(--muted);
  opacity: 0.85;
}
@media (max-width: 44rem) {
  .projects li { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem; }
}

.contact-card { padding: 2rem; }
.contact-card p { position: relative; margin: 0; font-size: 1.15rem; }

footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
footer a { color: inherit; }

/* Text pages (privacy, contact, project details) */
.page { max-width: 48rem; padding-top: 3rem; }
.page h1 { font-size: clamp(2.25rem, 7vw, 3.5rem); }
.page section { margin-top: 3rem; }
.page h2 {
  margin: 0 0 1rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
}
.page p { margin: 0 0 1rem; }
.page address { font-style: normal; margin: 0 0 1rem; }
.back { display: inline-block; font-size: 0.9rem; color: var(--muted); text-decoration: none; }
.empty { color: var(--muted); margin: 0; }

/* Project detail pages */
.project .links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.5rem 0 0; }
.project .shot { margin-top: 2.5rem; }
.project ul.points { list-style: disc; padding-left: 1.25rem; margin: 0 0 1rem; }
.project ul.points li { padding: 0.2rem 0; }
.project ul.points li::marker { color: var(--brand-2); }

/* Contact form */
.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--card);
  backdrop-filter: blur(12px);
  color: var(--fg);
  font: inherit;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid color-mix(in oklab, var(--brand-2) 60%, transparent);
  outline-offset: 1px;
}
.field textarea { resize: vertical; }
.cf-turnstile { margin-bottom: 1.5rem; }
button {
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 10px 40px -10px color-mix(in oklab, var(--brand-2) 50%, transparent);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button:hover { opacity: 0.9; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.form-feedback { margin-top: 1.25rem; font-weight: 600; }
.form-feedback.error { color: var(--brand-4); }
.page .form-note { margin-top: 1.5rem; font-size: 0.85rem; color: var(--muted); }
