/* Font Declarations */
@font-face {
  font-family: 'PP Neue Montreal Book';
  src: url('PPNeueMontreal-Book.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'PP Neue Montreal Medium';
  src: url('PPNeueMontreal-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'PP Neue Montreal Bold';
  src: url('PPNeueMontreal-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'PP Neue Montreal Mono';
  src: url('PPNeueMontrealMono-Book.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'PP Editorial New Ultralight';
  src: url('PPEditorialNew-Ultralight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'PP Editorial New';
  src: url('PPEditorialNew-Ultralight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'PP Neue Montreal';
  src: url('PPNeueMontreal-Book.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

:root {
  --primary-color: #666666;
  --secondary-color: #555555;
  --accent-color:   #3a3a3a;
  --bruh: #6e6e6e;
}

* { user-select: text; }

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: #F5F5F5;
  margin: 0;
  width: 100%;
  overflow-x: hidden;
}

blockquote p {
  margin: 0 0 2rem 0;
  font-family: 'PP Editorial New Ultralight', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.02rem;
}

blockquote cite {
  display: block;
  margin-top: 0.75em;
  font-style: normal;
}

.content {
  max-width: 800px;
  margin: 0 auto;
}

.content img {
  max-width: 100%;
  height: auto;
  cursor: pointer;
  display: block;
  margin: 0 0 3rem 0;
  border-radius: 8px;
}

video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.image-section video {
  width: 100%;
  clip-path: inset(0.5rem 0.1rem 0.5rem 0.5rem);
  margin-top: 0;
  vertical-align: top;
}

iframe {
  width: 100%;
  height: 20rem;
  object-fit: cover;
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#lightbox .viewport {
  width: 90vw;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  transition: transform 0.08s ease-out;
  transform-origin: center center;
  cursor: zoom-in;
}

#lightbox img.zoomed {
  transform: scale(2);
  cursor: zoom-out;
}

/* Main container */
.main-container {
  width: 100%;
  margin: 4rem 0;
  padding-bottom: 1rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.image-section {
  width: 100%;
}

.feature-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.content-sections {
  display: flex;
  flex-direction: column;
}

.content-sections h2 {
  font-size: 1.65rem;
  padding-bottom: 0.5rem;
  margin-block: 0;
}

.content-sections p {
  margin-bottom: 0;
}

/* Typography */
a {
  color: var(--primary-color);
  font-family: 'PP Neue Montreal Medium', sans-serif;
  font-size: 1rem;
  line-height: 170%;
  letter-spacing: 0.07rem;
  text-decoration: none;
}

p {
  color: var(--primary-color);
  font-family: 'PP Neue Montreal Book', sans-serif;
  font-size: 1rem;
  line-height: 160%;
  letter-spacing: 0.03rem;
  margin: 0 0 2rem 0;
}

html::selection,
body::selection,
p::selection,
span::selection,
a::selection,
h1::selection,
h2::selection,
h3::selection,
li::selection,
div::selection {
  background: #ccccf5 !important;
  color: #0400ff !important;
}

li {
  color: var(--primary-color);
  font-family: 'PP Neue Montreal Book', sans-serif;
  font-size: 1rem;
  line-height: 170%;
  letter-spacing: 0.07rem;
}

.small {
  color: var(--secondary-color);
  font-family: 'PP Neue Montreal Medium', sans-serif;
  font-size: 0.875rem;
  line-height: 150%;
  letter-spacing: 0.07rem;
}

h1 {
  color: var(--accent-color);
  font-family: 'PP Editorial New Ultralight', serif;
  font-weight: 100;
  font-size: 3.5rem;
  padding: 0 0 0.25rem 0;
  margin: 0;
}

h2 {
  color: var(--accent-color);
  font-family:'PP Editorial New', serif;
  font-weight: 100;
  font-size: 1.75rem;
  letter-spacing: 0.07rem;
  margin: 3rem 0 1.75rem 0;
}

h3 {
  color: var(--bruh);
  font-family: 'PP Neue Montreal Mono', monospace;
  font-weight: 400;
  font-size: 0.9rem;
  margin: 1rem 0 0.25rem 0;
  text-transform: uppercase;
  line-height: 160%;
  letter-spacing: 0.01rem;
}

.cap {
  color: var(--secondary-color);
  font-family: 'PP Editorial New Ultralight', serif;
  font-size: 1.55rem;
  font-weight: 100;
  letter-spacing: 0.03rem;
  margin: 0.75rem 0;
  line-height: 130%;
}

h4 {
  color: var(--secondary-color);
  font-family: 'PP Neue Montreal', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.6rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  margin: 1rem 0 0.25rem 0;
}

h5 {
  color: var(--primary-color);
  font-family: 'PP Neue Montreal', sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 130%;
  letter-spacing: 0.04rem;
}

main h5 {
  margin: 1rem 0 0.5rem 0;
}

:is(h1,h2,h3,h4) {
  scroll-margin-top: 24px;
}

/* Overview Grid */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 1rem 0 3rem 0;
}

.overview-item {
  display: grid;
  gap: 0.25rem;
  justify-content: baseline;
}

.overview-label {
  color: var(--primary-color);
  font-family: 'PP Neue Montreal Mono', monospace;
  font-weight: 400;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.overview-description {
  color: var(--primary-color);
  font-family: 'PP Neue Montreal Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5rem;
  font-weight: 400;
}

.main-content {
  margin: 2rem;
  padding: 0;
}

.layout {
  display: block;
  margin: 2rem 1rem;
  padding: 0 1rem;
}

.sidenav {
  display: none;
}

/* Full-bleed sections */
.full-bleed {
  width: 100%;
}

.full-bleed img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.animate-highlight {
  display: inline;
  line-height: 1.6;
  padding: 0.2rem 0.3rem;
  border-radius: 2px;
}

.animate-highlight .word {
  padding: 0.2rem 0;
  margin: 0;
  display: inline;
  transition: background-color 0.1s linear;
}

.animate-highlight .word.highlighted {
  background-color: #D4D4F0;
  color: #3B398A !important;
}

.animate-highlight .word.partial {
  transition: background-color 0.05s linear;
}

/* View More Button */
.view-more-button, button {
  background: #383838;
  width: fit-content;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.015);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3rem auto;
  font-family: 'PP Neue Montreal Mono', monospace;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.044rem;
  line-height: 140%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1rem;
  padding: 0.75rem 1.5rem;
}

.view-more-button:hover, button:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #555555;
  transform: translateY(-2px);
}

.view-more-button:active, button:active {
  transform: translateY(1px);
}

.approach {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 1rem 0 3rem 0;
}

.overview-grid p {
  font-family: 'PP Neue Montreal', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
}

.overview-grid h4 {
  font-family: 'PP Neue Montreal', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin: 0.5rem 0;
}

.demo-container {
  margin: 0 0 4rem 0;
}

ul {
  padding: 0 0 0 1.75rem;
}

.material-symbols-outlined {
  font-size: 1rem;
  color: #3d3d3d;
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}

/* Desktop Styles */
@media (min-width: 1024px) {

  h1 {
    font-size: 3.75rem;
  }

  h2 {
    font-size: 2.25rem;
    margin: 6rem 0 2rem 0;
  }

  h3 {
    margin: 0 0 0.5rem 0;
  }

  p {
    margin: 0 0 2.5rem 0;
  }

  h4 {
    margin: 2rem 0 0 0;
  }

  main h5 {
    margin: 0.5rem 0 0.5rem 0;
  }

  .full-bleed {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
  }

  .layout {
    margin: 2rem 22rem;
  }

  .cap {
    font-size: 2.25rem
  }

  main {
    grid-column: 2;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .content {
    max-width: 1920px;
    margin: 0 auto;
  }

  .content img {
    max-width: 100%;
    height: auto;
  }

  .feature-grid {
    grid-template-columns: 3fr 1fr;
    gap: 4rem;
    align-items: start;
    margin: 4rem 0 1rem 0;
  }

  .feature-image {
    height: 500px;
  }

  .overview-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    width: 100%;
  }

  .overview-label {
    letter-spacing: 0.02rem;
  }

  .overview-description {
    letter-spacing: 0.02rem;
  }

  .overview-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin: 4rem 0;
  }

  .approach {
    flex-direction: row;
    gap: 2.5rem;
    margin: 1rem 0 3rem 0;
  }

  .overview-grid p {
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
  }

  .overview-grid h4 {
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin: 0.5rem 0;
  }

  .sidenav {
    display: flex;
    position: fixed;
    top: 18%;
    left: 4%;
    flex-direction: column;
    padding: 0.5rem 0.25rem;
    z-index: 1000;
    transition: opacity 0.4s ease;
  }

  .sidenav ul {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0;
  }

  .sidenav li {
    margin: 0.35rem 0;
  }

  .sidenav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.15rem;
    padding: 0.125rem 0;
    color: #5c5c5c;
    font-family: 'PP Neue Montreal Mono', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 140%;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
  }

  .sidenav a:hover {
    color: #0400FF;
  }

  .sidenav > ul > li {
    margin: 0;
  }

  .sidenav > ul > li > a {
    margin-bottom: 0.8rem;
  }

  .sidenav > ul > li:has(ul) > a {
    margin-bottom: 0.35rem;
  }

  .material-symbols-outlined {
    font-size: 0.75rem;
    margin-left: 0.13rem;
    vertical-align: middle;
    transform: rotate(270deg);
    font-variation-settings:
      'FILL' 0,
      'wght' 400,
      'GRAD' 0,
      'opsz' 24;
    cursor: pointer;
    padding: 2px;
    border-radius: 2px;
    transition: all 0.2s ease;
  }

  .material-symbols-outlined:hover {
    color: #0400FF;
  }

  .sidenav a.is-open .material-symbols-outlined {
    transform: rotate(360deg);
  }

  .sidenav ul ul {
    margin: 0.5rem 0 0.5rem 0.5rem;
    padding-left: 0.5rem;
    border-left: 2px #e0e0e0 solid;
    max-height: 0;
    overflow: visible;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    position: relative;
  }

  .sidenav a.is-open + ul {
    max-height: 500px;
    opacity: 1;
  }

  .sidenav ul ul a {
    padding: 0.125rem 0;
    font-size: 0.85rem;
    opacity: 0.9;
    justify-content: flex-start;
  }

  .sidenav ul ul a:hover {
    color: #0400FF;
  }

  .sidenav a.active {
    color: #000000;
    font-family: 'PP Neue Montreal Mono', monospace;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
  }

  .sidenav ul ul li {
    position: relative;
  }

  .sidenav ul ul li::before {
    content: '';
    position: absolute;
    left: -0.64rem;
    top: 0;
    width: 2px;
    height: 1.5rem;
    background-color: #666666;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    z-index: 2;
    border-radius: 1px;
  }

  .sidenav ul ul li:has(a.active)::before {
    opacity: 1;
  }

  .sidenav:has(a.active) a:not(.active) {
    transition: opacity 0.2s ease;
  }

  .sidenav:has(a.active) a:not(.active):hover {
    opacity: 0.8;
  }

  iframe {
    width: 100%;
    height: 40rem;
    object-fit: cover;
  }
}
