@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 {
  --primary: #0071e3;
  --primary-hover: #0077ed;
  --secondary: #1d1d1f;
  --tertiary: #c25100;
  --neutral: #86868b;
  --canvas: #ffffff;
  --mist: #fbfbfd;
  --surface: #f5f5f7;
  --ink: #1d1d1f;
  --hairline: #e5e5e7;
  --on-primary: #ffffff;
  --font: Inter, "Helvetica Neue", sans-serif;
  --radius-card: 1.75rem;
  --radius-pill: 999px;
  --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(--mist);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: white;
  border-radius: var(--radius-pill);
}

.skip:focus {
  top: 1rem;
}

.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: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  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;
}

.nav-links a {
  padding: 0.45rem 0.7rem;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
}

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

@media (min-width: 861px) {
  .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: 32rem;
    margin-left: 0.35rem;
    opacity: 1;
    pointer-events: auto;
  }

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

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  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;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 1px;
  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;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.2rem;
  background: var(--primary);
  color: var(--on-primary);
  font: 500 0.9375rem/1 var(--font);
  cursor: pointer;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding-inline: 0.4rem;
}

.btn-ghost:hover {
  background: transparent;
  transform: translateX(3px);
}

.btn-ink {
  background: var(--ink);
}

.btn-ink:hover {
  background: #000;
}

main {
  padding-top: 6.5rem;
}

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

.hero .badge {
  margin-bottom: 1.25rem;
}

.hero {
  padding-block: 1.25rem 2.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--neutral);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero h1,
.display {
  margin: 0;
  max-width: 100%;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.line > span {
  display: block;
  animation: rise 0.95s var(--ease) both;
}

.line:nth-child(2) > span {
  animation-delay: 0.12s;
}

.line:nth-child(3) > span {
  animation-delay: 0.24s;
}

@keyframes rise {
  from {
    transform: translateY(110%);
  }
  to {
    transform: none;
  }
}

.lede {
  max-width: min(38rem, 100%);
  margin: 1.5rem 0 0;
  color: var(--neutral);
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.method {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.method article {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1rem 1rem 0.9rem;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
}

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

.method h2 {
  margin: 0.7rem 0 0;
  max-width: none;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.method p {
  margin: 0.45rem 0 0.85rem;
  color: #636366;
  font-size: 0.9rem;
  line-height: 1.4;
}

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

.tone-rose { color: #d23b3b; }
.tone-blue { color: var(--primary); }
.tone-green { color: #1a9d55; }

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

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
}

.metrics li {
  padding: 1rem 1.15rem;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 1.25rem;
}

.metrics strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.metrics span {
  color: var(--neutral);
  font-size: 0.875rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--canvas);
  font-size: 0.8125rem;
  font-weight: 500;
}

.status {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
}

.ribbon span {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--canvas);
  color: var(--secondary);
  font-size: 0.8125rem;
  font-weight: 500;
}

.section {
  padding: 2rem 0;
}

.section > .wrap > h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.kicker {
  margin: 0 0 0.8rem;
  color: var(--neutral);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bento,
.cases,
.people,
.stack,
.projects,
.pillars {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.card {
  padding: 1.6rem;
  background: var(--surface);
  border-radius: var(--radius-card);
}

.card h3 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.card p,
.person p,
.project p,
.stack p,
.projects p,
.pillars p {
  margin: 0.7rem 0 0;
  color: var(--neutral);
  letter-spacing: -0.011em;
}

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

.card-wide p {
  color: rgba(255, 255, 255, 0.72);
}

.frame {
  display: grid;
  align-content: start;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.03)),
    var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
}

.frame > span {
  color: var(--neutral);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.frame-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 0.45rem;
}

.frame-title h3 {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.frame-title .status {
  margin-top: 0.2rem;
}

.frame h3 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.7rem, 2vw, 2.1rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.frame > h3 {
  margin-top: 0.4rem;
}

.frame p {
  max-width: 42rem;
  margin: 0.75rem 0 0;
  color: var(--neutral);
}

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

.person {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.75rem 1.15rem;
  background: var(--canvas);
  border-radius: var(--radius-card);
  border: 1px solid var(--hairline);
}

.person .portrait {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 210px;
  border-radius: 1.2rem;
  background: #d7d2cb;
}

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

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

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

.person h3,
.person p,
.person a {
  margin-left: 0.45rem;
  margin-right: 0.45rem;
}

.person h3 {
  margin-top: 1rem;
}

.badge {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--surface);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.person a,
.meet {
  margin-top: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

.person a:hover {
  transform: translateX(3px);
}

.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(--neutral);
  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(--neutral);
  font-size: 0.85rem;
}

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

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

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

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

.stack article {
  min-height: 12rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-card);
}

.stack h3,
.projects h3,
.pillars h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.projects article {
  display: grid;
  align-content: end;
  min-height: 16rem;
  padding: 1.5rem;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  transition: border-color 0.4s var(--ease);
}

.projects article:hover {
  border-color: var(--ink);
}

.projects article > span,
.pillars article > span {
  color: var(--neutral);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.projects h3 {
  margin-top: 0.45rem;
  max-width: 18ch;
  font-size: clamp(1.55rem, 2vw, 1.9rem);
}

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

.pillars article {
  padding-top: 1.15rem;
  border-top: 1px solid var(--hairline);
}

.pillars h3 {
  margin-top: 0.55rem;
}

.manifesto .statement {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.manifesto .role {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  color: var(--neutral);
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

.manifesto .research {
  margin: 2.75rem 0 0;
  color: var(--neutral);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.folio-cta {
  padding: 4.5rem 2rem;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 2rem;
}

.folio-cta .lede {
  max-width: 28rem;
}

.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 h2 {
  max-width: 14em;
  margin: 0 auto;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

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

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

.panel .btn svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.45rem;
}

.panel .btn-ghost {
  background: #2a2d33;
  color: white;
  padding: 0.8rem 1.2rem;
}

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

@media (min-width: 760px) {
  .bento {
    grid-template-columns: 1.3fr 1fr;
  }

  .bento .card:first-child {
    grid-row: span 2;
    min-height: 22rem;
  }

  .bento .card:last-child {
    grid-column: 1 / -1;
  }

  .people,
  .projects {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (min-width: 1040px) {
  .projects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .nav {
    width: min(1120px, calc(100% - 1.25rem));
    padding-right: 0.5rem;
  }

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

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

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

  .nav .status,
  .nav .btn {
    display: none;
  }

  .nav-links .status {
    display: inline-flex;
    margin: 0.35rem 0.7rem 0.15rem;
  }

  .nav-links .btn {
    display: inline-flex;
    margin-top: 0.25rem;
  }
}

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

  .line > span,
  [data-reveal] {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .btn-ghost:hover,
  .person a:hover {
    transform: none;
  }

  .nav-links {
    transition: none;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #1c1c1e;
  --mist: #000000;
  --surface: #2c2c2e;
  --ink: #f5f5f7;
  --secondary: #f5f5f7;
  --neutral: #a1a1a6;
  --hairline: rgba(255, 255, 255, 0.14);
}

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

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

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

html[data-theme="dark"] .method p {
  color: var(--neutral);
}

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

html[data-theme="dark"] .card-wide {
  background: #2c2c2e;
  color: #f5f5f7;
}

html[data-theme="dark"] .card-wide p {
  color: rgba(245, 245, 247, 0.72);
}

html[data-theme="dark"] .btn-ink {
  background: #f5f5f7;
  color: #1d1d1f;
}

html[data-theme="dark"] .btn-ink:hover {
  background: #ffffff;
}

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

