:root {
  --bg: #0a0f1b;
  --card: rgba(255, 255, 255, 0.02);
  --card-strong: rgba(255, 255, 255, 0.08);
  --ink: #e7ecf7;
  --muted: #9badc8;
  --accent: #e6611a;
  --accent-strong: #ff8a3f;
  --accent-soft: rgba(230, 97, 26, 0.14);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --radius: 18px;
  --glow: 0 0 0 1px rgba(245, 158, 11, 0.18), 0 18px 80px rgba(245, 158, 11, 0.18);
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.atmos {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.silk {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(140% 120% at 18% 10%, rgba(230, 97, 26, 0.5), transparent 55%),
    radial-gradient(120% 160% at 82% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    radial-gradient(160% 140% at 60% 72%, rgba(99, 102, 241, 0.26), transparent 65%),
    radial-gradient(160% 120% at 40% 80%, rgba(14, 165, 233, 0.18), transparent 60%);
  filter: blur(50px) saturate(110%);
  opacity: 0.6;
}

.glow {
  position: absolute;
  filter: blur(80px);
  opacity: 0.65;
}

.glow-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(230, 97, 26, 0.4), transparent 60%);
  top: -60px;
  left: 10%;
}

.glow-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.32), transparent 60%);
  bottom: 0;
  right: 8%;
}

.glow-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25), transparent 60%);
  top: 40%;
  left: -10%;
}


.page {
  min-height: 100vh;
  padding: 32px clamp(20px, 4vw, 40px) 72px;
  max-width: 1100px;
  margin: 0 auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(6px);
  position: sticky;
  top: 12px;
  z-index: 10;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: var(--glow);
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

nav a:hover {
  border-color: var(--border);
  background: var(--card);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-strong);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 48px 0 28px;
  align-items: start;
}

.hero h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 6vw, 44px);
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border 0.15s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0a0f1b;
  box-shadow: var(--glow);
}

.btn.primary:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  border-color: var(--border);
  background: var(--card);
}

.btn.ghost:hover {
  border-color: var(--accent);
}

.hero-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-stat span {
  font-size: 32px;
  font-weight: 700;
}

.hero-stat p {
  margin: 0;
  color: var(--muted);
}

.hero-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.section {
  margin: 56px 0;
  scroll-margin-top: 110px;
}

.section-head h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.logo-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  padding: 18px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  min-height: 140px;
}

.logo-mark {
  width: 160px;
  height: 110px;
  padding: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.logo-mark img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}

.logo-mark.has-img {
  background: transparent;
  border: none;
}

.logo-text {
  display: grid;
  gap: 4px;
}

.logo-text strong {
  margin: 0;
  font-size: 15px;
}

.logo-text span {
  color: var(--muted);
  font-size: 13px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 14px;
  display: grid;
  gap: 12px;
  position: relative;
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft);
  background: var(--card-strong);
}

.thumb {
  position: relative;
  height: 140px;
  border-radius: calc(var(--radius) - 6px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  overflow: hidden;
  border: 1px solid var(--border);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(105%);
  transition: transform 0.4s ease;
}

.project-card:hover .thumb img {
  transform: scale(1.03);
}

.thumb::before,
.thumb::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.thumb::before {
  width: 220px;
  height: 220px;
  background: var(--thumb-primary, var(--accent-soft));
  filter: blur(50px);
  top: -70px;
  right: -40px;
  opacity: 0.9;
}

.thumb::after {
  width: 240px;
  height: 120px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  bottom: -40px;
  left: -40px;
  transform: rotate(-6deg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card h4 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.pill.accent {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: rgba(245, 158, 11, 0.3);
}

.link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link span {
  transition: transform 0.2s ease;
}

.link:hover span {
  transform: translateX(4px);
}

.current {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.time-card h4 {
  margin: 0;
}

.footer {
  margin-top: 32px;
  padding: 20px 16px;
  scroll-margin-top: 110px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--card-strong);
}

.footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
    position: static;
    gap: 10px;
    padding: 16px 14px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  nav a {
    padding: 10px 12px;
  }
}
