/* =========================================================
   Portfolio — design system + components
   Dark theme is the default; `html.light` switches to light.
   ========================================================= */

/* ---------- Theme tokens ---------- */
:root {
  --radius: 1.15rem;
  --r-lg: var(--radius);
  --r-xl: calc(var(--radius) + 4px);
  --r-2xl: calc(var(--radius) + 8px);
  --r-3xl: calc(var(--radius) + 12px);
  /* Palette: Zero Black #050505 + Ghost Green #D7FFE0 */
  --background: #050505;
  --foreground: #F2F5F2;
  --surface: #0B0C0B;
  --elevated: #111311;
  --primary: #D7FFE0;
  --primary-foreground: #050505;
  --secondary: #121412;
  --secondary-foreground: #E6ECE7;
  --muted-foreground: #9BA39C;
  --accent: #142219;
  --accent-foreground: #D7FFE0;
  --border: #1E221F;
  --glow: #D7FFE0;
  --glass-bg: rgb(18 20 18 / .6);
  --glass-border: rgb(215 255 224 / .10);
  --hair: rgb(215 255 224 / .07);
  --gradient-accent: linear-gradient(135deg, #D7FFE0, #A9F0C0);
  --gradient-text: linear-gradient(100deg, #F7FFF9 0%, #D7FFE0 45%, #9BE8B5 100%);
  --gradient-soft: radial-gradient(120% 90% at 50% -10%, rgb(215 255 224 / .09) 0%, transparent 65%);
  --shadow-soft: 0 1px 2px rgb(0 0 0 / .5), 0 10px 30px rgb(0 0 0 / .45);
  --shadow-glow: 0 0 0 1px rgb(215 255 224 / .22), 0 18px 50px rgb(215 255 224 / .12);
  --lift-border: rgb(215 255 224 / .38);

  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Sora", "Plus Jakarta Sans", ui-sans-serif, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

html.light {
  --background: #F6FBF7;
  --foreground: #050505;
  --surface: #FFFFFF;
  --elevated: #FAFDFB;
  --primary: #17693D;            /* deep Ghost Green, readable on light backgrounds */
  --primary-foreground: #D7FFE0;
  --secondary: #EAF5EC;
  --secondary-foreground: #1A1F1B;
  --muted-foreground: #5B635D;
  --accent: #D7FFE0;
  --accent-foreground: #0B3D22;
  --border: #DFE8E1;
  --glow: #D7FFE0;
  --glass-bg: rgb(255 255 255 / .72);
  --glass-border: rgb(5 5 5 / .08);
  --hair: rgb(5 5 5 / .07);
  --gradient-accent: linear-gradient(135deg, #050505, #1C2A20);
  --gradient-text: linear-gradient(100deg, #050505 0%, #17693D 55%, #2E9A5E 100%);
  --gradient-soft: radial-gradient(120% 90% at 50% -10%, rgb(215 255 224 / .9) 0%, transparent 65%);
  --shadow-soft: 0 1px 2px rgb(5 5 5 / .05), 0 8px 24px rgb(5 5 5 / .06);
  --shadow-glow: 0 0 0 1px rgb(23 105 61 / .18), 0 18px 44px rgb(23 105 61 / .14);
  --lift-border: rgb(23 105 61 / .35);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; line-height: 1.5; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.03em; font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; background: none; }
button { cursor: pointer; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: color-mix(in srgb, var(--primary) 30%, transparent); }
[data-lucide], .lucide { width: 1em; height: 1em; flex-shrink: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
.section { position: relative; isolation: isolate; padding-block: 6rem; }
.section.clip { overflow: hidden; }
.head { max-width: 42rem; }
.head.center { margin-inline: auto; text-align: center; }
.center { text-align: center; }
.grid { display: grid; }
.muted { color: var(--muted-foreground); }
.primary { color: var(--primary); }
.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); }
.text-gradient { background: var(--gradient-text); color: transparent; -webkit-background-clip: text; background-clip: text; }
.bg-accent-gradient { background-image: var(--gradient-accent); }
.hairline { border: 1px solid var(--hair); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 640px) {
  .container { padding-inline: 2rem; }
  .section { padding-block: 7rem; }
}

/* ---------- Surfaces ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
}
.card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.lift:hover { box-shadow: var(--shadow-glow); border-color: var(--lift-border); transform: translateY(-6px); }

.grid-lines {
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 6%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--primary) 6%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
}
.grid-dots { background-image: radial-gradient(color-mix(in srgb, var(--primary) 16%, transparent) 1px, transparent 1px); background-size: 26px 26px; }
.noise {
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='0.5'/%3E%3C/svg%3E");
}
.bg-layer { position: absolute; inset: 0; z-index: -10; pointer-events: none; overflow: hidden; }
.bg-layer > * { position: absolute; inset: 0; }
.bg-soft { background-image: var(--gradient-soft); }

/* Animated gradient border */
.grad-border { position: relative; }
.grad-border::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 90%, transparent), color-mix(in srgb, var(--primary) 45%, transparent), color-mix(in srgb, var(--primary) 12%, transparent), color-mix(in srgb, var(--primary) 90%, transparent)) 0 0 / 300% 300%;
  animation: border-pan 8s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* ---------- Small pieces ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 999px; padding: .25rem .75rem;
  font-family: var(--font-mono); font-size: 10px; line-height: 1rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted-foreground);
}
.eyebrow [data-lucide], .eyebrow .lucide { width: .875rem; height: .875rem; color: var(--primary); }
.h2 { margin-top: 1.25rem; font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; text-wrap: balance; }
.lead { margin-top: 1rem; font-size: 1rem; line-height: 1.625; color: var(--muted-foreground); }
.label-mono { font-family: var(--font-mono); font-size: 10px; line-height: 1rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-foreground); }
@media (min-width: 640px) { .h2 { font-size: 2.25rem; line-height: 2.5rem; } }

.chip {
  border-radius: 999px; padding: .25rem .75rem;
  background: color-mix(in oklab, var(--secondary) 60%, transparent);
  border: 1px solid var(--hair);
  font-size: 11px; line-height: 1rem; font-weight: 500; letter-spacing: .025em;
  color: var(--secondary-foreground); white-space: nowrap;
}
.pill {
  border-radius: 999px; padding: .25rem .75rem;
  background: color-mix(in oklab, var(--secondary) 50%, transparent);
  border: 1px solid var(--hair);
  font-size: .75rem; line-height: 1rem; font-weight: 500; color: var(--muted-foreground);
}
.tag {
  border-radius: 999px; padding: .25rem .625rem;
  background: color-mix(in oklab, var(--secondary) 50%, transparent);
  border: 1px solid var(--hair);
  font-family: var(--font-mono); font-size: 10px; line-height: 1rem; letter-spacing: .025em;
  color: var(--muted-foreground); transition: color .15s;
}
.pill-row, .tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Chip flow: chip — animated dash — chip */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.flow-step { display: flex; align-items: center; gap: .5rem; }
.flow-line line { stroke: var(--primary); stroke-opacity: .6; stroke-width: 2; stroke-linecap: round; }
.animate-flow { stroke-dasharray: 6 10; animation: flow-dash 1.6s linear infinite; }

.icon-box {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 2.5rem; height: 2.5rem; border-radius: var(--r-xl);
  background: var(--accent); color: var(--accent-foreground);
  transition: background-color .15s, color .15s, transform .3s;
}
.icon-box [data-lucide], .icon-box .lucide { width: 1.25rem; height: 1.25rem; }
.icon-box.grad { background: var(--gradient-accent); color: var(--primary-foreground); }
.icon-box.lg { width: 2.75rem; height: 2.75rem; }
.icon-box.xl { width: 3rem; height: 3rem; border-radius: var(--r-2xl); }
.group:hover .icon-box.to-primary { background: var(--primary); color: var(--primary-foreground); }
.group:hover .icon-box.grow { transform: scale(1.1); }

/* Live "ping" dot */
.ping { position: relative; display: flex; width: .5rem; height: .5rem; }
.ping::before, .ping::after { content: ""; position: absolute; inset: 0; border-radius: 999px; background: var(--dot, oklch(69.6% .17 162.48)); }
.ping::before { animation: ping 1s cubic-bezier(0, 0, .2, 1) infinite; opacity: .75; background: var(--dot-halo, oklch(76.5% .177 163.223)); }
.ping.primary { --dot: var(--primary); --dot-halo: var(--primary); }
.ping.primary::before { opacity: .6; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  overflow: hidden; border-radius: 999px; padding: .75rem 1.5rem;
  font-size: .875rem; line-height: 1.25rem; font-weight: 600;
  transition: all .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn [data-lucide], .btn .lucide { width: 1rem; height: 1rem; }
.btn-primary { background-image: var(--gradient-accent); color: var(--primary-foreground); box-shadow: var(--shadow-soft); }
.btn-primary .btn-label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .5rem; }
.btn-primary .btn-label [data-lucide], .btn-primary .btn-label .lucide { transition: transform .3s; }
.btn-primary:hover .btn-label [data-lucide], .btn-primary:hover .btn-label .lucide { transform: translateX(3px); }
.btn-primary .shine { position: absolute; inset: 0; background: rgb(255 255 255 / .25); transform: translateX(-100%); transition: transform .5s; }
.btn-primary:hover .shine { transform: translateX(0); }
.btn-glass { color: var(--foreground); }
.btn-glass:hover { border-color: color-mix(in oklab, var(--primary) 50%, transparent); }
.btn-glass .ic-primary { color: var(--primary); }
.btn-block { width: 100%; padding: .75rem 1.25rem; }
.btn:disabled { opacity: .6; pointer-events: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-row.center { justify-content: center; }

/* ---------- App shell: fixed sidebar (desktop), top bar + drawer (mobile) ---------- */
.shell-main { min-width: 0; }
#app { container: main / inline-size; }
.page { animation: page-in .45s var(--ease-out) both; }
.page > .section:first-child { padding-top: 3.5rem; }
@container main (min-width: 640px) { .page > .section:first-child { padding-top: 4.5rem; } }

.icon-btn { display: inline-flex; border-radius: 999px; padding: .5rem; color: var(--muted-foreground); transition: all .15s; }
.icon-btn:hover { transform: translateY(-2px); color: var(--foreground); border-color: color-mix(in oklab, var(--primary) 50%, transparent); }
.icon-btn [data-lucide], .icon-btn .lucide { width: 1rem; height: 1rem; }

.sidebar { display: none; }
.sb { display: flex; flex-direction: column; gap: 1.5rem; height: 100%; overflow-y: auto; padding: 0 1.5rem; }
.sb-nav { display: flex; flex: 1; flex-direction: column; gap: 1.75rem; }
.sb-list { display: grid; gap: .25rem; margin-inline: -.5rem; }
.sb-link {
  display: flex; align-items: center; gap: .75rem; border-radius: .5rem; padding: .5rem;
  font-size: .875rem; line-height: 1.5rem; font-weight: 600; color: var(--muted-foreground);
  transition: background-color .15s, color .15s;
}
.sb-link > [data-lucide], .sb-link > .lucide { width: 1.25rem; height: 1.25rem; transition: color .15s; }
.sb-link:hover { background: var(--secondary); color: var(--foreground); }
.sb-link.active { background: var(--secondary); color: var(--foreground); box-shadow: inset 0 0 0 1px var(--hair); }
.sb-link.active > [data-lucide], .sb-link.active > .lucide { color: var(--primary); }
.sb-heading { font-size: .75rem; line-height: 1.5rem; font-weight: 600; color: var(--muted-foreground); }
.sb-badge {
  display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem;
  border-radius: .5rem; border: 1px solid var(--hair); background: var(--elevated); color: var(--muted-foreground); transition: all .15s;
}
.sb-badge [data-lucide], .sb-badge .lucide { width: .875rem; height: .875rem; }
.sb-link:hover .sb-badge { border-color: color-mix(in srgb, var(--primary) 45%, transparent); color: var(--primary); }
/* Pinned to the bottom: on short screens the links scroll under it, so the CTA stays in view. */
.sb-bottom { position: sticky; bottom: 0; margin: auto -1.5rem 0; padding: 0 1.5rem 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface); }
.sb-bottom::before { content: ""; position: absolute; inset: auto 0 100%; height: 1rem; background: linear-gradient(to top, var(--surface), transparent); pointer-events: none; }
/* Profile row at the top of the sidebar: avatar + name (links home), theme toggle on the right. */
.sb-profile { display: flex; flex-shrink: 0; align-items: center; gap: .75rem; padding-block: 1rem; border-bottom: 1px solid var(--hair); }
.sb-me { display: flex; flex: 1; align-items: center; gap: .75rem; min-width: 0; }
.sb-me .avatar { transition: transform .15s; }
.sb-me:hover .avatar { transform: scale(1.05); }
.sb-profile .who { flex: 1; min-width: 0; }
.sb-profile .who b, .sb-profile .who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-profile .who b { font-size: .875rem; font-weight: 600; }
.sb-profile .who small { font-size: .75rem; color: var(--muted-foreground); }
.avatar { position: relative; flex-shrink: 0; width: 2.5rem; height: 2.5rem; }
.avatar img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; object-position: center 18%; background: var(--accent); }
.avatar .ping { position: absolute; right: 0; bottom: 0; border-radius: 999px; box-shadow: 0 0 0 2px var(--surface); }

.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 1rem; height: 4rem; padding-inline: 1rem;
  background: var(--glass-bg); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
}
.topbar-title { flex: 1; min-width: 0; font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -.025em; }
.topbar .avatar { width: 2rem; height: 2rem; }
.menu-btn { display: inline-flex; margin-left: -.5rem; border-radius: .5rem; padding: .5rem; color: var(--foreground); }
.menu-btn [data-lucide], .menu-btn .lucide { width: 1.5rem; height: 1.5rem; }

.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; transition: visibility 0s .3s; }
.drawer.open { visibility: visible; transition: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .7); opacity: 0; transition: opacity .3s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; inset: 0 auto 0 0; width: min(18rem, calc(100% - 4rem));
  background: var(--surface); border-right: 1px solid var(--hair);
  transform: translateX(-100%); transition: transform .3s var(--ease-out);
}
.drawer.open .drawer-panel { transform: none; }
.drawer-close { position: absolute; top: 1rem; left: calc(100% + .75rem); display: inline-flex; padding: .5rem; color: #fff; opacity: 0; transition: opacity .3s; }
.drawer.open .drawer-close { opacity: 1; }
.drawer-close [data-lucide], .drawer-close .lucide { width: 1.5rem; height: 1.5rem; }

@media (min-width: 1024px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: block; width: 18rem; background: var(--surface); border-right: 1px solid var(--hair); }
  .shell-main { padding-left: 18rem; }
  .topbar, .drawer { display: none; }
}
/* Desktop sidebar spacing follows the screen height: compact on short laptops (~650px tall),
   growing to roomy by ~900px, so the menu fills the sidebar instead of leaving a big empty gap. */
@media (min-width: 1024px) {
  .sb { gap: clamp(1rem, 6.15vh - 1.5rem, 2rem); }
  .sb-profile { padding-block: clamp(.75rem, 3.08vh - .5rem, 1rem); }
  .sb-nav { gap: clamp(1rem, 9.23vh - 2.75rem, 2.5rem); }
  .sb-link { padding-block: clamp(.3125rem, 2.31vh - .625rem, .6875rem); }
  .sb-bottom { padding-bottom: clamp(.75rem, 6.15vh - 1.75rem, 1.5rem); }
}

/* ---------- Cursor spotlight + particles ---------- */
.spotlight {
  position: fixed; top: 0; left: 0; z-index: 5; width: 20rem; height: 20rem; border-radius: 999px;
  pointer-events: none; opacity: .4; mix-blend-mode: screen;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 14%, transparent) 0%, transparent 62%);
}
.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -10; }
.particles span {
  position: absolute; border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 50%, transparent);
  animation: drift linear infinite;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* 3D tilt wrapper (transform is set from JS) */
.tilt { height: 100%; transition: transform .3s; will-change: transform; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 3.5rem 0 2rem; }
.hero .grid-lines { -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent); }
.hero-grid { display: grid; align-items: center; gap: 4rem; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .375rem .875rem;
  font-size: .75rem; line-height: 1rem; font-weight: 500; color: var(--muted-foreground);
}
.badge [data-lucide], .badge .lucide { width: .875rem; height: .875rem; color: var(--primary); }
.badge.strong { font-weight: 600; color: var(--foreground); }
.hero-title { margin-top: 1.5rem; font-size: 2.25rem; line-height: 1.03; font-weight: 600; text-wrap: balance; }
.typer { margin-top: 1.25rem; height: 2rem; font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.typer-inner { position: relative; display: inline-flex; overflow: hidden; vertical-align: bottom; }
.caret { display: inline-block; width: 2px; margin-left: .25rem; align-self: stretch; background: var(--primary); animation: caret 1.05s step-end infinite; }
.hero-intro { margin-top: 1.25rem; max-width: 36rem; font-size: 1rem; line-height: 1.625; color: var(--muted-foreground); }
.hero-quote { margin-top: 1rem; font-family: var(--font-display); font-size: 1rem; font-weight: 600; font-style: italic; color: var(--primary); }
.hero .cta-row { margin-top: 2rem; }
.hero-flow { margin-top: 2.5rem; display: inline-flex; max-width: 100%; border-radius: var(--r-2xl); padding: .75rem 1rem; }

.portrait-wrap { position: relative; margin-inline: auto; width: 100%; max-width: 26rem; will-change: transform; }
.portrait-glow { position: absolute; inset: 1.5rem 1.5rem 4rem; z-index: -10; border-radius: 999px; background: var(--glow); opacity: .22; filter: blur(64px); }
.portrait-ring { position: absolute; inset: 0; z-index: -10; border-radius: 999px; border: 1px dashed color-mix(in oklab, var(--primary) 20%, transparent); animation: spin-slow 26s linear infinite; }
/* The glow lives on a wrapper: on the image itself, the bottom-fade mask would clip it into a visible rectangle. */
.portrait-shadow { position: relative; filter: drop-shadow(0 28px 60px color-mix(in srgb, var(--primary) 18%, transparent)); }
.portrait {
  position: relative; margin-inline: auto; width: 100%; max-width: 22rem; object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 98%);
  animation: float-soft 7s ease-in-out infinite;
}
.float-card { position: absolute; border-radius: var(--r-2xl); padding: .75rem 1rem; }
.status-card { bottom: 1rem; left: -.5rem; width: 13.5rem; box-shadow: var(--shadow-soft); }
.status-card .label-mono { letter-spacing: .22em; }
.status-row { margin-top: .5rem; display: flex; align-items: center; gap: .5rem; }
.status-row p { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .025em; }
.status-text { margin-top: .5rem; font-family: var(--font-mono); font-size: 11px; color: var(--muted-foreground); }
.location-card { top: 2.5rem; left: -1.5rem; display: none; animation: float-soft 7s ease-in-out infinite; }
.location-card p:last-child { margin-top: .25rem; font-size: .875rem; font-weight: 600; }

.enter { animation: enter .5s both; }
.enter-sm { --enter-y: .25rem; }

@container main (min-width: 640px) {
  .hero { padding: 4.5rem 0 3rem; }
  .hero-title { font-size: 3rem; }
  .typer { font-size: 1.25rem; }
  .hero-intro { font-size: 17px; }
  .status-card { left: -2rem; }
}
@container main (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .hero-title { font-size: 3.6rem; }
}
@container main (min-width: 1100px) { .location-card { display: block; } }

/* ---------- Stack ---------- */
.stack { position: relative; isolation: isolate; overflow: hidden; padding-block: 4rem; }
.stack .label-mono { letter-spacing: .26em; }
.stack-list { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.stack-list li { cursor: default; border-radius: var(--r-xl); padding: .75rem 1.25rem; font-size: .875rem; line-height: 1.25rem; font-weight: 600; }
.marquee {
  margin-top: 2.5rem; position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; width: max-content; gap: .75rem; padding-block: .25rem;
  animation: marquee var(--marquee-duration, 34s) linear infinite; will-change: transform;
}
.tool {
  display: flex; align-items: center; gap: .625rem; white-space: nowrap;
  border-radius: var(--r-xl); padding: .375rem 1rem .375rem .375rem;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  font-size: .8125rem; line-height: 1.25rem; font-weight: 600; color: var(--foreground);
}
.tool-logo {
  display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 1.875rem; height: 1.875rem;
  border-radius: .625rem; color: var(--brand); background: color-mix(in srgb, var(--brand) 16%, transparent);
}
.tool-logo svg.brand { width: 1rem; height: 1rem; fill: currentColor; }
.tool-logo [data-lucide], .tool-logo .lucide { width: 1rem; height: 1rem; }
.tool-logo.mono { color: var(--foreground); background: var(--secondary); }
html.light .tool-logo.bright { color: color-mix(in srgb, var(--brand) 60%, #000); }
@container main (min-width: 640px) { .stack { padding-block: 5rem; } }

/* ---------- About ---------- */
.journey { margin-top: 2.5rem; display: grid; gap: .75rem; }
.journey li { position: relative; border-radius: var(--r-2xl); padding: 1.25rem; }
.journey .num { font-family: var(--font-mono); font-size: 10px; color: var(--primary); }
.journey h3, .journey .t { margin-top: .5rem; font-size: 1rem; font-weight: 600; }
.journey .d { margin-top: .375rem; font-size: .75rem; line-height: 1.625; color: var(--muted-foreground); }
.journey .dot { position: absolute; top: 50%; right: -.5rem; display: none; width: .5rem; height: .5rem; border-radius: 999px; background: color-mix(in oklab, var(--primary) 60%, transparent); }
.about-grid { margin-top: 3rem; display: grid; gap: 3rem; }
.about-text > * + * { margin-top: 1.25rem; }
.about-text p { font-size: 1rem; line-height: 1.625; color: var(--muted-foreground); }
.about-text .btn-wrap { padding-top: .5rem; }
.feature-list { display: grid; gap: 1rem; }
.feature { border-radius: var(--r-2xl); padding: 1.5rem; }
.feature-row { display: flex; align-items: flex-start; gap: 1rem; }
.feature h3 { font-size: 1rem; font-weight: 600; }
.feature p { margin-top: .25rem; font-size: .875rem; line-height: 1.625; color: var(--muted-foreground); }
@container main (min-width: 640px) { .journey { grid-template-columns: repeat(2, 1fr); } }
@container main (min-width: 900px) {
  .journey { grid-template-columns: repeat(4, 1fr); }
  .journey .dot { display: block; }
  .journey li:last-child .dot { display: none; }
  .about-grid { grid-template-columns: 1.05fr .95fr; }
}

/* ---------- Service cards ---------- */
.cards-4 { margin-top: 3rem; display: grid; gap: 1.25rem; }
.svc { display: flex; flex-direction: column; height: 100%; border-radius: var(--r-2xl); padding: 1.5rem; }
.svc h3 { margin-top: 1.25rem; font-size: 1rem; font-weight: 600; }
.svc p { margin-top: .5rem; flex: 1; font-size: .875rem; line-height: 1.625; color: var(--muted-foreground); }
.svc-flow { margin-top: 1rem; max-height: 0; overflow: hidden; opacity: 0; transition: all .5s; }
.svc:hover .svc-flow { max-height: 4rem; opacity: 1; }
.section-cta { margin-top: 3rem; text-align: center; }
@container main (min-width: 640px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@container main (min-width: 900px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Decorative network curves ---------- */
.net-lines { position: absolute; inset: 0; z-index: -10; width: 100%; height: 100%; pointer-events: none; }
.net-paths path { fill: none; stroke: var(--primary); stroke-opacity: .28; stroke-width: 1.1; }
.net-nodes circle { fill: var(--primary); fill-opacity: .4; }

/* ---------- Live workflow ---------- */
.dots-bg { position: absolute; inset: 0; z-index: -10; }
#automation .dots-bg { opacity: .3; -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent); mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent); }
#projects .dots-bg { opacity: .25; -webkit-mask-image: radial-gradient(70% 50% at 50% 30%, #000, transparent); mask-image: radial-gradient(70% 50% at 50% 30%, #000, transparent); }
.flow-panel { position: relative; margin-top: 3rem; overflow: hidden; border-radius: 2rem; padding: 1.5rem; }
.flow-panel > .grid-lines { position: absolute; inset: 0; opacity: .6; }
.flow-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--hair); }
.flow-bar .file { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-foreground); }
.flow-state { display: flex; align-items: center; gap: .375rem; font-family: var(--font-mono); font-size: 11px; color: var(--muted-foreground); }
.flow-state .led { width: .5rem; height: .5rem; border-radius: 999px; background: var(--border); transition: background-color .15s; }
.flow-steps { position: relative; margin-top: 2rem; display: grid; gap: 1rem; }
.flow-steps li { position: relative; }
.flow-node {
  position: relative; height: 100%; border-radius: var(--r-2xl); padding: 1.25rem;
  background: color-mix(in oklab, var(--elevated) 70%, transparent); border: 1px solid var(--hair);
  opacity: .4; transform: translateY(.75rem); transition: all .5s;
}
.flow-node .n { font-family: var(--font-mono); font-size: 10px; color: var(--muted-foreground); }
.flow-node .icon-box { margin-top: .75rem; background: var(--secondary); color: var(--muted-foreground); transition: color .5s, background .5s; }
.flow-node .t { margin-top: 1rem; font-size: .875rem; font-weight: 600; }
.flow-node .d { margin-top: .25rem; font-size: .75rem; line-height: 1.625; color: var(--muted-foreground); }
.flow-link { position: absolute; top: 50%; right: -.75rem; display: none; width: 1.5rem; height: 1px; pointer-events: none; }
.flow-link svg { overflow: visible; transform: translateY(-4px); }
.flow-link line { stroke: var(--primary); stroke-opacity: .2; stroke-width: 2; stroke-linecap: round; transition: stroke-opacity .5s; }
.flow-note { position: relative; margin-top: 2rem; font-family: var(--font-mono); font-size: 11px; color: var(--muted-foreground); }
.flow-panel.running .flow-state .led { background: var(--primary); animation: pulse-node 2.2s ease-out infinite; }
.flow-panel.running .flow-node { opacity: 1; transform: none; border-color: color-mix(in oklab, var(--primary) 40%, transparent); box-shadow: var(--shadow-soft); }
.flow-panel.running .flow-node .icon-box { background: var(--gradient-accent); color: var(--primary-foreground); animation: pulse-node 2.2s ease-out infinite; }
.flow-panel.running .flow-link line { stroke-opacity: .7; stroke-dasharray: 6 10; animation: flow-dash 1.6s linear infinite; }
@container main (min-width: 640px) { .flow-panel { padding: 2.5rem; } }
@container main (min-width: 900px) { .flow-steps { grid-template-columns: repeat(5, 1fr); } .flow-link { display: block; } }

/* ---------- Projects ---------- */
.projects { margin-top: 3rem; display: grid; gap: 1.5rem; }
.project { display: flex; flex-direction: column; height: 100%; border-radius: var(--r-3xl); padding: 1.75rem; }
.project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.project h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.project-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: var(--r-xl); color: var(--primary); }
.project-icon [data-lucide], .project-icon .lucide { width: 1rem; height: 1rem; }
.project-body { margin-top: 1.5rem; font-size: .875rem; line-height: 1.625; }
.project-body > * + * { margin-top: 1rem; }
.project-body .k { font-family: var(--font-mono); font-size: 10px; line-height: 1rem; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); }
.project-body .v { margin-top: .375rem; color: var(--muted-foreground); }
.project-foot { padding-top: 1.5rem; }
.project-foot-inner { border-top: 1px solid var(--hair); padding-top: 1.25rem; }
.project .flow { transition: transform .5s; }
.project:hover .flow { transform: translateX(.25rem); }
.project .tag-row { margin-top: 1rem; opacity: .7; transition: opacity .3s; }
.project:hover .tag-row { opacity: 1; }
.project:hover .tag { color: var(--foreground); }
.projects-cta { margin-top: 3.5rem; text-align: center; }
.projects-cta p { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }
.projects-cta .cta-row { margin-top: 1.25rem; }
@container main (min-width: 640px) { .project { padding: 2rem; } }
@container main (min-width: 900px) { .projects { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Hire / pricing ---------- */
.currency-row { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; }
.currency-row label { font-size: .75rem; font-weight: 500; color: var(--muted-foreground); }
.currency-select {
  border-radius: 999px; padding: .5rem 1rem; font-size: .75rem; font-weight: 600; color: var(--foreground);
  outline: none; transition: all .15s; cursor: pointer;
}
.currency-select:hover { border-color: color-mix(in oklab, var(--primary) 50%, transparent); }
.currency-select:focus { border-color: color-mix(in oklab, var(--primary) 60%, transparent); box-shadow: var(--shadow-glow); }
.currency-select option, .field select option { background: var(--surface); color: var(--foreground); }
.price-grid { margin-top: 2rem; display: grid; gap: 1.25rem; }
.price { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--r-3xl); padding: 1.75rem; text-align: center; }
.price .icon-box { margin-inline: auto; }
.price h3 { margin-top: 1.25rem; font-size: 1rem; font-weight: 600; }
.price .from { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }
.price .amount { font-family: var(--font-display); font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; }
.price .amount.quote { margin-top: 1rem; font-size: 1.5rem; line-height: 2rem; }
.price .amount.hourly { margin-top: .75rem; }
.price .approx { margin-top: .25rem; font-size: .75rem; color: var(--muted-foreground); }
.price .desc { margin-top: 1rem; font-size: .875rem; line-height: 1.625; color: var(--muted-foreground); }
.price .sub { margin-top: .75rem; font-size: .875rem; color: var(--muted-foreground); }
.price .desc.bottom { margin-top: auto; padding-top: 1.25rem; }
.fine { font-size: .75rem; line-height: 1.625; color: var(--muted-foreground); text-align: center; }
.panel { border-radius: var(--r-2xl); padding: 1.75rem; }
.panel h3 { text-align: center; font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.check-list { margin-top: 1.5rem; display: grid; gap: .75rem; }
.check-list li { display: flex; align-items: center; gap: .75rem; font-size: .875rem; color: var(--muted-foreground); }
.check { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 1.25rem; height: 1.25rem; border-radius: 999px; background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary); }
.check [data-lucide], .check .lucide { width: .75rem; height: .75rem; }
@container main (min-width: 640px) {
  .price-grid, .check-list { grid-template-columns: repeat(2, 1fr); }
  .price-grid .span-2 { grid-column: span 2; }
  .price .amount { font-size: 2.25rem; line-height: 2.5rem; }
  .price .amount.quote { font-size: 1.875rem; line-height: 2.25rem; }
  .panel { padding: 2.25rem; }
}

/* ---------- Testimonials ---------- */
.quotes { margin: 3rem auto 0; max-width: 64rem; display: grid; gap: 1.5rem; }
.quote-card { position: relative; overflow: hidden; border-radius: var(--r-3xl); padding: 2.25rem; }
.quote-card .quote-mark { position: absolute; top: 1.5rem; right: 1.5rem; width: 4rem; height: 4rem; color: color-mix(in oklab, var(--primary) 12%, transparent); }
.stars { display: flex; color: var(--primary); }
.stars [data-lucide], .stars .lucide { width: 1rem; height: 1rem; fill: var(--primary); }
.quote-card blockquote { position: relative; margin-top: 1.25rem; font-size: 1rem; line-height: 1.625; color: var(--muted-foreground); }
.quote-card .who { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--hair); }
.quote-card .name { font-size: 1rem; font-weight: 600; }
.quote-card .name span { font-size: .75rem; font-weight: 400; color: var(--primary); }
.quote-card .role { margin-top: .25rem; font-size: .75rem; color: var(--muted-foreground); }
@container main (min-width: 640px) {
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .quote-card { padding: 2.75rem; }
  .quote-card blockquote { font-size: 1.125rem; line-height: 1.625; }
}

/* ---------- Certifications ---------- */
.cert-group { margin-top: 3rem; }
.cert-group + .cert-group { margin-top: 3.5rem; }
.cert-grid { margin-top: 1.5rem; display: grid; gap: 1.25rem; }
.cert { position: relative; height: 100%; border-radius: var(--r-2xl); padding: 1.5rem; }
.cert.featured { border-color: color-mix(in oklab, var(--primary) 30%, transparent); }
.cert-row { display: flex; align-items: flex-start; gap: 1rem; }
.cert-row > div { min-width: 0; }
.cert h4 { font-size: 1rem; font-weight: 600; }
.cert.featured h4 { font-size: 1.125rem; line-height: 1.75rem; }
.cert-link { transition: color .15s; }
/* The title link stretches over its card, so a certificate with a link is clickable anywhere. */
.cert-link::after { content: ""; position: absolute; inset: 0; }
.cert-link:hover { color: var(--primary); }
.cert-link [data-lucide], .cert-link .lucide { display: inline-block; width: 1rem; height: 1rem; margin-left: .25rem; vertical-align: -2px; color: var(--primary); }
.cert .issuer { margin-top: .25rem; font-size: .875rem; color: var(--muted-foreground); }
.cert .pill-row { margin-top: 1rem; }
@container main (min-width: 640px) { .cert.featured { padding: 1.75rem; } .cert-grid.three { grid-template-columns: repeat(2, 1fr); } }
@container main (min-width: 768px) { .cert-grid.two { grid-template-columns: repeat(2, 1fr); } }
@container main (min-width: 900px) { .cert-grid.three { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Process / why ---------- */
.steps-card { height: 100%; border-radius: var(--r-2xl); padding: 1.75rem; }
.steps-card .num { font-family: var(--font-display); font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; }
.steps-card h3 { margin-top: .75rem; font-size: 1rem; font-weight: 600; }
.steps-card h3:first-child { margin-top: 0; }
.steps-card p { margin-top: .5rem; font-size: .875rem; line-height: 1.625; color: var(--muted-foreground); }
.cards-2 { margin-top: 3rem; display: grid; gap: 1.25rem; }
@container main (min-width: 640px) { .cards-2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Experience ---------- */
/* Phones: heading, skills, languages. Desktop: heading | languages, then skills across the full width in two columns. */
.exp-grid { display: grid; row-gap: 2rem; column-gap: 3rem; grid-template-areas: "head" "tags" "lang"; }
.exp-head { grid-area: head; }
.exp-lang { grid-area: lang; }
.exp-tags-wrap { grid-area: tags; }
.exp-tags { display: flex; flex-wrap: wrap; gap: .625rem; }
.exp-tags li { border-radius: 999px; padding: .5rem 1rem; background: color-mix(in oklab, var(--secondary) 50%, transparent); border: 1px solid var(--hair); font-size: .875rem; color: var(--muted-foreground); }
.lang-card { border-radius: var(--r-3xl); padding: 2rem; }
.lang-card header { display: flex; align-items: center; gap: .75rem; }
.lang-card h3 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.lang-list { margin-top: 1.5rem; }
.lang-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .875rem; }
.lang-list li + li { border-top: 1px solid var(--hair); }
.lang-list .l { font-size: .875rem; font-weight: 600; }
.lang-list .lv { font-size: .875rem; color: var(--muted-foreground); text-align: right; }
@container main (min-width: 720px) { .exp-tags { display: grid; grid-template-columns: repeat(2, max-content); gap: .625rem .75rem; } }
@container main (min-width: 900px) { .exp-grid { grid-template-columns: repeat(2, 1fr); grid-template-areas: "head lang" "tags tags"; } }

/* ---------- Final CTA ---------- */
.final { position: relative; isolation: isolate; overflow: hidden; border-radius: 2.2rem; padding: 2.5rem 1.5rem; text-align: center; }
.final .bg-soft { position: absolute; inset: 0; z-index: -10; }
.final h2 { margin-inline: auto; max-width: 48rem; font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; text-wrap: balance; }
.final > p { margin: 1.25rem auto 0; max-width: 36rem; line-height: 1.625; color: var(--muted-foreground); }
.final .cta-row { margin-top: 2.25rem; }
@container main (min-width: 640px) { .final { padding: 4rem; } .final h2 { font-size: 2.6rem; line-height: 1.1; } }

/* ---------- Contact ---------- */
.contact-badge { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .25rem .75rem; font-size: .75rem; font-weight: 500; }
/* minmax(0, …) lets the columns shrink below their longest unbreakable line, so phones never scroll sideways. */
.contact-grid { margin-top: 3rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.form-card { position: relative; overflow: hidden; border-radius: 2rem; padding: 1.75rem; }
.form-card .blob { position: absolute; top: -6rem; right: -4rem; width: 14rem; height: 14rem; border-radius: 999px; background: var(--glow); opacity: .12; filter: blur(64px); pointer-events: none; }
.form-card h3, .connect h3 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.form { position: relative; margin-top: 1.5rem; display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
.field { display: grid; gap: .5rem; font-size: .875rem; }
.field > span { font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; border-radius: var(--r-xl); border: 1px solid var(--hair);
  background: color-mix(in oklab, var(--elevated) 60%, transparent);
  padding: .75rem 1rem; font-size: .875rem; color: var(--foreground); outline: none; transition: all .15s;
}
.field textarea { resize: vertical; min-height: 8.5rem; }
.field ::placeholder { color: color-mix(in oklab, var(--muted-foreground) 70%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: color-mix(in oklab, var(--primary) 60%, transparent); box-shadow: var(--shadow-glow); }
.form-actions { margin-top: .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { font-size: .875rem; color: var(--muted-foreground); }
.form-status.ok { color: oklch(72% .17 155); }
.form-status.err { color: oklch(68% .2 25); }
.connect { display: flex; flex-direction: column; gap: 1.25rem; height: 100%; border-radius: 2rem; padding: 1.75rem; }
.connect > div > p { margin-top: .5rem; font-size: .875rem; line-height: 1.625; color: var(--muted-foreground); }
.link-card { display: flex; align-items: center; gap: 1rem; border-radius: var(--r-2xl); padding: 1rem 1.25rem; transition: all .15s; }
.link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.link-card .ic { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: var(--r-lg); background: var(--accent); color: var(--accent-foreground); transition: all .15s; }
.link-card .ic [data-lucide], .link-card .ic .lucide { width: 1rem; height: 1rem; }
.link-card .txt { min-width: 0; }
.link-card .txt b { display: block; font-size: .875rem; font-weight: 600; }
.link-card .txt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; color: var(--muted-foreground); }
.link-card.plain { background: color-mix(in oklab, var(--elevated) 60%, transparent); border: 1px solid var(--hair); }
.link-card.plain:hover { border-color: color-mix(in oklab, var(--primary) 45%, transparent); }
.link-card.plain:hover .ic { background: var(--primary); color: var(--primary-foreground); }
.link-card.whatsapp { background: rgb(37 211 102 / .12); box-shadow: inset 0 0 0 1px rgb(37 211 102 / .4); }
.link-card.whatsapp:hover { box-shadow: inset 0 0 0 1px rgb(37 211 102 / .4), var(--shadow-glow); }
.link-card.whatsapp .ic { background: #25D366; color: #fff; }
.link-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.contact-meta { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; border-radius: var(--r-2xl); padding: 1rem 1.25rem; background: color-mix(in oklab, var(--elevated) 40%, transparent); border: 1px solid var(--hair); font-size: .875rem; color: var(--muted-foreground); }
.contact-meta > span { display: flex; align-items: center; gap: .5rem; overflow-wrap: anywhere; }
.contact-meta [data-lucide], .contact-meta .lucide { width: 1rem; height: 1rem; color: var(--primary); }
@container main (min-width: 640px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .form-card, .connect { padding: 2.5rem; }
}
@container main (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--hair); padding-block: 3rem; }
.footer-inner { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-name { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.footer-role { margin-top: .25rem; font-size: .875rem; color: var(--muted-foreground); }
.footer-stack { margin-top: .75rem; font-family: var(--font-mono); font-size: 11px; color: var(--muted-foreground); }
.footer-right { display: flex; flex-direction: column; gap: .5rem; }
.footer-right a { position: relative; display: inline-flex; align-items: center; gap: .375rem; align-self: flex-start; font-size: .75rem; font-weight: 500; color: var(--muted-foreground); transition: color .15s; }
.footer-right a [data-lucide], .footer-right a .lucide { width: .875rem; height: .875rem; }
.footer-right a:hover { color: var(--primary); }
.footer-right a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.footer-right a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-right p { font-size: .75rem; color: var(--muted-foreground); }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .footer-right { align-items: flex-end; }
  .footer-right a { align-self: flex-end; }
}

/* ---------- Keyframes ---------- */
@keyframes border-pan { to { background-position: 300% 0; } }
@keyframes flow-dash { to { stroke-dashoffset: -32px; } }
@keyframes float-soft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift {
  0% { opacity: 0; transform: translate(0, 0); }
  10%, 85% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--dx, 20px), -120px, 0); }
}
@keyframes marquee { to { transform: translateX(var(--marquee-shift, -50%)); } }
@keyframes pulse-node {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 50%, transparent); }
  50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--primary) 0%, transparent); }
}
@keyframes caret { 50% { opacity: 0; } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes enter { from { opacity: 0; transform: translateY(var(--enter-y, .5rem)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  /* The tech-stack marquee keeps circling on purpose. Delete this rule to let it stop for reduced-motion visitors. */
  .marquee-track { animation-duration: var(--marquee-duration, 34s) !important; animation-iteration-count: infinite !important; }
}
