:root {
  --bg: #09090b;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-hover: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f5f7;
  --muted: #9b9ba4;
  --soft: #c9c9cf;
  --accent: #8fd0ff;
  --accent-2: #baa8ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(95, 116, 150, 0.12), transparent 36rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page-glow {
  position: fixed;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  filter: blur(95px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.page-glow-a {
  top: -10rem;
  right: -10rem;
  background: var(--accent);
}

.page-glow-b {
  bottom: 5rem;
  left: -14rem;
  background: var(--accent-2);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 680px);
  margin: 0 auto;
  padding: 54px 0 34px;
}

.intro {
  text-align: center;
  padding: 10px 8px 28px;
  animation: fade-up .8s cubic-bezier(.2,.75,.25,1) both;
}

.brand-mark {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 2.2;
  overflow: hidden;
  margin: 0 auto;
}

.brand-logo {
  /* Frame the combined logo within the supplied image's padding. */
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220%;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
}

.brand-link {
  display: block;
  width: 100%;
  height: 100%;
}

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

.intro-copy {
  width: min(100%, 470px);
  margin: 18px auto 0;
  color: var(--soft);
  font-size: .96rem;
  line-height: 1.6;
}

.links {
  display: grid;
  gap: 12px;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 92px;
  padding: 14px 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: 0 10px 36px rgba(0,0,0,.16);
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
  animation: fade-up .7s cubic-bezier(.2,.75,.25,1) both;
}

article.project-card {
  grid-template-columns: auto minmax(0,1fr);
}

a.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 85%) var(--y, 50%), rgba(255,255,255,.11), transparent 28%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

a.project-card:hover {
  transform: translateY(-2px) scale(1.004);
  border-color: var(--line-strong);
  background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}

a.project-card:hover::after { opacity: 1; }
a.project-card:active { transform: scale(.993); }

.project-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: -.03em;
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}

.project-copy { min-width: 0; }

.project-icon.has-image {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.project-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.project-icon.padded-image {
  position: relative;
  overflow: hidden;
}

.project-icon.padded-image img {
  position: absolute;
  width: 160%;
  height: auto;
  max-width: none;
  border-radius: 0;
}

.project-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.project-title {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: -.025em;
}

.status {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #b9b9c0;
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.status.live {
  color: #dfffea;
  border-color: rgba(119, 240, 168, .24);
  background: rgba(91, 215, 139, .08);
}

.project-description {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

.project-description.sentence-lines span {
  display: block;
}

@media (min-width: 700px) {
  .project-description.sentence-lines {
    font-size: .7rem;
  }
}

.arrow {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  color: #bcbcc3;
  font-size: 1.08rem;
  transition: transform .25s ease, color .25s ease, border-color .25s ease;
}

.project-card:hover .arrow {
  transform: translate(2px,-2px);
  color: white;
  border-color: rgba(255,255,255,.18);
}

.footer {
  padding: 31px 10px 0;
  text-align: center;
  color: #6f6f77;
  font-size: .7rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 11px;
}

.footer a {
  color: #94949c;
  text-decoration: none;
}

.footer a:hover { color: white; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .shell { width: min(100% - 22px, 680px); padding-top: 30px; }
  .intro { padding-bottom: 24px; }
  .project-card { min-height: 86px; padding: 12px; border-radius: 19px; gap: 12px; }
  .project-icon { width: 53px; height: 53px; border-radius: 15px; }
  .project-description { font-size: .74rem; }
  .arrow { width: 31px; height: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
