:root {
  --bg: #fbfaf7;
  --bg-rgb: 251 250 247;
  --ink: #11172b;
  --muted: rgba(17, 23, 43, 0.68);
  --line: rgba(17, 23, 43, 0.08);
  --accent: #7a81ff;
  --lime: #dfff55;
  --orange: #fe6901;
  --navy: #101827;
  --shadow-soft: 0 24px 60px rgba(40, 48, 88, 0.1);
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Serif Pro", "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(122, 129, 255, 0.14), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
}

.page-shell {
  overflow-x: hidden;
}

.section-shell,
.contact-hero {
  width: 100%;
  margin: 0 auto;
}

.contact-hero {
  position: relative;
  padding: 112px 18px 58px;
  overflow: visible;
}

.contact-hero-glow {
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  background: radial-gradient(circle at 50% 0%, rgba(122, 129, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  margin: 0 auto;
  text-align: center;
}

.contact-hero h1 {
  margin: 0;
  font-family: "Source Serif Pro", "Times New Roman", serif;
  font-size: clamp(2.7rem, 3.6vw, 4rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.contact-hero h1 strong {
  font-family: "DM Serif Display", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.94em;
  line-height: inherit;
  letter-spacing: inherit;
}

.contact-hero p {
  max-width: 660px;
  margin: 24px auto 0;
  color: var(--muted);
  font-family: "Source Serif Pro", "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.45;
}

.contact-section {
  width: min(calc(100% - 32px), var(--content-width));
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 120px;
  margin-top: 10px;
}

.contact-card,
.contact-form,
.contact-options article {
  border: 1px solid rgba(17, 23, 43, 0.07);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.contact-card {
  min-height: 420px;
  padding: 38px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.contact-card h2 {
  max-width: 360px;
  margin: 0;
  font-family: "Radio Canada", sans-serif;
  font-size: clamp(2.35rem, 3.2vw, 3.35rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.contact-card p {
  max-width: 420px;
  margin: 24px 0 34px;
  color: var(--muted);
  font-family: "Source Serif Pro", "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.5;
}

.contact-form {
  padding: 28px;
  border-radius: 28px;
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 9px;
}

.contact-form span {
  color: rgba(17, 23, 43, 0.76);
  font-family: "Radio Canada", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 23, 43, 0.1);
  border-radius: 16px;
  background: rgba(251, 250, 247, 0.92);
  color: var(--ink);
  font: 600 0.96rem "Radio Canada", sans-serif;
  padding: 15px 16px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 138px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(122, 129, 255, 0.56);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(122, 129, 255, 0.12);
}

.button-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: fit-content;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: var(--navy);
  color: #ffffff;
  cursor: pointer;
  font-family: "Radio Canada", sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(19, 28, 47, 0.14);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.button-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 28px rgba(19, 28, 47, 0.2);
}

.button-lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 10px 18px rgba(122, 129, 255, 0.12);
}

.button-lime:hover {
  box-shadow: 0 18px 28px rgba(122, 129, 255, 0.18);
}

.contact-form .button-dark {
  width: 100%;
  margin-top: 4px;
}

.contact-options {
  width: min(calc(100% - 32px), var(--content-width));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 150px;
}

.contact-options article {
  min-height: 230px;
  padding: 28px;
  border-radius: 24px;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s ease;
}

.contact-options article:hover {
  transform: translateY(-6px);
  border-color: rgba(17, 23, 43, 0.12);
  box-shadow: 0 28px 58px rgba(38, 45, 82, 0.1);
}

.contact-options span {
  display: inline-flex;
  margin-bottom: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: "Radio Canada", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.contact-options article:nth-child(1) span {
  background: rgba(122, 129, 255, 0.14);
  color: #5f66dc;
}

.contact-options article:nth-child(2) span {
  background: var(--lime);
  color: var(--ink);
}

.contact-options article:nth-child(3) span {
  background: rgba(254, 105, 1, 0.14);
  color: var(--orange);
}

.contact-options h3 {
  margin: 0 0 14px;
  font-family: "Source Serif Pro", "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.contact-options p {
  margin: 0;
  color: var(--muted);
  font-family: "Source Serif Pro", "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.48;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 38px, 0);
  transition:
    opacity 0.82s ease,
    transform 0.82s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-reveal][data-reveal-delay="0"] { --reveal-delay: 0; }
[data-reveal][data-reveal-delay="1"] { --reveal-delay: 1; }
[data-reveal][data-reveal-delay="2"] { --reveal-delay: 2; }

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

  .site-header,
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1120px) {
  .contact-hero h1 {
    font-size: clamp(3rem, 6.3vw, 4.35rem);
    line-height: 0.92;
  }

  .contact-section,
  .contact-options {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .contact-hero {
    padding: 118px 10px 44px;
  }

  .contact-hero h1 {
    font-size: clamp(2.8rem, 11vw, 3.9rem);
  }

  .contact-hero p {
    margin-top: 28px;
    font-size: clamp(1rem, 4.6vw, 1.12rem);
    line-height: 1.34;
  }

  .contact-section,
  .contact-options {
    width: 100%;
    max-width: var(--content-width);
    gap: 16px;
  }

  .contact-section {
    margin-bottom: 72px;
  }

  .contact-options {
    margin-bottom: 72px;
  }

  .contact-card,
  .contact-form,
  .contact-options article {
    border-radius: 18px;
  }

  .contact-card,
  .contact-form {
    padding: 22px 18px;
  }

  .contact-card {
    display: none;
  }

}
