/* Reset and box-sizing */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* SPA transition */
#spa-content {
  transition: opacity 0.2s ease;
}
#spa-content.spa-fade-out {
  opacity: 0;
}

body {
  margin: 0;
  padding: 0px;
  padding-top: 70px;
  padding-bottom: 60px;
  background-color: #ffffff;
  font-family: 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

body.loaded {
  opacity: 1;
}

/* Fluid root font size to scale content smoothly near 800px */
html {
  font-size: clamp(14px, 1.1vw, 16px);
}

/* Page container */
main {
  max-width: 100%;
  margin: 0;
  padding-left: 15px;
  padding-right: 15px;
}

/* Homepage Layout with Fixed Left Column and Scrollable Right */
.homepage-layout {
  display: flex;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  min-height: calc(100vh - 100px);
}

/* Fixed Left Column */
.left-column {
  position: fixed;
  left: 20px;
  top: 100px;
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 5;
}

/* Hero Section in Left Column */
.hero-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #4dd02c;
  border-radius: 20px;
  padding: 2px 8px;
  width: fit-content;
}

#availability .status-dot {
  width: 25px;
  height: 25px;
  background: url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><circle cx=\"15\" cy=\"15\" r=\"15\" fill=\"white\" opacity=\"0.3\"/></svg>') center/contain no-repeat;
}

#availability .status-text {
  color: white;
  font-size: 0.75rem;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 300;
}

.hero-bio {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
}

.hero-bio p {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  color: #2b2b2b;
  margin: 0;
}

/* Get in Touch Section */
.get-in-touch {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.get-in-touch h3 {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: #000000;
  margin: 0;
  line-height: normal;
}

.get-in-touch .links-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 280px;
}

.get-in-touch a {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 0.6875rem;
  color: #000000;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
  white-space: nowrap;
  position: relative;
  background-color: #c0c6c9;
  padding: 4px 6px;
  border-radius: 6px;

}

.get-in-touch a:hover {
  opacity: 0.7;
}

/* Horizontal Divider */
.divider-horizontal {
  width: 100%;
  height: 0.5px;
  background-color: #2b2b2b;
}

/* Vertical Divider */
.vertical-divider {
  position: fixed;
  left: calc(25% + 16px);
  top: 70px;
  width: 0.5px;
  height: calc(100vh - 70px);
  background-color: #2b2b2b;
  z-index: 1;
}

/* Scrollable Work Layout */
.work-layout {
  margin-left: calc(25% + 48px);
  width: calc(75% - 64px);
  display: flex;
  flex-direction: column;
  gap: 35px;
  padding-top: 30px;
}

/* Page Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #2b2b2b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 800px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-top: 5px;
  padding-left: 5px;
}

.hero p {
  color: #2b2b2b;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 500;
  width: 65%;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.social-links li {
  display: inline-block;
  margin-right: 1rem;
  position: relative;
}

.social-links a {
  text-decoration: none;
  color: #2b2b2b;
  font-weight: 400;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 300;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
  }

.social-links a:hover {
  color: #2b2b2b;
  transform: scale(1.05);
}

.social-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
  
}

.social-links a:hover::after {
  width: 100%;
}

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-top: 0.5px solid #2b2b2b;
  margin-top: 2rem;
}

footer span {
  font-size: 0.875rem;
  font-weight: 400;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 300;
}

/* Availability */
.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #4CAF50;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 1.5s infinite;
  cursor: default;
}

/* The text next to the dot */
.status-text {
  font-size: 1rem;
  vertical-align: middle;
  cursor: default;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 300;
}

/* Pulse animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Offline state */
.offline .status-dot {
  background-color: #BBB;
  animation: none;
}

.offline .status-text {
  color: #888;
}

/* About Section */
.about-container {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: clamp(60px, 8vw, 100px);
  max-width: 1300px;
  padding: 0;
  align-items: start;
  transition: gap 0.3s ease, grid-template-columns 0.3s ease;
}

/* Research Section */
.research-container {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  max-width: 700px;
  padding: 5px;
  gap: 15px;
}

/* Projects Grid */
.work-grid {
  display: flex;
  flex-direction: column;
  gap: 35px;
  padding: 0;
}

.work-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 0;
  border: none;
}

.work-row + .work-row {
  padding-top: 35px;
  border-top: 0.5px solid #2b2b2b;
}

.work-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 415px;
  flex-shrink: 0;
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.work-header h3 {
  font-size: 1.25rem;
  font-weight: 500;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 500;
  color: #2b2b2b;
  margin: 0;
}

.work-date {
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 300;
  font-size: 0.875rem;
  font-weight: 300;
  color: #2b2b2b;
  white-space: nowrap;
}

.catchy-title h4 {
  font-size: clamp(0.875rem, 0.9vw, 1rem);
  font-weight: 300;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 300;
  color: #2b2b2b;
}

.work-desc {
  padding: 10px 0;
}

.work-desc p {
  font-size: 0.875rem;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 300;
  font-weight: 200;
  color: #2b2b2b;
  line-height: 1.5;
  margin: 0;
}

.work-crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.work-crumbs span {
  font-size: 0.875rem;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 300;
  font-weight: 200;
  color: #2b2b2b;
}

.work-links {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 0.5px solid #2b2b2b;
}

.work-links a {
  font-size: 0.875rem;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 300;
  font-weight: 300;
  color: #2b2b2b;
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}

.work-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.work-links a:hover {
  color: #2b2b2b;
}

.work-links a:hover::after {
  width: 100%;
}

.work-visual {
  width: 620px;
  height: auto;
  flex-shrink: 0;
  overflow: hidden;
}

.work-visual.centered {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 335px;
}

.work-visual.bg-light {
  background-color: #ffffff;
}

.work-visual.bg-dark {
  background-color: #c8c8c8;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 335px;
}

.work-visual.bg-slate {
  background-color: #212a37;
}

.work-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.work-visual.centered img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.work-visual img.fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Work Request Text */
.work-request-text {
  padding: 10px;
  text-align: left;
}

.work-request-text p {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 300;
  color: #2b2b2b;
  margin: 0;
}

/* Projects Page */
.projects-container {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  gap: 10px;
}

.projects-display {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  align-items: left;
  justify-content: left;
  gap: 15px;
}

.project-item img {
  width: 100%;
  height: clamp(210px, 50vw, 360px);
  object-fit: cover;
  border-radius: none;
  display: block;
}

.projects-title h1 {
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 500;
  font-size: 2rem;
  font-weight: 500;
  color: #252525;
  border-bottom: 1px solid #e5e5e5;
}

.projects-description p {
  font-size: 0.875rem;
  font-weight: 300;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 300;
  color: #252525;
  line-height: 1.5;
  width: 450px;
}

.project-item p {
  font-size: 0.875rem;
  font-weight: 300;
  font-family: 'Helvetica Neue', sans-serif;
  color: #706f6e;
  font-variation-settings: "wght" 300;
}

.project-item p a {
  text-decoration: none;
  color: #2b2b2b;
  font-weight: 300;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 300; 
  transition: color 0.3s ease, transform 0.3s ease;
  font-size: 0.875rem;
  position: relative;
}

.project-item p a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.project-item p a:hover {
  color: #2b2b2b;
  transform: scale(1.05);
}

.project-item p a:hover::after {
  width: 100%;
}

.project-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 600;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  text-decoration-thickness: 0.0625rem;
  text-decoration-color: #2b2b2b;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-skip-ink: none;
}

/* Responsive Grid Breakpoints */

/* Tablet adjustments */
@media (max-width: 1200px) {
  .homepage-layout {
    flex-direction: column;
  }
  
  .left-column {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    margin-bottom: 30px;
  }
  
  .vertical-divider {
    display: none;
  }
  
  .work-layout {
    margin-left: 0;
    width: 100%;
    padding-top: 0;
  }
  
  .work-row {
    gap: 16px;
  }
  
  .work-info {
    width: 100%;
    max-width: 415px;
  }
  
  .work-visual {
    width: auto;
    max-width: 620px;
    flex: 1 1 auto;
  }

  .projects-display {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .project-item img {
    height: clamp(180px, 80vw, 320px);
  }
}

/* Pre-mobile soft scale down near 800px */
@media (max-width: 840px) {
  .hero p {
    width: 80%;
    font-size: clamp(0.95rem, 1.3vw, 1.125rem);
  }
  .work-row {
    gap: 16px;
  }
  .work-info {
    width: 420px;
  }
  .work-visual {
    height: clamp(320px, 40vw, 490px);
    width: 100%;
  }
}

/* Mid-mobile/tablet bridge */
@media (max-width: 798px) {
  .hero p {
    width: 80%;
    font-size: clamp(0.975rem, 1.4vw, 1.125rem);
  }

  .work-row {
    gap: 15px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-top: 0.5px solid #2b2b2b;
  }
  .work-info {
    width: min(100%, 520px);
  }
  .work-visual {
    width: 100%;
    height: clamp(300px, 45vw, 480px);
  }

  .section-header h2 {
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  }


}

/* Mobile: 1 column */
@media (max-width: 768px) {
  .work-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .work-row + .work-row {
    padding-top: 20px;
  }
  
  .work-info {
    width: 100%;
  }
  
  .work-visual {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  
  .work-visual.centered {
    height: 280px;
  }
  
  .work-visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  .work-visual.bg-dark img {
    max-height: 250px;
    width: auto;
  }

  .work-header h3 {
    font-size: 1.125rem;
  }
  
  .work-date {
    font-size: 0.875rem;
  }

  .work-desc p {
    font-size: 0.875rem;
  }

  .work-crumbs span {
    font-size: 0.875rem;
  }

  .work-links a {
    font-size: 0.875rem;
  }

  .get-in-touch h3 {
    font-size: 1.25rem;
  }

  .get-in-touch .links-container {
    max-width: 100%;
  }

  .get-in-touch a {
    font-size: 0.6875rem;
  }
}

@media (max-width: 768px) {
  body {
    margin: 0;
  }

  /* Increase main container width for mobile */
  main {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero {
    max-width: 100%;
  }

  .hero p {
    font-size: 0.9rem;
    width: 95%;
    font-family: 'Helvetica Neue', sans-serif;
    font-variation-settings: "wght" 400;
  }

  .work-grid {
    padding: 2px 2px 0;
  }

  .work-item {
    padding: 2px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 1rem 0;
    margin-top: 2rem;
  }

  footer span {
    font-size: 0.875rem;
    font-family: 'Helvetica Neue', sans-serif;
    font-variation-settings: "wght" 400;
  }

  .projects-display {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-item img {
    height: clamp(180px, 80vw, 320px);
  }
}

/* Project Page Layout */
.project-hero {
  display: flex;
  width: 100%;
  max-width: 700px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.625rem;
}

.project-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 600;
  color: #2b2b2b;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.project-subtitle {
  font-size: 1rem;
  font-weight: 300;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 300;
  color: #252525;
  margin-bottom: 3rem;
  line-height: 1.5;
  max-width: 600px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Project Tags */
.project-tags {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #e5e5e5;
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.tag {
  color: #2b2b2b;
  font-size: 0.875rem;
  font-weight: 300;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 300;
}

/* Project Metadata */
.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.meta-item h6 {
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 500;
  color: #2b2b2b;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.meta-item p {
  font-size: 1rem;
  font-weight: 300;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 300;
  color: #2b2b2b;
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Project Hero Image */
.project-hero-image {
  width: 100%;
  margin: 2rem 0;
}

.project-hero-image img {
  width: 100%;
  height: auto;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.05);
}

/* Project Content */
.project-content {
  max-width: 700px;
  margin: 0;
  padding: 0;
}

.content-section {
  margin-bottom: 4rem;
  max-width: 700px;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 500;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 500;
  color: #2b2b2b;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.content-section p {
  font-size: 0.875rem;
  font-weight: 300;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 300;
  color: #2b2b2b;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Project Gallery */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 500px 240px;
  gap: 1rem;
  margin: 4rem 0;
  max-width: 800px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-gallery img:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1;
}

.project-gallery img:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.project-gallery img:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-hero {
    padding: 0;
    max-width: 100%;
  }

  .project-hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .project-subtitle {
    font-size: 0.875rem;
    margin-bottom: 2rem;
  }

  .project-tags {
    margin-bottom: 2rem;
  }

  .project-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .project-content {
    padding: 0;
    max-width: 100%;
  }

  .content-section {
    margin-bottom: 3rem;
  }

  .content-section h2 {
    font-size: 1.25rem;
  }

  .content-section p {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 220px);
    gap: 0.75rem;
    margin: 3rem 0;
    max-width: 100%;
  }

  .project-gallery img:nth-child(1),
  .project-gallery img:nth-child(2),
  .project-gallery img:nth-child(3) {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Responsive Social Links */
@media (max-width: 768px) {
  .social-links {
    flex-direction: row;
    align-items: left;
    gap: 0.75rem;
  }

  .social-links li {
    margin: 0;
  }

  .social-links a {
    font-size: 0.75rem;
    font-family: 'Helvetica Neue', sans-serif;
    font-variation-settings: "wght" 400;
  }

  .status-text {
    font-size: 0.75rem;
    font-family: 'Helvetica Neue', sans-serif;
    font-variation-settings: "wght" 400;
  }

  .projects-description {
    font-size: 0.875rem;
    font-family: 'Helvetica Neue', sans-serif;
    font-variation-settings: "wght" 400;
    color: #2b2b2b;
    width: 100%;
  }

  /* About Section Mobile */
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 100%;
    padding: 0;
  }
}

/* About Section */
#about .about-container {
  display: block;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
}

#about .about-frame {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  column-gap: clamp(24px, 7vw, 122px);
  row-gap: 20px;
  align-items: start;
}

#about .section-divider {
  grid-column: 1 / -1;
  height: 0.5px;
  width: min(100%, 1472px);
  margin-inline: auto;
  background: #2b2b2b;
}

#about .about-section {
  display: contents;
}

#about .section-index,
#about .section-title {
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 800;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  color: #2b2b2b;
  white-space: nowrap;
  padding: 0;
}

#about .section-content {
  padding: 0;
  max-width: 750px;
}

#about .section-content p {
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 200;
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  line-height: 1.5;
  color: #252525;
  padding: 0;
  margin: 0;
}

#about .section-content h5 {
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 200;
  font-size: clamp(0.875rem, 1.1vw, 0.875rem);
  line-height: 1.5;
  color: #252525;
  padding: 0;
  margin: 0;
}

#about .section-content h5 a {
  color: #252525;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: #252525;
}

#about .section-content h5 a:hover {
  color: #252525;
  text-decoration: none;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: #252525;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 200;
  font-size: clamp(0.875rem, 1.1vw, 0.875rem);
  line-height: 1.5;
  color: #252525;
  padding: 0;
  margin: 0;
}



#about .section-content p:last-child {
  margin-bottom: 0;
}

#about .tag-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  row-gap: 10px;
  position: relative;
}

#about .tag-grid::before { content: none; }

#about .tag-grid li {
  padding: 10px 0;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 200;
  font-size: clamp(0.9rem, 0.95vw, 1rem);
  color: #252525;
}

/* Align paragraph and tag items' baselines/padding for symmetry */
#about .section-content p {
  padding: 5px 0;
  margin: 0;
}

#about .section-content p + p { margin-top: 10px; }

#about .tag-grid li { padding: 0; line-height: 1.6; }

/* ===== Responsiveness for About (Figma Frame) ===== */
@media (max-width: 1024px) {
  #about .about-frame {
    column-gap: clamp(20px, 5.5vw, 80px);
  }
  #about .tag-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  #about .about-frame {
    grid-template-columns: minmax(48px, auto) 1fr;
    row-gap: 4px;
    column-gap: 0px;
  }
  #about .section-content,
  #about .tag-grid {
    grid-column: 1 / -1;
  }
  #about .section-index,
  #about .section-title { 
    white-space: normal;
    padding: 0;
    margin: 0;
  }
  
}

@media (max-width: 520px) {
  #about .tag-grid {
    grid-template-columns: 1fr;
  }
  #about .about-frame { 
    column-gap: 0px;
    row-gap: 2px;
  }
  #about .section-index { font-size: 1rem; }
  #about .section-title {
    margin-left: -6px;
  }

  #about .section-title {
    font-size: 1.25rem;
    font-variation-settings: "wght" 700;
    font-family: 'Helvetica Neue', sans-serif;
  }

  #about .section-content p {
    font-size: 0.875rem;
    width: 100%;
  }

  #about .section-content p + p {
    margin-top: 0px;
  }

  #about .tag-grid li {
    font-size: 0.875rem;
  }
}

/* Playground Section */
.playground-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  padding-left: 0;
  padding-right: 0;
}

.playground-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  position: sticky;
  top: 0;
  background-color: #ffff;
  z-index: 10;
}

.playground-title-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.playground-title-wrapper {
  display: contents;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 10px;
}

.playground-title {
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 500;
  font-size: 2rem;
  font-weight: 500;
  color: #252525;
  margin: 0;
  line-height: 1;
  text-align: flex-start;
}

.divider {
  height: 0.8px;
  width: 100%;
  background-color: #c8c8c8;
  border: none;
}

.playground-description {
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 300;
  font-size: 1rem;
  font-weight: 300;
  color: #252525;
  line-height: 1.5;
  margin: 0;
}

.playground-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 550px);
  gap: 5px;
  width: 100%;
  max-width: 1400px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.playground-project {
  background-color: rgba(255, 255, 255, 0.7);
  border: 0.25px solid #2b2b2b;
  width: fit-content;
  height: fit-content;
  position: relative;
  overflow: hidden;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 15px;
  overflow: hidden;
}

.project-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px;
  width: 100%;
}

.project-title h3 {
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 500;
  font-size: 1.25rem;
  font-weight: 500;
  color: #252525;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.project-tags {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 5px;
  width: 100%;
  gap: 0;
}

.project-tags .tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 200;
  font-size: 0.9375rem;
  font-weight: 200;
  color: #252525;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: #252525;
}

.project-image {
  flex-shrink: 0;
  width: 420px;
  height: 350px;
  overflow: hidden;
}

/* Project Image Styling */
.project-image img,
.project-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* Responsive Design for Playground */
@media (max-width: 1400px) {
  .playground-description {
    width: 100%;
    max-width: 600px;
    margin: 0;
  }
  
  .playground-grid {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}

@media (max-width: 1200px) {
  .playground-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 650px);
    gap: 20px;
    width: 100%;
    max-width: 100%;
  }

  .playground-project {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .playground-description {
    width: 100%;
    max-width: 600px;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .playground-container {
    gap: 20px;
    padding: 0;
  }
  
  .playground-title {
    font-size: 1.5rem;
  }
  
  .playground-description {
    width: 80%;
    max-width: 400px;
    margin: 0;
  }
  
  .playground-description {
    font-size: 0.875rem;
    font-weight: 400;
    font-family: 'Helvetica Neue', sans-serif;
    font-variation-settings: "wght" 400;
  }
  
  .playground-grid {
    grid-template-rows: repeat(4, 450px);
    gap: 15px;
  }
  
  .playground-project {
    height: 450px;
    width: fit-content;
  }
  
  .project-content {
    padding: 20px;
  }
  
  .project-title h3 {
    font-size: 18px;
  }
  
  .project-tags .tag {
    font-size: 13px;
    padding: 8px;
  }
  
  .project-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 408/352;
  }
}

/* Image Hover Tooltip */
.image-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
  width: 100%;
  max-width: 900px;
  height: auto;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

.image-caption p {
  position: relative;
  text-align: left;
  padding: 5px;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 100;
  font-size: 0.75rem;
  color: #887f7a;
}

/* Skills and Tools Container */
.skills-tools-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
  max-width: 800px;
}

.skills-list,
.tools-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.skill-item,
.tool-item {
  padding: 6px;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 400;
  font-size: 0.875rem;
  color: #2b2b2b;
  text-align: left;
}

/* Inspiration List */
.inspiration-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  max-width: 500px;
}

.inspiration-item {
  background: transparent;
  border-bottom: 0.5px solid #2b2b2b;
  text-decoration: none;
  padding: 10px;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 400;
  font-size: 0.875rem;
  color: #2b2b2b;
  text-align: left;
  transition: all 0.3s ease;
  cursor: pointer;
}

.inspiration-item a {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

.inspiration-item:hover {
  background-color: #2b2b2b;
  text-decoration: none;
  color: #887f7a;
}

.inspiration-item:hover a {
  color: inherit;
}

/* Responsive image sizing */
@media (max-width: 768px) {
  .image-container {
    max-width: 500px;
  }
  .image-caption p {
    font-size: 0.75rem;
  }
  
  .skills-tools-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .skills-list,
  .tools-list {
    width: 100%;
    max-width: 400px;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .inspiration-list {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .image-container {
    max-width: 500px;
  }
  .image-caption p {
    font-size: 0.75rem;
  }
  
  .skills-list,
  .tools-list {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  
  .skill-item,
  .tool-item,
  .inspiration-item {
    font-size: 13px;
    padding: 8px;
  }
}


@media (max-width: 480px) {
  .playground-title {
    font-size: 28px;
  }
  
  .playground-grid {
    grid-template-rows: repeat(4, 450px);
  }
  
  .playground-project {
    height: 450px;
  }
  
  .project-content {
    padding: 15px;
    gap: 12px;
  }
  
  .project-title h3 {
    font-size: 16px;
  }
  
  .project-tags {
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .project-tags .tag {
    font-size: 12px;
    padding: 6px 8px;
  }
}

/* ===== NEW SANDBOX STYLES ===== */
.sandbox-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  padding-left: 0;
  padding-right: 0;
}

.sandbox-header {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
}

.sandbox-description {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: #000000;
  margin: 0;
  width: 600px;
}

.sandbox-divider {
  width: 100%;
  height: 0.5px;
  background-color: #2b2b2b;
}

.sandbox-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sandbox-row {
  display: flex;
  gap: 5px;
  align-items: flex-start;
}

.sandbox-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1 1 calc(33.333% - 5px);
  max-width: 480px;
  padding: 25px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid #2b2b2b;
  overflow: hidden;
}

.sandbox-card-image {
  width: 100%;
  aspect-ratio: 2198 / 1258;
  overflow: hidden;
}

.sandbox-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sandbox-card-image.contained {
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sandbox-card-image.contained img {
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.sandbox-card-tags {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sandbox-tag {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #767676;
  line-height: 1.4;
}

.sandbox-card-title {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #000000;
  margin: 0;
  line-height: 1.2;
}

.sandbox-card-desc {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #000000;
  line-height: 1.5;
  max-width: 363px;
  margin: 0;
}

/* Responsive Design for New Sandbox */
@media (max-width: 1500px) {
  .sandbox-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  
  .sandbox-card {
    width: calc(50% - 2.5px);
    max-width: 480px;
  }
}

@media (max-width: 1024px) {
  .sandbox-card {
    width: 100%;
    max-width: 100%;
  }
  
  .sandbox-row {
    flex-direction: column;
  }
  
  .sandbox-description {
    font-size: 14px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .sandbox-container {
    gap: 20px;
    padding: 0;
  }
  
  .sandbox-header {
    padding: 0;
  }
  
  .sandbox-description {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .sandbox-card {
    padding: 15px;
  }
  
  .sandbox-card-title {
    font-size: 20px;
  }
  
  .sandbox-tag {
    font-size: 14px;
  }
  
  .sandbox-card-desc {
    font-size: 14px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .sandbox-description {
    font-size: 13px;
  }
  
  .sandbox-card {
    padding: 10px;
  }
  
  .sandbox-card-title {
    font-size: 18px;
  }
  
  .sandbox-tag {
    font-size: 13px;
  }
  
  .sandbox-card-desc {
    font-size: 13px;
  }
}

/* Research Page */
