/*
 * We don't have any CSS build process, so make sure that all CSS
 * features used are supported by dashboard's browsers:
 * https://git.corp.stripe.com/stripe-internal/pay-server/blob/master/manage/frontend/package.json#L25
 * MDN is a good reference for this: https://developer.mozilla.org/en-US/
 */

/* css reset
  http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, button, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

/* general styles */
:root {
  --message-container-height: 200px;
  --footer-height: 398px;
  scroll-behavior: smooth;
}

.scroll-to-destination {
  /* Provides breathing room above the scroll-to point */
  margin-top: -20px;
  padding-top: 20px;
  /* don't impact layout. note that this positions relative to the nearest relative positioned ancestor */
  position: absolute;
}

a {
  color: var(--brand-color);
  font-weight: 400;
  text-decoration: none;
}

.active-hotspot {
  background-color: rgba(214, 236, 255, 0.5);
  border: 1px solid #A4CDFE;
  border-radius: 4px;
  box-sizing: border-box;
  display: inline-block;
  /* offset the padding so hotspots don't change the layout */
  margin: -3px;
  padding: 2px;
  cursor: pointer;
}

body {
  color: #0A2540;
  font-family: 'sohne-var', 'sohne-woff', 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 12px;
  font-weight: 200;
  font-variant-ligatures: no-contextual;
  line-height: 14px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

button {
  appearance: none;
  cursor: pointer;

}

.fullScreenOverlay {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.75);
  box-sizing: border-box;
  display: none;
  height: 100%;
  justify-content: center;
  padding: 1% 5%;
  position: fixed;
  width: 100%;
  z-index: 100;
}

.fullScreenOverlay--content {
  bottom: 0;
  left: 0;
  position: relative;
  right: 0;
  top: 0;
}

.fullScreenOverlay--player {
  overflow: hidden;
  position: relative;
}

.video--closeButton {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  color: #FFFFFF;
  display: flex;
  font-size: 16px;
  font-weight: 300;
  opacity: 0.7;
  padding: 14px;
  position: absolute;
  right: 3vh;
  top: 3vh;
  justify-content: center;
}

.video--closeButton img {
  padding-right: 6px;
}

.button {
  align-items: center;
  max-width: 300px;
  background-color: var(--brand-color);
  border-radius: 8px;
  color: #FFFFFF;
  display: inline-flex;
  font-size: 16px;
  font-weight: 400;
  justify-content: center;
  letter-spacing: 0.3px;
  line-height: 20px;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
}

.button-icon {
  margin-right: 11px;
}

.button--jumbo {
  padding: 12px 48px;
}

.details {
  font-size: 16px;
  line-height: 26px;
}

.hero-header {
  font-size: 48px;
  line-height: 56px;
}

.hidden {
  display: none;
}

.section-content {
  max-width: 1280px;
  position: relative;
  width: 100%;
}

.text--highlight {
  color: var(--brand-color);
}

.text--nowrap {
  white-space: nowrap;
}

/* This section sticks to the top and allows the rest of the page to */
/* scroll over it to achieve the design spec.  */
/* Note that this section is always under the rest of the components */
.scrollaway {
  /* position: sticky doesn't work in IE, but given it's just visual flair */
  /* let's just have it not work on IE instead of introducing a polyfill */
  top: 0;
  position: sticky;
  z-index: 0;
  background-color: #FBFBFB;
}

.media-header-scrollover {
  /* safari needs this for z-index to work without flickering, see https://stackoverflow.com/questions/16033416/while-scrolling-on-an-ios-device-the-z-index-of-elements-isnt-working */
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  z-index: 2;

  margin-top: -15vh;
  margin-bottom: 70vh;
  display: flex;
  justify-content: center;
  transition: opacity 100ms;
}

/* This section scrolls over the scrollaway section and has a higher z-index */
.scrollover {
  position: relative;
  background-color: #FFFFFF;
  /* safari needs this for z-index to work without flickering, see https://stackoverflow.com/questions/16033416/while-scrolling-on-an-ios-device-the-z-index-of-elements-isnt-working */
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  z-index: 2;
  margin-bottom: var(--footer-height);
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  pointer-events: none;
}

.footer,
.footer .button,
.footer-header {
  position: relative;
}

.footer {
  position: fixed;
  width: 100%;
  bottom: 0;
  box-sizing: border-box;
  z-index: -1;
}

/* section specific styles */

/* header section styles */
.header-header {
  align-items: center;
  color: #697386;
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.logo-header {
  padding-top: 56px;
}

.logo-header .section-content {
  width: 100%;
}

a.logo-lockup {
  align-items: center;
  display: flex;
  justify-content: center;
  color: #697386;
  font-weight: 200;
}

.hero-img-placeholder {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #E3E8EE;
  border-radius: 6px;
  background: #F7FAFC;
  color: #A3ACB9;
  font-size: 14px;
  line-height: 20px;
}

.hero-img {
  display: inline-block;
}

.hero-img img {
  max-width: 100px;
  max-height: 50px;
}

.header-lockupLogo {
  margin-right: 6px;
}

/* hero section styles */
.hero {
  font-weight: 500;
  padding-top: 104px;
  /* extend the background through the stripe */
  /* 100vw * 0.212 = height of the 12 deg part */
  padding-bottom: calc(100vw * 0.212);
  margin-bottom: calc(-100vw * 0.212);
}

.projects, .chart, .footer {
  padding-bottom: 136px;
  padding-top: 136px;
}

/* media section styles */
.media-container {
  position: relative;
}

.media-backgroundMask {
  height: 100%;
  overflow: hidden;
  position: absolute;
  width: 100%;
  will-change: transform;
}

.media .section-content {
  z-index: 1;
}

.media-header {
  z-index: 1;
}

.media-header .header__details {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  padding: 40px 64px;
  margin: 0 -64px;
  color: #FFFFFF;
  font-size: 32px;
  font-weight: 300;
  line-height: 41px;
}

.media-section-peek {
  background-color: transparent;
  z-index: 2;
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: inherit;
  transform: translateY(60px);
}

.media-section-peek-inner {
  background-color: var(--brand-color);
  min-height: 16px;
  border-radius: 16px 16px 0 0;
}

/* message section styles */
.message-container .header__title {
  color: #FFFFFF;
  opacity: 0.8;
}

.message-header .header__details {
  color: #FFFFFF;
  font-size: 26px;
  font-weight: 300;
  line-height: 36px;
}

/* stats section styles */
.stats {
  padding-bottom: 136px;
}

.stats-section-no-message {
  border-top: 16px solid var(--brand-color);
}

.stat__label {
  color: #727F96;
  font-size: 14px;
  letter-spacing: 0.2px;
  line-height: 24px;
  margin-top: 4px;
}

.stats-section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  /* these offset the margins below to achieve gaps in between items */
  margin: 24px -32px -24px;
}

.stat {
  margin: 24px 32px;
}

.stat__value {
  color: var(--brand-color);
  font-size: 32px;
  line-height: 32px;
}

/* project section styles */
.projects {
  background-color: #FFFFFF;
}

.project header {
  margin-bottom: 24px;
}

.project hr {
  border-top: 1px solid var(--brand-color);
}

.project-logo {
  margin-bottom: 20px;
}

.project p {
  color: #4F5B76;
  font-size: 16px;
  letter-spacing: 0.2px;
  line-height: 24px;
  margin-bottom: 32px;
}

.project-video-container {
  position: relative;
  border-radius: 16px;
  box-shadow: 0 13px 27px -5px rgba(50, 50, 93, 0.25), 0 8px 16px -8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  /* Hack to enforce video aspect ratio:
     We use border-box sizing with absolute positioned inner content, then use padding
     (whose percentage is based on width, not height) to "set" the height of the box */
  box-sizing: border-box;
  width: 100%;
  height: 0;
  padding-top: 56%;
}

.project-video {
  /* Slightly wider than needed so the auto-calculated height doesn't produce sub-pixel issues
     with the drop shadow on the container (it's tall enough that it overflows and gets hidden) */
  width: 101%;
  position: absolute;
  top: 0;
  left: 0;
}

.project-video--fullScreen {
  border-radius: 8px;
  display: block;
  height: auto;
  width: 100%;
}

.project .button {
  font-weight: 300;
}

/* chart section styles */
.chart {
  background-color: #F0F0F0;
}

.chart figure {
  position: relative;
}

.chart__axisLabel {
  text-transform: uppercase;
  font-weight: 300;
}

.chart__overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.chart__lineLabel {
  box-sizing: border-box;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 300;
  line-height: 16px;
  letter-spacing: 0.2px;
}

.chart__lineLabel .text--highlight {
  font-weight: 500;
}

.chart__lineLabel--dnaSequencing {
  background-color: #E7ECF1;
  color: #919CB0;
  padding: 8px 6px;
}

.chart__lineLabel--solarPanels {
  background-color: #929DB1;
  color: #FFFFFF;
  padding: 8px 6px;
}

.chart__lineLabel--hardDrives {
  background-color: #515C77;
  color: #FFFFFF;
  padding: 8px 6px;
}

.chart__lineLabel--carbonRemoval {
  color: #364657;
  background-color: #FFFFFF;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
  padding: 20px 16px;
}

.chart .details {
  margin-bottom: 60px;
}

.chart svg {
  height: auto;
  width: 100%;
}

.chart-svg-xlarge, .chart-svg-large, .chart-svg-medium, .chart-svg-small {
  display: none;
}

.chart-brand-color-stroke {
  stroke: var(--brand-color);
}
.chart-brand-color-fill {
  fill: var(--brand-color);
}
.chart-brand-color-stop-color {
  stop-color: var(--brand-color);
}

/* footer section styles */
.footer {
  align-items: center;
  background-color: #FFFFFF;
  display: flex;
  opacity: 0;
  flex-direction: column;
}

.footer-header {
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  margin: 0 32px 32px;
  padding: 0;
  text-align: center;
}

.colorbar {
  background-color: var(--brand-color);
  height: 24px;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
}

.hidden {
  display: none;
}

/* responsive styles */
@media (min-width: 769px) {
  .scroll-to-destination {
    /* Provides breathing room above the scroll-to point */
    margin-top: -200px;
    padding-top: 200px;
  }

  .hero-img img {
    max-width: 200px;
    max-height: 50px;
  }

  section {
    padding: 0 128px;
    display: flex;
    justify-content: center;
  }

  .section-content, .message-container, .project {
    column-gap: 40px;
    display: grid;
    display: ms-grid;
    /* internet explorer doesn't support column-gap, so add the gaps as explicit grid elements */
    -ms-grid-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .header-header {
    grid-column: 1 / 5;
    -ms-grid-column: 1;
    -ms-grid-column-span: 7;
    grid-row: 1;
    -ms-grid-row: 1;
  }

  /* for larger resolutions, the design has the text only inhabit */
  /* the first three columns of a four column layout */
  section header, .media-header .header__details {
    grid-column: 1 / 4;
    -ms-grid-column: 1;
    -ms-grid-column-span: 5;
    grid-row: 1;
    -ms-grid-row: 1;
  }

  .media-header .header__details {
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0.3px;
  }

  .stats-section {
    grid-column: 1 / 5;
    -ms-grid-column: 1;
    -ms-grid-column-span: 5;
    grid-row: 2;
    -ms-grid-row: 2;
  }

  .stats-section-no-message {
    padding-top: 136px;
  }

  .stats {
    margin-top: -26px;
  }

  .stats header {
    margin-bottom: 22px;
    z-index: 2;
  }

  .project {
    margin-top: 136px;
  }

  article.project:nth-of-type(1) {
    grid-column: 1 / 5;
    -ms-grid-column: 1;
    -ms-grid-column-span: 7;
    grid-row: 2;
    -ms-grid-row: 2;
  }

  article.project:nth-of-type(2) {
    grid-column: 1 / 5;
    -ms-grid-column: 1;
    -ms-grid-column-span: 7;
    grid-row: 3;
    -ms-grid-row: 3;
  }

  .project hr {
    border-top: 1px solid var(--brand-color);
    margin: 0 0 32px;
    width: 72px;
  }

  .chart figure {
    grid-column: 1 / 5;
    -ms-grid-column: 1;
    -ms-grid-column-span: 7;
    grid-row: 2;
    -ms-grid-row: 2;
  }

  .chart__axisLabel--y {
    left: 2%;
    position: absolute;
    transform: translate(-50%, -50%) rotate(-90deg);
    top: 46.1%;
  }

  .chart__axisLabel--x {
    left: 49%;
    position: absolute;
    top: 95.2%;
  }

  .chart__lineLabel--dnaSequencing {
    left: 30.6%;
    position: absolute;
    transform: translate(-50%, -100%);
    top: 8.74%;
  }

  .chart__lineLabel--solarPanels {
    left: 14.1%;
    position: absolute;
    transform: translate(-50%);
    top: 39.2%;
  }

  .chart__lineLabel--hardDrives {
    left: 28.9%;
    position: absolute;
    transform: translate(-50%);
    top: 68.8%;
  }

  .chart__lineLabel--carbonRemoval {
    left: 79.7%;
    min-width: 205px;
    position: absolute;
    top: 44.9%;
    transform: translate(-50%, -100%);
    width: 22.1%;
  }
}

@media (min-width: 1025px) {
  article.project:nth-of-type(2n+1) .project-video-container {
    grid-column: 2 / 5;
    -ms-grid-column: 3;
    -ms-grid-column-span: 5;
    grid-row: 1;
    -ms-grid-row: 1;
  }

  article.project:nth-of-type(2n+1) header {
    grid-column: 1 / 2;
    -ms-grid-column: 1;
    -ms-grid-column-span: 1;
    grid-row: 1;
    -ms-grid-row: 1;
  }

  article.project:nth-of-type(2n) header {
    grid-column: 4 / 5;
    -ms-grid-column: 7;
    -ms-grid-column-span: 1;
    grid-row: 1;
    -ms-grid-row: 1;
  }

  article.project:nth-of-type(2n) .project-video-container {
    grid-column: 1 / 4;
    -ms-grid-column: 1;
    -ms-grid-column-span: 5;
    grid-row: 1;
    -ms-grid-row: 1;
  }

  .chart__axisLabel--y {
    left: 1.2%;
    top: 46.1%;
  }

  .chart__lineLabel--carbonRemoval {
    left: 63%;
    top: 37.9%;
  }

  .chart__lineLabel--dnaSequencing {
    left: 28.6%;
    top: 8.9%;
  }

  .chart__lineLabel--hardDrives {
    left: 26.7%;
    top: 68.8%;
  }

  .chart__lineLabel--solarPanels {
    left: 10.2%;
    top: 39.2%;
  }

  .chart-svg-xlarge {
    display: block;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .project hr {
    margin: 48px 0 16px;
    /* the design has this line span exactly one grid column */
    /* however, the grid isn't used otherwise at this breakpoint */
    /* it's simpler to calculate the width of one column here than pull in the grid */
    /* 64px = left/right padding */
    /* 32px = gutter padding */
    width: calc((100vw - 2 * 64px - 3 * 32px) / 4);
  }

  .project-video-container {
    grid-column: 1 / 5;
    -ms-grid-column: 1;
    -ms-grid-column-span: 7;
    grid-row: 1;
    -ms-grid-row: 1;
  }

  .project header {
    grid-column: 1 / 4;
    -ms-grid-column: 1;
    -ms-grid-column-span: 5;
    grid-row: 2;
    -ms-grid-row: 2;
  }

  .chart-svg-large {
    display: block;
  }
}

@media (min-width: 451px) and (max-width: 768px) {
  .hero-img img {
    max-width: 150px;
    max-height: 50px;
  }

  section {
    padding: 0 64px;
  }

  .hero-text {
    margin-top: 78px;
  }

  .hero-header {
    font-size: 42px;
    line-height: 54px;
  }

  .media-header .header__details {
    font-size: 18px;
    letter-spacing: 0.3px;
    line-height: 26px;
  }

  .message {
    padding: 0;
  }

  .message-container {
    padding: 56px 64px;
  }

  .message-header .header__details {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.3px;
    line-height: 26px;
  }

  .stats {
    padding-bottom: 88px;
    padding-top: 88px;
  }

  .project {
    margin-top: 104px;
  }

  .projects {
    overflow: hidden;
  }

  .project hr {
    border: 3px solid var(--brand-color);
    margin: 0 -64px 48px;
    width: 100vw;
  }

  .project-video-container {
    border-radius: 0;
    margin: 0 -64px;
    width: auto;
  }

  .chart__axisLabel--y {
    left: 1.4%;
    position: absolute;
    transform: translate(-50%, -50%) rotate(-90deg);
    top: 46.1%;
  }

  .chart__axisLabel--x {
    left: 45.6%;
    position: absolute;
    top: 94.3%;
  }

  .chart__lineLabel--dnaSequencing {
    left: 25.8%;
    position: absolute;
    transform: translate(-50%, -100%);
    top: 7.09%;
  }

  .chart__lineLabel--solarPanels {
    left: 13.9%;
    position: absolute;
    transform: translate(-50%);
    top: 45.8%;
  }

  .chart__lineLabel--hardDrives {
    left: 29.5%;
    position: absolute;
    transform: translate(-50%);
    top: 73.5%;
  }

  .chart__lineLabel--carbonRemoval {
    left: 79.7%;
    min-width: 172px;
    position: absolute;
    top: 44.9%;
    transform: translate(-50%, -100%);
    width: 37.5%;
  }

  .chart-svg-medium {
    display: block;
  }
}

@media (max-width: 450px) {
  section {
    padding: 0 32px;
  }

  .projects, .chart, .footer {
    padding-bottom: 104px;
    padding-top: 104px;
  }

  .header__title {
    font-size: 12px;
    letter-spacing: 1px;
    line-height: 15px;
  }

  .header__details {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.1px;
    line-height: 31px;
  }

  .header-header {
    font-size: 11px;
    line-height: 13px;
  }

  .logo-header {
    padding-top: 15px;
  }

  .details {
    font-size: 15px;
    letter-spacing: 0.2px;
    line-height: 24px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-text {
    margin-top: 60px;
  }

  .hero-header {
    font-size: 38px;
    letter-spacing: -0.1px;
    line-height: 48px;
    margin-bottom: 48px;
  }

  .media-header-scrollover {
    padding: 0;
    overflow: hidden;
  }

  .media-header .header__details, .message-header .header__details {
    font-size: 18px;
    letter-spacing: 0.2px;
    line-height: 26px;
  }

  .message {
    padding: 0;
  }

  .message-header {
    font-size: 18px;
    line-height: 26px;
  }

  .message-container {
    padding: 50px 32px;
  }

  .stats, .project {
    padding-top: 104px;
  }

  .stats {
    padding-bottom: 104px;
  }

  .projects {
    overflow: hidden;
  }

  .project hr {
    border: 3px solid var(--brand-color);
    margin: 0 -32px 48px;
    width: 100vw;
  }

  .project p {
    font-size: 16px;
    line-height: 26px;
  }

  .project-video-container {
    border-radius: 0;
    margin: 0 -64px;
    width: auto;
  }

  .chart__lineLabel, .chart__axisLabel {
    font-size: 10px;
    line-height: 14px;
    letter-spacing: 0.2px;
  }

  .chart__axisLabel--y {
    left: 2%;
    position: absolute;
    transform: translate(-50%, -50%) rotate(-90deg);
    top: 46.1%;
  }

  .chart__axisLabel--x {
    left: 49.8%;
    position: absolute;
    top: 78.7%;
  }

  .chart__lineLabel--dnaSequencing {
    left: 30.6%;
    padding: 8px 14px;
    position: absolute;
    transform: translate(-50%, -100%);
    top: 8.74%;
    white-space: nowrap;
  }

  .chart__lineLabel--solarPanels {
    left: 69.5%;
    padding: 8px 14px;
    position: absolute;
    transform: translate(-50%, -100%);
    top: 44.5%;
    white-space: nowrap;
  }

  .chart__lineLabel--hardDrives {
    left: 31%;
    padding: 8px 14px;
    position: absolute;
    transform: translate(-50%);
    top: 61%;
    white-space: nowrap;
  }

  .chart__lineLabel--carbonRemoval {
    background-color: transparent;
    box-shadow: none;
    left: 14.2%;
    padding: 0;
    position: absolute;
    top: 87.3%;
    width: 80%;
  }

  .chart-svg-small {
    display: block;
  }
}

