@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../brand/fonts/Inter-400.ttf") format("truetype");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../../brand/fonts/Inter-500.ttf") format("truetype");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../../brand/fonts/Inter-600.ttf") format("truetype");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../../brand/fonts/Inter-700.ttf") format("truetype");
}

:root {
  --blue: #0071e3;
  --blue-hot: #0077ed;
  --ink: #1d1d1f;
  --muted: #86868b;
  --line: #e6e6ea;
  --page: #f3f3f6;
  --card: #ffffff;
  --green: #1a9d55;
  --rose: #d23b3b;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  padding: 0.55rem 0.9rem;
  background: var(--ink);
  color: white;
  border-radius: 999px;
}

.skip:focus {
  top: 1rem;
  z-index: 40;
}

.nav {
  position: fixed;
  z-index: 30;
  top: 0.75rem;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  display: flex;
  align-items: center;
  padding: 0.45rem 0.95rem 0.45rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand img {
  width: 1.55rem;
  height: 1.55rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

@media (min-width: 721px) {
  .nav-links {
    max-width: 0;
    margin-left: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-width 0.28s ease, opacity 0.18s ease, margin-left 0.28s ease;
  }

  .nav:hover .nav-links,
  .nav:focus-within .nav-links {
    max-width: 18rem;
    margin-left: 0.35rem;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    white-space: nowrap;
  }
}

.nav-links a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: #3a3a3c;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.wrap {
  width: min(1080px, 100%);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.hero {
  padding: 6.5rem clamp(1.5rem, 6vw, 5rem) 2.5rem;
  text-align: center;
}

.hero h1,
.hero .lede,
.hero .statbar {
  margin-inline: auto;
}

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

h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(2.7rem, 6.4vw, 4.35rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.lede {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  color: #6e6e73;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.statbar {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 52rem;
  margin: 2.5rem 0 0;
  padding: 0.35rem 0;
  background: var(--card);
  border-radius: 1.15rem;
}

.statbar article {
  padding: 1.25rem 1.5rem 1.35rem;
  text-align: left;
}

.statbar article + article {
  border-top: 1px solid var(--line);
}

.statbar p {
  margin: 0;
}

.figure {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.figure b {
  font-weight: 700;
}

.figure span {
  margin-left: 0.3rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.blue {
  color: var(--blue);
}

.green,
.green span {
  color: var(--green);
}

.statbar small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.85rem;
}

.btn,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn {
  background: var(--blue);
  color: white;
}

.btn:hover {
  background: var(--blue-hot);
}

.btn svg,
.pill svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.pill {
  background: var(--card);
  color: var(--ink);
}

.section {
  padding: 1.75rem 0;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.manifesto-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.portrait {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 1.6rem;
  background: #d7d2cb;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 66%;
}

.portrait.is-johnny img {
  object-position: center 30%;
}

.portrait.is-mark {
  display: grid;
  place-items: center;
  background: #f5f5f7;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.portrait figcaption {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.65rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 0.85rem;
  font-size: 0.82rem;
}

.who {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.who i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #30d158;
}

.where-line {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.where {
  color: var(--muted);
}

.bio p,
.think {
  margin: 1rem 0 0;
  color: #3a3a3c;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.think {
  max-width: none;
}

.bio strong {
  color: var(--ink);
}

.research {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #eef0f3;
  border-radius: 1.25rem;
}

.research > p {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.15rem 0.35rem 0.85rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.research svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--blue);
}

.research-grid,
.matrix,
.pillars,
.cases {
  display: grid;
  gap: 0.75rem;
}

.research article,
.research-grid article,
.matrix article,
.pillar,
.case {
  background: var(--card);
  border: 1px solid #ececf0;
  border-radius: 1rem;
}

.research article,
.research-grid article,
.matrix article {
  padding: 0.95rem 1rem 1.05rem;
}

.research h3,
.research-grid h3,
.matrix h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.research p,
.research-grid p,
.matrix p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

#stack .matrix {
  margin-top: 1.15rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--page);
  font-size: 0.78rem;
  font-weight: 600;
}

.intro {
  max-width: 42rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.pillar {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1rem 1rem 0.9rem;
}

.pillar header {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pillar h3 {
  margin: 0.85rem 0 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.pillar p {
  margin: 0.55rem 0 1rem;
  color: #636366;
  font-size: 0.9rem;
}

.pillar footer {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
}

.tone-rose {
  color: var(--rose);
}

.tone-blue {
  color: var(--blue);
}

.tone-green {
  color: var(--green);
}

.is-result {
  background: #eaf3fc;
  border-color: transparent;
}

.work-head {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.35rem;
}

.work-head p {
  margin: 0;
  max-width: 26rem;
  color: var(--muted);
}

.case {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.1rem 0.95rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case h3 {
  margin: 0.55rem 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.case > p {
  margin: 0.55rem 0 0.9rem;
  color: #636366;
  font-size: 0.92rem;
}

.visual {
  margin-top: auto;
  border-radius: 0.9rem;
  overflow: hidden;
}

.code {
  margin: 0;
  padding: 0.9rem 1rem;
  background: #17191e;
  color: #d5d5da;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  line-height: 1.55;
}

.code .c {
  color: #8e8e93;
}

.code .k {
  color: #79d2ff;
}

.flow {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  background: #f7f7f9;
}

.bus,
.node {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: white;
  font-size: 0.78rem;
  font-weight: 600;
}

.bus {
  color: var(--blue);
}

.nodes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.node {
  color: var(--ink);
  font-weight: 600;
  text-align: center;
}

.meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.meters div {
  padding: 0.8rem 0.75rem;
  background: #f7f7f9;
  border-radius: 0.8rem;
}

.meters span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.meters strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--blue);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 0.85rem;
  min-height: 7.5rem;
  padding: 0.9rem;
  background: #f7f7f9;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 5.5rem;
}

.bars i {
  display: block;
  width: 0.7rem;
  border-radius: 0.25rem 0.25rem 0.1rem 0.1rem;
  background: #d5e4f6;
}

.bars i:last-child {
  background: var(--blue);
}

.chart p {
  margin: 0;
}

.chart span {
  color: var(--muted);
  font-size: 0.75rem;
}

.chart strong {
  display: block;
  color: var(--blue);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.case-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.case-foot b {
  color: var(--ink);
  font-weight: 600;
}

.flagship {
  margin-top: 1.15rem;
  padding: 1.35rem 1.25rem 1.15rem;
}

.flagship h3 {
  font-size: clamp(1.55rem, 3vw, 2.05rem);
}

.story {
  display: grid;
  gap: 0.65rem;
  max-width: 40rem;
  margin-top: 0.85rem;
}

.story p {
  margin: 0;
  color: #636366;
  font-size: 1rem;
  line-height: 1.45;
}

.flagship .case-foot {
  margin-top: 1.15rem;
  color: var(--muted);
}

.flagship .case-foot span {
  min-width: 0;
  line-height: 1.5;
}

.work-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.work-list li {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid #ececf0;
  border-radius: 1rem;
}

.work-list h3 {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.work-list p {
  margin: 0;
  color: #636366;
  font-size: 0.9rem;
  line-height: 1.4;
}

.work-list .tech {
  color: var(--muted);
  font-size: 0.75rem;
}

.cta {
  padding-bottom: 1rem;
}

.panel {
  padding: 3.5rem 1.25rem;
  border-radius: 1.8rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
    #101114;
  color: white;
  text-align: center;
}

.panel .kicker {
  display: inline-flex;
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #c5c8d4;
}

.panel h2 {
  max-width: 14em;
  margin: 0 auto;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

#work h2,
#bring h2 {
  text-align: center;
}

#bring .matrix {
  margin-top: 1.75rem;
}

.bring-icon {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.1rem 0 0.75rem;
  color: var(--blue);
}

.panel p {
  max-width: 36rem;
  margin: 1rem auto 0;
  color: #b7b8c2;
  font-size: 1rem;
}

.panel .actions {
  justify-content: center;
}

.btn-ghost {
  background: #2a2d33;
  color: white;
}

.btn-ghost:hover {
  background: #343840;
}

.site-footer {
  padding: 1.6rem 0 2rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  align-items: center;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.legal a {
  color: var(--ink);
  font-weight: 600;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.foot-links a:hover {
  color: var(--ink);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 720px) {
  .nav {
    width: min(1080px, calc(100% - 1.5rem));
    padding-right: 0.5rem;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.45rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
  }

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

@media (min-width: 720px) {
  .statbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0.2rem 0;
  }

  .statbar article + article {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .manifesto-grid {
    grid-template-columns: minmax(240px, 0.72fr) 1.28fr;
    gap: 2rem;
    align-items: stretch;
  }

  .portrait {
    aspect-ratio: auto;
    height: 100%;
  }

  .portrait img {
    position: absolute;
    inset: 0;
  }

  .research-grid,
  .matrix,
  .cases {
    grid-template-columns: 1fr 1fr;
  }

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

  #work .work-head {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  #work .work-head p {
    margin-inline: auto;
  }

  .work-list li {
    grid-template-columns: minmax(11rem, 0.9fr) minmax(0, 1.6fr) minmax(8rem, 0.85fr);
    align-items: baseline;
    column-gap: 1.25rem;
  }

  .work-list .tech {
    text-align: right;
  }
}

@media (min-width: 1040px) {
  .research-grid,
  .matrix,
  .pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-links {
    transition: none;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --line: rgba(255, 255, 255, 0.14);
  --page: #000000;
  --card: #1c1c1e;
}

html[data-theme="dark"] .skip {
  color: #1d1d1f;
}

html[data-theme="dark"] .nav,
html[data-theme="dark"] .nav.is-scrolled {
  background: rgba(28, 28, 30, 0.86);
  border-color: var(--line);
}

html[data-theme="dark"] .lede,
html[data-theme="dark"] .bio p,
html[data-theme="dark"] .think,
html[data-theme="dark"] .pillar p,
html[data-theme="dark"] .case > p,
html[data-theme="dark"] .story p,
html[data-theme="dark"] .work-list p {
  color: var(--muted);
}

html[data-theme="dark"] .nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

html[data-theme="dark"] .nav-links a {
  color: var(--ink);
}

html[data-theme="dark"] .flow,
html[data-theme="dark"] .meters div,
html[data-theme="dark"] .chart,
html[data-theme="dark"] .research {
  background: #2c2c2e;
}

html[data-theme="dark"] .bus,
html[data-theme="dark"] .node,
html[data-theme="dark"] .portrait.is-mark {
  background: #1c1c1e;
}

html[data-theme="dark"] .research article,
html[data-theme="dark"] .research-grid article,
html[data-theme="dark"] .matrix article,
html[data-theme="dark"] .pillar,
html[data-theme="dark"] .case,
html[data-theme="dark"] .work-list li {
  border-color: var(--line);
}

html[data-theme="dark"] .is-result {
  background: #16324d;
}

html[data-theme="dark"] .bars i {
  background: #2a4a6e;
}

@media (max-width: 720px) {
  html[data-theme="dark"] .nav-links {
    background: #1c1c1e;
  }
}
