/* Design tokens */
:root {
  /* Colors */
  --color-brand-neutrals-800: #1a1a1a;
  --color-neutral-800: #1a1a1a;
  --color-secondary-foreground: #1a1a1a;
  --color-muted-foreground: #737373;
  --color-body: #4a4a4a;
  --color-border: #e5e5e5;

  /* Font families */
  --font-sans: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Display heading */
  --heading-display-size: 64px;
  --heading-display-weight: 700;
  --heading-display-line-height: 1.0;
  --heading-display-letter-spacing: -0.03em;

  /* Heading 3 */
  --heading-3-size: 24px;
  --heading-3-weight: 600;
  --heading-3-line-height: 1.2;
  --heading-3-letter-spacing: -0.02em;

  /* Caption */
  --caption-size: 12px;
  --caption-weight: 500;
  --caption-line-height: 1.5;
  --caption-letter-spacing: 0.08em;

  /* Body */
  --para-small-size: 16px;
  --para-small-weight: 400;
  --para-small-line-height: 1.65;
  --para-small-letter-spacing: -0.01em;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #ffffff;
  font-family: var(--font-body);
  color: var(--color-neutral-800);
  -webkit-font-smoothing: antialiased;
}


/* Header */
.site-header {
  padding: 48px 0;
  display: flex;
  justify-content: center;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: 1280px;
  width: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 286px;
}

.brand-name {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--heading-3-size);
  font-weight: var(--heading-3-weight);
  line-height: var(--heading-3-line-height);
  letter-spacing: var(--heading-3-letter-spacing);
  color: var(--color-brand-neutrals-800);
  white-space: nowrap;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-link:hover {
  color: var(--color-muted-foreground);
}

.brand-name .divider {
  color: var(--color-muted-foreground);
  font-weight: 400;
}

.brand-tagline {
  font-family: var(--font-sans);
  font-size: var(--caption-size);
  font-weight: var(--caption-weight);
  line-height: var(--caption-line-height);
  letter-spacing: var(--caption-letter-spacing);
  color: var(--color-muted-foreground);
  text-transform: uppercase;
}

/* Nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-neutral-800);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 84px;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: var(--para-small-size);
  font-weight: var(--para-small-weight);
  line-height: var(--para-small-line-height);
  letter-spacing: var(--para-small-letter-spacing);
  color: var(--color-neutral-800);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--color-muted-foreground);
}


/* ===================== HOMEPAGE ===================== */

/* Intro */
.intro {
  background-color: #ECFFED;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: min(calc(100vh - var(--header-h, 160px)), 600px);
}


/* Ticker */
.ticker {
  background-color: #000000;
  overflow: hidden;
  padding: 10px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
  width: max-content;
}

.ticker-track span {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.5;
  flex-shrink: 0;
}

.ticker-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* Bio */
.intro-bio {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: center;
  padding: 72px 32px 48px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.intro-photo-wrap {
  display: flex;
  align-items: center;
}

.intro-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border: 11px solid #00ff22;
}

.intro-text {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.intro-col {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-body);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.intro-cta {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  padding: 10px 20px;
  border-radius: 99px;
  border: 2px solid #00ff22;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary, #000);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  width: fit-content;
}

.intro-cta:hover {
  background: var(--color-background-secondary, #f5f3ee);
  border-color: #00ff22;
}

/* Concept Design */
.concept-section {
  position: relative;
  overflow: hidden;
  min-height: min(100vh, 900px);
  display: flex;
  align-items: center;
}

.concept-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.concept-copy {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.concept-copy .concept-title {
  margin-bottom: 24px;
}

.concept-title {
  font-family: var(--font-sans);
  font-size: 64px;
  font-weight: 700;
  color: inherit;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.concept-copy .concept-title {
  color: #333;
}

.concept-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: inherit;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.concept-copy .concept-text {
  color: #000;
}

.concept-card {
  display: block;
  grid-column: 2 / 4;
}

.concept-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Prototyping */
.proto-section {
  background: black;
  min-height: min(100vh, 900px);
  display: flex;
  align-items: center;
}

.proto-inner {
  width: 100%;
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: start;
}

.proto-images {
  overflow: hidden;
}

.proto-img-desktop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proto-phone {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 24px;
}

.proto-copy {
  display: flex;
  flex-direction: column;
  gap: 48px;
  color: white;
  justify-content: flex-start;
  padding-right: max(32px, calc((100vw - 1280px) / 2 + 32px));
}

.proto-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.proto-tool-logo {
  height: 32px;
  width: auto;
  display: block;
}

.proto-img-mobile {
  width: 100%;
  max-width: 208px;
  height: auto;
  border-radius: 40px;
  display: block;
}

/* User Testing */
.user-testing-section {
  background: white;
}

.user-testing-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.user-testing-title {
  grid-column: 1 / 4;
  color: #333;
  margin-bottom: 24px;
  text-align: center;
}

.user-testing-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-testing-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 11px solid #00ff22;
}

.user-testing-copy {
  grid-column: 1 / 4;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: black;
  padding-bottom: 32px;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.user-testing-images {
  grid-column: 1 / 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Social proof */
.social-proof {
  padding: 48px 0;
}

.social-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.logos-row {
  grid-column: 1 / 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 35px 0;
  flex-wrap: wrap;
}

.client-logo {
  display: block;
  flex-shrink: 0;
}

.testimonial {
  grid-column: 1 / 4;
  max-width: 669px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 48px;
}

.testimonial p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: #000;
  line-height: 1.5;
}

.testimonial cite {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
  color: #000;
}

/* Responsive */
@media (max-width: 1024px) {
  .intro-bio { grid-template-columns: 1fr; }
  .intro-text { grid-column: 1; grid-template-columns: 1fr; }
  .intro-photo-wrap { justify-content: center; }
  .concept-inner { grid-template-columns: 1fr; }
  .concept-copy { grid-column: 1; }
  .concept-card { grid-column: 1; aspect-ratio: 700 / 488; }
  .proto-inner { grid-template-columns: 1fr; }
  .proto-img-desktop { height: 300px; }
  .proto-img-mobile { max-width: 160px; }
  .user-testing-inner { grid-template-columns: 1fr; }
  .social-inner { grid-template-columns: 1fr; }
  .logos-row { grid-column: 1; }
  .testimonial { grid-column: 1; }
}

@media (max-width: 640px) {
  .intro-bio { grid-template-columns: 1fr; padding: 32px 24px 48px; }
  .intro-photo-wrap { grid-column: 1; }
  .concept-title { font-size: 40px; }
  .logos-row { gap: 24px; justify-content: center; }
}

/* ===================== CASES ===================== */
.cases-main {
  display: flex;
  justify-content: center;
  padding: 48px 0 96px;
}

.cases-inner {
  max-width: 1280px;
  width: 100%;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

/* Case article */
.case {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.case-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.case-title {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-neutral-800);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.case-year {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: #2e2e2e;
  line-height: 1.5;
}

/* Banner */
.case-banner {
  position: relative;
  height: 236px;
  border-radius: 4px;
  overflow: hidden;
}

.case-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42,41,41,0.75), rgba(115,115,115,0.25));
}

.case-banner-content {
  position: absolute;
  inset: 0;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.case-banner-logo {
  position: absolute;
  top: 24px;
  left: 24px;
  height: 32px;
  width: auto;
}

.case-banner-headline {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 700;
  color: rgba(255,255,255,0.87);
  line-height: 1.5;
  letter-spacing: 0.2px;
  max-width: 560px;
}

/* Section divider */
.case-divider {
  height: 1px;
  background-color: #2e2e2e;
  width: 196px;
  margin-bottom: 8px;
}

/* Sections */
.case-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-h2 {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-neutral-800);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.case-h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-neutral-800);
  line-height: 18px;
  letter-spacing: 0.27px;
  margin-bottom: 4px;
}

.case-p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-body);
  line-height: 1.65;
  letter-spacing: -0.01em;
  max-width: 760px;
}

.case-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-list {
  font-family: var(--font-body);
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  letter-spacing: 0.2px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Summary dashed box */
.summary-box {
  border: 1px dashed #2e2e2e;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Purple left-border subheadings */
.case-subheading {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-neutral-800);
  line-height: 1.2;
  letter-spacing: -0.02em;
  padding-left: 16px;
  border-left: 3px solid #5233b5;
  margin-bottom: 8px;
}

.case-subsection {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
}

/* Media layouts */
.case-media-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.case-media-row--reverse {
  flex-direction: row-reverse;
}

.case-img-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.case-img-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.case-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Figures */
.case-figure {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.case-figure img {
  display: block;
  max-width: 100%;
  border-radius: 4px;
}

.case-figure--full {
  width: 100%;
}

.case-figure--full img {
  width: 100%;
  height: auto;
}

.case-figure figcaption,
.case-caption {
  font-family: var(--font-sans);
  font-size: 12px;
  font-style: italic;
  color: #979797;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

/* Cases responsive */
@media (max-width: 1024px) {
  .case-img-row {
    flex-direction: column;
  }
  .case-banner-headline {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .case-media-row,
  .case-media-row--reverse {
    flex-direction: column;
  }
  .case-h2 {
    font-size: 28px;
  }
  .case-banner-headline {
    font-size: 22px;
  }
  .cases-inner {
    gap: 64px;
  }
}

/* Back link */
.back-link {
  font-family: var(--font-body);
  font-size: var(--para-small-size);
  font-weight: var(--para-small-weight);
  color: var(--color-muted-foreground);
  text-decoration: none;
}

.back-link:hover {
  color: var(--color-neutral-800);
}

/* Active nav link */
.nav-active {
  color: var(--color-muted-foreground) !important;
}

/* Introduction section */
.intro-section {
  display: flex;
  justify-content: center;
  padding: 64px 0;
}

.intro-inner {
  max-width: 1280px;
  width: 100%;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.2px;
  color: #2f80ed;
}


.col-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.27px;
  color: #2f80ed;
}

.col-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.2px;
  color: #333;
}

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .site-nav {
    gap: 48px;
  }

  .brand {
    width: auto;
  }
}

/* Mobile (≤640px) */
@media (max-width: 640px) {
  .intro-bio {
    flex-direction: column;
    align-items: center;
  }

  .intro-columns {
    flex-direction: column;
  }
  .site-header {
    padding: 24px 0 24px;
    position: relative;
  }

  .header-inner {
    padding: 0 24px;
    flex-wrap: wrap;
    align-items: center;
  }

  .brand {
    flex: 1;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    padding: 24px 0 8px;
    border-top: 1px solid var(--color-border);
    margin-top: 20px;
  }

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