/* ============================================================
   Contact — one screen, no footer. A statement on the left whose
   last words change from city to city; on the right the email,
   the telephone numbers, the address and one photograph.
   Sizes are set for a 1440px-wide window and grow beyond it.
   ============================================================ */

.ct {
  --u: max(1px, 0.0694444vw);
  --gap: calc(10.6667 * var(--u));
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: end;
  min-height: 100svh; padding: 200px var(--edge) 100px;
  background: var(--sand); color: var(--ink);
  font-family: var(--font-display); font-weight: 560; letter-spacing: -0.028em; font-kerning: normal; text-rendering: auto;
}
.ct a { color: inherit; text-decoration: none; }
.ct p, .ct address, .ct figure { margin: 0; font-style: normal; font-weight: inherit; }

.ct-left { order: 1; margin-bottom: 32px; }
.ct-title { margin: 0; font-size: 37.1px; line-height: 39.6px; font-weight: 560; letter-spacing: -0.035em; }
.ct-lead .ln:last-child { display: inline-block; vertical-align: top; }
/* the changing words: one line tall, as wide as the longest, each rising in and leaving upward */
.ct-cities { display: inline-grid; vertical-align: top; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.ct-city { grid-area: 1 / 1; white-space: nowrap; transform: translateY(112%); }
.ct-city.is-on { transform: none; transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1); }
.ct-city.is-off { transform: translateY(-112%); transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1); }
.ct-social { display: none; gap: 2px; font-size: calc(16.5 * var(--u)); line-height: calc(17.6 * var(--u)); }

.ct-right, .ct-row--address { display: contents; }
.ct-row { order: 3; margin-top: 32px; }
.ct-label { display: block; overflow: hidden; font-size: calc(14.4 * var(--u)); line-height: calc(16.8 * var(--u)); letter-spacing: -0.02em; text-transform: uppercase; }
.ct-label > span { display: inline-block; }
.ct-value { display: block; margin-top: 12px; font-size: 20.6px; line-height: 26px; }
.ct-value a { display: block; }
@media (max-width: 1279px) { .ct-value a, a.ct-value { padding-top: 6px; padding-bottom: 6px; } .ct-value { margin-top: 6px; } }
.ct-value .ln { white-space: nowrap; }
.ct-value--social { display: flex; gap: 6px; }
.ct-addr { order: 3; margin-top: 32px; }
.ct-photo { order: 2; margin-bottom: 20px; }
.ct-photo-in { position: relative; height: 0; padding-top: 110%; overflow: hidden; background: var(--linen); clip-path: inset(0 0 0 0); }
.ct-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 88%; }

.ln { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.ln-in { display: block; }
.wd { white-space: nowrap; }

/* ---------- arriving ----------
   Only when the page is opened directly. Arriving from another page, behind its name card,
   everything is already in place as the card lifts (html.has-card, then .is-still). */
.is-still, .is-still * { transition: none !important; }
html.js:not(.rise-off):not(.has-card) .ct:not(.is-set) [data-lines] { visibility: hidden; }
html.js:not(.rise-off):not(.has-card) .ct:not(.is-in) .ln-in, html.js:not(.rise-off):not(.has-card) .ct:not(.is-in) .ct-label > span { transform: translateY(112%); }
html.js:not(.rise-off):not(.has-card) .ct:not(.is-in) .ct-photo-in { clip-path: inset(50% 35% 0 35%); }
html.js:not(.rise-off):not(.has-card) .ct:not(.is-in) .ct-photo img { transform: scale(0.95); }
html.js:not(.rise-off):not(.has-card) .ct:not(.is-in) .ct-social, html.js:not(.rise-off):not(.has-card) .ct:not(.is-in) .ct-value--social { opacity: 0; }
.ct.is-in .ln-in { transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--d, 0.15s) + var(--i, 0) * 0.1s); }
.ct.is-in .ct-label > span { transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s; }
.ct.is-in .ct-value .ln-in { --d: 0.7s; }
.ct.is-in .ct-photo-in { transition: clip-path 1.4s cubic-bezier(0.16, 1, 0.3, 1); }
.ct.is-in .ct-photo img { transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1); }
.ct.is-in .ct-social, .ct.is-in .ct-value--social { transition: opacity 0.8s var(--ease-out) 0.9s; }

@media (hover: hover) and (pointer: fine) {
  .ct-social a, .ct-value a, a.ct-value { transition: color var(--quick) var(--ease-out); }
  .ct-social a:hover, .ct-value a:hover, a.ct-value:hover { color: var(--paper); }
}
.ct a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* ---------- from tablets up: label beside value, the photograph beside the address ---------- */
@media (min-width: 768px) {
  .ct { padding-top: 100px; padding-bottom: calc(20 * var(--u)); grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .ct-left { grid-column: 1 / span 8; margin-bottom: 52px; }
  .ct-title { font-size: 49.5px; line-height: 52.8px; }
  .ct-right { display: block; grid-column: 1 / -1; order: 2; }
  .ct-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; margin-top: 20px; }
  .ct-row:first-child { margin-top: 0; }
  .ct-row > .ct-label { grid-column: 1 / span 5; }
  .ct-row > .ct-value { grid-column: 6 / span 7; margin-top: 0; }
  .ct-row--address { margin-top: 68px; align-items: stretch; }
  .ct-addr { grid-column: 1 / span 5; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; margin-top: 0; }
  .ct-photo { grid-column: 6 / span 7; grid-row: 1; margin-bottom: 0; }
  .ct-value { font-size: calc(20.6 * var(--u)); line-height: calc(26 * var(--u)); }
}
/* ---------- computers: statement left, details right, everything at the foot of one screen ---------- */
@media (min-width: 1280px) {
  .ct { height: 100svh; }
  .ct-left { grid-column: 1 / span 6; display: flex; flex-direction: column; justify-content: space-between; gap: calc(52 * var(--u)); margin-bottom: 0; }
  .ct-title { font-size: calc(61.9 * var(--u)); line-height: calc(66 * var(--u)); }
  .ct-social { display: flex; }
  .ct-right { grid-column: 8 / span 5; order: 2; }
  .ct-row { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: calc(20 * var(--u)); }
  .ct-row > .ct-label { grid-column: 1 / span 2; }
  .ct-row > .ct-value { grid-column: 3 / span 3; }
  .ct-row--address { margin-top: calc(68 * var(--u)); }
  .ct-addr { grid-column: 1 / span 2; }
  .ct-photo { grid-column: 3 / span 3; }
  .ct-row--social { display: none; }
}
@media (max-height: 640px) and (min-width: 1280px) { .ct { height: auto; } }

@media (prefers-reduced-motion: reduce) {
  .ct-city { transition: none !important; }
}
