/* Landing-only composition. Shared tokens, navigation and footer stay in atelier.css. */
.home {
  background: #f4f1ea;
  color: #101514;
}

.home .home-cover {
  background: #101514;
  color: #f6f3eb;
  padding-block: clamp(2.5rem, 5vw, 5rem) 1.5rem;
}

.home .home-cover-kicker {
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.home .home-cover-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: end;
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

.home .home-cover-copy h1 {
  max-width: 18ch;
  margin: 0 0 1.8rem;
  font-size: clamp(2.8rem, 4.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.home .home-cover-lead {
  max-width: 44ch;
  margin: 0;
  color: #d3d7cf;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.65;
}

.home .home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

.home .home-cover-link,
.home .home-dark-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #f6f3eb;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.home .home-cover-link:hover,
.home .home-dark-link:hover {
  color: #c99545;
}

.home .home-cover-link:focus-visible,
.home .home-dark-link:focus-visible {
  outline: 2px solid #c99545;
  outline-offset: 5px;
}

.home .home-note,
.home .home-scenario-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.025em;
}

.home .home-start {
  border-top: 1px solid #49534c;
  padding-top: 1.25rem;
}

.home .home-start > .home-note {
  margin: 0 0 1.25rem;
  color: #c99545;
}

.home .home-start h2 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.home .home-start-list {
  margin: 0;
}

.home .home-start-list > div {
  padding-block: 0.85rem;
  border-top: 1px solid #354039;
}

.home .home-start-list dt {
  font-size: 0.875rem;
  font-weight: 600;
}

.home .home-start-list dd {
  margin: 0.3rem 0 0;
  color: #c1c8c2;
  font-size: 0.875rem;
  line-height: 1.6;
}

.home .home-cover-bottom {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid #354039;
  color: #c1c8c2;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.home .home-section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 2rem 5rem;
  margin-bottom: 3rem;
}

.home .home-section-intro h2,
.home .home-platform-heading h2,
.home .home-method-layout h2 {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(2rem, 3.7vw, 3.6rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.home .home-section-intro > p {
  margin: 0;
}

.home .home-example {
  border-block: 1px solid #b9b8ae;
}

.home .home-example-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2rem 5rem;
  padding-block: 1.75rem;
}

.home .home-example-heading .home-note {
  margin: 0 0 0.7rem;
}

.home .home-example-notice {
  max-width: 62ch;
  margin: 0;
  color: #515b52;
  font-size: 0.875rem;
  line-height: 1.65;
}

.home .home-example-control {
  min-width: 0;
  align-self: end;
}

.home .home-example-control label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.home .home-example-control select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 2rem 0.65rem 0.85rem;
  border: 1px solid #737c71;
  border-radius: 2px;
  background: #f4f1ea;
  color: #101514;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.home .home-example-control select:disabled {
  opacity: 1;
  cursor: default;
}

.home .home-example-control select:focus-visible {
  outline: 3px solid #765018;
  outline-offset: 3px;
}

.home .home-example-control noscript p {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
}

.home .home-scenario {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid #b9b8ae;
}

.home .home-scenario[hidden] {
  display: none;
}

.home .home-scenario-context,
.home .home-scenario-output {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 3rem);
}

.home .home-scenario-context {
  padding-left: 0;
}

.home .home-scenario-context > .home-note {
  margin: 0 0 1.1rem;
  color: #765018;
}

.home .home-scenario-context h3 {
  max-width: 25ch;
  margin: 0 0 2rem;
  font-size: clamp(1.375rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-wrap: balance;
}

.home .home-scenario-label {
  margin: 0 0 0.6rem;
  color: #515b52;
}

.home .home-scenario-context > p:not(.home-note):not(.home-scenario-label) {
  max-width: 48ch;
  margin: 0 0 1.25rem;
  line-height: 1.7;
}

.home .home-scenario-output {
  background: #e9e3d7;
  display: flex;
  flex-direction: column;
}

.home .home-result {
  max-width: 33ch;
  margin: 0 0 2rem;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.home .home-human-check {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid #b9b8ae;
}

.home .home-human-check > p:last-child {
  max-width: 50ch;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
}

.home .home-platform-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 3rem 6rem;
}

.home .home-platform-heading h2 {
  margin-bottom: 1.75rem;
}

.home .home-platform-detail > p:first-child {
  margin-top: 0;
}

.home .home-platform-list {
  margin-block: 2rem;
}

.home .home-platform-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid #b9b8ae;
}

.home .home-platform-list dt {
  font-weight: 600;
}

.home .home-platform-list dd {
  margin: 0;
  color: #515b52;
  line-height: 1.65;
}

.home .home-platform-footnote {
  max-width: 60ch;
  margin: 0;
  color: #515b52;
  font-size: 0.875rem;
  line-height: 1.7;
}

.home .home-method-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 3rem 6rem;
}

.home .home-method-intro {
  max-width: 41ch;
  margin-block: 1.5rem 1rem;
  line-height: 1.7;
  color: #515b52;
}

.home .home-method-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: home-step;
}

.home .home-method-list li {
  position: relative;
  padding: 1.5rem 0 1.5rem 3.5rem;
  border-top: 1px solid #b9b8ae;
  counter-increment: home-step;
}

.home .home-method-list li::before {
  position: absolute;
  top: 1.65rem;
  left: 0;
  content: counter(home-step, decimal-leading-zero);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  color: #765018;
}

.home .home-method-list h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.home .home-method-list p {
  margin: 0;
  line-height: 1.7;
  color: #515b52;
}

.home .home-guardrail-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 5rem;
  margin: 0 0 1.5rem;
}

.home .home-guardrail-list > div {
  padding-block: 1.5rem;
  border-top: 1px solid #49534c;
}

.home .home-guardrail-list dt {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.home .home-guardrail-list dd {
  max-width: 52ch;
  margin: 0.7rem 0 0;
  line-height: 1.7;
  color: #c1c8c2;
}

.home .home-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.25fr);
  gap: 2rem 5rem;
}

.home .home-contact-kicker {
  margin-top: 0.7rem;
}

.home .home-contact h2 {
  max-width: 22ch;
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 4.25vw, 4rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.home .home-contact-layout > div > p:not(.home-contact-note) {
  max-width: 54ch;
  margin: 0 0 1.75rem;
  line-height: 1.7;
}

.home .home-contact-note {
  margin: 1rem 0 0;
  color: #515b52;
  font-size: 0.875rem;
}

@media (max-width: 960px) {
  .home .home-cover-layout {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 2.5rem;
  }
  .home .home-section-intro,
  .home .home-platform-layout,
  .home .home-method-layout,
  .home .home-example-heading,
  .home .home-contact-layout {
    column-gap: 2.5rem;
  }
}

@media (max-width: 700px) {
  .home .home-cover-layout,
  .home .home-section-intro,
  .home .home-example-heading,
  .home .home-scenario,
  .home .home-platform-layout,
  .home .home-method-layout,
  .home .home-guardrail-list,
  .home .home-contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .home .home-cover-copy h1 {
    font-size: clamp(2.8rem, 10vw, 4.5rem);
    max-width: 14ch;
  }
  .home .home-start {
    margin-top: 0.5rem;
  }
  .home .home-start-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 1rem;
  }
  .home .home-start-list dd {
    margin-top: 0;
  }
  .home .home-example-heading {
    gap: 1.5rem;
  }
  .home .home-scenario-context {
    padding-right: 0;
  }
  .home .home-scenario-output {
    margin-bottom: 1.5rem;
  }
  .home .home-platform-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
  .home .home-contact-layout {
    gap: 1.25rem;
  }
}

/* Keep the native select and long French words within the 320px viewport. */
@media (max-width: 360px) {
  .home .home-cover-copy h1 {
    font-size: 2.55rem;
  }
  .home .home-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .home .home-scenario-context,
  .home .home-scenario-output {
    overflow-wrap: anywhere;
  }
  .home .home-start-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .home-cover-link,
  .home .home-dark-link,
  .home .home-example-control select {
    transition: none;
  }
}
