/* The people page's blocks, shared by the five proposals for it: the new
   kids on the block, the very best memory (the stones), the snazzy
   personalities, create (almost) anything, what a Fig leaves behind for
   you, the times it gets out of hand, the film, and the door. Each proposal
   arranges and dresses them its own way. */

/* ── the hero line ─────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; align-content: center; padding: calc(var(--beat) * 0.8) var(--gutter); text-align: center; overflow: clip; }
.hero-in { position: relative; z-index: 3; }
.hero-h { margin: 0 auto; max-width: 9.6em; font-size: clamp(44px, 8.2vw, 128px); line-height: 0.9; letter-spacing: -0.04em; text-wrap: balance; }
.hero-sub { margin: 0.55em auto 0; font-size: clamp(22px, 2.7vw, 40px); line-height: 1.1; letter-spacing: -0.022em; text-wrap: balance; }
.hero-sub .kw { font-size: 1.12em; }
.hero-cta { margin-top: clamp(26px, 4vh, 44px); }
.strike { position: relative; display: inline-block; white-space: nowrap; }
.strike::after { content: ''; position: absolute; left: -0.06em; right: -0.06em; top: 54%; height: 0.075em; background: var(--red); border-radius: 0.05em; transform: rotate(-3deg) scaleX(0); transform-origin: 0 50%; transition: transform 700ms cubic-bezier(0.6, 0.05, 0.3, 1) var(--sd, 1200ms); }
.in .strike::after, .strike.in::after { transform: rotate(-3deg) scaleX(1); }
@media (prefers-reduced-motion: reduce) { .strike::after { transform: rotate(-3deg); transition: none; } }

/* ── a feature: its title, its words, its living picture ───────────────── */
.feat { position: relative; padding: var(--beat) var(--gutter); }
.feat-head { position: relative; z-index: 3; width: min(100%, 940px); margin: 0 auto; text-align: center; }
.feat-k { margin: 0 0 16px; font-size: 15px; line-height: 1.3; letter-spacing: 0.01em; color: var(--muted); }
.feat-h { margin: 0; font-size: clamp(40px, 5.8vw, 88px); line-height: 0.94; letter-spacing: -0.032em; text-wrap: balance; }
.feat-p { margin: 0.9em auto 0; max-width: 29em; font-size: clamp(17px, 1.42vw, 21px); line-height: 1.45; color: var(--quiet); text-wrap: pretty; }
.feat--left .feat-head { text-align: left; margin-left: 0; }
.feat--left .feat-p { margin-left: 0; }
.aside { font-family: var(--serif); font-style: italic; font-size: 1.08em; color: var(--ink); }

/* ── the stones' stage: the words in the middle, the gems round them ───── */
.gems { position: relative; min-height: max(660px, 104svh); display: grid; place-content: center; justify-items: center; padding: var(--beat) var(--gutter); overflow: clip; text-align: center; }
.gems .gems-words { position: relative; z-index: 2; pointer-events: none; }
.gems .gems-words a, .gems .gems-words button { pointer-events: auto; }
.gems .feat-h { max-width: 9em; }
.gems .feat-p { max-width: 24em; }
@media (max-width: 640px) { .gems { min-height: max(620px, 96svh); } }
/* the little legend of what you can do with a gem */
.gem-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: clamp(18px, 2.4vw, 28px) 0 0; padding: 0; list-style: none; }
.gem-acts li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 10px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgb(23 23 23 / 0.06), 0 4px 12px rgb(23 21 15 / 0.06); font-size: 14px; line-height: 1.2; color: var(--quiet); }
.gem-acts svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── four Figs, one message: the personalities ─────────────────────────── */
.figs4 { width: min(100%, 1180px); margin: clamp(40px, 6vw, 80px) auto 0; }
.figs4-you { display: flex; justify-content: center; margin-bottom: clamp(26px, 3.5vw, 44px); }
.figs4-you .thread { align-items: flex-end; font-size: clamp(17px, 1.5vw, 21px); }
.figs4-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); }
.fig4 { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(16px, 1.8vw, 24px); border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px rgb(23 23 23 / 0.05), 0 10px 30px rgb(23 21 15 / 0.06); text-align: left; }
.fig4-id { display: flex; align-items: center; gap: 10px; }
.fig4-id .figav { --s: 40px; }
.fig4-nm { display: grid; line-height: 1.15; }
.fig4-nm b { font-size: 17px; letter-spacing: -0.01em; }
.fig4-nm i { font-style: normal; font-size: 13px; color: var(--muted); }
.fig4 .thread { width: 100%; font-size: clamp(15px, 1.15vw, 17px); }
.fig4 .bub { max-width: 100%; }
.trait { display: inline-block; padding: 2px 9px 3px; border-radius: 999px; font: 400 13px/1.3 var(--sans); background: var(--tc, #f1eef8); color: var(--tf, #4b3d6b); }
@media (max-width: 960px) { .figs4-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .figs4-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── things it made: a fan of real cards ───────────────────────────────── */
.made { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 0; width: min(100%, 1320px); margin: clamp(40px, 6vw, 72px) auto 0; }
.made .cardbox { flex: none; --cw: clamp(220px, 21vw, 300px); margin: 0 calc(var(--cw) * -0.12); rotate: var(--rot, 0deg); translate: 0 var(--dy, 0px); transition: rotate 500ms var(--spring), translate 500ms var(--spring), scale 500ms var(--spring); z-index: var(--z, 1); }
.made .cardbox:hover { rotate: 0deg; scale: 1.04; z-index: 9; }
.made-label { position: absolute; left: 50%; top: calc(100% - 6px); translate: -50% 0; padding: 4px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.3; white-space: nowrap; rotate: calc(var(--rot, 0deg) * -1); }
@media (max-width: 760px) {
  .made { justify-content: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gutter) 34px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); width: auto; scrollbar-width: none; }
  .made::-webkit-scrollbar { display: none; }
  .made .cardbox { --cw: 66vw; margin: 0; rotate: 0deg; translate: none; scroll-snap-align: center; }
}

/* ── what it leaves behind: a few good things, waiting ─────────────────── */
.left-by { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; width: min(100%, 1180px); margin: clamp(40px, 6vw, 72px) auto 0; }
.left-stack { position: relative; display: grid; justify-items: center; gap: 0; }
.left-stack .cardbox:nth-child(2) { margin-top: calc(var(--cw) * -0.18); margin-left: 34%; rotate: 3deg; }
.left-time { margin: 0 0 0.6em; font: 500 13px/1.2 var(--apple); letter-spacing: 0.02em; color: var(--muted); }
@media (max-width: 860px) { .left-by { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .left-stack .cardbox:nth-child(2) { margin-left: 14%; } }

/* ── out of control ────────────────────────────────────────────────────── */
.ooc { position: relative; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: clamp(10px, 3vw, 48px); width: min(100%, 1180px); margin: clamp(40px, 6vw, 72px) auto 0; }
.ooc .cardbox { rotate: var(--rot, 0deg); }
.wobble { display: inline-block; animation: wobble 2.4s ease-in-out infinite; transform-origin: 50% 70%; }
@keyframes wobble { 0%, 100% { rotate: -3deg; } 50% { rotate: 4deg; } }
@media (prefers-reduced-motion: reduce) { .wobble { animation: none; } }

/* ── the film: the landing's own, on its own screen ─────────────────────── */
.film { position: relative; }
.film .film-intro { padding: var(--beat) var(--gutter) clamp(12px, 2vw, 24px); text-align: center; }
#usecases { position: relative; }

/* ── how a gem is made: said once, kept as a gem, still yours ──────────── */
.gem-story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); width: min(100%, 1180px); margin: clamp(40px, 6vw, 80px) auto 0; align-items: start; }
.gs-step { position: relative; display: grid; justify-items: center; align-content: start; gap: 14px; text-align: center; }
.gs-pic { position: relative; width: 100%; height: clamp(250px, 24vw, 330px); display: grid; place-items: center; }
.gs-n { font: italic 400 clamp(22px, 1.9vw, 28px)/1 var(--serif); color: var(--muted); }
.gs-t { margin: 0; max-width: 13em; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.gs-step + .gs-step::before { content: ''; position: absolute; left: calc(clamp(20px, 3vw, 48px) * -0.5 - 14px); top: calc(clamp(250px, 24vw, 330px) * 0.5); width: 28px; height: 1px; background: rgb(23 23 23 / 0.25); }
.gs-pic .thread { font-size: clamp(16px, 1.3vw, 19px); align-items: flex-end; }
.gs-pic .when { margin: 0 0 6px; font: 500 12px/1.2 var(--apple); color: var(--muted); text-align: right; }
.gs-gem { width: min(78%, 250px); height: auto; filter: drop-shadow(0 0.05em 0.083em hsl(0 0% 0% / 0.14)); animation: stone-float 6s ease-in-out infinite; }
.gs-gem.flat, .gs-pic .stone-o.flat { width: min(70%, 220px); }
.gs-held { position: relative; width: min(64%, 210px); }
.gs-held img, .gs-held .stone-o { width: 100%; rotate: -4deg; }
.gs-held .stone-why { position: absolute; left: 22%; top: 64%; animation: none; }
.gs-fix { position: absolute; left: -6%; top: -4%; z-index: 3; padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: #fff; box-shadow: 0 2px 6px hsl(0 0% 0% / 0.04), 0 14px 32px hsl(0 0% 0% / 0.1); font-size: 14px; line-height: 1.3; white-space: nowrap; }
@media (max-width: 760px) {
  .gem-story { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .gs-step + .gs-step::before { display: none; }
  .gs-pic { height: 250px; }
  .gs-held .stone-why { left: 18%; top: 62%; }
}
