:root {
  --paper: #f7f7f4;
  --ink: #151719;
  --muted: #5e6468;
  --accent: #1e4058;
  --soft: #eceeea;
  --max: 1120px;
  --text: 780px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  color: var(--accent);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-header {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-name {
  font-size: 14px;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

main {
  overflow: hidden;
}

.hero {
  width: min(calc(100% - 48px), 980px);
  margin: 0 auto;
  padding: 118px 0 152px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 8.4vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  font-weight: 650;
}

.hero p {
  max-width: 740px;
  margin: 44px auto 0;
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.section {
  width: min(calc(100% - 48px), var(--text));
  margin: 0 auto;
  padding: 96px 0;
}

.section h2 {
  margin: 0 0 30px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.section p {
  margin: 0 0 24px;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.58;
  letter-spacing: -0.012em;
}

.section p:last-child {
  margin-bottom: 0;
}

.process {
  width: min(calc(100% - 48px), 1180px);
  margin: 34px auto 8px;
}

.process ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-card {
  --card-accent: #9ba68c;
  position: relative;
  min-width: 0;
  min-height: 310px;
  padding: 34px 24px 34px;
  overflow: hidden;
  background: #fbfaf6;
  border: 1px solid #d7d3c9;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(30, 34, 31, 0.05);
}

.process-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: var(--card-accent);
}

.process-card-development {
  --card-accent: #b8a284;
}

.process-card-validation {
  --card-accent: #aaa69c;
}

.process-card-scale {
  --card-accent: #8f9b80;
}

.process-number {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-accent) 78%, white);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.process-card strong {
  display: block;
  max-width: 100%;
  margin-top: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 2.35vw, 36px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 400;
  white-space: normal;
}

.process-card-development strong {
  font-size: clamp(27px, 2.15vw, 33px);
  letter-spacing: -0.035em;
}

.process-icon {
  position: absolute;
  right: 22px;
  bottom: 32px;
  width: 72px;
  height: 72px;
  fill: none;
  stroke: var(--card-accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.76;
}

.process-icon.bars {
  stroke-width: 6;
  stroke-linecap: square;
}

.project {
  width: min(calc(100% - 48px), 940px);
  margin: 26px auto 0;
  padding: 72px 64px;
  background: var(--accent);
  color: #fff;
}

.project h3 {
  margin: 0 0 24px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.project p {
  max-width: 720px;
  margin: 0 0 34px;
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.project a {
  color: #fff;
  font-size: 17px;
}

.project-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.project-links a {
  display: inline-block;
}

.project-next {
  margin-top: 22px;
}

.project-next h3 {
  max-width: 760px;
  margin-bottom: 42px;
}

.apply-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  background: #fff;
  color: var(--accent);
  border: 1px solid #fff;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease;
}

.apply-button:hover {
  background: transparent;
  color: #fff;
}

.application-dialog {
  width: min(calc(100% - 40px), 620px);
  padding: 46px 46px 40px;
  color: var(--ink);
  background: #fbfaf6;
  border: 1px solid #d7d3c9;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(21, 23, 25, 0.18);
}

.application-dialog::backdrop {
  background: rgba(21, 23, 25, 0.46);
}

.application-dialog h2 {
  margin: 0 48px 22px 0;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.application-dialog p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.55;
  color: #44494c;
}

.pitch-reminder {
  padding: 18px 20px;
  background: #efeee8;
  color: #2e3235 !important;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

.dialog-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.dialog-email,
.dialog-cancel {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--accent);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.dialog-email {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.dialog-email:hover {
  color: #fff;
}

.dialog-cancel {
  background: transparent;
  color: var(--accent);
}

.site-footer {
  width: min(calc(100% - 48px), var(--max));
  margin: 100px auto 0;
  padding: 42px 0 54px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 960px) {
  .process ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-card strong,
  .process-card-development strong {
    font-size: 36px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 82px;
  }

  .brand-name {
    display: none;
  }

  nav {
    gap: 16px;
  }

  nav a:not(:last-child) {
    display: none;
  }

  .hero {
    padding: 88px 0 112px;
  }

  .section {
    padding: 72px 0;
  }

  .process-card {
    min-height: 280px;
  }

  .project {
    padding: 52px 34px;
  }

  .application-dialog {
    padding: 38px 30px 32px;
  }

  .site-footer {
    margin-top: 70px;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  .section,
  .process,
  .project,
  .site-footer {
    width: min(calc(100% - 32px), var(--max));
  }

  .hero h1 {
    font-size: clamp(49px, 16vw, 70px);
  }

  .hero p {
    font-size: 21px;
  }

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

  .process-card {
    min-height: 245px;
  }

  .process-card strong,
  .process-card-development strong {
    font-size: 36px;
  }

  .project-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dialog-email,
  .dialog-cancel {
    width: 100%;
  }
}
