* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background: #0000ff;
  color: #ffffff;
}

/* Milligram Font */

@font-face {
  font-family: "Milligram Text";
  src: url("/font/Milligram-Text-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Milligram Text";
  src: url("/font/Milligram-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Milligram Text";
  src: url("/font/Milligram-Text-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}


body {
  font-family: 'Milligram Text', sans-serif;
  background-color: #f3f3f3;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}


/* ------------------------------
 2️⃣ Loading Screen — Panels Only
------------------------------ */

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
}

.slide-panels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: 10000;
  flex-direction: row;
}

.panel {
  flex: 1;
  height: 100%;
  background: #0000ff;
  transform: translateY(0);
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
}

.panel:nth-child(1) {
  transition-delay: 0ms;
}
.panel:nth-child(2) {
  transition-delay: 120ms;
}
.panel:nth-child(3) {
  transition-delay: 240ms;
}
.panel:nth-child(4) {
  transition-delay: 360ms;
}

.panel.slide-up {
  transform: translateY(-100%);
}

.main-content {
  opacity: 0;
  visibility: hidden;
}

.main-content.is-ready {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  background-color: #f3f3f3;
}

.logo {
  position: relative;
  top: 0;
  left: 0;
  z-index: 1001;
}

.logo svg {
  display: block;
  width: 90px;
  height: auto;
  color: #000000;
}

.contact-btn,
.contact-btn .contact-btn-inner,
.contact-btn .contact-btn-inner span {
    font-family: 'Milligram Text', sans-serif;
}

.back-to-top-btn,
.back-to-top-btn span {
    font-family: 'Milligram Text', sans-serif;
}

.contact-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  height: 1.2em;
  overflow: hidden;
  font-size: 16px;
  font-weight: 400;
  color: #1a1a1a;
}

.contact-btn-inner {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-btn-inner span {
  line-height: 1.2em;
  height: 1.2em;
}

@media (hover: hover) and (pointer: fine) {
  .contact-btn:hover {
    color: #0000ff;
  }

  .contact-btn:hover .contact-btn-inner {
    transform: translateY(-1.2em);
  }
}

.container {
  max-width: 1600px;
  margin: 0 auto;

  padding: clamp(1.5rem, 5vw, 3rem) /* left/right */ clamp(1.5rem, 5vw, 3rem);

  padding-top: clamp(1.5rem, 6vw, 2rem);
}

/* Hero Section */
.hero {
  margin-bottom: 80px;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 60px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Project Info Container */
.project-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
  align-items: start;
}

/* Left Column */
.project-left {
  display: flex;
  flex-direction: column;
}

/* Project Header */
.project-title {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.project-subtitle {
  font-size: 28px;
  color: #979797;
  line-height: 1.2;
  font-weight: 400;
}

/* Right Column */
.project-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-description {
  font-size: 18px;
  line-height: 1.3;
  color: #1a1a1a;
}

/* Project Meta */
.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
}

.meta-label {
  font-size: 18px;
  color: #979797;
  font-weight: 400;
}

.meta-value {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  text-align: right;
}

.gallery {
  display: grid;
  gap: 40px;
  margin-bottom: 80px;
}

.gallery-item {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Project Details */
.project-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
  align-items: start;
}

/* Left Column */
.details-left {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 60px;
}

.details-text {
  font-size: 18px;
  max-width: 600px;
  line-height: 1.3;
  color: #1a1a1a;
  position: static;
}

.details-text p {
  margin-bottom: 20px;
}

/* Right Column */
.details-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.details-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.details-images .image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #ffffff;
}

.details-images .image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .project-info {
    gap: 1rem;
  }

  .project-title {
    font-size: 24px;
  }

  .project-subtitle {
    font-size: 20px;
  }

  .project-description {
    font-size: 16px;
    line-height: 1.3;
  }

  .meta-item {
    padding: 1rem 0;
  }
  .meta-label,
  .meta-value {
    font-size: 16px;
  }

  /* Project Details: stack columns */
  .details-text {
    font-size: 16px;
    max-width: 90%;
  }

  .project-details {
    gap: 10px;
  }

  .details-images .image-wrapper {
    aspect-ratio: 16 / 9;
  }
}
/* Mobile / Tablet Breakpoint */
@media (max-width: 768px) {
  .project-info {
    gap: 1rem;
  }

  .project-title {
    font-size: 20px;
  }

  .project-subtitle {
    font-size: 20px;
  }

  .project-description {
    font-size: 16px;
    line-height: 1.3;
  }

  .meta-item {
    padding: 1rem 0;
  }
  .meta-label,
  .meta-value {
    font-size: 16px;
  }

  /* Project Details: stack columns */
  .project-details {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Remove sticky behavior on mobile */
  .details-left {
    position: static;
  }

  .details-text {
    font-size: 16px;
    max-width: 55%;
  }

  .details-images .image-wrapper {
    aspect-ratio: 16 / 9;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile Screens */
@media (max-width: 576px) {
  .header {
    padding-bottom: 4rem;
  }
  .project-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-title {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .project-subtitle {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 400;
  }

  .project-description,
  .details-text {
    font-size: 16px;
  }

  .gallery-grid {
    gap: 1rem;
  }

  .details-text {
    position: static;
    font-size: 16px;
    max-width: 100%;
  }

  .meta-label,
  .meta-value {
    font-size: 16px;
  }

  .details-images {
    gap: 1rem;
  }

  .details-images .image-wrapper {
    aspect-ratio: 4 / 3;
  }

  .hero-image {
    aspect-ratio: 4 / 3;
    margin-bottom: 0;
  }

  .gallery-item {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
}

/* Related Work */
.related-work {
  max-width: 1600px;
  margin: 0 auto;
  padding: 120px 0;
}

.related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.related-title {
  font-size: 32px;
  font-weight: 500;
}

.related-arrows {
  display: flex;
  gap: 12px;
}

.related-arrow {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s;
}

.related-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.arrow-icon {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.arrow-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .related-arrow:hover:not(:disabled) .arrow-icon {
    background: #0000ff;
  }

  .related-arrow:hover:not(:disabled) .arrow-icon svg {
    color: #f3f3f3;
  }
}

.related-viewport {
  overflow: hidden;
}

.related-grid {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.related-item {
  flex: 0 0 calc(50% - 10px);
  text-decoration: none;
  color: inherit;
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ddd;
  margin-bottom: 12px;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-info {
  padding: 8px 0;
}

.related-name {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.related-description {
  font-size: 16px;
  color: #979797;
  font-weight: 400;
  line-height: 1.1;
}

@media (max-width: 576px) {
  .related-item {
    flex: 0 0 100%;
  }

  .related-title {
    font-size: 24px;
  }

  .related-description {
    line-height: 1.3;
  }
}

.footer {
  background-color: #f3f3f3;
}

.line {
  display: block;
}

.footer-container {
  max-width: 1600px;
  margin: 0;
}

.back-to-top {
  text-align: right;
  margin-bottom: 40px;
}

.back-to-top-btn {
  background: none;
  border: none;
  color: #000000;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.arrow-icon {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-size: 0.6rem;
  transition: transform 0.3s;
}

.arrow-icon svg {
  width: 18px;
  height: 18px;
  stroke: #f3f3f3;
}

@media (hover: hover) and (pointer: fine) {
  .back-to-top-btn:hover .arrow-icon {
    background: #0000ff;
  }

  .back-to-top-btn:hover .arrow-icon svg {
    color: #f3f3f3;
  }
}

.email-section {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #000000;
}

.email-label {
  font-size: 16px;
  color: #979797;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.email-large {
  font-size: 40px;
  font-weight: 500;
  color: #1a1a1a;
}

.email-link {
  color: #1a1a1a;
  text-decoration: none;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}

.footer-column h4 {
  font-size: 16px;
  color: #979797;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: 500;
}

.footer-column ul {
  list-style: none;
  margin: 0;
}

.footer-column li {
  margin-bottom: 4px;
}

.footer-column a {
  color: #000000;
  text-decoration: none;
  font-size: 16px;
}

.footer-column a:hover {
  opacity: 0.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 40px;
  row-gap: 8px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid #000000;
  margin-bottom: 30px;
}

.footer-location {
  grid-column: 1 / -1;
}

.footer-location h4 {
  font-size: 16px;
  color: #979797;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0px;
  font-weight: 500;
}

.footer-bottom p {
  font-size: 16px;
  color: #000000;
  margin: 0;
  max-width: 200px;
}

/* ----------------------------------
FOOTER BRAND ROW
 ---------------------------------- */

.footer-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #000000;
}

.footer-credits {
  display: flex;
  gap: 12px;
  align-items: center;
}

.copyright,
.website-by {
  font-size: 12px;
  color: #000000;
}

.website-by a {
  font-weight: 700;
  color: #000000;
  text-decoration: none;
}

@media (max-width: 768px) {
  .email-large {
    font-size: 24px;
    word-break: break-word;
  }

  .email-label {
    font-size: 12px;
  }

  .footer-column h4 {
    font-size: 12px;
  }

  .footer-column a {
    font-size: 14px;
  }

  .footer-bottom p {
    font-size: 14px;
  }

  .copyright,
  .website-by {
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .back-to-top {
    text-align: right;
    margin-bottom: 20px;
  }

  .arrow-icon {
    width: 32px;
    height: 32px;
  }

  .email-section {
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .email-large {
    font-size: 24px;
    word-break: break-word;
  }

  .email-label {
    font-size: 12px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .footer-column h4 {
    font-size: 12px;
  }

  .footer-column a {
    font-size: 14px;
  }

  .footer-column li {
    margin-bottom: 6px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 8px;
    margin-bottom: 20px;
    padding-top: 20px;
    gap: 16px;
  }

  .footer-location {
    grid-column: 1 / -1;
  }

  .footer-bottom p {
    font-size: 14px;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 20px;
    margin-top: 20px;
  }

  .footer-credits {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .copyright,
  .website-by {
    font-size: 12px;
  }
}

/* Extra-small phones */
@media (max-width: 375px) {
  .email-large {
    font-size: 22px;
  }
}

.architect-link {
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.architect-link:visited {
  color: inherit;
}

@media (hover: hover) and (pointer: fine) {
  .architect-link {
    position: relative;
    transition: color 0.3s ease;
  }

  .architect-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
  }

  .architect-link:hover::after {
    width: 100%;
  }
}
