/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr);
  gap: clamp(56px, 9vw, 136px);
  padding-block: clamp(72px, 8vw, 120px);
}

.contact-intro {
  align-self: start;
}

.contact-intro h1 {
  max-width: 11ch;
  font-size: clamp(2.9rem, 5vw, 4.8rem);
}

.contact-intro > p:not(.eyebrow) {
  max-width: 54ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: 1.04rem;
}

.contact-details {
  margin-top: 48px;
  border-top: 2px solid var(--navy);
}

.contact-details > div {
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-details dt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--cyan-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-details dt svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.contact-details dd {
  color: var(--navy);
  font-size: 0.94rem;
  line-height: 1.55;
}

.project-form {
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.form-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--navy);
}

.form-heading > span {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  text-transform: none;
}

.form-heading p {
  color: var(--muted);
  font-size: 0.74rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  margin-top: 28px;
}

.form-grid__full {
  grid-column: 1 / -1;
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 24px;
}

.consent input {
  width: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  accent-color: var(--cyan-deep);
}

.consent span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

.project-form > .button {
  margin-top: 28px;
  cursor: pointer;
}

.form-status {
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: var(--white);
  font-size: 0.76rem;
  line-height: 1.55;
}

.form-status.is-ready {
  color: var(--navy);
  border-color: var(--cyan-deep);
  background: var(--cyan-pale);
}

/* Article detail */
.article-hero {
  padding-top: clamp(48px, 5.5vw, 76px);
}

.article-hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.article-hero__meta .eyebrow {
  margin: 0;
}

.article-hero__meta time {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-hero > h1 {
  max-width: 18ch;
  margin-top: clamp(32px, 4vw, 52px);
  font-size: clamp(2.7rem, 4.6vw, 4.35rem);
}

.article-hero > p {
  max-width: 70ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.72;
}

.article-hero__image {
  margin-top: clamp(36px, 5vw, 60px);
  border-top: 2px solid var(--navy);
}

.article-hero__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
}

.article-hero__image figcaption {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.article-body {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(180px, 3fr);
  gap: clamp(56px, 9vw, 136px);
  align-items: start;
  padding-block: clamp(56px, 6vw, 88px);
}

.article-body__content {
  max-width: 780px;
  color: #263941;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.82;
}

.article-body__content > p + p {
  margin-top: 28px;
}

.article-body__content > p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--cyan-deep);
  font-family: var(--display);
  font-size: 3.8em;
  font-weight: 700;
  line-height: 0.78;
}

.article-note {
  margin-top: 40px;
  padding: 24px 28px;
  border-block: 2px solid var(--cyan-deep);
  background: var(--cyan-pale);
}

.article-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.article-note p {
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.65;
}

.article-back {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  align-self: start;
  justify-content: flex-start;
  border-top: 1px solid var(--navy);
}

.article-back svg {
  rotate: 180deg;
}

/* Legal and 404 */
.legal-document {
  max-width: 900px;
  padding-block: clamp(52px, 6vw, 84px);
}

.legal-document header {
  padding-bottom: 36px;
  border-bottom: 2px solid var(--navy);
}

.legal-document header > p:not(.eyebrow) {
  max-width: 64ch;
  margin-top: 24px;
  color: var(--muted);
}

.legal-document section {
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.legal-document section h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
}

.legal-document section p {
  max-width: 72ch;
  margin-top: 16px;
  color: var(--muted);
}

/* The compact topic index is a desktop enhancement; keep the existing mobile flow. */
.faq-index {
  display: none;
}

.not-found {
  display: flex;
  min-height: min(720px, calc(100vh - var(--header-height)));
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 96px;
}

.not-found h1 {
  max-width: 12ch;
}

.not-found > p {
  max-width: 54ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.04rem;
}
