:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #172033;
  --muted: #5b6578;
  --line: #dbe2ef;
  --accent: #275efe;
  --accent-dark: #1746c8;
  --chip: #eef3ff;
  --soft: #f2f6ff;
  --warm: #fff6e8;
  --max-width: 1060px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top left, #eef4ff 0, transparent 36rem), var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-weight: 780;
  color: var(--text);
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  font-weight: 680;
  font-size: 0.95rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  padding: 3.7rem 0 2.2rem;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: 2.2rem;
  align-items: center;
}

.hero-simple {
  max-width: 880px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: center;
}

.hero-compact {
  padding-bottom: 1.4rem;
}

.project-hero {
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--accent);
  font-weight: 780;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

h1,
h2,
h3 {
  line-height: 1.14;
  margin: 0 0 0.9rem;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  letter-spacing: -0.06em;
  max-width: 880px;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  letter-spacing: -0.035em;
  margin-top: 2.2rem;
}

h3 {
  font-size: 1.08rem;
}

.lede {
  max-width: 760px;
  font-size: 1.15rem;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.button {
  display: inline-block;
  padding: 0.74rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 760;
}

.button:hover {
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.button.secondary:hover {
  color: var(--accent-dark);
}

.button.small {
  padding: 0.5rem 0.78rem;
  font-size: 0.92rem;
}

.grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.card,
.project-card,
.callout,
.spotlight,
.project-strip article,
.quiet-tools,
.gallery-feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(21, 31, 56, 0.05);
}

.card {
  padding: 1.2rem;
}

.card p,
.project-card p,
.section-note,
.quiet-tools p,
.project-strip p,
.gallery-copy p {
  color: var(--muted);
}

.card p:last-child,
.project-card p:last-child {
  margin-bottom: 0;
}

.card strong {
  color: var(--text);
}

.hero-visual,
.gallery-visual {
  color: var(--text);
  background: linear-gradient(180deg, #ffffff, #f7f9ff 68%, #fff8ec);
  border: 1px solid #c8d7ff;
  border-radius: 26px;
  box-shadow: 0 24px 56px rgba(21, 31, 56, 0.1);
  overflow: hidden;
  display: block;
}

.hero-visual:hover,
.gallery-visual:hover {
  text-decoration: none;
  transform: translateY(-2px);
  transition: transform 160ms ease;
}

.visual-label {
  color: var(--accent);
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  padding: 1rem 1.1rem 0;
}

.molecule-preview {
  height: 330px;
  margin: 1rem;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(39, 94, 254, 0.05), rgba(255, 246, 232, 0.75)),
    radial-gradient(circle at 50% 50%, rgba(39,94,254,0.08), transparent 15rem);
  border: 1px solid #dce7ff;
}

.wide-preview {
  height: 360px;
  margin: 0;
  border-radius: 22px;
}

.band {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 42%;
  height: 18%;
  border-top: 2px dashed rgba(39,94,254,0.75);
  border-bottom: 2px dashed rgba(39,94,254,0.75);
  background: rgba(39,94,254,0.07);
}

.dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(21, 31, 56, 0.14);
}

.dot.blue {
  background: rgba(39,94,254,0.62);
}

.dot.orange {
  background: rgba(234,117,0,0.86);
}

.visual-copy {
  padding: 0 1.15rem 1.2rem;
}

.visual-copy h2 {
  margin-top: 0;
}

.visual-copy p {
  color: var(--muted);
  margin-bottom: 0;
}

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

.project-strip article {
  padding: 1.25rem;
}

.project-strip h2 {
  margin-top: 0;
}

.quiet-tools {
  padding: 1.25rem;
  margin-top: 1rem;
}

.quiet-tools h2 {
  margin-top: 0;
}

.gallery-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.55fr);
  gap: 1.2rem;
  padding: 1.1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.gallery-copy {
  padding: 0.6rem 0.4rem;
}

.gallery-copy h2 {
  margin-top: 0;
}

.spotlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem;
  background: linear-gradient(135deg, #ffffff, #f4f7ff 68%, var(--warm));
}

.spotlight h2 {
  margin-top: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.chip {
  background: var(--chip);
  color: #1c3f8f;
  border: 1px solid #dce7ff;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 650;
}

.project-list {
  display: grid;
  gap: 1rem;
}

.project-card {
  padding: 1.35rem;
  margin-bottom: 1rem;
}

.project-card h2,
.project-card h3 {
  margin-top: 0;
}

.project-card .meta,
.meta {
  color: var(--muted);
  font-size: 0.94rem;
  margin: -0.25rem 0 0.8rem;
}

.featured-project,
.visual-card {
  border-color: #c8d7ff;
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
}

.compact-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.compact-list-card p {
  max-width: 720px;
}

.callout {
  background: var(--soft);
  border-color: #dce7ff;
  padding: 1.2rem;
}

.callout h2 {
  margin-top: 0;
}

.visual-stage {
  margin-top: 1.4rem;
}

.canvas-wrap {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 18px 44px rgba(21, 31, 56, 0.08);
  overflow-x: auto;
}

.cinematic-canvas {
  max-width: 920px;
  margin: 0 auto;
}

.canvas-wrap canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.watch-strip {
  max-width: 920px;
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.4fr);
  gap: 1rem;
  align-items: stretch;
}

.watch-strip > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}

.watch-strip h2 {
  margin-top: 0;
}

.watch-strip p {
  color: var(--muted);
  margin-bottom: 0;
}

.mini-note {
  color: var(--muted);
  font-weight: 650;
  display: flex;
  align-items: center;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 1.2rem;
}

ul.clean {
  padding-left: 1.2rem;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--panel);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem;
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .home-hero,
  .hero-grid,
  .watch-strip,
  .spotlight,
  .gallery-feature {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .navbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .molecule-preview,
  .wide-preview {
    height: 260px;
  }

  .two-column {
    grid-template-columns: 1fr;
  }
}
