:root {
  --canvas: #F6F5F2;
  --rail: #1A1D24;
  --rail-text: #F2F2F0;
  --accent: #3D7A5A;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--rail);
  font-family: "Sora", sans-serif;
  line-height: 1.65;
}

body::selection {
  background: var(--accent);
  color: var(--rail-text);
}

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

h1,
h2,
h3,
h4,
.wordmark {
  font-family: "DM Sans", sans-serif;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1,
h2 {
  max-width: 16ch;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

h4 {
  font-size: 1.2rem;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.home-shell {
  display: grid;
  grid-template-columns: minmax(21rem, 38%) minmax(0, 1fr);
  min-height: 100vh;
}

.shell-rail {
  background: var(--rail);
  color: var(--rail-text);
  padding: clamp(2rem, 5vw, 4.75rem);
}

.home-header {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.rail-topline,
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rail-topline {
  color: var(--rail-text);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--accent);
  width: 100%;
}

.wordmark {
  display: inline-block;
  margin: clamp(2rem, 7vh, 4.5rem) 0;
  color: var(--rail-text);
  font-size: clamp(2.8rem, 5vw, 5.6rem);
  font-weight: 700;
  text-decoration: none;
}

.rail-message {
  max-width: 32rem;
}

.limit-kicker,
.rail-limit {
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
  font-weight: 600;
}

.rail-tagline {
  max-width: 32rem;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  margin-top: 1.25rem;
  padding: 0.8rem 1.2rem;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--rail-text);
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.primary-button:hover {
  background: var(--rail-text);
  color: var(--rail);
}

.mini-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.82rem;
}

.mini-nav a:hover,
.rail-contact a:hover,
.text-link:hover,
.privacy-link:hover {
  color: var(--accent);
}

.rail-contact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 2rem;
}

.rail-contact span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rail-contact a {
  font-size: 1.05rem;
  font-weight: 600;
}

.home-content {
  min-width: 0;
}

.content-section,
.contact-section {
  padding: clamp(4rem, 9vw, 8.5rem) clamp(2rem, 8vw, 8rem);
}

.content-section + .content-section {
  border-top: 1px solid var(--rail);
}

.section-label {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.refusal-section {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.refusal-section blockquote {
  max-width: 48rem;
  margin-left: 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 6px solid var(--accent);
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
}

.refusal-section > p:last-child,
.hero-copy,
.prices-section > p,
.services-section > p {
  max-width: 46rem;
  font-size: 1.05rem;
}

.hero-section {
  min-height: 100vh;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 2.5rem 0;
}

.trust-row span {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--rail);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-limit {
  max-width: 44rem;
  margin: 2rem 0;
  padding: 1.25rem;
  border-left: 5px solid var(--accent);
  background: var(--rail);
  color: var(--rail-text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.text-link,
.privacy-link {
  font-weight: 600;
  text-decoration-thickness: 2px;
}

.work-shell {
  display: grid;
  grid-template-columns: minmax(21rem, 38%) minmax(0, 1fr);
  grid-template-areas:
    "rail prices"
    "rail services"
    "rail contact";
  align-items: start;
}

.prices-section {
  grid-area: prices;
}

.services-section {
  grid-area: services;
  border-top: 1px solid var(--rail);
}

.work-rail {
  grid-area: rail;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.work-rail .wordmark {
  margin-bottom: 2.5rem;
}

.work-rail .mini-nav {
  margin-top: auto;
}

.contact-section {
  grid-area: contact;
  min-height: 100vh;
  background: var(--rail);
  color: var(--rail-text);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.price-list {
  margin-top: 3rem;
  border-top: 2px solid var(--rail);
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rail);
}

.price-row strong {
  color: var(--accent);
  text-align: right;
}

.service-stack {
  margin-top: 3rem;
}

.service-block {
  max-width: 52rem;
  margin-bottom: 1rem;
  padding: 1.5rem 1.5rem 1.4rem 2rem;
  border-left: 7px solid var(--accent);
  border-bottom: 1px solid var(--rail);
}

.service-block h3 {
  margin-bottom: 0.65rem;
}

.service-block p {
  margin-bottom: 0;
}

.process {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 2px solid var(--rail);
}

.process > h3 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 15ch;
}

.timeline {
  list-style: none;
  max-width: 46rem;
  margin: 3rem 0 0;
  padding: 0 0 0 2.2rem;
  border-left: 3px solid var(--accent);
}

.timeline li {
  position: relative;
  padding: 0 0 2.7rem 1.5rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -2.72rem;
  top: 0.12rem;
  width: 1rem;
  height: 1rem;
  background: var(--canvas);
  border: 3px solid var(--accent);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline h4 {
  margin-bottom: 0.5rem;
}

.timeline p {
  margin-bottom: 0;
}

.contact-main {
  max-width: 48rem;
}

.contact-section h2 {
  color: var(--rail-text);
}

address {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 2rem 0;
  font-style: normal;
}

.contact-phone {
  display: block;
  width: fit-content;
  color: var(--rail-text);
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
}

.accent-button:hover {
  border-color: var(--rail-text);
}

.privacy-area {
  max-width: 48rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--accent);
}

.privacy-link {
  display: inline-block;
  margin-bottom: 1.25rem;
}

details {
  border-left: 4px solid var(--accent);
  padding-left: 1.25rem;
}

summary {
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
}

.privacy-copy {
  max-width: 44rem;
  padding-top: 1rem;
  font-size: 0.88rem;
}

.footer-strip {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rail-text);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .home-shell,
  .work-shell {
    display: flex;
    flex-direction: column;
  }

  .home-header,
  .work-rail {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 38rem;
  }

  .work-rail {
    order: -1;
  }

  .mini-nav {
    margin-top: 2rem;
  }

  .refusal-section,
  .hero-section,
  .contact-section {
    min-height: auto;
  }
}

@media (max-width: 580px) {
  .shell-rail,
  .content-section,
  .contact-section {
    padding: 2rem 1.35rem 3rem;
  }

  .home-header,
  .work-rail {
    min-height: 34rem;
  }

  .wordmark {
    margin: 2.2rem 0;
    font-size: 3.4rem;
  }

  h1,
  h2 {
    font-size: 2.45rem;
  }

  .price-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .price-row strong {
    text-align: left;
  }

  .hero-actions,
  .footer-strip {
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }
}

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

  .primary-button {
    transition: none;
  }
}
