/* ==========================================================================
   transfer.css — "Transfer" product page (Product ▸ Transfer).
   Layers on tokens + coverage-model + landing + story + home + product.
   Celebratory "success story" tone. Page-specific classes prefixed .tf-.
   Signature pieces: a HomeCV handoff certificate that gets stamped, and an
   ownership-lineage chain ("a tradition, passed forward").
   ========================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.tf-hero .hero-grid { align-items: center; }
.tf-supporting {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  font-family: var(--serif); font-style: italic; font-size: 22px; font-weight: 600; color: var(--brown);
}
.tf-supporting i { font-size: 20px; color: var(--gold); }

/* ── Handoff certificate (hero visual) ────────────────────────────────── */
.tf-cert-wrap { position: relative; perspective: 1400px; }
.tf-cert {
  position: relative; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 50px 110px -50px rgba(36,30,22,0.6); overflow: hidden;
  width: calc(100% + 24px);
}
.tf-cert-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.tf-cert-brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--brown); }
.tf-cert-brand img { height: 18px; }
.tf-cert-kind { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); text-align: right; line-height: 1.5; }
.tf-cert-kind b { display: block; color: var(--gold); }

.tf-cert-body { padding: 26px 26px 28px; position: relative; }
.tf-cert-eyebrow { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--brown-4); }
.tf-cert-name { font-family: var(--serif); font-size: 27px; font-weight: 600; color: var(--brown); line-height: 1.05; margin: 6px 0 0; }
.tf-cert-addr { font-size: 11.5px; color: var(--brown-4); margin-top: 5px; }

/* the From → To handoff */
.tf-handoff { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 22px; }
.tf-party { border: 1px solid var(--line); border-radius: 10px; padding: 14px 15px; transition: all .4s ease; background: var(--bg); }
.tf-party .tf-party-role { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--brown-4); }
.tf-party .tf-party-name { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--brown); margin-top: 4px; }
.tf-party .tf-party-meta { font-size: 10.5px; color: var(--brown-4); margin-top: 2px; }
.tf-party.from { }
.tf-party.to { border-style: dashed; opacity: .55; }
.tf-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--brown-4); font-size: 18px; transition: all .4s ease; }

/* stamped end-state */
.tf-cert.is-stamped .tf-party.from { opacity: .5; }
.tf-cert.is-stamped .tf-party.to { opacity: 1; border-style: solid; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(23,95,100,0.08); }
.tf-cert.is-stamped .tf-arrow { background: var(--accent); color: #f3efe3; }

.tf-cert-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; color: var(--brown-4); text-transform: uppercase; }

/* the wax seal that presses down */
.tf-seal {
  position: absolute; z-index: 4; right: 22px; top: 50%; transform: translateY(-50%) scale(2.3) rotate(-16deg);
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  color: #f6efdd; opacity: 0;
  background: radial-gradient(circle at 50% 36%, #c79a52, #9d7637 78%);
  box-shadow: inset 0 0 0 2px rgba(246,239,221,0.45), inset 0 -6px 14px rgba(0,0,0,0.25), 0 18px 40px -16px rgba(157,118,55,0.7);
  font-family: var(--serif); pointer-events: none;
}
.tf-seal::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px dashed rgba(246,239,221,0.5); }
.tf-seal .tf-seal-ic { font-size: 26px; line-height: 1; }
.tf-seal .tf-seal-tx { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-top: 3px; }
.tf-cert.is-stamped .tf-seal { animation: tfStamp .7s cubic-bezier(.2,.9,.3,1.2) forwards; }
@keyframes tfStamp {
  0%   { opacity: 0; transform: translateY(-50%) scale(2.3) rotate(-16deg); }
  45%  { opacity: 1; }
  60%  { opacity: 1; transform: translateY(-50%) scale(.9) rotate(4deg); }
  78%  { transform: translateY(-50%) scale(1.05) rotate(-1deg); }
  100% { opacity: 1; transform: translateY(-50%) scale(1) rotate(0deg); }
}
/* impact ring */
.tf-ring { position: absolute; z-index: 3; right: 36px; top: 50%; width: 68px; height: 68px; border-radius: 50%; border: 2px solid var(--gold-soft); transform: translateY(-50%) scale(.4); opacity: 0; pointer-events: none; }
.tf-cert.is-stamped .tf-ring { animation: tfRing .8s ease-out .28s forwards; }
@keyframes tfRing { 0% { opacity: .7; transform: translateY(-50%) scale(.4); } 100% { opacity: 0; transform: translateY(-50%) scale(2.1); } }

.tf-cert-badge {
  position: relative; z-index: 4; margin-top: 18px;
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--success);
  background: rgba(93,122,61,0.1); border: 1px solid rgba(93,122,61,0.32); border-radius: 100px; padding: 7px 13px;
  opacity: 0; transform: translateY(6px); transition: all .4s ease .5s;
}
.tf-cert.is-stamped .tf-cert-badge { opacity: 1; transform: translateY(0); }
.tf-cert-badge i { font-size: 15px; }

@media (max-width: 1000px) { .tf-cert { width: 100%; } .tf-cert-wrap { max-width: 460px; margin: 0 auto; } }

/* ── §B share vs transfer — two formats, one purpose ──────────────────── */
.tf-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 46px; }
.tf-format {
  display: flex; flex-direction: column; background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 90px -60px rgba(36,30,22,0.5);
}
.tf-format-media { position: relative; }
.tf-format-media .ph-photo { min-height: 250px; border: 0; border-radius: 0; }
.tf-format-img { position: relative; min-height: 264px; background-size: cover; background-position: center; }
.tf-format-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.tf-format-tag {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; color: var(--gold); background: var(--gold-soft); color: #2a1d09;
  padding: 5px 11px; border-radius: 100px;
}
.tf-format-tag i { font-size: 14px; }
.tf-format h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--brown); margin: 14px 0 8px; line-height: 1.08; }
.tf-format > .tf-format-body > p { font-size: 16px; line-height: 1.6; color: var(--brown-3); margin: 0 0 20px; text-wrap: pretty; }
.tf-format-meta { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: auto; }
.tf-fm-row { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.tf-fm-row:last-child { border-bottom: 0; }
.tf-fm-k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brown-4); }
.tf-fm-v { font-size: 13.5px; color: var(--brown); font-weight: 500; line-height: 1.45; }
@media (max-width: 900px) { .tf-formats { grid-template-columns: 1fr; } }

/* caption on the format photo (mirrors .split-cap) */
.tf-format-media .ph-cap {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; max-width: none;
  font-family: var(--sans); font-size: 11.5px; font-weight: 600; color: #fff;
  background: rgba(21,19,15,0.55); padding: 7px 13px; border-radius: 100px; border: 0;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.tf-format-media .ph-cap i { font-size: 14px; color: var(--gold-soft); }

/* ── §B (roller) — two formats as one large, auto-advancing slide ──────── */
.tf-roller { position: relative; margin-top: 46px; }
.tfr-viewport { overflow: hidden; border-radius: 18px; border: 1px solid var(--line-strong); box-shadow: 0 40px 90px -60px rgba(36,30,22,0.5); }
.tfr-track { display: flex; transition: transform .6s cubic-bezier(.16,.84,.34,1); }
.tf-slide { flex: 0 0 100%; min-width: 0; }
.tf-roller .tf-format { border: 0; border-radius: 0; box-shadow: none; }
.tf-format--wide { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: 460px; }
.tf-format--wide .tf-format-media { height: 100%; }
.tf-format--wide .tf-format-img { height: 100%; min-height: 460px; }
.tf-format--wide .tf-format-body { justify-content: center; padding: 52px 56px; }
.tf-format--wide h3 { font-size: 33px; margin: 16px 0 14px; line-height: 1.06; }
.tf-format--wide > .tf-format-body > p { font-size: 17px; line-height: 1.6; margin: 0; }
.tfr-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(248,247,242,0.96); border: 1px solid var(--line-strong); color: var(--brown-2); cursor: pointer; box-shadow: 0 10px 26px -14px rgba(36,30,22,0.5); transition: background .15s ease, color .15s ease, border-color .15s ease; }
.tfr-arrow:hover { background: var(--accent); color: #f3efe3; border-color: var(--accent); }
.tfr-arrow i { font-size: 22px; }
.tfr-prev { left: -10px; }
.tfr-next { right: -10px; }
.tfr-dots { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.tfr-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); border: 0; cursor: pointer; padding: 0; transition: width .2s ease, background .2s ease; }
.tfr-dot.is-active { width: 26px; border-radius: 100px; background: var(--gold); }
@media (max-width: 760px) {
  .tf-format--wide { grid-template-columns: 1fr; min-height: 0; }
  .tf-format--wide .tf-format-img { min-height: 240px; }
  .tf-format--wide .tf-format-body { padding: 32px 28px; }
  .tf-format--wide h3 { font-size: 26px; }
  .tfr-prev { left: 6px; }
  .tfr-next { right: 6px; }
}
@media (prefers-reduced-motion: reduce) { .tfr-track { transition: none; } }

/* ── §2 closing-table trio ────────────────────────────────────────────── */
.tf-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.tf-trio-card { background: var(--bg); border: 1px solid var(--line); border-radius: 13px; padding: 24px 22px; text-align: center; }
.tf-trio-ic { width: 50px; height: 50px; border-radius: 13px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); font-size: 24px; }
.tf-trio-card b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--brown); margin-bottom: 5px; }
.tf-trio-card span { font-size: 15.5px; line-height: 1.5; color: var(--brown-4); }
@media (max-width: 800px) { .tf-trio { grid-template-columns: 1fr; } }

/* ── §3 ownership lineage ("a tradition, passed forward") ─────────────── */
.tf-lineage { position: relative; margin-top: 50px; }
.tf-lineage::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--line); }
.tf-chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.tf-chapter { position: relative; padding-top: 58px; text-align: center; }
.tf-chapter::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); z-index: 1;
}
.tf-chapter.is-now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(23,95,100,0.12); }
.tf-chapter .tf-ch-year { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--accent); line-height: 1; }
.tf-chapter.is-now .tf-ch-year { color: var(--gold); }
.tf-chapter .tf-ch-name { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--brown); margin-top: 6px; }
.tf-chapter .tf-ch-note { font-size: 12px; line-height: 1.45; color: var(--brown-4); margin-top: 6px; text-wrap: pretty; }
.tf-chapter.is-now {
  background: radial-gradient(120% 130% at 50% 0%, rgba(179,136,74,0.1), transparent 65%);
  border-radius: 12px;
}
.tf-chapter.is-now .tf-ch-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #2a1d09; background: var(--gold-soft);
  padding: 4px 10px; border-radius: 100px;
}
@media (max-width: 860px) {
  .tf-lineage::before { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .tf-chain { grid-template-columns: 1fr; gap: 14px; }
  .tf-chapter { padding: 0 0 0 60px; text-align: left; }
  .tf-chapter::before { top: 4px; left: 20px; transform: none; }
  .tf-chapter.is-now { padding-left: 60px; }
}

/* ── §5 handoff manifest (what gets handed over) ──────────────────────── */
.tf-manifest {
  margin-top: 46px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 16px;
  overflow: hidden; box-shadow: 0 40px 90px -55px rgba(36,30,22,0.5);
}
.tf-manifest-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 20px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.tf-mh-side { display: flex; align-items: center; gap: 11px; }
.tf-mh-side.to { justify-content: flex-end; text-align: right; }
.tf-mh-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; flex: 0 0 auto; }
.tf-mh-side.from .tf-mh-ic { background: var(--surface-2); color: var(--brown-3); }
.tf-mh-side.to .tf-mh-ic { background: var(--accent); color: #f3efe3; }
.tf-mh-side .tf-mh-role { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--brown-4); }
.tf-mh-side .tf-mh-name { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--brown); }
.tf-mh-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--gold); font-size: 19px; }
.tf-manifest-list { padding: 8px 24px 20px; }
.tf-mi {
  display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line);
  opacity: .35; transform: translateX(-6px); transition: opacity .45s ease, transform .45s ease;
}
.tf-mi:last-child { border-bottom: 0; }
.tf-mi.is-on { opacity: 1; transform: none; }
.tf-mi-ic { width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); font-size: 17px; }
.tf-mi-tx { flex: 1; }
.tf-mi-tx b { display: block; font-size: 14px; font-weight: 600; color: var(--brown); }
.tf-mi-tx span { font-size: 12px; color: var(--brown-4); }
.tf-mi-check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: var(--surface-3); border: 1.5px solid var(--line-strong); transition: all .4s ease; flex: 0 0 auto; }
.tf-mi.is-on .tf-mi-check { background: var(--success); border-color: var(--success); color: #fff; }

/* ── §6 milestone cards ───────────────────────────────────────────────── */
.tf-miles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
.tf-mile { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px; }
.tf-mile-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); font-size: 23px; margin-bottom: 16px; }
.tf-mile-tag { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.tf-mile h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 6px 0 8px; color: var(--brown); }
.tf-mile p { font-size: 16px; line-height: 1.55; color: var(--brown-3); margin: 0; text-wrap: pretty; }
@media (max-width: 1000px) { .tf-miles { grid-template-columns: 1fr; } }

/* ── §7 how it works (3 steps) ────────────────────────────────────────── */
.tf-steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.tf-s3 { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px; }
.tf-s3-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 18px; color: #f5f2e7; background: radial-gradient(circle at 50% 36%, #237b80, #175f64 72%); margin-bottom: 16px; }
.tf-s3 h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0 0 7px; color: var(--brown); }
.tf-s3 p { font-size: 16px; line-height: 1.55; color: var(--brown-3); margin: 0; text-wrap: pretty; }
@media (max-width: 1000px) { .tf-steps3 { grid-template-columns: 1fr; } }

/* ── reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .tf-cert .tf-seal { animation: none; opacity: 1; transform: translateY(-50%) scale(1) rotate(0); }
  .tf-cert .tf-ring { display: none; }
  .tf-mi { transition: none; }
}
