:root {
  --ink: #172238;
  --text: #536078;
  --muted: #8590a3;
  --paper: #ffffff;
  --soft: #f5f9fc;
  --soft-blue: #eef6fa;
  --accent: #d91e5b;
  --accent-dark: #ad1245;
  --accent-soft: #fff1f6;
  --lime: #d6e82c;
  --line: #e5ebf0;
  --line-strong: #d4dde5;
  --max: 1180px;
  --radius: 4px;
  --shadow: 0 18px 48px rgba(34, 50, 75, 0.09);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.72;
}

h1,
h2,
h3 {
  color: var(--ink);
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 22px;
  font-size: 56px;
  font-weight: 720;
  line-height: 1.05;
}

h2 {
  margin-bottom: 22px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
}

h3 {
  margin-bottom: 14px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
}

.cursor-glow,
.scroll-rail,
.hero-bg {
  display: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 70px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(229, 235, 240, 0.92);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.header-cta,
.header-actions {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 9px;
}

.brand {
  min-width: 0;
}

.brand-logo {
  width: 118px;
  height: 42px;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  justify-content: center;
  gap: 25px;
  color: #7b879b;
  font-size: 12px;
  font-weight: 650;
}

.nav-links a,
.header-cta {
  position: relative;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transition: right 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  right: 0;
}

.header-cta {
  min-height: 36px;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 800;
}

.header-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(12deg);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.theme-icon::before {
  content: "\263c";
  display: block;
  font-size: 17px;
  line-height: 1;
}

html[data-theme="dark"] .theme-icon::before {
  content: "\25d0";
}

.section-panel {
  position: relative;
  z-index: 1;
  padding: 104px 24px;
  scroll-margin-top: 70px;
}

.section-light {
  background: var(--paper);
}

.eyebrow,
.project-meta,
.activity-strip span,
.activity-strip small,
.release-rail span,
.release-rail small,
.latest-item small,
.frame-top span,
.case-label,
.dashboard-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 22px;
  font-size: 12px;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

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

.primary:hover {
  background: var(--accent-dark);
}

.ghost {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--ink);
}

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

.inline-link,
.project-link,
.case-card > a:last-child,
.case-actions a {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hero {
  min-height: 920px;
  padding-top: 140px;
  padding-bottom: 70px;
  background: #ffffff;
}

.hero-copy {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.hero-copy .eyebrow {
  margin-bottom: 15px;
}

.hero-copy h1 {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.lede {
  max-width: 650px;
  margin: 0 auto 27px;
}

.hero-actions,
.contact-actions,
.project-links,
.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions,
.contact-actions {
  justify-content: center;
}

.hero-art {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.hero-visual {
  position: relative;
  display: block;
  height: 475px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f4f2e9;
  box-shadow: 0 14px 44px rgba(37, 49, 68, 0.08);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 650ms ease;
}

.hero-visual:hover img {
  transform: scale(1.015);
}

.hero-visual-label {
  position: absolute;
  right: 20px;
  bottom: 18px;
  padding: 9px 13px;
  border-radius: 18px;
  background: var(--accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-facts > * {
  display: grid;
  min-height: 86px;
  align-content: center;
  gap: 5px;
  padding: 15px 22px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.hero-facts > *:last-child {
  border-right: 0;
}

.hero-facts span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts strong {
  font-size: 14px;
}

.section-heading,
.frames-heading,
.case-intro,
.proof-copy {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto 48px;
}

.section-heading h2,
.frames-heading h2,
.case-intro h2,
.proof-copy h2 {
  max-width: 700px;
}

.section-heading > p:last-child,
.frames-heading > p:last-child,
.case-intro > p:last-child,
.proof-copy > p:last-child {
  max-width: 650px;
}

.work {
  background: #ffffff;
}

.activity-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: var(--max);
  margin: 0 auto 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.activity-strip > div {
  display: grid;
  min-height: 95px;
  align-content: center;
  gap: 6px;
  padding: 16px 20px;
  border-right: 1px solid var(--line);
}

.activity-strip > div:last-child {
  border-right: 0;
}

.activity-strip strong {
  font-size: 16px;
}

.flagship-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.flagship-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.flagship-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.flagship-primary {
  display: block;
}

.project-media {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
  background: var(--soft);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 500ms ease;
}

.project-media:hover img {
  transform: scale(1.025);
}

.media-caption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 8px 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.flagship-copy {
  padding: 24px 22px 26px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.flagship-copy h3 {
  font-size: 24px;
}

.flagship-copy p {
  font-size: 14px;
}

.proof-list,
.case-card ul {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.proof-list li,
.case-card li {
  position: relative;
  margin: 9px 0;
  padding-left: 16px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.proof-list li::before,
.case-card li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.release-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: var(--max);
  margin: 55px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.release-rail a {
  display: grid;
  min-height: 122px;
  align-content: center;
  gap: 6px;
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}

.release-rail a:last-child {
  border-right: 0;
}

.release-rail strong {
  font-size: 18px;
}

.latest-github {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  width: 100%;
  max-width: var(--max);
  margin: 72px auto 0;
  padding-top: 55px;
  border-top: 1px solid var(--line);
}

.latest-heading h3 {
  max-width: 440px;
  font-size: 30px;
}

.latest-list {
  border-top: 1px solid var(--line);
}

.latest-item {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  transition: color 180ms ease, padding 180ms ease;
}

.latest-item:hover {
  padding-left: 8px;
  color: var(--accent);
}

.latest-item span {
  font-size: 14px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.latest-item small {
  text-align: right;
}

.systems {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 90px;
  align-items: center;
  min-height: 690px;
  background: #ffffff;
}

.systems-copy {
  width: 100%;
  max-width: 500px;
  justify-self: end;
}

.systems-copy h2 {
  font-size: 40px;
}

.systems-copy p {
  max-width: 470px;
}

.system-stack {
  position: relative;
  width: 100%;
  max-width: 650px;
  min-height: 470px;
  padding: 90px 60px 50px;
  background: var(--soft-blue);
}

.system-stack::before {
  content: "0x";
  position: absolute;
  top: 32px;
  right: 38px;
  color: rgba(217, 30, 91, 0.12);
  font-size: 120px;
  font-weight: 850;
  line-height: 1;
}

.stack-layer {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 15px;
  padding: 24px 0;
  border-bottom: 1px solid #d8e5ec;
}

.stack-layer:last-child {
  border-bottom: 0;
}

.stack-layer span {
  grid-row: 1 / 3;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.stack-layer strong {
  font-size: 18px;
}

.stack-layer p {
  margin: 0;
  font-size: 13px;
}

.frames {
  overflow: hidden;
  background: #ffffff;
}

.frame-board {
  display: flex;
  gap: 18px;
  width: max-content;
  max-width: none;
  margin-left: max(24px, calc((100vw - var(--max)) / 2));
  padding-right: 24px;
  padding-bottom: 20px;
  overflow: visible;
}

.job-frame {
  width: 300px;
  min-height: 330px;
  flex: 0 0 300px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.job-frame:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-frame {
  border-top: 3px solid var(--accent);
}

.frame-top {
  min-height: 132px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.frame-top span {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
}

.frame-top strong {
  font-size: 18px;
  line-height: 1.4;
}

.frame-builds {
  display: grid;
  gap: 12px;
  padding-top: 22px;
}

.frame-builds a {
  color: var(--text);
  font-size: 13px;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.frame-builds a::after {
  content: " ↗";
  color: var(--accent);
}

.showcase {
  overflow: hidden;
  background: var(--soft-blue);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 76px;
  align-items: center;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.showcase-copy {
  order: 1;
  min-width: 0;
}

.showcase-visual {
  order: 2;
  min-width: 0;
}

.showcase-copy h2 {
  max-width: 510px;
  font-size: 43px;
}

.showcase-copy > p:not(.eyebrow) {
  max-width: 520px;
}

.showcase-link {
  display: inline-block;
  margin-top: 4px;
}

.browser-frame {
  position: relative;
  display: block;
  height: 520px;
  overflow: hidden;
  border: 1px solid #cfdae1;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 20px 54px rgba(35, 55, 76, 0.11);
}

.browser-top {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.browser-top span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9d5dc;
}

.browser-frame > img {
  width: 100%;
  height: calc(100% - 34px);
  object-fit: cover;
  object-position: top center;
  transition: opacity 180ms ease, transform 500ms ease;
}

.browser-frame:hover > img {
  transform: scale(1.015);
}

.dashboard-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(30, 47, 67, 0.12);
}

.dashboard-card strong {
  font-size: 18px;
}

.demo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid #d3e1e8;
  border-left: 1px solid #d3e1e8;
}

.demo-list button {
  display: grid;
  min-width: 0;
  min-height: 56px;
  align-content: center;
  gap: 3px;
  padding: 10px 13px;
  border: 0;
  border-right: 1px solid #d3e1e8;
  border-bottom: 1px solid #d3e1e8;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.demo-list button:hover,
.demo-list button.is-active {
  background: var(--accent);
  color: #ffffff;
}

.demo-list button span {
  font-size: 12px;
  font-weight: 800;
}

.demo-list button small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-list button.is-active small,
.demo-list button:hover small {
  color: rgba(255, 255, 255, 0.75);
}

.case-files {
  background: #ffffff;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.case-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.case-card.elevated {
  transform: none;
}

.case-number {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
}

.case-media {
  display: block;
  height: 205px;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--soft);
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 500ms ease;
}

.case-media:hover img {
  transform: scale(1.025);
}

.case-label {
  display: block;
  margin-bottom: 10px;
}

.case-card h3 {
  font-size: 24px;
}

.case-card p {
  font-size: 14px;
}

.case-card ul {
  flex: 1;
}

.proof {
  background: #ffffff;
}

.proof-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-tile {
  min-width: 0;
  padding: 30px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.profile-tile:last-child {
  border-right: 0;
}

.profile-tile > span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
}

.profile-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.profile-tile p {
  max-width: 260px;
  margin: 0 auto;
  font-size: 13px;
}

.contact {
  background: var(--soft-blue);
}

.contact-inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner h2 {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  font-size: 40px;
}

.contact-inner > p:not(.eyebrow) {
  max-width: 660px;
  margin-right: auto;
  margin-left: auto;
}

.hire-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 45px 0 32px;
  border-top: 1px solid #d5e3e9;
  border-bottom: 1px solid #d5e3e9;
}

.hire-grid > div {
  display: grid;
  min-height: 125px;
  align-content: center;
  gap: 9px;
  padding: 16px;
  border-right: 1px solid #d5e3e9;
}

.hire-grid > div:last-child {
  border-right: 0;
}

.hire-grid span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
}

.hire-grid strong {
  font-size: 13px;
  line-height: 1.45;
}

.footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 60px;
  align-items: start;
  padding: 62px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
}

.footer-brand img {
  width: 120px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand p {
  max-width: 330px;
  margin: 12px 0 0;
  font-size: 13px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 30px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 680;
}

.footer > span {
  display: block;
  white-space: nowrap;
}

.footer > span:last-of-type {
  color: var(--accent);
  font-weight: 800;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf3f1;
  --text: #b3c0c3;
  --muted: #839297;
  --paper: #0d1718;
  --soft: #122123;
  --soft-blue: #14272a;
  --accent: #ff4b87;
  --accent-dark: #dc2b68;
  --accent-soft: #2c1720;
  --line: #25383b;
  --line-strong: #3a5155;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .section-light,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .work,
html[data-theme="dark"] .systems,
html[data-theme="dark"] .frames,
html[data-theme="dark"] .case-files,
html[data-theme="dark"] .proof,
html[data-theme="dark"] .footer {
  background: var(--paper);
}

html[data-theme="dark"] .site-header {
  border-bottom-color: rgba(58, 81, 85, 0.78);
  background: rgba(13, 23, 24, 0.96);
}

html[data-theme="dark"] .ghost,
html[data-theme="dark"] .flagship-card,
html[data-theme="dark"] .job-frame,
html[data-theme="dark"] .case-card,
html[data-theme="dark"] .browser-frame,
html[data-theme="dark"] .browser-top {
  background: #101d1f;
}

html[data-theme="dark"] .hero-visual {
  background: #182221;
}

html[data-theme="dark"] .media-caption,
html[data-theme="dark"] .dashboard-card {
  background: rgba(13, 23, 24, 0.92);
  color: var(--ink);
}

html[data-theme="dark"] .system-stack {
  background: var(--soft-blue);
}

html[data-theme="dark"] .system-stack::before {
  color: rgba(255, 75, 135, 0.11);
}

html[data-theme="dark"] .stack-layer {
  border-bottom-color: var(--line);
}

html[data-theme="dark"] .showcase,
html[data-theme="dark"] .contact {
  background: var(--soft-blue);
}

html[data-theme="dark"] .demo-list,
html[data-theme="dark"] .demo-list button,
html[data-theme="dark"] .hire-grid,
html[data-theme="dark"] .hire-grid > div {
  border-color: var(--line);
}

html[data-theme="dark"] .profile-tile > span {
  background: var(--accent-soft);
}

html[data-theme="dark"] .button.primary {
  color: #ffffff;
}

body,
.site-header,
.section-panel,
.flagship-card,
.job-frame,
.case-card,
.browser-frame,
.browser-top,
.media-caption,
.dashboard-card,
.footer {
  transition: color 240ms ease, background-color 240ms ease, border-color 240ms ease;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 38px;
  }

  .site-header {
    gap: 16px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .flagship-grid,
  .case-grid {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .flagship-card,
  .case-card {
    scroll-snap-align: start;
  }

  .systems,
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
    gap: 45px;
  }

  .systems {
    padding-right: 24px;
    padding-left: 24px;
  }

  .systems-copy {
    justify-self: start;
  }

  .system-stack {
    padding-right: 35px;
    padding-left: 35px;
  }

  .showcase-copy h2 {
    font-size: 37px;
  }

  .hire-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hire-grid > div:nth-child(3) {
    border-right: 0;
  }

  .hire-grid > div:nth-child(-n + 3) {
    border-bottom: 1px solid #d5e3e9;
  }

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

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  h2 {
    font-size: 31px;
    line-height: 1.14;
  }

  h3 {
    font-size: 22px;
  }

  p {
    font-size: 15px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    min-height: 102px;
    padding: 8px 16px 7px;
  }

  .site-header > *,
  .nav-links {
    min-width: 0;
  }

  .brand-logo {
    width: 108px;
    height: 39px;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: calc(100vw - 32px);
    gap: 19px;
    padding: 8px 0 3px;
    border-top: 1px solid var(--line);
    overflow-x: auto;
  }

  .nav-links a {
    flex: 0 0 auto;
  }

  .header-cta {
    min-height: 33px;
    padding: 0 12px;
  }

  .section-panel {
    padding: 78px 18px;
    scroll-margin-top: 102px;
  }

  .hero {
    min-height: auto;
    padding-top: 146px;
    padding-bottom: 60px;
  }

  .hero-copy {
    max-width: calc(100vw - 36px);
    margin-bottom: 38px;
  }

  .hero-copy .eyebrow {
    max-width: 310px;
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .hero-art {
    max-width: calc(100vw - 36px);
  }

  .hero-visual {
    height: 345px;
  }

  .hero-visual-label {
    right: 10px;
    bottom: 10px;
    left: 10px;
    text-align: center;
  }

  .hero-facts {
    grid-auto-columns: 180px;
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
  }

  .hero-facts > * {
    border-right: 1px solid var(--line);
  }

  .section-heading,
  .frames-heading,
  .case-intro,
  .proof-copy {
    margin-bottom: 35px;
  }

  .activity-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-strip > div:nth-child(2) {
    border-right: 0;
  }

  .activity-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .activity-strip strong {
    font-size: 14px;
  }

  .flagship-grid,
  .case-grid {
    display: flex;
    gap: 14px;
    width: calc(100vw - 18px);
    max-width: none;
    margin-right: -18px;
    padding-right: 18px;
    overflow-x: auto;
  }

  .flagship-card,
  .case-card {
    width: 84vw;
    flex: 0 0 84vw;
  }

  .project-media {
    height: 215px;
  }

  .release-rail {
    grid-auto-columns: 78vw;
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
  }

  .release-rail a {
    border-right: 1px solid var(--line);
  }

  .latest-github {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 55px;
  }

  .latest-heading h3 {
    font-size: 26px;
  }

  .latest-item {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }

  .latest-item small {
    text-align: left;
  }

  .systems {
    grid-template-columns: 1fr;
    gap: 38px;
    min-height: auto;
  }

  .systems-copy h2,
  .showcase-copy h2,
  .contact-inner h2 {
    font-size: 31px;
  }

  .system-stack {
    min-height: 410px;
    padding: 70px 22px 30px;
  }

  .system-stack::before {
    top: 22px;
    right: 20px;
    font-size: 80px;
  }

  .frame-board {
    width: calc(100vw - 18px);
    max-width: none;
    margin-left: 0;
    padding-right: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .job-frame {
    width: 82vw;
    flex-basis: 82vw;
    scroll-snap-align: start;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .showcase-copy,
  .showcase-visual {
    order: initial;
  }

  .browser-frame {
    height: 440px;
  }

  .demo-list {
    display: flex;
    width: calc(100vw - 18px);
    margin-right: -18px;
    padding-right: 18px;
    border-left: 0;
    overflow-x: auto;
  }

  .demo-list button {
    width: 170px;
    flex: 0 0 170px;
    border-left: 1px solid #d3e1e8;
  }

  .case-media {
    height: 195px;
  }

  .proof-wall {
    grid-template-columns: 1fr;
  }

  .profile-tile {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .profile-tile:last-child {
    border-bottom: 0;
  }

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

  .hire-grid > div,
  .hire-grid > div:nth-child(3) {
    min-height: 85px;
    border-right: 0;
    border-bottom: 1px solid #d5e3e9;
  }

  .hire-grid > div:last-child {
    border-bottom: 0;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 45px 18px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
