/* ---------- Contact page ---------- */
.contact-page { --sans: "Helvetica Neue", "Inter Tight", Arial, sans-serif; }
.nav .pill.is-active { color: #fff; }

.ct {
  z-index: auto; /* not its own layer, so the coffee video can blend straight onto the page */
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px var(--gutter) 48px;
  width: min(1080px, 100%); margin: 0 auto;
}
.ct-eyebrow {
  font-family: var(--display); font-variation-settings: "wdth" 110; font-size: 11px;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted);
}
/* the big steel heading, same treatment as the name on the home page (shine set in contact.js) */
.ct-title {
  margin-top: 18px;
  font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 125;
  font-size: clamp(48px, 10vw, 160px); /* fitted to the column in contact.js */ line-height: 0.86; letter-spacing: -0.02em; white-space: nowrap; display: inline-block; align-self: flex-start;
  color: #9a9ea3;
  --mx: 50%; --my: 50%; --glow: 0;
  background:
    radial-gradient(circle 9vw at var(--mx) var(--my), rgba(255, 255, 255, var(--glow)) 0%, rgba(255, 255, 255, var(--glow)) 10%, rgba(232, 236, 241, calc(var(--glow) * 0.55)) 40%, transparent 80%),
    linear-gradient(100deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.18) 38%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.12) 78%, rgba(255, 255, 255, 0) 92%),
    linear-gradient(180deg, #eceef0 0%, #c3c7cb 28%, #979ba0 52%, #a9adb2 70%, #d6d9dc 88%, #b3b7bb 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.08)) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}
.ct-intro {
  margin-top: clamp(22px, 4vh, 40px); max-width: 52ch;
  font-family: var(--sans); font-size: 17px; line-height: 1.55; letter-spacing: -0.01em; color: #c9c8c4;
}

/* email: the main way in, so it's the biggest line after the heading */
.ct-email { margin-top: clamp(28px, 6vh, 56px); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ct-email__link {
  font-family: var(--sans); font-weight: 500; font-size: clamp(22px, 3.2vw, 40px); letter-spacing: -0.035em; color: var(--text);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 4px;
  transition: background-size 0.45s cubic-bezier(.2, .8, .2, 1);
}
.ct-email__link:hover, .ct-email__link:focus-visible { background-size: 100% 1px; }
.ct-copy { cursor: pointer; }
.ct-copy.is-done { color: #fff; }

.ct-rows { list-style: none; margin-top: clamp(28px, 6vh, 56px); max-width: 640px; border-bottom: 1px solid var(--line); }
.ct-rows li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 16px 0; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 15px;
}
.ct-rows__k {
  font-family: var(--display); font-variation-settings: "wdth" 110; font-size: 11px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.ct-rows__v { color: #d6d5d1; transition: color 0.25s ease; }
a.ct-rows__v:hover, a.ct-rows__v:focus-visible { color: #fff; }


/* details on the left, the coffee on the right */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ct-info { min-width: 0; }

/* ---------- coffee ---------- */
.coffee { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: clamp(28px, 4vh, 40px); }
.coffee__line { font-family: var(--sans); font-size: 17px; line-height: 1.55; letter-spacing: -0.01em; color: #c9c8c4; max-width: 34ch; text-wrap: balance; }
.coffee__line em { display: block; font-style: normal; color: var(--muted); }
.coffee__cup {
  position: relative; margin-top: 10px; width: min(340px, 72vw); aspect-ratio: 1;
  border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}
/* the sketch is pre-rendered as white lines on black (assets/contact/coffee.mp4, made with
   "3d source/coffee_invert.swift"). contact.js redraws it on the canvas in the same brushed
   steel as the heading (with the same cursor shine); "lighten" drops the black, so the cup
   is see-through. The video itself stays hidden underneath. */
.coffee__cup video { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.coffee__cup canvas { position: relative; display: block; width: 100%; height: 100%; mix-blend-mode: lighten; pointer-events: none;
  transform-origin: 50% 80%; transition: transform 0.35s cubic-bezier(.2, .8, .2, 1.4);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5)); }
.coffee__cup:hover canvas { transform: rotate(-4deg) scale(1.03); }          /* a little wiggle, asking to be picked up */
.coffee__cup:focus-visible { outline: 1px solid var(--line); outline-offset: 6px; }
.coffee__cup.is-sipping canvas { animation: sip 0.6s cubic-bezier(.3, .7, .3, 1.3); }
@keyframes sip { 0% { transform: rotate(0); } 35% { transform: rotate(-11deg) translateY(-10px) scale(1.04); } 70% { transform: rotate(3deg); } 100% { transform: rotate(0); } }
.coffee__hint {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--display); font-variation-settings: "wdth" 110; font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); transition: opacity 0.4s ease;
}
.coffee__cup.is-busy { cursor: progress; }
.coffee__cup.is-busy .coffee__hint { opacity: 0; }
.coffee__count { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; font-family: var(--sans); color: #a6a5a1; font-size: 14px; }
.coffee__count b { font-weight: 500; font-size: 30px; letter-spacing: -0.04em; color: var(--text); display: inline-block; }
.coffee__count b.is-pop { animation: pop 0.5s cubic-bezier(.3, .7, .3, 1.6); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.45) rotate(-8deg); } 100% { transform: scale(1); } }

@media (max-width: 900px) {
  .ct-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .coffee__cup canvas, .coffee__cup.is-sipping canvas, .coffee__count b.is-pop { animation: none; transition: none; }
}

@media (max-width: 760px) {
  .ct { padding-top: 120px; }
  .ct-intro { font-size: 15px; }
  .ct-email__link { font-size: clamp(18px, 6vw, 26px); }
}
