:root {
  --ink: #15120f;
  --muted: #665f56;
  --paper: #f7f3ec;
  --surface: #fffdf7;
  --line: #ded4c6;
  --umber: #bf581c;
  --moss: #596236;
  --citron: #e2ea4f;
  --deep: #202014;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(31, 24, 16, 0.12);
}

@font-face {
  font-family: "MuseoModerno";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: local("MuseoModerno");
}

* {
  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.5;
}

body::before {
  background:
    linear-gradient(rgba(21, 18, 15, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 18, 15, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  content: "";
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

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

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

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

.site-header {
  align-items: center;
  background: rgba(247, 243, 236, 0.88);
  border-bottom: 1px solid rgba(21, 18, 15, 0.08);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(20px, 5vw, 72px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand img,
.footer-brand img {
  height: 34px;
  width: 34px;
}

.footer-brand img {
  border-radius: 7px;
  object-fit: contain;
}

.brand span {
  font-family: "MuseoModerno", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

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

.site-nav a,
.footer-links a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  padding: 9px 12px;
}

.site-nav a:hover,
.footer-links a:hover {
  background: rgba(191, 88, 28, 0.1);
  color: var(--ink);
}

.site-nav .login-link {
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  margin-left: 6px;
  padding-inline: 16px;
}

.site-nav .login-link:hover {
  background: var(--umber);
  color: var(--white);
}

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: none;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.nav-toggle span:not(.sr-only) {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 3px 0;
  width: 18px;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(26px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  min-height: calc(100svh - 72px);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px) clamp(40px, 7vw, 76px);
  position: relative;
}

.hero::before {
  background: var(--umber);
  content: "";
  height: 118px;
  left: clamp(20px, 5vw, 72px);
  position: absolute;
  top: clamp(56px, 8vw, 104px);
  width: 7px;
}

.hero__content {
  max-width: 760px;
  padding-left: clamp(20px, 4vw, 44px);
  position: relative;
}

.hero__content::after {
  background: rgba(21, 18, 15, 0.12);
  content: "";
  height: 1px;
  left: clamp(20px, 4vw, 44px);
  position: absolute;
  right: 0;
  top: 24px;
}

.hero__label {
  color: var(--umber);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 30px;
  padding-right: 16px;
  position: relative;
  text-transform: uppercase;
  width: max-content;
  z-index: 1;
}

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

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.98;
}

h1 {
  font-size: clamp(4rem, 8vw, 8.4rem);
  margin-bottom: 24px;
  max-width: 8.5ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.hero__lead {
  color: #3f3932;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  max-width: 680px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  font-weight: 800;
  min-height: 48px;
  padding: 13px 18px;
}

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

.button--secondary {
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero__visual {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  min-height: 540px;
  position: relative;
}

.hero__visual::before {
  border: 1px solid rgba(191, 88, 28, 0.34);
  border-radius: 8px;
  content: "";
  height: 80%;
  position: absolute;
  right: 32px;
  top: 8%;
  transform: rotate(-3deg);
  width: min(78%, 430px);
}

.thought-field {
  filter: drop-shadow(0 28px 50px rgba(51, 31, 13, 0.14));
  height: auto;
  margin-left: auto;
  position: relative;
  width: min(100%, 600px);
  z-index: 1;
}

.field-frame {
  fill: url(#panel-wash);
  stroke: #ded4c6;
  stroke-width: 2;
}

.field-grid {
  fill: url(#dot-grid);
  opacity: 0.9;
}

.chat-screen rect:first-child {
  fill: #202014;
}

.chat-screen rect:nth-child(2) {
  fill: #e2ea4f;
}

.chat-screen rect:nth-child(3) {
  fill: rgba(255, 255, 255, 0.12);
}

.chat-screen rect:nth-child(5) {
  fill: rgba(226, 234, 79, 0.18);
}

.chat-screen rect:nth-child(7) {
  fill: #bf581c;
}

.chat-screen circle {
  fill: #bf581c;
}

.chat-screen path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.62);
  stroke-linecap: round;
  stroke-width: 4;
}

.chat-screen path:last-child {
  stroke: #ffffff;
  stroke-width: 4;
}

.young-user path:first-child {
  fill: #202014;
}

.young-user circle {
  fill: #d9aa78;
}

.young-user path:nth-of-type(2) {
  fill: #15120f;
}

.young-user path:nth-of-type(3),
.young-user path:nth-of-type(4),
.young-user path:nth-of-type(5) {
  fill: none;
  stroke: #15120f;
  stroke-linecap: round;
  stroke-width: 4;
}

.young-user rect {
  fill: rgba(255, 253, 247, 0.94);
  stroke: #ded4c6;
  stroke-width: 2;
}

.young-user path:last-child {
  fill: none;
  stroke: #665f56;
  stroke-linecap: round;
  stroke-width: 5;
}

.thought-bubble circle,
.thought-bubble path:first-of-type {
  fill: #fffdf7;
  stroke: #ded4c6;
  stroke-width: 2;
}

.thought-bubble path:nth-of-type(2) {
  fill: #d5aa7e;
  stroke: #15120f;
  stroke-width: 3;
}

.thought-bubble path:nth-of-type(3) {
  fill: #f1f3d2;
  stroke: #15120f;
  stroke-width: 3;
}

.thought-bubble path:nth-of-type(4) {
  fill: #202014;
}

.thought-bubble path:nth-of-type(5),
.thought-bubble path:nth-of-type(6),
.thought-bubble path:nth-of-type(7) {
  fill: none;
  stroke: #15120f;
  stroke-linecap: round;
  stroke-width: 4;
}

.thought-bubble path:nth-of-type(8) {
  fill: none;
  stroke: #bf581c;
  stroke-linecap: round;
  stroke-width: 5;
}

.context-notes rect {
  fill: rgba(255, 253, 247, 0.9);
  stroke: #ded4c6;
  stroke-width: 2;
}

.context-notes path {
  fill: none;
  stroke: rgba(102, 95, 86, 0.68);
  stroke-linecap: round;
  stroke-width: 4;
}

.story-lines path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 3.5;
}

.story-lines path:first-child {
  stroke: #bf581c;
}

.story-lines path:nth-child(2) {
  stroke: #596236;
}

.story-lines path:nth-child(3) {
  stroke: rgba(21, 18, 15, 0.45);
}

.intro-band {
  background: var(--deep);
  color: var(--white);
}

.intro-band__inner {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 72px);
}

.intro-band p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.4vw, 2.1rem);
  line-height: 1.18;
  margin: 0;
  max-width: 940px;
}

.intro-band a {
  border-bottom: 2px solid var(--citron);
  color: var(--citron);
  flex: 0 0 auto;
  font-weight: 800;
}

.section {
  padding: clamp(64px, 10vw, 118px) clamp(20px, 5vw, 72px);
}

.section__header {
  max-width: 850px;
}

.section__header > p:not(.eyebrow),
.section__copy > p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 760px;
}

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

.process-card,
.person-list article {
  background: rgba(255, 253, 247, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process-card {
  min-height: 230px;
  padding: 26px;
}

.process-card span {
  color: var(--umber);
  display: inline-block;
  font-weight: 900;
  margin-bottom: 36px;
}

.process-card p,
.person-list span {
  color: var(--muted);
}

.section--split {
  align-items: start;
  display: grid;
  gap: clamp(28px, 6vw, 88px);
  grid-template-columns: 0.9fr 1fr;
}

.person-list {
  display: grid;
  gap: 12px;
}

.person-list article {
  display: grid;
  gap: 6px;
  padding: 20px;
}

.section--dark {
  background: #202014;
  color: var(--white);
}

.section--dark .eyebrow {
  color: var(--citron);
}

.experience {
  display: grid;
  gap: 18px;
  grid-template-columns: 0.72fr 1fr;
  margin-top: 34px;
}

.question-box,
.answer-box {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 28px;
}

.question-box {
  background: var(--citron);
  color: var(--ink);
}

.answer-box {
  background: rgba(255, 255, 255, 0.06);
}

.question-box span,
.answer-box span {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.question-box p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  line-height: 1.12;
  margin-bottom: 0;
}

.answer-box ul {
  color: rgba(255, 255, 255, 0.78);
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.principles {
  display: grid;
  gap: clamp(28px, 7vw, 110px);
  grid-template-columns: 0.75fr 1fr;
}

.principles__list {
  border-left: 3px solid var(--umber);
  display: grid;
  gap: 22px;
  padding-left: 28px;
}

.principles__list p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.login-section {
  align-items: center;
  display: grid;
  gap: clamp(28px, 7vw, 92px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  min-height: calc(100svh - 72px);
  padding: clamp(56px, 9vw, 112px) clamp(20px, 5vw, 72px);
}

.login-copy {
  max-width: 780px;
}

.login-copy h1 {
  font-size: clamp(3rem, 8vw, 7.2rem);
}

.login-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 620px;
}

.login-form {
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.login-form label {
  color: var(--ink);
  display: grid;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 8px;
}

.login-form input {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 12px 14px;
}

.login-form input:focus {
  border-color: var(--umber);
  outline: 3px solid rgba(191, 88, 28, 0.15);
}

.login-form .button {
  border: 0;
  cursor: pointer;
  justify-content: center;
  margin-top: 4px;
}

.login-form > a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}

.site-footer {
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 72px);
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  font-family: "MuseoModerno", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .hero,
  .section--split,
  .experience,
  .principles,
  .login-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero::before {
    height: 92px;
    top: 48px;
  }

  .hero__content {
    max-width: 780px;
  }

  .hero__visual {
    justify-content: center;
    min-height: 0;
  }

  .thought-field {
    margin: 0 auto;
    width: min(92vw, 540px);
  }

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

  .intro-band__inner,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 18px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    left: 18px;
    padding: 8px;
    position: absolute;
    right: 18px;
    top: 64px;
  }

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

  .site-nav a {
    padding: 12px;
  }

  .site-nav .login-link {
    margin-left: 0;
    text-align: center;
  }

  h1 {
    font-size: clamp(3.25rem, 15vw, 5.25rem);
    max-width: 100%;
  }

  .hero {
    gap: 28px;
    padding-bottom: 34px;
    padding-top: 38px;
  }

  .hero::before {
    height: 72px;
    left: 18px;
    top: 38px;
    width: 5px;
  }

  .hero__content {
    padding-left: 18px;
  }

  .hero__content::after {
    left: 18px;
    top: 20px;
  }

  .hero__label {
    font-size: 0.7rem;
    margin-bottom: 16px;
  }

  .hero__lead {
    font-size: 1.04rem;
  }

  .hero__actions {
    margin-top: 24px;
  }

  .thought-field {
    width: min(100%, 440px);
  }

  .hero__visual::before {
    right: 8%;
    width: 78%;
  }

  .section,
  .login-section {
    padding-block: 54px;
  }
}

@media (max-width: 430px) {
  .button {
    justify-content: center;
    width: 100%;
  }

  .hero {
    padding-inline: 16px;
  }

  h1 {
    font-size: clamp(2.9rem, 14vw, 3.9rem);
  }

  .hero::before {
    left: 16px;
  }

  .thought-field {
    width: 100%;
  }

  .process-card,
  .question-box,
  .answer-box,
  .login-form {
    padding: 22px;
  }
}
