/* End of the home page: About, the band, Contact, footer. The markup is
   generated into index.html (js/lib/info-html.js); motion is js/sections/info.js. */

/* Small section label, as "Travaux" in the slider */
.info__label {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --- About ------------------------------------------------------------------ */

.about {
  display: grid;
  gap: var(--space-8);
  min-height: 0;
  padding-block: var(--space-9);
}

.about__statement {
  max-width: 22ch;
  font-size: var(--step-5);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

.about__details {
  display: grid;
  gap: var(--space-7);
  max-width: 75rem;
}

@media (min-width: 768px) {
  .about__details {
    grid-template-columns: 3fr 2fr;
    gap: var(--space-8);
  }
}

.about__bio {
  display: grid;
  gap: var(--space-4);
  font-size: var(--step-1);
}

.about__location {
  font-size: var(--step-0);
  color: var(--color-text-muted);
}

.about__lists {
  display: grid;
  gap: var(--space-6);
  align-content: start;
}

.about__heading {
  margin-bottom: var(--space-3);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  font-size: var(--step--1);
}

/* --- Band ---------------------------------------------------------------------- */

.band {
  overflow: hidden;
  padding-block: var(--space-6);
  border-block: 1px solid var(--color-line);
}

.band__track {
  display: flex;
  width: max-content;
}

.band__line {
  display: flex;
  flex: none;
  font-size: var(--step-6);
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
}

.band__dot {
  margin-inline: 0.35em;
  color: var(--color-accent);
}

/* --- Contact --------------------------------------------------------------------- */

.contact {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: var(--space-9);
}

/* Until (or without) the live Velaris gradient: the same look, static
   (the gradient's own CSS fallback, see components/velaris.css) */
.contact:not(.velaris) {
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 60% 55% at 30% 35%, color-mix(in srgb, var(--color-violet) 85%, transparent), transparent 70%),
    radial-gradient(ellipse 55% 50% at 72% 60%, color-mix(in srgb, var(--color-blue) 60%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 40% at 55% 80%, color-mix(in srgb, var(--color-pink) 45%, transparent), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 40%, var(--color-bg) 95%);
}

/* Readability: a dark veil between the gradient (canvas or static) and the
   text, heavier on the left where the text sits. Measured worst case over
   the live gradient: ≥ 4.5:1 for every text in Contact. */
.contact {
  isolation: isolate;
}

.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--color-bg) 78%, transparent) 0%,
    color-mix(in srgb, var(--color-bg) 62%, transparent) 55%,
    color-mix(in srgb, var(--color-bg) 52%, transparent) 100%);
  pointer-events: none;
}

/* Over the gradient, no gray: everything in the text color; what is still
   missing ("à venir") is set in italic instead */
.contact .about__heading,
.contact .contact__address--soon,
.contact .contact__soon,
.contact .contact__cv--soon {
  color: var(--color-text);
}

.contact .contact__address--soon,
.contact .contact__soon,
.contact .contact__cv--soon {
  font-style: italic;
}

.contact__inner {
  display: grid;
  gap: var(--space-6);
  width: 100%;
  max-width: 75rem;
}

.contact .info__label {
  color: var(--color-text);
}

.contact__heading {
  font-size: var(--step-5);
}

/* The email, sized to fit the width like the project titles (0.56em ≈ an
   average glyph of Inter Tight 700 in lowercase) */
.contact__address {
  font-size: min(var(--step-6), calc((100vw - 2 * var(--gutter)) / (var(--chars, 20) * 0.56)));
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.12em;
  overflow-wrap: anywhere;
}

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

.contact__address--soon {
  font-size: var(--step-4);
  color: var(--color-text-muted);
}

.contact__email {
  display: grid;
  justify-items: start;
  gap: var(--space-4);
}

.contact__copy,
.contact__cv {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--color-text);
  border-radius: var(--radius-pill);
  background: transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact__copy:hover,
a.contact__cv:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.contact__more > .contact__cv {
  justify-self: start;
}

.contact__cv--soon {
  border-color: var(--color-line);
  color: var(--color-text-muted);
  cursor: default;
}

.contact__more {
  display: grid;
  gap: var(--space-6);
  align-items: end;
}

@media (min-width: 768px) {
  .contact__more {
    grid-template-columns: 1fr auto;
  }
}

.contact__socials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step-1);
  font-weight: 600;
}

.contact__socials a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.contact__socials a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact__soon {
  color: var(--color-text-muted);
  font-weight: 400;
}

.contact .icon {
  width: 1em;
  height: 1em;
}

/* --- Footer ------------------------------------------------------------------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) var(--gutter);
  border-top: 1px solid var(--color-line);
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

.site-footer__top {
  color: var(--color-text);
  text-decoration: none;
}

.site-footer__top:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (prefers-reduced-motion: reduce) {
  .contact__copy,
  .contact__cv {
    transition: none;
  }
}
