:root {
  --ink: #10131a;
  --muted: #5d6472;
  --paper: #f4f2ed;
  --surface: #fffefa;
  --line: rgba(16, 19, 26, .14);
  --blue: #2157f3;
  --green: #b8ff62;
  --orange: #ff6b35;
  --violet: #7657ff;
  --radius: 24px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 19, 26, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 19, 26, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 42px; height: 42px; display: block; }
.brand-word { font-size: 20px; font-weight: 850; letter-spacing: .08em; }
.brand-note { color: var(--muted); font-size: 13px; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.nav-link::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(184, 255, 98, .18);
  content: "";
}

.hero {
  display: grid;
  grid-template-columns: minmax(480px, 1.05fr) minmax(460px, .85fr);
  gap: clamp(56px, 6vw, 96px);
  align-items: center;
  padding: 68px 0 62px;
}

.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 24px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.kicker::before { width: 32px; height: 2px; background: currentColor; content: ""; }

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(54px, 6.2vw, 100px);
  font-weight: 900;
  letter-spacing: -.07em;
  line-height: .94;
}

.hero-accent { color: var(--blue); }

.hero-side {
  padding: 18px 0 18px 44px;
  border-left: 1px solid var(--ink);
}

.hero-side p {
  margin: 0;
  color: #383e49;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.section { padding: 0 0 92px; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
  padding-top: 26px;
  border-top: 1px solid var(--ink);
}

.section-head h2 { margin: 0; font-size: clamp(28px, 3vw, 46px); letter-spacing: -.045em; }
.section-head p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }

.featured {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  min-height: 420px;
  overflow: hidden;
  border-radius: 32px;
  color: #fff;
  background: #11141c;
  text-decoration: none;
  isolation: isolate;
  -webkit-clip-path: inset(0 round 32px);
  clip-path: inset(0 round 32px);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.featured::before,
.featured::after {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  content: "";
  filter: blur(1px);
}

.featured-copy,
.thread-art { position: relative; z-index: 1; }

.featured::before {
  width: 520px;
  height: 520px;
  top: -240px;
  right: -90px;
  background: radial-gradient(circle at 40% 40%, #8e78ff, #3e31d8 58%, transparent 59%);
  opacity: .95;
}

.featured::after {
  width: 300px;
  height: 300px;
  right: 250px;
  bottom: -210px;
  background: var(--green);
  opacity: .92;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
}

.label {
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.featured h3 {
  margin: 28px 0 16px;
  font-size: clamp(46px, 6vw, 84px);
  letter-spacing: -.055em;
  line-height: 1;
}

.featured-copy p { max-width: 660px; margin: 0; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.7; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  font-size: 14px;
  font-weight: 800;
}

.cta-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--green);
  transition: transform .2s ease;
}

.featured:hover .cta-arrow { transform: translateX(5px); }

.thread-art {
  position: relative;
  min-height: 320px;
}

.thread-line {
  position: absolute;
  height: 2px;
  transform-origin: left center;
  background: rgba(255,255,255,.54);
}

.thread-line:nth-child(1) { width: 56%; top: 28%; left: 10%; transform: rotate(19deg); }
.thread-line:nth-child(2) { width: 66%; top: 58%; left: 18%; transform: rotate(-25deg); }
.thread-line:nth-child(3) { width: 48%; top: 74%; left: 5%; transform: rotate(-4deg); }

.thread-node {
  position: absolute;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
  background: rgba(17,20,28,.4);
  backdrop-filter: blur(8px);
}

.thread-node:nth-of-type(4) { top: 14%; left: 6%; }
.thread-node:nth-of-type(5) { top: 38%; right: 15%; width: 92px; height: 92px; color: var(--ink); border: 0; background: var(--green); }
.thread-node:nth-of-type(6) { bottom: 8%; left: 22%; }

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

.project-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.project-card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(16,19,26,.10); }
.project-card.large { grid-column: span 7; }
.project-card.medium { grid-column: span 5; }
.project-card.third { grid-column: span 4; min-height: 300px; }
.project-card.half { grid-column: span 6; min-height: 320px; }

.card-orange { background: #ff9a6f; }
.card-cothread { color: #fff; border-color: transparent; background: #275df5; }
.card-log { background: #63d6ff; }
.card-ride { background: #d1ff55; }
.card-company-black { color: #fff; border-color: transparent; background: #14161b; }
.card-company-graphite { color: #fff; border-color: transparent; background: #41444c; }
.card-company-gray { color: #15171c; border-color: transparent; background: #d7d7d2; }

.project-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.project-index { font-size: 12px; font-weight: 850; letter-spacing: .09em; }
.project-state { font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.project-card h3 {
  max-width: 620px;
  margin: 46px 0 12px;
  font-size: clamp(28px, 3vw, 48px);
  letter-spacing: -.05em;
  line-height: 1.08;
}

.project-card p { max-width: 590px; margin: 0; color: currentColor; font-size: 14px; line-height: 1.7; opacity: .7; }
.access-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding: 7px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  opacity: .78;
}
.access-note span { font-size: 7px; }
.project-link { margin-top: 26px; font-size: 13px; font-weight: 850; }

.coming {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.coming-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 116px;
  padding: 24px 28px;
  border: 1px dashed rgba(16,19,26,.3);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255,255,255,.26);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.coming-card:hover { transform: translateY(-3px); border-color: var(--blue); background: rgba(255,255,255,.6); }

.coming-card h3 { margin: 0 0 6px; color: var(--ink); font-size: 19px; }
.coming-card p { margin: 0; font-size: 12px; }
.coming-badge { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 48px 0 56px;
  border-top: 1px solid var(--ink);
}

.footer-mark { margin: 0; font-size: clamp(52px, 9vw, 124px); font-weight: 900; letter-spacing: -.07em; line-height: .8; }
.footer-copy { max-width: 340px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; text-align: right; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 48px; min-height: auto; padding-top: 80px; }
  .hero-side { padding: 28px 0 8px; border-top: 1px solid var(--ink); border-left: 0; }
  .featured { grid-template-columns: 1fr; }
  .thread-art { min-height: 250px; }
  .project-card.large, .project-card.medium, .project-card.third, .project-card.half { grid-column: span 6; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1440px); }
  .topbar { padding: 12px 0; }
  .brand-note, .nav-link { display: none; }
  .hero { padding: 66px 0 58px; }
  h1 { font-size: clamp(50px, 16vw, 74px); }
  .hero-meta { flex-wrap: wrap; gap: 12px 22px; }
  .section { padding-bottom: 68px; }
  .section-head { align-items: start; flex-direction: column; gap: 8px; }
  .featured-copy { padding: 30px 24px; }
  .featured h3 { font-size: 48px; }
  .thread-art { min-height: 220px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.large, .project-card.medium, .project-card.third, .project-card.half { grid-column: auto; min-height: 290px; padding: 26px 22px; }
  .coming { grid-template-columns: 1fr; }
  .footer { align-items: start; flex-direction: column; }
  .footer-copy { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-card, .cta-arrow { transition: none; }
}
