/* ==========================================================================
   Furkan Uzel — Portfolio · "Aurora" (dark)
   Deep ink background, soft aurora light, clean type, projects up front.
   Content works without JavaScript; motion is layered on via .js.
   ========================================================================== */

@view-transition {
  navigation: auto;
}

:root {
  color-scheme: dark;
  --bg: #07080d;
  --surface: #0e1018;
  --surface-2: #151826;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f7;
  --muted: #a0a7bb;
  --indigo: #818cf8;
  --pink: #f472b6;
  --cyan: #67e8f9;
  --primary: #6366f1;
  --gradient: linear-gradient(90deg, #a5b4fc 0%, #f0abfc 50%, #67e8f9 100%);
  --radius: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--sans);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 4px;
  border-radius: 8px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
::selection {
  background: var(--primary);
  color: #fff;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.wrap {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #000;
}
.skip-link:focus {
  top: 16px;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
}

/* Aurora light ------------------------------------------------------------ */
.aurora {
  position: absolute;
  inset: 0 0 auto;
  height: 980px;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.aurora::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -320px;
  width: 1700px;
  height: 1100px;
  translate: calc(-50% + var(--ax, 0px)) var(--ay, 0px);
  background:
    radial-gradient(38% 42% at 28% 45%, rgba(99, 102, 241, 0.42) 0%, transparent 70%),
    radial-gradient(32% 38% at 58% 35%, rgba(236, 72, 153, 0.3) 0%, transparent 70%),
    radial-gradient(32% 42% at 82% 55%, rgba(34, 211, 238, 0.26) 0%, transparent 70%);
  filter: blur(30px);
  animation: drift 18s ease-in-out infinite alternate;
  transition: translate 1.4s var(--ease);
}
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}
@keyframes drift {
  from {
    transform: scale(1) rotate(0deg);
  }
  to {
    transform: scale(1.08) rotate(4deg);
  }
}
.page .aurora {
  height: 640px;
  opacity: 0.75;
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding-top: 16px;
  transition: transform 0.5s var(--ease);
}
.site-header.is-hidden {
  transform: translateY(calc(-100% - 24px));
}
.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: rgba(14, 16, 24, 0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.wordmark {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav-pill nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.nav-pill nav a {
  transition: color 0.2s;
}
.nav-pill nav a:hover,
.nav-pill nav a[aria-current] {
  color: var(--text);
}

/* Buttons ----------------------------------------------------------------- */
.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    transform 0.4s var(--ease),
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.3s;
}
.btn:active,
.button:active {
  transform: translateY(1px);
}
.btn-primary,
.button {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.7);
}
.btn-primary:hover,
.button:hover {
  background: #7477f3;
  box-shadow: 0 14px 36px -10px rgba(99, 102, 241, 0.9);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}
.btn-light {
  background: var(--text);
  color: #0b0c12;
}
.btn-light:hover {
  background: #fff;
}
.btn-sm {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
}

/* Hero -------------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 120px 0 96px;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 600;
  color: #c7d2fe;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}
.hero h1 {
  max-width: 960px;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.lede {
  max-width: 580px;
  font-size: 19px;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

/* Sections ---------------------------------------------------------------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 820px;
}
.work,
.about,
.contact {
  padding: 56px 0;
}

/* Projects ---------------------------------------------------------------- */
.project {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition:
    transform 0.6s var(--ease),
    border-color 0.3s,
    box-shadow 0.6s var(--ease);
}
.project:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 40px 80px -40px rgba(99, 102, 241, 0.55);
}
.project-shot {
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.project-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  transition: transform 1.2s var(--ease);
}
.project:hover .project-shot img {
  transform: scale(1.03);
}
.project-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 6px 6px;
}
.project h3 {
  font-size: 26px;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.project p {
  color: var(--muted);
  font-size: 15.5px;
}
.project-kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo);
}
.project-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.project-link {
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
}
.project-link span {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.project:hover .project-link span {
  transform: translateX(4px);
}
.project-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: 24px;
  margin-bottom: 24px;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(99, 102, 241, 0.14), transparent 70%),
    var(--surface);
}
.project-featured h3 {
  font-size: 38px;
  letter-spacing: -0.035em;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.12);
  color: #c7d2fe;
  font-size: 13px;
  font-weight: 600;
}
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.12);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* About ------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.about .section-head {
  margin: 0;
}
.about-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 32px;
}
.about-body p {
  color: var(--muted);
  font-size: 17px;
}
.skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skills li {
  padding: 9px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

/* Contact ----------------------------------------------------------------- */
.contact-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 72px 32px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(50% 70% at 20% 0%, rgba(99, 102, 241, 0.3), transparent 70%),
    radial-gradient(50% 70% at 80% 100%, rgba(236, 72, 153, 0.22), transparent 70%),
    var(--surface);
  text-align: center;
}
.contact-card h2 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

/* Footer ------------------------------------------------------------------ */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
.footer a:hover {
  color: var(--text);
}

/* Project detail pages ---------------------------------------------------- */
.page-intro {
  padding: 88px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.back-link {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.back-link:hover {
  color: var(--text);
}
.page-intro h1 {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.page-intro > p:not(.eyebrow) {
  max-width: 620px;
  font-size: 18px;
  color: var(--muted);
}
.detail-figure {
  margin: 0 0 32px;
}
.detail-figure > a {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 50px 100px -50px rgba(99, 102, 241, 0.6);
}
.detail-figure img {
  width: 100%;
  transition: transform 1.2s var(--ease);
}
.detail-figure > a:hover img {
  transform: scale(1.015);
}
.detail-figure figcaption,
.gallery-item figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 760px;
}
.mobile-figure {
  padding: 40px 24px 28px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.mobile-figure > a {
  max-width: 320px;
  margin-inline: auto;
  border-radius: 28px;
  box-shadow: none;
}
.mobile-figure figcaption {
  text-align: center;
  margin-inline: auto;
}
.project-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  padding: 64px 0;
}
.project-story h2 {
  margin-top: 10px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.project-story p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}
.project-story ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  display: grid;
  gap: 10px;
}
.project-story li {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 15px;
}
.project-story li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gradient);
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.source-note,
.access-note {
  font-size: 13.5px;
  color: var(--muted);
}

/* Screenshot galleries */
.screens {
  padding-bottom: 72px;
}
.gallery-heading {
  margin: 48px 0 18px;
}
.screens .gallery-heading:first-child {
  margin-top: 0;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}
.gallery-item {
  margin: 0;
}
.gallery-item > a {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.gallery-item img {
  width: 100%;
  transition: transform 1.2s var(--ease);
}
.gallery-item > a:hover img {
  transform: scale(1.03);
}
.gallery-wide {
  grid-column: 1 / -1;
}
.gallery-mobile {
  grid-template-columns: repeat(2, minmax(0, 300px));
  justify-content: center;
  padding: 40px 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.gallery-single {
  grid-template-columns: minmax(0, 300px);
}
.gallery-mobile .gallery-item > a {
  border-radius: 26px;
}

.closing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 40px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.closing p {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.closing a {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  transition: color 0.2s;
}
.closing a:hover {
  color: var(--indigo);
}

/* Motion (only with JavaScript) ------------------------------------------ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
  .project-featured,
  .about,
  .project-story {
    grid-template-columns: 1fr;
  }
  .project-featured {
    gap: 20px;
    padding: 20px;
  }
  .about-body {
    padding-top: 0;
  }
  .project-story {
    gap: 24px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .site-header {
    top: 8px;
    padding-top: 8px;
  }
  .nav-pill {
    padding: 6px 6px 6px 16px;
  }
  .nav-pill nav {
    gap: 16px;
    font-size: 13px;
  }
  .nav-pill .btn {
    display: none;
  }
  .hero {
    padding: 72px 0 56px;
  }
  .lede {
    font-size: 17px;
  }
  .project-grid,
  .gallery {
    grid-template-columns: 1fr;
  }
  .gallery-mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px 14px;
  }
  .gallery-single {
    grid-template-columns: minmax(0, 260px);
  }
  .project {
    padding: 14px;
  }
  .project-featured h3 {
    font-size: 30px;
  }
  .contact-card {
    padding: 48px 20px;
  }
  .page-intro {
    padding-top: 56px;
  }
  .closing {
    padding: 28px;
  }
  .wordmark {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Services ---------------------------------------------------------------- */
.services {
  padding: 56px 0;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.service {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition:
    border-color 0.3s,
    transform 0.6s var(--ease);
}
.service:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.service h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.service p {
  font-size: 15px;
  color: var(--muted);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(236, 72, 153, 0.18));
  border: 1px solid var(--line-strong);
}
.service-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #c7d2fe;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.process {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.process li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 4px;
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px dashed var(--line-strong);
}
.process span {
  grid-row: span 2;
  font-size: 13px;
  font-weight: 800;
  color: var(--indigo);
  padding-top: 3px;
}
.process strong {
  font-size: 17px;
}
.process p {
  font-size: 14.5px;
  color: var(--muted);
}

/* Contact form ------------------------------------------------------------ */
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
  text-align: left;
  padding: 56px;
}
.contact-intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  font-weight: 600;
}
.contact-links a {
  width: fit-content;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.contact-links a:hover {
  color: var(--indigo);
  border-color: var(--indigo);
}
.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(7, 8, 13, 0.55);
  border: 1px solid var(--line);
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}
.field small {
  color: var(--muted);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  font-size: 15px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 52%,
    calc(100% - 15px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.field select option {
  background: var(--surface-2);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25);
}
.contact-form .btn {
  justify-self: start;
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.thanks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}
.thanks h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}

@media (max-width: 1000px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-card {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }
}
@media (max-width: 700px) {
  .service-grid,
  .process,
  .field-row {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 28px 16px;
  }
  .contact-form {
    padding: 18px;
  }
}

/* Three secondary projects side by side */
.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.project-grid .project h3 {
  font-size: 22px;
}
@media (max-width: 1000px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.form-status {
  color: #fda4af;
  font-size: 14px;
  font-weight: 600;
}

/* Live demos ---------------------------------------------------------------- */
.demos {
  padding: 56px 0;
}
.section-lede {
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}
.demo-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition:
    transform 0.6s var(--ease),
    border-color 0.3s,
    box-shadow 0.6s var(--ease);
}
.demo-card:nth-child(n + 4) {
  grid-column: span 3;
}
.demo-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 40px 80px -40px rgba(99, 102, 241, 0.55);
}
.demo-shot {
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.demo-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  transition: transform 1.2s var(--ease);
}
.demo-card:hover .demo-shot img {
  transform: scale(1.03);
}
.demo-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 6px 6px;
  flex: 1;
}
.demo-body h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.demo-body p {
  color: var(--muted);
  font-size: 15px;
}
.demo-body .project-link {
  margin-top: auto;
}
.demo-card:hover .project-link span {
  transform: translate(3px, -3px);
}
@media (max-width: 1000px) {
  .demo-card,
  .demo-card:nth-child(n + 4) {
    grid-column: span 3;
  }
  .demo-card:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 700px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
  .demo-card,
  .demo-card:nth-child(n + 4),
  .demo-card:last-child {
    grid-column: auto;
  }
}

/* Language switch ----------------------------------------------------------- */
.nav-pill nav {
  margin-left: auto;
}
.lang-switch {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.lang-switch:hover {
  color: var(--text);
  border-color: var(--indigo);
  background: rgba(129, 140, 248, 0.12);
}
@media (max-width: 700px) {
  .lang-switch {
    min-width: 36px;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }
}
@media (max-width: 700px) {
  .nav-pill {
    flex-wrap: wrap;
    row-gap: 4px;
    border-radius: 22px;
    padding: 8px 8px 6px 16px;
  }
  .nav-pill nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 8px 2px 0;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }
  .nav-pill nav::-webkit-scrollbar {
    display: none;
  }
}
@media (max-width: 380px) {
  .nav-pill nav {
    gap: 8px;
    font-size: 12.5px;
  }
}
