@font-face {
  font-family: "Open Runde";
  src: url("fonts/OpenRunde-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Runde";
  src: url("fonts/OpenRunde-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Runde";
  src: url("fonts/OpenRunde-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: oklch(100% 0 0);
  --foreground: oklch(20.02% 0 0);
  --primary: oklch(20.9% 0 0);
  --primary-foreground: oklch(98.5% 0 0);
  --secondary: oklch(97% 0 0);
  --secondary-foreground: oklch(42% 0 0);
  --muted: oklch(97% 0 0);
  --muted-foreground: oklch(72.5% 0 0);
  --accent: oklch(97% 0 0);
  --border: oklch(95% 0 0);
  --input: oklch(95% 0 0);
  --ring: oklch(70.8% 0 0);
  --blue-focus: color-mix(in oklab, oklch(62.3% 0.214 259.815) 50%, transparent);
  --font-sans: "Open Runde", ui-sans-serif, system-ui, sans-serif;
  --radius-icon: 22.37%;
  --max: 80rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

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

button,
input {
  font: inherit;
}

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;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0 1rem;
  background: var(--background);
}

@media (min-width: 768px) {
  .site-header {
    padding: 0 1.5rem;
  }
}

.header-inner {
  margin: 0 auto;
  max-width: var(--max);
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  position: relative;
}

.nav-platforms {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
}

.platform-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  padding: 0.25rem 0;
}

.platform-soon {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: default;
  user-select: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.header-link {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary-foreground);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.header-link:hover {
  background: var(--secondary);
  color: var(--foreground);
}

@media (max-width: 767px) {
  .header-link {
    display: none;
  }
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  height: 2.25rem;
  padding: 0.25rem 0.875rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary:active {
  opacity: 0.85;
}

.btn-primary svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 1rem;
}

@media (min-width: 640px) {
  .hero {
    padding: 5rem 0;
  }
}

.hero-mobile-float {
  display: none;
}

.hero-side {
  display: none;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.float-icon {
  position: absolute;
}

.float-icon-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease-out;
}

.float-icon a {
  display: block;
  transition: transform 0.2s ease-out;
}

.float-icon a:hover {
  transform: scale(1.1);
}

.hero-center {
  position: relative;
  text-align: center;
  max-width: 42rem;
  padding: 0 0.5rem;
}

.hero-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--foreground);
}

.hero-title .br {
  display: none;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
    line-height: 1;
    letter-spacing: -0.025em;
  }

  .hero-title .br {
    display: block;
  }
}

.hero-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem auto 0;
  max-width: 24rem;
}

@media (min-width: 640px) {
  .hero-form {
    margin-top: 2rem;
  }
}

.email-field {
  flex: 1;
  padding: 1.5px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease;
}

.email-field:focus-within {
  background: var(--blue-focus);
  transition-duration: 0.25s;
}

.email-input {
  width: 100%;
  height: 2.25rem;
  border: 0;
  outline: none;
  background: var(--secondary);
  border-radius: 999px;
  padding: 5px 0.75rem 0.25rem;
  font-size: 0.875rem;
  line-height: 1;
  color: var(--foreground);
}

.email-input::placeholder {
  color: var(--muted-foreground);
}

.hero-sub {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ——— App icon ——— */
.app-icon {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-icon);
  transition: transform 0.25s ease;
}

.shelf-icon:hover .app-icon {
  transform: scale(1.05) translateY(-2px);
}

.app-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-icon-border {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: var(--radius-icon);
  border: 1px solid rgba(0, 0, 0, 0.06);
  mix-blend-mode: darken;
}

/* ——— Gallery / Shelves ——— */
.gallery {
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 1rem 3rem;
  user-select: none;
}

@media (min-width: 768px) {
  .gallery {
    padding: 0 1.5rem 3.5rem;
  }
}

.shelf {
  position: relative;
  margin-bottom: 4rem;
}

.shelf-single {
  margin-bottom: 2rem;
}

.shelf-icons {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.65rem, 2vw, 1.75rem);
  padding: 0 0.5rem;
  margin-bottom: 0.25rem;
}

.shelf-icon {
  flex-shrink: 0;
  width: clamp(3.75rem, 18vw, 5rem);
}

@media (min-width: 640px) {
  .shelf-icon {
    width: clamp(3.5rem, 8vw, 5.75rem);
  }
}

@media (min-width: 768px) {
  .shelf-icon {
    width: clamp(4.25rem, 7vw, 6rem);
  }
}

@media (min-width: 1024px) {
  .shelf-icon {
    width: 5.75rem;
  }
}

.shelf-bar-wrap {
  position: relative;
  margin-top: -12px;
  perspective: 800px;
}

.shelf-bar {
  position: relative;
  height: 1.25rem;
  border-radius: 2px;
  transform-origin: center bottom;
  transform: rotateX(20deg);
  background: linear-gradient(
    rgba(220, 225, 230, 0.4) 0%,
    rgba(230, 233, 237, 0.7) 50%,
    rgba(240, 242, 244, 0.85) 100%
  );
  box-shadow:
    rgba(89, 108, 124, 0.2) 0 2px 1px,
    rgba(160, 175, 188, 0.3) 0 4px 0,
    rgba(0, 0, 0, 0.1) 0 12px 16px -6px;
}

.shelf-glint {
  position: absolute;
  left: 1%;
  right: 1%;
  top: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.3) 35%,
    rgba(255, 255, 255, 0.8) 65%,
    rgba(255, 255, 255, 0.5) 100%
  );
}

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Modal / detail */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: min(100%, 22rem);
  background: var(--background);
  border-radius: 1.25rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.2s ease;
}

.modal-backdrop.is-open .modal {
  transform: scale(1) translateY(0);
}

.modal .app-icon {
  width: 5.5rem;
  margin: 0 auto 1rem;
}

.modal h2 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.modal-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
}

.modal-cats[hidden] {
  display: none;
}

.modal-pill {
  display: inline-flex;
  align-items: center;
  height: 1.375rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  white-space: nowrap;
}

.modal-desc {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--secondary-foreground);
}

.modal-desc:empty,
.modal-desc[hidden] {
  display: none;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 0.875rem;
  border: 0;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--accent);
}

/* About */
.about {
  margin: 0 auto;
  max-width: var(--max);
  padding: 1rem 1rem 4rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .about {
    padding: 2rem 1.5rem 5rem;
  }
}

.about-inner {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.about-intro {
  margin-bottom: 2.5rem;
}

.about-name {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted-foreground);
}

.about-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .about-title {
    font-size: 1.5rem;
  }
}

.about-tagline {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--secondary-foreground);
}

.about-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.25rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

@media (min-width: 640px) {
  .about-skills {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.skill-group {
  min-width: 0;
}

.skill-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.skill-items {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--secondary-foreground);
}

.about-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.about-location {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.about-email {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: opacity 0.15s ease;
}

.about-email:hover {
  opacity: 0.7;
}

/* Footer */
.site-footer {
  padding: 0 1.5rem 2.5rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.site-footer p {
  margin: 0;
}

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

/* Motion */
@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.shelf {
  animation: float-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.shelf:nth-child(1) { animation-delay: 0.02s; }
.shelf:nth-child(2) { animation-delay: 0.06s; }
.shelf:nth-child(3) { animation-delay: 0.1s; }
.shelf:nth-child(4) { animation-delay: 0.14s; }
.shelf:nth-child(5) { animation-delay: 0.18s; }
.shelf:nth-child(6) { animation-delay: 0.22s; }

@media (prefers-reduced-motion: reduce) {
  .shelf,
  .float-icon-inner,
  .app-icon,
  .modal,
  .modal-backdrop {
    animation: none !important;
    transition: none !important;
  }
}
