/* =====================================================
   portfolio.css — Interra Design
   Hero: small circle → tall arch → full 100vw×100vh banner
   Matches the Figma prototype recording exactly.
   ===================================================== */

/* ──────────────────────────────────────────────────────
   HERO SECTION
   ────────────────────────────────────────────────────── */

.hero-scroll-container {
  height: 300vh;
  /* generous runway for smooth 3-phase morph */
  position: relative;
}

.hero-section {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  background:rgb(224 204 164);
  overflow: hidden;
  will-change: transform;
}

/* Top gradient overlay */
.hero-top-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background:rgb(224 204 164);
  pointer-events: none;
  z-index: 11;
}

/* Bottom sandy panel */
.hero-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 34%;
  background: rgba(231, 223, 211, 0.92);
  backdrop-filter: blur(2px);
  z-index: 10;
}

/* Left text */
.hero-leftText {
  position: absolute;
  left: 7%;
  top: 48%;
  transform: translateY(-50%);
  z-index: 20;
  width: 240px;
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
  color: #5f5a54;
  font-family: 'Cormorant Garamond', serif;
}

/* Right text */
.hero-rightText {
  position: absolute;
  right: 7%;
  top: 48%;
  transform: translateY(-50%);
  z-index: 20;
  width: 270px;
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
  color: #5f5a54;
  font-family: 'Cormorant Garamond', serif;
}

/* Arch outer — absolute fill, centres the morphing shape */
.hero-arch-outer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  pointer-events: none;
}

/* THE MORPHING SHAPE
   Starts: small circle (280×280, border-radius 50%)
   Phase 1: tall arch (wider, taller, top-radius keeps arch shape)
   Phase 2: fills full 100vw × 100vh, border-radius → 0          */
.hero-archWrap {
  position: relative;
  overflow: hidden;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  will-change: width, height, border-radius;
  flex-shrink: 0;
}

.hero-archImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  /* keep face centred */
  will-change: transform;
  display: block;
}

/* Title */
.hero-title-wrap {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  z-index: 30;
  pointer-events: none;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(80px, 13vw, 190px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(47, 43, 39, 0.88);
  white-space: nowrap;
  mix-blend-mode: multiply;
}

/* ──────────────────────────────────────────────────────
   HERO — MOBILE: static full-bleed banner, no scroll pin
   ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-scroll-container {
    height: auto;
  }

  .hero-section {
    position: relative;
    height: 85vw;
    min-height: 300px;
    max-height: 500px;
    overflow: hidden;
  }

  .hero-leftText,
  .hero-rightText,
  .hero-panel,
  .hero-top-fade {
    display: none;
  }

  .hero-arch-outer {
    position: absolute;
    inset: 0;
    display: block;
  }

  .hero-archWrap {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-archImg {
    transform: none !important;
  }

  /* Gradient so title reads over image */
  .hero-arch-outer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(47, 43, 39, 0.50) 100%);
    pointer-events: none;
    z-index: 1;
  }

  .hero-title-wrap {
    bottom: 14px;
    z-index: 40;
  }

  .hero-title {
    font-size: clamp(38px, 10vw, 68px) !important;
    color: rgba(231, 223, 211, 0.95);
    mix-blend-mode: normal;
    white-space: nowrap;
  }
}
/* ──────────────────────────────────────────────────────
  FILTERBAR SECTION
   ────────────────────────────────────────────────────── */

.portfolio {
  background: #fdfbf7;
  padding: 100px 40px;
  font-family: "Helvetica Neue", sans-serif;
}

.portfolio-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Filter Bar styles */
.filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-bottom: 70px;
  border-bottom: 1px solid #e8e4dc;
  padding-bottom: 20px;
}

.filter-opt {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: #7a756e;
  cursor: pointer;
  padding: 6px 4px;
  position: relative;
  outline: none;
  transition: color 0.3s ease;
}

.filter-opt:hover {
  color: #111111;
}

/* Active indicator line */
.filter-opt.active {
  color: #111111;
}

.filter-opt.active::after {
  content: "";
  position: absolute;
  bottom: -21px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #111111;
}

/* Grid Layout */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Cards Structure */
.project-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.project-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background-color: #eeebe5;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover Zoom effect */
.project-card:hover .project-img {
  transform: scale(1.04);
}

/* Badges */
.status-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(11, 11, 12, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #eae7e2;
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 20px;
  font-weight: 500;
  pointer-events: none;
}

.status-badge.alert {
  background: rgba(122, 107, 85, 0.9);
}

/* Typography inside cards */
.project-content {
  padding: 24px 4px 10px;
}

.project-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #8c867e;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-location {
  position: relative;
  padding-left: 12px;
}

.project-location::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #8c867e;
}

.project-title {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 500;
  color: #111111;
  line-height: 1.2;
}

.project-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #5c5751;
}

/* Responsive Rules */
@media (max-width: 1100px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .portfolio {
    padding: 60px 20px;
  }

  .filter-bar {
    gap: 16px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 14px;
    margin-bottom: 40px;
    -webkit-overflow-scrolling: touch;
  }
  
  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-opt {
    font-size: 14px;
    white-space: nowrap;
  }
  
  .filter-opt.active::after {
    bottom: -15px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .project-image-wrapper {
    aspect-ratio: 3 / 2;
  }
}





/* ──────────────────────────────────────────────────────
   SPACESHAPE SECTION
   ────────────────────────────────────────────────────── */
.spaceshape-section {
  background: #e7dfd3;
  padding: 100px 24px 120px;
  text-align: center;
}

.spaceshape-inner {
  max-width: 760px;
  margin: 0 auto;
}

.spaceshape-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 36px);
  color: #2f2b27;
  line-height: 1.4;
  margin-bottom: 28px;
}

.spaceshape-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(15px, 1.2vw, 17px);
  color: #5f5a54;
  line-height: 1.75;
}

@media (max-width: 768px) {
  .spaceshape-section {
    padding: 52px 20px 60px;
  }

  .spaceshape-heading {
    font-size: clamp(20px, 5.5vw, 28px);
    margin-bottom: 16px;
  }

  .spaceshape-body {
    font-size: 15px;
    line-height: 1.7;
  }
}

/* ──────────────────────────────────────────────────────
   TURNKEY SECTION
   ────────────────────────────────────────────────────── */
.turnkey-section {
  position: relative;
  background: #0d0d0d;
  overflow: hidden;
  padding-bottom: 80px;
}

.turnkey-curve {
  position: relative;
  width: 100%;
  height: 120px;
  background: #e7dfd3;
  border-bottom-left-radius: 50% 100%;
  border-bottom-right-radius: 50% 100%;
  z-index: 2;
}

.turnkey-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

.tk-slide-info {
  text-align: center;
  margin: 20px 0 40px;
  position: relative;
  z-index: 5;
  padding: 0 16px;
}

.tk-slide-name {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  color: #e7dfd3;
  min-height: 1.2em;
  transition: opacity 0.25s ease;
}

.turnkey-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 120px;
  z-index: 5;
}

.tk-viewport {
  width: 100%;
  max-width: 880px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  touch-action: pan-y;
}

.tk-track {
  display: flex;
  transition: transform 0.65s ease;
  will-change: transform;
}

.tk-slide {
  min-width: 100%;
  flex: 0 0 100%;
  height: 520px;
}

.tk-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.tk-arrow {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e7dfd3;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.tk-arrow-prev {
  left: 20px;
}

.tk-arrow-next {
  right: 20px;
}

.tk-thumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 36px;
  position: relative;
  z-index: 5;
  padding: 0 16px;
}

.tk-thumb {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0.45;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.3s ease;
}

.tk-thumb.active,
.tk-thumb:hover {
  opacity: 1;
  transform: scale(1.06) translateY(-3px);
  border-color: rgba(231, 223, 211, 0.45);
}

@media (max-width: 1200px) {
  .turnkey-slider-wrap {
    padding: 0 80px;
  }
}

@media (max-width: 768px) {
  .turnkey-section {
    padding-bottom: 52px;
  }

  .turnkey-curve {
    height: 70px;
  }

  .tk-slide-info {
    margin: 18px 0 22px;
  }

  .turnkey-slider-wrap {
    padding: 0 14px;
  }

  .tk-viewport {
    max-width: 100%;
    border-radius: 12px;
  }

  .tk-slide {
    height: 58vw;
    min-height: 220px;
    max-height: 340px;
  }

  .tk-arrow {
    width: 38px;
    height: 38px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.45);
  }

  .tk-arrow-prev {
    left: 20px;
  }

  .tk-arrow-next {
    right: 20px;
  }

  .tk-thumbs {
    gap: 10px;
    margin-top: 22px;
  }

  .tk-thumb {
    width: 72px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .turnkey-slider-wrap {
    padding: 0 12px;
  }

  .tk-slide {
    height: 62vw;
    min-height: 210px;
  }

  .tk-slide-name {
    font-size: 24px;
  }
}


/* ──────────────────────────────────────────────────────
   NOVA SECTION
   ────────────────────────────────────────────────────── */
..nova-section {
  background: #e7dfd3;
  padding: 100px 40px 0;
  overflow: hidden;
}

.nova-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.nova-title {
  margin: 0 0 14px;
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #2f2b27;
}

.nova-desc {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.55;
  color: #5f5a54;
}

.nova-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 0.92fr 0.72fr;
  grid-template-areas:
    "item1 item2 item3 item3"
    "item4 item2 item5 item6"
    "item7 item8 item8 item6";
  grid-auto-rows: 238px;
  gap: 18px;
  align-items: stretch;
}

.item {
  overflow: hidden;
  background: #d9d0c3;
  cursor: pointer;
}

.item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.item:hover img {
  transform: scale(1.05);
}

.item1 { grid-area: item1; }
.item2 { grid-area: item2; }
.item3 { grid-area: item3; }
.item4 { grid-area: item4; }
.item5 { grid-area: item5; }
.item6 { grid-area: item6; }
.item7 { grid-area: item7; }
.item8 { grid-area: item8; }

.nova-fade {
  max-width: 1150px;
  margin: -72px auto 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(231, 223, 211, 0), #e7dfd3 72%);
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.nova-cta {
  text-align: center;
  padding: 26px 0 90px;
}

.nova-learn {
  border-radius: 10px;
  padding: 20px;
  background: #363c28;
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  line-height: 1;
  color: #e6dbd0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.3s ease;
}

.nova-learn:hover {
  gap: 16px;
}

/* POPUP */

.nova-popup {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: 0.35s ease;
}

.nova-popup.active {
  opacity: 1;
  visibility: visible;
}

.nova-popup img {
  width: auto;
  max-width: 92%;
  max-height: 90dvh;
  object-fit: contain;
  border-radius: 14px;
  transform: scale(0.9);
  transition: transform 0.35s ease;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.nova-popup.active img {
  transform: scale(1);
}

.nova-popup-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s ease;
}

.nova-popup-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(90deg);
}

@media (max-width: 1024px) {
  .nova-section {
    padding: 72px 24px 0;
  }

  .nova-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "item1 item2"
      "item3 item4"
      "item5 item6"
      "item7 item8";
    grid-auto-rows: 240px;
    gap: 14px;
  }

  .nova-fade {
    margin-top: -48px;
    height: 80px;
  }
}

@media (max-width: 640px) {
  .nova-section {
    padding: 48px 16px 0;
  }

  .nova-header {
    margin-bottom: 28px;
  }

  .nova-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 42vw;
    gap: 10px;
  }

  .nova-fade {
    margin-top: -32px;
    height: 60px;
  }

  .nova-cta {
    padding: 8px 0 38px;
  }

  .nova-learn {
    font-size: 20px;
    padding: 16px;
  }

  .nova-popup {
    padding: 18px;
  }

  .nova-popup img {
    max-width: 100%;
    max-height: 82dvh;
    border-radius: 10px;
  }

  .nova-popup-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}

/* ──────────────────────────────────────────────────────
   URBAN SECTION
   ────────────────────────────────────────────────────── */
.urban-section {
  background: #e7dfd3;
  padding: 80px 40px 0;
  overflow: hidden;
}

.urban-grid {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.urban-img {
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  background: #d9d0c3;
}

.urban-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s ease;
}

.urban-img:hover img {
  transform: scale(1.05);
}

.u-sm {
  grid-column: span 3;
  height: 240px;
}

.u-tall {
  grid-column: span 6;
  grid-row: span 2;
  height: 498px;
}

.u-wide {
  grid-column: span 6;
  height: 340px;
}

/* POPUP */

.urban-popup {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: 0.35s ease;
}

.urban-popup.active {
  opacity: 1;
  visibility: visible;
}

.urban-popup img {
  width: auto;
  max-width: 92%;
  max-height: 90dvh;
  object-fit: contain;
  border-radius: 14px;
  transform: scale(0.9);
  transition: transform 0.35s ease;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.urban-popup.active img {
  transform: scale(1);
}

.urban-popup-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s ease;
}

.urban-popup-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(90deg);
}

@media (max-width: 1024px) {
  .urban-section {
    padding: 72px 24px 0;
  }

  .urban-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .u-sm,
  .u-wide,
  .u-tall {
    grid-column: span 1;
    grid-row: span 1;
    height: 220px;
  }
}

@media (max-width: 640px) {
  .urban-section {
    padding: 14px 16px 0;
  }

  .urban-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .u-sm,
  .u-wide,
  .u-tall {
    height: 42vw;
  }

  .urban-popup {
    padding: 18px;
  }

  .urban-popup img {
    max-width: 100%;
    max-height: 82dvh;
    border-radius: 10px;
  }

  .urban-popup-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}

/* ──────────────────────────────────────────────────────
   TABLET HERO TEXT TWEAK
   ────────────────────────────────────────────────────── */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-leftText {
    left: 4%;
    width: 200px;
    font-size: 15px;
  }

  .hero-rightText {
    right: 4%;
    width: 210px;
    font-size: 15px;
  }
}