/* =========================================================
   PROJETH — MAIN.CSS
   Reorganized structure / v1 cleanup
========================================================= */

/* =========================================================
   01. RESET / BASE
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  background: #000000;
  overflow-x: hidden;
}

body {
  font-family: "neue-frutiger-world", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}


/* =========================================================
   02. EXPERIENCE VISIBILITY
========================================================= */

.mobile-experience {
  display: none;
}


/* =========================================================
   03. SHARED PANEL CONTROLS
========================================================= */

.contact-tab,
.contact-close,
.context-tab,
.context-close,
.archive-tab,
.archive-close,
.integration-tab,
.integration-close {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.contact-tab,
.context-tab,
.archive-tab,
.integration-tab {
  width: 132px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  background: #fff;
  border-right: 4px solid #005487;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.contact-reveal,
.context-reveal,
.archive-reveal,
.integration-reveal {
  width: 100%;
  overflow: hidden;
}

.contact-content,
.context-content,
.archive-content,
.integration-content {
  box-shadow: inset -4px 0 0 #005487;
}

.contact-close,
.context-close,
.archive-close,
.integration-close {
  display: block;
  margin-top: 1.35rem;
  margin-left: auto;
  opacity: 0.78;
  font-size: 0.72rem;
}

.close-arrow {
  display: inline-block;
  font-size: 1.5em;
  position: relative;
  top: 0.03em;
}

.contact-content a,
.integration-text a {
  color: #005487;
  text-decoration: none;
}

.contact-content a:hover,
.integration-text a:hover {
  opacity: 0.75;
}


/* =========================================================
   04. DESKTOP CONTACT PANEL
========================================================= */

.contact-panel {
  position: absolute;
  top: 7vh;
  right: 7vw;
  z-index: 20;
  width: 380px;
  font-family: "ibm-plex-mono", monospace;
  color: #000;
}

.contact-content {
  background: #fff;
  padding: 1.65rem 1.15rem 1rem 1.15rem;
  font-size: 0.74rem;
  line-height: 1.58;
  text-align: left;
  transform: translateX(100%);
  transition: transform 420ms cubic-bezier(0.65, 0, 0.2, 1);
}

.contact-panel.is-open .contact-content {
  transform: translateX(0);
}

.contact-content p + p {
  margin-top: 1rem;
}

.contact-location {
  margin-top: 1.6rem;
}

.contact-content a {
  color: #005487;
  text-decoration: none;
}


/* =========================================================
   05. DESKTOP HERO
========================================================= */

.projeth-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 780px;
  overflow: hidden;
  background: #000;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  opacity: 0.88;
}

.hero-darken {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.18) 40%,
      rgba(0,0,0,0.08) 100%
    );
}

.hero-copy {
  position: absolute;
  right: 7vw;
  bottom: 9vh;
  z-index: 3;
  width: min(780px, 78vw);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero-signature {
  margin-bottom: 1.8rem;
  font-family: "neue-frutiger-world", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}

.hero-title {
  font-family: "neue-frutiger-world", sans-serif;
  font-weight: 900;
  font-size: clamp(3.8rem, 8vw, 8.2rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-align: right;
  color: rgba(255,255,255,0.94);
}

.hero-overlay {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  object-position: center center;
  z-index: 4;
  opacity: 0.55;
  mix-blend-mode: multiply;
  pointer-events: none;
}


/* =========================================================
   06. DRAWING FIELDS
========================================================= */

.drawing-field {
  position: relative;
  z-index: 30;
  height: 42vh;
  overflow: visible;
  background: #000;
}

.drawing-field--narrow {
  position: relative;
  height: 38vh;
  min-height: 280px;
  max-height: 460px;
  z-index: 30;
  overflow: visible;
  background: #000000;
  box-shadow:
    inset 0 80px 120px rgba(0,0,0,0.45),
    inset 0 -80px 120px rgba(0,0,0,0.45);
}

.drawing-field--work {
  height: 32vh;
  min-height: 240px;
  max-height: 380px;
}

.drawing-field--permanence,
.drawing-field--archive {
  height: 30vh;
  min-height: 230px;
  max-height: 360px;
}

.drawing-crop,
.drawing-crop--secondary {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.drawing-underlay {
  position: absolute;
  top: 62%;
  left: 50%;
  width: 125vw;
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: 0.55;
  pointer-events: none;
}

.drawing-underlay--secondary {
  top: 50%;
  left: 50%;
  width: 125vw;
  max-width: none;
  opacity: 0.42;
  transform: translate(-50%, -50%) scale(1.08);
}

.drawing-underlay--hero {
  top: 50%;
  left: 50%;
  width: 125vw;
  height: 130%;
  object-fit: cover;
  opacity: 0.95;
  transform: translate(-50%, -50%) scale(1.04);
}

.drawing-underlay--context {
  top: 50%;
  left: 71%;
  width: 130vw;
  height: 130%;
  object-fit: cover;
  opacity: 0.95;
  transform: translate(-50%, -50%) scale(1.08);
}

.drawing-underlay--archive {
  top: 60%;
  left: 50%;
  width: 100vw;
  height: 130%;
  object-fit: cover;
  opacity: 0.95;
  transform: translate(-50%, -50%) scale(1);
}


/* =========================================================
   07. DESKTOP NARRATIVE PANELS
========================================================= */

.context-panel,
.archive-panel,
.integration-panel {
  position: absolute;
  top: 6vh;
  right: 7vw;
  z-index: 80;
  font-family: "ibm-plex-mono", monospace;
  color: #000;
  opacity: 1;
  pointer-events: auto;
}

.context-panel,
.integration-panel {
  width: min(1040px, 90vw);
}

.archive-panel {
  width: min(960px, 90vw);
}

.integration-panel {
  overflow: hidden;
}

.context-content,
.archive-content,
.integration-content {
  display: grid;
  grid-template-columns: auto 420px;
  column-gap: 2rem;
  align-items: start;
  background: #fff;
  padding: 3rem 1.5rem 1.25rem 1.5rem;
  transform: translateX(100%);
  transition: transform 620ms cubic-bezier(0.65, 0, 0.2, 1);
}

.integration-content {
  background: rgba(255,255,255,0.96);
  transform: translateX(calc(100% + 2px));
}

.context-panel.is-open .context-content,
.archive-panel.is-open .archive-content,
.integration-panel.is-open .integration-content {
  transform: translateX(0);
}

.context-visual img,
.archive-visual img,
.integration-visual img {
  width: 100%;
  height: auto;
  opacity: 0.9;
}

.integration-visual img {
  opacity: 0.92;
}

.context-text,
.archive-text,
.integration-text {
  width: 420px;
  font-size: 0.74rem;
  line-height: 1.62;
  padding-right: 1rem;
}

.integration-text {
  line-height: 1.68;
}

.context-text p + p,
.archive-text p + p,
.integration-text p + p {
  margin-top: 1rem;
}

.integration-sample-link {
  margin-top: 2rem;
}

.integration-sample-link a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border: 1px solid #005487;
  border-right: 4px solid #005487;
  color: inherit;
  text-decoration: none;
  font-family: "ibm-plex-mono", monospace;
  font-size: 0.72rem;
  line-height: 1;
}


/* =========================================================
   08. DESKTOP IMAGE STATEMENTS
========================================================= */

.archive-image-section,
.operational-image-section,
.integration-image-section {
  position: relative;
  width: 100%;
  background: #000;
}

.archive-image-section {
  z-index: 10;
  overflow: visible;
  box-shadow: 0 -80px 120px rgba(0,0,0,0.45);
}

.operational-image-section,
.integration-image-section {
  overflow: hidden;
}

.operational-image-section {
  z-index: 1;
}

.archive-image,
.operational-image,
.integration-image {
  display: block;
  width: 100%;
  height: auto;
}

.operational-darken,
.integration-darken {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.operational-darken {
  background:
    radial-gradient(
      ellipse at right bottom,
      rgba(0,0,0,0.32) 0%,
      rgba(0,0,0,0.18) 36%,
      rgba(0,0,0,0.08) 68%,
      rgba(0,0,0,0.02) 90%,
      rgba(0,0,0,0) 100%
    );
}

.integration-darken {
  background:
    radial-gradient(
      ellipse at right bottom,
      rgba(0,0,0,0.42) 0%,
      rgba(0,0,0,0.22) 38%,
      rgba(0,0,0,0.08) 70%,
      rgba(0,0,0,0) 100%
    );
}

.archive-statement,
.operational-statement,
.integration-statement {
  position: absolute;
  right: 7vw;
  bottom: 8vh;
  z-index: 20;
  text-align: right;
}

.archive-statement {
  width: min(1280px, 98vw);
}

.operational-statement {
  width: min(1180px, 88vw);
}

.integration-statement {
  width: min(980px, 86vw);
}

.archive-statement h2,
.operational-statement h2,
.integration-statement h2 {
  font-family: "neue-frutiger-world", sans-serif;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-align: right;
  background:
    linear-gradient(
      to right,
      rgba(255,255,255,0.98) 0%,
      rgba(255,255,255,0.90) 100%
    );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}


.archive-statement h2,
.operational-statement h2,
.integration-statement h2 {
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 1;
}

.archive-statement h2 {
  position: relative;
  z-index: 40;
}

.operational-statement h2 {
  padding-bottom: 0;
}

.post-archive-sequence {
  position: relative;
  z-index: 2;
}


/* =========================================================
   09. CLOSING DRAWING
========================================================= */

.closing-drawing-section {
  width: 100%;
  background: #000;
  overflow: hidden;
}

.closing-drawing-image {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================================================
   10. FOOTER
========================================================= */

.projeth-footer {
  position: relative;
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 6rem 7vw 6.5rem 7vw;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo-lockup {
  width: min(460px, 46vw);
}

.footer-logo-lockup img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-meta {
  margin-top: 1.4rem;
  font-family: "ibm-plex-mono", monospace;
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.58);
}

.footer-credit {
  max-width: 320px;
  padding-bottom: 0.35rem;
  text-align: right;
  font-family: "ibm-plex-mono", monospace;
  font-size: 0.8rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.58);
}

.footer-copyright {
  margin-top: 1.25rem;
  font-family: "ibm-plex-mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.5);
}

.footer-meta a,
.footer-credit a {
  color: inherit;
  text-decoration: none;
}

.footer-meta a:hover,
.footer-credit a:hover {
  opacity: 0.72;
}


/* =========================================================
   11. RESPONSIVE — STATEMENT READABILITY
========================================================= */

@media (max-width: 1500px) {
  .archive-image-section::after,
  .operational-image-section::after,
  .integration-image-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 15;
    pointer-events: none;
    background:
      radial-gradient(
        ellipse at right bottom,
        rgba(0,0,0,0.56) 0%,
        rgba(0,0,0,0.34) 38%,
        rgba(0,0,0,0.08) 72%,
        rgba(0,0,0,0) 100%
      );
  }

  .archive-statement,
  .operational-statement,
  .integration-statement {
    z-index: 20;
  }
}



/* =========================================================
   12. RESPONSIVE — TABLET / LAPTOP
========================================================= */

@media (max-width: 1100px) {

  .archive-statement h2,
  .operational-statement h2,
  .integration-statement h2 {
    font-size: clamp(2.55rem, 4.9vw, 4.2rem);
    line-height: 1;
  }

  .operational-statement,
  .integration-statement {
    width: 90vw;
  }
	
	.hero-title {

    font-size: clamp(3rem, 8.6vw, 4.6rem);

    line-height: 0.92;

  }

}

@media (max-width: 1100px) {

  .archive-statement,
  .operational-statement,
  .integration-statement {
    bottom: 3vh;
  }

}


/* =========================================================
   13. RESPONSIVE — DESKTOP EXPERIENCE / NARROW
========================================================= */

@media (max-width: 900px) {

  .contact-panel {
    top: 5vh;
    right: 6vw;
    width: 380px;
    max-width: calc(100vw - 12vw);
  }

  .hero-copy {
    right: 6vw;
    bottom: 8vh;
    width: 88vw;
  }

  .hero-signature {
    margin-bottom: 1.2rem;
    font-size: 0.7rem;
  }

  .hero-title {
    font-size: clamp(3rem, 11vw, 5rem);
    line-height: 0.92;
  }

  .archive-statement {
    right: 6vw;
    bottom: 2vh;
    width: 88vw;
  }

  .operational-statement,
  .integration-statement {
    right: 6vw;
    bottom: 4vh;
    width: 92vw;
  }

  .archive-statement h2,
  .operational-statement h2,
  .integration-statement h2 {
    font-size: clamp(2.15rem, 6.2vw, 3.2rem);
    line-height: 1;
  }

  .context-panel,
  .archive-panel,
  .integration-panel {
    right: 6vw;
    width: 88vw;
    top: 8vh;
    z-index: 100;
  }

  .context-visual,
  .archive-visual,
  .integration-visual {
    display: none;
  }

  .context-content,
  .archive-content,
  .integration-content {
    max-height: 72vh;
    overflow-y: auto;
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .context-text,
  .archive-text,
  .integration-text {
    width: 100%;
  }

  .projeth-footer {
    padding: 4rem 6vw 4.5rem 6vw;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.75rem;
  }

  .footer-logo-lockup {
    width: min(420px, 82vw);
  }

  .footer-credit {
    max-width: 100%;
    text-align: left;
  }

}


/* =========================================================
   14. EXPERIENCE SWITCH
========================================================= */

@media (max-width: 768px) {

  .desktop-experience {
    display: none;
  }

  .mobile-experience {
    display: block;
  }

}


/* =========================================================
   15. MOBILE HERO
========================================================= */

.mobile-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.mobile-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-hero-darken {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.62) 0%,
      rgba(0,0,0,0.28) 46%,
      rgba(0,0,0,0.08) 100%
    );
}

.mobile-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.mobile-hero-copy {
  position: absolute;
  right: 6vw;
  bottom: 8vh;
  z-index: 3;
  width: 88vw;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mobile-hero-signature {
  margin-bottom: 1.1rem;
  font-family: "neue-frutiger-world", sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.66);
}

.mobile-hero-title {
  font-family: "neue-frutiger-world", sans-serif;
  font-weight: 900;
  font-size: clamp(2.85rem, 11.5vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-align: right;
  color: rgba(255,255,255,0.94);
}


/* =========================================================
   16. MOBILE CONTACT PANEL
========================================================= */

.mobile-contact-panel {
  position: absolute;
  top: 5.5vh;
  right: 6vw;
  z-index: 8;
  width: min(300px, 88vw);
  font-family: "ibm-plex-mono", monospace;
  color: #000;
}

.mobile-contact-tab,
.mobile-contact-close {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.mobile-contact-tab {
  width: 112px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  background: #fff;
  border-right: 4px solid #005487;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.mobile-contact-reveal {
  width: 100%;
  overflow: hidden;
}

.mobile-contact-content {
  background: rgba(255,255,255,1);
  padding: 1.25rem 1rem 0.95rem 1rem;
  font-size: 0.68rem;
  line-height: 1.58;
  text-align: left;
  box-shadow: inset -4px 0 0 #005487;
  transform: translateX(100%);
  transition: transform 420ms cubic-bezier(0.65, 0, 0.2, 1);
}

.mobile-contact-panel.is-open .mobile-contact-content {
  transform: translateX(0);
}

.mobile-contact-content p + p {
  margin-top: 0.9rem;
}

.mobile-contact-content a {
  color: #005487;
  text-decoration: none;
}

.mobile-contact-close {
  display: block;
  margin-top: 1.15rem;
  margin-left: auto;
  opacity: 0.78;
  font-size: 0.68rem;
}


/* =========================================================
   17. MOBILE DRAWING STRIP
========================================================= */

.mobile-drawing-strip {
  width: 100%;
  background: #000;
  overflow: hidden;
}

.mobile-drawing-image {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================================================
   18. MOBILE TEXT BLOCKS
========================================================= */

.mobile-text-block {
  background: #fff;
  padding: 2.8rem 7vw 3.2rem 18vw;
}

.mobile-text-label {
  margin-bottom: 1.6rem;
  font-family: "ibm-plex-mono", monospace;
  font-size: 1.6 rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: right;
  color: rgba(0,0,0,0.72);
}

.mobile-text-content {
  font-family: "ibm-plex-mono", monospace;
  font-size: 0.82rem;
  line-height: 1.72;
  color: rgba(0,0,0,0.88);
}

.mobile-text-content p + p {
  margin-top: 1.35rem;
}

.mobile-text-content a {
  color: #005487;
  text-decoration: none;
}

.mobile-text-content a:hover {
  opacity: 0.75;
}

.mobile-text-content .integration-sample-link {
  margin-top: 2rem;
}

.mobile-text-content .integration-sample-link a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border: 1px solid #005487;
  border-right: 4px solid #005487;
  color: inherit;
  text-decoration: none;
  font-family: "ibm-plex-mono", monospace;
  font-size: 0.72rem;
  line-height: 1;
}

.mobile-text-image {
  margin-top: 2rem;
}

.mobile-text-image img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 3.5rem;
}


/* =========================================================
19. MOBILE IMAGE STATEMENTS
========================================================= */

.mobile-statement-image,
.mobile-operational-image,
.mobile-final-image {
position: relative;
width: 100%;
overflow: hidden;
background: #000;
}

.mobile-statement-photo,
.mobile-operational-photo,
.mobile-final-photo {
display: block;
width: 100%;
height: auto;
}

.mobile-statement-darken,
.mobile-operational-darken,
.mobile-final-darken {
position: absolute;
inset: 0;
}

.mobile-statement-darken {
background:
linear-gradient(
to top,
rgba(0,0,0,0.42) 0%,
rgba(0,0,0,0.10) 100%
);
}

.mobile-operational-darken {
background:
radial-gradient(
ellipse at right bottom,
rgba(0,0,0,0.34) 0%,
rgba(0,0,0,0.16) 42%,
rgba(0,0,0,0.04) 100%
);
}

.mobile-final-darken {
background:
radial-gradient(
ellipse at right bottom,
rgba(0,0,0,0.42) 0%,
rgba(0,0,0,0.22) 42%,
rgba(0,0,0,0.06) 100%
);
}

.mobile-statement-copy,
.mobile-operational-copy,
.mobile-final-copy {
position: absolute;
right: 5vw;
z-index: 2;
}

.mobile-statement-copy {
bottom: 0.8rem;
width: 94vw;
}

.mobile-operational-copy {
bottom: 1.2rem;
width: 86vw;
}

.mobile-final-copy {
bottom: 1.2rem;
width: 88vw;
}

.mobile-statement-copy h2,
.mobile-operational-copy h2,
.mobile-final-copy h2 {
font-family: “neue-frutiger-world”, sans-serif;
font-weight: 900;
font-size: clamp(1.75rem, 7.4vw, 3.05rem);
line-height: 1;
letter-spacing: -0.055em;
text-align: right;

background:
linear-gradient(
to right,
rgba(255,255,255,0.98) 0%,
rgba(255,255,255,0.90) 100%
);

-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
color: transparent;
}

/* =========================================================
   20. MOBILE CLOSING STAMP
========================================================= */

.mobile-closing-stamp {
  width: 100%;
  background: #000;
  overflow: hidden;
}

.mobile-closing-stamp-image {
  display: block;
  width: 100%;
  height: auto;
}
