/* Rohida: contract.html only. Builds on tokens.css and site.css. */

.ct-h44 { font-size: clamp(34px, 3.1vw, 48px); line-height: 1.08; }
@media (min-width: 900px) { .ct-c1-9 { grid-column: 1 / 9; } }

/* ---------- Intro ---------- */
.ct-intro {
  position: relative; overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: flex-end;
  background: var(--ground-dark); color: var(--on-dark);
  --fx-raking-colour: rgba(90, 58, 38, .42); --fx-raking-angle: 104deg; --fx-raking-penumbra: 22%;
}
.ct-intro-img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 45%; }
.ct-intro-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(90, 58, 38, .78) 0%, rgba(90, 58, 38, .48) 45%, rgba(90, 58, 38, 0) 82%);
}
@media (min-width: 900px) {
  .ct-intro-shade { background: linear-gradient(to top, rgba(90, 58, 38, .70) 0%, rgba(90, 58, 38, .40) 36%, rgba(90, 58, 38, 0) 66%), linear-gradient(to left, rgba(90, 58, 38, .38) 0%, rgba(90, 58, 38, 0) 38%); }
}
.ct-intro-grid { position: relative; z-index: 1; width: 100%; padding-top: 18svh; padding-bottom: clamp(32px, 6svh, 72px); align-items: end; row-gap: 28px; }
.ct-intro .label.ct-on-photo { color: color-mix(in srgb, var(--on-dark) 86%, transparent); margin-bottom: 18px; }
.ct-h1 { font-size: clamp(42px, 5.3vw, 80px); line-height: 1.02; max-width: 17ch; color: var(--surface); }
.ct-intro-answer .lede { color: var(--surface); max-width: 38ch; }

/* ---------- Scope ---------- */
.ct-scope-grid { align-items: start; }
.ct-scope-head { position: relative; }
@media (min-width: 900px) { .ct-scope-head { position: sticky; top: calc(var(--header-h) + 48px); } }
.ct-scope { margin: 0; }
.ct-row {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding: 22px 0 24px;
  border-top: 1px solid color-mix(in srgb, var(--on-dark) 24%, transparent);
}
.ct-row:last-child { border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 24%, transparent); }
.ct-row dt { margin: 0; }
.ct-row dd { margin: 0; font-size: clamp(18px, 1.4vw, 20px); line-height: 1.45; color: var(--surface); }
@media (min-width: 700px) { .ct-row { grid-template-columns: minmax(120px, 28%) 1fr; gap: 24px; align-items: baseline; } }

/* ---------- Lisbon ---------- */
.ct-lisbon { position: relative; height: 160svh; background: var(--ground-dark); overflow: clip; }
.ct-lisbon-photo { position: absolute; inset: 0; overflow: hidden; }
.ct-lisbon-photo img { width: 100%; height: 116%; object-fit: cover; object-position: 50% 60%; }
.ct-lisbon-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(90, 58, 38, .40) 0%, rgba(90, 58, 38, 0) 22%);
}
.ct-lisbon-layer {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: 0 var(--pad);
}
.ct-lisbon-tag {
  position: sticky; top: calc(var(--header-h) + 24px);
  margin-top: 28px;
  color: var(--surface);
}
.ct-lisbon-card {
  position: sticky; bottom: 4vw;
  align-self: flex-end;
  margin-bottom: 4vw;
  width: min(100%, 34ch + 2 * clamp(24px, 2.6vw, 40px));
  width: min(100%, 520px);
  padding: clamp(24px, 2.6vw, 40px);
}
.ct-lisbon-card > * + * { margin-top: 16px; }
.ct-card-h { font-size: clamp(28px, 2.4vw, 36px); }
.ct-card-spec { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); }
.ct-card-spec dd { margin: 6px 0 0; }

/* ---------- Capacity ---------- */
.ct-cap-grid { align-items: center; }
.ct-cap-film .frame { background: var(--ink); }
.ct-cap-text > * + * { margin-top: 24px; }
.ct-figs { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 32px; }
.ct-figs li > * + * { margin-top: 12px; }
.ct-figs [data-fx="guide.chalk-line"] { --rule: var(--kiln); width: 100%; }
.ct-fig {
  font-family: var(--font-display), Georgia, serif; font-weight: 300;
  font-size: clamp(48px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.01em;
  font-variant-numeric: lining-nums;
  overflow-wrap: normal; word-break: normal; hyphens: none; white-space: nowrap;
}
@media (min-width: 900px) { .ct-cap-film { align-self: start; position: sticky; top: calc(var(--header-h) + 48px); } }

/* ---------- Inspection ---------- */
.ct-inspect { position: relative; background: var(--ground-dark); padding-bottom: 16svh; }
.ct-inspect-stage { position: sticky; top: 0; height: 100svh; width: 100%; overflow: hidden; }
.ct-inspect-stage img { width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 50%; }
.ct-inspect-grid { position: relative; z-index: 1; margin-top: -42svh; }
.ct-inspect-panel { padding: clamp(28px, 4vw, 64px); }
.ct-inspect-panel > * + * { margin-top: 28px; }
@media (min-width: 900px) { .ct-inspect-panel { grid-column: 2 / 10; } }
.ct-inspect-body { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.45; max-width: 40ch; }
.ct-inspect-body .ct-w { opacity: 1; }

/* ---------- Ask ---------- */
.ct-ask { min-height: 70svh; display: flex; align-items: center; padding-block: clamp(80px, 10vw, 144px); }
.ct-ask-grid { width: 100%; align-items: end; }
.ct-ask-h { color: var(--accent-ink); }
.ct-ask-side .lede { max-width: 40ch; }
.ct-wipe { position: relative; overflow: hidden; padding: 0; }
.ct-wipe-face, .ct-wipe-clone { display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px; min-height: 52px; }
.ct-wipe-clone {
  position: absolute; inset: 0;
  background: var(--ink); color: var(--surface);
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--dur-standard) var(--ease-plane);
}
.ct-wipe:hover .ct-wipe-clone, .ct-wipe:focus-visible .ct-wipe-clone { clip-path: inset(0 0 0 0); }
.ground-indigo .ct-wipe:hover { background: var(--accent-ink); }
.ct-wipe:hover .arrow { transform: none; }
.ct-wipe:hover .ct-wipe-clone .arrow { transform: translateX(4px); transition-delay: 120ms; }

@media print {
  .ct-lisbon { height: auto; }
  .ct-lisbon-photo, .ct-lisbon-layer { position: relative; }
  .ct-inspect-stage { position: relative; height: 60vh; }
  .ct-inspect-grid { margin-top: 0; }
}
