
/* =========================================
   NEON IDEAS — CASE STUDY CSS
   Typography aligned with main.css
   Font: Instrument Sans
========================================= */

#project {
  --case-bg: #020219;
  --case-surface: #11112e;
  --case-accent: #6bbe46;
  --case-text: #fff;
  --case-rule: rgba(255,255,255,.18);
  --case-content: 1500px;
  --case-gutter: clamp(20px, 6vw, 100px);

  width: 100%;
  min-width: 0;
  overflow: clip;
  background: var(--case-bg);
  color: var(--case-text);

  font-family: 'Instrument Sans', sans-serif !important;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: normal;
}

#project,
#project *,
#project *::before,
#project *::after {
  box-sizing: border-box;
}

#project figure,
#project dl,
#project dd {
  margin: 0;
}

#project img {
  display: block;
  max-width: 100%;
}

/* =========================================
   TYPOGRAPHY
========================================= */

/* Common Font Family */
#project h1,
#project h2,
#project h3,
#project h4,
#project p,
#project dt,
#project dd {
  font-family: 'Instrument Sans', sans-serif !important;
}

/* H1 */
#project h1 {
  font-size: 120px;
  font-weight: 700;
  line-height: 96%;
  letter-spacing: -0.01em;
}

/* H2 */
#project h2 {
  font-size: 64px;
  font-weight: 400;
  line-height: 110%;
  letter-spacing: -0.05em;
}

/* H3 */
#project h3 {
  font-size: 30px;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: normal;
}

/* H4 */
#project h4 {
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
}

/* Paragraph */
#project p {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: normal;
  color: inherit;
}

/* =========================================
   INTRO AREA
========================================= */

#project .project-container {
  width: min(
    calc(100% - 2 * var(--case-gutter)),
    var(--case-content)
  );
  margin-inline: auto;
}

#project .project-hero {
  padding: clamp(140px, 7vw, 125px) 0
           clamp(75px, 7vw, 120px);
  background: var(--case-bg);
}

#project .hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.65fr)
    minmax(280px, .75fr);
  gap: clamp(45px, 6vw, 120px);
  align-items: start;
}

#project .project-heading-column {
  min-width: 0;
}

/* Main Case Study Heading */
#project .project-heading-column h1 {
  margin: 0 0 clamp(38px, 5vw, 85px);
  color: #fff;

  font-family: 'Instrument Sans', sans-serif !important;
  font-size: 120px;
  font-weight: 700;
  line-height: 96%;
  letter-spacing: -0.01em;

  text-transform: uppercase;
  overflow-wrap: normal;
}

/* =========================================
   PROJECT FACTS
========================================= */

#project .project-facts {
  width: min(460px, 100%);
}

#project .project-facts > div {
  display: grid;
  grid-template-columns:
    minmax(92px, 32%)
    minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--case-rule);

  font-family: 'Instrument Sans', sans-serif !important;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: normal;
}

#project .project-facts > div:last-child {
  border-bottom: 1px solid var(--case-rule);
}

#project .project-facts dt {
  color: rgba(255,255,255,.78);
  font-weight: 400;
}

#project .project-facts dd {
  min-width: 0;
  color: #fff;
  font-weight: 600;
}

/* =========================================
   RIGHT LOGO CARD
========================================= */

#project .project-aside {
  width: min(100%, 400px);
  justify-self: center;
  min-width: 0;
}

#project .project-brand-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(205px, 17vw, 280px);
  padding: 32px;
  background: var(--case-surface);
  border-inline: 1px solid var(--case-rule);
}

#project .project-brand-card::before,
#project .project-brand-card::after {
  content: "";
  position: absolute;
  left: -30px;
  right: -30px;
  height: 1px;
  background: var(--case-rule);
  pointer-events: none;
}

#project .project-brand-card::before {
  top: 0;
}

#project .project-brand-card::after {
  bottom: 0;
}

#project .project-brand-card img {
  width: min(78%, 210px);
  max-height: 190px;
  height: auto;
  object-fit: contain;
}

/* =========================================
   PROJECT DESCRIPTION
========================================= */

#project .project-summary {
  margin: 0;
  min-height: 176px;
  padding: 28px 24px 24px;
  border-inline: 1px solid var(--case-rule);
  color: #fff;

  font-family: 'Instrument Sans', sans-serif !important;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: normal;
}

/* =========================================
   PROJECT SPACER
========================================= */

#project .project-spacer {
  height: clamp(360px, 37vw, 760px);
  background: var(--case-surface);
}

/* =========================================
   PROJECT GALLERY
========================================= */

#project .project-gallery {
  display: grid;
  gap: 10px;
  background: var(--case-bg);
}

#project .gallery-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#project .gallery-image {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: #171627;
}

#project .gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#project .gallery-pair .gallery-image {
  aspect-ratio: 1.88 / 1;
}

#project .gallery-image-wide {
  aspect-ratio: 1.82 / 1;
}

/* =========================================
   RESPONSIVE TYPOGRAPHY
========================================= */

/* Below 1600px */
@media (max-width: 1600px) {
  #project h1,
  #project .project-heading-column h1 {
    font-size: 100px;
  }
}

/* Below 1399px */
@media (max-width: 1399px) {

  #project h1,
  #project .project-heading-column h1 {
    font-size: 90px;
  }

  #project h2 {
    font-size: 50px;
  }

  #project .hero-grid {
    gap: clamp(35px, 5vw, 80px);
  }
}

/* Below 1199px */
@media (max-width: 1199px) {

  #project {
    font-size: 16px;
  }

  #project h1,
  #project .project-heading-column h1 {
    font-size: 80px;
  }

  #project h2 {
    font-size: 40px;
  }

  #project p,
  #project .project-summary {
    font-size: 16px;
  }

  #project .project-facts > div {
    font-size: 16px;
  }

  #project .hero-grid {
    grid-template-columns:
      minmax(0, 1.25fr)
      minmax(260px, .85fr);
  }

  #project .project-brand-card::before,
  #project .project-brand-card::after {
    left: -18px;
    right: -18px;
  }
}

/* =========================================
   TABLET RESPONSIVE
========================================= */

@media (max-width: 991px) {

  #project {
    --case-gutter: 32px;
  }

  #project .project-hero {
    padding: 76px 0 80px;
  }

  #project .hero-grid {
    grid-template-columns: 1fr;
    gap: 68px;
  }

  #project h1,
  #project .project-heading-column h1 {
    font-size: 60px;
    line-height: 110% !important;
  }

  #project h2 {
    font-size: 36px;
  }

  #project .project-aside {
    justify-self: start;
    width: min(100% - 36px, 480px);
    margin-left: 18px;
  }

  #project .project-facts {
    width: min(520px, 100%);
  }

  #project .project-spacer {
    height: clamp(280px, 40vw, 420px);
  }
}

/* =========================================
   BELOW 767px
========================================= */

@media (max-width: 767px) {

  #project {
    --case-gutter: 20px;
  }

  #project .project-hero {
    padding: 60px 0 65px;
  }

  #project .hero-grid {
    gap: 55px;
  }

  #project h1,
  #project .project-heading-column h1 {
    font-size: 48px;
    line-height: 110% !important;
  }

  #project h2 {
    font-size: 42px;
  }

  #project .project-heading-column h1 {
    margin-bottom: 38px;
    margin-top: 38px;
  }

  #project .project-facts > div {
    padding: 11px 0;
  }

  #project .project-aside {
    width: min(100% - 28px, 440px);
    margin-left: 14px;
  }

  #project .project-brand-card {
    min-height: 190px;
  }

  #project .project-summary {
    min-height: 0;
    padding: 24px 20px;
  }

  #project .project-spacer {
    height: 300px;
  }

  #project .gallery-pair {
    grid-template-columns: 1fr;
  }

  #project .gallery-pair .gallery-image {
    aspect-ratio: 1.75 / 1;
  }

  #project .gallery-image-wide {
    aspect-ratio: 1.35 / 1;
  }

  #project .project-gallery,
  #project .gallery-pair {
    gap: 7px;
  }
}

/* =========================================
   BELOW 575px
========================================= */

@media (max-width: 575px) {

  #project h1,
  #project .project-heading-column h1 {
    font-size: 45px;
  }

  #project h2 {
    font-size: 36px;
  }

  #project h3 {
    font-size: 22px;
  }

  #project p,
  #project .project-summary {
    font-size: 16px;
  }
}

/* =========================================
   BELOW 470px
========================================= */

@media (max-width: 470px) {

  #project h1,
  #project .project-heading-column h1 {
    font-size: 40px;
  }

  #project h2 {
    font-size: 28px;
  }

  #project .project-brand-card::before,
  #project .project-brand-card::after {
    left: -12px;
    right: -12px;
  }

  #project .project-spacer {
    height: 230px;
  }

  #project .gallery-image-wide {
    aspect-ratio: 1.1 / 1;
  }
}
