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

body {
  background: #f5f3ee;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

.logo-home {
  position: absolute;
  right: 35px;
  bottom: 24px;
  z-index:100;
}

/* ── Page layout ── */
.page {
  display: grid;
 grid-template-columns: minmax(0, 1fr) minmax(400px, 25%);
  min-height: 100vh;
  width: 100vw;
}

/* ── LEFT: Parallax Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  cursor: crosshair;
  background: #f5f3ee;
}

.cube-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* ── House ── */
.layer--house {
  position: absolute;
  inset: 0;
  z-index: 5;
  will-change: transform;
}

/* top must stay in sync with hcTop in js/parallax.js, which places the
   prolongation grid lines on the same box */
.house-svg {
  position: absolute;
  top: 33.6%;
  left: 8.75%;
  width: 67.5%;
  height: 58.5%;
}

/* ── Eyes (hidden by default) ── */
.layer--eyes {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  will-change: transform;
  display: none;
}

.eyes-container {
  position: absolute;
  top: 38%;
  left: 18%;
  width: 40%;
  display: flex;
  gap: 6%;
  justify-content: center;
}

.eye-svg { width: 47%; }

/* ── Text layers ── */
.layer--subtitle,
.layer--title {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9;
}

/*
 * Both text blocks share the same left position (4%)
 * and have a left border that visually connects them.
 * Each block has a line above and below (border-top + border-bottom).
 */
.subtitle-block,
.title-block {
  position: absolute;
}

.subtitle-block {
  top: 5%;
  right: 1%;
  width: 33%;
}

.subtitle-block p {
 color: #000;
 font-family: Antarctica;
 font-size: 30px;
 font-style: normal;
 font-weight: 400;
 line-height: 110%;
 margin: 0;
}

.title-block {
  top: 5%;
  left: 4%;
}

.second-paraph {
  margin-top: 80px;
}

.title-block h1 {
  color: #000;
  font-family: "Systmastencil";
  font-size: 100px;
  font-style: normal;
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
}

/* ── RIGHT ── */
.content {
  background: #fff;
  border-left: 1px solid rgba(0,0,0,0.08);
  min-width: 400px;
}

/* ── Responsive ── */

@media (max-width: 1800px) {
  .subtitle-block p {
   font-size: 26px;
  }
  
  .page {
    grid-template-columns: minmax(0, 1fr) minmax(500px, 25%);
  }
}


@media (max-width: 1600px) {
  .second-paraph {
    margin-top: 50px;
  }
  .subtitle-block p {
   font-size: 20px;
  }
  
  .title-block h1 {
    font-size: 80px;
    font-weight: 400;
  }
}

@media (max-width: 1400px) {
  .page {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 25%);
  }
  
  .title-block h1 {
    font-size: 60px;
    font-weight: 400;
  }
}

@media (max-width: 768px) {
  .page {
    grid-template-columns: 1fr;
    grid-template-rows: 60vh auto;
  }
  .second-paraph {
    display: none;
  }
  
  .subtitle-block {
    bottom: 10%;
    left: 4%;
    width: 100%;
    top: initial;
    right: initial;
  }
  
  #tl-ttl-top,
  #tl-vleft,
  #tl-ttl-bot {
    display: none;
  }
  
  .title-block h1 {
    font-size: 60px;
    font-weight: 400;
  }
  
  .logo-home {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 70px;
    z-index: 100;
    height: auto;
  }
  .content {
    background: #fff;
    border-left: 1px solid rgba(0,0,0,0.08);
    min-width: unset;
  }
}




/* Below 1200px the menu leaves the layout and becomes a retractable panel
   (see the home block at the end of style.css), so the hero takes the whole
   width. Only the columns are touched: the 768px block above keeps its rows. */
@media (max-width: 1199.98px) {
  .page {
    grid-template-columns: 1fr;
  }
}

/* Below 768px the house is widened and raised (the same values live in MOBILE
   in js/parallax.js, which draws the grid lines on this very box — keep the
   two in sync, breakpoint included). */
@media (max-width: 767.98px) {
  .house-svg {
    top: 13.1%;
    left: 5%;
    width: 92%;
    /* same 0.92/0.75 factor as the width, so the box keeps its ratio and the
       house scales up instead of being capped by its height */
    height: 80%;
  }
}

/* Same fix as the menu panel in style.css: below 768px the browser's bottom
   toolbar eats into the viewport, and 100vh is the height *without* it — so
   whatever is anchored to the bottom of the hero (the sia logo) ends up
   underneath. dvh follows the area actually visible; browsers that don't know
   it keep the 100vh of the rules above. */
@media (max-width: 767.98px) {
  body {
    min-height: 100dvh;
  }

  .page {
    min-height: 100dvh;
    grid-template-rows: 60dvh auto;
  }

  .hero {
    min-height: 100dvh;
  }
}
