/* 17 Nov (Shali: "do exact like this typo in hero", Figma dXCtAuvwl9dlmVdEVUUJmE node 1:5, 1440 x 908 frame):
   copy block left-aligned at x 173 (12vw), title top 145 (16vh).
   Title: Instrument Serif 40 / normal (1.3), 164 px column (4 lines), black, no full stop.
   Line: Instrument Serif 16 / normal (1.3), 156 px column, 29 px below the title.
   Links: Inter Medium 12 px capitals, underlined, stacked 16 px apart, 43 px below the line; the second in italic.
   The fact strip (Joey's copy) stays along the foot. */
@import url("/assets/fonts/inter-italic/inter-italic.css");
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-inner {
  position: absolute !important; inset: 0 !important; display: flex !important; flex-direction: column !important;
  align-items: flex-start !important; justify-content: flex-start !important; text-align: left !important;
  padding: 16vh 0 0 12vw !important; opacity: 1 !important; translate: none !important;
}
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top #hero-h,
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top #hero-h * {
  font-family: "Instrument Serif", "Times New Roman", serif !important; font-weight: 400 !important; font-style: normal !important;
  font-size: 40px !important; line-height: 1.3 !important; letter-spacing: 0 !important; word-spacing: 0 !important; text-transform: none !important;
  color: #000 !important; -webkit-text-fill-color: #000 !important; text-shadow: none !important; background: none !important;
}
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top #hero-h { width: 164px !important; max-width: none !important; margin: 0 !important; text-align: left !important; text-wrap: wrap !important; }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top #hero-h .hero-nb { white-space: normal !important; font-size: inherit !important; }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-sub {
  font-family: "Instrument Serif", "Times New Roman", serif !important; font-weight: 400 !important; font-size: 16px !important; line-height: 1.3 !important;
  letter-spacing: 0 !important; text-transform: none !important; color: #000 !important; text-shadow: none !important;
  width: 156px !important; max-width: none !important; margin: 29px 0 0 !important; text-align: left !important; text-wrap: wrap !important;
}
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-ctas {
  display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 16px !important;
  width: auto !important; max-width: none !important; margin: 43px 0 0 !important;
}
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-ctas :is(.hero-cta-primary, .hero-assess) {
  display: inline !important; min-height: 0 !important; height: auto !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif !important; font-weight: 500 !important; font-size: 12px !important; line-height: normal !important;
  letter-spacing: 0 !important; text-transform: uppercase !important; color: #000 !important; white-space: nowrap !important; cursor: pointer;
  text-decoration: underline !important; text-decoration-thickness: from-font !important; text-underline-position: from-font !important; font-size-adjust: none !important;
}
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-ctas .hero-assess { font-style: italic !important; }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-ctas .hero-assess svg { display: none !important; }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-ctas :is(.hero-cta-primary, .hero-assess):focus-visible { outline: 2px solid #000 !important; outline-offset: 4px !important; }
@media (hover: hover) and (pointer: fine) {
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-ctas :is(.hero-cta-primary, .hero-assess):hover { opacity: .6; }
}
@media (max-width: 767px) {
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-inner { padding: 22vh 24px 0 !important; }
}

/* 17 Nov (Shali: "proper alignment"): the copy block starts on the page's left edge line (--site-gutter: 40 px desktop,
   20 px phones), the same line as the logo, every section heading, the cards and the footer, instead of the Figma's 173 px. */
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-inner { padding-left: var(--site-gutter, 40px) !important; padding-right: var(--site-gutter, 40px) !important; }
/* the fact strip follows the same left line on desktop: its first gold dot sits on the gutter */
@media (min-width: 768px) {
  html[lang][data-hf="3"] body:not(#_):not(#_):not(#_):not(#_) #top .hero-facts { justify-content: flex-start !important; padding-left: var(--site-gutter, 40px) !important; padding-right: var(--site-gutter, 40px) !important; }
  html[lang][data-hf="3"] body:not(#_):not(#_):not(#_):not(#_) #top .hero-facts li:first-child { margin-left: -24px; }
}

/* ===== 17 Nov v4: Figma updated (Frame 5): the hero is a light-grey panel (#F2F2F2, square) inset 25 px left/right,
   50 px from the top, 726 of 908 px tall (white space of 132 px below it holds the fact strip); copy inside the panel
   at 145 px from its left (10.43% of 1390) and 137 px from its top; wordmark top-left at x 26, y 18, 226 x 16.
   Replaces the gutter alignment above. */
:root { --hp-top: 50px; --hp-side: 25px; --hp-foot: 132px; }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top { background: #fff !important; }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-inner {
  position: absolute !important; inset: var(--hp-top) var(--hp-side) var(--hp-foot) var(--hp-side) !important;
  background: #f2f2f2 !important; border-radius: 0 !important;
  padding: calc((100svh - var(--hp-top) - var(--hp-foot)) * .1887) 0 0 calc((100vw - 2 * var(--hp-side)) * .1043) !important;
}
/* fact strip: in the white band under the panel, first dot on the panel's left edge */
html[lang][data-hf="3"] body:not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-facts {
  top: auto !important; bottom: calc((var(--hp-foot) - 64px) / 2) !important; border-top: 0 !important; background: none !important;
  padding-left: var(--hp-side) !important; padding-right: var(--hp-side) !important;
}
/* header: wordmark at x 26, y 18, 226 px wide; buttons level with it, small enough to sit above the panel */
html body:not(.yl-detail-page) .masthead:not(.has-bar) .hdr { padding: 0 var(--hp-side) 0 26px !important; min-height: 52px !important; height: 52px !important; align-items: center !important; }
html body:not(.yl-detail-page) .masthead:not(.has-bar) .hdr .hdr-logo { width: 226px !important; margin-top: 0 !important; }
html body:not(.yl-detail-page) .masthead:not(.has-bar) .hdr .hdr-logo :is(svg, img) { width: 226px !important; height: auto !important; }
html body:not(.yl-detail-page) .masthead:not(.has-bar) .hdr :is(.hdr-sound, .mobile-nav-toggle) { width: 36px !important; height: 36px !important; min-height: 0 !important; }
html body:not(.yl-detail-page) .masthead:not(.has-bar) .hdr .hdr-cta { min-height: 36px !important; height: 36px !important; padding-block: 0 !important; }

@media (max-width: 767px) {
  :root { --hp-top: 60px; --hp-side: 12px; --hp-foot: 72px; }
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-inner { padding: 14vh 0 0 24px !important; }
  html[lang][data-hf="3"] body:not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-facts { bottom: 8px !important; padding-left: 0 !important; padding-right: 0 !important; }
  html body:not(.yl-detail-page) .masthead:not(.has-bar) .hdr { padding: 0 12px 0 14px !important; height: 60px !important; min-height: 60px !important; }
  html body:not(.yl-detail-page) .masthead:not(.has-bar) .hdr .hdr-logo, html body:not(.yl-detail-page) .masthead:not(.has-bar) .hdr .hdr-logo :is(svg, img) { width: 180px !important; }
}
/* v4 fixes: the panel takes its size from the insets (an older rule set width 100%); the header bar drops its 16/40 px
   margin and the logo link its 19 px padding, so the wordmark lands at x 26, y 18 */
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-inner { width: auto !important; height: auto !important; max-width: none !important; }
html body:not(.yl-detail-page) .masthead:not(.has-bar) .hdr { margin: 0 !important; width: auto !important; }
html body:not(.yl-detail-page) .masthead:not(.has-bar) .hdr .hdr-logo { padding: 0 !important; margin: 0 !important; }
/* title: no inherited bottom padding (6.4 px), so the line and links land on the Figma's 424 / 593 */
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top #hero-h { padding: 0 !important; }
/* the hero fits the viewport exactly: panel, white band and fact strip all inside one screen (lvh/svh aware) */
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .home-hero-track #top { height: 100vh !important; height: 100svh !important; min-height: 0 !important; max-height: none !important; }
/* short screens: the space above the title shrinks (Figma 18.87% of the panel on tall screens, never less than 20 px,
   and never so much that the links leave the panel); very short phones also take a slightly smaller title */
:root { --hp-h: calc(100svh - var(--hp-top) - var(--hp-foot)); }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-inner { padding-top: clamp(20px, calc(var(--hp-h) - 500px), calc(var(--hp-h) * .1887)) !important; }
@media (max-width: 767px) {
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-inner { padding-top: clamp(20px, calc(var(--hp-h) - 490px), 14vh) !important; }
}
@media (max-height: 620px) {
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top #hero-h, html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top #hero-h * { font-size: 34px !important; }
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top #hero-h { width: 150px !important; }
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-sub { margin-top: 20px !important; }
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-ctas { margin-top: 28px !important; }
}
/* 17 Nov (Shali: "more edge to edge" - vertically, not horizontally): sides back to the Figma's 25 px (12 px phones);
   the panel now runs from under the wordmark row to 10 px above the screen's foot, and the fact strip sits inside the
   panel along its bottom, on the copy's left line */
:root { --hp-foot: 10px; --hp-copy-x: calc((100vw - 2 * var(--hp-side)) * .1043); }
@media (max-width: 767px) { :root { --hp-top: 60px; --hp-foot: 6px; --hp-copy-x: 24px; } }
html[lang][data-hf="3"] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-facts {
  left: var(--hp-side) !important; right: var(--hp-side) !important; bottom: calc(var(--hp-foot) + 18px) !important; width: auto !important;
  padding-left: calc(var(--hp-copy-x) - 0px) !important; padding-right: 24px !important; border-top: 0 !important; z-index: 7 !important;
}
/* phones: the moving strip keeps to the panel, fading at its edges */
@media (max-width: 767px) {
  html[lang][data-hf="3"] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-facts { padding-left: 0 !important; padding-right: 0 !important; bottom: calc(var(--hp-foot) + 6px) !important; }
}
/* the space above the title and below the links scales with the taller panel; links stay clear of the strip */
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-inner { padding-top: clamp(20px, calc(var(--hp-h) - 580px), calc(var(--hp-h) * .1887)) !important; }
/* the copy block sits vertically centred in the panel (the Figma has 137 px above and 137 px below it), measured in the
   space above the fact strip */
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-inner {
  justify-content: center !important; padding-top: 24px !important; padding-bottom: 88px !important;
}
@media (max-width: 767px) {
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-inner { padding-top: 20px !important; padding-bottom: 64px !important; }
}

/* 17 Nov (Shali: "hero image/video placement same as the reference, desktop and mobile"): the box is the reference's
   media frame (9 px inset desktop, 12 / 13 px phones, from the bar's foot to near the screen's foot; grey #F2F2F2 is
   the image / video placeholder while pictures are off). Copy sits where the reference puts its text: 119 px inside
   the box on desktop (8.37% of its width), vertically centred; on phones centred both ways. */
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-inner {
  padding-left: calc((100vw - 2 * var(--hp-side)) * .0837) !important;
}
@media (max-width: 767px) {
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-inner { align-items: center !important; text-align: center !important; padding-left: 20px !important; padding-right: 20px !important; }
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top :is(#hero-h, .hero-sub) { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-ctas { align-items: center !important; }
}

/* 17 Nov (Shali: "placeholder like the reference"): the box plays the bright sunlit film, as fontbarcelona.com plays
   its video in the same frame; the copy sits over it in white (the reference's white text), with a soft shade only
   where the copy is. Grey #F2F2F2 shows while the film loads. */
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-film {
  position: absolute !important; inset: var(--hp-top) var(--hp-side) var(--hp-foot) var(--hp-side) !important; z-index: 1 !important;
  width: calc(100% - 2 * var(--hp-side)) !important; height: calc(100% - var(--hp-top) - var(--hp-foot)) !important;
  object-fit: cover !important; object-position: center 55% !important; background: #f2f2f2 !important; display: block !important; pointer-events: none;
}
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-film-shade {
  position: absolute !important; inset: var(--hp-top) var(--hp-side) var(--hp-foot) var(--hp-side) !important; z-index: 2 !important; pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 14, 15, .42) 0%, rgba(14, 14, 15, .22) 34%, rgba(14, 14, 15, .04) 62%, rgba(14, 14, 15, 0) 100%),
              linear-gradient(0deg, rgba(14, 14, 15, .34) 0%, rgba(14, 14, 15, 0) 22%) !important;
}
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-inner { background: transparent !important; z-index: 6 !important; }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top :is(#hero-h, #hero-h *, .hero-sub, .hero-ctas .hero-cta-primary, .hero-ctas .hero-assess) {
  color: #fff !important; -webkit-text-fill-color: #fff !important; text-shadow: 0 1px 18px rgba(14, 14, 15, .28) !important;
}
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-facts li { color: rgba(255, 255, 255, .9) !important; text-shadow: 0 1px 12px rgba(14, 14, 15, .3); }
@media (max-width: 767px) {
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-film { object-position: 42% 50% !important; }
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-film-shade { background: radial-gradient(ellipse 80% 45% at 50% 48%, rgba(14, 14, 15, .42) 0%, rgba(14, 14, 15, .16) 60%, rgba(14, 14, 15, .06) 100%), linear-gradient(0deg, rgba(14, 14, 15, .34) 0%, rgba(14, 14, 15, 0) 18%) !important; }
}
@media (prefers-reduced-motion: reduce) { html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-film { display: none !important; } }
/* a little more shade on the copy side so the 16 px line reads on the brightest frames */
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-film-shade {
  background: linear-gradient(90deg, rgba(14, 14, 15, .55) 0%, rgba(14, 14, 15, .34) 30%, rgba(14, 14, 15, .08) 58%, rgba(14, 14, 15, 0) 100%),
              linear-gradient(0deg, rgba(14, 14, 15, .38) 0%, rgba(14, 14, 15, 0) 22%) !important;
}
@media (max-width: 767px) {
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top .hero-film-shade { background: radial-gradient(ellipse 85% 48% at 50% 48%, rgba(14, 14, 15, .52) 0%, rgba(14, 14, 15, .22) 60%, rgba(14, 14, 15, .08) 100%), linear-gradient(0deg, rgba(14, 14, 15, .38) 0%, rgba(14, 14, 15, 0) 18%) !important; }
}
