:root {
  color-scheme: light;
  --bg: #ecf5fd;
  --card: #fff;
  --text: #102436;
  --muted: #506a81;
  --accent: #096ab8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse at 50% 0, #cce8fd 0, transparent 44rem), var(--bg);
  -webkit-font-smoothing: antialiased;
}

main {
  width: min(800px, 100%);
  margin: auto;
  padding: 0 24px;
}

.intro { padding: clamp(38px, 7vh, 76px) 0 28px; }
header { text-align: center; margin-bottom: 34px; }
.mascot {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 15px;
  border-radius: 31px;
  padding: 10px;
  background: var(--card);
  box-shadow: 0 8px 32px #247fbc23;
  object-fit: contain;
}

h1, h2, p { margin: 0; }
h1 { font-size: clamp(44px, 8vw, 68px); letter-spacing: -.065em; line-height: 1; }
header p { margin: 12px auto 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 86px;
  padding: 16px 20px;
  border-radius: 25px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  grid-column: 1 / -1;
}
.project:nth-child(-n+2) {
  grid-column: auto;
  min-height: 112px;
  box-shadow: 0 5px 20px #2374ad12;
}
a.project {
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
@media (hover: hover) {
  a.project:hover { background: #f7fbff; box-shadow: 0 8px 25px #1a70b121; transform: translateY(-2px); }
}
a.project:active { transform: scale(.985); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.project-icon {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  flex: none;
  overflow: hidden;
}
.project:not(.agent) .project-icon {
  background-image: url("/assets/company-projects-glass-v1.svg");
  background-repeat: no-repeat;
  background-size: 400% 100%;
}
.photo .project-icon { background-position: 0% 50%; }
.learning .project-icon { background-position: 33.333333% 50%; }
.games .project-icon { background-position: 66.666667% 50%; }
.library .project-icon { background-position: 100% 50%; }
.agent .project-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
a.project.agent { background: linear-gradient(145deg, #fce6ee, #fff0d6); color: #492420; }
.project.agent p { color: #755047; }
a.project.agent:focus-visible { outline-color: #a64738; }
h2 { font-size: 20px; letter-spacing: -.025em; line-height: 1.3; }
.project p { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.soon { margin-left: auto; border-radius: 100px; padding: 5px 11px; background: #e6f2ff; color: #246699; font-size: 14px; }

.about {
  scroll-margin-top: 24px;
  background: var(--card);
  border-radius: 26px;
  padding: clamp(22px, 5vw, 38px);
}
.about h2 { font-size: 26px; margin-bottom: 12px; }
.company-story p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.company-story p + p { margin-top: 10px; }
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding: 23px 0 32px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer > a { margin-left: auto; }

@media (max-width: 580px) {
  main { padding: 0 15px; }
  .intro { padding-top: 33px; }
  header { margin-bottom: 23px; }
  .mascot { width: 76px; height: 76px; border-radius: 24px; }
  header p { font-size: 16px; }
  .projects { grid-template-columns: 1fr; gap: 9px; }
  .project, .project:nth-child(-n+2) { min-height: 76px; padding: 13px 15px; border-radius: 21px; box-shadow: none; }
  .project-icon { width: 44px; height: 44px; border-radius: 15px; }
  .project h2 { font-size: 18px; }
  footer nav { order: 1; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.project { transition: none; }
  a.project:hover, a.project:active { transform: none; }
}
