/* Michael Angelo Zervos — Author page
   Styles that belong with author-book.js
   ------------------------------------------------------------------ */

/* The 3D book. Above every section, below the front of the hand,
   below the two fixed buttons. */
.au-book-stage {
  position: fixed;
  inset: 0;
  /* Sized to the tallest the screen gets (a phone with its address bar
     hidden), so the bar sliding in and out never resizes the drawing. */
  bottom: auto;
  height: 100vh;
  height: 100lvh;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
}
.au-book-stage canvas { display: block; width: 100%; height: 100%; }

/* The highlight behind "happiness is possible, wherever and whoever you are."
   Webflow paints the yellow; this only sweeps it on. */
.au-mark {
  background-size: 0% 1.2em;
  transition: background-size 1100ms cubic-bezier(.22, 1, .36, 1);
}
.au-mark.is-lit { background-size: 100% 1.2em; }

/* Split into lines, the highlight is tied to the scroll: each line sweeps
   on in turn as the paragraph rises, and back off if you scroll up. The
   lines inherit whatever yellow the paragraph is painted with. */
/* The parent keeps its yellow so the lines can inherit it; it just stops
   painting any of it itself. (Setting background-image:none here would
   hand the lines `none`.) */
.au-mark.is-split { background-size: 0 0; transition: none; }
.au-mark-line {
  position: relative;
  white-space: nowrap;
  background-image: inherit;
  background-repeat: no-repeat;
  background-size: calc(var(--lit, 0) * 100%) 1.2em;
  background-position: 0 50%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 .15em;
  margin: 0 -.15em;
}

/* The words turn blue as the yellow passes over them, the way an exclusion
   blend would paint them. The words themselves are painted with a
   two-colour fill that moves left to right in step with the yellow, so
   there is only ever one set of letters. */
.au-mark-ink {
  background-image: linear-gradient(90deg, #2536d8 calc(var(--lit, 0) * 100%), var(--au-ink, #222) calc(var(--lit, 0) * 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding: 0 .12em .12em;
  margin: 0 -.12em -.12em;
}

/* The coordinates land one character at a time, digits rolling into place. */
.au-coord-ticker { font-variant-numeric: tabular-nums; }
.au-coord-ch {
  display: inline-block;
  opacity: .28;
  transform: translateY(.06em);
  transition: opacity 180ms ease, transform 180ms cubic-bezier(.22, 1, .36, 1);
}
.au-coord-ch.is-set { opacity: 1; transform: none; }

/* Counters hold their width while the digits run, so nothing shifts. */
.au-stat-num.is-counting { font-variant-numeric: tabular-nums; }


/* ------------------------------------------------------------------
   The faces: a pinned section between the statement and the hand. The
   script builds the grid of faces and drives every opacity from the
   scroll; this is only the layout.
   ------------------------------------------------------------------ */
.au-turn.is-pinned {
  position: relative;
  --au-turn-run: 180vh;   /* one screen of faces plus the scroll they arrive and hold in */
  --au-turn-over: 30vh;   /* how much of the text's pinned scroll the faces share (the text has faded by then) */
  display: block;         /* the section is a flex box; a flex item cannot stick */
  height: var(--au-turn-run);
  min-height: 0;
  overflow: visible;      /* sticky cannot work inside a clipped parent */
  padding: 0;
  /* It starts on top of the pinned text and is see-through until the
     faces have filled in, so they take that screen over. */
  margin-top: calc(-100vh - var(--au-turn-over)) !important;
  background: transparent !important;
  pointer-events: none;
}
@supports (height: 1svh) {
  .au-turn.is-pinned { margin-top: calc(-100svh - var(--au-turn-over)) !important; }
}
.au-turn.is-pinned .au-tiles { display: none; }

.au-turn-pin {
  position: sticky;
  top: 0;
  display: block;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.au-turn-faces {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(4, 1fr);
}
.au-face {
  display: block;
  background-repeat: no-repeat;
  opacity: 0;
  will-change: opacity;
}

@media (max-width: 767px) {
  .au-turn-faces { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(8, 1fr); }
}

/* The Earth clip sits above its own still fallback, and the still fades
   out once the clip is actually running. */
.au-journey-video { z-index: 1; }
/* The video needs z-index 1 to beat the still fallback, which puts it above
   its positioned siblings too — so the shade and the copy are lifted past it. */
.au-journey .au-journey-shade { z-index: 2; }
.au-journey .au-shell { position: relative; z-index: 3; }
.au-journey-img { transition: opacity .4s ease; }

/* Where the book passes over or under the page (the book is z-index 3).
   Desktop and tablet: the book turns over the hero, the Journey and the
   numbers, then goes in UNDER the Question section and stays under
   Discovery and Places. It comes back out from under Places beside the
   intro, fades into the statement, and at the end comes out from under
   the faces to land in the hand, where only the fingers (5) close over it.
   Phones (portrait and landscape): it travels OVER the dark Question
   section, then slips UNDER Discovery's white, Places and the faces. */
.au-question { position: relative; z-index: 2; }
.au-turn { position: relative; z-index: 4; margin-top: 0; }
.au-hand-front { z-index: 5; }
@media (max-width: 767px), (max-width: 991px) and (max-height: 520px) {
  .au-disco { position: relative; z-index: 4; }
  .au-places { z-index: 4; position: relative; }
}
@media (min-width: 992px), (min-width: 768px) and (min-height: 521px) {
  .au-question, .au-disco, .au-places { position: relative; z-index: 4 !important; }
}

/* Wide screens: the hand keeps growing with the page past 1440, the way
   it already does between 1280 and 1440 (68.26vw wide, its height in step),
   so the palm stays under the book instead of the book running off the
   fingertips. Capped at its 1920 size. */
@media (min-width: 1441px) {
  .au-landing .au-hand, .au-landing .au-hand-front {
    width: min(68.26vw, 1311px); height: min(23.89vw, 459px); right: auto; max-width: none;
  }
}

/* The line-by-line rise clips each line in a mask. It only needs to clip
   top and bottom; clipping the sides cut the last letter off lines that are
   a touch wider than their paragraph (the "y" of "suffering and joy," on a
   phone). */
.gsap_split_line-mask { overflow-x: visible !important; overflow-y: clip !important; }

@media (prefers-reduced-motion: reduce) {
  .au-book-stage { display: none; }
  .au-mark { transition: none; background-size: 100% 1.2em; }
  .au-mark.is-split { background-size: 0 0; }
  .au-mark-line { background-size: 100% 1.2em; }
  .au-coord-ch { opacity: 1; transform: none; transition: none; }
  /* Places laid out down the page, one after another. */
  .au-places { height: auto !important; }
  .au-places .au-places-pin { position: static !important; height: auto !important; }
  .au-places .au-place { position: relative !important; height: 100vh !important; opacity: 1 !important; }
  .au-places .au-places-bar { display: none !important; }
}

/* ==================================================================
   UPDATED LAYOUT (v19)
   ================================================================== */

/* --- Places: the photographs slide sideways, the words stay put ------ */
.au-places.is-sideways .au-place {
  height: 100% !important;
  opacity: 1 !important;
}
.au-places.is-sideways .au-place-cover { will-change: transform; }
/* The captions sit in the middle of the screen at every size, above every
   photograph, and trade places with a fade and a small rise. */
.au-places .au-place-cap {
  left: 50% !important; right: auto !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2;
}
.au-places.is-sideways .au-place-cap {
  opacity: 0;
  transform: translate(-50%, calc(-50% + 16px)) !important;
  transition: opacity .3s ease, transform .3s ease;
}
.au-places.is-sideways .au-place-cap.is-on {
  opacity: 1;
  transform: translate(-50%, -50%) !important;
  transition: opacity .5s ease .28s, transform .6s cubic-bezier(.22, 1, .36, 1) .28s;
}
/* The bar replaces the 1/3, 2/3, 3/3 counters. */
.au-places .au-place-count { display: none !important; }
.au-places-fill {
  transform: scaleX(var(--au-fill, .3333));
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

/* Discovery: where each photograph is cropped from, so no head is cut.
   The same on every screen size (the frames keep the same proportions). */
.au-fig-f2 .au-fig-img { object-position: 50% 20%; }
.au-fig-f4 .au-fig-img { object-position: 50% 30%; }
.au-fig-f3 .au-fig-img { object-position: 50% 40%; }
.au-fig-f5 .au-fig-img { object-position: 50% 25%; }
.au-fig-f6 .au-fig-img { object-position: 50% 25%; }
.au-fig-f9 .au-fig-img { object-position: 50% 0%; }

/* --- After Places: one pinned frame -----------------------------------
   The heading, the paragraph and the statement sit together in the middle
   of the screen. The intro's grid is the frame: it sticks for a full
   screen while the section around it supplies the scroll. The highlight
   sweeps, the text fades, and the faces (the next section, which starts
   on top of this one) take the screen over. */
.au-intro .au-intro-spot { display: none !important; }
.au-intro .au-intro-grid {
  display: flex !important; flex-direction: column !important;
  align-items: center !important; justify-content: center !important;
  text-align: center;
}
/* The pinned text comes in one piece after another (the script adds
   .au-rv, then .is-in while the frame is on screen). Webflow's own reveals
   are switched off in here: inside a pinned frame they hide the text again
   while it is still on screen. */
.au-intro .gsap_split_line { transform: none !important; opacity: 1 !important; }
.au-intro .au-intro-title, .au-intro .au-intro-text,
.au-intro .au-promise-pre, .au-intro .au-promise-text {
  opacity: 1 !important; transform: none !important; visibility: visible !important;
}
.au-intro-grid.au-rv .au-intro-title, .au-intro-grid.au-rv .au-intro-text,
.au-intro-grid.au-rv .au-promise-pre, .au-intro-grid.au-rv .au-promise-text {
  opacity: 0 !important; transform: translateY(16px) !important;
  transition: opacity .3s ease, transform .3s ease;
}
.au-intro-grid.au-rv.is-in .au-intro-title, .au-intro-grid.au-rv.is-in .au-intro-text,
.au-intro-grid.au-rv.is-in .au-promise-pre, .au-intro-grid.au-rv.is-in .au-promise-text {
  opacity: 1 !important; transform: none !important;
  transition: opacity .7s ease, transform .9s cubic-bezier(.22, 1, .36, 1);
}
.au-intro-grid.au-rv.is-in .au-intro-text { transition-delay: .2s; }
.au-intro-grid.au-rv.is-in .au-promise-pre { transition-delay: .4s; }
.au-intro-grid.au-rv.is-in .au-promise-text { transition-delay: .6s; }
@media (prefers-reduced-motion: no-preference) {
  .au-intro {
    overflow: visible !important; padding-top: 0 !important; padding-bottom: 0 !important;
    height: calc(100vh + 130vh);
  }
  .au-intro .au-intro-grid {
    position: sticky !important; top: 0;
    height: 100vh; height: 100svh;
    display: flex !important; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
  }
}
.au-intro .au-intro-lead {
  display: flex !important; flex-direction: column; align-items: center;
  width: 100% !important; max-width: none !important; margin: 0 !important;
  row-gap: 12px; text-align: center;
}
.au-intro .au-intro-title { width: auto !important; margin: 0 !important; text-align: center; }
.au-intro .au-intro-text { width: min(100%, 614px); margin: 0 !important; text-align: center; }
.au-intro .au-promise {
  width: auto !important; max-width: none !important;
  margin: min(12vh, 8.3333vw, 120px) 0 0 !important;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

/* Desktop and tablet. */
@media (min-width: 992px), (min-width: 768px) and (min-height: 521px) {
  /* Question: everything centred, as on phones. The lead sits at the top,
     the question at the bottom, larger, with "of your life?" on its own
     line (the width fits "What is the happiest moment" and no more). */
  .au-question .au-question-grid {
    display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: space-between !important;
    height: 100% !important; box-sizing: border-box;
    padding-top: min(8.3333vw, 120px) !important; padding-bottom: min(8.3333vw, 120px) !important;
  }
  .au-question .au-question-lead {
    display: flex !important; flex-direction: column !important; align-items: center !important;
    width: 100% !important; max-width: none !important; margin: 0 !important; text-align: center !important;
  }
  .au-question .au-question-lead * { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
  /* The two-line version of the lead (the one phones use) suits a centred
     layout; the three-line one was cut for the narrow side column. */
  .au-question .au-h-lead.not-phone { display: none !important; }
  .au-question .au-h-lead.is-phone { display: block !important; width: auto !important; max-width: none !important; }
  .au-question .au-question-spot { flex: 0 1 auto !important; min-height: 0; margin: 0 !important; }
  .au-question .au-question-q {
    width: auto !important; max-width: 12.1em !important; margin: 0 auto !important;
    text-align: center !important; font-size: min(5.5556vw, 80px) !important; line-height: 1.1 !important;
  }

  .au-intro .au-promise-text {
    font-size: min(6.25vw, 11vh, 90px) !important; line-height: 1.2 !important;
    margin-top: clamp(6.89px, .6944vw, 10px) !important;
  }


  /* Landing: room above for the book to come out from under the faces,
     the book in the hand, and the words centred beneath the hand: the
     title on one line, the author and the publisher at either end of the
     row under it, then the button and the categories. */
  .au-landing {
    --au-land-top: min(17.7778vw, 256px);
    height: auto !important; overflow: visible !important;
    padding-top: var(--au-land-top); padding-bottom: min(10.7639vw, 155px);
  }
  .au-landing .au-landing-grid {
    display: grid !important; grid-template-columns: 1fr 1fr !important; grid-template-rows: auto !important;
    column-gap: 0 !important; height: auto !important;
    width: min(69.0278vw, 994px) !important; max-width: none !important; padding: 0 !important;
    align-items: start;
  }
  .au-landing .au-landing-book, .au-landing .au-landing-pub { display: contents !important; }
  .au-landing .au-landing-spot { grid-column: 1 / -1 !important; grid-row: 1; justify-self: center; margin-top: 0 !important; }
  .au-landing .au-landing-title {
    grid-column: 1 / -1; grid-row: 2; justify-self: center; width: max-content; text-align: center; white-space: nowrap;
    font-size: min(4.0514vw, 58.34px) !important; line-height: 1.3 !important;
    margin-top: min(11.1806vw, 161px) !important;
  }
  .au-landing .au-landing-author { grid-column: 1; grid-row: 3; justify-self: start; margin: min(1.0417vw, 15px) 0 0 min(.625vw, 9px) !important; }
  .au-landing .au-landing-pub > .au-label:first-child { grid-column: 2; grid-row: 3; justify-self: end; margin: min(1.0417vw, 15px) 0 0 !important; }
  .au-landing .au-landing-cta { grid-column: 1 / -1; grid-row: 4; justify-self: center; margin-top: min(2.3611vw, 34px) !important; }
  .au-landing .au-landing-pub > .au-label:last-child { grid-column: 1 / -1; grid-row: 5; justify-self: center; text-align: center; margin: min(1.5278vw, 22px) 0 0 !important; }
  /* The hand ends where the title begins. */
  .au-landing .au-hand, .au-landing .au-hand-front {
    bottom: auto !important;
    top: calc(var(--au-land-top) + min(41.3194vw, 595px) - clamp(236.98px, 23.8889vw, 344px)) !important;
  }
}
@media (min-width: 1441px) {
  .au-landing .au-hand, .au-landing .au-hand-front { top: calc(256px + 595px - min(23.89vw, 459px)) !important; }
}
/* Tablet: the hand keeps its own size there. */
@media (max-width: 991px) and (min-width: 768px) and (min-height: 521px) {
  .au-landing .au-hand, .au-landing .au-hand-front { top: calc(var(--au-land-top) + 41.3194vw - 212px) !important; }
}

/* The hand slides in from the left to catch the book (the script sets
   --au-hand from 0 to 1 as the book comes down). */
@media (prefers-reduced-motion: no-preference) {
  .au-landing .au-hand, .au-landing .au-hand-front {
    transform: translate3d(calc((var(--au-hand, 0) - 1) * 70%), 0, 0);
    opacity: min(1, calc(var(--au-hand, 0) * 3));
    will-change: transform;
  }
}

/* Phones: the statement at the mockup's size. */
@media (max-width: 767px) and (min-height: 521px), (max-width: 991px) and (max-height: 520px) {
  .au-intro .au-intro-grid { padding-left: 20px !important; padding-right: 20px !important; }
  /* Places: the pinned frame starts below the navigation bar, so the bar
     never covers the photograph, its caption or the progress bar. */
  /* Places on a phone: Sudan and North Korea are cropped from the left of
     the photograph, where the people are. */
  /* Sudan: the man's face sits in the centre of the screen. */
  .au-places .au-place-img-1 { object-position: 32% 50% !important; }
  .au-places .au-place-img-3 { object-position: 10% 50% !important; }
  /* The question at the size of the Discovery phrases. */
  .au-question .au-question-q { font-size: 36px !important; line-height: 1.05 !important; max-width: 340px !important; }
  .au-intro .au-promise-text.is-phone {
    font-size: min(39px, 10vw, 6.6vh) !important; line-height: 1.15 !important;
    white-space: normal !important; width: 100%;
  }
  .au-intro .au-promise { margin-top: min(9vh, 72px) !important; }
  .au-intro .au-promise-pre { margin-bottom: 6px; }
}

/* Phones (where the navigation bar stays fixed at the top): Places and the
   faces start below the bar and run to the very bottom of the screen, at
   its tallest (address bar hidden), so no strip of white shows beneath. */
@media (max-width: 767px) {
  .au-places .au-places-pin, .au-turn-pin { top: 65px !important; height: calc(100vh - 65px) !important; }
  @supports (height: 1lvh) {
    .au-places .au-places-pin, .au-turn-pin { height: calc(100lvh - 65px) !important; }
    .au-places .au-place-cover { height: 100lvh !important; margin-top: -50lvh !important; }
  }
}

/* ==================================================================
   PHONES — v3 layout (portrait and landscape phones only).
   Tablets and desktop are untouched: everything below sits inside the
   phone queries.
     portrait  : (max-width: 767px) and (min-height: 521px)
     landscape : (max-width: 991px) and (max-height: 520px)
   ================================================================== */

/* --- Hero: pinned while the book turns ------------------------------ */
@media (max-width: 767px) and (min-height: 521px), (max-width: 991px) and (max-height: 520px) {
  @media (prefers-reduced-motion: no-preference) {
    /* The section is a scroll track; the grid is the frame that stays put.
       240svh = one screen of frame + 1.4 screens of turning. */
    .au-hero { height: 240vh !important; height: 240svh !important; min-height: 0 !important; padding-top: 0 !important; }
    .au-hero .au-hero-grid {
      position: sticky !important; top: 0;
      height: 100vh !important; height: 100svh !important;
      box-sizing: border-box;
    }
    /* The two texts trade places halfway through the turn (the script adds
       .is-swapped). The section label stays; the rest crossfades. */
    .au-hero .au-hero-intro > :not(.au-label),
    .au-hero .au-hero-release {
      transition: opacity .55s ease, transform .55s cubic-bezier(.22,1,.36,1) !important;
    }
    .au-hero .au-hero-release {
      position: absolute !important;
      top: var(--au-rel-top, 120px) !important; left: var(--au-rel-left, 30px) !important;
      width: var(--au-rel-w, auto) !important; right: auto !important; bottom: auto !important;
      margin: 0 !important; padding: 0 !important;
      text-align: center !important;
      opacity: 0 !important; transform: translateY(10px) !important; pointer-events: none;
    }
    .au-hero .au-hero-release .au-hero-word-r { display: none !important; }
    .au-hero .au-hero-release .au-label { margin: 0 0 14px !important; }
    .au-hero.is-swapped .au-hero-intro > :not(.au-label) { opacity: 0 !important; transform: translateY(-10px) !important; pointer-events: none; }
    .au-hero.is-swapped .au-hero-release { opacity: 1 !important; transform: none !important; pointer-events: auto; }
  }
  /* The section labels fade with Webflow's scroll reveal, which resets
     when its element "leaves" — and a pinned label never really leaves, so
     it vanished mid-turn. The hero's labels just stay put. */
  .au-hero .au-label { opacity: 1 !important; transform: none !important; }
  /* "Scroll to discover more" breathes slowly. */
  .au-cue-text { animation: au-blink 2.6s ease-in-out infinite; }
  /* Reserve your copy: centred on the bottom of the screen. */
  .au-reserve { left: 0 !important; right: 0 !important; margin-left: auto !important; margin-right: auto !important; width: max-content !important; bottom: 25px !important; }
}
@keyframes au-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* Portrait phones: text, then the book, then the cue down to the button. */
@media (max-width: 767px) and (min-height: 521px) and (prefers-reduced-motion: no-preference) {
  .au-hero .au-hero-grid {
    display: flex !important; flex-direction: column !important; align-items: center !important;
    justify-content: flex-start !important; padding: 95px 30px 0 !important;
  }
  .au-hero .au-hero-intro { width: 100% !important; max-width: 340px; margin: 0 auto !important; flex: none; }
  .au-hero .au-hero-spot {
    position: relative !important; flex: 1 1 auto !important; min-height: 0 !important;
    width: 100% !important; height: auto !important; max-width: none !important;
    margin: 22px 0 18px !important; grid-column: auto !important;
  }
  /* The cue is moved into the frame by the script; it runs to the bottom
     edge so its line passes behind the button. */
  .au-hero .au-hero-grid > .au-cue {
    position: relative !important; left: auto !important; top: auto !important; bottom: auto !important;
    transform: none !important; flex: 0 0 132px; width: auto !important;
    display: flex !important; flex-direction: column; align-items: center; margin: 0 !important;
  }
  .au-hero .au-hero-grid > .au-cue .au-cue-line { flex: 1 1 auto; height: auto !important; }
}

/* Landscape phones: text on the left, the book on the right. */
@media (max-width: 991px) and (max-height: 520px) and (prefers-reduced-motion: no-preference) {
  .au-hero .au-hero-grid {
    display: flex !important; flex-direction: row !important; align-items: center !important;
    justify-content: center !important; gap: 4vw; padding: 64px 5vw 96px !important;
  }
  .au-hero .au-hero-intro { width: 42% !important; max-width: 360px; margin: 0 !important; flex: none; }
  .au-hero .au-hero-spot {
    position: relative !important; flex: 0 0 34% !important; align-self: stretch !important;
    width: auto !important; height: auto !important; max-width: none !important; margin: 0 !important;
    grid-column: auto !important;
  }
  .au-hero .au-hero-grid > .au-cue { display: none !important; }
  .au-hero .au-hero-grid { padding-bottom: 112px !important; }
  .au-hero .au-hero-intro { display: flex !important; flex-direction: column !important; align-items: center !important; }
  .au-hero .au-hero-intro, .au-hero .au-hero-intro * { text-align: center !important; }
  /* "Release" is tucked away at this size on the desktop layout (it moves
     to the other side of the book); here it stays with "New". */
  .au-hero .au-hero-tail {
    position: static !important; display: inline !important; width: auto !important; height: auto !important;
    overflow: visible !important; clip: auto !important; white-space: normal !important;
  }
}

/* --- Sections in between: centred, the book no longer passes through - */
@media (max-width: 767px) and (min-height: 521px), (max-width: 991px) and (max-height: 520px) {
  .au-journey-spot, .au-stats-spot, .au-question-spot, .au-disco-spot, .au-place-spot, .au-intro-spot { display: none !important; }

  /* Journey */
  .au-journey .au-journey-grid { display: flex !important; flex-direction: column !important; align-items: center !important; }
  .au-journey .au-journey-lead, .au-journey .au-journey-note {
    width: 100% !important; max-width: 520px !important; margin-left: auto !important; margin-right: auto !important;
    text-align: center !important; grid-column: auto !important;
  }
  .au-journey .au-journey-lead * { text-align: center !important; }
  .au-journey .au-journey-lead, .au-question .au-question-lead { display: flex !important; flex-direction: column !important; align-items: center !important; }

  /* Stats */
  .au-stats .au-stats-grid { display: flex !important; flex-direction: column !important; align-items: center !important; }
  .au-stats .au-stat { width: 100% !important; margin-left: auto !important; margin-right: auto !important; grid-column: auto !important; }

  /* Question — and keep the left of the photo (where she is) in frame */
  .au-question .au-question-grid { display: flex !important; flex-direction: column !important; align-items: center !important; }
  .au-question .au-question-lead, .au-question .au-question-q {
    width: 100% !important; max-width: 520px !important; margin-left: auto !important; margin-right: auto !important;
    text-align: center !important; grid-column: auto !important;
  }
  .au-question .au-question-lead * { text-align: center !important; }
  .au-question .au-cover-img { object-position: 12% 50% !important; }

  /* Intro: full width now the book isn't beside it; body copy at 16px */
  .au-intro .au-intro-lead, .au-intro .au-promise { width: 100% !important; max-width: none !important; grid-column: auto !important; }
  .au-intro .au-intro-text, .au-intro .au-promise-pre { font-size: 16px !important; line-height: 1.45 !important; }

}

/* --- Landing: the book stands centred in a bigger hand ---------------
   Everything is sized from --bk, the book's height: about two thirds of
   the screen's width on a phone held upright, capped by the height on
   one held sideways. The hand is the same picture, larger and moved so
   the palm sits under the middle of the screen; the script stands the
   book on it. */
@media (max-width: 767px) and (min-height: 521px), (max-width: 991px) and (max-height: 520px) {
  .au-landing {
    --bk: min(66vw, 60vh); overflow: visible !important;
    /* Room above the hand for the book to rise out of the section before. */
    margin-top: 42vh !important;
    height: auto !important; min-height: 0 !important; padding-bottom: 72px !important;
  }
  .au-landing .au-landing-grid { height: auto !important; min-height: 0 !important; }
  @supports (height: 1svh) { .au-landing { --bk: min(66vw, 60svh); } }
  .au-landing .au-landing-grid {
    display: flex !important; flex-direction: column !important; align-items: center !important;
    padding: calc(var(--bk) * 1.378 + 60px) 30px 0 !important; text-align: center !important;
  }
  .au-landing .au-landing-spot {
    position: absolute !important; top: 20px !important; bottom: auto !important;
    left: calc(50% - var(--bk) * 0.375) !important; right: auto !important;
    width: calc(var(--bk) * 0.75) !important; height: calc(var(--bk) / 0.92) !important;
  }
  .au-landing .au-hand, .au-landing .au-hand-front {
    top: calc(var(--bk) * 0.838 + 20px) !important; bottom: auto !important;
    left: calc(50% - var(--bk) * 1.2) !important; right: auto !important;
    width: calc(var(--bk) * 1.966) !important; height: calc(var(--bk) * 0.54 + 1px) !important;
    max-width: none !important;
  }
  .au-landing .au-landing-book { width: 100% !important; max-width: 520px; margin: 0 auto !important; text-align: center !important; grid-column: auto !important; }
  .au-landing .au-landing-book * { text-align: center !important; }
  .au-landing .au-landing-title { font-size: 28px !important; line-height: 1.2 !important; max-width: 300px; margin-left: auto !important; margin-right: auto !important; }
  .au-landing .au-landing-author { margin-top: 12px !important; }
  .au-landing .au-landing-pub {
    position: static !important; transform: none !important; width: auto !important;
    margin: 28px auto 0 !important; display: flex; flex-direction: column; align-items: center;
  }
  .au-landing .au-landing-pub > .au-label:first-child { display: none !important; }
}
/* Sideways, the hand would stop short of the left edge, so its wrist fades out. */
@media (max-width: 991px) and (max-height: 520px) {
  .au-landing .au-hand, .au-landing .au-hand-front {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%);
    mask-image: linear-gradient(90deg, transparent 0, #000 38%);
  }
}

/* Phones held upright: line breaks to match the v3 mockup. Each width is
   the room between the last word that should stay on a line and the next
   word that should wrap, measured in the page's own fonts at 393px. */
@media (max-width: 767px) and (min-height: 521px) {
  /* "...inspiring stories of / people's happiest moments from a journey to / every country in the world." */
  .au-hero .au-hero-intro .au-hero-text { max-width: 300px !important; width: 100% !important; margin-left: auto !important; margin-right: auto !important; }
  /* "Uplifting encounters that will / connect readers to the wider world." / - Kirkus Review */
  .au-hero .au-hero-quote { max-width: 236px !important; margin-left: auto !important; margin-right: auto !important; }
  /* "On May 30, 2025, / Michael Angelo Zervos / became one of them." */
  .au-journey .au-journey-note { max-width: 290px !important; }

}

/* Phones held upright: the Kirkus quote in the hero, larger (20px, was 16px).
   It uses the full width of the text block so the quote still sits on two
   lines with the source on a third, and the label above it sits a little
   closer, so the block ends where it did before and stays clear of the book.
   On phones narrower than 392px the size eases down so the two lines hold. */
@media (max-width: 767px) and (min-height: 521px) {
  .au-hero .au-hero-release .au-hero-quote,
  .au-hero .au-hero-release .au-hero-quote .au-quote-em,
  .au-hero .au-hero-release .au-hero-quote .au-quote-src { font-size: min(20px, 5.1vw) !important; line-height: 1.12 !important; }
  .au-hero .au-hero-release .au-hero-quote { width: 100% !important; max-width: none !important; padding: 0 !important; text-wrap: balance; }
  .au-hero .au-hero-release .au-hero-quote .au-quote-src { display: block; margin-top: 2px; }
  .au-hero .au-hero-release p.au-label { margin: 0 0 6px !important; }
}

/* Phones: the Journey footage is framed on its lower part, so more of the
   Earth shows. The clip is zoomed in a little by the page's scroll effect;
   by default that zoom grows from the middle and crops the bottom of the
   clip. Anchoring it to the bottom edge keeps the whole lower part (the
   planet) in view and crops only sky from the top. */
@media (max-width: 767px) {
  .au-journey .au-journey-img { transform-origin: 50% 100% !important; }
}

/* Discovery, desktop and tablet: Fig. 09 (Türkiye) and Fig. 10 (Sudan) share
   one row, Türkiye on the left and Sudan on the right, both the same
   height so their captions line up. "and survival." follows below the row
   and the section is shorter by the row that was saved. All numbers are in
   the section's own design pixels (--dp is 1px on a 1440px-wide screen and
   shrinks with narrower ones, as the rest of this section does). */
@media (min-width: 768px) {
  .au-disco { --dp: min(1px, calc(100vw / 1440)); height: calc(var(--dp) * 4627) !important; }
  .au-disco .au-fig-f10 { left: calc(var(--dp) * 130) !important; right: auto !important; top: calc(var(--dp) * 3848) !important; width: calc(var(--dp) * 375) !important; }
  .au-disco .au-fig-media-f10 { width: 100% !important; height: calc(var(--dp) * 500) !important; }
  .au-disco .au-fig-f9 { left: auto !important; right: calc(var(--dp) * 130) !important; top: calc(var(--dp) * 3848) !important; width: calc(var(--dp) * 765) !important; }
  .au-disco .au-fig-media-f9 { width: 100% !important; height: calc(var(--dp) * 500) !important; }
  .au-disco .au-phrase-p4 { top: calc(var(--dp) * 4469) !important; }
}

/* ==================================================================
   v29
   ================================================================== */

/* The faces: a longer pinned scroll. They arrive, hold for a moment, clear
   away from the top-left corner with the book standing behind them, and
   the book then begins to turn (the script times all of it). */
.au-turn.is-pinned { --au-turn-run: 330vh; }

/* Desktop and tablet: the book stays in the hero and turns there, as on
   phones. The script works out where the hero's row rests (--au-hero-stick)
   and how much longer the section is while it holds (--au-hero-tail), and
   switches this on with .is-deskpin. */
@media (min-width: 992px), (min-width: 768px) and (min-height: 521px) {
  @media (prefers-reduced-motion: no-preference) {
    .au-hero.is-deskpin::after { content: ""; display: block; height: var(--au-hero-tail, 100vh); }
    .au-hero.is-deskpin .au-hero-grid { position: sticky !important; top: var(--au-hero-stick, 0px) !important; padding-bottom: var(--au-hero-gap, 0px) !important; }
    /* "Scroll to discover more" keeps its place on the first screen. */
    .au-hero.is-deskpin > .au-cue { top: var(--au-cue-top, auto) !important; bottom: auto !important; }
    /* Webflow's scroll reveal hides a label once it has "left"; a held
       label never really leaves, so here it simply stays. */
    .au-hero.is-deskpin .au-label { opacity: 1 !important; transform: none !important; }
  }

  /* The book no longer passes through these sections. */
  .au-journey-spot, .au-stats-spot, .au-question-spot { display: none !important; }

  /* Journey: centred, as on phones. The heading sits at the top and the
     note low down over the Earth; the section keeps the height it had. */
  .au-journey .au-journey-grid {
    display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: space-between !important;
    min-height: min(54.3vw, 782px); box-sizing: border-box;
    padding-bottom: min(13vw, 188px) !important;
  }
  .au-journey .au-journey-lead {
    display: flex !important; flex-direction: column !important; align-items: center !important;
    width: 100% !important; max-width: min(39vw, 560px) !important;
    margin: 0 auto !important; text-align: center !important; grid-column: auto !important;
  }
  .au-journey .au-journey-lead * { text-align: center !important; }
  .au-journey .au-journey-lead .au-h-lead { width: auto !important; max-width: none !important; }
  .au-journey .au-journey-note {
    width: 100% !important; max-width: min(20.7vw, 300px) !important;
    margin: 0 auto !important; text-align: center !important; grid-column: auto !important;
  }

  /* The numbers: side by side in the middle of the page, each centred. */
  .au-stats .au-stats-grid {
    display: flex !important; flex-direction: row !important;
    justify-content: center !important; align-items: center !important;
    gap: 0 min(12.5vw, 180px) !important;
    min-height: min(38.5vw, 554px); box-sizing: border-box;
    padding-top: min(4.2vw, 60px);
  }
  .au-stats .au-stat {
    width: auto !important; margin: 0 !important; grid-column: auto !important;
    align-items: center !important; text-align: center !important;
    align-self: center !important; justify-self: auto !important;
  }
  .au-stats .au-stat * { text-align: center !important; }
}

/* ==================================================================
   v30
   ================================================================== */
@media (min-width: 992px), (min-width: 768px) and (min-height: 521px) {
  @media (prefers-reduced-motion: no-preference) {
    /* "Scroll to discover more" sits inside the held row (the script moves
       it there), at the place it always had, so it does not move. */
    .au-hero.is-deskpin .au-hero-grid > .au-cue { position: absolute !important; top: var(--au-cue-in, auto) !important; bottom: auto !important; }
    /* The hero's words arrive in steps as you scroll (the script sets the
       four values): "New" and "Release" start level with the middle of the
       book and move to their places, and the paragraph and the quote fade
       in after them. */
    .au-hero.is-deskpin .au-hero-intro { translate: 0 var(--au-in-y, 0px) !important; }
    .au-hero.is-deskpin .au-hero-release { translate: 0 var(--au-re-y, 0px) !important; }
    .au-hero.is-deskpin .au-hero-intro > .au-hero-text { opacity: var(--au-po, 1) !important; }
    .au-hero.is-deskpin .au-hero-release > .au-hero-quote { opacity: var(--au-qo, 1) !important; }
  }

  /* The numbers: further apart, with a hairline between them (the text
     colour at 20%). */
  .au-stats .au-stats-grid { gap: 0 min(22.2vw, 320px) !important; position: relative; }
  /* v43: 2px, and centred on the two numbers' boxes (it hangs off the first
     one, halfway across the gap, so it always sits midway between them). */
  .au-stats .au-stat-countries { position: relative; }
  .au-stats .au-stat-countries::after {
    content: ""; position: absolute; top: 50%;
    left: calc(100% + min(22.2vw, 320px) / 2); width: 2px; margin-left: -1px;
    height: min(13.9vw, 200px); transform: translateY(-50%);
    background: currentColor; opacity: .2; pointer-events: none;
  }
}

/* ==================================================================
   v31 — half the scrolling between the faces clearing and the hand.
   The faces' frame lets go the moment they have cleared (the script's
   timings are set to match), and the hand's section starts sooner.
   ================================================================== */
.au-turn.is-pinned { --au-turn-run: 275vh; }
/* Phones: the gap above the hand was room for the book's old flight. */
@media (max-width: 767px) and (min-height: 521px), (max-width: 991px) and (max-height: 520px) {
  .au-landing { margin-top: 13vh !important; }
}
/* Desktop and tablet: the hand's section begins with empty space; most of
   that now slides in under the last of the faces instead of after them. */
@media (min-width: 992px), (min-width: 768px) and (min-height: 521px) {
  @media (prefers-reduced-motion: no-preference) {
    .au-landing { margin-top: calc(var(--au-land-top, 0px) * -0.82) !important; }
  }
}

/* ==================================================================
   v32 — desktop and tablet: the held hero is exactly one screen. The
   book sits in the middle of it and "Scroll to discover more" runs down
   to the bottom edge (the script works out the numbers).
   ================================================================== */
@media (min-width: 992px), (min-width: 768px) and (min-height: 521px) {
  @media (prefers-reduced-motion: no-preference) {
    .au-hero.is-deskpin { padding-top: var(--au-hero-stick, 0px) !important; }
    .au-hero.is-deskpin .au-hero-grid > .au-cue {
      display: flex !important; flex-direction: column !important; align-items: center !important;
      height: var(--au-cue-h, auto) !important;
    }
    .au-hero.is-deskpin .au-hero-grid > .au-cue .au-cue-line { flex: 1 1 auto; height: auto !important; min-height: 0; }
  }
}

/* Phones: the hand's section starts a little under the last of the faces,
   so the book reaches the hand in about two thirds of a screen of
   scrolling after they clear (it was most of a screen). The top of that
   section is empty space, so nothing shows through the faces. */
@media (max-width: 767px) and (min-height: 521px), (max-width: 991px) and (max-height: 520px) {
  @media (prefers-reduced-motion: no-preference) {
    .au-landing { margin-top: -8vh !important; }
  }
}

/* ==================================================================
   v35 — the Journey crawl (every size). The script builds the frame
   (.au-journey-pin) and the tilted plane, and moves the words along it.
   ================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .au-journey.is-crawl {
    display: block !important; position: relative;
    height: calc(var(--au-crawl-frame, 100vh) + var(--au-crawl-run, 120vh)) !important;
    min-height: 0 !important; padding: 0 !important; overflow: visible !important;
  }
  .au-journey-pin { position: sticky; top: 0; height: var(--au-crawl-frame, 100vh); overflow: hidden; }
  /* The words' layer. Its top quarter fades the words out as they recede. */
  .au-crawl-view {
    position: absolute; inset: 0; z-index: 3; perspective-origin: 50% 50%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 32%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 32%);
  }
  .au-journey.is-crawl .au-crawl-view > .au-journey-grid {
    position: absolute !important; top: 50% !important; left: 0 !important; right: 0 !important;
    width: min(560px, 86vw) !important; max-width: none !important; margin: 0 auto !important;
    height: auto !important; min-height: 0 !important; padding: 0 !important;
    display: flex !important; flex-direction: column !important; align-items: center !important;
    justify-content: flex-start !important; gap: min(7vh, 64px) !important;
    transform-origin: 50% 0 !important; will-change: transform;
  }
  /* Webflow's own reveals would hide lines that are already on screen in a
     held frame, so inside the crawl they are switched off. */
  .au-journey.is-crawl .au-journey-grid * { opacity: 1 !important; transform: none !important; translate: none !important; }
}
/* Phones: the frame starts below the navigation bar. */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .au-journey.is-crawl { --au-crawl-frame: calc(100vh - 65px); }
  .au-journey-pin { top: 65px; }
}
/* Inside the crawl the two texts sit a fixed gap apart, and the note is
   sized from its own type so it keeps its three lines ("On May 30, 2025," /
   "Michael Angelo Zervos" / "became one of them.") at every size. */
@media (prefers-reduced-motion: no-preference) {
  .au-journey.is-crawl .au-journey-lead, .au-journey.is-crawl .au-journey-note { margin-top: 0 !important; margin-bottom: 0 !important; }
  .au-journey.is-crawl .au-journey-note { width: 100% !important; max-width: 9.8em !important; }
}

/* ==================================================================
   v36 — the numbers slide up over the held Journey frame (every size).
   The Journey section is one more frame long, so it keeps holding for a
   screen after its words have gone; the numbers section is pulled up by
   that same frame, so its white comes up from the bottom over the Earth
   and reaches the top just as the frame lets go.
   ================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .au-journey.is-crawl { height: calc(var(--au-crawl-frame, 100vh) * 2 + var(--au-crawl-run, 120vh)) !important; }
  .au-journey.is-crawl + .au-stats { margin-top: calc(var(--au-crawl-frame, 100vh) * -1) !important; position: relative; z-index: 2; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .au-journey.is-crawl + .au-stats { --au-crawl-frame: calc(100vh - 65px); }
}

/* ==================================================================
   v37 — the Journey crawl, bigger. The words are set much larger, on a
   wider plane, with more space between the lines, and the heading flows
   as one paragraph (Webflow's line-by-line split is undone here so its
   lines can re-wrap at the new size).
   ================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .au-journey.is-crawl .au-crawl-view > .au-journey-grid { width: min(920px, 88vw) !important; gap: min(12vh, 120px) !important; }
  .au-journey.is-crawl .au-journey-lead { width: 100% !important; max-width: none !important; }
  .au-journey.is-crawl .au-journey-lead .au-label { font-size: clamp(14px, 1.4vw, 20px) !important; margin-bottom: .9em !important; }
  .au-journey.is-crawl .au-journey-lead .au-h-lead { font-size: clamp(34px, 6.4vw, 88px) !important; line-height: 1.45 !important; width: 100% !important; max-width: none !important; }
  .au-journey.is-crawl .au-journey-lead .gsap_split_line-mask, .au-journey.is-crawl .au-journey-lead .gsap_split_line { display: inline !important; }
  .au-journey.is-crawl .au-journey-note { font-size: clamp(30px, 5.8vw, 80px) !important; line-height: 1.4 !important; }
}

/* v38 — the hold after the crawl is shorter (--au-crawl-cover screens, set
   by the script), so the numbers start sliding up a little sooner. They
   are still pulled up by a whole frame, so they reach the top exactly as
   the frame lets go. */
@media (prefers-reduced-motion: no-preference) {
  .au-journey.is-crawl { height: calc(var(--au-crawl-frame, 100vh) * (1 + var(--au-crawl-cover, 1)) + var(--au-crawl-run, 120vh)) !important; }
}

/* v39 — no white fades in the crawl: the Earth runs to the bottom of the
   frame, and the numbers' white comes up over it with a clean edge. Only
   the light darkening across the picture is kept. (Visitors who ask for
   reduced motion still get the original section, fade and all.) */
@media (prefers-reduced-motion: no-preference) {
  .au-journey.is-crawl .au-journey-shade { background-image: linear-gradient(90deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)) !important; }
}

/* ==================================================================
   v46 — phones held sideways: the floating "Reserve your copy" card
   steps aside while the book is landing in the hand (the landing has
   its own Reserve button); it comes back as soon as you scroll on.
   ================================================================== */
@media (max-width: 991px) and (max-height: 520px) {
  .au-reserve { transition: opacity .3s ease, visibility 0s linear .3s; }
  html.au-at-landing .au-reserve { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
  html:not(.au-at-landing) .au-reserve { transition: opacity .3s ease, visibility 0s; }
}
