/* Let's talk: a panel at the end of the page with the email and LinkedIn
   links (no form), then a small footer with the year and a way back up. */

.tk, .ft { --line: color-mix(in srgb, var(--ink) 12%, transparent); --dim: color-mix(in srgb, var(--ink) 58%, transparent); --gut: 24px;
  font-family: var(--font); color: var(--ink); }

/* the same gap above it as between the other big blocks (measured from the reel's scrollbar) */
.tk { padding: var(--section-gap) var(--gut) 0; scroll-margin-top: 0; }
.tk-panel { padding: clamp(48px, 7vw, 110px) clamp(24px, 5vw, 80px); border-radius: 20px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg), #fff 4%); }
/* the right side of the panel is a window, cut on a steep diagonal from top
   to bottom; greetings ("Hello! Hola! Bonjour!…") sit still behind it.
   The heading, line and buttons stay on the solid part to the left. */
.tk-panel { position: relative; overflow: hidden; isolation: isolate; --cut: 45%; }
.tk-panel > :not(.tk-win) { position: relative; z-index: 2; }
.tk-panel > h2, .tk-panel > .tk-row { max-width: calc(var(--cut) + 8%); }
.tk-win { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: var(--bg); overflow: hidden;
  clip-path: polygon(calc(var(--cut) + 16%) 0, 100% 0, 100% 100%, var(--cut) 100%);
  box-shadow: inset 14px 0 30px rgba(0,0,0,.4); }
/* the slanted edge, as a thin accent line */
.tk-panel::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: color-mix(in srgb, var(--accent) 50%, transparent);
  clip-path: polygon(calc(var(--cut) + 16%) 0, calc(var(--cut) + 16% + 1.5px) 0, calc(var(--cut) + 1.5px) 100%, var(--cut) 100%); }
.tk-hi { position: absolute; top: 0; bottom: 0; left: calc(var(--cut) - 2%); right: -10%; display: flex; flex-direction: column; justify-content: center; gap: 0;
  font: 900 clamp(48px, 5.6vw, 80px)/.92 Archivo, sans-serif; font-variation-settings: "wdth" 115; letter-spacing: -.03em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 38%, transparent); }
.tk-hi-row { white-space: nowrap; }
/* on arrival the rows slide in from alternate sides and settle into place
   (js/talk.js adds .rv to the panel, then .in when it scrolls into view) */
.tk-panel.rv .tk-hi-row { opacity: 0; transform: translateX(calc(var(--from, 1) * 28%));
  transition: transform 1.4s cubic-bezier(.16,.84,.24,1), opacity .9s; transition-delay: calc(var(--i, 0) * 70ms); }
.tk-panel.rv .tk-hi-row:nth-child(even) { --from: -1; }
.tk-panel.rv.in .tk-hi-row { opacity: 1; transform: none; }
.tk-hi-track { display: inline-flex; }
.tk-hi-row.rev .tk-hi-track { transform: translateX(-1.6em); }   /* still: alternate rows offset, like brickwork */
.tk-hi span { padding-right: .45em; }
/* the middle row: "Howdy!" centred in the window, greetings either side */
.tk-hi-row.mid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.tk-hi-side { display: flex; overflow: hidden; }
.tk-hi-side.l { justify-content: flex-end; }
.tk-hi-side.l span:last-child { padding-right: .45em; }
/* hovering or focusing a contact button fills in one greeting, picked at
   random from those fully inside the window (js/talk.js) */
.tk-hi-row.mid b { font-weight: inherit; padding-right: .45em; }
.tk-hi span, .tk-hi b { transition: color .35s, -webkit-text-stroke-color .35s; }
.tk-hi .on { color: color-mix(in srgb, var(--accent) 45%, transparent); -webkit-text-stroke-color: transparent; }
.tk h2 { margin: 0; font: 900 clamp(64px, 8.5vw, 150px)/.86 Archivo, sans-serif; font-variation-settings: "wdth" 115; letter-spacing: -.04em; text-transform: uppercase; }
.tk h2 em { font-style: italic; font-weight: 300; font-variation-settings: "wdth" 100; color: var(--accent); text-transform: none; letter-spacing: -.03em; }
.tk-row { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; margin-top: 44px; }
.tk p { margin: 0; max-width: 32ch; font: 500 clamp(17px, 1.4vw, 21px)/1.5 var(--font); color: var(--dim); }
.tk-links { display: flex; flex-wrap: wrap; gap: 12px; }
.tk-btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 999px; text-decoration: none; font: 700 16px/1 var(--font);
  transition: transform .25s, background .25s, color .25s, border-color .25s; }
.tk-btn:hover, .tk-btn:focus-visible { transform: translateY(-2px); }
.tk-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tk-btn .ic { width: 26px; height: 26px; margin-right: -6px; }
.tk-btn.mail { background: var(--accent); color: var(--deep); }
.tk-btn.mail:hover { filter: brightness(1.08); }
.tk-btn.li { border: 1.5px solid color-mix(in srgb, var(--ink) 30%, transparent); color: var(--ink); }
.tk-btn.li:hover, .tk-btn.li:focus-visible { border-color: var(--accent); color: var(--accent); }

.ft { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px var(--gut); font: 500 14px/1 var(--font); color: var(--dim); }
.ft a { color: inherit; text-decoration: none; }
.ft a:hover, .ft a:focus-visible { color: var(--accent); }
.ft-top { display: inline-flex; padding: 6px; margin: -6px; }
.ft-top .ic { width: 30px; height: 30px; }
.ft-top:hover .ic { transform: translateX(3px); }   /* rotated up, so +x is up */

@media (max-width: 860px) {
  .tk, .ft { --gut: 16px; }
  .tk-row { margin-top: 32px; }
  /* phones: the window becomes a strip along the bottom, cut on the diagonal */
  .tk-panel { padding-bottom: 210px; }
  .tk-panel > h2, .tk-panel > .tk-row { max-width: none; }
  .tk-win, .tk-panel::after { clip-path: polygon(0 calc(100% - 120px), 100% calc(100% - 190px), 100% 100%, 0 100%); }
  .tk-panel::after { clip-path: polygon(0 calc(100% - 120px), 100% calc(100% - 190px), 100% calc(100% - 188.5px), 0 calc(100% - 118.5px)); }
  .tk-hi { left: -10%; top: auto; height: 190px; }
  .tk-btn { height: 52px; }
  .tk-btn.mail { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .tk-btn, .tk-hi span, .tk-hi b { transition: none; } }
