/* =========================================================
   DATA SCIENCE — JEANETTE DIGITAL LAB
========================================================= */


/* =========================================================
   PAGE ACCENT
========================================================= */

.theme-science {
  --science:
    #ff8062;

  --science-soft:
    rgba(255,128,98,.12);

  --science-line:
    rgba(255,128,98,.25);

  --lime:
    #baff45;
}


/* =========================================================
   HERO
========================================================= */

.science-hero-copy {
  position:
    relative;
}


.science-visual {
  position:
    relative;

  background:
    #0d1114;
}


.science-visual-body {
  position:
    relative;

  overflow:
    hidden;

  background:
    linear-gradient(
      145deg,
      #0d1114,
      #101519
    );
}


/* GRID */

.science-grid {
  position:
    absolute;

  inset:
    0;

  background-image:
    linear-gradient(
      rgba(255,255,255,.035)
      1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.035)
      1px,
      transparent 1px
    );

  background-size:
    42px 42px;

  mask-image:
    linear-gradient(
      to bottom,
      transparent,
      black 20%,
      black 80%,
      transparent
    );
}


/* AXES */

.science-axis {
  position:
    absolute;

  background:
    rgba(255,255,255,.12);
}


.science-axis-x {
  left:
    12%;

  right:
    12%;

  bottom:
    24%;

  height:
    1px;
}


.science-axis-y {
  top:
    14%;

  bottom:
    18%;

  left:
    19%;

  width:
    1px;
}


/* POINTS */

.science-point {
  position:
    absolute;

  width:
    9px;

  height:
    9px;

  border-radius:
    50%;

  background:
    var(--science);

  box-shadow:
    0 0 0 5px
    rgba(255,128,98,.08);
}


.point-1 {
  left:
    25%;

  top:
    61%;
}


.point-2 {
  left:
    34%;

  top:
    52%;
}


.point-3 {
  left:
    43%;

  top:
    57%;
}


.point-4 {
  left:
    51%;

  top:
    41%;
}


.point-5 {
  left:
    62%;

  top:
    35%;
}


.point-6 {
  left:
    69%;

  top:
    30%;
}


.point-7 {
  left:
    78%;

  top:
    20%;
}


/* TREND */

.science-path {
  position:
    absolute;

  width:
    58%;

  height:
    150px;

  left:
    23%;

  top:
    31%;

  border-top:
    2px solid var(--lime);

  transform:
    rotate(-20deg)
    skewX(12deg);

  opacity:
    .65;
}


/* HERO CORE */

.science-visual
.visual-core {
  position:
    absolute;

  left:
    50%;

  top:
    50%;

  transform:
    translate(-50%,-50%);

  width:
    135px;

  height:
    135px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--science);

  border-radius:
    50%;

  background:
    rgba(9,11,13,.88);

  color:
    var(--science);

  font-family:
    "DM Mono",
    monospace;

  font-size:
    .62rem;

  letter-spacing:
    .1em;
}


/* NOTES */

.science-note {
  position:
    absolute;

  min-width:
    105px;

  padding:
    10px 12px;

  border:
    1px solid rgba(255,255,255,.12);

  background:
    rgba(13,17,20,.92);

  color:
    #6f7880;

  font-family:
    "DM Mono",
    monospace;

  font-size:
    .48rem;
}


.science-note strong {
  display:
    block;

  margin-top:
    3px;

  color:
    #d2d7da;

  font-size:
    .66rem;
}


.note-a {
  left:
    7%;

  top:
    13%;
}


.note-b {
  right:
    7%;

  bottom:
    14%;
}


.science-coordinate {
  position:
    absolute;

  left:
    18px;

  bottom:
    14px;

  color:
    #566067;

  font-family:
    "DM Mono",
    monospace;

  font-size:
    .46rem;

  letter-spacing:
    .06em;
}


/* =========================================================
   PROJECT LIST SPACING
========================================================= */

.project-list {
  margin-top:
    60px;
}


.project-row + .project-row {
  margin-top:
    34px;
}


/* =========================================================
   GENERIC PROJECT FACTS
========================================================= */

.project-facts {
  margin-top:
    25px;

  display:
    grid;

  grid-template-columns:
    repeat(3,1fr);

  border-top:
    1px solid var(--line);

  border-left:
    1px solid var(--line);
}


.project-facts > div {
  min-height:
    110px;

  padding:
    14px;

  border-right:
    1px solid var(--line);

  border-bottom:
    1px solid var(--line);
}


.project-facts span {
  display:
    block;

  color:
    #69737a;

  font-family:
    "DM Mono",
    monospace;

  font-size:
    .47rem;
}


.project-facts strong {
  display:
    block;

  margin-top:
    9px;

  color:
    #f3f1eb;

  font-size:
    1.6rem;

  line-height:
    1;
}


.project-facts small {
  display:
    block;

  margin-top:
    7px;

  color:
    #727c83;

  font-size:
    .63rem;
}


/* =========================================================
   EMOTIONTEXT PROJECT
========================================================= */

.emotiontext-project {
  position:
    relative;

  border-color:
    rgba(255,255,255,.14);
}


.emotiontext-project::before {
  content:
    "02";

  position:
    absolute;

  right:
    18px;

  top:
    14px;

  z-index:
    5;

  color:
    rgba(255,255,255,.06);

  font-family:
    "DM Mono",
    monospace;

  font-size:
    4rem;

  pointer-events:
    none;
}


/* =========================================================
   PRODUCT PREVIEW
========================================================= */

.emotiontext-preview {
  position:
    relative;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    38px;

  overflow:
    hidden;

  background:
    linear-gradient(
      145deg,
      #0b1013,
      #10171b
    );
}


.emotiontext-preview::before {
  content:
    "";

  position:
    absolute;

  width:
    480px;

  height:
    480px;

  left:
    -170px;

  bottom:
    -200px;

  border:
    1px solid rgba(186,255,69,.08);

  border-radius:
    50%;
}


.emotiontext-preview::after {
  content:
    "";

  position:
    absolute;

  width:
    450px;

  height:
    450px;

  right:
    -220px;

  top:
    -200px;

  background:
    radial-gradient(
      circle,
      rgba(255,128,98,.09),
      transparent 68%
    );
}


/* =========================================================
   PRODUCT WINDOW
========================================================= */

.emotion-product {
  width:
    min(
      94%,
      800px
    );

  position:
    relative;

  z-index:
    2;

  border:
    1px solid rgba(255,255,255,.17);

  background:
    #0b1013;

  box-shadow:
    0 40px 100px
    rgba(0,0,0,.42);

  transform:
    rotate(-1deg);

  transition:
    transform .3s ease,
    border-color .3s ease;
}


.emotiontext-project:hover
.emotion-product {
  transform:
    rotate(0deg)
    translateY(-4px);

  border-color:
    rgba(186,255,69,.3);
}


/* WINDOW BAR */

.emotion-product-bar {
  min-height:
    44px;

  padding:
    0 15px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  border-bottom:
    1px solid rgba(255,255,255,.1);

  color:
    #667078;

  font-family:
    "DM Mono",
    monospace;

  font-size:
    .48rem;
}


.emotion-product-bar
span:first-child {
  color:
    var(--lime);
}


/* =========================================================
   WINDOW BODY
========================================================= */

.emotion-product-body {
  min-height:
    430px;

  display:
    grid;

  grid-template-columns:
    60px 1fr;
}


/* =========================================================
   MINI NAV
========================================================= */

.emotion-mini-nav {
  padding:
    16px 12px;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  gap:
    16px;

  border-right:
    1px solid rgba(255,255,255,.09);
}


.mini-logo {
  width:
    31px;

  height:
    31px;

  display:
    grid;

  place-items:
    center;

  margin-bottom:
    10px;

  background:
    var(--lime);

  color:
    #090b0d;

  font-family:
    "DM Mono",
    monospace;

  font-size:
    .53rem;

  font-weight:
    500;
}


.emotion-mini-nav > span {
  width:
    21px;

  height:
    4px;

  background:
    #293138;
}


.emotion-mini-nav
span.active {
  background:
    var(--lime);
}


/* =========================================================
   DASHBOARD
========================================================= */

.emotion-dashboard {
  min-width:
    0;

  padding:
    22px;
}


.emotion-dashboard-heading {
  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    20px;
}


.emotion-dashboard-heading
span {
  color:
    #68737a;

  font-family:
    "DM Mono",
    monospace;

  font-size:
    .46rem;
}


.emotion-dashboard-heading h3 {
  margin-top:
    5px;

  color:
    #ecede8;

  font-size:
    1.35rem;

  letter-spacing:
    -.04em;
}


.dataset-status {
  display:
    flex;

  align-items:
    center;

  gap:
    6px;

  padding:
    6px 8px;

  border:
    1px solid rgba(186,255,69,.18);

  color:
    var(--lime) !important;

  font-size:
    .43rem !important;
}


.dataset-status i {
  width:
    5px;

  height:
    5px;

  border-radius:
    50%;

  background:
    var(--lime);
}


/* =========================================================
   DATASET STATS
========================================================= */

.emotion-stats {
  margin-top:
    20px;

  display:
    grid;

  grid-template-columns:
    repeat(3,1fr);

  gap:
    8px;
}


.emotion-stats > div {
  min-height:
    85px;

  padding:
    11px;

  border:
    1px solid rgba(255,255,255,.09);

  background:
    rgba(255,255,255,.012);
}


.emotion-stats span {
  display:
    block;

  color:
    #636e75;

  font-family:
    "DM Mono",
    monospace;

  font-size:
    .42rem;
}


.emotion-stats strong {
  display:
    block;

  margin-top:
    13px;

  color:
    var(--lime);

  font-size:
    1.55rem;

  line-height:
    1;
}


/* =========================================================
   EMOTION CHART
========================================================= */

.emotion-chart-area {
  margin-top:
    9px;

  padding:
    13px;

  border:
    1px solid rgba(255,255,255,.09);
}


.chart-heading {
  display:
    flex;

  justify-content:
    space-between;

  color:
    #667078;

  font-family:
    "DM Mono",
    monospace;

  font-size:
    .41rem;
}


.emotion-bars {
  height:
    135px;

  margin-top:
    18px;

  display:
    grid;

  grid-template-columns:
    repeat(6,1fr);

  gap:
    7px;

  align-items:
    end;
}


.emotion-bar-item {
  height:
    100%;

  display:
    flex;

  flex-direction:
    column;

  justify-content:
    flex-end;

  gap:
    7px;

  text-align:
    center;
}


.emotion-bar {
  width:
    100%;

  display:
    block;

  background:
    linear-gradient(
      to top,
      var(--science),
      var(--lime)
    );

  opacity:
    .82;
}


.emotion-bar-item small {
  color:
    #5d676e;

  font-family:
    "DM Mono",
    monospace;

  font-size:
    .38rem;
}


.bar-anger {
  height:
    86%;
}


.bar-disgust {
  height:
    91%;
}


.bar-fear {
  height:
    76%;
}


.bar-happy {
  height:
    70%;
}


.bar-sad {
  height:
    81%;
}


.bar-surprise {
  height:
    69%;
}


/* =========================================================
   MODEL ROW
========================================================= */

.emotion-model-row {
  min-height:
    72px;

  margin-top:
    9px;

  padding:
    12px;

  display:
    grid;

  grid-template-columns:
    1fr auto;

  gap:
    20px;

  align-items:
    center;

  border:
    1px solid rgba(255,255,255,.09);
}


.emotion-model-row span {
  display:
    block;

  color:
    #687279;

  font-family:
    "DM Mono",
    monospace;

  font-size:
    .4rem;
}


.emotion-model-row strong {
  display:
    block;

  margin-top:
    5px;

  color:
    #d6dadd;

  font-size:
    .67rem;
}


.emotion-model-score {
  text-align:
    right;
}


.emotion-model-score strong {
  color:
    var(--lime);

  font-size:
    1.3rem;
}


/* =========================================================
   PROJECT COPY
========================================================= */

.emotiontext-copy {
  position:
    relative;
}


.project-number {
  margin-bottom:
    11px;

  color:
    #5e686f;

  font-family:
    "DM Mono",
    monospace;

  font-size:
    .5rem;
}


.emotiontext-copy
.project-type {
  color:
    var(--science);
}


.project-detail {
  margin-top:
    12px !important;

  color:
    #808990 !important;

  font-size:
    .91rem !important;

  line-height:
    1.7 !important;
}


/* =========================================================
   EMOTION FACTS
========================================================= */

.emotion-facts strong {
  color:
    var(--lime);
}


/* =========================================================
   CLASS LIST
========================================================= */

.emotion-class-list {
  margin-top:
    19px;

  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    6px;
}


.emotion-class-list span {
  padding:
    6px 8px;

  border:
    1px solid rgba(255,128,98,.18);

  color:
    #aaaeb0;

  font-family:
    "DM Mono",
    monospace;

  font-size:
    .48rem;
}


/* =========================================================
   DATASET VERSIONS
========================================================= */

.dataset-versions {
  margin-top:
    19px;

  display:
    grid;

  grid-template-columns:
    repeat(4,1fr);

  border-top:
    1px solid var(--line);

  border-left:
    1px solid var(--line);
}


.dataset-version {
  min-height:
    68px;

  padding:
    10px;

  border-right:
    1px solid var(--line);

  border-bottom:
    1px solid var(--line);
}


.dataset-version span {
  display:
    block;

  color:
    #566168;

  font-family:
    "DM Mono",
    monospace;

  font-size:
    .4rem;
}


.dataset-version strong {
  display:
    block;

  margin-top:
    8px;

  color:
    #b8bec2;

  font-family:
    "DM Mono",
    monospace;

  font-size:
    .48rem;
}


/* =========================================================
   PRODUCT LINK
========================================================= */

.emotion-product-link {
  display:
    inline-flex;

  align-items:
    center;

  min-height:
    44px;

  margin-top:
    25px;

  padding:
    0 14px;

  border:
    1px solid rgba(186,255,69,.25);

  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}


.emotion-product-link:hover {
  background:
    var(--lime);

  color:
    #090b0d;

  transform:
    translateY(-2px);
}


.prototype-note {
  display:
    block;

  max-width:
    360px;

  margin-top:
    13px;

  color:
    #626c73;

  font-family:
    "DM Mono",
    monospace;

  font-size:
    .47rem;

  line-height:
    1.55;
}


/* =========================================================
   END LABEL
========================================================= */

.end-label {
  display:
    block;

  margin-bottom:
    14px;

  color:
    var(--science);

  font-family:
    "DM Mono",
    monospace;

  font-size:
    .55rem;

  letter-spacing:
    .08em;
}


/* =========================================================
   TABLET
========================================================= */

@media(max-width:1100px) {

  .emotion-product {
    width:
      100%;
  }


  .dataset-versions {
    grid-template-columns:
      repeat(2,1fr);
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:700px) {

  .science-axis-x,
  .science-axis-y,
  .science-path {
    opacity:
      .6;
  }


  .science-note {
    min-width:
      82px;

    font-size:
      .4rem;
  }


  .emotiontext-preview {
    padding:
      18px 10px;
  }


  .emotion-product {
    width:
      100%;

    transform:
      none;
  }


  .emotiontext-project:hover
  .emotion-product {
    transform:
      none;
  }


  .emotion-product-body {
    grid-template-columns:
      1fr;
  }


  .emotion-mini-nav {
    min-height:
      50px;

    padding:
      10px;

    flex-direction:
      row;

    border-right:
      0;

    border-bottom:
      1px solid rgba(255,255,255,.09);
  }


  .mini-logo {
    margin:
      0 10px 0 0;
  }


  .emotion-dashboard {
    padding:
      14px;
  }


  .emotion-dashboard-heading {
    flex-direction:
      column;
  }


  .emotion-stats {
    grid-template-columns:
      1fr;
  }


  .emotion-stats > div {
    min-height:
      67px;
  }


  .emotion-stats strong {
    margin-top:
      6px;
  }


  .emotion-bars {
    height:
      115px;

    gap:
      4px;
  }


  .emotion-model-row {
    grid-template-columns:
      1fr;
  }


  .emotion-model-score {
    text-align:
      left;
  }


  .project-facts {
    grid-template-columns:
      1fr;
  }


  .dataset-versions {
    grid-template-columns:
      repeat(2,1fr);
  }


  .emotion-class-list span {
    font-size:
      .43rem;
  }

}