@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0b0c0e;
  --foreground: #f2f2f0;
  --card: #141519;
  --muted: #9a9ba2;
  --border: rgb(242 242 240 / 0.1);
  --radius: 0.625rem;
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.4);
  --radius-2xl: calc(var(--radius) * 1.8);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-sm: calc(var(--radius) * 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--background);
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--foreground);
  font-family: var(--font-sans);
  background-color: var(--background);
  background-image:
    radial-gradient(60% 32% at 50% -4%, rgb(245 199 126 / 0.14) 0%, transparent 70%),
    radial-gradient(120% 60% at 50% -10%, #1a1b20 0%, transparent 60%);
  background-repeat: no-repeat;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgb(242 242 240 / 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(80% 70% at 50% 0%, #000 0%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  font: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 640px;
  min-width: 0;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 2.5rem 1rem 1.5rem;
}

main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
  max-width: 100%;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.avatar {
  position: relative;
  width: 6rem;
  height: 6rem;
  overflow: hidden;
  border-radius: 9999px;
  border: 1px solid rgb(242 242 240 / 0.2);
  background: var(--card);
  box-shadow:
    0 0 0 4px rgb(242 242 240 / 0.05),
    0 0 0 1px rgb(245 199 126 / 0.12),
    0 12px 40px -8px rgb(245 199 126 / 0.18);
}

.avatar img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.profile-copy {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.profile-copy h1 {
  text-wrap: balance;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.handle {
  align-self: center;
  margin-top: -0.25rem;
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted);
  transition: color 150ms;
}

.handle:hover {
  color: var(--foreground);
}

.handle:focus-visible,
.contact-button:focus-visible,
.copy-button:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

.tagline {
  text-wrap: pretty;
  font-size: 1rem;
  line-height: 1.5rem;
  color: rgb(242 242 240 / 0.85);
}

.intro {
  text-wrap: pretty;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted);
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.projects > li {
  min-width: 0;
  max-width: 100%;
}

.project {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  border: 1px solid rgb(242 242 240 / 0.1);
  transition: border-color 200ms ease-out, transform 200ms ease-out;
}

.project:hover {
  transform: translateY(-0.125rem);
  border-color: color-mix(in srgb, var(--brand) 50%, transparent);
}

.project:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.project-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--brand) 60%, transparent), transparent);
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  padding: 1.25rem;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.logo {
  height: 1.75rem;
  width: auto;
  max-width: 100%;
  min-width: 0;
}

.logo-fluzz {
  height: 2.25rem;
}

.badge {
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
}

.project-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.description {
  text-wrap: pretty;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.375;
}

.complement {
  text-wrap: pretty;
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgb(242 242 240 / 0.65);
}

.project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--brand);
}

.domain {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgb(242 242 240 / 0.4);
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta .icon {
  transition: transform 200ms;
}

.project:hover .cta .icon {
  transform: translateX(0.125rem);
}

.project-visual {
  height: 8rem;
  border-top: 1px solid rgb(242 242 240 / 0.1);
  background: rgb(242 242 240 / 0.02);
  display: flex;
}

.visual {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.bar {
  display: block;
  height: 0.375rem;
  border-radius: 9999px;
  background: rgb(242 242 240 / 0.15);
}

.bar.dim {
  opacity: 0.6;
}

.w-50 { width: 50%; }
.w-66 { width: 66.666%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-83 { width: 83.333%; }

.visual-fluzz {
  gap: 0.5rem;
  padding: 0.75rem;
}

.fluzz-list,
.fluzz-chat {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  border-radius: var(--radius-lg);
  background: rgb(242 242 240 / 0.05);
  padding: 0.5rem;
}

.fluzz-list {
  width: 40%;
}

.fluzz-chat {
  flex: 1;
  justify-content: flex-end;
}

.fluzz-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: var(--radius-md);
  padding: 0.375rem;
}

.fluzz-row.is-active {
  background: color-mix(in srgb, var(--brand) 15%, transparent);
}

.avatar-dot {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgb(242 242 240 / 0.15);
}

.stack {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.status-dot {
  width: 0.375rem;
  height: 0.375rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--brand);
}

.bubble {
  display: block;
  border-radius: var(--radius-lg);
  padding: 0.5rem;
}

.bubble .bar + .bar {
  margin-top: 0.25rem;
}

.bubble.in {
  border-bottom-left-radius: var(--radius-sm);
  background: rgb(242 242 240 / 0.1);
}

.bubble.out {
  margin-left: auto;
  border-bottom-right-radius: var(--radius-sm);
  background: var(--brand);
}

.bar.light {
  background: rgb(11 12 14 / 0.3);
}

.visual-toia {
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.toia-track {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 15rem;
}

.toia-step {
  display: flex;
  flex: 1;
  align-items: center;
}

.toia-step.is-last {
  flex: none;
}

.toia-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.toia-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgb(242 242 240 / 0.15);
  background: rgb(242 242 240 / 0.05);
  color: rgb(242 242 240 / 0.7);
}

.toia-icon.is-active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 20%, transparent);
  color: var(--foreground);
}

.icon-node {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 1.75;
}

.toia-label {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(242 242 240 / 0.5);
}

.toia-line {
  position: relative;
  flex: 1;
  height: 1px;
  margin: 0 0.25rem 1.25rem;
  background: linear-gradient(to right, rgb(242 242 240 / 0.2), var(--brand));
}

.toia-line::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--brand);
}

.visual-edu {
  gap: 0.375rem;
  padding: 0.75rem;
}

.edu-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
  border-radius: var(--radius-lg);
  background: rgb(242 242 240 / 0.05);
  padding: 0.375rem;
}

.edu-head {
  width: 50%;
  margin-bottom: 0.125rem;
  background: var(--brand-soft);
}

.edu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-radius: var(--radius-md);
  background: rgb(242 242 240 / 0.1);
  padding: 0.375rem;
}

.edu-card.is-hot {
  border: 1px solid color-mix(in srgb, var(--brand) 60%, transparent);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

.icon-sparkle {
  position: absolute;
  top: -0.375rem;
  right: -0.375rem;
  width: 0.875rem;
  height: 0.875rem;
  fill: var(--brand);
  stroke: none;
}

.visual-mavy {
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.mavy-stage {
  display: flex;
  align-items: flex-end;
}

.mavy-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgb(242 242 240 / 0.1);
  background: rgb(11 12 14 / 0.8);
  padding: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.tilt-left {
  z-index: 10;
  transform: rotate(-6deg);
}

.tilt-center {
  z-index: 20;
  margin: 0 -0.75rem 0.75rem;
  background: rgb(11 12 14 / 0.9);
}

.tilt-right {
  z-index: 10;
  transform: rotate(6deg);
}

.mavy-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(242 242 240 / 0.5);
}

.mavy-swatch {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: linear-gradient(to bottom right, var(--brand), var(--brand-soft));
}

.mavy-frame {
  display: flex;
  aspect-ratio: 4 / 5;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgb(242 242 240 / 0.1);
  color: var(--brand);
}

.icon-image {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 1.75;
}

.icon-file {
  width: 0.75rem;
  height: 0.75rem;
}

.bar.brand {
  background: color-mix(in srgb, var(--brand) 60%, transparent);
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
  border-radius: var(--radius-2xl);
  border: 1px solid rgb(242 242 240 / 0.1);
  background: var(--card);
  padding: 1.25rem;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-copy h2 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.contact-copy p {
  text-wrap: pretty;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  align-self: stretch;
  min-height: 2.75rem;
  border-radius: var(--radius-lg);
  background: var(--foreground);
  padding: 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--background);
  transition: opacity 150ms;
}

.contact-button:hover {
  opacity: 0.9;
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  border-top: 1px solid rgb(242 242 240 / 0.1);
  padding-top: 1rem;
}

.email {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgb(242 242 240 / 0.8);
  overflow-wrap: anywhere;
}

.copy-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgb(242 242 240 / 0.1);
  color: rgb(242 242 240 / 0.7);
  transition: color 150ms, border-color 150ms;
}

.copy-button:hover {
  border-color: rgb(242 242 240 / 0.25);
  color: var(--foreground);
}

.copy-button .icon-check {
  display: none;
}

.copy-button.is-copied .icon-copy {
  display: none;
}

.copy-button.is-copied .icon-check {
  display: block;
  color: var(--foreground);
}

.copy-status {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgb(242 242 240 / 0.8);
}

.copy-status:empty {
  display: none;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted);
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border-radius: var(--radius-md);
  padding: 0 0.5rem;
  text-underline-offset: 4px;
  transition: color 150ms;
}

.footer a:hover {
  color: var(--foreground);
  text-decoration: underline;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rise {
  animation: rise 480ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@media (min-width: 640px) {
  .page {
    padding: 3.5rem 1.25rem 1.5rem;
  }

  .projects {
    gap: 2rem;
  }

  .project {
    flex-direction: row;
  }

  .project-body,
  .contact {
    padding: 1.5rem;
  }

  .project-visual {
    height: auto;
    width: 15rem;
    flex-shrink: 0;
    border-top: 0;
    border-left: 1px solid rgb(242 242 240 / 0.1);
  }

  .contact-button {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rise {
    animation: none;
  }

  .project,
  .cta .icon {
    transition: none;
  }

  .project:hover {
    transform: none;
  }

  .project:hover .cta .icon {
    transform: none;
  }
}
