:root {
  --marine: #0b1f3a;
  --ivoire: #f7f5f2;
  --bronze: #b8956c;
  --bronze-ink: #5e4a34;
  --ardoise: #5c6570;
  --blanc: #ffffff;
  --marine-14: rgba(11, 31, 58, 0.14);
  --marine-10: rgba(11, 31, 58, 0.1);
  --ivoire-12: rgba(247, 245, 242, 0.12);
  --ivoire-55: rgba(247, 245, 242, 0.55);
  --font-display: "DM Sans", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1060px;
  --pad: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ardoise);
  background: var(--ivoire);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--blanc);
  color: var(--marine);
  padding: 8px 14px;
  font-size: 14px;
}

.skip:focus {
  top: 12px;
}

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

a:focus-visible,
button:focus-visible,
.skip:focus {
  outline: 2px solid var(--marine);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--ivoire);
}

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marine);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--bronze);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--marine);
  margin: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  min-height: var(--header);
  height: auto;
  display: flex;
  align-items: center;
  color: var(--ivoire);
  background: linear-gradient(180deg, rgba(11, 31, 58, 0.5), transparent);
  transition: background 0.45s var(--ease), color 0.45s var(--ease),
    box-shadow 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
}

.site-header.is-solid {
  background: rgba(247, 245, 242, 0.92);
  color: var(--marine);
  box-shadow: 0 1px 0 var(--marine-14);
  backdrop-filter: blur(14px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: calc(100% - 2rem);
  margin-left: 1rem;
  margin-right: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand svg {
  width: 72px;
  height: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-name span {
  display: block;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.nav {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--marine);
  color: var(--ivoire);
  padding: calc(var(--header) + 40px) 0 72px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--ivoire-12) 1px, transparent 1px),
    linear-gradient(90deg, var(--ivoire-12) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  opacity: 0;
  animation: grid-in 1.6s var(--ease) 0.2s forwards;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.hero-logo {
  width: min(42vw, 280px);
  color: var(--ivoire);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s var(--ease) 0.25s forwards;
}

.hero h1 {
  color: var(--ivoire);
  font-weight: 600;
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s var(--ease) 0.4s forwards;
}

.hero-rule {
  width: 44px;
  height: 2px;
  background: var(--bronze);
  transform: scaleX(0);
  animation: rule 0.8s var(--ease) 0.7s forwards;
}

.hero p {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ivoire-55);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s var(--ease) 0.55s forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivoire-55);
  opacity: 0;
  animation: rise 1s var(--ease) 1.1s forwards;
}

.scroll-hint span[aria-hidden="true"] {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--bronze), transparent);
  animation: drip 1.8s var(--ease) 2;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rule {
  to {
    transform: scaleX(1);
  }
}

@keyframes grid-in {
  to {
    opacity: 1;
  }
}

@keyframes drip {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 0;
  }
}

.section {
  padding: clamp(88px, 12vw, 120px) 0;
}

.section-head {
  margin-bottom: clamp(36px, 6vw, 56px);
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.section-offer {
  border-top: 1px solid var(--marine-10);
  border-bottom: 1px solid var(--marine-10);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  padding: 32px 28px 36px;
  border: 1px solid var(--marine-10);
  background: var(--blanc);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--bronze);
}

.card-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--bronze-ink);
}

.card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--marine-14);
}

.step {
  padding: 36px 28px 8px 0;
  border-right: 1px solid var(--marine-14);
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step-index {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

.step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  margin: 0;
  max-width: 32ch;
}

.section-contact {
  background: var(--marine);
  color: var(--ivoire-55);
}

.section-contact .kicker,
.section-contact h2,
.section-contact .coord-label,
.section-contact a {
  color: var(--ivoire);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 8vw, 96px);
  align-items: start;
}

.coord-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.coord-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.coord-list a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.3s var(--ease);
}

.coord-list a:hover {
  color: var(--bronze);
}

.form {
  display: grid;
  gap: 22px;
  align-content: start;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivoire);
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #7d8792;
  padding: 10px 0 12px;
  color: var(--ivoire);
  transition: border-color 0.3s var(--ease);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ivoire-55);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ivoire);
  outline-offset: 4px;
  border-bottom-color: var(--ivoire);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.form-status {
  min-height: 1.4em;
  font-size: 14px;
}

.form-status.is-ok {
  color: var(--bronze);
}

.form-status.is-err {
  color: #e8b4ae;
}

.btn {
  appearance: none;
  border: 0;
  background: var(--ivoire);
  color: var(--marine);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: var(--bronze);
  color: var(--marine);
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.site-footer {
  background: var(--marine);
  color: var(--ivoire-55);
  border-top: 1px solid var(--ivoire-12);
  padding: 24px 0 32px;
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
}

.site-footer span:last-child {
  font-family: var(--font-mono);
  font-size: 12px;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.cards .card:nth-child(2),
.steps .step:nth-child(2) {
  transition-delay: 0.08s;
}

.cards .card:nth-child(3),
.steps .step:nth-child(3) {
  transition-delay: 0.14s;
}

.cards .card:nth-child(4) {
  transition-delay: 0.2s;
}

@media (max-width: 860px) {
  .brand-name {
    display: none;
  }

  .cards,
  .steps,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--marine-14);
    padding: 28px 0;
  }

  .step:last-child {
    border-bottom: 0;
  }

  .hero-logo {
    width: min(58vw, 220px);
  }

  .section-contact {
    padding-top: 64px;
    padding-bottom: 72px;
  }
}

@media (max-width: 560px) {
  .nav {
    font-size: 13px;
  }

  .nav ul {
    gap: 16px;
  }

  .card {
    min-height: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-grid,
  .hero-logo,
  .hero h1,
  .hero p,
  .scroll-hint,
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-rule {
    transform: scaleX(1);
  }
}

.field-hint {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ivoire);
}

.field-hint a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.form-status:focus {
  outline: 2px solid var(--ivoire);
  outline-offset: 3px;
}

.legal-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-nav a {
  color: var(--ivoire);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-nav a:hover {
  color: var(--bronze);
}

.legal-nav a[aria-current="page"] {
  text-decoration-thickness: 2px;
}

.page-inner .site-header {
  background: rgba(247, 245, 242, 0.96);
  color: var(--marine);
  box-shadow: 0 1px 0 var(--marine-14);
  backdrop-filter: blur(14px);
}

.page-inner main {
  padding: calc(var(--header) + 48px) 0 80px;
}

.prose {
  width: min(68ch, calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.prose h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.prose .updated {
  margin: 0 0 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

.prose h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 10px;
}

.prose p,
.prose li {
  margin-top: 0;
  margin-bottom: 12px;
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.prose li ul {
  margin-top: 8px;
  margin-bottom: 0;
}

.prose a {
  color: var(--marine);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.prose a:hover {
  color: var(--bronze-ink);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
