:root {
  --bg: #ffffff;
  --ink: #080a0d;
  --muted: #5f6874;
  --line: #d9dee6;
  --soft: #f4f6f8;
  --red: #ed111c;
  --red-dark: #bb0711;
  --blue: #2f83ff;
  --dark: #030608;
  --dark-2: #0a0f14;
  --white: #ffffff;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.14);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

main {
  max-width: 100vw;
  overflow-x: hidden;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 64px;
  background: rgba(3, 6, 8, 0.93);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  color: var(--white);
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.logo-r {
  display: inline-block;
  color: var(--red);
  font-weight: inherit;
}

.logo-r-back {
  transform: scaleX(-1);
  transform-origin: center;
}

.logo-core {
  display: inline-block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.91rem;
  font-weight: 650;
}

.site-nav a:not(.nav-cta) {
  color: rgba(255, 255, 255, 0.84);
}

.site-nav a:not(.nav-cta):hover {
  color: var(--white);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 750;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-cta::after,
.button::after,
.portfolio-item a::after,
.resource-grid a::after {
  content: "→";
  margin-left: 12px;
  font-size: 1.1em;
}

.nav-cta,
.button-primary {
  background: var(--red);
  color: var(--white);
}

.nav-cta:hover,
.button-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.64);
}

.button-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button-outline {
  color: #0c54b8;
  border-color: rgba(47, 131, 255, 0.65);
}

.button-outline:hover {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.section-dark {
  background:
    radial-gradient(circle at 78% 28%, rgba(47, 131, 255, 0.17), transparent 29%),
    linear-gradient(135deg, var(--dark), var(--dark-2));
  color: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(36px, 5vw, 86px);
  min-height: calc(100vh - 76px);
  padding: clamp(62px, 8vw, 112px) 64px 54px;
  overflow: hidden;
}

.hero-copy {
  max-width: 720px;
  min-width: 0;
}

.hero h1 {
  display: inline-flex;
  align-items: baseline;
  margin: 0 0 24px;
  color: var(--white);
  font-size: clamp(6rem, 13vw, 12.8rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.82;
}

.hero-lede {
  max-width: 660px;
  margin: 0 0 28px;
  font-size: clamp(1.48rem, 2.4vw, 2.5rem);
  line-height: 1.22;
}

.hero-body {
  max-width: 575px;
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 520px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.code-panel {
  position: absolute;
  left: 0;
  top: 20px;
  z-index: 2;
  width: min(430px, 70%);
  padding: 24px 0 20px 28px;
  color: #f5f7fb;
  font: 600 0.92rem/1.62 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.code-panel ol {
  margin: 0;
  padding-left: 36px;
  color: rgba(255, 255, 255, 0.26);
}

.code-panel li {
  padding-left: 18px;
  color: #ffb36d;
}

.code-panel li span,
.code-panel li:nth-child(3),
.code-panel li:nth-child(5),
.code-panel li:nth-child(6),
.code-panel li:nth-child(7),
.code-panel li:nth-child(8) {
  color: #40a2ff;
}

.blueprint {
  position: absolute;
  right: -58px;
  bottom: 20px;
  width: min(670px, 92%);
  max-height: 85%;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.42));
  opacity: 0.94;
}

.portfolio,
.process,
.leadership,
.resources,
.socials {
  padding: clamp(58px, 8vw, 88px) 64px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.section-dark .section-heading p {
  color: rgba(255, 255, 255, 0.7);
}

.portfolio-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.portfolio-item {
  min-height: 260px;
  padding: 10px 28px 0 0;
  border-right: 1px solid var(--line);
}

.portfolio-item + .portfolio-item {
  padding-left: 28px;
}

.portfolio-item:last-child {
  border-right: 0;
}

.portfolio-item h3,
.process h3,
.resource-grid h3,
.leader-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.portfolio-item p,
.process p,
.resource-grid p,
.leader-card p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.portfolio-item a {
  display: inline-flex;
  margin-top: 24px;
  color: var(--ink);
  font-weight: 700;
}

.mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 800;
}

.mark-red {
  color: var(--red);
  font-size: 3.7rem;
  line-height: 1;
}

.cube {
  position: relative;
}

.cube::before {
  content: "";
  width: 46px;
  height: 46px;
  border: 7px solid var(--ink);
  transform: rotate(30deg) skew(-12deg);
  border-right-color: var(--red);
}

.github {
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-size: 1rem;
}

.support {
  border: 5px solid var(--ink);
  border-radius: 50% 50% 42% 42%;
  font-size: 2rem;
}

.future {
  border: 5px dashed var(--red);
  border-radius: 8px;
}

.process {
  background: linear-gradient(180deg, #f8f9fb 0%, #eef1f5 100%);
}

.process-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 44px;
  margin-bottom: 42px;
}

.process-row article {
  position: relative;
}

.process-row article:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 28px;
  right: -30px;
  color: var(--ink);
  font-size: 2.3rem;
  line-height: 1;
}

.process-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 1.55rem;
  font-weight: 800;
}

.grid-icon {
  background:
    linear-gradient(var(--blue), var(--blue)) 8px 8px / 14px 14px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 34px 8px / 14px 14px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 8px 34px / 14px 14px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 34px 34px / 14px 14px no-repeat;
}

.print-icon,
.support-icon,
.scale-icon {
  border: 4px solid var(--blue);
  border-radius: 8px;
}

.support-icon {
  border-radius: 50%;
}

.support-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 4px solid var(--blue);
  border-radius: 50%;
}

.scale-icon {
  border: 0;
  border-radius: 0;
  border-left: 4px solid var(--blue);
  border-bottom: 4px solid var(--blue);
  transform: skew(-16deg) rotate(-4deg);
}

.leadership {
  background: var(--white);
}

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

.leader-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  min-height: 220px;
  padding-right: 36px;
  border-right: 1px solid var(--line);
}

.leader-card:last-child {
  border-right: 0;
}

.leader-monogram {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, rgba(237, 17, 28, 0.9), rgba(47, 131, 255, 0.55)),
    linear-gradient(180deg, #1b1f24, #05070a);
  color: var(--white);
  font-size: 3.4rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.leader-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow);
}

.role {
  margin-bottom: 16px !important;
  color: var(--red) !important;
  font-weight: 800;
}

.name-r {
  display: inline-block;
  color: var(--red);
  transform-origin: center;
  transform-style: preserve-3d;
  animation-name: var(--name-r-animation);
  animation-duration: var(--name-r-duration, 4s);
  animation-timing-function: var(--name-r-easing, cubic-bezier(0.45, 0, 0.2, 1));
  animation-delay: var(--name-r-delay, 0s);
  animation-iteration-count: infinite;
}

.name-r-back {
  transform: scaleX(-1);
}

.name-r-spin-a {
  --name-r-animation: spin-r-back;
  --name-r-duration: 3.7s;
  --name-r-easing: cubic-bezier(0.45, 0, 0.2, 1);
}

.name-r-spin-b {
  --name-r-animation: spin-r;
  --name-r-duration: 4.9s;
  --name-r-easing: cubic-bezier(0.4, 0, 0.25, 1);
  --name-r-delay: -1.6s;
}

.name-r-spin-c {
  --name-r-animation: spin-r-back;
  --name-r-duration: 4.3s;
  --name-r-easing: cubic-bezier(0.55, 0, 0.2, 1);
  --name-r-delay: -0.9s;
}

.name-r-spin-d {
  --name-r-animation: spin-r;
  --name-r-duration: 3.2s;
  --name-r-easing: cubic-bezier(0.42, 0, 0.18, 1);
  --name-r-delay: -2.1s;
}

@keyframes spin-r {
  0%, 18% {
    transform: rotateY(0deg) rotateZ(0deg);
  }

  42% {
    transform: rotateY(190deg) rotateZ(-4deg);
  }

  57%, 74% {
    transform: rotateY(360deg) rotateZ(0deg);
  }

  100% {
    transform: rotateY(720deg) rotateZ(0deg);
  }
}

@keyframes spin-r-back {
  0%, 20% {
    transform: scaleX(-1) rotateY(0deg) rotateZ(0deg);
  }

  46% {
    transform: scaleX(-1) rotateY(-205deg) rotateZ(4deg);
  }

  63%, 79% {
    transform: scaleX(-1) rotateY(-360deg) rotateZ(0deg);
  }

  100% {
    transform: scaleX(-1) rotateY(-720deg) rotateZ(0deg);
  }
}

.resources {
  padding-bottom: 72px;
}

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

.resource-grid article {
  min-height: 245px;
  padding: 0 44px 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.26);
}

.resource-grid article + article {
  padding-left: 44px;
}

.resource-grid article:last-child {
  border-right: 0;
}

.resource-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.resource-icon {
  display: block;
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 1.6rem;
  font-weight: 800;
}

.resource-grid a {
  display: inline-flex;
  margin-top: 28px;
  color: #69a8ff;
  font-weight: 750;
}

.socials {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: center;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.socials h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.socials p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.social-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.social-list a {
  display: grid;
  gap: 16px;
  min-height: 148px;
  padding: 26px 22px;
  align-content: center;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.social-list a:last-child {
  border-right: 0;
}

.social-list a:hover {
  color: var(--red);
  background: #fbfcfd;
  transform: translateY(-2px);
}

.social-list svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(120px, 0.7fr));
  gap: 48px;
  padding: 38px 64px 46px;
  background: var(--soft);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.hero,
.portfolio,
.process,
.leadership,
.resources,
.socials,
.site-footer {
  max-width: 100vw;
}

.footer-brand {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 2.5rem;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer a:not(.brand) {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--red);
}

.site-footer p {
  max-width: 310px;
  color: var(--muted);
  font-size: 0.92rem;
}

.copyright {
  margin-top: 36px !important;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  color: var(--ink) !important;
  font-size: 0.8rem !important;
  font-weight: 800;
}

.footer-socials a:hover {
  border-color: var(--red);
  background: var(--red);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

@media (max-width: 1100px) {
  .site-header,
  .hero,
  .portfolio,
  .process,
  .leadership,
  .resources,
  .socials,
  .site-footer {
    padding-left: 32px;
    padding-right: 32px;
  }

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

  .hero-visual {
    min-height: 390px;
    border-left: 0;
  }

  .portfolio-grid,
  .process-row,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }

  .portfolio-item,
  .portfolio-item + .portfolio-item,
  .resource-grid article,
  .resource-grid article + article {
    padding: 0;
    border-right: 0;
  }

  .process-row article::after {
    display: none;
  }

  .leader-grid,
  .socials,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .leader-card {
    border-right: 0;
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 24px 24px;
    background: rgba(3, 6, 8, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
  }

  .nav-cta {
    margin-top: 10px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 52px;
    overflow: hidden;
  }

  .hero-copy {
    width: calc(100vw - 64px);
    max-width: calc(100vw - 64px);
  }

  .hero h1 {
    font-size: clamp(4.7rem, 24vw, 6.4rem);
  }

  .hero-lede,
  .hero-body {
    width: 100%;
    max-width: 100%;
    font-size: 1.28rem;
    overflow-wrap: break-word;
  }

  .hero-body {
    font-size: 0.96rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-visual {
    width: calc(100vw - 64px);
    max-width: calc(100vw - 64px);
    min-height: 310px;
    overflow: hidden;
  }

  .code-panel {
    width: 100%;
    padding-left: 0;
    font-size: 0.78rem;
  }

  .blueprint {
    right: -150px;
    width: 560px;
    opacity: 0.7;
  }

  .portfolio-grid,
  .process-row,
  .resource-grid,
  .social-list {
    grid-template-columns: 1fr;
  }

  .social-list a {
    min-height: 84px;
    grid-template-columns: 34px 1fr;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .social-list a:last-child {
    border-bottom: 0;
  }

  .portfolio-item {
    min-height: auto;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }

  .portfolio-item:last-child {
    border-bottom: 0;
  }

  .leader-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .leader-monogram,
  .leader-portrait {
    max-width: 170px;
  }

  .site-footer {
    padding-top: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .name-r {
    animation-duration: var(--name-r-duration, 4s) !important;
    animation-delay: var(--name-r-delay, 0s) !important;
    animation-iteration-count: infinite !important;
  }
}
