/* ============================================================
   CONTACT — "The real table"
   One photo of Dani being offered a cup, with a second cup held out
   towards the visitor. The words and the five links sit beside it on
   solid white. The dot system shrinks to one small row that warms up once.
   Tokens only (shared/tokens.css). Flat fills, 6px corners.
   ============================================================ */

.ct{position:relative;isolation:isolate;min-height:100svh;display:flex;flex-direction:column}
.ct__main{flex:1;display:flex;align-items:center;padding:var(--s-6) max(var(--s-3),calc((100% - 1400px) / 2)) var(--s-6)} /* lines up with the nav's edges */

/* ---------- the photo: the right half of the page, top to bottom, behind the nav ---------- */
.ct__photo{position:absolute;top:0;right:0;bottom:0;width:56%;z-index:-1;background:var(--surface);
  --fade:linear-gradient(to right,transparent 0,#000 34%);-webkit-mask-image:var(--fade);mask-image:var(--fade)} /* the photo's left edge dissolves into the white (Dani's call, 17 Nov: the one fade on the page) */
.ct__photo img{width:100%;height:100%;object-fit:cover;object-position:50% 45%;display:block}

/* ---------- the panel: solid white ground for every word ---------- */
.ct__panel{width:min(520px,calc(50% - var(--s-7)));padding:var(--s-6);background:var(--ground);color:var(--ink);border-radius:var(--r)}

.ct__top{display:flex;align-items:center;justify-content:space-between;gap:var(--s-4);margin-bottom:var(--s-5)}

/* the one moving thing. Resting state = warm squares; the animation starts them cold. */
.ct__heat{display:flex;gap:var(--s-2)}
.ct__heat i{width:var(--s-3);height:var(--s-3);border-radius:2px;background:var(--hot);animation:ct-warm 1.4s var(--ease-soft) both}
.ct__heat i:nth-child(1){animation-delay:.6s}
.ct__heat i:nth-child(2){animation-delay:1s}
.ct__heat i:nth-child(3){animation-delay:1.4s}
.ct__heat i:nth-child(4){animation-delay:1.8s}
.ct__heat i:nth-child(5){animation-delay:2.2s}
@keyframes ct-warm{
  from{background:var(--ink);border-radius:var(--r-round);transform:scale(.5)}
  55%{background:var(--hot);border-radius:var(--r-round);transform:scale(.8)}
  to{background:var(--hot);border-radius:2px;transform:scale(1)}
}

.ct__title{margin:0;font:var(--fw-title) clamp(34px,2.2vw + 22px,54px)/var(--lh-tight) var(--font-title);letter-spacing:var(--track-display)}
.ct__title span{display:block}
.ct__lede{margin:var(--s-4) 0 0;font-size:var(--fs-md);line-height:var(--lh-body);max-width:44ch}

/* email: first and biggest. The address is written out so it can be read and copied. */
.ct__email{width:100%;justify-content:space-between;margin-top:var(--s-5);padding:var(--s-4) var(--s-5);border-color:var(--ink);text-transform:none;letter-spacing:0}
.ct__email:hover{transform:scale(1.02)}
.ct__email-text{display:grid;gap:var(--s-2);min-width:0;text-align:left}
.ct__email-k{font:var(--fw-bold) var(--fs-xs)/1 var(--font-text);letter-spacing:var(--track-label);text-transform:uppercase}
.ct__email-v{font:var(--fw-bold) var(--fs-lg)/1.2 var(--font-text);overflow-wrap:anywhere}
.ct__email svg{width:var(--s-5);height:var(--s-5)}

/* the other four: a row of tiles, icon above the platform name */
.ct__links{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--s-3);margin:var(--s-3) 0 0;padding:0;list-style:none}
.ct__links li{display:flex}
.ct__links .btn{width:100%;flex-direction:column;justify-content:flex-start;gap:var(--s-3);padding:var(--s-4) var(--s-2);text-align:center;line-height:1.25}
.ct__links .btn svg{width:var(--s-5);height:var(--s-5)}

/* ---------- phone: photo on top (under the nav), words below ---------- */
@media (max-width:760px){
  .ct__main{flex-direction:column;align-items:stretch;padding:0}
  .ct__photo{position:relative;flex:1;width:auto;min-height:220px;margin-top:-76px;margin-bottom:calc(var(--s-6) * -1);--fade:linear-gradient(to bottom,#000 62%,transparent 100%)} /* pulled up so the photo runs behind the floating nav (8px gap + 68px bar) */
  .ct__photo img{position:absolute;inset:0;object-position:50% 38%}
  .ct__panel{position:relative;width:auto;padding:var(--s-5);border-radius:0;background:transparent} /* phone: the photo's bottom edge fades out behind the top of the words */
  .ct__top{margin-bottom:var(--s-4)}
  .ct__lede{margin-top:var(--s-3);font-size:var(--fs-sm)}
  .ct__email{margin-top:var(--s-4);padding:var(--s-4)}
  .ct__email-v{font-size:var(--fs-md)} /* the whole address on one line at 375px */
  .ct__links{grid-template-columns:1fr 1fr}
  .ct__links .btn{flex-direction:row;align-items:center;gap:var(--s-3);padding:var(--s-3) var(--s-4);text-align:left} /* phone: icon beside the name, two per row */
}

/* reduced motion: components.css already switches every animation off, so the row rests as warm squares */
@media (prefers-reduced-motion:reduce){.ct__heat i{animation:none}}
