/* "Good type is everywhere.": a source photo, a poster and a type breakdown,
   three equal squares tilted and overlapping like prints on a table, with a
   segmented control beneath them.
   Each face is the font generated from that photo: full-alphabet files from
   the tuning study, shared with the try-demo section. */
@font-face{font-family:ShowcaseFantine;src:url('/static/try-demo/fantine-round2-cheap.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:ShowcaseDingwalls;src:url('/static/try-demo/dingwalls-round2-cheap.woff?v=20261120-t1') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:ShowcaseBirthdayParty;src:url('/static/try-demo/birthday-party-round2-cheap.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:ShowcaseToHire;src:url('/static/try-demo/to-hire-round2-cheap.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:ShowcaseJohanLindstrom;src:url('/static/try-demo/johan-lindstrom-round2-strong.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:ShowcaseBeaujolais;src:url('/static/try-demo/beaujolais-feedback-1.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}

/* The section sits in the page like any other and scrolls past with it: nothing
   is pinned. It is a centred column of the headline, the cards and the options.
   The cards follow the screen's height as well as its width, so the whole
   section fits in one view and is never wider than the page (at most 294px a
   side, about a tenth smaller than they used to be, at the owner's request).
   The padding leaves about the same room above the headline as below the
   options (the globe section adds its own margin). landing.css's older grid
   for this section is set aside here. */
.found-showcase{
 --line-h:min(294px,30svh,calc((100vw - 96px) / 3.25));--line-gap:clamp(12px,1.3vw,18px);--line-radius:16px;
 --line-border:#e4e4e6;--line-muted:#8a8a8e;
 display:flex;flex-direction:column;align-items:center;
 gap:0;min-height:0;margin-top:0;padding:clamp(120px,18svh,176px) 16px clamp(48px,8svh,80px);
 box-sizing:border-box;isolation:isolate;
}
.found-showcase .found-center{margin:0 0 clamp(24px,4.2svh,44px);min-width:0;max-width:100%}
.found-showcase .found-center h2{
 position:relative;width:max-content;max-width:100%;margin-inline:auto;
 font-size:clamp(34px,3.4vw,40px);line-height:1.05;letter-spacing:-.045em;
}
/* Always two lines, "Good type" over "is everywhere." (landing.css hides the
   break on narrower screens). */
.found-showcase .found-center h2 br{display:block}
.found-showcase .found-center h2 br::after{content:none}

/* As each part comes up the screen it rises into place, drawn by the browser
   straight from the scroll position, so it moves exactly with the page
   (landing-polish.js splits the headline into words). Each range starts when
   a part's top edge comes in at the bottom of the screen and is counted in
   screen heights scrolled since. The words follow the headline, each starting
   8% of a screen after the one before, and are all in by the time it is 40%
   of the way up; the cards follow the top of their line and the options their
   own top, and both have finished rising long before they reach the middle.
   Scrolling back reverses it; coming back down from further on, everything is
   already in place. Reduced motion and a keyboard focus inside the section
   show it all still; browsers without scroll-driven animations get a one-off
   entrance from landing-polish.js instead. */
@supports (animation-timeline:view()){
 @media (prefers-reduced-motion:no-preference){
  .found-showcase .found-center h2{view-timeline:--found-heading block}
  .found-heading-word{
   animation:found-word-in linear both;
   animation-timing-function:cubic-bezier(.45,0,.55,1);
   animation-timeline:--found-heading;
   animation-range:cover 4svh cover 16svh;
  }
  .found-heading-word:nth-of-type(2){animation-range:cover 12svh cover 24svh}
  .found-heading-word:nth-of-type(3){animation-range:cover 20svh cover 32svh}
  .found-heading-word:nth-of-type(4){animation-range:cover 28svh cover 40svh}
  /* Two animations, so the fade can finish before the rise slows to a stop. */
  .showcase-line,.showcase-picker{
   animation:found-fade-in linear both,found-rise-in linear both;
   animation-timing-function:cubic-bezier(.45,0,.55,1),cubic-bezier(.33,1,.68,1);
   animation-timeline:view(),view();
  }
  .showcase-line{--found-rise:48px;animation-range:cover 0svh cover 22svh,cover 0svh cover 32svh}
  .showcase-picker{--found-rise:40px;animation-range:cover 0svh cover 16svh,cover 0svh cover 24svh}
  /* Tabbing in shows the whole section at once, never an invisible control. */
  .found-showcase:has(:focus-visible) :is(.found-heading-word,.showcase-line,.showcase-picker){animation:none}
 }
}
@keyframes found-word-in{from{opacity:0;translate:0 .7em}to{opacity:1;translate:none}}
@keyframes found-fade-in{from{opacity:0}to{opacity:1}}
@keyframes found-rise-in{from{translate:0 var(--found-rise,40px)}to{translate:none}}

/* All three cards are the same square, var(--line-h) a side; negative margins
   make the overlap and small turns make it feel placed by hand. */
.showcase-line{
 --overlap:calc(var(--line-h) * -.07);
 display:flex;justify-content:center;align-items:center;max-width:100%;
 padding:18px 0 26px;
}
.showcase-line>*{
 --rot:0deg;--lift:0px;--shift:0px;--scale:1;
 flex:none;width:var(--line-h);height:var(--line-h);
 transform:perspective(1000px) translate(var(--shift),var(--lift)) rotate(var(--rot)) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) scale(var(--scale));
 box-shadow:0 1px 2px rgb(0 0 0 / .06),0 10px 24px -6px rgb(0 0 0 / .16),0 28px 56px -18px rgb(0 0 0 / .22);
 transition:transform .55s cubic-bezier(.22,1,.36,1),box-shadow .45s cubic-bezier(.22,1,.36,1);
 will-change:transform;
}
/* The poster overlaps the photo only a little, so the lettering stays in view. */
.line-photo{--rot:-5deg;--lift:10px;z-index:1;margin-right:calc(var(--overlap) * .35)}
.line-card--poster{--rot:1.5deg;--lift:-6px;z-index:2}
.line-card--ink{--rot:5deg;--lift:14px;z-index:3;margin-left:var(--overlap)}
.showcase-line.is-hovering>.is-before{--shift:-16px}
.showcase-line.is-hovering>.is-after{--shift:16px}
.showcase-line>.is-hovered{
 --rot:0deg;--lift:-14px;--scale:1.035;z-index:4;
 box-shadow:0 2px 4px rgb(0 0 0 / .06),0 18px 36px -8px rgb(0 0 0 / .2),0 44px 80px -24px rgb(0 0 0 / .3);
 transition:transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s cubic-bezier(.22,1,.36,1);
}
.line-photo,.line-card{position:relative;margin-block:0;min-width:0;border-radius:var(--line-radius);overflow:hidden;box-sizing:border-box}
/* The photo fills its card edge to edge, cropped square on the lettering and
   rounded with it; the place sits over it as a small white pill. */
.line-photo{background:#2a2a2c}
.line-photo img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}
.line-photo::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgb(0 0 0 / .06);pointer-events:none}
.line-place{
 position:absolute;left:clamp(12px,1.3vw,18px);bottom:clamp(12px,1.3vw,18px);z-index:1;margin:0;
 max-width:calc(100% - 2 * clamp(12px,1.3vw,18px));padding:6px 11px;border-radius:100px;box-sizing:border-box;
 background:rgb(255 255 255 / .92);color:#171717;
 font:500 11px/1.2 Inter,sans-serif;letter-spacing:.005em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.line-place[hidden]{display:none}
.line-card{
 display:flex;flex-direction:column;
 padding:clamp(14px,1.5vw,22px);background:#fff;color:#111;
 border:1px solid var(--line-border);
}
.line-card--ink{background:#111;color:#fff;border-color:#111;padding:clamp(18px,1.9vw,26px)}
.line-meta{
 display:flex;justify-content:space-between;gap:12px;margin:0;
 font:500 11px/1.2 Inter,sans-serif;letter-spacing:.005em;color:var(--line-muted);white-space:nowrap;
}
.line-meta span{overflow:hidden;text-overflow:ellipsis}
.line-card--ink .line-meta{color:#8f8f93}
.line-stage{position:relative;flex:1;min-height:0;margin-top:10px}
.line-text{position:absolute;inset:0;display:flex;align-items:flex-end}
.line-words{
 display:block;width:max-content;white-space:pre;
 font-size:40px;font-weight:400;font-style:normal;font-synthesis:none;letter-spacing:0;line-height:1.06;
 color:inherit;text-shadow:none;
}

.showcase-picker{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:clamp(14px,2.4svh,26px);max-width:100%}
.showcase-segment{position:relative;isolation:isolate;display:inline-flex;padding:4px;border-radius:100px;background:#f0f0f1}
/* Six labels can be wider than the screen: then the control scrolls sideways
   inside its own pill, never widening the page. */
.showcase-segment{max-width:calc(100vw - 32px);box-sizing:border-box;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none}
.showcase-segment::-webkit-scrollbar{display:none}
.showcase-segment button{flex:none}
.showcase-segment button{
 position:relative;z-index:1;height:38px;min-height:0;padding:0 18px;margin:0;border:0;border-radius:100px;
 background:transparent;box-shadow:none;color:#76767a;font:500 13px/1 Inter,sans-serif;letter-spacing:-.005em;
 white-space:nowrap;cursor:pointer;transition:color .2s;
}
.showcase-segment button:hover{color:#3a3a3d;background:transparent}
.showcase-segment button[aria-pressed=true]{color:#111}
.showcase-segment button:focus-visible{outline:2px solid #111;outline-offset:-2px}
.showcase-segment-thumb{
 position:absolute;z-index:0;left:0;top:4px;bottom:4px;width:0;border-radius:100px;background:#fff;
 box-shadow:0 1px 2px rgb(0 0 0 / .08),0 4px 10px rgb(0 0 0 / .06);pointer-events:none;
}
/* The thumb glides to the pressed label and slows to a calm stop: no spring
   and no overshoot, so it never runs past the end of the control. Position
   and width share one curve and duration, so the pill moves as one piece. */
.showcase-segment.is-measured .showcase-segment-thumb{transition:transform .45s cubic-bezier(.3,.7,.2,1),width .45s cubic-bezier(.3,.7,.2,1)}

/* While the example switches (app.js), the poster's words are drawn a letter
   at a time over the hidden real words, at the exact places the browser set
   them, so the hand-back at the end is invisible. Each letter's layer sets the
   whole text with the other letters clear, so joined scripts keep their joins;
   app.js sets the turning point on the letter itself. */
.line-letters{position:absolute;pointer-events:none}
.line-letters>span{position:absolute;left:0;top:0;white-space:pre;font-weight:400;font-style:normal;font-synthesis:none;letter-spacing:0;color:inherit}
.line-letters>span>span{color:transparent}

/* The type breakdown: the glyph view's dashed metric guides, in light lines on
   the black card, with the font's numbers beneath. Drawn by layoutBreakdown(). */
.line-breakdown{position:absolute;inset:0;display:flex;flex-direction:column;gap:14px}
.breakdown-plot{position:relative;flex:1;min-height:0}
.breakdown-plot svg{position:absolute;inset:0;display:block;overflow:visible}
.breakdown-line{stroke:rgb(255 255 255 / .26);stroke-width:1;stroke-dasharray:4 4;shape-rendering:crispEdges}
.breakdown-line.is-baseline{stroke:rgb(255 255 255 / .55);stroke-dasharray:none}
.breakdown-sample{fill:#fff;font-synthesis:none}
.breakdown-label,.breakdown-value{font-family:Inter,sans-serif;font-weight:500;fill:#8f8f93;stroke:#111;stroke-width:4;paint-order:stroke;stroke-linejoin:round}
.breakdown-value{fill:#c7c7cb;font-variant-numeric:tabular-nums}
.breakdown-specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding-top:12px;border-top:1px solid rgb(255 255 255 / .14)}
.breakdown-specs:empty{display:none}
.breakdown-specs div{min-width:0}
.breakdown-specs dt,.breakdown-specs dd{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.breakdown-specs dt{font:500 9.5px/1.2 Inter,sans-serif;color:#8f8f93}
.breakdown-specs div+div{text-align:right}
.breakdown-specs dd{margin-top:4px;font:500 13px/1.1 Inter,sans-serif;color:#fff;font-variant-numeric:tabular-nums}

/* Phones (700px and narrower) are laid out in mobile-showcase.css. */
@media(prefers-reduced-motion:reduce){
 .showcase-line>*,.showcase-segment-thumb{transition:none!important}
}
