*, *::before, *::after {
    box-sizing: border-box;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('/static/fonts/PPNeueMontreal-Regular.woff2') format('woff2');
  font-weight: 400;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('/static/fonts/PPNeueMontreal-SemiBold.woff2') format('woff2');
  font-weight: 600;
}

:root {
    --primary-gray: rgba(23, 23, 23);
    --primary-gray-mid-opacity: rgba(23, 23, 23, 0.6);
    --primary-gray-opacity: rgba(23, 23, 23, 0.2);
    --sidebar-panel-bg: rgba(230, 223, 223, 0.95);
    --sidebar-rule: rgba(23, 23, 23, 0.4);
    --background: rgb(255, 255, 255);
    --transparent: rgba(255, 255, 255, 0);
    --font-family: 'Neue Montreal', sans-serif;
    --title-size: clamp(1.5rem, 1.8vw, 6rem); /* = 24px scaling to 48px */
    --selected-work-size: 1.5rem;
    --regular-font-size: 1rem; /* = 14px */
}

body {
    font-family: var(--font-family);
    background: #f9f9f9;
    font-size: var(--regular-font-size);
    color: var(--primary-gray);
    margin: 0;
    padding: 0;
}

.nav {
    display: inline-block;
    color: var(--primary-gray-mid-opacity);
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 400;
    padding: 0 0 1rem 0;
}

.skill-section {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.about {
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-text {
  height: 1.8ch; /* TODO careful about this, does it work for multiple screens? */
  overflow: hidden;
}

.about-rule {
  width: 99%;
  margin: 0 5px;
  height: 1px;
  background: var(--sidebar-rule);
}

.square {
  height: 0.875rem;
  width: 0.875rem;
  background: var(--transparent);
  transition: background 0.3s ease;
  margin-bottom: 1px;
}

.about:hover .square {
  background: #000000;
}

.text-line {
  transition: color 0.3s ease;
}

.about:hover .text-line {
  color: #000000;
}

.black {
  background: #000000;
}

.about-space {
  height: 2rem;
}

.vertical-justify {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: space-between;
}

.vert-edit-temp {
    justify-content: flex-start;
    gap: 0rem;
}

.right {
  align-items: end;
}

.blur {
  filter: blur(8px);
  transition: filter 0.8s ease;
}


.image-gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* first-child styling here to support GSAP scaleX without altering
aspect-ratio */
.image-gallery > *:first-child {
    overflow: hidden;
    display: inline-block; /* or block, depending on your layout */
}

.image-gallery > *:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-img {
  max-width: 100%;
  max-height: 65rem;
  object-fit: contain;
  display: block;
}

.flex-end {
    display: flex;
    justify-content: flex-end;
}

.heading {
  font-weight: 600;
  font-size: var(--title-size);
  max-width: 75%; /* of parent space i.e 75% of half the page */
  div {
    white-space: nowrap;
  }
}

.indent {
    text-indent: 10rem;
}

.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100svh;
}

.left-half {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100svh;
  padding: 20px;
}

/* The physical border element */
.border-line {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background-color: var(--primary-gray-opacity);
  
  /* Hidden by default */
  transform: scaleY(0);
  opacity: 0;
}

.right-half {
    padding: 20px;
}

.selected-work-title {
    padding-left: 9rem;
    text-transform: uppercase;
}

.selected-work-item {
    position: relative;
    display: flex;
    font-size: var(--selected-work-size);
    text-decoration: none;
    color: var(--primary-gray-mid-opacity);
    align-items: center;
    transition: color 0.2s ease;
}

.selected-work-index {
    position: relative;
    font-size: var(--regular-font-size);
    display: inline-flex;
    align-items: center;
    width: 9rem;
}

.selected-work-index::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 0.875rem;
    height: 0.875rem;
    background: #000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity 0.2s ease;
}

.selected-work-item:hover,
.selected-work-item:active,
.selected-work-item:focus-visible,
.selected-work-item.active {
    color: #000;
}

.selected-work-item:hover .selected-work-index::after,
.selected-work-item:active .selected-work-index::after,
.selected-work-item:focus-visible .selected-work-index::after,
.selected-work-item.active .selected-work-index::after {
    opacity: 1;
}

.selected-work {
    display: flex;
    color: var(--primary-gray-mid-opacity);
    flex-direction: column;
    margin-bottom: 2rem; /* quick n dirty hack */
    gap: .5rem;
    /* text-transform: uppercase; */
    font-weight: 600;
}

.side-panel {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  top: 0;
  bottom: 0;
  right: 0;
  width: 40rem;
  background: var(--sidebar-panel-bg);
  padding: 1rem;
  transform: translateX(700px);
  font-size: 1.4rem;
  font-weight: 700;
  text-wrap: pretty;

  .side-panel-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
  }
}


.click {
  cursor: pointer;
}

.hidden {
  display: none;
}

[x-cloak] {
  display: none !important;
}

.info-grid {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0.5rem 1.5rem;             /* Row gap, column gap */
  align-items: baseline;          /* Aligns text baseline across columns */
}

.info-key,
.project-section-label {
  color: var(--primary-gray-mid-opacity);
  font-weight: 500;
}

.info-value,
.project-section-body {
  color: var(--primary-gray);
  min-width: 0;
  max-width: 25rem;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-section {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
}

.project-section-body p {
  margin: 0;
  line-height: 1.35;
}

.project-section-body p + p {
  margin-top: 1rem;
}

.project-testimonial {
  margin: 0;
}

.project-testimonial + .project-testimonial {
  margin-top: 1.5rem;
}

.project-testimonial cite {
  display: block;
  margin-top: 0.75rem;
  color: var(--primary-gray-mid-opacity);
  font-style: normal;
}
