/* Reset */
/* from https://www.joshwcomeau.com/css/custom-css-reset/ */

*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html, body {
  height: 100%;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
#root, #__next {
  isolation: isolate;
}
button {
  border: none;
}


/* Defaults */

html, body {
  margin: 0;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: 'Poppins';
  font-weight: 300;
}

a {
  color: var(--black);
  color: #c6894d;
}

::selection { background: rgba(181, 203, 201, 0.52); color: #000; }


/* Variables */

:root {
  --black: #222222;
  --white: rgba(247, 248, 248, 1);
  --white: #fff;
  --white-t70: rgba(255, 255, 255, 0.7);
  --white-t50: rgba(255, 255, 255, 0.5);
  --yellow: #E8AF46;
  --yellow-light: #F8D494;
  --yellow-dark: #CE8C14;
  --cream: #F3EAD9;
  --tan: #FCF3E3;
  --pink: rgba(255, 222, 222, 0.4);
  --blue: rgba(224, 231, 248, 0.5);
  --moss: rgba(194, 207, 210, 0.5);
  --gold: rgba(229, 210, 169, 0.3);
  --brown: rgba(202, 182, 164, 0.3);
}

/* Typography */

.text-white {
  color: var(--white);
}

.text-t70 {
  color: rgba(34, 34, 34, 0.7);
}

.text-t50 {
  color: rgba(34, 34, 34, 0.5);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
}

h1 {
  font-size: 4rem;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 4rem;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1.3;
  margin-top: 1em;
  margin-bottom: 1em;
}

h4 {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.3;
}

p {
  font-size: 1.0625rem;
  font-weight: 300;
  margin-top: 1em;
  margin-bottom: 1em;
}

.p-list-heading {
  margin-top: 2em;
  margin-bottom: 1em;
}

strong {
  font-weight: 500;
}

em {
  font-style: italic;
}

ul.content-list {
  padding-left: 0;
  list-style: none;
}

ul.content-list li {
  margin-bottom: 1em;
  position: relative;
}

ul.content-list li:before {
  content: '';
  position: absolute;
  left: -1em;
  top: 0.625em;
  width: 0.25em;
  height: 0.25em;
  background-color: var(--black);
  border-radius: 50%;
}


/* Layout */

.flex {
  display: flex;
}

.flex-w30 {
  display: flex;
  width: 30%;
  min-width: 30%;
}

.flex-w40 {
  display: flex;
  width: 40%;
  min-width: 40%;
}

.flex-half {
  display: flex;
  gap: 2rem;
}

.flex-w50 {
  width: 50%;
}

.width-66 {
  width: 66.666%;
}

.width-33 {
  width: 33.333%;
}

.p1 { padding: 1rem; }
.p2 { padding: 2rem; }

.pv2 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.mt2 { margin-top: 2em; }
.mt3 { margin-top: 3em; }
.mt4 { margin-top: 4em; }

.mb2 { margin-bottom: 2em; }
.mb3 { margin-bottom: 3em; }
.mb4 { margin-bottom: 4em; }

.ml2 {
  margin-left: 2rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 30px;
  padding: 0 30px;
  box-sizing: border-box;
}

.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }
.col-span-8 { grid-column: span 8; }
.col-span-9 { grid-column: span 9; }
.col-span-10 { grid-column: span 10; }

.col-start-1 { grid-column-start: 1; }
.col-start-2 { grid-column-start: 2; }
.col-start-3 { grid-column-start: 3; }
.col-start-4 { grid-column-start: 4; }
.col-start-5 { grid-column-start: 5; }
.col-start-6 { grid-column-start: 6; }
.col-start-7 { grid-column-start: 7; }
.col-start-8 { grid-column-start: 8; }
.col-start-9 { grid-column-start: 9; }
.col-start-10 { grid-column-start: 10; }
.col-start-11 { grid-column-start: 11; }

.grid-edge-fill {
    width: calc(100% + 60px);
    margin-left: -30px;
    
    width: calc(100% + 44px);
    margin-left: -22px;
}

.grid-edge-fill.grid-edge-fill--no-pad {
  width: calc(100% + 60px);
  margin-left: -30px;
}

.grid-gap-small {
  gap: 8px;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* allow clicks to pass through */
  z-index: 9999;
  display: none; /* start hidden */
}

.grid-lines {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 30px; /* gutter width */
  height: 100%;
  padding: 0 30px; /* side margins */
  box-sizing: border-box;
}

.grid-line {
  background-color: rgba(255, 0, 128, 0.15); /* transparent pink */
  height: 100%;
}




/* Buttons & Inputs */

.btn {
  background: transparent;
  color: var(--black);
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  transition: 0.1s linear all;
  cursor: pointer;
}

.btn:hover {
  background: rgba(0,0,0,0.05);
}

.btn:active {
  background: rgba(0,0,0,0.1);
}

.btn.btn--yellow {
  background: var(--yellow);
  color: var(--black);
}

.btn.btn--yellow:hover {
  background: var(--yellow-light);
}

.btn.btn--yellow:active {
  background: var(--yellow-dark);
}


label, legend, input, select {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
}

label, legend {
  margin-bottom: 0.5rem;
}


/* Header */

.hero {
  position: relative;
  z-index: 3;
  overflow: hidden;
  background: #fff;
}

.hero img {
  width: 100%;
}

/* Hero Numbers */

.numbers-wrapper {
  display: flex;
  align-items: flex-end;
  position: relative;
  width: 100vw;
  max-height: 80vh;
  overflow: hidden;
}

.numbers-inner-wrapper {
  position: relative;
  margin-top: -10vw;
}

.numbers {
  position: relative;
  margin-left: -5vw;
}

.numbers:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: hsl(222deg 50% 77% / 50%);
  pointer-events: none;
}

.numbers-overlay {
  position: absolute;
  top: 0;
}

.numbers .row {
  display: flex;
  border-bottom: 1px solid black;
  mix-blend-mode: multiply;
}

.numbers .row:first-child {
  border-top: 1px solid black;
}

.numbers .row .numgroup {
  display: flex;
}

.numbers .row .numbox {
  display: block;
  font-size: 18.75vw;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  line-height: 1;
  padding: 0px 4px;
  border-right: 1px solid black;
  color: #000;
  user-select: none;
  
  transition: scale 0.1s ease;
  display: inline-block;
  transform-origin: center center;
}

.numbox.pulse {
  scale: 0.95 !important;
}

.numbox.numbox-color {
  position: relative;
}

.numbox.numbox-color:after {
  content: '';
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: calc(100% - 0.5rem);
  height: calc(100% - 0.5rem);
  border-radius: 8px;
  /* mix-blend-mode: hard-light; */
  z-index: 3;
}

.numbox.numbox-color--yellow:after {
  background: rgb(239 213 156 / 73%);
  background: hsl(45deg 100% 50% / 75%);
}

.numbox.numbox-color--teal:after {
  background: rgb(181 203 201 / 70%);
  background: hsl(130deg 38% 80% / 66%);
}

.numbox.numbox-color--brown:after {
  background: rgb(229 170 89 / 70%);
}

.header-title {
  padding: 12rem 0 6rem;
  padding: 6rem 0 3rem;
}

.main-content-wrapper {
  display: flex;
  justify-content: space-between;
}




/* Sidebar */

.sidebar {
  position: fixed;
  top: 0;
  z-index: 2;
  display: flex;
  height: 100%;
  align-items: center;
  margin-left: 11%;
  
  transition: transform 0.3s ease, opacity 0.3s ease;
  /*
  Breaks blur in child ul area
  will-change: transform, opacity;
  */
  transform: translateX(0);
  opacity: 1;
}

.sidebar.sidebar-hidden {
  transform: translateX(-20px); /* slide left */
  opacity: 0;
  pointer-events: none;
}

.sidebar-list {
  max-width: 19.5vw;
}

.sidebar ul {
  padding: 0 1rem;
  margin: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(5px); /* Add this line first, it fixes blur for Safari*/
  backdrop-filter: blur(5px);
}

.sidebar ul li {
  padding: 0;
}

.sidebar ul li a {
  display: block;
  position: relative;
  padding: 1rem 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  word-spacing: -0.3ch;
  color: rgba(145, 145, 145, 1);
  text-decoration: none;
  transition: .1s linear all;
}

.sidebar ul li a {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.sidebar ul li:first-child a {
  border-top: 1px solid rgba(0,0,0,0.1);
}

.sidebar ul li a:hover {
  color: var(--black);
  /* transform: translateX(0.125rem); */
}

.sidebar ul li a:active {
  color: var(--black);
  /* transform: translateX(0.125rem); */
}

.sidebar ul li.current a {
  color: var(--black);
}

.sidebar ul li.current a:after {
  content: '';
  display: block;
  position: absolute;
  top: calc(50% - 0.75rem);
  left: -3.5rem;
  background: url('images/arrow-right.svg') center center no-repeat;
  background-size: contain;
  width: 25px;
  height: 25px;
  transition: .2s linear all;
}

.sidebar-toggle-icon {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: 30px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 16px;
  background: url('images/icon-lines.svg') center center no-repeat;
  border-radius: 2px;
  transition: .1s linear all;
}

.sidebar-toggle-icon:hover {
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.sidebar-toggle-icon span {
  display: none;
}

body.email-gated .sidebar ol li:not(:first-child) a,
body.email-gated .sidebar ol li:not(:first-child).current a:after {
  background: url('images/lock.svg') 0 0 no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  cursor: not-allowed;
}

#signup {
  max-height: 1000px; /* adjust based on content height */
  transition: max-height 0.5s ease; /* prep for collapse */
}

#signup.shrink-out {
  overflow: hidden;
  transition:
    max-height 0.5s ease,
    opacity 0.5s ease,
    margin 0.5s ease,
    padding 0.5s ease;
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
}




/* Content area */

.main-content-wrapper .content section.intro-transition-graphic {
  padding: 0 8px;
}

.main-content-wrapper .content section.intro-transition-graphic img {
  border-radius: 16px;
}

.big-number {
  position: relative;
  left: -7.75rem;
  top: -3rem;
  
  position: absolute;
  left: -6rem;
  top: 4rem;
  
  font-family: 'IBM Plex Mono', monospace;
  font-size: 20rem;
  font-weight: 600;
  line-height: 1;
  text-wrap: nowrap;
}

#intro .big-number {
  top: 9.75rem;
  top: 3.75rem;
}

.big-number span {
  position: relative;
}

.big-number span:after {
  content: '';
  display: inline-block;
  position: absolute;
  top: 20%;
  left: 0;
  width: 100%;
  height: 64%;
  border-radius: 1rem;
  background: rgba(231, 215, 179, 0.61);
}

.big-number.big-number--blue span:after {
  background: rgba(211, 220, 241, 0.59);
}

.big-number.big-number--white span:after {
  background: rgba(255, 255, 255, 0.6);
}

.content-grid-right-50 {
  display: flex;
  flex-direction: column;
  padding-left: 50%;
}

.main-content-wrapper .content section {
  padding: 6rem 0;
}

.main-content-wrapper .content section:first-child {
  padding-top: 0;
}

.main-content-wrapper .content .grid-fill {
  max-width: 100%;
}

.main-content-wrapper .content .grid-fill_padding-right {
  max-width: 100%;
  padding-right: 2rem;
}

.main-content-wrapper .content .img-fill {
  display: block;
  width: 100%;
}

.main-content-wrapper .content .img-fill.img-fill--padded {
  margin: 8rem 0;
}

.main-content-wrapper .content .img-fill.img-feeders-offset {
  position: relative;
  left: -12px;
  width: 101%;
  max-width: none;
}

.content-section {
  position: relative;
  overflow: hidden;
}

.content-grid-offset {
  padding-right: 10%;
}

/* Hide content sections that aren't included in the preview */
.content-section {
  display: none;
}

/* Show preview section all the time */
.content-section--preview {
  display: block;
}

/* Show other sections once unlocked with email */
body.email-added .content-section {
  display: block;
}

.content-section p strong {
  color: var(--black);
  opacity: 1;
}

.content-section-heading {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.content-section-heading .flex {
  align-items: center;
}

.content-section-heading svg.logo, .content-section-heading img.logo {
  width: auto;
  height: 24px;
  margin-right: 2rem;
}

.content-section-heading_text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5em;
}

#graphite .content-section-heading div {
  background: linear-gradient(90deg, rgba(145, 53, 255, 0.4) 0%, rgba(25, 187, 255, 0.4) 100%), #FFFFFF;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.content-section--lightblue {
  background: rgba(196, 210, 242, 0.5);
}



/* Intro */

.section-author {
  display: flex;
  align-items: flex-end;
  width: fit-content;
  margin-top: 4rem;
  margin-bottom: 1rem;
  font-size: 0.825rem;
  font-weight: 400;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
}

.section-author img {
  width: 6rem;
  margin-right: 2rem;
}

.section-author img.img-grayscale {
  filter: grayscale(1) contrast(1.2);
}

.section-author--small {
  
}

.section-author--small img {
  width: 3rem;
}

.content-section--intro_sidebar {
  margin-top: 1.5rem;
}

.pullquote {
  margin-bottom: 2rem;
}

.pullquote-box {
  background: #FCF3E3;
  background: var(--pink);
  padding: 1rem 2.5rem;
  border-radius: 8px;
}

.pullquote-box.pullquote-box--pink {
  background: var(--pink);
}

.pullquote-box--blue {
  background: var(--blue);
}

.pullquote-box--moss {
  background: var(--moss);
}

.pullquote-box--gold {
  background: var(--gold);
}

.pullquote-box--brown {
  background: var(--brown);
}

.pullquote-padded {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.pullquote p {
  width: 100%;
  max-width: 100% !important;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0;
  word-spacing: -6px;
}

.pullquote.pullquote--poppins p {
  font-family: 'Poppins';
  font-size: 1.5rem;
  font-weight: 300;  
  word-spacing: 0;
}

.highlight-section {
  padding: 1rem 4rem 2rem 4rem;
  background: #FCF3E3;
  border-radius: 8px;
}




/* Interview */

.QA-item {
  margin-bottom: 4rem;
}

.QA-question {
  font-weight: 500;
}

.QA-question,
.QA-answer {
  clear: both;
}

.QA-question:before,
.QA-answer:before {
  content: 'Q:';
  display: inline;
  font-weight: 500;
  margin-right: 0.25rem;
}

.QA-answer:before {
  content: 'A:';
}






/* History / Timeline */

.timeline-wrapper {
  margin-top: 4rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  min-height: 250px;
}

.timeline-item .col-span-4 {
  padding-bottom: 4rem;
}

.timeline-item:last-child .col-span-4 {
  padding-bottom: 0;
}

.timeline-year {
  display: flex;
  height: 100%;
  align-items: center;
  flex-direction: column;
}

.timeline-year--value {
  writing-mode: sideways-lr;
  text-orientation: mixed;
  white-space: nowrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 4.5rem;
  font-weight: 500;
  line-height: 1;
  word-spacing: -0.3ch;
  margin: 0.5rem auto;
}

.timeline-year--bar {
  display: flex;
  flex: 1;
  position: relative;
  left: 2px;
  width: 3.325em;
  background: #E0E7F8;
  border-radius: 10px;  
  
  transform-origin: top;
  transform: scaleY(0);
} 

/* .timeline-year:after {
  content: '';
  display: flex;
  flex: 1;
  position: relative;
  left: 2px;
  width: 3.325em;
  background: #E0E7F8;
  border-radius: 10px;
} */

.timeline-item h3 {
  margin-top: 0;
}

.timeline-item .pullquote {
  margin-top: 3rem;
}

.timeline-item .pullquote p {
  font-size: 1.25rem;
}

.timeline-item .pullquote .section-author {
  margin-top: 2rem;
}

.timeline-year--bar--moss {
  background: #C2CFD2;
}

.timeline-year--bar--yellow {
  background: #E5D2A9;
}

.timeline-year--bar--brown {
  background: #CAB6A4;
}





/* Filters */

.filters {
  margin: 2rem auto;
}

.filter-bar {
  display: flex;
  gap: 1rem;
}

.filter-group label {
  display: block;
}

.filter-group .segmented-control label {
  display: inline;
}

.custom-select-wrapper {
  position: relative;
  display: inline-block;
}

select {
  appearance: none; /* Remove default styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 8px;
  border: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 1);
  background: transparent url('images/icon-dropdown-arrow.svg') center right 12px no-repeat;
  color: var(--black);
  font-size: 12px;
  padding: 0.5em 2.5em 0.5em 1em;
  margin: 0 0 0.5rem;
  cursor: pointer;
  transition: .15s ease-out background-color;
}

select:hover {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 1);
}

fieldset {
  border: none;
  padding: 0.25rem 0;
}

.segmented-control {
  margin-top: 4px;
}

.segmented-control input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.segmented-control label {
  display: inline-block;
  padding: 0.6em 1em;
  border-radius: 10px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: -1px -1px 0px 0px rgba(0, 0, 0, 0.30) inset;
  backdrop-filter: blur(4px);
  color: var(--black);
  cursor: pointer;
  transition: .15s ease-out background-color;
}

.segmented-control input[type="radio"]:checked + label {
  background: var(--yellow); /* highlighted active color */
  color: var(--black);
  font-weight: 500;
}

.segmented-control label:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.filter-group--reset {
  position: relative;
  top: 30px;
}



/* Debug */

.debug {
  opacity: 0.1;
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  padding: 1rem;
  text-align: right;
}  

.debug .btn {
  display: inline-block;
  background: #000;
  color: #fff;
  margin: 0 0 1rem 1rem;
}

.debug:hover {
  opacity: 1;
}

.debug-panel {
  display: none;
}

.debug-panel.show {
  display: block;
}



/* Footer */

footer {
  position: relative;
  z-index: 3;
  padding: 4rem 0 1rem;
  margin-top: 6rem;
  background: #D3DCF1;
}

footer .grid-container {
  align-items: end;
}

footer td {
  vertical-align: bottom;
}

.footer-logos a {
  display: inline-block;
  transition: linear .2s opacity;
  text-decoration: none;
}

.footer-logos a:hover {
  opacity: 0.5;
}

.footer-logos img {
  display: inline;
}

.footer-logos img:first-child {
  margin-right: 1.75rem;
}

footer p {
  margin: 0;
}

.footer-data {
  margin-bottom: 6rem;
}

.footer-data p {
  /* font-size: 0.875rem;
  opacity: 0.75; */
}

.footer-data a {
  color: var(--black);
}


/* Email Gate */

.email-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
}

.email-gate.show {
  opacity: 1;
  pointer-events: auto;
}

/* Overlay blur background */
.email-gate-overlay {
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: all 0.3s ease;
}

/* Animate in when gate is shown */
.email-gate.show .email-gate-overlay {
  opacity: 1;
}

.email-gate-content {
  background: var(--white);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
  padding: 3.5rem 4rem 3rem 4rem;
  width: 100%;
  max-width: 800px;
  max-height: 100%;
  overflow: scroll;
  border-radius: 32px;
  position: relative;
  z-index: 2;

  opacity: 0;
  transform: translateY(40px);
  transition: all 0.3s ease 0.1s;
}

.email-gate.show .email-gate-content {
  opacity: 1;
  transform: translateY(0);
}

.email-gate-content h2 {
  font-size: 3.25rem;
  margin: 0;
}

.email-gate-content p {
  margin: 0.5rem 0 0 0;
}

.email-signup-disclaimer {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
}

.close-gate {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

#email-form {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.email-gate-content input[type="email"] {
  padding: 0.5rem;
  margin: 1rem 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.1);
  color: var(--black);
  border: none;
  backdrop-filter: blur(12px);
  width: 100%;
}

.email-gate-content input[type="email"]::placeholder {
}

.email-gate-content input[type="email"]:active,
.email-gate-content input[type="email"]:focus {
  outline: 1px solid var(--white-t50);
}

.email-gate-content button[type="submit"] {
  padding: 0.5rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.toast {
  position: fixed;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 5;
  bottom: 2rem;
  right: 2rem;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  color: var(--black);
  padding: 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 3rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast.hidden {
  display: none;
}




/* Charts */

.chart-block {
  margin-bottom: 8rem;
}

.chart-large-text {
  font-size: 3rem;
  font-weight: 200;
  margin: 0;
}

.chart-heading p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
}

.chart-caption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
}

.multiply {
  mix-blend-mode: multiply;
}

.chart-container {
  padding: 3rem 30px;
  margin-bottom: 0.5rem;
  border-radius: 16px;
}

.chart-container--margin {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.chart-container--tan {
  background: #FCF3E3;
}

.chart-container--pink {
  background: rgba(255, 222, 222, 0.4);
}

.icon-grid-center {
  display: flex;
  justify-content: center; 
  margin-top: 1rem;
}

.icon-grid-left {
  display: flex;
  justify-content: flex-start; 
  margin-top: 1rem;
}

.chart-color-dot {
  width: 16px;
  height: 16px;
  border-radius: 16px;
  background: #fff;
}

.chart-legend-bars td:first-child {
  white-space: nowrap;
  width: 1%;
  padding-right: 1rem;
}

.chart-color-bar {
  width: 100px;
  height: 20px;
  border-radius: 4px;
}

.dot--blue    { background: #A0B9E6;}
.dot--orange  { background: #CC9C7C;}
.dot--pink    { background: #FFD2D2;}
.dot--green   { background: rgba(69, 125, 122, 0.5);}
.dot--moss    { background: #B0BB88;}
.dot--sky     { background: #C4D2F2;}
.dot--yellow  { background: #F8D494;}
.dot--rust    { background: rgba(178, 72, 74, 0.5);}


.chart-box {
  transition: ease .2s transform;
  transform-origin: bottom center;
}

.chart-box:hover {
  transform: translateY(-2px) rotate(-1deg);
}





/* receipt */
:root {
  --triangle-size: 6px;
}

.receipt {
  background:
    linear-gradient(135deg, transparent calc(var(--triangle-size) * 1.42), white calc(var(--triangle-size) * 1.42 + 0.01px)) top left,
    linear-gradient(45deg, white calc(var(--triangle-size) * 0.7), transparent calc(var(--triangle-size) * 0.7 + 0.01px)) top left,
    linear-gradient(135deg, white calc(var(--triangle-size) * 0.7), transparent calc(var(--triangle-size) * 0.7 + 0.01px)) bottom left,
    linear-gradient(45deg, transparent calc(var(--triangle-size) * 1.42), white calc(var(--triangle-size) * 1.42 + 0.01px)) bottom left;
  background-repeat: repeat-x;
  background-size: calc(var(--triangle-size) * 2) var(--triangle-size);
  padding: var(--triangle-size) 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  margin: 3rem 0 2rem;
}

.receipt ul {
  background: #fff;
  color: rgba(0,0,0,0.6);
  padding: 3rem;
  list-style: none;
  font-family: 'IBM Plex Mono', monospace;
}

.receipt ul li {
  margin-bottom: 1rem;
}

.receipt ul strong {
  color: #000;
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: rgba(34, 34, 34, 1);
}

th {
  text-align: left;
}

th, td {
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 0.75rem 0;
  vertical-align: top;
}

.table-comp th:nth-child(2),
.table-comp td:nth-child(2),
.table-comp th:nth-child(3),
.table-comp td:nth-child(3) {
  width: 20%;
}

.table-YOE th:nth-child(2),
.table-YOE td:nth-child(2),
.table-YOE th:nth-child(3),
.table-YOE td:nth-child(3),
.table-YOE th:nth-child(4),
.table-YOE td:nth-child(4),
.table-YOE th:nth-child(5),
.table-YOE td:nth-child(5) {
  width: 18.75%;
  text-align: right;
}

tr:hover {
  background: rgba(0,0,0,0.0125);
}

tr:has(th):hover {
  background: transparent;
}

td.indent {
  padding-left: 1rem;
}

td.td-line {
  position: relative;
}

td.td-line:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0.875rem;
  width: 1px;
  height: 100%;
  background: rgba(0,0,0,0.25);
}

ul.checklist {
  list-style: none;
  padding: 0;
}

ul.checklist li {
    margin-bottom: 1.5rem;
    background: url(images/icon-check.svg) 0px 6px no-repeat;
    background-size: 18px;
    padding-left: 2rem;
    margin-left: 0;
    position: relative;
}





/* Chart filtering */

.feedercos-table { width: 100%; border-collapse: collapse; }
.feedercos-table td { vertical-align: middle; }
.feedercos-table td:nth-child(1) { width: 12rem; padding-right: 0.5rem; }
.feedercos-table td:nth-child(2) { width: auto; }
.feedercos-table td:nth-child(3) { width: 4rem; text-align: right; font-variant-numeric: tabular-nums; }

/* Bar */
.barwrap {
  height: 16px;
  background: rgba(181, 155, 155, 0.2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.bar {
  --w: 0%;
  width: var(--w);
  height: 100%;
  background: #A0B9E6;
  border-radius: inherit;
  transition: width 420ms cubic-bezier(.2,.7,.2,1);
}

/* Optional: tone down 0-count rows later when we add filters */
.row--zero { opacity: .45; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bar { transition: none; }
}





.placeholder {
  position: relative;
}

.placeholder:after {
  content: 'Placeholder';
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  color: #000;
  font-weight: 600;
  font-size: 4rem;
}






@media screen and (max-width: 1000px) {

  .grid-container {
    grid-template-columns: 1fr; /* Collapse to 1 column */
    padding: 0 30px;
    gap: 0px;
  }
  .col-span-1, .col-span-2, .col-span-3, .col-span-4, .col-span-5, .col-span-6,
  .col-span-7, .col-span-8, .col-span-9, .col-span-10 {
    grid-column: 1 / -1; /* Override spans to full-width */
  }
  
  .content-grid-offset {
    padding-right: 0;
  }
  
  .chart-container {
    padding: 2rem 30px 1rem;
  }
  
  .chart-grid-data-source {
    order: 99;
  }
  
  h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 0;
  }
  
  h2 {
    font-size: 3rem;
  }
  
  h3 {
    font-size: 1.325rem;
  }
  
  .timeline-item h3 {
    font-size: 1.75rem;
  }
  
  .big-number {
    position: relative;
    top: 0;
    left: -3rem;
    font-size: 5rem;
    margin-bottom: 2rem;
  }
  
  #intro .big-number {
    top: 0;
    margin-top: 2rem;
  }
  
  .header-title {
    padding: 0;
  }
  
/*   .sidebar {
    background: #fff;
    top: 0;
    margin-left: 0;
  } */
  
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    margin-left: 0;
    align-items: flex-start;
    z-index: 5;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.075);
    overflow: scroll;
    
    background: #fff; /* Sidebar background */
    transform: translateX(-100%); /* Start off-screen */
    opacity: 1;
    transition: transform 0.3s ease;
  }
  
  .sidebar:not(.sidebar-hidden) {
    transform: translateX(0); /* Slide in when visible */
  }
  
  .sidebar-list {
    max-width: 100%;
    margin-top: 6rem;
    margin-bottom: 2rem;
  }
  
  .sidebar ul {
    padding: 0 1.5rem;
  }
  
  .sidebar-toggle-icon {
    top: 24px;
    z-index: 5;
    transform: translateY(0);
    left: 24px;
  }
  
  .highlight-section {
    padding: 1rem 2rem 1rem 3rem;
  }
  
  .main-content-wrapper .content section {
    padding: 3rem 0;
  }
  
  .main-content-wrapper .content .img-fill {
    display: block;
    margin: 3rem 0;
  }
  
  .main-content-wrapper .content .img-fill.img-fill--padded {
    margin: 2rem 0;
  }
  
  .main-content-wrapper .content .img-fill.img-feeders-offset {
    left: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .timeline-item .col-span-2 {
    grid-column: span 1;
  }
  
  .timeline-item .col-span-4 {
    grid-column: span 5;
  }
  
  .timeline-year {
    align-items: flex-start;
  }
  
  .timeline-year--value {
    font-size: 3rem;
  }
  
  .pullquote p {
    font-size: 1.125rem;
  }
  
  .pullquote-padded {
    padding: 0;
  }
  
  .timeline-item .pullquote {
    margin-top: 1.5rem;
  }
  
  .timeline-item .pullquote p {
      font-size: 1.125rem;
  }
  
  .pullquote-box {
    padding: 0.125rem 1.5rem;
  }

  .timeline-item .pullquote.pullquote-box p {
    font-size: 1rem;
  }
  
  .email-gate-content {
    padding: 1.5rem;
    border-radius: 24px;
  }
  
  .email-gate-content h2 {
    font-size: 2.5rem;
    padding-right: 5rem;
  }
  
  #email-form {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  
  .receipt ul {
    padding: 2rem;
  }
  
  .icon-grid-center {
    justify-content: flex-start;
    margin-top: 0;
    margin-bottom: 1rem;
  }
  
  .icon-grid-left {
    margin-top: 0;
    margin-bottom: 1rem;
  }
  
  .placeholder:after {
    font-size: 2rem;
  }
  
  footer {
    padding: 2rem 0 1rem;
    margin-top: 0;
  }
  
  .footer-data p {
   font-size: 0.875rem;
  }
  
  .footer-logos {
    margin-bottom: 2rem;
  }
  
  .feedercos-table td:nth-child(1) {
    width: 6rem;
  }
  
}




@media (max-height: 800px) {
  
  .sidebar ul li a {
    padding: 0.65rem 0;
  }
  
}




.hidden {
  display: none;
}
