:root {
  color-scheme: dark;
  --bg: #0b1114;
  --bg-soft: #10181c;
  --panel: #141f24;
  --panel-raised: #17252a;
  --ink: #f5f1e8;
  --muted: #b2bdbc;
  --faint: #7e8a8a;
  --line: rgba(232, 244, 243, 0.12);
  --accent: #39c6b7;
  --accent-strong: #8ee8dc;
  --warm: #d0a46f;
  --paper: #f4efe4;
  --paper-line: #ded6c8;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(180deg, #0b1114 0%, #111a1e 46%, #0b1114 100%);
  color: var(--ink);
  font-family: Inter, Avenir Next, Helvetica Neue, Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  min-width: 320px;
}

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

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

.container,
.header-inner,
.footer-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: 28px;
  padding-right: 28px;
}

.site-header {
  background: rgba(11, 17, 20, 0.88);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner,
.footer-inner,
.brand,
.nav-links,
.hero-actions,
.project-actions,
.tag-row {
  align-items: center;
  display: flex;
}

.header-inner {
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  color: var(--ink);
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--accent), var(--warm));
  border-radius: 8px;
  color: #081012;
  display: inline-flex;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 850;
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 720;
  padding: 8px 12px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

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

.hero-grid {
  align-items: center;
  display: grid;
  gap: 58px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  min-height: calc(100vh - 130px);
  padding-bottom: 56px;
  padding-top: 56px;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: 5.4rem;
  font-weight: 900;
}

h2 {
  font-size: 3rem;
  font-weight: 900;
}

h3 {
  font-size: 1.45rem;
  font-weight: 850;
}

.hero-description {
  color: var(--muted);
  font-size: 1.18rem;
  margin: 24px 0 0;
  max-width: 600px;
}

.hero-actions,
.project-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #071012;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--ink);
}

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

.studio-panel,
.project-card,
.notes-grid article,
.policy {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.studio-panel {
  overflow: hidden;
}

.signal-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 74px;
  padding: 18px 24px;
}

.signal-row:last-child {
  border-bottom: 0;
}

.signal-row span {
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-row strong {
  color: var(--ink);
  font-size: 0.98rem;
  text-align: right;
}

.signal-row a {
  overflow-wrap: anywhere;
}

.section {
  border-bottom: 1px solid var(--line);
  padding: 82px 0;
}

.hero + .section {
  padding-top: 34px;
}

.section-heading {
  margin-bottom: 34px;
}

.project-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.38fr) minmax(280px, 0.82fr);
}

.project-card {
  overflow: hidden;
}

.featured-project {
  background: var(--panel-raised);
}

.project-media {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(11, 17, 20, 0.06) 28px,
      rgba(11, 17, 20, 0.06) 29px
    ),
    var(--paper);
  border-bottom: 1px solid var(--line);
  display: grid;
  min-height: 360px;
  padding: 30px;
  place-items: center;
}

.project-media img {
  aspect-ratio: 1;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  object-fit: cover;
  width: min(290px, 72vw);
}

.project-body {
  padding: 28px;
}

.tag-row {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag {
  background: rgba(57, 198, 183, 0.1);
  border: 1px solid rgba(57, 198, 183, 0.26);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 850;
  padding: 5px 12px;
  text-transform: uppercase;
}

.tag.launch {
  background: rgba(208, 164, 111, 0.12);
  border-color: rgba(208, 164, 111, 0.28);
  color: #e7c28f;
}

.tag.quiet {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--faint);
}

.project-body p,
.notes-grid p,
.policy p,
.policy li {
  color: var(--muted);
}

.pipeline-card {
  align-items: center;
  background: var(--bg-soft);
  border-style: dashed;
  display: flex;
}

.studio-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
}

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

.notes-grid article {
  box-shadow: none;
  padding: 22px;
}

.notes-grid h3 {
  font-size: 1.05rem;
}

.notes-grid p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.site-footer {
  padding: 28px 0;
}

.footer-inner {
  color: var(--faint);
  font-size: 0.9rem;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner a {
  color: var(--faint);
}

.policy-page {
  padding: 54px 0 84px;
}

.policy {
  margin: 0 auto;
  max-width: 880px;
  padding: 48px;
}

.back-link {
  color: var(--muted);
  display: inline-flex;
  font-weight: 800;
  margin-bottom: 24px;
  text-decoration: none;
}

.policy h1 {
  font-size: 2.65rem;
  margin-bottom: 22px;
}

.policy h2 {
  border-top: 1px solid var(--line);
  font-size: 1.28rem;
  margin-top: 38px;
  padding-top: 26px;
}

.policy ul {
  margin: 0;
  padding-left: 1.2rem;
}

.policy li {
  margin: 10px 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .project-grid,
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-bottom: 46px;
    padding-top: 46px;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 4rem;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner,
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .nav-links a {
    padding-left: 10px;
    padding-right: 10px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1.04rem;
  }

  .hero-grid {
    gap: 28px;
  }

  .studio-panel {
    display: none;
  }

  .studio-panel,
  .project-card,
  .notes-grid article,
  .policy {
    box-shadow: none;
  }

  .signal-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .signal-row strong {
    text-align: left;
  }

  .button {
    width: 100%;
  }

  .project-body,
  .project-media,
  .policy {
    padding: 22px;
  }

  .project-media {
    min-height: 300px;
  }

  .project-media img {
    width: min(240px, 72vw);
  }

  .policy h1 {
    font-size: 1.95rem;
  }

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