:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #4a4a4a;
  --ink-muted: #8a8a8a;
  --line: #e9e9e3;
  --line-strong: #d6d6cf;
  --accent: #1e1efc;
  --accent-soft: rgba(30, 30, 252, 0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1180px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 32px rgba(10, 10, 10, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
a:hover { border-bottom-color: var(--accent); }

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

/* Header */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.brand-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}

.brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  margin: 2px 0;
  object-fit: cover;
}

.brand-role {
  color: var(--ink-soft);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.prepared-for {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(30, 30, 252, 0.12);
}

.prepared-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  font-weight: 600;
  white-space: nowrap;
}

.prepared-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.near-logo {
  height: 30px;
  width: auto;
}

.reviewer-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 32px 64px;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 24px;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 28px;
  max-width: 920px;
  color: var(--ink);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0;
}

/* Project */
.project {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 32px 96px;
}

.project + .project {
  border-top: 1px solid var(--line);
  padding-top: 80px;
  margin-top: 16px;
}

.project.compact {
  padding-bottom: 64px;
}

/* Single shot (no carousel) */
.single-shot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 0;
  box-shadow: var(--shadow-md);
}

.single-shot img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #0a0a0a;
  border: 1px solid var(--line);
}

.single-shot figcaption {
  padding: 18px 12px 6px;
}

.single-shot figcaption p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 720px;
}

.single-shot figcaption strong {
  color: var(--ink);
  font-weight: 600;
}

/* More section */
.more {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.more-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 32px 96px;
}

.more-eyebrow {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

.more h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 16px;
  max-width: 800px;
}

.more > .more-inner > p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 720px;
  margin: 0 0 28px;
}

.more-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 12px;
  max-width: 880px;
}

.more-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.more-list li strong {
  color: var(--ink);
  font-weight: 600;
}

.more-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  border-radius: 999px;
  margin-top: 2px;
}

.more-tag.light { background: #ecf6ec; color: #2c7a2c; }
.more-tag.mid { background: var(--accent-soft); color: var(--accent); }
.more-tag.heavy { background: #fef0e6; color: #b75c1c; }

.more-cta {
  font-size: 14px;
  color: var(--ink-muted);
  font-style: italic;
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
}

@media (max-width: 720px) {
  .more-inner { padding: 56px 20px 72px; }
  .more-list li { flex-direction: column; gap: 8px; }
  .single-shot img { max-height: 360px; }
}

.project-header {
  margin-bottom: 40px;
  max-width: 820px;
}

.project-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.project-link {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  margin-left: 4px;
}

.project-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
}

.project-tag.muted {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--line-strong);
}

.project-tag.review {
  background: #0a0a0a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-tag.review::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b6bff;
  box-shadow: 0 0 8px rgba(107, 107, 255, 0.7);
}

.project h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 16px;
}

.project-summary {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.project-stack {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-stack li {
  font-size: 12px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Carousel */
.carousel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-md);
}

.carousel-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.carousel-track {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.slide {
  display: none;
  margin: 0;
  flex-direction: column;
}

.slide.is-active {
  display: flex;
  animation: fade 0.4s ease;
}

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

.slide img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  background: #f3f3ee;
  border-bottom: 1px solid var(--line);
}

.slide figcaption {
  padding: 24px 28px 28px;
}

.slide figcaption h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--ink);
}

.slide figcaption p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 720px;
}

.slide figcaption strong {
  color: var(--ink);
  font-weight: 600;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, background 0.15s ease;
}

.carousel-arrow:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
}

.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--line-strong);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, width 0.15s ease;
}

.carousel-dots button.is-active {
  background: var(--accent);
  width: 22px;
  border-radius: 4px;
}

/* Thumbnails */
.carousel-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.carousel-thumbs.six {
  grid-template-columns: repeat(6, 1fr);
}

.carousel-thumbs.four {
  grid-template-columns: repeat(4, 1fr);
}

.thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--bg);
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.thumb:hover img { opacity: 0.85; }

.thumb.is-active {
  border-color: var(--accent);
}

.thumb.is-active img { opacity: 1; }

/* Tech sheet (crawler engine, compact) */
.tech-sheet {
  margin-top: 32px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.tech-sheet-top {
  margin-bottom: 24px;
  max-width: 680px;
}

.tech-eyebrow {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.tech-sheet-top h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
}

.tech-sheet-top p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.tech-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.tech-stats > div {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tech-stats > div:last-child { border-right: none; }

.tech-stats strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tech-stats span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  font-weight: 500;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tech-card {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.tech-card-tag {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.tech-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

.tech-card code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 5px;
  border-radius: 4px;
}

@media (max-width: 720px) {
  .tech-stats { grid-template-columns: repeat(2, 1fr); }
  .tech-stats > div:nth-child(2) { border-right: none; }
  .tech-stats > div:nth-child(1), .tech-stats > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .tech-grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 40px 32px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-name {
  font-weight: 600;
  margin: 0;
  font-size: 15px;
}

.footer-tagline {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 13px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}

.footer-right {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-right a {
  color: var(--ink-soft);
}

/* Responsive */
@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 20px;
  }
  .prepared-for { width: 100%; padding: 12px 16px; }
  .near-logo { height: 26px; }
  .hero { padding: 48px 20px 36px; }
  .project { padding: 32px 20px 64px; }
  .carousel { padding: 12px; }
  .carousel-arrow { width: 36px; height: 36px; }
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
  .slide img { max-height: 360px; }
  .slide figcaption { padding: 18px; }
  .slide figcaption h3 { font-size: 18px; }
  .carousel-thumbs { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .carousel-thumbs.six { grid-template-columns: repeat(6, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
