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

@font-face {
  font-family: 'PP Neue Montreal';
  font-style: normal;
  font-weight: 400;
  src: local('PP Neue Montreal'), url('ppneuemontreal-book.woff') format('woff');
}
@font-face {
  font-family: 'PP Neue Montreal';
  font-style: normal;
  font-weight: 500;
  src: local('PP Neue Montreal'), url('ppneuemontreal-medium.woff') format('woff');
}
@font-face {
  font-family: 'PP Neue Montreal';
  font-style: italic;
  font-weight: 600;
  src: local('PP Neue Montreal'), url('ppneuemontreal-semibolditalic.woff') format('woff');
}
/*
@font-face {
  font-family: 'PP Neue Montreal';
  font-style: italic;
  font-weight: 400;
  src: local('PP Neue Montreal'), url('https://fonts.cdnfonts.com/s/100431/ppneuemontreal-italic.woff') format('woff');
}
@font-face {
  font-family: 'PP Neue Montreal';
  font-style: normal;
  font-weight: 100;
  src: local('PP Neue Montreal'), url('https://fonts.cdnfonts.com/s/100431/ppneuemontreal-thin.woff') format('woff');
}
@font-face {
  font-family: 'PP Neue Montreal';
  font-style: normal;
  font-weight: 700;
  src: local('PP Neue Montreal'), url('https://fonts.cdnfonts.com/s/100431/ppneuemontreal-bold.woff') format('woff');
}
*/



/*
@font-face {
  font-family: "area-normal";
  src: url("area.woff2") format("woff2"),
       url("area.woff") format("woff"),
       url("area.otf") format("opentype");
  font-display: auto;
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
}

@font-face {
  font-family: "area-variable";
  src: url("area-variable.woff2") format("woff2"),
       url("area-variable.woff"),
       url("area-variable.otf") format("opentype");
  font-display: auto;
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
}

@font-face {
  font-family: 'Switchyard';
  font-style: normal;
  font-weight: 400;
  src: local('Switchyard'), url('https://fonts.cdnfonts.com/s/106135/switchyard.woff') format('woff');
}


@font-face {
  font-family: 'JoyseMasterVF';
  src: url('JoyseMasterVF.ttf') format('truetype');
  font-display: swap;
}

.joyse {
  font-family: 'JoyseMasterVF', sans-serif;
  letter-spacing: 0px;
  line-height: 1;
  font-variation-settings: "wght" 400, "slnt" 0, "disp" 0;
  font-feature-settings: "ss00", "liga" 0;
}

*/

@font-face {
  font-family: 'AlmarenaVariable';
  font-style: normal;
  font-weight: normal;
  font-display: auto;
  src: url('AlmarenaNeueVF.woff2') format('woff2');
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
/* font-family: "area-variable";*/
  font-weight: 400;
  position: relative;
  font-family: 'Inter', sans-serif;
  background-color: #FFFFFF;
  color: #111;
  overflow-x: hidden;
}

h1,h2,h3 {
  font-family: 'PP Neue Montreal', sans-serif;
  font-family: AlmarenaVariable;
  letter-spacing: 0px;
/* line-height: 1;*/
  font-weight: normal;
  font-variation-settings: "wght" 15, "slnt" 0, "disp" 100;
  font-feature-settings: "ss02", "liga" 0;
}

/* Hide scrollbar for cleaner transitions */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #fff;
}

::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

.view {
  display: none;
  opacity: 0;
  min-height: 100vh;
}

.view.active {
  display: block;
  opacity: 1;
  position: relative;
}

/* --- HEADER --- */
header.main-header {
  padding: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  z-index: 50;
  backdrop-filter: blur(5px);
}

.logo {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02rem;
/* text-transform: uppercase;*/
  cursor: pointer;
}

.studio-intro-text {
  font-size: 13px;
  color: #888;
  max-width: 320px;
  line-height: 1.4;
  text-align: right;
}

.contact-icons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 4px;
}

.contact-icons a {
  color: #467654;
}

#category-container {
  margin-bottom: 100px;
}

.search-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
/* display: flex;*/
  display: none;
  align-items: center;
  border-bottom: 1px solid #ddd;
}

.search-icon {
  width: 16px;
  color: #999;
  margin-right: 10px;
}

.search-input {
  width: 100%;
  border: none;
  padding: 10px 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  background: transparent;
}

.search-input::placeholder {
  color: #ccc;
}

/* --- ACCORDION (HOME & LIST) --- */
.reveal-item {
  position: relative;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  overflow: hidden;
  height: 84px;
  display: flex;
  align-items: center;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s ease, transform 0.8s ease, background-position 0.8s ease;
  background-size: 100vw;
  background-repeat: no-repeat;
  background-position: left 33%;
  display: flex;
}

.reveal-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.reveal-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.reveal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center; /* Changed from baseline to center for wrapped titles */
  transition: color 0.4s ease;
}

.title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reveal-title {
  font-size: 28px;
/* font-weight: 400;*/
/* letter-spacing: -1px;*/
  color: #1e1e1f;
  margin: 0;
}

.tap-indicator {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: rgb(254 211 134);
  opacity: 0;
  visibility: hidden;
  display: none;
  transform: translateX(-10px);
  transition: all 0.4s ease;
}

.tap-indicator svg {
  position: relative;
  top: 2px;
}

/* DESKTOP HOVER */
@media (hover: hover) and (pointer: fine) {
  .reveal-item:hover {
    /* height: 200px; */
    height: 25vw;
  }

  .reveal-item:hover .reveal-title {
    color: #fff;
    font-variation-settings: "wght" 30, "slnt" 0, "disp" 100;
  }

  .reveal-item:hover .reveal-bg {
    opacity: 1;
    transform: scale(1);
    background-position: left 66%;
  }

  .reveal-item:hover .reveal-bg::after {
    opacity: 0.5;
  }

  .reveal-item:hover .reveal-content {
    color: #FFFFFF;
  }

  .reveal-item:hover .tap-indicator {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    display: block;
  }
}

/* MOBILE TOUCH EXPANSION */
.reveal-item.is-expanded {
  height: 25vw;
}

@media (max-width: 600px) {
  .reveal-item.is-expanded {
    height: 30vw;
  }
}

.reveal-item.is-expanded .reveal-title {
  color: #fff;
  font-variation-settings: "wght" 30, "slnt" 0, "disp" 100;
}

.reveal-item.is-expanded .reveal-bg {
  opacity: 1;
  transform: scale(1);
  background-position: left 66%;
}

.reveal-item.is-expanded .reveal-bg::after {
  opacity: 0.5;
}

.reveal-item.is-expanded .reveal-content {
  color: #FFFFFF;
}

.reveal-item.is-expanded .tap-indicator {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  display: block;
}

/* --- ABOUT & CONTACT --- */
.about-dark {
  background-color: #0F0F0F;
  color: #FFFFFF;
  padding: 0 0 0 0;
}

.team-full-width {
  width: 100%;
/* height: 70vh;*/
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
}

.team-full-width::after {
  content: "";
  position: absolute;
  background: linear-gradient(transparent 60%, #0F0F0F);
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-size: cover;
}


.team-full-width img {
  width: 100%;
  height: 100%;
  object-fit: cover;
/* opacity: 0.9;*/
}

.about-text-container {
  padding: 100px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.about-text-container h2 {
  font-size: 44px;
  margin: 0;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -2px;
}

.about-text-container p {
  font-size: 18px;
  margin: 10px 0 0;
  line-height: 1.6;
  color: #AAA;
  font-weight: 300;
}

.contact-gradient-wrap {
  height: 90vh;
  background: linear-gradient(180deg, #D4D8F0 0%, #F5E6D3 50%, #E8B490 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 20px;
}

.contact-gradient-wrap h3 {
  font-size: 30px;
  font-weight: 400;
  color: #111;
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.2;
}

.capsule-btn {
  background: #111;
  color: #fff;
  padding: 18px 45px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.capsule-btn:hover {
  transform: scale(1.05);
}

.minimal-footer {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #333;
}

.footer-links a {
  color: #111;
  text-decoration: none;
  margin-right: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.2);
}

/* --- DETAIL VIEW --- */
.detail-grid {
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
  gap: 80px;
  padding: 0 60px 100px 60px;
}

.project-sidebar {
  flex: 0 0 380px;
  position: sticky;
  top: 140px;
  height: fit-content;
}

.project-visuals {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.full-img {
  width: 100%;
  display: block;
}

.tech-table {
  margin: 40px 0;
  border-top: 1px solid #eee;
}

.tech-row {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  flex-direction: column;
  gap: 8px;
  color: #333;
}

.tech-label {
  color: #999;
  font-size: 11px;
  text-transform: uppercase;
/* font-weight: 600;*/
  letter-spacing: 1px;
}

#map {
  width: 100%;
  height: 280px;
  margin-top: 40px;
  filter: grayscale(1) invert(1) brightness(0.9);
  border-radius: 16px;
}

.download-box {
  margin-top: 40px;
  background: #f4f4f4;
  padding: 40px;
  text-align: center;
  border: 1px solid #ddd;
}

.download-btn {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 20px 0;
  width: 100%;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: background 0.3s;
}

.download-btn:hover {
  background: #333;
}

.nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
/* margin-bottom: 40px;*/
  display: flex;
  align-items: center;
  color: #666;
}

.nav-btn svg {
  width: 16px;
  margin-right: 10px;
}

@media (max-width: 1024px) {
  header.main-header,
  .about-text-container,
  .minimal-footer {
      padding: 40px 20px;
  }

  .about-text-container {
      grid-template-columns: 1fr;
      gap: 40px;
  }

  .project-sidebar {
      position: static;
  }

  .search-container {
      position: relative;
      left: 0;
      transform: none;
      width: 100%;
      margin-top: 20px;
  }

  header.main-header {
      flex-wrap: wrap;
      flex-direction: column;
      align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .main-header {
    gap: 12px;
  }

  .studio-intro-text {
    text-align: left;
  }

  .contact-icons {
    justify-content: flex-start;
  }

  .about-text-container h2 {
    font-size: 36px;
  }

  .reveal-content {
    padding: 0 30px
  }

  .reveal-title {
    font-size: 22px;
  }

  .tap-indicator {
    font-size: 11px;
  }

  .detail-grid {
    display: flex;
    flex-direction: column;
    padding: 0 20px 60px;
    gap: 40px;
  }

  .project-sidebar {
    flex: none;
    width: 100%;
  }

  .detail-desc {
    font-size: 15px;
  }

  .project-visuals {
    order: -1;
    gap: 40px;
    width: 100%;
  }

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

  #detail-title {
    font-size: 32px !important;
  }

  .contact-gradient-wrap h3 {
    font-size: 22px
  }
}