/* Keyfram3s — cinematic property films.
   Palette is a screening room rather than a void: warm ink, tungsten amber,
   and the bone of an estate agent's printed particulars. */

:root {
  --ink:    #141010;
  --ink-2:  #1C1615;
  --ink-3:  #241C1A;
  --bone:   #EDE6DC;
  --amber:  #C8873C;
  --amber-l:#DFA75E;
  --warm:   #8A817A;
  --line:   rgba(237,230,220,0.11);

  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --body:    "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gut: clamp(20px, 5vw, 64px);
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber); color: var(--ink);
  padding: 12px 18px; z-index: 100; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--amber-l); outline-offset: 3px; }

/* ── the mark: a house key whose bow is a keyframe ── */
.keymark { width: 78px; height: 26px; color: var(--amber); flex: none; }
.keymark.sm { width: 62px; height: 21px; }

.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 27px;
  letter-spacing: 0.055em;
  line-height: 1;
}
.wordmark.sm { font-size: 21px; }
.three { color: var(--amber); }

.mark {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none;
}

/* ── bar ── */
.bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 16px var(--gut);
  background: rgba(20,16,16,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); }
.bar nav a {
  font-family: var(--mono);
  font-size: 12.5px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--warm); text-decoration: none;
  transition: color .18s ease;
}
.bar nav a:hover { color: var(--bone); }
.bar-cta {
  color: var(--ink) !important;
  background: var(--amber);
  padding: 9px 15px; border-radius: 2px;
  font-weight: 500;
}
.bar-cta:hover { background: var(--amber-l); }

/* ── hero ── */
.hero { padding: clamp(26px, 5vw, 56px) var(--gut) 0; }

.stage {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  border: 1px solid var(--line);
  background: #0B0808;
  overflow: hidden;
}
/* The film and its source strip have to be readable together — that pairing is
   the whole argument — so the stage is capped rather than left at native 4:3. */
.stage video {
  width: 100%;
  height: clamp(280px, 54vh, 560px);
  object-fit: cover;
  background: #0B0808;
}
.stage-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: baseline; gap: 16px;
  padding: 44px 22px 16px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  background: linear-gradient(to top, rgba(11,8,8,0.88), rgba(11,8,8,0));
}
.state {
  text-transform: uppercase; color: var(--warm);
  border: 1px solid var(--line); padding: 3px 9px;
  transition: color .4s ease, border-color .4s ease;
}
.state.live { color: var(--amber); border-color: rgba(200,135,60,0.45); }
.addr { color: var(--bone); opacity: .82; }
.tc { margin-left: auto; color: var(--warm); }

/* ── the signature: source photographs as the film's keyframes ── */
.timeline {
  max-width: var(--max); margin: 0 auto;
  padding: 30px 0 clamp(40px, 7vw, 84px);
}
.tl-head {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding-bottom: 16px;
}
.tl-label {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber);
}
.tl-note { font-size: 14.5px; color: var(--warm); }

.keys {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  position: relative;
}
/* the timeline rule the keyframes sit on */
.keys::before {
  content: ""; position: absolute; left: 0; right: 0; top: 5px;
  height: 1px; background: var(--line);
}
.keys li {
  position: relative; padding-top: 26px;
  opacity: 0; transform: translateY(9px);
  transition: opacity .55s ease, transform .55s ease;
}
.keys li.in { opacity: 1; transform: none; }
.keys li:nth-child(2) { transition-delay: .07s; }
.keys li:nth-child(3) { transition-delay: .14s; }
.keys li:nth-child(4) { transition-delay: .21s; }
.keys li:nth-child(5) { transition-delay: .28s; }

.dia {
  position: absolute; top: 0; left: 0;
  width: 11px; height: 11px;
  background: var(--amber);
  transform: rotate(45deg);
}
.keys img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: grayscale(1) contrast(1.04) brightness(.82);
  transition: filter .4s ease;
}
.keys li:hover img { filter: none; }
.keys span {
  display: block; padding-top: 9px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em;
  color: var(--warm);
}

/* ── statement ── */
.statement {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 10vw, 128px) var(--gut);
  border-top: 1px solid var(--line);
}
.lede {
  font-family: var(--display);
  font-size: clamp(34px, 6.4vw, 76px);
  line-height: 1.06; margin: 0; font-weight: 400;
  letter-spacing: -0.005em;
}
.lede.em { font-style: italic; color: var(--amber); }
.sub {
  max-width: 46ch; margin: clamp(24px, 4vw, 40px) 0 0;
  font-size: clamp(16px, 1.7vw, 19px); color: var(--warm);
}

/* ── how ── */
.how { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(56px, 9vw, 112px); }
h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 42px);
  margin: 0 0 clamp(26px, 4vw, 44px); letter-spacing: -0.005em;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3.5vw, 44px); }
.steps article { border-top: 1px solid var(--line); padding-top: 20px; }
.step-k {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber);
}
.steps h3 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(20px, 2.2vw, 25px); margin: 12px 0 10px;
}
.steps p { margin: 0; color: var(--warm); font-size: 16px; }

/* ── promise ── */
.promise {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.promise-in {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gut);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 56px); align-items: start;
}
.promise h2 { margin: 0; }
.promise p { margin: 0; color: var(--warm); font-size: clamp(16px, 1.8vw, 18.5px); }

/* ── prices ── */
.prices { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vw, 112px) var(--gut) clamp(40px, 6vw, 72px); }
.prices-note { margin: -22px 0 34px; color: var(--warm); font-size: 16px; }
.rate { list-style: none; margin: 0; padding: 0; }
.rate li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name fig" "note fig";
  column-gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.rate li:last-child { border-bottom: 1px solid var(--line); }
.r-name { grid-area: name; font-size: 19px; font-weight: 500; }
.r-note { grid-area: note; color: var(--warm); font-size: 15px; }
.r-fig {
  grid-area: fig; align-self: center;
  font-family: var(--display); font-size: clamp(30px, 4.4vw, 46px); line-height: 1;
  white-space: nowrap;
}
.r-fig em {
  font-family: var(--mono); font-style: normal;
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--warm); padding-left: 8px;
}
.rate li.feature .r-fig { color: var(--amber); }

/* ── start ── */
.start {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gut) clamp(64px, 10vw, 128px);
}
.start h2 { margin-bottom: 12px; max-width: 18ch; }
.start p { margin: 0 0 30px; color: var(--warm); max-width: 48ch; }
.cta {
  display: inline-block;
  font-family: var(--mono); font-size: clamp(15px, 2.2vw, 19px); letter-spacing: 0.04em;
  background: var(--amber); color: var(--ink);
  padding: 16px 26px; border-radius: 2px;
  text-decoration: none; font-weight: 500;
  transition: background .18s ease, transform .18s ease;
}
.cta:hover { background: var(--amber-l); transform: translateY(-1px); }

/* ── footer ── */
footer { border-top: 1px solid var(--line); background: var(--ink-2); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: clamp(36px, 6vw, 60px) var(--gut); }
.foot-mark { display: inline-flex; align-items: center; gap: 10px; }
.foot-note { margin: 22px 0 0; color: var(--warm); font-size: 14.5px; max-width: 62ch; }
.foot-legal { margin: 14px 0 0; color: #6E6660; font-size: 13px; max-width: 62ch; }
.foot-legal a { color: var(--warm); }

/* ── narrow ── */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .promise-in { grid-template-columns: 1fr; }
  .keys { grid-template-columns: repeat(3, 1fr); }
  .keys li:nth-child(n+4) { display: none; }
  .bar nav a:not(.bar-cta) { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .keys { grid-template-columns: repeat(2, 1fr); }
  .keys li:nth-child(n+3) { display: none; }
  .stage-meta { flex-wrap: wrap; gap: 8px 12px; padding: 34px 14px 12px; }
  .tc { margin-left: 0; }
  .rate li { grid-template-columns: 1fr; grid-template-areas: "name" "fig" "note"; }
  .r-fig { margin: 6px 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .keys li { opacity: 1; transform: none; transition: none; }
  .cta:hover { transform: none; }
}
