:root {
  --ink: #17211d;
  --muted: #5d6861;
  --paper: #fbfaf6;
  --white: #ffffff;
  --moss: #476b53;
  --copper: #b75f35;
  --gold: #d7a84f;
  --teal: #2f7b7b;
  --line: #ded9ce;
  --soft: #f1eee7;
  --shadow: 0 18px 45px rgba(23, 33, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 56px);
  background: rgba(251, 250, 246, 0.86);
  border-bottom: 1px solid rgba(222, 217, 206, 0.78);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  background: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  text-decoration: none;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: 82vh;
  overflow: hidden;
  align-items: end;
  padding: 120px clamp(20px, 6vw, 76px) 72px;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 18, 15, 0.86) 0%, rgba(12, 18, 15, 0.62) 42%, rgba(12, 18, 15, 0.22) 100%),
    linear-gradient(0deg, rgba(12, 18, 15, 0.72) 0%, rgba(12, 18, 15, 0) 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f3c16b;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 22px;
  font-size: 4.6rem;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 2.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

.section,
.section-band,
.contact {
  padding: 92px clamp(20px, 5vw, 56px);
  scroll-margin-top: 86px;
}

.section-band {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.intro {
  padding-top: 54px;
  padding-bottom: 54px;
}

.intro-grid,
.split,
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.story-layout {
  display: grid;
  gap: 28px;
}

.intro-grid p,
.section-heading p,
.product-panel p,
.story-copy p,
.contact h2 {
  color: var(--muted);
  font-size: 1.05rem;
}

.story-section {
  background:
    linear-gradient(180deg, rgba(251, 250, 246, 1) 0%, rgba(251, 250, 246, 0.9) 100%);
}

.story-copy {
  max-width: 930px;
  min-width: 0;
}

.story-copy p {
  margin-bottom: 20px;
}

.story-pullquote {
  padding: 18px 20px;
  border: 1px solid rgba(215, 168, 79, 0.48);
  border-radius: 8px;
  background: #fff9ec;
  color: var(--ink) !important;
  font-size: 1.14rem !important;
  font-weight: 700;
  line-height: 1.45;
}

.memory-carousel {
  grid-auto-columns: minmax(320px, 48%);
  margin: 24px 0 28px;
}

.memory-carousel img {
  background: #030303;
  image-rendering: auto;
  object-fit: contain;
}

.memory-carousel figcaption {
  min-height: 94px;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.narrow {
  max-width: 820px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.timeline article,
.work-list article,
.principles article,
.product-panel,
.course-main,
.course-cards article {
  background: var(--white);
}

.timeline article {
  min-height: 300px;
  padding: 26px;
}

.timeline span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.timeline p,
.work-list p,
.principles p {
  color: var(--muted);
}

.work-list {
  display: grid;
  gap: 16px;
}

.work-list article,
.principles article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.course-feature {
  display: grid;
  gap: 26px;
}

.course-heading {
  max-width: 900px;
  margin-bottom: 0;
}

.course-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.course-main,
.course-cards article {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.course-main {
  padding: clamp(28px, 5vw, 42px);
  background:
    linear-gradient(135deg, rgba(47, 123, 123, 0.1), rgba(215, 168, 79, 0.12)),
    var(--white);
  box-shadow: var(--shadow);
}

.course-main h3 {
  max-width: 620px;
  font-size: 1.7rem;
}

.course-main p,
.course-cards p,
.contact-note {
  color: var(--muted);
}

.course-kicker,
.course-cards span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.course-cards {
  display: grid;
  gap: 14px;
}

.course-cards article {
  padding: 22px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.app-history {
  background: #f6f1e6;
}

.app-history-heading {
  max-width: 900px;
}

.app-story {
  display: grid;
  gap: 22px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid rgba(222, 217, 206, 0.9);
}

.app-story:last-child {
  padding-bottom: 0;
}

.app-story.reverse .app-story-copy {
  order: initial;
}

.app-story.reverse {
  grid-template-columns: 1fr;
}

.app-story-copy {
  max-width: 880px;
}

.app-story-copy h3 {
  margin-bottom: 16px;
  font-size: 1.75rem;
}

.app-story-copy p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1.04rem;
}

.app-story-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.app-story-kicker span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(183, 95, 53, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--copper);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.screenshot-carousel {
  display: grid;
  grid-auto-columns: minmax(340px, 44%);
  grid-auto-flow: column;
  gap: 16px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 4px 4px 20px;
  overscroll-behavior-x: contain;
  scroll-padding-left: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--gold) transparent;
}

.screenshot-carousel figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(222, 217, 206, 0.96);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(23, 33, 29, 0.1);
  scroll-snap-align: start;
}

.screenshot-carousel img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
  object-fit: cover;
}

.screenshot-carousel figcaption {
  min-height: 76px;
  padding: 13px 14px 15px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.courseninja-carousel {
  grid-auto-columns: minmax(220px, 28%);
  margin-top: 28px;
}

.courseninja-carousel img {
  aspect-ratio: 9 / 16;
  background: #f8f3e8;
  object-fit: cover;
  object-position: top center;
}

.courseninja-carousel figcaption {
  min-height: 112px;
}

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

.contact h2 {
  max-width: 860px;
  color: var(--white);
}

.contact .eyebrow {
  color: #f3c16b;
}

.contact-note {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

footer {
  padding: 24px clamp(20px, 5vw, 56px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

footer p {
  width: min(1120px, 100%);
  margin: 0 auto;
  font-size: 0.9rem;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    max-width: 78%;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .hero {
    min-height: 78vh;
    padding-top: 130px;
    padding-bottom: 52px;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  .intro-grid,
  .split,
  .product-layout,
  .story-layout,
  .course-grid,
  .app-story,
  .principles {
    grid-template-columns: 1fr;
  }

  .app-story.reverse .app-story-copy {
    order: initial;
  }

  .app-story.reverse {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .site-header {
    position: absolute;
    background: rgba(251, 250, 246, 0.94);
  }

  .brand {
    width: 36px;
    height: 36px;
  }

  .nav-links {
    gap: 10px 14px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 84vh;
    padding: 120px 20px 46px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(12, 18, 15, 0.9) 0%, rgba(12, 18, 15, 0.76) 72%, rgba(12, 18, 15, 0.5) 100%),
      linear-gradient(0deg, rgba(12, 18, 15, 0.76) 0%, rgba(12, 18, 15, 0) 48%);
  }

  h1 {
    font-size: 2.85rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .hero-copy,
  .intro-grid p,
  .section-heading p,
  .product-panel p,
  .contact h2 {
    font-size: 1rem;
  }

  .section,
  .section-band,
  .contact {
    padding: 68px 20px;
  }

  .intro {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .timeline,
  .app-story {
    grid-template-columns: 1fr;
  }

  .app-story.reverse {
    grid-template-columns: 1fr;
  }

  .screenshot-carousel {
    grid-auto-columns: minmax(250px, 88%);
  }

  .memory-carousel {
    grid-auto-columns: minmax(250px, 92%);
  }

  .courseninja-carousel {
    grid-auto-columns: minmax(220px, 78%);
  }

  .timeline article {
    min-height: auto;
  }
}
