/* ===========================================================================
   The front page, rebuilt.

   What was here: a masthead, two route cards, a competition block, a
   photograph, a personal dashboard that said "Nothing logged yet", a floating
   shop tab and eleven numbered chips. Each was defensible on its own. Together
   they were a pile, and a first-time reader could not have told you in one
   sentence what VYYN does.

   It does three things. So: three doors, and nothing else but the claim and
   an explanation of what the brand is. Everything that used to be scattered
   down this page now lives behind one of the three.
   =========================================================================== */

body.home .wrap{max-width:var(--page)}
body.home header{padding-bottom:0}
body.home .ttl{margin-top:var(--s1)}

/* ------------------------------------------------------------- the weave
   The claim used to sit on a turning slab, which is a billboard: a thing
   that announces. This holds the same sentence in a weave of filaments that
   drift, catch a bead of light, bend away from a pointer, and every nine
   seconds gather themselves into the VYYN diamond before letting go.

   The words are text, in front, always at full opacity. The canvas is
   decoration behind them and is allowed to fail. */
.weave{position:relative;margin:var(--s4) 0 0;isolation:isolate;
  min-height:clamp(250px,34vw,380px);
  display:grid;place-items:center;
  background:#070D1C;
  --weave-ink:241,221,169;
  box-shadow:0 40px 80px -50px rgba(11,17,32,.6);
  overflow:hidden}
.weave canvas{position:absolute;inset:0;z-index:0;pointer-events:none;display:block}
.weave-say{position:relative;z-index:1;margin:0;padding:0 clamp(18px,5vw,54px);
  text-align:center;font-family:var(--display);font-weight:400;
  font-size:clamp(1.3rem,4vw,2.5rem);line-height:1.16;letter-spacing:-.012em;
  color:#F4F8FD;text-wrap:balance;
  /* the weave runs behind the words; this keeps them legible over it without
     a panel, which would put the billboard back */
  text-shadow:0 2px 22px rgba(7,13,28,.95),0 0 60px rgba(7,13,28,.85)}
.weave-say span{color:#F1DDA9;display:inline-block}

@media (max-width:620px){
  .weave{min-height:260px;margin-inline:calc(50% - 50vw);width:100vw;max-width:100vw}
  .weave-say{font-size:clamp(1.15rem,6vw,1.6rem)}
}

/* --------------------------------------------------------------- the doors */
.doors{display:grid;gap:1px;background:var(--seam);margin-top:var(--sec)}
@media (min-width:860px){ .doors{grid-template-columns:repeat(3,1fr)} }

.door{position:relative;display:flex;flex-direction:column;align-items:flex-start;
  gap:0;background:var(--raise);box-shadow:var(--lip);
  padding:30px 26px 26px;text-decoration:none;min-width:0;
  transition:background .35s ease}
.door:hover{background:var(--hover)}
.door-art{display:block;width:100%;height:188px;margin-bottom:22px;
  display:grid;place-items:center;perspective:900px}
.door-name{font-family:var(--display);font-weight:400;
  font-size:clamp(1.35rem,2.6vw,1.72rem);line-height:1.1;color:var(--fg)}
.door-sub{margin-top:10px;font-size:.88rem;line-height:1.62;color:var(--muted);
  max-width:34ch;flex:1 1 auto}
.door-go{margin-top:18px;font-size:var(--lbl);letter-spacing:.18em;
  text-transform:uppercase;color:var(--gold)}
.door-go::after{content:" \2192"}
.door:hover .door-go{color:var(--accent-hi)}
html:not(.skin-arena) .door:hover .door-go{color:var(--gold)}

/* the emblems */
.vem{width:112px;height:112px;color:var(--gold);overflow:visible}
.vem .em-main,.vem .em-side,.vem .em-base,.vem .em-back{
  transition:transform .5s cubic-bezier(.2,.8,.2,1),opacity .4s ease;
  transform-box:view-box;transform-origin:50px 50px}
.vem .em-star{transform-box:view-box;transform-origin:50px 42px;
  transition:transform .6s cubic-bezier(.2,1.4,.3,1)}
.vem-store .em-star{transform-origin:62px 50px}
.door:hover .vem .em-star{transform:rotate(90deg) scale(1.18)}
.door:hover .vem-trial .em-side{transform:translateY(-4px)}
.door:hover .vem-store .em-back{opacity:.9;transform:translate(-5px,-4px)}

/* ------------------------------------------------------- the book you enter
   A real anchor, drawn as a solid. The reader touches the book and goes
   inside; the element underneath is still a link, so a keyboard, a screen
   reader and a crawler all get a door too. None of that costs the drama. */
.bk{position:relative;width:132px;height:186px;transform-style:preserve-3d;
  transform:rotateX(8deg) rotateY(-26deg);
  transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.door:hover .bk,.door:focus-visible .bk{transform:rotateX(6deg) rotateY(-46deg) scale(1.04)}
.bk span{position:absolute;display:block;backface-visibility:hidden}
.bk .bk-front{inset:0;background:#0B1322 center/cover no-repeat;
  box-shadow:inset 0 0 0 1px rgba(184,143,78,.34),0 26px 44px -22px var(--objshadow)}
.bk .bk-front img{width:100%;height:100%;object-fit:cover;display:block}
.bk .bk-pages{top:2px;bottom:2px;right:0;width:13px;transform-origin:right;
  transform:rotateY(90deg);
  background:repeating-linear-gradient(to right,#E7E2D4 0 1px,#CFC8B6 1px 2px)}
.bk .bk-spine{top:0;bottom:0;left:0;width:13px;transform-origin:left;
  transform:rotateY(-90deg);
  background:linear-gradient(90deg,#060B18,#0C1426 55%,#060B18)}
/* the cover lifts as it is approached: the book opening, in one gesture */
.bk .bk-cover{inset:0;transform-origin:left center;
  background:#0B1322;
  box-shadow:inset 0 0 0 1px rgba(184,143,78,.34);
  transition:transform .7s cubic-bezier(.3,.9,.2,1)}
.door:hover .bk .bk-cover,.door:focus-visible .bk .bk-cover{transform:rotateY(-128deg)}
.bk .bk-cover img{width:100%;height:100%;object-fit:cover;display:block}
.bk .bk-inside{inset:0;background:linear-gradient(100deg,#F6F2E9,#E7E2D4);
  display:grid;place-items:center;transform:translateZ(-1px)}
.bk .bk-inside i{font-style:normal;font-family:var(--display);
  font-size:.74rem;letter-spacing:.24em;text-transform:uppercase;color:#80631D;
  text-align:center;line-height:1.7;padding:0 14px}
@media (prefers-reduced-motion:reduce){
  .bk,.door:hover .bk,.bk .bk-cover,.door:hover .bk .bk-cover{transition:none}
}

/* ----------------------------------------------------------------- about */
body.home .about{margin-top:var(--sec)}
body.home .about .kinds{margin-top:var(--s3)}

@media (max-width:859px){
  .door{padding:24px 18px 22px}
  .door-art{height:164px;margin-bottom:18px}
  .vem{width:96px;height:96px}
  .bk{width:116px;height:164px}
}

/* A tablet held upright is 768 or 834 points wide, and until now that fell
   between the two layouts: too narrow for three columns, so each door became
   a band the full width of the screen with its emblem marooned in the middle
   and a line of text clinging to the left edge. Measured at 768: three doors
   over 1,100px of page, most of it empty.

   Between 620 and 859 the door turns on its side instead — art in a fixed
   column on the left, the words beside it — which is the shape the space
   actually wants. A phone in landscape (844 wide, 390 tall) lands in this
   range too, and wants it even more: vertical room is what it has least of. */
@media (min-width:620px) and (max-width:859px){
  .door{display:grid;grid-template-columns:176px minmax(0,1fr);
    column-gap:30px;align-items:center;align-content:center;
    padding:26px 30px}
  .door-art{grid-column:1;grid-row:1 / span 3;
    width:176px;height:176px;margin:0;align-self:center}
  .door-name{grid-column:2;align-self:end}
  .door-sub{grid-column:2;max-width:54ch;flex:0 1 auto}
  .door-go{grid-column:2;align-self:start}
  .vem{width:104px;height:104px}
  .bk{width:124px;height:176px}
}
