@font-face {
  font-family: Inter;
  src: url("assets/inter-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1c1d2f;
  --muted: #53556d;
  --line: #dfdfeb;
  --blue: #3a58ee;
  --link: #2945cf;
  --canvas: #f6f6fa;
  --paper: #fff;
  --lavender: #edf0ff;
  --hero-muted: #d1d4ea;
  --hero-accent: #b7c2ff;
  --page-gutter: clamp(1rem, 4vw, 11rem);
  --radius: 1.125rem;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 1rem/1.6 Inter, system-ui, sans-serif;
}
h1, h2, h3, p, figure { margin: 0; }
h2, h3 { line-height: 1.16; letter-spacing: -.038em; }
a { color: var(--link); text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid #7793ff; outline-offset: 5px; border-radius: .2rem; }
img { display: block; max-width: 100%; height: auto; }

.wrap { width: calc(100% - 2 * var(--page-gutter)); margin-inline: auto; }
.skip {
  position: fixed;
  z-index: 2;
  inset: .75rem auto auto .75rem;
  padding: .6rem 1rem;
  background: var(--paper);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.header {
  background: var(--ink);
  border-bottom: 1px solid #383a56;
  color: var(--paper);
}
.header-inner, .footer, nav { display: flex; align-items: center; }
.header-inner { justify-content: flex-end; min-height: 4.25rem; padding-block: .6rem; }
.footer { justify-content: space-between; gap: .75rem 1.5rem; }
nav { gap: clamp(.7rem, 2.7vw, 1.8rem); flex-wrap: wrap; }
nav a { color: var(--hero-muted); font-size: .875rem; font-weight: 620; }
.header-nav { justify-content: flex-end; gap: .55rem; }
.header-nav a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.5rem;
  padding: .42rem .85rem;
  border: 1px solid #515779;
  border-radius: .65rem;
  background: #2c304c;
  color: #e0e4fb;
  text-decoration: none;
}
.header-nav a:hover { background: #3d4569; border-color: #8794d0; color: var(--paper); }
.header-nav svg { flex: none; width: 1rem; height: 1rem; }
.action { text-decoration: none; }
.text-action:hover { text-decoration: underline; }

.hero {
  background:
    radial-gradient(ellipse at 100% 0%, #363e79 0%, transparent 56%),
    var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 30%;
  background: radial-gradient(circle, #a5aef680 1px, transparent 1.6px) 1px 1px / 20px 20px;
  mask-image: linear-gradient(90deg, transparent, #000 85%);
  opacity: .62;
  pointer-events: none;
}
.hero-inner { position: relative; padding-block: clamp(3.25rem, 7.2vw, 6.25rem); }
h1 {
  max-width: 18ch;
  font-size: clamp(2.65rem, 6.6vw, 5.9rem);
  font-weight: 740;
  line-height: .99;
  letter-spacing: -.074em;
  text-wrap: balance;
}
h1 span { color: var(--hero-accent); }
.home-hero .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-block: clamp(2.5rem, 4.25vw, 5rem);
}
.home-hero h1 { max-width: none; font-size: clamp(2.65rem, 5.6vw, 5.7rem); }
.home-intro { min-width: 0; }
.home-hero .hero-name {
  color: var(--paper);
  margin-top: 1.05rem;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 690;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.home-hero .hero-description {
  max-width: 75ch;
  margin-top: .45rem;
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
}
.hero p {
  max-width: 38rem;
  margin-top: 1.35rem;
  color: var(--hero-muted);
  font-size: clamp(1rem, 2vw, 1.19rem);
}
.action {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .68rem 1rem;
  min-height: 2.8rem;
  width: fit-content;
  border-radius: .6rem;
  font-size: .9rem;
  font-weight: 700;
}
.hero-action {
  border: 1px solid #747dad;
  background: #30365c;
  color: var(--paper);
}
.hero-action:hover { background: #404873; }
.primary { background: var(--blue); color: var(--paper); }
.primary:hover { background: var(--link); }
.secondary {
  border: 1px solid #c3cdfa;
  background: var(--paper);
  color: var(--link);
}
.secondary:hover { background: var(--lavender); }
.secondary svg { flex: none; width: 1rem; height: 1rem; }

.gallery { padding-block: clamp(2.25rem, 5.5vw, 4rem) clamp(3rem, 6vw, 5rem); scroll-margin-top: 1rem; }
.gallery > h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.2rem;
}
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.featured-grid { display: grid; gap: 1.1rem; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  overflow: hidden;
}
.feature-copy { align-self: center; padding: clamp(1.25rem, 2.25vw, 2.75rem); }
.category {
  color: var(--link);
  font-size: .78rem;
  font-weight: 730;
  letter-spacing: .025em;
  margin-bottom: .5rem;
}
.feature h3 { font-size: clamp(1.85rem, 2.6vw, 3.2rem); }
.feature-copy > p { max-width: 57ch; }
.feature-copy > p:not(.category), .project-copy > p:not(.category), .comparison-card > p:not(.category) {
  color: var(--muted);
  margin-top: .7rem;
}
.feature-copy > .primary, .feature-actions { margin-top: 1.35rem; }
.feature-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.feature-visual {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: clamp(.75rem, 2.7vw, 1.9rem);
  background: radial-gradient(circle at 100% 100%, #e1e6ff 10%, #f2f2fa 75%);
  border-left: 1px solid var(--line);
}
.feature-visual img {
  width: 100%;
  aspect-ratio: 1255 / 810;
  object-fit: cover;
  object-position: center top;
  border: 1px solid #d1d8ea;
  border-radius: .7rem;
  box-shadow: 0 .5rem 1rem #21275518;
}

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1.1rem; }
.project { display: flex; flex-direction: column; overflow: hidden; }
.preview {
  display: grid;
  place-items: center;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  aspect-ratio: 2 / 1;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--lavender);
}
.preview img { width: 100%; height: 100%; object-fit: contain; }
.graph-preview img { object-fit: cover; object-position: 50% 40%; }
.dashboard-preview img { object-fit: cover; object-position: center top; }
.approval-preview { aspect-ratio: 16 / 9; background: var(--ink); }
.vale-cover {
  background:
    radial-gradient(circle, #a5aef640 1px, transparent 1.5px) 1px 1px / 15px 15px,
    linear-gradient(135deg, var(--ink), #343c72);
  text-align: center;
}
.vale-cover-body {
  width: min(92%, 32rem);
  padding-block: .75rem;
}
.vale-cover .mini-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .78fr) minmax(0, 1fr);
  align-items: stretch;
  padding: 0;
}
.vale-cover .mini-flow li {
  display: grid;
  align-content: center;
  min-height: 2.9rem;
  padding: .4rem .3rem;
  font-size: clamp(.63rem, .88vw, .84rem);
}
.vale-cover .mini-flow li + li::before { background: var(--hero-accent); }
.vale-cover .mini-flow span { color: var(--muted); font-size: .82em; font-weight: 600; }
.vale-cover p { margin-top: .75rem; color: var(--hero-muted); font-size: .74rem; font-weight: 620; }
.vale-plaque { max-width: 55rem; }
.notebook-preview { background: #f3f3f7; }
.notebook-preview img { padding: .4rem; }
.flow-preview {
  background:
    radial-gradient(circle, #b4bddf 1px, transparent 1.4px) 1px 1px / 14px 14px,
    var(--lavender);
}
.mini-flow {
  list-style: none;
  margin: 0;
  padding: .65rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
}
.mini-flow li {
  position: relative;
  background: var(--paper);
  border: 1px solid #c7cde7;
  border-radius: .45rem;
  padding: .4rem .45rem;
  text-align: center;
  font-size: .68rem;
  font-weight: 655;
  line-height: 1.24;
}
.mini-flow li + li::before {
  content: "";
  position: absolute;
  width: .66rem;
  height: 1px;
  right: 100%;
  top: 50%;
  background: #6f78b2;
}
.mini-flow .flow-current { background: #e3e9ff; color: #273eac; border-color: #8799f2; }
.project-copy { flex: 1; padding: 1.25rem; display: flex; flex-direction: column; align-items: flex-start; }
.project h3 { font-size: 1.48rem; }
.project-copy > p:not(.category) { font-size: .94rem; }
.project-links { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: auto; padding-top: .95rem; }
.project-links > .text-action { margin-top: 0; padding-top: 0; }
.text-action {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  margin-top: auto;
  padding-top: .95rem;
  padding-bottom: .2rem;
  font-size: .89rem;
  font-weight: 730;
  text-decoration: none;
}

.stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  margin: .65rem 0 0;
  padding: 0;
}
.stack-badges li {
  border: 1px solid #d9dff7;
  border-radius: .4rem;
  background: var(--lavender);
  color: var(--link);
  padding: .2rem .43rem;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.3;
}
.revez-visual img { aspect-ratio: 3 / 2; object-fit: contain; }

.footer {
  flex-wrap: wrap;
  min-height: 4.5rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  color: var(--muted);
}
.footer a { color: var(--link); font-weight: 650; }

.case-hero .hero-inner { padding-block: clamp(2.15rem, 5vw, 3.7rem); }
.back {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--hero-muted);
  font-size: .9rem;
  margin-bottom: 1.15rem;
}
.case-hero h1 { max-width: 21ch; font-size: clamp(2.4rem, 6.2vw, 4.7rem); }
.case-content { padding-block: clamp(1.7rem, 4vw, 3rem) clamp(2.8rem, 6vw, 4.8rem); }
.case-content h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.lead, .case-note p { max-width: 66ch; margin-top: .65rem; color: var(--muted); }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.comparison-card { padding: clamp(1.25rem, 4vw, 2.25rem); }
.comparison-card h3 { font-size: clamp(1.25rem, 2.6vw, 1.8rem); }
.comparison-card.corrected { background: var(--lavender); border-color: #bfc9f3; }
.case-note { margin-top: 2.25rem; }
.case-sidebar > .lead:first-child { margin-top: 0; }
.proof-grid { display: grid; gap: .9rem; margin-top: 1.05rem; }
.slack-proof { background: var(--ink); }
.slack-proof img { max-width: 660px; margin-inline: auto; }
.slack-proof figcaption { background: var(--paper); }
.diagram { overflow: hidden; }
.diagram img { width: 100%; }
.diagram figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  border-top: 1px solid var(--line);
  padding: .8rem 1rem;
  color: var(--muted);
  font-size: .9rem;
}

.split-case {
  display: grid;
  align-items: start;
  gap: clamp(1.5rem, 3.25vw, 4rem);
}
.split-case > .case-note { margin-top: 0; }
.case-sidebar .comparison { grid-template-columns: minmax(0, 1fr); }
.revez-hero .hero-inner { display: grid; align-items: center; gap: clamp(1.5rem, 4vw, 5rem); }
.revez-hero-cover { width: min(100%, 57rem); }
.revez-hero-cover img { width: 100%; border-radius: var(--radius); }
.revez-hero-cover figcaption { margin-top: .6rem; color: var(--hero-muted); font-size: .82rem; }
.revez-flow { margin-top: 1.2rem; }
.revez-proofs { margin-top: 2rem; }

.sla-columns { display: grid; gap: 1.25rem; }
.sla-views { margin-top: 2.25rem; }
.sla-view { min-width: 0; }
.sla-view > p { margin: .6rem 0 1rem; color: var(--muted); }

@media (min-width: 62rem) {
  .sla-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sla-views { row-gap: 0; }
  .sla-view { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
}

@media (min-width: 47rem) {
  .home-hero .hero-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .revez-proofs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 68rem) {
  .split-case { grid-template-columns: minmax(0, 1.75fr) minmax(18rem, .85fr); }
  .revez-hero .hero-inner { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .revez-hero-cover { justify-self: end; }
}

@media (min-width: 86rem) {
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero .desktop-break { display: none; }
}

@media (max-width: 62rem) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 43rem) {
  :root { --page-gutter: 1rem; }
  .desktop-break { display: none; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature-visual { border-left: 0; border-top: 1px solid var(--line); }
  .grid, .comparison { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 26rem) {
  .header-nav a { padding-inline: .62rem; }
}
