/* /contact/ page: the home contact section with the page intro beside the form card, then
   three other ways to reach us. Type and colours from DESIGN.md. */

/* the big "Let's build something iconic" heading gives way to the intro */
c-full-contact[data-page="contact"] [data-contact="head"] { display: none; }

c-full-contact[data-page="contact"] {
  padding-top: max(140px, 16svh);
}

.ct-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 40px;
}

.ct-title {
  margin: 0;
  font-size: var(--mh-h1);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.ct-lead {
  max-width: 34ch;
  margin: 0;
  font-size: var(--mh-body);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--color-theme-fg) 70%, transparent);
}

/* desktop: the card's top level with the title "What can we do together?" (Kevin, 19 Nov 2026;
   the overtitle the old offset made room for is gone); on phones it simply follows the intro */
@media (min-width: 48rem) {
  c-full-contact[data-page="contact"] .rounded-panel[data-contact="block"] {
    margin-top: 0;
  }
}

.ct-producer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  font-size: var(--mh-caps);
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- other ways to reach us ----------
   as "Selected clients" on the home page and the crafts on the Team page: the caps label on the
   left, three numbered columns on the right, each opened by a thin line */

/* always the light version, though the contact page opens dark (Kevin, 19 Nov 2026): the theme
   colours are light-dark() pairs, so the section's colour scheme picks them */
.ct-ways {
  color-scheme: light; /* V04: light again, black on the light grey (Kevin, 20 Nov 2026: "turn into white") */
  display: grid;
  gap: 40px;
  padding: max(96px, 11svh) max(16px, 4.6vw) max(120px, 14svh);
  background: var(--color-theme-bg);
  color: var(--color-theme-fg);
}

.ct-ways-label {
  margin: 0;
  font-size: var(--mh-caps);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ct-ways-grid {
  display: grid;
  gap: 64px 20px;
}

@media (min-width: 48rem) {
  .ct-ways { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: start; }
  .ct-ways-label { grid-column: 1 / 4; }
  .ct-ways-grid { grid-column: 4 / 13; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* V04 (Kevin, 20 Nov 2026: "plus minimale"): a small label and the essentials, one text size */
.ct-way {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ct-way-n {
  margin: 0;
  font-size: var(--mh-caps);
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-theme-fg) 50%, transparent);
}

.ct-way-text,
.ct-link {
  margin: 0;
  font-size: clamp(17px, 1.35vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--color-theme-fg);
}

.ct-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }

.ct-arrow { width: 9px; height: 9px; flex: none; transition: transform 0.5s var(--ease-reveal), opacity 0.3s ease; }

/* the arrow comes in on hover */
.ct-link { display: inline-flex; align-items: center; gap: 10px; }
.ct-link span { transition: opacity 0.3s ease; }
.ct-link .ct-arrow { opacity: 0; transform: translate(-6px, 6px); }
.ct-link:hover .ct-arrow,
.ct-link:focus-visible .ct-arrow { opacity: 1; transform: none; }
.ct-list:hover .ct-link:not(:hover) span { opacity: 0.45; }

/* dark map of Brussels, office in the middle (same tiles as V01's place card) */
.ct-map {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: #e9e9e9;
}

[data-theme="dark"] .ct-map { background: #1c1c1c; }

.ct-map-tiles {
  position: absolute;
  left: calc(50% - 658px);
  top: calc(50% - 751px);
  display: grid;
  grid-template-columns: repeat(5, 256px);
  width: 1280px;
  filter: grayscale(1) invert(1) brightness(1.15) contrast(0.9);
  transition: transform 1.2s var(--ease-reveal);
}

[data-theme="dark"] .ct-map-tiles { filter: grayscale(1) brightness(0.6) contrast(1.15); }

.ct-map:hover .ct-map-tiles { transform: scale(1.04); }

/* 1px overlap hides the seams between tiles */
.ct-map-tiles img {
  display: block;
  width: 257px;
  height: 257px;
  max-width: none;
}

.ct-map-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--color-theme-fg);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-theme-fg) 15%, transparent);
  animation: ct-pulse 2.4s ease-out infinite;
}

@keyframes ct-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-theme-fg) 35%, transparent); }
  70%, 100% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--color-theme-fg) 0%, transparent); }
}

@media (max-width:-1px) { .ct-map-dot { animation: none; } }

.ct-map-credit {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-size: 9px;
  color: var(--color-theme-fg);
  opacity: 0.45;
}

/* phones (Kevin, 18 Nov 2026): the card's text starts under the title. The card runs edge to
   edge, its inner margin the page margin (the grid's px-4), instead of sitting inside the
   margin with its own padding on top */
@media (width < 48rem) {
  c-full-contact .rounded-panel[data-contact="block"] {
    margin-inline: calc(var(--spacing) * -4);
    padding-inline: calc(var(--spacing) * 4);
    border-radius: 0;
  }
}

/* the writing box of the form's first step (V04, Kevin, 20 Nov 2026), as his reference: a framed
   box, rounded, the placeholder muted */
.mh-write {
  width: 100%;
  min-height: 150px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--color-theme-fg) 25%, transparent);
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition: border-color 0.3s ease;
}
.mh-write::placeholder { color: color-mix(in srgb, var(--color-theme-fg) 45%, transparent); }
.mh-write:hover, .mh-write:focus { border-color: var(--color-theme-fg); }
