/* Lower blocks: services, contact, footer (the process schedule lives in process.css).
   Tokens come from style.css; body.is-dark swaps them for the closing screen. */

/* ---------- services ---------- */
.services {
  display: grid; grid-template-columns: 1fr 2fr; gap: 40px;
  padding: 16vh var(--gutter) 20vh;
}
.services__head { position: sticky; top: 120px; align-self: start; display: grid; gap: 20px; }
.services__title { font-size: clamp(32px, 3.2vw, 48px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.05; }
.services__lead { font-size: 17px; line-height: 1.45; color: var(--grey); max-width: 28ch; }

.svc-list { list-style: none; }
.svc { padding: 28px 0 32px; transition: opacity .4s var(--ease); }
.svc__name {
  font-size: clamp(48px, 6.4vw, 104px); font-weight: 400; line-height: 1; letter-spacing: -0.035em;
}
.svc__desc { margin-top: 16px; font-size: 17px; line-height: 1.45; color: var(--grey); max-width: 40ch; }
/* the way to this service's films: quiet until the row is hovered */
.svc__link { display: block; }
.svc__more {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 15px; color: var(--grey);
  transition: color .4s var(--ease);
}
.svc__more svg { width: 34px; height: 9px; overflow: visible; transition: transform .6s var(--ease); }
.svc__more path { fill: none; stroke: currentColor; stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.svc__link:hover .svc__more, .svc__link:focus-visible .svc__more { color: var(--ink); }
.svc__link:hover .svc__more svg, .svc__link:focus-visible .svc__more svg { transform: translateX(6px); }
.svc__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 8px; }
@media (hover: hover) and (pointer: fine) {
  .svc-list:hover .svc { opacity: 0.28; }
  .svc-list .svc:hover { opacity: 1; }
}

/* a still from a real project under the heading, swapped as you hover each service */
.services__frame {
  position: relative; aspect-ratio: 4 / 3; margin-top: 20px; overflow: hidden;
  border-radius: 12px; background: var(--card);
}
.services__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform 1.2s var(--ease);
}
.services__frame img.is-on { opacity: 1; transform: none; }
.services__frame-cap {
  position: absolute; left: 12px; bottom: 10px; font-size: 13px; color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ---------- contact ---------- */
.contact { padding: 28vh var(--gutter) 6vh; }
/* the brief form lives in brief.css */

/* ---------- footer: about, menus, then the address as the last big line of the site ---------- */
.footer { display: grid; gap: 9vh; padding: 14vh var(--gutter) 32px; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; align-items: start; }
.footer__about { display: grid; gap: 20px; justify-items: start; }
.footer__about p { font-size: 17px; line-height: 1.45; color: var(--grey); max-width: 30ch; }
.footer__col { display: grid; gap: 10px; align-content: start; font-size: 17px; }
.footer__h { margin-bottom: 6px; font-size: 13px; color: var(--grey); }
.footer__col a { width: max-content; transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--accent); }
/* end credits: roles on the left, names on the right, rolling up through a soft-edged window */
.footer--credits { border-top: 0; padding-top: 0; gap: 6vh; }
.fd { position: relative; height: 190vh; margin: 0 calc(var(--gutter) * -1); }
.fd__view {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 80%, transparent 100%);
}
.fd__roll {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 0;
  display: grid; justify-items: center; text-align: center; transform: translateY(var(--y, 100vh));
}
.fd__brand { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(40px, 4.6vw, 72px); font-weight: 500; letter-spacing: -0.03em; }
.fd__brand img { width: 0.62em; height: 0.62em; }
.fd__tag { margin-top: 10px; font-size: 17px; color: var(--grey); }
.fd__list { display: grid; gap: 48px; margin-top: 16vh; width: min(800px, 100%); }
.fd__list div { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; text-align: left; }
.fd__list dt { text-align: right; padding-top: 3px; font-size: 15px; line-height: 1.6; color: var(--grey); }
.fd__list dd { font-size: 22px; line-height: 1.4; letter-spacing: -0.01em; }
.fd__list a { transition: color .3s var(--ease); }
.fd__list a:hover { color: var(--accent); }

.footer__mail {
  display: flex; align-items: center; justify-content: space-between; gap: 0.3em;
  padding: 5vh 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: clamp(22px, 7.3vw, 140px); line-height: 1; letter-spacing: -0.045em;
}
/* letters gain weight from the centre outwards on hover, like the header links (nav.js) */
.footer__mail-text { display: inline-flex; white-space: nowrap; }
.footer__mail:hover .nl, .footer__mail:focus-visible .nl { font-weight: 700; }
.footer__arrow { width: 0.9em; height: 0.24em; flex: none; overflow: visible; transition: transform .8s var(--ease); }
.footer__arrow path { fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.footer__mail:hover .footer__arrow { transform: translateX(0.15em); }
.footer__mail:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 24px; font-size: 15px; color: var(--grey); font-variant-numeric: tabular-nums; }
.footer__up { transition: color .3s var(--ease); }
.footer__up:hover { color: var(--ink); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; padding-top: 10vh; }
  .services__head { position: static; }
  .svc { padding: 20px 0 24px; }

  .contact { padding-top: 16vh; }
  .footer { gap: 7vh; padding-top: 10vh; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer__about { grid-column: 1 / -1; }
  .footer__mail { padding: 4vh 0; font-size: 7.3vw; }
  .fd { height: 180vh; }
  .fd__list { gap: 36px; }
  .fd__list div { gap: 16px; }
  .fd__list dd { font-size: 17px; }
  .footer__arrow { display: none; }
  .services__frame { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .services__frame img { transition: none; }
}
